grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / expat / configure
blob247d0ef27176d0a1092411a2e12ccf71be23fe86
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for expat 2.1.0.
5 # Report bugs to <expat-bugs@libexpat.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: expat-bugs@libexpat.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
255 exit 1
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
273 { eval $1=; unset $1;}
275 as_unset=as_fn_unset
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
282 return $1
283 } # as_fn_set_status
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
290 set +e
291 as_fn_set_status $1
292 exit $1
293 } # as_fn_exit
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
326 /^X\(\/\/\)$/{
327 s//\1/
330 /^X\(\/\).*/{
331 s//\1/
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
351 eval $1+=\$2
353 else
354 as_fn_append ()
356 eval $1=\$$1\$2
358 fi # as_fn_append
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
368 as_val=$(( $* ))
370 else
371 as_fn_arith ()
373 as_val=`expr "$@" || test $? -eq 1`
375 fi # as_fn_arith
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392 } # as_fn_error
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397 else
398 as_expr=false
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403 else
404 as_basename=false
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409 else
410 as_dirname=false
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
422 /^X\/\(\/\/\)$/{
423 s//\1/
426 /^X\/\(\/\).*/{
427 s//\1/
430 s/.*/./; q'`
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
453 :lineno
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
481 ECHO_N='-n';;
482 esac
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 else
506 as_ln_s='cp -p'
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513 else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
518 if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520 else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 # Initializations.
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
570 # Identity of this package.
571 PACKAGE_NAME='expat'
572 PACKAGE_TARNAME='expat'
573 PACKAGE_VERSION='2.1.0'
574 PACKAGE_STRING='expat 2.1.0'
575 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
576 PACKAGE_URL=''
578 ac_unique_file="Makefile.in"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 # include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 # include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
615 ac_header_list=
616 ac_subst_vars='LTLIBOBJS
617 LIBOBJS
618 FILEMAP
619 INSTALL_DATA
620 INSTALL_SCRIPT
621 INSTALL_PROGRAM
622 CXXCPP
623 ac_ct_CXX
624 CXXFLAGS
626 LIBAGE
627 LIBREVISION
628 LIBCURRENT
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
637 RANLIB
638 STRIP
639 ac_ct_AR
641 LN_S
643 ac_ct_DUMPBIN
644 DUMPBIN
646 FGREP
647 EGREP
648 GREP
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
657 LIBTOOL
658 OBJDUMP
659 DLLTOOL
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 enable_shared
711 enable_static
712 with_pic
713 enable_fast_install
714 with_gnu_ld
715 with_sysroot
716 enable_libtool_lock
718 ac_precious_vars='build_alias
719 host_alias
720 target_alias
722 CFLAGS
723 LDFLAGS
724 LIBS
725 CPPFLAGS
728 CXXFLAGS
730 CXXCPP'
733 # Initialize some variables set by options.
734 ac_init_help=
735 ac_init_version=false
736 ac_unrecognized_opts=
737 ac_unrecognized_sep=
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
740 cache_file=/dev/null
741 exec_prefix=NONE
742 no_create=
743 no_recursion=
744 prefix=NONE
745 program_prefix=NONE
746 program_suffix=NONE
747 program_transform_name=s,x,x,
748 silent=
749 site=
750 srcdir=
751 verbose=
752 x_includes=NONE
753 x_libraries=NONE
755 # Installation directory options.
756 # These are left unexpanded so users can "make install exec_prefix=/foo"
757 # and all the variables that are supposed to be based on exec_prefix
758 # by default will actually change.
759 # Use braces instead of parens because sh, perl, etc. also accept them.
760 # (The list follows the same order as the GNU Coding Standards.)
761 bindir='${exec_prefix}/bin'
762 sbindir='${exec_prefix}/sbin'
763 libexecdir='${exec_prefix}/libexec'
764 datarootdir='${prefix}/share'
765 datadir='${datarootdir}'
766 sysconfdir='${prefix}/etc'
767 sharedstatedir='${prefix}/com'
768 localstatedir='${prefix}/var'
769 includedir='${prefix}/include'
770 oldincludedir='/usr/include'
771 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772 infodir='${datarootdir}/info'
773 htmldir='${docdir}'
774 dvidir='${docdir}'
775 pdfdir='${docdir}'
776 psdir='${docdir}'
777 libdir='${exec_prefix}/lib'
778 localedir='${datarootdir}/locale'
779 mandir='${datarootdir}/man'
781 ac_prev=
782 ac_dashdash=
783 for ac_option
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
792 case $ac_option in
793 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *=) ac_optarg= ;;
795 *) ac_optarg=yes ;;
796 esac
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
802 ac_dashdash=yes ;;
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
821 --config-cache | -C)
822 cache_file=config.cache ;;
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
836 -disable-* | --disable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error $? "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
845 "enable_$ac_useropt"
846 "*) ;;
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
849 esac
850 eval enable_$ac_useropt=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
862 -enable-* | --enable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=\$ac_optarg ;;
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
885 exec_prefix=$ac_optarg ;;
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
898 -host | --host | --hos | --ho)
899 ac_prev=host_alias ;;
900 -host=* | --host=* | --hos=* | --ho=*)
901 host_alias=$ac_optarg ;;
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
914 includedir=$ac_optarg ;;
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919 infodir=$ac_optarg ;;
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
924 libdir=$ac_optarg ;;
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
931 libexecdir=$ac_optarg ;;
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
938 -localstatedir | --localstatedir | --localstatedi | --localstated \
939 | --localstate | --localstat | --localsta | --localst | --locals)
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943 localstatedir=$ac_optarg ;;
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 mandir=$ac_optarg ;;
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955 | --no-cr | --no-c | -n)
956 no_create=yes ;;
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969 oldincludedir=$ac_optarg ;;
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974 prefix=$ac_optarg ;;
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981 program_prefix=$ac_optarg ;;
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988 program_suffix=$ac_optarg ;;
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
1005 program_transform_name=$ac_optarg ;;
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
1025 sbindir=$ac_optarg ;;
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
1036 sharedstatedir=$ac_optarg ;;
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
1041 site=$ac_optarg ;;
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046 srcdir=$ac_optarg ;;
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053 sysconfdir=$ac_optarg ;;
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
1056 ac_prev=target_alias ;;
1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058 target_alias=$ac_optarg ;;
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
1066 -with-* | --with-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid package name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "with_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval with_$ac_useropt=\$ac_optarg ;;
1082 -without-* | --without-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=no ;;
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1117 Try \`$0 --help' for more information"
1120 *=*)
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 case $ac_envvar in #(
1124 '' | [0-9]* | *[!_$as_cr_alnum]* )
1125 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1126 esac
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1138 esac
1139 done
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 as_fn_error $? "missing argument to $ac_option"
1146 if test -n "$ac_unrecognized_opts"; then
1147 case $enable_option_checking in
1148 no) ;;
1149 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1150 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151 esac
1154 # Check all directory arguments for consistency.
1155 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156 datadir sysconfdir sharedstatedir localstatedir includedir \
1157 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158 libdir localedir mandir
1160 eval ac_val=\$$ac_var
1161 # Remove trailing slashes.
1162 case $ac_val in
1163 */ )
1164 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165 eval $ac_var=\$ac_val;;
1166 esac
1167 # Be sure to have absolute directory names.
1168 case $ac_val in
1169 [\\/$]* | ?:[\\/]* ) continue;;
1170 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171 esac
1172 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173 done
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1178 build=$build_alias
1179 host=$host_alias
1180 target=$target_alias
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x; then
1184 if test "x$build_alias" = x; then
1185 cross_compiling=maybe
1186 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1187 If a cross compiler is detected then cross compile mode will be used" >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1189 cross_compiling=yes
1193 ac_tool_prefix=
1194 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196 test "$silent" = yes && exec 6>/dev/null
1199 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di=`ls -di .` &&
1201 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $? "working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $? "pwd does not report name of working directory"
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 s//\1/
1221 /^X\(\/\/\)[^/].*/{
1222 s//\1/
1225 /^X\(\/\/\)$/{
1226 s//\1/
1229 /^X\(\/\).*/{
1230 s//\1/
1233 s/.*/./; q'`
1234 srcdir=$ac_confdir
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 srcdir=..
1238 else
1239 ac_srcdir_defaulted=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1243 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1245 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 ac_abs_confdir=`(
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248 pwd)`
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1251 srcdir=.
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1256 case $srcdir in
1257 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258 esac
1259 for ac_var in $ac_precious_vars; do
1260 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_${ac_var}_value=\$${ac_var}
1262 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1264 done
1267 # Report the --help message.
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1272 cat <<_ACEOF
1273 \`configure' configures expat 2.1.0 to adapt to many kinds of systems.
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1280 Defaults for the options are specified in brackets.
1282 Configuration:
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1297 [PREFIX]
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1304 For better control, use the options below.
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --libdir=DIR object code libraries [EPREFIX/lib]
1314 --includedir=DIR C header files [PREFIX/include]
1315 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1316 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1317 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1318 --infodir=DIR info documentation [DATAROOTDIR/info]
1319 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1320 --mandir=DIR man documentation [DATAROOTDIR/man]
1321 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1322 --htmldir=DIR html documentation [DOCDIR]
1323 --dvidir=DIR dvi documentation [DOCDIR]
1324 --pdfdir=DIR pdf documentation [DOCDIR]
1325 --psdir=DIR ps documentation [DOCDIR]
1326 _ACEOF
1328 cat <<\_ACEOF
1330 System types:
1331 --build=BUILD configure for building on BUILD [guessed]
1332 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 _ACEOF
1336 if test -n "$ac_init_help"; then
1337 case $ac_init_help in
1338 short | recursive ) echo "Configuration of expat 2.1.0:";;
1339 esac
1340 cat <<\_ACEOF
1342 Optional Features:
1343 --disable-option-checking ignore unrecognized --enable/--with options
1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1346 --enable-shared[=PKGS] build shared libraries [default=yes]
1347 --enable-static[=PKGS] build static libraries [default=yes]
1348 --enable-fast-install[=PKGS]
1349 optimize for fast installation [default=yes]
1350 --disable-libtool-lock avoid locking (might break parallel builds)
1352 Optional Packages:
1353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1355 --with-pic try to use only PIC/non-PIC objects [default=use
1356 both]
1357 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1358 --with-sysroot=DIR Search for dependent libraries within DIR
1359 (or the compiler's sysroot if not specified).
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 CXX C++ compiler command
1371 CXXFLAGS C++ compiler flags
1372 CXXCPP C++ preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <expat-bugs@libexpat.org>.
1378 _ACEOF
1379 ac_status=$?
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 continue
1388 ac_builddir=.
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 expat configure 2.1.0
1441 generated by GNU Autoconf 2.68
1443 Copyright (C) 2010 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446 _ACEOF
1447 exit
1450 ## ------------------------ ##
1451 ## Autoconf initialization. ##
1452 ## ------------------------ ##
1454 # ac_fn_c_try_compile LINENO
1455 # --------------------------
1456 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_compile ()
1459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460 rm -f conftest.$ac_objext
1461 if { { ac_try="$ac_compile"
1462 case "(($ac_try" in
1463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464 *) ac_try_echo=$ac_try;;
1465 esac
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468 (eval "$ac_compile") 2>conftest.err
1469 ac_status=$?
1470 if test -s conftest.err; then
1471 grep -v '^ *+' conftest.err >conftest.er1
1472 cat conftest.er1 >&5
1473 mv -f conftest.er1 conftest.err
1475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476 test $ac_status = 0; } && {
1477 test -z "$ac_c_werror_flag" ||
1478 test ! -s conftest.err
1479 } && test -s conftest.$ac_objext; then :
1480 ac_retval=0
1481 else
1482 $as_echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1485 ac_retval=1
1487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488 as_fn_set_status $ac_retval
1490 } # ac_fn_c_try_compile
1492 # ac_fn_c_try_link LINENO
1493 # -----------------------
1494 # Try to link conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_link ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext conftest$ac_exeext
1499 if { { ac_try="$ac_link"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_link") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest$ac_exeext && {
1518 test "$cross_compiling" = yes ||
1519 $as_test_x conftest$ac_exeext
1520 }; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1526 ac_retval=1
1528 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1529 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1530 # interfere with the next link command; also delete a directory that is
1531 # left behind by Apple's compiler. We do this before executing the actions.
1532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1536 } # ac_fn_c_try_link
1538 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1539 # -------------------------------------------------------
1540 # Tests whether HEADER exists and can be compiled using the include files in
1541 # INCLUDES, setting the cache variable VAR accordingly.
1542 ac_fn_c_check_header_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1546 $as_echo_n "checking for $2... " >&6; }
1547 if eval \${$3+:} false; then :
1548 $as_echo_n "(cached) " >&6
1549 else
1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1551 /* end confdefs.h. */
1553 #include <$2>
1554 _ACEOF
1555 if ac_fn_c_try_compile "$LINENO"; then :
1556 eval "$3=yes"
1557 else
1558 eval "$3=no"
1560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562 eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 } # ac_fn_c_check_header_compile
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_cpp ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } > conftest.i && {
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1599 ac_retval=1
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1604 } # ac_fn_c_try_cpp
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1610 ac_fn_c_try_run ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1621 ac_status=$?
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=$ac_status
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_run
1648 # ac_fn_c_check_func LINENO FUNC VAR
1649 # ----------------------------------
1650 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1651 ac_fn_c_check_func ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1663 #define $2 innocuous_$2
1665 /* System header to define __stub macros and hopefully few prototypes,
1666 which can conflict with char $2 (); below.
1667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1668 <limits.h> exists even on freestanding compilers. */
1670 #ifdef __STDC__
1671 # include <limits.h>
1672 #else
1673 # include <assert.h>
1674 #endif
1676 #undef $2
1678 /* Override any GCC internal prototype to avoid an error.
1679 Use char because int might match the return type of a GCC
1680 builtin and then its argument prototype would still apply. */
1681 #ifdef __cplusplus
1682 extern "C"
1683 #endif
1684 char $2 ();
1685 /* The GNU C library defines this for functions which it implements
1686 to always fail with ENOSYS. Some functions are actually named
1687 something starting with __ and the normal name is an alias. */
1688 #if defined __stub_$2 || defined __stub___$2
1689 choke me
1690 #endif
1693 main ()
1695 return $2 ();
1697 return 0;
1699 _ACEOF
1700 if ac_fn_c_try_link "$LINENO"; then :
1701 eval "$3=yes"
1702 else
1703 eval "$3=no"
1705 rm -f core conftest.err conftest.$ac_objext \
1706 conftest$ac_exeext conftest.$ac_ext
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 } # ac_fn_c_check_func
1715 # ac_fn_cxx_try_compile LINENO
1716 # ----------------------------
1717 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_cxx_try_compile ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext
1722 if { { ac_try="$ac_compile"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_compile") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_cxx_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest.$ac_objext; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1751 } # ac_fn_cxx_try_compile
1753 # ac_fn_cxx_try_cpp LINENO
1754 # ------------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=1
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_cxx_try_cpp
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_cxx_try_link
1836 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1837 # -------------------------------------------
1838 # Tests whether TYPE exists after having included INCLUDES, setting cache
1839 # variable VAR accordingly.
1840 ac_fn_c_check_type ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 eval "$3=no"
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1853 main ()
1855 if (sizeof ($2))
1856 return 0;
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1866 main ()
1868 if (sizeof (($2)))
1869 return 0;
1871 return 0;
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1876 else
1877 eval "$3=yes"
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_type
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1894 # accordingly.
1895 ac_fn_c_check_header_mongrel ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if eval \${$3+:} false; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 else
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1918 else
1919 ac_header_compiler=no
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1934 else
1935 ac_header_preproc=no
1937 rm -f conftest.err conftest.i conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 yes:no: )
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 no:yes:* )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 ( $as_echo "## -------------------------------------- ##
1961 ## Report this to expat-bugs@libexpat.org ##
1962 ## -------------------------------------- ##"
1963 ) | sed "s/^/$as_me: WARNING: /" >&2
1965 esac
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=\$ac_header_compiler"
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_header_mongrel
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by expat $as_me 2.1.0, which was
1985 generated by GNU Autoconf 2.68. Invocation command line was
1987 $ $0 $@
1989 _ACEOF
1990 exec 5>>config.log
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014 _ASUNAME
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2025 } >&5
2027 cat >&5 <<_ACEOF
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2034 _ACEOF
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2048 for ac_arg
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2077 as_fn_append ac_configure_args " '$ac_arg'"
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2093 echo
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 esac |
2127 sort
2129 echo
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134 echo
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149 echo
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228 else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2245 done
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2264 as_fn_append ac_header_list " stdlib.h"
2265 as_fn_append ac_header_list " unistd.h"
2266 as_fn_append ac_header_list " sys/param.h"
2267 # Check that the precious variables saved in the cache have kept the same
2268 # value.
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272 eval ac_new_set=\$ac_env_${ac_var}_set
2273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274 eval ac_new_val=\$ac_env_${ac_var}_value
2275 case $ac_old_set,$ac_new_set in
2276 set,)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2280 ,set)
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283 ac_cache_corrupted=: ;;
2284 ,);;
2286 if test "x$ac_old_val" != "x$ac_new_val"; then
2287 # differences in whitespace do not lead to failure.
2288 ac_old_val_w=`echo x $ac_old_val`
2289 ac_new_val_w=`echo x $ac_new_val`
2290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293 ac_cache_corrupted=:
2294 else
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297 eval $ac_var=\$ac_old_val
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2300 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2303 fi;;
2304 esac
2305 # Pass precious variables to config.status.
2306 if test "$ac_new_set" = set; then
2307 case $ac_new_val in
2308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309 *) ac_arg=$ac_var=$ac_new_val ;;
2310 esac
2311 case " $ac_configure_args " in
2312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314 esac
2316 done
2317 if $ac_cache_corrupted; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_aux_dir=
2339 for ac_dir in conftools "$srcdir"/conftools; do
2340 if test -f "$ac_dir/install-sh"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/install-sh -c"
2343 break
2344 elif test -f "$ac_dir/install.sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install.sh -c"
2347 break
2348 elif test -f "$ac_dir/shtool"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/shtool install -c"
2351 break
2353 done
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371 LIBCURRENT=7
2372 LIBREVISION=0
2373 LIBAGE=6
2375 ac_config_headers="$ac_config_headers expat_config.h"
2381 # Make sure we can run config.sub.
2382 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386 $as_echo_n "checking build system type... " >&6; }
2387 if ${ac_cv_build+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 ac_build_alias=$build_alias
2391 test "x$ac_build_alias" = x &&
2392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393 test "x$ac_build_alias" = x &&
2394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2395 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400 $as_echo "$ac_cv_build" >&6; }
2401 case $ac_cv_build in
2402 *-*-*) ;;
2403 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2404 esac
2405 build=$ac_cv_build
2406 ac_save_IFS=$IFS; IFS='-'
2407 set x $ac_cv_build
2408 shift
2409 build_cpu=$1
2410 build_vendor=$2
2411 shift; shift
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2414 build_os=$*
2415 IFS=$ac_save_IFS
2416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420 $as_echo_n "checking host system type... " >&6; }
2421 if ${ac_cv_host+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426 else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433 $as_echo "$ac_cv_host" >&6; }
2434 case $ac_cv_host in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437 esac
2438 host=$ac_cv_host
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_host
2441 shift
2442 host_cpu=$1
2443 host_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 host_os=$*
2448 IFS=$ac_save_IFS
2449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2452 enable_win32_dll=yes
2454 case $host in
2455 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}as; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if ${ac_cv_prog_AS+:} false; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test -n "$AS"; then
2465 ac_cv_prog_AS="$AS" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_AS="${ac_tool_prefix}as"
2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2480 IFS=$as_save_IFS
2484 AS=$ac_cv_prog_AS
2485 if test -n "$AS"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2487 $as_echo "$AS" >&6; }
2488 else
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2495 if test -z "$ac_cv_prog_AS"; then
2496 ac_ct_AS=$AS
2497 # Extract the first word of "as", so it can be a program name with args.
2498 set dummy as; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$ac_ct_AS"; then
2505 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_AS="as"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2525 if test -n "$ac_ct_AS"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2527 $as_echo "$ac_ct_AS" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2533 if test "x$ac_ct_AS" = x; then
2534 AS="false"
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537 yes:)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2540 ac_tool_warned=yes ;;
2541 esac
2542 AS=$ac_ct_AS
2544 else
2545 AS="$ac_cv_prog_AS"
2548 if test -n "$ac_tool_prefix"; then
2549 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_DLLTOOL+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$DLLTOOL"; then
2557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2570 done
2571 done
2572 IFS=$as_save_IFS
2576 DLLTOOL=$ac_cv_prog_DLLTOOL
2577 if test -n "$DLLTOOL"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2579 $as_echo "$DLLTOOL" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2587 if test -z "$ac_cv_prog_DLLTOOL"; then
2588 ac_ct_DLLTOOL=$DLLTOOL
2589 # Extract the first word of "dlltool", so it can be a program name with args.
2590 set dummy dlltool; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$ac_ct_DLLTOOL"; then
2597 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2617 if test -n "$ac_ct_DLLTOOL"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2619 $as_echo "$ac_ct_DLLTOOL" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2625 if test "x$ac_ct_DLLTOOL" = x; then
2626 DLLTOOL="false"
2627 else
2628 case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634 DLLTOOL=$ac_ct_DLLTOOL
2636 else
2637 DLLTOOL="$ac_cv_prog_DLLTOOL"
2640 if test -n "$ac_tool_prefix"; then
2641 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2642 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_prog_OBJDUMP+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$OBJDUMP"; then
2649 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2664 IFS=$as_save_IFS
2668 OBJDUMP=$ac_cv_prog_OBJDUMP
2669 if test -n "$OBJDUMP"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2671 $as_echo "$OBJDUMP" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2679 if test -z "$ac_cv_prog_OBJDUMP"; then
2680 ac_ct_OBJDUMP=$OBJDUMP
2681 # Extract the first word of "objdump", so it can be a program name with args.
2682 set dummy objdump; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$ac_ct_OBJDUMP"; then
2689 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2709 if test -n "$ac_ct_OBJDUMP"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2711 $as_echo "$ac_ct_OBJDUMP" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2717 if test "x$ac_ct_OBJDUMP" = x; then
2718 OBJDUMP="false"
2719 else
2720 case $cross_compiling:$ac_tool_warned in
2721 yes:)
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2724 ac_tool_warned=yes ;;
2725 esac
2726 OBJDUMP=$ac_ct_OBJDUMP
2728 else
2729 OBJDUMP="$ac_cv_prog_OBJDUMP"
2733 esac
2735 test -z "$AS" && AS=as
2741 test -z "$DLLTOOL" && DLLTOOL=dlltool
2747 test -z "$OBJDUMP" && OBJDUMP=objdump
2755 case `pwd` in
2756 *\ * | *\ *)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2758 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2759 esac
2763 macro_version='2.4'
2764 macro_revision='1.3293'
2778 ltmain="$ac_aux_dir/ltmain.sh"
2780 # Backslashify metacharacters that are still active within
2781 # double-quoted strings.
2782 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2784 # Same as above, but do not quote variable references.
2785 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2787 # Sed substitution to delay expansion of an escaped shell variable in a
2788 # double_quote_subst'ed string.
2789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2791 # Sed substitution to delay expansion of an escaped single quote.
2792 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2794 # Sed substitution to avoid accidental globbing in evaled expressions
2795 no_glob_subst='s/\*/\\\*/g'
2797 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2798 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2802 $as_echo_n "checking how to print strings... " >&6; }
2803 # Test print first, because it will be a builtin if present.
2804 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2805 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2806 ECHO='print -r --'
2807 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2808 ECHO='printf %s\n'
2809 else
2810 # Use this function as a fallback that always works.
2811 func_fallback_echo ()
2813 eval 'cat <<_LTECHO_EOF
2815 _LTECHO_EOF'
2817 ECHO='func_fallback_echo'
2820 # func_echo_all arg...
2821 # Invoke $ECHO with all args, space-separated.
2822 func_echo_all ()
2824 $ECHO ""
2827 case "$ECHO" in
2828 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2829 $as_echo "printf" >&6; } ;;
2830 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2831 $as_echo "print -r" >&6; } ;;
2832 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2833 $as_echo "cat" >&6; } ;;
2834 esac
2849 ac_ext=c
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 CC=$ac_ct_CC
2942 else
2943 CC="$ac_cv_prog_CC"
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 ac_prog_rejected=no
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3008 continue
3010 ac_cv_prog_CC="cc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3014 done
3015 done
3016 IFS=$as_save_IFS
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3021 shift
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3026 shift
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3068 done
3069 done
3070 IFS=$as_save_IFS
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$CC" && break
3085 done
3087 if test -z "$CC"; then
3088 ac_ct_CC=$CC
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$ac_ct_CC" && break
3129 done
3131 if test "x$ac_ct_CC" = x; then
3132 CC=""
3133 else
3134 case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140 CC=$ac_ct_CC
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3154 set X $ac_compile
3155 ac_compiler=$2
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3165 ac_status=$?
3166 if test -s conftest.err; then
3167 sed '10a\
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
3172 rm -f conftest.er1 conftest.err
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175 done
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3181 main ()
3185 return 0;
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207 done
3208 rm -f $ac_rmfiles
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253 else
3254 ac_file=''
3256 if test -z "$ac_file"; then :
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3294 # `rm'.
3295 for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3300 break;;
3301 * ) break;;
3302 esac
3303 done
3304 else
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3316 ac_exeext=$EXEEXT
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319 #include <stdio.h>
3321 main ()
3323 FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3327 return 0;
3329 _ACEOF
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336 { { ac_try="$ac_link"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 if { ac_try='./conftest$ac_cv_exeext'
3348 { { case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_try") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; }; then
3358 cross_compiling=no
3359 else
3360 if test "$cross_compiling" = maybe; then
3361 cross_compiling=yes
3362 else
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compile") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409 break;;
3410 esac
3411 done
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3438 #ifndef __GNUC__
3439 choke me
3440 #endif
3443 return 0;
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_compiler_gnu=yes
3448 else
3449 ac_compiler_gnu=no
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458 GCC=yes
3459 else
3460 GCC=
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3471 ac_cv_prog_cc_g=no
3472 CFLAGS="-g"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 main ()
3481 return 0;
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_g=yes
3486 else
3487 CFLAGS=""
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3492 main ()
3496 return 0;
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3501 else
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3503 CFLAGS="-g"
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_g=yes
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3531 CFLAGS="-g -O2"
3532 else
3533 CFLAGS="-g"
3535 else
3536 if test "$GCC" = yes; then
3537 CFLAGS="-O2"
3538 else
3539 CFLAGS=
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 #include <sys/types.h>
3554 #include <sys/stat.h>
3555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3556 struct buf { int x; };
3557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3558 static char *e (p, i)
3559 char **p;
3560 int i;
3562 return p[i];
3564 static char *f (char * (*g) (char **, int), char **p, ...)
3566 char *s;
3567 va_list v;
3568 va_start (v,p);
3569 s = g (p, va_arg (v,int));
3570 va_end (v);
3571 return s;
3574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3575 function prototypes and stuff, but not '\xHH' hex character constants.
3576 These don't provoke an error unfortunately, instead are silently treated
3577 as 'x'. The following induces an error, until -std is added to get
3578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3579 array size at least. It's necessary to write '\x00'==0 to get something
3580 that's true only with -std. */
3581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3584 inside strings and character constants. */
3585 #define FOO(x) 'x'
3586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3588 int test (int i, double x);
3589 struct s1 {int (*f) (int a);};
3590 struct s2 {int (*f) (double a);};
3591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 int argc;
3593 char **argv;
3595 main ()
3597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3599 return 0;
3601 _ACEOF
3602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3605 CC="$ac_save_CC $ac_arg"
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_c89=$ac_arg
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c89" in
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620 $as_echo "none needed" >&6; } ;;
3621 xno)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623 $as_echo "unsupported" >&6; } ;;
3625 CC="$CC $ac_cv_prog_cc_c89"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3627 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 esac
3629 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3640 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3641 if ${ac_cv_path_SED+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3645 for ac_i in 1 2 3 4 5 6 7; do
3646 ac_script="$ac_script$as_nl$ac_script"
3647 done
3648 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3649 { ac_script=; unset ac_script;}
3650 if test -z "$SED"; then
3651 ac_path_SED_found=false
3652 # Loop through the user's path and test for each of PROGNAME-LIST
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_prog in sed gsed; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3661 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3662 # Check for GNU ac_path_SED and select it if it is found.
3663 # Check for GNU $ac_path_SED
3664 case `"$ac_path_SED" --version 2>&1` in
3665 *GNU*)
3666 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3668 ac_count=0
3669 $as_echo_n 0123456789 >"conftest.in"
3670 while :
3672 cat "conftest.in" "conftest.in" >"conftest.tmp"
3673 mv "conftest.tmp" "conftest.in"
3674 cp "conftest.in" "conftest.nl"
3675 $as_echo '' >> "conftest.nl"
3676 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3678 as_fn_arith $ac_count + 1 && ac_count=$as_val
3679 if test $ac_count -gt ${ac_path_SED_max-0}; then
3680 # Best one so far, save it but keep looking for a better one
3681 ac_cv_path_SED="$ac_path_SED"
3682 ac_path_SED_max=$ac_count
3684 # 10*(2^10) chars as input seems more than enough
3685 test $ac_count -gt 10 && break
3686 done
3687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3688 esac
3690 $ac_path_SED_found && break 3
3691 done
3692 done
3693 done
3694 IFS=$as_save_IFS
3695 if test -z "$ac_cv_path_SED"; then
3696 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3698 else
3699 ac_cv_path_SED=$SED
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3704 $as_echo "$ac_cv_path_SED" >&6; }
3705 SED="$ac_cv_path_SED"
3706 rm -f conftest.sed
3708 test -z "$SED" && SED=sed
3709 Xsed="$SED -e 1s/^X//"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3722 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3723 if ${ac_cv_path_GREP+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -z "$GREP"; then
3727 ac_path_GREP_found=false
3728 # Loop through the user's path and test for each of PROGNAME-LIST
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_prog in grep ggrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3738 # Check for GNU ac_path_GREP and select it if it is found.
3739 # Check for GNU $ac_path_GREP
3740 case `"$ac_path_GREP" --version 2>&1` in
3741 *GNU*)
3742 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3744 ac_count=0
3745 $as_echo_n 0123456789 >"conftest.in"
3746 while :
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
3751 $as_echo 'GREP' >> "conftest.nl"
3752 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754 as_fn_arith $ac_count + 1 && ac_count=$as_val
3755 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_GREP="$ac_path_GREP"
3758 ac_path_GREP_max=$ac_count
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3762 done
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764 esac
3766 $ac_path_GREP_found && break 3
3767 done
3768 done
3769 done
3770 IFS=$as_save_IFS
3771 if test -z "$ac_cv_path_GREP"; then
3772 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3774 else
3775 ac_cv_path_GREP=$GREP
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3780 $as_echo "$ac_cv_path_GREP" >&6; }
3781 GREP="$ac_cv_path_GREP"
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3785 $as_echo_n "checking for egrep... " >&6; }
3786 if ${ac_cv_path_EGREP+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3790 then ac_cv_path_EGREP="$GREP -E"
3791 else
3792 if test -z "$EGREP"; then
3793 ac_path_EGREP_found=false
3794 # Loop through the user's path and test for each of PROGNAME-LIST
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_prog in egrep; do
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3803 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3804 # Check for GNU ac_path_EGREP and select it if it is found.
3805 # Check for GNU $ac_path_EGREP
3806 case `"$ac_path_EGREP" --version 2>&1` in
3807 *GNU*)
3808 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3810 ac_count=0
3811 $as_echo_n 0123456789 >"conftest.in"
3812 while :
3814 cat "conftest.in" "conftest.in" >"conftest.tmp"
3815 mv "conftest.tmp" "conftest.in"
3816 cp "conftest.in" "conftest.nl"
3817 $as_echo 'EGREP' >> "conftest.nl"
3818 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820 as_fn_arith $ac_count + 1 && ac_count=$as_val
3821 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3822 # Best one so far, save it but keep looking for a better one
3823 ac_cv_path_EGREP="$ac_path_EGREP"
3824 ac_path_EGREP_max=$ac_count
3826 # 10*(2^10) chars as input seems more than enough
3827 test $ac_count -gt 10 && break
3828 done
3829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830 esac
3832 $ac_path_EGREP_found && break 3
3833 done
3834 done
3835 done
3836 IFS=$as_save_IFS
3837 if test -z "$ac_cv_path_EGREP"; then
3838 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3840 else
3841 ac_cv_path_EGREP=$EGREP
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3847 $as_echo "$ac_cv_path_EGREP" >&6; }
3848 EGREP="$ac_cv_path_EGREP"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3852 $as_echo_n "checking for fgrep... " >&6; }
3853 if ${ac_cv_path_FGREP+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3857 then ac_cv_path_FGREP="$GREP -F"
3858 else
3859 if test -z "$FGREP"; then
3860 ac_path_FGREP_found=false
3861 # Loop through the user's path and test for each of PROGNAME-LIST
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in fgrep; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3870 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3871 # Check for GNU ac_path_FGREP and select it if it is found.
3872 # Check for GNU $ac_path_FGREP
3873 case `"$ac_path_FGREP" --version 2>&1` in
3874 *GNU*)
3875 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3877 ac_count=0
3878 $as_echo_n 0123456789 >"conftest.in"
3879 while :
3881 cat "conftest.in" "conftest.in" >"conftest.tmp"
3882 mv "conftest.tmp" "conftest.in"
3883 cp "conftest.in" "conftest.nl"
3884 $as_echo 'FGREP' >> "conftest.nl"
3885 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887 as_fn_arith $ac_count + 1 && ac_count=$as_val
3888 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3889 # Best one so far, save it but keep looking for a better one
3890 ac_cv_path_FGREP="$ac_path_FGREP"
3891 ac_path_FGREP_max=$ac_count
3893 # 10*(2^10) chars as input seems more than enough
3894 test $ac_count -gt 10 && break
3895 done
3896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897 esac
3899 $ac_path_FGREP_found && break 3
3900 done
3901 done
3902 done
3903 IFS=$as_save_IFS
3904 if test -z "$ac_cv_path_FGREP"; then
3905 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3907 else
3908 ac_cv_path_FGREP=$FGREP
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3914 $as_echo "$ac_cv_path_FGREP" >&6; }
3915 FGREP="$ac_cv_path_FGREP"
3918 test -z "$GREP" && GREP=grep
3938 # Check whether --with-gnu-ld was given.
3939 if test "${with_gnu_ld+set}" = set; then :
3940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3941 else
3942 with_gnu_ld=no
3945 ac_prog=ld
3946 if test "$GCC" = yes; then
3947 # Check if gcc -print-prog-name=ld gives a path.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3949 $as_echo_n "checking for ld used by $CC... " >&6; }
3950 case $host in
3951 *-*-mingw*)
3952 # gcc leaves a trailing carriage return which upsets mingw
3953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3956 esac
3957 case $ac_prog in
3958 # Accept absolute paths.
3959 [\\/]* | ?:[\\/]*)
3960 re_direlt='/[^/][^/]*/\.\./'
3961 # Canonicalize the pathname of ld
3962 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3963 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3964 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3965 done
3966 test -z "$LD" && LD="$ac_prog"
3969 # If it fails, then pretend we aren't using GCC.
3970 ac_prog=ld
3973 # If it is relative, then search for the first ld in PATH.
3974 with_gnu_ld=unknown
3976 esac
3977 elif test "$with_gnu_ld" = yes; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3979 $as_echo_n "checking for GNU ld... " >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3982 $as_echo_n "checking for non-GNU ld... " >&6; }
3984 if ${lt_cv_path_LD+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -z "$LD"; then
3988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3989 for ac_dir in $PATH; do
3990 IFS="$lt_save_ifs"
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3993 lt_cv_path_LD="$ac_dir/$ac_prog"
3994 # Check to see if the program is GNU ld. I'd rather use --version,
3995 # but apparently some variants of GNU ld only accept -v.
3996 # Break only if it was the GNU/non-GNU ld that we prefer.
3997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3998 *GNU* | *'with BFD'*)
3999 test "$with_gnu_ld" != no && break
4002 test "$with_gnu_ld" != yes && break
4004 esac
4006 done
4007 IFS="$lt_save_ifs"
4008 else
4009 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4013 LD="$lt_cv_path_LD"
4014 if test -n "$LD"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4016 $as_echo "$LD" >&6; }
4017 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4021 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4023 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4024 if ${lt_cv_prog_gnu_ld+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4028 case `$LD -v 2>&1 </dev/null` in
4029 *GNU* | *'with BFD'*)
4030 lt_cv_prog_gnu_ld=yes
4033 lt_cv_prog_gnu_ld=no
4035 esac
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4038 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4039 with_gnu_ld=$lt_cv_prog_gnu_ld
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4050 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4051 if ${lt_cv_path_NM+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$NM"; then
4055 # Let the user override the test.
4056 lt_cv_path_NM="$NM"
4057 else
4058 lt_nm_to_check="${ac_tool_prefix}nm"
4059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4060 lt_nm_to_check="$lt_nm_to_check nm"
4062 for lt_tmp_nm in $lt_nm_to_check; do
4063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4065 IFS="$lt_save_ifs"
4066 test -z "$ac_dir" && ac_dir=.
4067 tmp_nm="$ac_dir/$lt_tmp_nm"
4068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4069 # Check to see if the nm accepts a BSD-compat flag.
4070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4071 # nm: unknown option "B" ignored
4072 # Tru64's nm complains that /dev/null is an invalid object file
4073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4074 */dev/null* | *'Invalid file or object type'*)
4075 lt_cv_path_NM="$tmp_nm -B"
4076 break
4079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4080 */dev/null*)
4081 lt_cv_path_NM="$tmp_nm -p"
4082 break
4085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4086 continue # so that we can try to find one that supports BSD flags
4088 esac
4090 esac
4092 done
4093 IFS="$lt_save_ifs"
4094 done
4095 : ${lt_cv_path_NM=no}
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4099 $as_echo "$lt_cv_path_NM" >&6; }
4100 if test "$lt_cv_path_NM" != "no"; then
4101 NM="$lt_cv_path_NM"
4102 else
4103 # Didn't find any BSD compatible name lister, look for dumpbin.
4104 if test -n "$DUMPBIN"; then :
4105 # Let the user override the test.
4106 else
4107 if test -n "$ac_tool_prefix"; then
4108 for ac_prog in dumpbin "link -dump"
4110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_DUMPBIN+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$DUMPBIN"; then
4118 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4137 DUMPBIN=$ac_cv_prog_DUMPBIN
4138 if test -n "$DUMPBIN"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4140 $as_echo "$DUMPBIN" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4147 test -n "$DUMPBIN" && break
4148 done
4150 if test -z "$DUMPBIN"; then
4151 ac_ct_DUMPBIN=$DUMPBIN
4152 for ac_prog in dumpbin "link -dump"
4154 # Extract the first word of "$ac_prog", so it can be a program name with args.
4155 set dummy $ac_prog; ac_word=$2
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -n "$ac_ct_DUMPBIN"; then
4162 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4182 if test -n "$ac_ct_DUMPBIN"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4184 $as_echo "$ac_ct_DUMPBIN" >&6; }
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4191 test -n "$ac_ct_DUMPBIN" && break
4192 done
4194 if test "x$ac_ct_DUMPBIN" = x; then
4195 DUMPBIN=":"
4196 else
4197 case $cross_compiling:$ac_tool_warned in
4198 yes:)
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4201 ac_tool_warned=yes ;;
4202 esac
4203 DUMPBIN=$ac_ct_DUMPBIN
4207 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4208 *COFF*)
4209 DUMPBIN="$DUMPBIN -symbols"
4212 DUMPBIN=:
4214 esac
4217 if test "$DUMPBIN" != ":"; then
4218 NM="$DUMPBIN"
4221 test -z "$NM" && NM=nm
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4229 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4230 if ${lt_cv_nm_interface+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 lt_cv_nm_interface="BSD nm"
4234 echo "int some_variable = 0;" > conftest.$ac_ext
4235 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4236 (eval "$ac_compile" 2>conftest.err)
4237 cat conftest.err >&5
4238 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4240 cat conftest.err >&5
4241 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4242 cat conftest.out >&5
4243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4244 lt_cv_nm_interface="MS dumpbin"
4246 rm -f conftest*
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4249 $as_echo "$lt_cv_nm_interface" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4252 $as_echo_n "checking whether ln -s works... " >&6; }
4253 LN_S=$as_ln_s
4254 if test "$LN_S" = "ln -s"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256 $as_echo "yes" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4259 $as_echo "no, using $LN_S" >&6; }
4262 # find the maximum length of command line arguments
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4264 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4265 if ${lt_cv_sys_max_cmd_len+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4269 teststring="ABCD"
4271 case $build_os in
4272 msdosdjgpp*)
4273 # On DJGPP, this test can blow up pretty badly due to problems in libc
4274 # (any single argument exceeding 2000 bytes causes a buffer overrun
4275 # during glob expansion). Even if it were fixed, the result of this
4276 # check would be larger than it should be.
4277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4280 gnu*)
4281 # Under GNU Hurd, this test is not required because there is
4282 # no limit to the length of command line arguments.
4283 # Libtool will interpret -1 as no limit whatsoever
4284 lt_cv_sys_max_cmd_len=-1;
4287 cygwin* | mingw* | cegcc*)
4288 # On Win9x/ME, this test blows up -- it succeeds, but takes
4289 # about 5 minutes as the teststring grows exponentially.
4290 # Worse, since 9x/ME are not pre-emptively multitasking,
4291 # you end up with a "frozen" computer, even though with patience
4292 # the test eventually succeeds (with a max line length of 256k).
4293 # Instead, let's just punt: use the minimum linelength reported by
4294 # all of the supported platforms: 8192 (on NT/2K/XP).
4295 lt_cv_sys_max_cmd_len=8192;
4298 mint*)
4299 # On MiNT this can take a long time and run out of memory.
4300 lt_cv_sys_max_cmd_len=8192;
4303 amigaos*)
4304 # On AmigaOS with pdksh, this test takes hours, literally.
4305 # So we just punt and use a minimum line length of 8192.
4306 lt_cv_sys_max_cmd_len=8192;
4309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4310 # This has been around since 386BSD, at least. Likely further.
4311 if test -x /sbin/sysctl; then
4312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4313 elif test -x /usr/sbin/sysctl; then
4314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4315 else
4316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4318 # And add a safety zone
4319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4323 interix*)
4324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4325 lt_cv_sys_max_cmd_len=196608
4328 osf*)
4329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4331 # nice to cause kernel panics so lets avoid the loop below.
4332 # First set a reasonable default.
4333 lt_cv_sys_max_cmd_len=16384
4335 if test -x /sbin/sysconfig; then
4336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4338 esac
4341 sco3.2v5*)
4342 lt_cv_sys_max_cmd_len=102400
4344 sysv5* | sco5v6* | sysv4.2uw2*)
4345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4346 if test -n "$kargmax"; then
4347 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4348 else
4349 lt_cv_sys_max_cmd_len=32768
4353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4354 if test -n "$lt_cv_sys_max_cmd_len"; then
4355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4357 else
4358 # Make teststring a little bigger before we do anything with it.
4359 # a 1K string should be a reasonable start.
4360 for i in 1 2 3 4 5 6 7 8 ; do
4361 teststring=$teststring$teststring
4362 done
4363 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4364 # If test is not a shell built-in, we'll probably end up computing a
4365 # maximum length that is only half of the actual maximum length, but
4366 # we can't tell.
4367 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4368 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4369 test $i != 17 # 1/2 MB should be enough
4371 i=`expr $i + 1`
4372 teststring=$teststring$teststring
4373 done
4374 # Only check the string length outside the loop.
4375 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4376 teststring=
4377 # Add a significant safety factor because C++ compilers can tack on
4378 # massive amounts of additional arguments before passing them to the
4379 # linker. It appears as though 1/2 is a usable value.
4380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4383 esac
4387 if test -n $lt_cv_sys_max_cmd_len ; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4389 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4392 $as_echo "none" >&6; }
4394 max_cmd_len=$lt_cv_sys_max_cmd_len
4401 : ${CP="cp -f"}
4402 : ${MV="mv -f"}
4403 : ${RM="rm -f"}
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4406 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4407 # Try some XSI features
4408 xsi_shell=no
4409 ( _lt_dummy="a/b/c"
4410 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4411 = c,a/b,b/c, \
4412 && eval 'test $(( 1 + 1 )) -eq 2 \
4413 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4414 && xsi_shell=yes
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4416 $as_echo "$xsi_shell" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4420 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4421 lt_shell_append=no
4422 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4423 >/dev/null 2>&1 \
4424 && lt_shell_append=yes
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4426 $as_echo "$lt_shell_append" >&6; }
4429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4430 lt_unset=unset
4431 else
4432 lt_unset=false
4439 # test EBCDIC or ASCII
4440 case `echo X|tr X '\101'` in
4441 A) # ASCII based system
4442 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4443 lt_SP2NL='tr \040 \012'
4444 lt_NL2SP='tr \015\012 \040\040'
4446 *) # EBCDIC based system
4447 lt_SP2NL='tr \100 \n'
4448 lt_NL2SP='tr \r\n \100\100'
4450 esac
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4461 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4462 if ${lt_cv_to_host_file_cmd+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 case $host in
4466 *-*-mingw* )
4467 case $build in
4468 *-*-mingw* ) # actually msys
4469 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4471 *-*-cygwin* )
4472 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4474 * ) # otherwise, assume *nix
4475 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4477 esac
4479 *-*-cygwin* )
4480 case $build in
4481 *-*-mingw* ) # actually msys
4482 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4484 *-*-cygwin* )
4485 lt_cv_to_host_file_cmd=func_convert_file_noop
4487 * ) # otherwise, assume *nix
4488 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4490 esac
4492 * ) # unhandled hosts (and "normal" native builds)
4493 lt_cv_to_host_file_cmd=func_convert_file_noop
4495 esac
4499 to_host_file_cmd=$lt_cv_to_host_file_cmd
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4501 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4508 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4509 if ${lt_cv_to_tool_file_cmd+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 #assume ordinary cross tools, or native build.
4513 lt_cv_to_tool_file_cmd=func_convert_file_noop
4514 case $host in
4515 *-*-mingw* )
4516 case $build in
4517 *-*-mingw* ) # actually msys
4518 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4520 esac
4522 esac
4526 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4528 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4535 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4536 if ${lt_cv_ld_reload_flag+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 lt_cv_ld_reload_flag='-r'
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4542 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4543 reload_flag=$lt_cv_ld_reload_flag
4544 case $reload_flag in
4545 "" | " "*) ;;
4546 *) reload_flag=" $reload_flag" ;;
4547 esac
4548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4549 case $host_os in
4550 cygwin* | mingw* | pw32* | cegcc*)
4551 if test "$GCC" != yes; then
4552 reload_cmds=false
4555 darwin*)
4556 if test "$GCC" = yes; then
4557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4558 else
4559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4562 esac
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_OBJDUMP+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$OBJDUMP"; then
4581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 OBJDUMP=$ac_cv_prog_OBJDUMP
4601 if test -n "$OBJDUMP"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4603 $as_echo "$OBJDUMP" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4611 if test -z "$ac_cv_prog_OBJDUMP"; then
4612 ac_ct_OBJDUMP=$OBJDUMP
4613 # Extract the first word of "objdump", so it can be a program name with args.
4614 set dummy objdump; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$ac_ct_OBJDUMP"; then
4621 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4641 if test -n "$ac_ct_OBJDUMP"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4643 $as_echo "$ac_ct_OBJDUMP" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4649 if test "x$ac_ct_OBJDUMP" = x; then
4650 OBJDUMP="false"
4651 else
4652 case $cross_compiling:$ac_tool_warned in
4653 yes:)
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656 ac_tool_warned=yes ;;
4657 esac
4658 OBJDUMP=$ac_ct_OBJDUMP
4660 else
4661 OBJDUMP="$ac_cv_prog_OBJDUMP"
4664 test -z "$OBJDUMP" && OBJDUMP=objdump
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4673 if ${lt_cv_deplibs_check_method+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 lt_cv_file_magic_cmd='$MAGIC_CMD'
4677 lt_cv_file_magic_test_file=
4678 lt_cv_deplibs_check_method='unknown'
4679 # Need to set the preceding variable on all platforms that support
4680 # interlibrary dependencies.
4681 # 'none' -- dependencies not supported.
4682 # `unknown' -- same as none, but documents that we really don't know.
4683 # 'pass_all' -- all dependencies passed with no checks.
4684 # 'test_compile' -- check by making test program.
4685 # 'file_magic [[regex]]' -- check by looking for files in library path
4686 # which responds to the $file_magic_cmd with a given extended regex.
4687 # If you have `file' or equivalent on your system and you're not sure
4688 # whether `pass_all' will *always* work, you probably want this one.
4690 case $host_os in
4691 aix[4-9]*)
4692 lt_cv_deplibs_check_method=pass_all
4695 beos*)
4696 lt_cv_deplibs_check_method=pass_all
4699 bsdi[45]*)
4700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4701 lt_cv_file_magic_cmd='/usr/bin/file -L'
4702 lt_cv_file_magic_test_file=/shlib/libc.so
4705 cygwin*)
4706 # func_win32_libid is a shell function defined in ltmain.sh
4707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4708 lt_cv_file_magic_cmd='func_win32_libid'
4711 mingw* | pw32*)
4712 # Base MSYS/MinGW do not provide the 'file' command needed by
4713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4714 # unless we find 'file', for example because we are cross-compiling.
4715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4718 lt_cv_file_magic_cmd='func_win32_libid'
4719 else
4720 # Keep this pattern in sync with the one in func_win32_libid.
4721 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4722 lt_cv_file_magic_cmd='$OBJDUMP -f'
4726 cegcc*)
4727 # use the weaker test based on 'objdump'. See mingw*.
4728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4729 lt_cv_file_magic_cmd='$OBJDUMP -f'
4732 darwin* | rhapsody*)
4733 lt_cv_deplibs_check_method=pass_all
4736 freebsd* | dragonfly*)
4737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4738 case $host_cpu in
4739 i*86 )
4740 # Not sure whether the presence of OpenBSD here was a mistake.
4741 # Let's accept both of them until this is cleared up.
4742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4743 lt_cv_file_magic_cmd=/usr/bin/file
4744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4746 esac
4747 else
4748 lt_cv_deplibs_check_method=pass_all
4752 gnu*)
4753 lt_cv_deplibs_check_method=pass_all
4756 haiku*)
4757 lt_cv_deplibs_check_method=pass_all
4760 hpux10.20* | hpux11*)
4761 lt_cv_file_magic_cmd=/usr/bin/file
4762 case $host_cpu in
4763 ia64*)
4764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4765 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4767 hppa*64*)
4768 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]'
4769 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4773 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4775 esac
4778 interix[3-9]*)
4779 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4783 irix5* | irix6* | nonstopux*)
4784 case $LD in
4785 *-32|*"-32 ") libmagic=32-bit;;
4786 *-n32|*"-n32 ") libmagic=N32;;
4787 *-64|*"-64 ") libmagic=64-bit;;
4788 *) libmagic=never-match;;
4789 esac
4790 lt_cv_deplibs_check_method=pass_all
4793 # This must be Linux ELF.
4794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4795 lt_cv_deplibs_check_method=pass_all
4798 netbsd* | netbsdelf*-gnu)
4799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4801 else
4802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4806 newos6*)
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4808 lt_cv_file_magic_cmd=/usr/bin/file
4809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4812 *nto* | *qnx*)
4813 lt_cv_deplibs_check_method=pass_all
4816 openbsd*)
4817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4819 else
4820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4824 osf3* | osf4* | osf5*)
4825 lt_cv_deplibs_check_method=pass_all
4828 rdos*)
4829 lt_cv_deplibs_check_method=pass_all
4832 solaris*)
4833 lt_cv_deplibs_check_method=pass_all
4836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4837 lt_cv_deplibs_check_method=pass_all
4840 sysv4 | sysv4.3*)
4841 case $host_vendor in
4842 motorola)
4843 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]'
4844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4846 ncr)
4847 lt_cv_deplibs_check_method=pass_all
4849 sequent)
4850 lt_cv_file_magic_cmd='/bin/file'
4851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4853 sni)
4854 lt_cv_file_magic_cmd='/bin/file'
4855 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4856 lt_cv_file_magic_test_file=/lib/libc.so
4858 siemens)
4859 lt_cv_deplibs_check_method=pass_all
4862 lt_cv_deplibs_check_method=pass_all
4864 esac
4867 tpf*)
4868 lt_cv_deplibs_check_method=pass_all
4870 esac
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4876 file_magic_glob=
4877 want_nocaseglob=no
4878 if test "$build" = "$host"; then
4879 case $host_os in
4880 mingw* | pw32*)
4881 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4882 want_nocaseglob=yes
4883 else
4884 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4887 esac
4890 file_magic_cmd=$lt_cv_file_magic_cmd
4891 deplibs_check_method=$lt_cv_deplibs_check_method
4892 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4915 if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_DLLTOOL+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$DLLTOOL"; then
4924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 DLLTOOL=$ac_cv_prog_DLLTOOL
4944 if test -n "$DLLTOOL"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4946 $as_echo "$DLLTOOL" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4954 if test -z "$ac_cv_prog_DLLTOOL"; then
4955 ac_ct_DLLTOOL=$DLLTOOL
4956 # Extract the first word of "dlltool", so it can be a program name with args.
4957 set dummy dlltool; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$ac_ct_DLLTOOL"; then
4964 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4984 if test -n "$ac_ct_DLLTOOL"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4986 $as_echo "$ac_ct_DLLTOOL" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4992 if test "x$ac_ct_DLLTOOL" = x; then
4993 DLLTOOL="false"
4994 else
4995 case $cross_compiling:$ac_tool_warned in
4996 yes:)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4999 ac_tool_warned=yes ;;
5000 esac
5001 DLLTOOL=$ac_ct_DLLTOOL
5003 else
5004 DLLTOOL="$ac_cv_prog_DLLTOOL"
5007 test -z "$DLLTOOL" && DLLTOOL=dlltool
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5016 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5017 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 lt_cv_sharedlib_from_linklib_cmd='unknown'
5022 case $host_os in
5023 cygwin* | mingw* | pw32* | cegcc*)
5024 # two different shell functions defined in ltmain.sh
5025 # decide which to use based on capabilities of $DLLTOOL
5026 case `$DLLTOOL --help 2>&1` in
5027 *--identify-strict*)
5028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5031 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5033 esac
5036 # fallback: assume linklib IS sharedlib
5037 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5039 esac
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5043 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5044 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5045 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5054 if test -n "$ac_tool_prefix"; then
5055 for ac_prog in ar
5057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_AR+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$AR"; then
5065 ac_cv_prog_AR="$AR" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 AR=$ac_cv_prog_AR
5085 if test -n "$AR"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5087 $as_echo "$AR" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 test -n "$AR" && break
5095 done
5097 if test -z "$AR"; then
5098 ac_ct_AR=$AR
5099 for ac_prog in ar
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102 set dummy $ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 if test -n "$ac_ct_AR"; then
5109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_ac_ct_AR="$ac_prog"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5129 if test -n "$ac_ct_AR"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5131 $as_echo "$ac_ct_AR" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5138 test -n "$ac_ct_AR" && break
5139 done
5141 if test "x$ac_ct_AR" = x; then
5142 AR="false"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 AR=$ac_ct_AR
5154 : ${AR=ar}
5155 : ${AR_FLAGS=cru}
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5168 $as_echo_n "checking for archiver @FILE support... " >&6; }
5169 if ${lt_cv_ar_at_file+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 lt_cv_ar_at_file=no
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5177 main ()
5181 return 0;
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185 echo conftest.$ac_objext > conftest.lst
5186 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5188 (eval $lt_ar_try) 2>&5
5189 ac_status=$?
5190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5191 test $ac_status = 0; }
5192 if test "$ac_status" -eq 0; then
5193 # Ensure the archiver fails upon bogus file names.
5194 rm -f conftest.$ac_objext libconftest.a
5195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5196 (eval $lt_ar_try) 2>&5
5197 ac_status=$?
5198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199 test $ac_status = 0; }
5200 if test "$ac_status" -ne 0; then
5201 lt_cv_ar_at_file=@
5204 rm -f conftest.* libconftest.a
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5211 $as_echo "$lt_cv_ar_at_file" >&6; }
5213 if test "x$lt_cv_ar_at_file" = xno; then
5214 archiver_list_spec=
5215 else
5216 archiver_list_spec=$lt_cv_ar_at_file
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}strip; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_STRIP+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$STRIP"; then
5234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 STRIP=$ac_cv_prog_STRIP
5254 if test -n "$STRIP"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5256 $as_echo "$STRIP" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5264 if test -z "$ac_cv_prog_STRIP"; then
5265 ac_ct_STRIP=$STRIP
5266 # Extract the first word of "strip", so it can be a program name with args.
5267 set dummy strip; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$ac_ct_STRIP"; then
5274 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_STRIP="strip"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5294 if test -n "$ac_ct_STRIP"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5296 $as_echo "$ac_ct_STRIP" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5302 if test "x$ac_ct_STRIP" = x; then
5303 STRIP=":"
5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306 yes:)
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309 ac_tool_warned=yes ;;
5310 esac
5311 STRIP=$ac_ct_STRIP
5313 else
5314 STRIP="$ac_cv_prog_STRIP"
5317 test -z "$STRIP" && STRIP=:
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_RANLIB+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$RANLIB"; then
5333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 RANLIB=$ac_cv_prog_RANLIB
5353 if test -n "$RANLIB"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5355 $as_echo "$RANLIB" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5363 if test -z "$ac_cv_prog_RANLIB"; then
5364 ac_ct_RANLIB=$RANLIB
5365 # Extract the first word of "ranlib", so it can be a program name with args.
5366 set dummy ranlib; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$ac_ct_RANLIB"; then
5373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_ac_ct_RANLIB="ranlib"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393 if test -n "$ac_ct_RANLIB"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5395 $as_echo "$ac_ct_RANLIB" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5401 if test "x$ac_ct_RANLIB" = x; then
5402 RANLIB=":"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410 RANLIB=$ac_ct_RANLIB
5412 else
5413 RANLIB="$ac_cv_prog_RANLIB"
5416 test -z "$RANLIB" && RANLIB=:
5423 # Determine commands to create old-style static archives.
5424 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5425 old_postinstall_cmds='chmod 644 $oldlib'
5426 old_postuninstall_cmds=
5428 if test -n "$RANLIB"; then
5429 case $host_os in
5430 openbsd*)
5431 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5434 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5436 esac
5437 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5440 case $host_os in
5441 darwin*)
5442 lock_old_archive_extraction=yes ;;
5444 lock_old_archive_extraction=no ;;
5445 esac
5467 for ac_prog in gawk mawk nawk awk
5469 # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_AWK+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$AWK"; then
5477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_AWK="$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 AWK=$ac_cv_prog_AWK
5497 if test -n "$AWK"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5499 $as_echo "$AWK" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 test -n "$AWK" && break
5507 done
5527 # If no C compiler was specified, use CC.
5528 LTCC=${LTCC-"$CC"}
5530 # If no C compiler flags were specified, use CFLAGS.
5531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5533 # Allow CC to be a program name with arguments.
5534 compiler=$CC
5537 # Check for command to grab the raw symbol name followed by C symbol from nm.
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5540 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5544 # These are sane defaults that work on at least a few old systems.
5545 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5547 # Character class describing NM global symbol codes.
5548 symcode='[BCDEGRST]'
5550 # Regexp to match symbols that can be accessed directly from C.
5551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5553 # Define system-specific variables.
5554 case $host_os in
5555 aix*)
5556 symcode='[BCDT]'
5558 cygwin* | mingw* | pw32* | cegcc*)
5559 symcode='[ABCDGISTW]'
5561 hpux*)
5562 if test "$host_cpu" = ia64; then
5563 symcode='[ABCDEGRST]'
5566 irix* | nonstopux*)
5567 symcode='[BCDEGRST]'
5569 osf*)
5570 symcode='[BCDEGQRST]'
5572 solaris*)
5573 symcode='[BDRT]'
5575 sco3.2v5*)
5576 symcode='[DT]'
5578 sysv4.2uw2*)
5579 symcode='[DT]'
5581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5582 symcode='[ABDT]'
5584 sysv4)
5585 symcode='[DFNSTU]'
5587 esac
5589 # If we're using GNU nm, then use its standard symbol codes.
5590 case `$NM -V 2>&1` in
5591 *GNU* | *'with BFD'*)
5592 symcode='[ABCDGIRSTW]' ;;
5593 esac
5595 # Transform an extracted symbol line into a proper C declaration.
5596 # Some systems (esp. on ia64) link data and code symbols differently,
5597 # so use this general approach.
5598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5600 # Transform an extracted symbol line into symbol name and symbol address
5601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5602 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'"
5604 # Handle CRLF in mingw tool chain
5605 opt_cr=
5606 case $build_os in
5607 mingw*)
5608 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5610 esac
5612 # Try without a prefix underscore, then with it.
5613 for ac_symprfx in "" "_"; do
5615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5616 symxfrm="\\1 $ac_symprfx\\2 \\2"
5618 # Write the raw and C identifiers.
5619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5620 # Fake it for dumpbin and say T for any non-static function
5621 # and D for any global variable.
5622 # Also find C++ and __fastcall symbols from MSVC++,
5623 # which start with @ or ?.
5624 lt_cv_sys_global_symbol_pipe="$AWK '"\
5625 " {last_section=section; section=\$ 3};"\
5626 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5627 " \$ 0!~/External *\|/{next};"\
5628 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5629 " {if(hide[section]) next};"\
5630 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5631 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5632 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5633 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5634 " ' prfx=^$ac_symprfx"
5635 else
5636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5638 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5640 # Check to see that the pipe works correctly.
5641 pipe_works=no
5643 rm -f conftest*
5644 cat > conftest.$ac_ext <<_LT_EOF
5645 #ifdef __cplusplus
5646 extern "C" {
5647 #endif
5648 char nm_test_var;
5649 void nm_test_func(void);
5650 void nm_test_func(void){}
5651 #ifdef __cplusplus
5653 #endif
5654 int main(){nm_test_var='a';nm_test_func();return(0);}
5655 _LT_EOF
5657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5658 (eval $ac_compile) 2>&5
5659 ac_status=$?
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }; then
5662 # Now try to grab the symbols.
5663 nlist=conftest.nm
5664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5665 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } && test -s "$nlist"; then
5669 # Try sorting and uniquifying the output.
5670 if sort "$nlist" | uniq > "$nlist"T; then
5671 mv -f "$nlist"T "$nlist"
5672 else
5673 rm -f "$nlist"T
5676 # Make sure that we snagged all the symbols we need.
5677 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5678 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5679 cat <<_LT_EOF > conftest.$ac_ext
5680 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5681 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5682 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5683 relocations are performed -- see ld's documentation on pseudo-relocs. */
5684 # define LT_DLSYM_CONST
5685 #elif defined(__osf__)
5686 /* This system does not cope well with relocations in const data. */
5687 # define LT_DLSYM_CONST
5688 #else
5689 # define LT_DLSYM_CONST const
5690 #endif
5692 #ifdef __cplusplus
5693 extern "C" {
5694 #endif
5696 _LT_EOF
5697 # Now generate the symbol file.
5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5700 cat <<_LT_EOF >> conftest.$ac_ext
5702 /* The mapping between symbol names and symbols. */
5703 LT_DLSYM_CONST struct {
5704 const char *name;
5705 void *address;
5707 lt__PROGRAM__LTX_preloaded_symbols[] =
5709 { "@PROGRAM@", (void *) 0 },
5710 _LT_EOF
5711 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5712 cat <<\_LT_EOF >> conftest.$ac_ext
5713 {0, (void *) 0}
5716 /* This works around a problem in FreeBSD linker */
5717 #ifdef FREEBSD_WORKAROUND
5718 static const void *lt_preloaded_setup() {
5719 return lt__PROGRAM__LTX_preloaded_symbols;
5721 #endif
5723 #ifdef __cplusplus
5725 #endif
5726 _LT_EOF
5727 # Now try linking the two files.
5728 mv conftest.$ac_objext conftstm.$ac_objext
5729 lt_globsym_save_LIBS=$LIBS
5730 lt_globsym_save_CFLAGS=$CFLAGS
5731 LIBS="conftstm.$ac_objext"
5732 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5734 (eval $ac_link) 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5738 pipe_works=yes
5740 LIBS=$lt_globsym_save_LIBS
5741 CFLAGS=$lt_globsym_save_CFLAGS
5742 else
5743 echo "cannot find nm_test_func in $nlist" >&5
5745 else
5746 echo "cannot find nm_test_var in $nlist" >&5
5748 else
5749 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5751 else
5752 echo "$progname: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 rm -rf conftest* conftst*
5757 # Do not use the global_symbol_pipe unless it works.
5758 if test "$pipe_works" = yes; then
5759 break
5760 else
5761 lt_cv_sys_global_symbol_pipe=
5763 done
5767 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5768 lt_cv_sys_global_symbol_to_cdecl=
5770 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5772 $as_echo "failed" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5775 $as_echo "ok" >&6; }
5778 # Response file support.
5779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5780 nm_file_list_spec='@'
5781 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5782 nm_file_list_spec='@'
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5812 $as_echo_n "checking for sysroot... " >&6; }
5814 # Check whether --with-sysroot was given.
5815 if test "${with_sysroot+set}" = set; then :
5816 withval=$with_sysroot;
5817 else
5818 with_sysroot=no
5822 lt_sysroot=
5823 case ${with_sysroot} in #(
5824 yes)
5825 if test "$GCC" = yes; then
5826 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5828 ;; #(
5830 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5831 ;; #(
5832 no|'')
5833 ;; #(
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5836 $as_echo "${with_sysroot}" >&6; }
5837 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5839 esac
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5842 $as_echo "${lt_sysroot:-no}" >&6; }
5848 # Check whether --enable-libtool-lock was given.
5849 if test "${enable_libtool_lock+set}" = set; then :
5850 enableval=$enable_libtool_lock;
5853 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5855 # Some flags need to be propagated to the compiler or linker for good
5856 # libtool support.
5857 case $host in
5858 ia64-*-hpux*)
5859 # Find out which ABI we are using.
5860 echo 'int i;' > conftest.$ac_ext
5861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862 (eval $ac_compile) 2>&5
5863 ac_status=$?
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }; then
5866 case `/usr/bin/file conftest.$ac_objext` in
5867 *ELF-32*)
5868 HPUX_IA64_MODE="32"
5870 *ELF-64*)
5871 HPUX_IA64_MODE="64"
5873 esac
5875 rm -rf conftest*
5877 *-*-irix6*)
5878 # Find out which ABI we are using.
5879 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5881 (eval $ac_compile) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; }; then
5885 if test "$lt_cv_prog_gnu_ld" = yes; then
5886 case `/usr/bin/file conftest.$ac_objext` in
5887 *32-bit*)
5888 LD="${LD-ld} -melf32bsmip"
5890 *N32*)
5891 LD="${LD-ld} -melf32bmipn32"
5893 *64-bit*)
5894 LD="${LD-ld} -melf64bmip"
5896 esac
5897 else
5898 case `/usr/bin/file conftest.$ac_objext` in
5899 *32-bit*)
5900 LD="${LD-ld} -32"
5902 *N32*)
5903 LD="${LD-ld} -n32"
5905 *64-bit*)
5906 LD="${LD-ld} -64"
5908 esac
5911 rm -rf conftest*
5914 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5915 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5916 # Find out which ABI we are using.
5917 echo 'int i;' > conftest.$ac_ext
5918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5919 (eval $ac_compile) 2>&5
5920 ac_status=$?
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; }; then
5923 case `/usr/bin/file conftest.o` in
5924 *32-bit*)
5925 case $host in
5926 x86_64-*kfreebsd*-gnu)
5927 LD="${LD-ld} -m elf_i386_fbsd"
5929 x86_64-*linux*)
5930 LD="${LD-ld} -m elf_i386"
5932 ppc64-*linux*|powerpc64-*linux*)
5933 LD="${LD-ld} -m elf32ppclinux"
5935 s390x-*linux*)
5936 LD="${LD-ld} -m elf_s390"
5938 sparc64-*linux*)
5939 LD="${LD-ld} -m elf32_sparc"
5941 esac
5943 *64-bit*)
5944 case $host in
5945 x86_64-*kfreebsd*-gnu)
5946 LD="${LD-ld} -m elf_x86_64_fbsd"
5948 x86_64-*linux*)
5949 LD="${LD-ld} -m elf_x86_64"
5951 ppc*-*linux*|powerpc*-*linux*)
5952 LD="${LD-ld} -m elf64ppc"
5954 s390*-*linux*|s390*-*tpf*)
5955 LD="${LD-ld} -m elf64_s390"
5957 sparc*-*linux*)
5958 LD="${LD-ld} -m elf64_sparc"
5960 esac
5962 esac
5964 rm -rf conftest*
5967 *-*-sco3.2v5*)
5968 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5969 SAVE_CFLAGS="$CFLAGS"
5970 CFLAGS="$CFLAGS -belf"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5972 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5973 if ${lt_cv_cc_needs_belf+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_ext=c
5977 ac_cpp='$CPP $CPPFLAGS'
5978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5986 main ()
5990 return 0;
5992 _ACEOF
5993 if ac_fn_c_try_link "$LINENO"; then :
5994 lt_cv_cc_needs_belf=yes
5995 else
5996 lt_cv_cc_needs_belf=no
5998 rm -f core conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6008 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011 CFLAGS="$SAVE_CFLAGS"
6014 sparc*-*solaris*)
6015 # Find out which ABI we are using.
6016 echo 'int i;' > conftest.$ac_ext
6017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6018 (eval $ac_compile) 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6021 test $ac_status = 0; }; then
6022 case `/usr/bin/file conftest.o` in
6023 *64-bit*)
6024 case $lt_cv_prog_gnu_ld in
6025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6027 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6028 LD="${LD-ld} -64"
6031 esac
6033 esac
6035 rm -rf conftest*
6037 esac
6039 need_locks="$enable_libtool_lock"
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}mt; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$MANIFEST_TOOL"; then
6050 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6063 done
6064 done
6065 IFS=$as_save_IFS
6069 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6070 if test -n "$MANIFEST_TOOL"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6072 $as_echo "$MANIFEST_TOOL" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6080 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6081 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6082 # Extract the first word of "mt", so it can be a program name with args.
6083 set dummy mt; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$ac_ct_MANIFEST_TOOL"; then
6090 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6105 IFS=$as_save_IFS
6109 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6110 if test -n "$ac_ct_MANIFEST_TOOL"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6112 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6118 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6119 MANIFEST_TOOL=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6129 else
6130 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6133 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6135 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6136 if ${lt_cv_path_mainfest_tool+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 lt_cv_path_mainfest_tool=no
6140 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6141 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6142 cat conftest.err >&5
6143 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6144 lt_cv_path_mainfest_tool=yes
6146 rm -f conftest*
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6149 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6150 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6151 MANIFEST_TOOL=:
6159 case $host_os in
6160 rhapsody* | darwin*)
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$DSYMUTIL"; then
6170 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6190 if test -n "$DSYMUTIL"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6192 $as_echo "$DSYMUTIL" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_DSYMUTIL"; then
6201 ac_ct_DSYMUTIL=$DSYMUTIL
6202 # Extract the first word of "dsymutil", so it can be a program name with args.
6203 set dummy dsymutil; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_DSYMUTIL"; then
6210 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6230 if test -n "$ac_ct_DSYMUTIL"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6232 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_DSYMUTIL" = x; then
6239 DSYMUTIL=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 DSYMUTIL=$ac_ct_DSYMUTIL
6249 else
6250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_NMEDIT+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$NMEDIT"; then
6262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 NMEDIT=$ac_cv_prog_NMEDIT
6282 if test -n "$NMEDIT"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6284 $as_echo "$NMEDIT" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6292 if test -z "$ac_cv_prog_NMEDIT"; then
6293 ac_ct_NMEDIT=$NMEDIT
6294 # Extract the first word of "nmedit", so it can be a program name with args.
6295 set dummy nmedit; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_NMEDIT"; then
6302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6322 if test -n "$ac_ct_NMEDIT"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6324 $as_echo "$ac_ct_NMEDIT" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6330 if test "x$ac_ct_NMEDIT" = x; then
6331 NMEDIT=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 NMEDIT=$ac_ct_NMEDIT
6341 else
6342 NMEDIT="$ac_cv_prog_NMEDIT"
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_LIPO+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$LIPO"; then
6354 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6367 done
6368 done
6369 IFS=$as_save_IFS
6373 LIPO=$ac_cv_prog_LIPO
6374 if test -n "$LIPO"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6376 $as_echo "$LIPO" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6384 if test -z "$ac_cv_prog_LIPO"; then
6385 ac_ct_LIPO=$LIPO
6386 # Extract the first word of "lipo", so it can be a program name with args.
6387 set dummy lipo; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_LIPO"; then
6394 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_LIPO="lipo"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6407 done
6408 done
6409 IFS=$as_save_IFS
6413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6414 if test -n "$ac_ct_LIPO"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6416 $as_echo "$ac_ct_LIPO" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6422 if test "x$ac_ct_LIPO" = x; then
6423 LIPO=":"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 LIPO=$ac_ct_LIPO
6433 else
6434 LIPO="$ac_cv_prog_LIPO"
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}otool; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_OTOOL+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$OTOOL"; then
6446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6465 OTOOL=$ac_cv_prog_OTOOL
6466 if test -n "$OTOOL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6468 $as_echo "$OTOOL" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6476 if test -z "$ac_cv_prog_OTOOL"; then
6477 ac_ct_OTOOL=$OTOOL
6478 # Extract the first word of "otool", so it can be a program name with args.
6479 set dummy otool; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_OTOOL"; then
6486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_OTOOL="otool"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6505 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6506 if test -n "$ac_ct_OTOOL"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6508 $as_echo "$ac_ct_OTOOL" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6514 if test "x$ac_ct_OTOOL" = x; then
6515 OTOOL=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 OTOOL=$ac_ct_OTOOL
6525 else
6526 OTOOL="$ac_cv_prog_OTOOL"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_OTOOL64+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$OTOOL64"; then
6538 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6551 done
6552 done
6553 IFS=$as_save_IFS
6557 OTOOL64=$ac_cv_prog_OTOOL64
6558 if test -n "$OTOOL64"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6560 $as_echo "$OTOOL64" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_OTOOL64"; then
6569 ac_ct_OTOOL64=$OTOOL64
6570 # Extract the first word of "otool64", so it can be a program name with args.
6571 set dummy otool64; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_OTOOL64"; then
6578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_OTOOL64="otool64"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6593 IFS=$as_save_IFS
6597 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6598 if test -n "$ac_ct_OTOOL64"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6600 $as_echo "$ac_ct_OTOOL64" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_OTOOL64" = x; then
6607 OTOOL64=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 OTOOL64=$ac_ct_OTOOL64
6617 else
6618 OTOOL64="$ac_cv_prog_OTOOL64"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6648 $as_echo_n "checking for -single_module linker flag... " >&6; }
6649 if ${lt_cv_apple_cc_single_mod+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 lt_cv_apple_cc_single_mod=no
6653 if test -z "${LT_MULTI_MODULE}"; then
6654 # By default we will add the -single_module flag. You can override
6655 # by either setting the environment variable LT_MULTI_MODULE
6656 # non-empty at configure time, or by adding -multi_module to the
6657 # link flags.
6658 rm -rf libconftest.dylib*
6659 echo "int foo(void){return 1;}" > conftest.c
6660 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6661 -dynamiclib -Wl,-single_module conftest.c" >&5
6662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6663 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6664 _lt_result=$?
6665 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6666 lt_cv_apple_cc_single_mod=yes
6667 else
6668 cat conftest.err >&5
6670 rm -rf libconftest.dylib*
6671 rm -f conftest.*
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6675 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6678 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 lt_cv_ld_exported_symbols_list=no
6682 save_LDFLAGS=$LDFLAGS
6683 echo "_main" > conftest.sym
6684 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6689 main ()
6693 return 0;
6695 _ACEOF
6696 if ac_fn_c_try_link "$LINENO"; then :
6697 lt_cv_ld_exported_symbols_list=yes
6698 else
6699 lt_cv_ld_exported_symbols_list=no
6701 rm -f core conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703 LDFLAGS="$save_LDFLAGS"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6709 $as_echo_n "checking for -force_load linker flag... " >&6; }
6710 if ${lt_cv_ld_force_load+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 lt_cv_ld_force_load=no
6714 cat > conftest.c << _LT_EOF
6715 int forced_loaded() { return 2;}
6716 _LT_EOF
6717 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6718 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6719 echo "$AR cru libconftest.a conftest.o" >&5
6720 $AR cru libconftest.a conftest.o 2>&5
6721 echo "$RANLIB libconftest.a" >&5
6722 $RANLIB libconftest.a 2>&5
6723 cat > conftest.c << _LT_EOF
6724 int main() { return 0;}
6725 _LT_EOF
6726 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6727 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6728 _lt_result=$?
6729 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6730 lt_cv_ld_force_load=yes
6731 else
6732 cat conftest.err >&5
6734 rm -f conftest.err libconftest.a conftest conftest.c
6735 rm -rf conftest.dSYM
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6739 $as_echo "$lt_cv_ld_force_load" >&6; }
6740 case $host_os in
6741 rhapsody* | darwin1.[012])
6742 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6743 darwin1.*)
6744 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6745 darwin*) # darwin 5.x on
6746 # if running on 10.5 or later, the deployment target defaults
6747 # to the OS version, if on x86, and 10.4, the deployment
6748 # target defaults to 10.4. Don't you love it?
6749 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6750 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6751 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6752 10.[012]*)
6753 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6754 10.*)
6755 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6756 esac
6758 esac
6759 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6760 _lt_dar_single_mod='$single_module'
6762 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6763 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6764 else
6765 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6767 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6768 _lt_dsymutil='~$DSYMUTIL $lib || :'
6769 else
6770 _lt_dsymutil=
6773 esac
6775 ac_ext=c
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6781 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6782 # On Suns, sometimes $CPP names a directory.
6783 if test -n "$CPP" && test -d "$CPP"; then
6784 CPP=
6786 if test -z "$CPP"; then
6787 if ${ac_cv_prog_CPP+:} false; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 # Double quotes because CPP needs to be expanded
6791 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6793 ac_preproc_ok=false
6794 for ac_c_preproc_warn_flag in '' yes
6796 # Use a header file that comes with gcc, so configuring glibc
6797 # with a fresh cross-compiler works.
6798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799 # <limits.h> exists even on freestanding compilers.
6800 # On the NeXT, cc -E runs the code through the compiler's parser,
6801 # not just through cpp. "Syntax error" is here to catch this case.
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 #ifdef __STDC__
6805 # include <limits.h>
6806 #else
6807 # include <assert.h>
6808 #endif
6809 Syntax error
6810 _ACEOF
6811 if ac_fn_c_try_cpp "$LINENO"; then :
6813 else
6814 # Broken: fails on valid input.
6815 continue
6817 rm -f conftest.err conftest.i conftest.$ac_ext
6819 # OK, works on sane cases. Now check whether nonexistent headers
6820 # can be detected and how.
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #include <ac_nonexistent.h>
6824 _ACEOF
6825 if ac_fn_c_try_cpp "$LINENO"; then :
6826 # Broken: success on invalid input.
6827 continue
6828 else
6829 # Passes both tests.
6830 ac_preproc_ok=:
6831 break
6833 rm -f conftest.err conftest.i conftest.$ac_ext
6835 done
6836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6837 rm -f conftest.i conftest.err conftest.$ac_ext
6838 if $ac_preproc_ok; then :
6839 break
6842 done
6843 ac_cv_prog_CPP=$CPP
6846 CPP=$ac_cv_prog_CPP
6847 else
6848 ac_cv_prog_CPP=$CPP
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6851 $as_echo "$CPP" >&6; }
6852 ac_preproc_ok=false
6853 for ac_c_preproc_warn_flag in '' yes
6855 # Use a header file that comes with gcc, so configuring glibc
6856 # with a fresh cross-compiler works.
6857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6858 # <limits.h> exists even on freestanding compilers.
6859 # On the NeXT, cc -E runs the code through the compiler's parser,
6860 # not just through cpp. "Syntax error" is here to catch this case.
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #ifdef __STDC__
6864 # include <limits.h>
6865 #else
6866 # include <assert.h>
6867 #endif
6868 Syntax error
6869 _ACEOF
6870 if ac_fn_c_try_cpp "$LINENO"; then :
6872 else
6873 # Broken: fails on valid input.
6874 continue
6876 rm -f conftest.err conftest.i conftest.$ac_ext
6878 # OK, works on sane cases. Now check whether nonexistent headers
6879 # can be detected and how.
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 #include <ac_nonexistent.h>
6883 _ACEOF
6884 if ac_fn_c_try_cpp "$LINENO"; then :
6885 # Broken: success on invalid input.
6886 continue
6887 else
6888 # Passes both tests.
6889 ac_preproc_ok=:
6890 break
6892 rm -f conftest.err conftest.i conftest.$ac_ext
6894 done
6895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896 rm -f conftest.i conftest.err conftest.$ac_ext
6897 if $ac_preproc_ok; then :
6899 else
6900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6902 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6903 See \`config.log' for more details" "$LINENO" 5; }
6906 ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6914 $as_echo_n "checking for ANSI C header files... " >&6; }
6915 if ${ac_cv_header_stdc+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #include <stdlib.h>
6921 #include <stdarg.h>
6922 #include <string.h>
6923 #include <float.h>
6926 main ()
6930 return 0;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"; then :
6934 ac_cv_header_stdc=yes
6935 else
6936 ac_cv_header_stdc=no
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 if test $ac_cv_header_stdc = yes; then
6941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #include <string.h>
6946 _ACEOF
6947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948 $EGREP "memchr" >/dev/null 2>&1; then :
6950 else
6951 ac_cv_header_stdc=no
6953 rm -f conftest*
6957 if test $ac_cv_header_stdc = yes; then
6958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 #include <stdlib.h>
6963 _ACEOF
6964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6965 $EGREP "free" >/dev/null 2>&1; then :
6967 else
6968 ac_cv_header_stdc=no
6970 rm -f conftest*
6974 if test $ac_cv_header_stdc = yes; then
6975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6976 if test "$cross_compiling" = yes; then :
6978 else
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 #include <ctype.h>
6982 #include <stdlib.h>
6983 #if ((' ' & 0x0FF) == 0x020)
6984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 #else
6987 # define ISLOWER(c) \
6988 (('a' <= (c) && (c) <= 'i') \
6989 || ('j' <= (c) && (c) <= 'r') \
6990 || ('s' <= (c) && (c) <= 'z'))
6991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #endif
6994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996 main ()
6998 int i;
6999 for (i = 0; i < 256; i++)
7000 if (XOR (islower (i), ISLOWER (i))
7001 || toupper (i) != TOUPPER (i))
7002 return 2;
7003 return 0;
7005 _ACEOF
7006 if ac_fn_c_try_run "$LINENO"; then :
7008 else
7009 ac_cv_header_stdc=no
7011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7018 $as_echo "$ac_cv_header_stdc" >&6; }
7019 if test $ac_cv_header_stdc = yes; then
7021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7027 inttypes.h stdint.h unistd.h
7028 do :
7029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7033 cat >>confdefs.h <<_ACEOF
7034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7035 _ACEOF
7039 done
7042 for ac_header in dlfcn.h
7043 do :
7044 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7046 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7047 cat >>confdefs.h <<_ACEOF
7048 #define HAVE_DLFCN_H 1
7049 _ACEOF
7053 done
7059 # Set options
7063 enable_dlopen=no
7067 # Check whether --enable-shared was given.
7068 if test "${enable_shared+set}" = set; then :
7069 enableval=$enable_shared; p=${PACKAGE-default}
7070 case $enableval in
7071 yes) enable_shared=yes ;;
7072 no) enable_shared=no ;;
7074 enable_shared=no
7075 # Look at the argument we got. We use all the common list separators.
7076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7077 for pkg in $enableval; do
7078 IFS="$lt_save_ifs"
7079 if test "X$pkg" = "X$p"; then
7080 enable_shared=yes
7082 done
7083 IFS="$lt_save_ifs"
7085 esac
7086 else
7087 enable_shared=yes
7098 # Check whether --enable-static was given.
7099 if test "${enable_static+set}" = set; then :
7100 enableval=$enable_static; p=${PACKAGE-default}
7101 case $enableval in
7102 yes) enable_static=yes ;;
7103 no) enable_static=no ;;
7105 enable_static=no
7106 # Look at the argument we got. We use all the common list separators.
7107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7108 for pkg in $enableval; do
7109 IFS="$lt_save_ifs"
7110 if test "X$pkg" = "X$p"; then
7111 enable_static=yes
7113 done
7114 IFS="$lt_save_ifs"
7116 esac
7117 else
7118 enable_static=yes
7130 # Check whether --with-pic was given.
7131 if test "${with_pic+set}" = set; then :
7132 withval=$with_pic; pic_mode="$withval"
7133 else
7134 pic_mode=default
7138 test -z "$pic_mode" && pic_mode=default
7146 # Check whether --enable-fast-install was given.
7147 if test "${enable_fast_install+set}" = set; then :
7148 enableval=$enable_fast_install; p=${PACKAGE-default}
7149 case $enableval in
7150 yes) enable_fast_install=yes ;;
7151 no) enable_fast_install=no ;;
7153 enable_fast_install=no
7154 # Look at the argument we got. We use all the common list separators.
7155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7156 for pkg in $enableval; do
7157 IFS="$lt_save_ifs"
7158 if test "X$pkg" = "X$p"; then
7159 enable_fast_install=yes
7161 done
7162 IFS="$lt_save_ifs"
7164 esac
7165 else
7166 enable_fast_install=yes
7179 # This can be used to rebuild libtool when needed
7180 LIBTOOL_DEPS="$ltmain"
7182 # Always use our own libtool.
7183 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7210 test -z "$LN_S" && LN_S="ln -s"
7225 if test -n "${ZSH_VERSION+set}" ; then
7226 setopt NO_GLOB_SUBST
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7230 $as_echo_n "checking for objdir... " >&6; }
7231 if ${lt_cv_objdir+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 rm -f .libs 2>/dev/null
7235 mkdir .libs 2>/dev/null
7236 if test -d .libs; then
7237 lt_cv_objdir=.libs
7238 else
7239 # MS-DOS does not allow filenames that begin with a dot.
7240 lt_cv_objdir=_libs
7242 rmdir .libs 2>/dev/null
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7245 $as_echo "$lt_cv_objdir" >&6; }
7246 objdir=$lt_cv_objdir
7252 cat >>confdefs.h <<_ACEOF
7253 #define LT_OBJDIR "$lt_cv_objdir/"
7254 _ACEOF
7259 case $host_os in
7260 aix3*)
7261 # AIX sometimes has problems with the GCC collect2 program. For some
7262 # reason, if we set the COLLECT_NAMES environment variable, the problems
7263 # vanish in a puff of smoke.
7264 if test "X${COLLECT_NAMES+set}" != Xset; then
7265 COLLECT_NAMES=
7266 export COLLECT_NAMES
7269 esac
7271 # Global variables:
7272 ofile=libtool
7273 can_build_shared=yes
7275 # All known linkers require a `.a' archive for static linking (except MSVC,
7276 # which needs '.lib').
7277 libext=a
7279 with_gnu_ld="$lt_cv_prog_gnu_ld"
7281 old_CC="$CC"
7282 old_CFLAGS="$CFLAGS"
7284 # Set sane defaults for various variables
7285 test -z "$CC" && CC=cc
7286 test -z "$LTCC" && LTCC=$CC
7287 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7288 test -z "$LD" && LD=ld
7289 test -z "$ac_objext" && ac_objext=o
7291 for cc_temp in $compiler""; do
7292 case $cc_temp in
7293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7295 \-*) ;;
7296 *) break;;
7297 esac
7298 done
7299 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7302 # Only perform the check for file, if the check method requires it
7303 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7304 case $deplibs_check_method in
7305 file_magic*)
7306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7308 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7309 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 case $MAGIC_CMD in
7313 [\\/*] | ?:[\\/]*)
7314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7317 lt_save_MAGIC_CMD="$MAGIC_CMD"
7318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7320 for ac_dir in $ac_dummy; do
7321 IFS="$lt_save_ifs"
7322 test -z "$ac_dir" && ac_dir=.
7323 if test -f $ac_dir/${ac_tool_prefix}file; then
7324 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7325 if test -n "$file_magic_test_file"; then
7326 case $deplibs_check_method in
7327 "file_magic "*)
7328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7331 $EGREP "$file_magic_regex" > /dev/null; then
7333 else
7334 cat <<_LT_EOF 1>&2
7336 *** Warning: the command libtool uses to detect shared libraries,
7337 *** $file_magic_cmd, produces output that libtool cannot recognize.
7338 *** The result is that libtool may fail to recognize shared libraries
7339 *** as such. This will affect the creation of libtool libraries that
7340 *** depend on shared libraries, but programs linked with such libtool
7341 *** libraries will work regardless of this problem. Nevertheless, you
7342 *** may want to report the problem to your system manager and/or to
7343 *** bug-libtool@gnu.org
7345 _LT_EOF
7346 fi ;;
7347 esac
7349 break
7351 done
7352 IFS="$lt_save_ifs"
7353 MAGIC_CMD="$lt_save_MAGIC_CMD"
7355 esac
7358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7359 if test -n "$MAGIC_CMD"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7361 $as_echo "$MAGIC_CMD" >&6; }
7362 else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7371 if test -z "$lt_cv_path_MAGIC_CMD"; then
7372 if test -n "$ac_tool_prefix"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7374 $as_echo_n "checking for file... " >&6; }
7375 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 case $MAGIC_CMD in
7379 [\\/*] | ?:[\\/]*)
7380 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7383 lt_save_MAGIC_CMD="$MAGIC_CMD"
7384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7386 for ac_dir in $ac_dummy; do
7387 IFS="$lt_save_ifs"
7388 test -z "$ac_dir" && ac_dir=.
7389 if test -f $ac_dir/file; then
7390 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7391 if test -n "$file_magic_test_file"; then
7392 case $deplibs_check_method in
7393 "file_magic "*)
7394 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7397 $EGREP "$file_magic_regex" > /dev/null; then
7399 else
7400 cat <<_LT_EOF 1>&2
7402 *** Warning: the command libtool uses to detect shared libraries,
7403 *** $file_magic_cmd, produces output that libtool cannot recognize.
7404 *** The result is that libtool may fail to recognize shared libraries
7405 *** as such. This will affect the creation of libtool libraries that
7406 *** depend on shared libraries, but programs linked with such libtool
7407 *** libraries will work regardless of this problem. Nevertheless, you
7408 *** may want to report the problem to your system manager and/or to
7409 *** bug-libtool@gnu.org
7411 _LT_EOF
7412 fi ;;
7413 esac
7415 break
7417 done
7418 IFS="$lt_save_ifs"
7419 MAGIC_CMD="$lt_save_MAGIC_CMD"
7421 esac
7424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425 if test -n "$MAGIC_CMD"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7427 $as_echo "$MAGIC_CMD" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 else
7435 MAGIC_CMD=:
7441 esac
7443 # Use C for the default configuration in the libtool script
7445 lt_save_CC="$CC"
7446 ac_ext=c
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453 # Source file extension for C test sources.
7454 ac_ext=c
7456 # Object file extension for compiled C test sources.
7457 objext=o
7458 objext=$objext
7460 # Code to be used in simple compile tests
7461 lt_simple_compile_test_code="int some_variable = 0;"
7463 # Code to be used in simple link tests
7464 lt_simple_link_test_code='int main(){return(0);}'
7472 # If no C compiler was specified, use CC.
7473 LTCC=${LTCC-"$CC"}
7475 # If no C compiler flags were specified, use CFLAGS.
7476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478 # Allow CC to be a program name with arguments.
7479 compiler=$CC
7481 # Save the default compiler, since it gets overwritten when the other
7482 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7483 compiler_DEFAULT=$CC
7485 # save warnings/boilerplate of simple test code
7486 ac_outfile=conftest.$ac_objext
7487 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7489 _lt_compiler_boilerplate=`cat conftest.err`
7490 $RM conftest*
7492 ac_outfile=conftest.$ac_objext
7493 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7495 _lt_linker_boilerplate=`cat conftest.err`
7496 $RM -r conftest*
7499 if test -n "$compiler"; then
7501 lt_prog_compiler_no_builtin_flag=
7503 if test "$GCC" = yes; then
7504 case $cc_basename in
7505 nvcc*)
7506 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7508 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7509 esac
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7512 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7513 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 lt_cv_prog_compiler_rtti_exceptions=no
7517 ac_outfile=conftest.$ac_objext
7518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7519 lt_compiler_flag="-fno-rtti -fno-exceptions"
7520 # Insert the option either (1) after the last *FLAGS variable, or
7521 # (2) before a word containing "conftest.", or (3) at the end.
7522 # Note that $ac_compile itself does not contain backslashes and begins
7523 # with a dollar sign (not a hyphen), so the echo should work correctly.
7524 # The option is referenced via a variable to avoid confusing sed.
7525 lt_compile=`echo "$ac_compile" | $SED \
7526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7528 -e 's:$: $lt_compiler_flag:'`
7529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7530 (eval "$lt_compile" 2>conftest.err)
7531 ac_status=$?
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 if (exit $ac_status) && test -s "$ac_outfile"; then
7535 # The compiler can only warn and ignore the option if not recognized
7536 # So say no if there are warnings other than the usual output.
7537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7539 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7540 lt_cv_prog_compiler_rtti_exceptions=yes
7543 $RM conftest*
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7547 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7550 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7551 else
7562 lt_prog_compiler_wl=
7563 lt_prog_compiler_pic=
7564 lt_prog_compiler_static=
7567 if test "$GCC" = yes; then
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_static='-static'
7571 case $host_os in
7572 aix*)
7573 # All AIX code is PIC.
7574 if test "$host_cpu" = ia64; then
7575 # AIX 5 now supports IA64 processor
7576 lt_prog_compiler_static='-Bstatic'
7580 amigaos*)
7581 case $host_cpu in
7582 powerpc)
7583 # see comment about AmigaOS4 .so support
7584 lt_prog_compiler_pic='-fPIC'
7586 m68k)
7587 # FIXME: we need at least 68020 code to build shared libraries, but
7588 # adding the `-m68020' flag to GCC prevents building anything better,
7589 # like `-m68040'.
7590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7592 esac
7595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7596 # PIC is the default for these OSes.
7599 mingw* | cygwin* | pw32* | os2* | cegcc*)
7600 # This hack is so that the source file can tell whether it is being
7601 # built for inclusion in a dll (and should export symbols for example).
7602 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7603 # (--disable-auto-import) libraries
7604 lt_prog_compiler_pic='-DDLL_EXPORT'
7607 darwin* | rhapsody*)
7608 # PIC is the default on this platform
7609 # Common symbols not allowed in MH_DYLIB files
7610 lt_prog_compiler_pic='-fno-common'
7613 haiku*)
7614 # PIC is the default for Haiku.
7615 # The "-static" flag exists, but is broken.
7616 lt_prog_compiler_static=
7619 hpux*)
7620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7622 # sets the default TLS model and affects inlining.
7623 case $host_cpu in
7624 hppa*64*)
7625 # +Z the default
7628 lt_prog_compiler_pic='-fPIC'
7630 esac
7633 interix[3-9]*)
7634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635 # Instead, we relocate shared libraries at runtime.
7638 msdosdjgpp*)
7639 # Just because we use GCC doesn't mean we suddenly get shared libraries
7640 # on systems that don't support them.
7641 lt_prog_compiler_can_build_shared=no
7642 enable_shared=no
7645 *nto* | *qnx*)
7646 # QNX uses GNU C++, but need to define -shared option too, otherwise
7647 # it will coredump.
7648 lt_prog_compiler_pic='-fPIC -shared'
7651 sysv4*MP*)
7652 if test -d /usr/nec; then
7653 lt_prog_compiler_pic=-Kconform_pic
7658 lt_prog_compiler_pic='-fPIC'
7660 esac
7662 case $cc_basename in
7663 nvcc*) # Cuda Compiler Driver 2.2
7664 lt_prog_compiler_wl='-Xlinker '
7665 lt_prog_compiler_pic='-Xcompiler -fPIC'
7667 esac
7668 else
7669 # PORTME Check for flag to pass linker flags through the system compiler.
7670 case $host_os in
7671 aix*)
7672 lt_prog_compiler_wl='-Wl,'
7673 if test "$host_cpu" = ia64; then
7674 # AIX 5 now supports IA64 processor
7675 lt_prog_compiler_static='-Bstatic'
7676 else
7677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7681 mingw* | cygwin* | pw32* | os2* | cegcc*)
7682 # This hack is so that the source file can tell whether it is being
7683 # built for inclusion in a dll (and should export symbols for example).
7684 lt_prog_compiler_pic='-DDLL_EXPORT'
7687 hpux9* | hpux10* | hpux11*)
7688 lt_prog_compiler_wl='-Wl,'
7689 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7690 # not for PA HP-UX.
7691 case $host_cpu in
7692 hppa*64*|ia64*)
7693 # +Z the default
7696 lt_prog_compiler_pic='+Z'
7698 esac
7699 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7700 lt_prog_compiler_static='${wl}-a ${wl}archive'
7703 irix5* | irix6* | nonstopux*)
7704 lt_prog_compiler_wl='-Wl,'
7705 # PIC (with -KPIC) is the default.
7706 lt_prog_compiler_static='-non_shared'
7709 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7710 case $cc_basename in
7711 # old Intel for x86_64 which still supported -KPIC.
7712 ecc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-static'
7717 # icc used to be incompatible with GCC.
7718 # ICC 10 doesn't accept -KPIC any more.
7719 icc* | ifort*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-fPIC'
7722 lt_prog_compiler_static='-static'
7724 # Lahey Fortran 8.1.
7725 lf95*)
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_pic='--shared'
7728 lt_prog_compiler_static='--static'
7730 nagfor*)
7731 # NAG Fortran compiler
7732 lt_prog_compiler_wl='-Wl,-Wl,,'
7733 lt_prog_compiler_pic='-PIC'
7734 lt_prog_compiler_static='-Bstatic'
7736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7737 # Portland Group compilers (*not* the Pentium gcc compiler,
7738 # which looks to be a dead project)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fpic'
7741 lt_prog_compiler_static='-Bstatic'
7743 ccc*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # All Alpha code is PIC.
7746 lt_prog_compiler_static='-non_shared'
7748 xl* | bgxl* | bgf* | mpixl*)
7749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-qpic'
7752 lt_prog_compiler_static='-qstaticlink'
7755 case `$CC -V 2>&1 | sed 5q` in
7756 *Sun\ F* | *Sun*Fortran*)
7757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 lt_prog_compiler_wl=''
7762 *Sun\ C*)
7763 # Sun C 5.9
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 lt_prog_compiler_wl='-Wl,'
7768 esac
7770 esac
7773 newsos6)
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7778 *nto* | *qnx*)
7779 # QNX uses GNU C++, but need to define -shared option too, otherwise
7780 # it will coredump.
7781 lt_prog_compiler_pic='-fPIC -shared'
7784 osf3* | osf4* | osf5*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All OSF/1 code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7790 rdos*)
7791 lt_prog_compiler_static='-non_shared'
7794 solaris*)
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 case $cc_basename in
7798 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7799 lt_prog_compiler_wl='-Qoption ld ';;
7801 lt_prog_compiler_wl='-Wl,';;
7802 esac
7805 sunos4*)
7806 lt_prog_compiler_wl='-Qoption ld '
7807 lt_prog_compiler_pic='-PIC'
7808 lt_prog_compiler_static='-Bstatic'
7811 sysv4 | sysv4.2uw2* | sysv4.3*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7817 sysv4*MP*)
7818 if test -d /usr/nec ;then
7819 lt_prog_compiler_pic='-Kconform_pic'
7820 lt_prog_compiler_static='-Bstatic'
7824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7830 unicos*)
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_can_build_shared=no
7835 uts4*)
7836 lt_prog_compiler_pic='-pic'
7837 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_can_build_shared=no
7843 esac
7846 case $host_os in
7847 # For platforms which do not support PIC, -DPIC is meaningless:
7848 *djgpp*)
7849 lt_prog_compiler_pic=
7852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7854 esac
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7857 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7858 if ${lt_cv_prog_compiler_pic+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7864 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7865 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7868 # Check to make sure the PIC flag actually works.
7870 if test -n "$lt_prog_compiler_pic"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7873 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 lt_cv_prog_compiler_pic_works=no
7877 ac_outfile=conftest.$ac_objext
7878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7880 # Insert the option either (1) after the last *FLAGS variable, or
7881 # (2) before a word containing "conftest.", or (3) at the end.
7882 # Note that $ac_compile itself does not contain backslashes and begins
7883 # with a dollar sign (not a hyphen), so the echo should work correctly.
7884 # The option is referenced via a variable to avoid confusing sed.
7885 lt_compile=`echo "$ac_compile" | $SED \
7886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888 -e 's:$: $lt_compiler_flag:'`
7889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7890 (eval "$lt_compile" 2>conftest.err)
7891 ac_status=$?
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 if (exit $ac_status) && test -s "$ac_outfile"; then
7895 # The compiler can only warn and ignore the option if not recognized
7896 # So say no if there are warnings other than the usual output.
7897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900 lt_cv_prog_compiler_pic_works=yes
7903 $RM conftest*
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7907 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7909 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7910 case $lt_prog_compiler_pic in
7911 "" | " "*) ;;
7912 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7913 esac
7914 else
7915 lt_prog_compiler_pic=
7916 lt_prog_compiler_can_build_shared=no
7932 # Check to make sure the static flag actually works.
7934 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7937 if ${lt_cv_prog_compiler_static_works+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 lt_cv_prog_compiler_static_works=no
7941 save_LDFLAGS="$LDFLAGS"
7942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7945 # The linker can only warn and ignore the option if not recognized
7946 # So say no if there are warnings
7947 if test -s conftest.err; then
7948 # Append any errors to the config.log.
7949 cat conftest.err 1>&5
7950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7952 if diff conftest.exp conftest.er2 >/dev/null; then
7953 lt_cv_prog_compiler_static_works=yes
7955 else
7956 lt_cv_prog_compiler_static_works=yes
7959 $RM -r conftest*
7960 LDFLAGS="$save_LDFLAGS"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7964 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7966 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7968 else
7969 lt_prog_compiler_static=
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7979 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980 if ${lt_cv_prog_compiler_c_o+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_prog_compiler_c_o=no
7984 $RM -r conftest 2>/dev/null
7985 mkdir conftest
7986 cd conftest
7987 mkdir out
7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990 lt_compiler_flag="-o out/conftest2.$ac_objext"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 lt_compile=`echo "$ac_compile" | $SED \
7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998 -e 's:$: $lt_compiler_flag:'`
7999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8000 (eval "$lt_compile" 2>out/conftest.err)
8001 ac_status=$?
8002 cat out/conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005 then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings
8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_c_o=yes
8014 chmod u+w . 2>&5
8015 $RM conftest*
8016 # SGI C++ compiler will create directory out/ii_files/ for
8017 # template instantiation
8018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8019 $RM out/* && rmdir out
8020 cd ..
8021 $RM -r conftest
8022 $RM conftest*
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8026 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035 if ${lt_cv_prog_compiler_c_o+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 lt_cv_prog_compiler_c_o=no
8039 $RM -r conftest 2>/dev/null
8040 mkdir conftest
8041 cd conftest
8042 mkdir out
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8045 lt_compiler_flag="-o out/conftest2.$ac_objext"
8046 # Insert the option either (1) after the last *FLAGS variable, or
8047 # (2) before a word containing "conftest.", or (3) at the end.
8048 # Note that $ac_compile itself does not contain backslashes and begins
8049 # with a dollar sign (not a hyphen), so the echo should work correctly.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055 (eval "$lt_compile" 2>out/conftest.err)
8056 ac_status=$?
8057 cat out/conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060 then
8061 # The compiler can only warn and ignore the option if not recognized
8062 # So say no if there are warnings
8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066 lt_cv_prog_compiler_c_o=yes
8069 chmod u+w . 2>&5
8070 $RM conftest*
8071 # SGI C++ compiler will create directory out/ii_files/ for
8072 # template instantiation
8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074 $RM out/* && rmdir out
8075 cd ..
8076 $RM -r conftest
8077 $RM conftest*
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8086 hard_links="nottested"
8087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088 # do not overwrite the value of need_locks provided by the user
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8090 $as_echo_n "checking if we can lock with hard links... " >&6; }
8091 hard_links=yes
8092 $RM conftest*
8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094 touch conftest.a
8095 ln conftest.a conftest.b 2>&5 || hard_links=no
8096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8098 $as_echo "$hard_links" >&6; }
8099 if test "$hard_links" = no; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102 need_locks=warn
8104 else
8105 need_locks=no
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8114 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8116 runpath_var=
8117 allow_undefined_flag=
8118 always_export_symbols=no
8119 archive_cmds=
8120 archive_expsym_cmds=
8121 compiler_needs_object=no
8122 enable_shared_with_static_runtimes=no
8123 export_dynamic_flag_spec=
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8125 hardcode_automatic=no
8126 hardcode_direct=no
8127 hardcode_direct_absolute=no
8128 hardcode_libdir_flag_spec=
8129 hardcode_libdir_flag_spec_ld=
8130 hardcode_libdir_separator=
8131 hardcode_minus_L=no
8132 hardcode_shlibpath_var=unsupported
8133 inherit_rpath=no
8134 link_all_deplibs=unknown
8135 module_cmds=
8136 module_expsym_cmds=
8137 old_archive_from_new_cmds=
8138 old_archive_from_expsyms_cmds=
8139 thread_safe_flag_spec=
8140 whole_archive_flag_spec=
8141 # include_expsyms should be a list of space-separated symbols to be *always*
8142 # included in the symbol list
8143 include_expsyms=
8144 # exclude_expsyms can be an extended regexp of symbols to exclude
8145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8147 # as well as any symbol that contains `d'.
8148 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8150 # platforms (ab)use it in PIC code, but their linkers get confused if
8151 # the symbol is explicitly referenced. Since portable code cannot
8152 # rely on this symbol name, it's probably fine to never include it in
8153 # preloaded symbol tables.
8154 # Exclude shared library initialization/finalization symbols.
8155 extract_expsyms_cmds=
8157 case $host_os in
8158 cygwin* | mingw* | pw32* | cegcc*)
8159 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8160 # When not using gcc, we currently assume that we are using
8161 # Microsoft Visual C++.
8162 if test "$GCC" != yes; then
8163 with_gnu_ld=no
8166 interix*)
8167 # we just hope/assume this is gcc and not c89 (= MSVC++)
8168 with_gnu_ld=yes
8170 openbsd*)
8171 with_gnu_ld=no
8173 linux* | k*bsd*-gnu | gnu*)
8174 link_all_deplibs=no
8176 esac
8178 ld_shlibs=yes
8180 # On some targets, GNU ld is compatible enough with the native linker
8181 # that we're better off using the native interface for both.
8182 lt_use_gnu_ld_interface=no
8183 if test "$with_gnu_ld" = yes; then
8184 case $host_os in
8185 aix*)
8186 # The AIX port of GNU ld has always aspired to compatibility
8187 # with the native linker. However, as the warning in the GNU ld
8188 # block says, versions before 2.19.5* couldn't really create working
8189 # shared libraries, regardless of the interface used.
8190 case `$LD -v 2>&1` in
8191 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8192 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8193 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8195 lt_use_gnu_ld_interface=yes
8197 esac
8200 lt_use_gnu_ld_interface=yes
8202 esac
8205 if test "$lt_use_gnu_ld_interface" = yes; then
8206 # If archive_cmds runs LD, not CC, wlarc should be empty
8207 wlarc='${wl}'
8209 # Set some defaults for GNU ld with shared library support. These
8210 # are reset later if shared libraries are not supported. Putting them
8211 # here allows them to be overridden if necessary.
8212 runpath_var=LD_RUN_PATH
8213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8214 export_dynamic_flag_spec='${wl}--export-dynamic'
8215 # ancient GNU ld didn't support --whole-archive et. al.
8216 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8217 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218 else
8219 whole_archive_flag_spec=
8221 supports_anon_versioning=no
8222 case `$LD -v 2>&1` in
8223 *GNU\ gold*) supports_anon_versioning=yes ;;
8224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8227 *\ 2.11.*) ;; # other 2.11 versions
8228 *) supports_anon_versioning=yes ;;
8229 esac
8231 # See if GNU ld supports shared libraries.
8232 case $host_os in
8233 aix[3-9]*)
8234 # On AIX/PPC, the GNU linker is very broken
8235 if test "$host_cpu" != ia64; then
8236 ld_shlibs=no
8237 cat <<_LT_EOF 1>&2
8239 *** Warning: the GNU linker, at least up to release 2.19, is reported
8240 *** to be unable to reliably create shared libraries on AIX.
8241 *** Therefore, libtool is disabling shared libraries support. If you
8242 *** really care for shared libraries, you may want to install binutils
8243 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8244 *** You will then need to restart the configuration process.
8246 _LT_EOF
8250 amigaos*)
8251 case $host_cpu in
8252 powerpc)
8253 # see comment about AmigaOS4 .so support
8254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255 archive_expsym_cmds=''
8257 m68k)
8258 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)'
8259 hardcode_libdir_flag_spec='-L$libdir'
8260 hardcode_minus_L=yes
8262 esac
8265 beos*)
8266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8267 allow_undefined_flag=unsupported
8268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8269 # support --undefined. This deserves some investigation. FIXME
8270 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 else
8272 ld_shlibs=no
8276 cygwin* | mingw* | pw32* | cegcc*)
8277 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8278 # as there is no search path for DLLs.
8279 hardcode_libdir_flag_spec='-L$libdir'
8280 export_dynamic_flag_spec='${wl}--export-all-symbols'
8281 allow_undefined_flag=unsupported
8282 always_export_symbols=no
8283 enable_shared_with_static_runtimes=yes
8284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8285 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8287 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8289 # If the export-symbols file already is a .def file (1st line
8290 # is EXPORTS), use it as is; otherwise, prepend...
8291 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8292 cp $export_symbols $output_objdir/$soname.def;
8293 else
8294 echo EXPORTS > $output_objdir/$soname.def;
8295 cat $export_symbols >> $output_objdir/$soname.def;
8297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298 else
8299 ld_shlibs=no
8303 haiku*)
8304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305 link_all_deplibs=yes
8308 interix[3-9]*)
8309 hardcode_direct=no
8310 hardcode_shlibpath_var=no
8311 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312 export_dynamic_flag_spec='${wl}-E'
8313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314 # Instead, shared libraries are loaded at an image base (0x10000000 by
8315 # default) and relocated if they conflict, which is a slow very memory
8316 # consuming and fragmenting process. To avoid this, we pick a random,
8317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320 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'
8323 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8324 tmp_diet=no
8325 if test "$host_os" = linux-dietlibc; then
8326 case $cc_basename in
8327 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8328 esac
8330 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8331 && test "$tmp_diet" = no
8332 then
8333 tmp_addflag=' $pic_flag'
8334 tmp_sharedflag='-shared'
8335 case $cc_basename,$host_cpu in
8336 pgcc*) # Portland Group C compiler
8337 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'
8338 tmp_addflag=' $pic_flag'
8340 pgf77* | pgf90* | pgf95* | pgfortran*)
8341 # Portland Group f77 and f90 compilers
8342 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'
8343 tmp_addflag=' $pic_flag -Mnomain' ;;
8344 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8345 tmp_addflag=' -i_dynamic' ;;
8346 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8347 tmp_addflag=' -i_dynamic -nofor_main' ;;
8348 ifc* | ifort*) # Intel Fortran compiler
8349 tmp_addflag=' -nofor_main' ;;
8350 lf95*) # Lahey Fortran 8.1
8351 whole_archive_flag_spec=
8352 tmp_sharedflag='--shared' ;;
8353 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8354 tmp_sharedflag='-qmkshrobj'
8355 tmp_addflag= ;;
8356 nvcc*) # Cuda Compiler Driver 2.2
8357 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'
8358 compiler_needs_object=yes
8360 esac
8361 case `$CC -V 2>&1 | sed 5q` in
8362 *Sun\ C*) # Sun C 5.9
8363 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'
8364 compiler_needs_object=yes
8365 tmp_sharedflag='-G' ;;
8366 *Sun\ F*) # Sun Fortran 8.3
8367 tmp_sharedflag='-G' ;;
8368 esac
8369 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 if test "x$supports_anon_versioning" = xyes; then
8372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374 echo "local: *; };" >> $output_objdir/$libname.ver~
8375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8378 case $cc_basename in
8379 xlf* | bgf* | bgxlf* | mpixlf*)
8380 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8381 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8382 hardcode_libdir_flag_spec=
8383 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8384 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8385 if test "x$supports_anon_versioning" = xyes; then
8386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8388 echo "local: *; };" >> $output_objdir/$libname.ver~
8389 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8392 esac
8393 else
8394 ld_shlibs=no
8398 netbsd* | netbsdelf*-gnu)
8399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8401 wlarc=
8402 else
8403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408 solaris*)
8409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8410 ld_shlibs=no
8411 cat <<_LT_EOF 1>&2
8413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8414 *** create shared libraries on Solaris systems. Therefore, libtool
8415 *** is disabling shared libraries support. We urge you to upgrade GNU
8416 *** binutils to release 2.9.1 or newer. Another option is to modify
8417 *** your PATH or compiler configuration so that the native linker is
8418 *** used, and then restart.
8420 _LT_EOF
8421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8424 else
8425 ld_shlibs=no
8429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8430 case `$LD -v 2>&1` in
8431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8432 ld_shlibs=no
8433 cat <<_LT_EOF 1>&2
8435 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8436 *** reliably create shared libraries on SCO systems. Therefore, libtool
8437 *** is disabling shared libraries support. We urge you to upgrade GNU
8438 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8439 *** your PATH or compiler configuration so that the native linker is
8440 *** used, and then restart.
8442 _LT_EOF
8445 # For security reasons, it is highly recommended that you always
8446 # use absolute paths for naming shared libraries, and exclude the
8447 # DT_RUNPATH tag from executables and libraries. But doing so
8448 # requires that you compile everything twice, which is a pain.
8449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453 else
8454 ld_shlibs=no
8457 esac
8460 sunos4*)
8461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462 wlarc=
8463 hardcode_direct=yes
8464 hardcode_shlibpath_var=no
8468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471 else
8472 ld_shlibs=no
8475 esac
8477 if test "$ld_shlibs" = no; then
8478 runpath_var=
8479 hardcode_libdir_flag_spec=
8480 export_dynamic_flag_spec=
8481 whole_archive_flag_spec=
8483 else
8484 # PORTME fill in a description of your system's linker (not GNU ld)
8485 case $host_os in
8486 aix3*)
8487 allow_undefined_flag=unsupported
8488 always_export_symbols=yes
8489 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'
8490 # Note: this linker hardcodes the directories in LIBPATH if there
8491 # are no directories specified by -L.
8492 hardcode_minus_L=yes
8493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8494 # Neither direct hardcoding nor static linking is supported with a
8495 # broken collect2.
8496 hardcode_direct=unsupported
8500 aix[4-9]*)
8501 if test "$host_cpu" = ia64; then
8502 # On IA64, the linker does run time linking by default, so we don't
8503 # have to do anything special.
8504 aix_use_runtimelinking=no
8505 exp_sym_flag='-Bexport'
8506 no_entry_flag=""
8507 else
8508 # If we're using GNU nm, then we don't want the "-C" option.
8509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8510 # Also, AIX nm treats weak defined symbols like other global
8511 # defined symbols, whereas GNU nm marks them as "W".
8512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8513 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'
8514 else
8515 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8517 aix_use_runtimelinking=no
8519 # Test if we are trying to use run time linking or normal
8520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8521 # need to do runtime linking.
8522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8523 for ld_flag in $LDFLAGS; do
8524 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8525 aix_use_runtimelinking=yes
8526 break
8528 done
8530 esac
8532 exp_sym_flag='-bexport'
8533 no_entry_flag='-bnoentry'
8536 # When large executables or shared objects are built, AIX ld can
8537 # have problems creating the table of contents. If linking a library
8538 # or program results in "error TOC overflow" add -mminimal-toc to
8539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8542 archive_cmds=''
8543 hardcode_direct=yes
8544 hardcode_direct_absolute=yes
8545 hardcode_libdir_separator=':'
8546 link_all_deplibs=yes
8547 file_list_spec='${wl}-f,'
8549 if test "$GCC" = yes; then
8550 case $host_os in aix4.[012]|aix4.[012].*)
8551 # We only want to do this on AIX 4.2 and lower, the check
8552 # below for broken collect2 doesn't work under 4.3+
8553 collect2name=`${CC} -print-prog-name=collect2`
8554 if test -f "$collect2name" &&
8555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8556 then
8557 # We have reworked collect2
8559 else
8560 # We have old collect2
8561 hardcode_direct=unsupported
8562 # It fails to find uninstalled libraries when the uninstalled
8563 # path is not listed in the libpath. Setting hardcode_minus_L
8564 # to unsupported forces relinking
8565 hardcode_minus_L=yes
8566 hardcode_libdir_flag_spec='-L$libdir'
8567 hardcode_libdir_separator=
8570 esac
8571 shared_flag='-shared'
8572 if test "$aix_use_runtimelinking" = yes; then
8573 shared_flag="$shared_flag "'${wl}-G'
8575 link_all_deplibs=no
8576 else
8577 # not using gcc
8578 if test "$host_cpu" = ia64; then
8579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8580 # chokes on -Wl,-G. The following line is correct:
8581 shared_flag='-G'
8582 else
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag='${wl}-G'
8585 else
8586 shared_flag='${wl}-bM:SRE'
8591 export_dynamic_flag_spec='${wl}-bexpall'
8592 # It seems that -bexpall does not export symbols beginning with
8593 # underscore (_), so it is better to generate a list of symbols to export.
8594 always_export_symbols=yes
8595 if test "$aix_use_runtimelinking" = yes; then
8596 # Warning - without using the other runtime loading flags (-brtl),
8597 # -berok will link without error, but may produce a broken library.
8598 allow_undefined_flag='-berok'
8599 # Determine the default libpath from the value encoded in an
8600 # empty executable.
8601 if test "${lt_cv_aix_libpath+set}" = set; then
8602 aix_libpath=$lt_cv_aix_libpath
8603 else
8604 if ${lt_cv_aix_libpath_+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8611 main ()
8615 return 0;
8617 _ACEOF
8618 if ac_fn_c_try_link "$LINENO"; then :
8620 lt_aix_libpath_sed='
8621 /Import File Strings/,/^$/ {
8622 /^0/ {
8623 s/^0 *\([^ ]*\) *$/\1/
8627 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8628 # Check for a 64-bit object if we didn't find anything.
8629 if test -z "$lt_cv_aix_libpath_"; then
8630 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8635 if test -z "$lt_cv_aix_libpath_"; then
8636 lt_cv_aix_libpath_="/usr/lib:/lib"
8641 aix_libpath=$lt_cv_aix_libpath_
8644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8645 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"
8646 else
8647 if test "$host_cpu" = ia64; then
8648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8649 allow_undefined_flag="-z nodefs"
8650 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"
8651 else
8652 # Determine the default libpath from the value encoded in an
8653 # empty executable.
8654 if test "${lt_cv_aix_libpath+set}" = set; then
8655 aix_libpath=$lt_cv_aix_libpath
8656 else
8657 if ${lt_cv_aix_libpath_+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8664 main ()
8668 return 0;
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8673 lt_aix_libpath_sed='
8674 /Import File Strings/,/^$/ {
8675 /^0/ {
8676 s/^0 *\([^ ]*\) *$/\1/
8680 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8681 # Check for a 64-bit object if we didn't find anything.
8682 if test -z "$lt_cv_aix_libpath_"; then
8683 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8688 if test -z "$lt_cv_aix_libpath_"; then
8689 lt_cv_aix_libpath_="/usr/lib:/lib"
8694 aix_libpath=$lt_cv_aix_libpath_
8697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8698 # Warning - without using the other run time loading flags,
8699 # -berok will link without error, but may produce a broken library.
8700 no_undefined_flag=' ${wl}-bernotok'
8701 allow_undefined_flag=' ${wl}-berok'
8702 if test "$with_gnu_ld" = yes; then
8703 # We only use this code for GNU lds that support --whole-archive.
8704 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8705 else
8706 # Exported symbols can be pulled into shared objects from archives
8707 whole_archive_flag_spec='$convenience'
8709 archive_cmds_need_lc=yes
8710 # This is similar to how AIX traditionally builds its shared libraries.
8711 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'
8716 amigaos*)
8717 case $host_cpu in
8718 powerpc)
8719 # see comment about AmigaOS4 .so support
8720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721 archive_expsym_cmds=''
8723 m68k)
8724 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)'
8725 hardcode_libdir_flag_spec='-L$libdir'
8726 hardcode_minus_L=yes
8728 esac
8731 bsdi[45]*)
8732 export_dynamic_flag_spec=-rdynamic
8735 cygwin* | mingw* | pw32* | cegcc*)
8736 # When not using gcc, we currently assume that we are using
8737 # Microsoft Visual C++.
8738 # hardcode_libdir_flag_spec is actually meaningless, as there is
8739 # no search path for DLLs.
8740 case $cc_basename in
8741 cl*)
8742 # Native MSVC
8743 hardcode_libdir_flag_spec=' '
8744 allow_undefined_flag=unsupported
8745 always_export_symbols=yes
8746 file_list_spec='@'
8747 # Tell ltmain to make .lib files, not .a files.
8748 libext=lib
8749 # Tell ltmain to make .dll files, not .so files.
8750 shrext_cmds=".dll"
8751 # FIXME: Setting linknames here is a bad hack.
8752 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8753 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8754 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8755 else
8756 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8758 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8759 linknames='
8760 # The linker will not automatically build a static lib if we build a DLL.
8761 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8762 enable_shared_with_static_runtimes=yes
8763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8764 # Don't use ranlib
8765 old_postinstall_cmds='chmod 644 $oldlib'
8766 postlink_cmds='lt_outputfile="@OUTPUT@"~
8767 lt_tool_outputfile="@TOOL_OUTPUT@"~
8768 case $lt_outputfile in
8769 *.exe|*.EXE) ;;
8771 lt_outputfile="$lt_outputfile.exe"
8772 lt_tool_outputfile="$lt_tool_outputfile.exe"
8774 esac~
8775 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8776 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8777 $RM "$lt_outputfile.manifest";
8781 # Assume MSVC wrapper
8782 hardcode_libdir_flag_spec=' '
8783 allow_undefined_flag=unsupported
8784 # Tell ltmain to make .lib files, not .a files.
8785 libext=lib
8786 # Tell ltmain to make .dll files, not .so files.
8787 shrext_cmds=".dll"
8788 # FIXME: Setting linknames here is a bad hack.
8789 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8790 # The linker will automatically build a .lib file if we build a DLL.
8791 old_archive_from_new_cmds='true'
8792 # FIXME: Should let the user specify the lib program.
8793 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8794 enable_shared_with_static_runtimes=yes
8796 esac
8799 darwin* | rhapsody*)
8802 archive_cmds_need_lc=no
8803 hardcode_direct=no
8804 hardcode_automatic=yes
8805 hardcode_shlibpath_var=unsupported
8806 if test "$lt_cv_ld_force_load" = "yes"; then
8807 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\"`'
8808 else
8809 whole_archive_flag_spec=''
8811 link_all_deplibs=yes
8812 allow_undefined_flag="$_lt_dar_allow_undefined"
8813 case $cc_basename in
8814 ifort*) _lt_dar_can_shared=yes ;;
8815 *) _lt_dar_can_shared=$GCC ;;
8816 esac
8817 if test "$_lt_dar_can_shared" = "yes"; then
8818 output_verbose_link_cmd=func_echo_all
8819 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8820 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8821 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}"
8822 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}"
8824 else
8825 ld_shlibs=no
8830 dgux*)
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_libdir_flag_spec='-L$libdir'
8833 hardcode_shlibpath_var=no
8836 freebsd1*)
8837 ld_shlibs=no
8840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8841 # support. Future versions do this automatically, but an explicit c++rt0.o
8842 # does not break anything, and helps significantly (at the cost of a little
8843 # extra space).
8844 freebsd2.2*)
8845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8846 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_direct=yes
8848 hardcode_shlibpath_var=no
8851 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8852 freebsd2*)
8853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854 hardcode_direct=yes
8855 hardcode_minus_L=yes
8856 hardcode_shlibpath_var=no
8859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8860 freebsd* | dragonfly*)
8861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8862 hardcode_libdir_flag_spec='-R$libdir'
8863 hardcode_direct=yes
8864 hardcode_shlibpath_var=no
8867 hpux9*)
8868 if test "$GCC" = yes; then
8869 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8870 else
8871 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'
8873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8874 hardcode_libdir_separator=:
8875 hardcode_direct=yes
8877 # hardcode_minus_L: Not really in the search PATH,
8878 # but as the default location of the library.
8879 hardcode_minus_L=yes
8880 export_dynamic_flag_spec='${wl}-E'
8883 hpux10*)
8884 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8885 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8886 else
8887 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8889 if test "$with_gnu_ld" = no; then
8890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891 hardcode_libdir_flag_spec_ld='+b $libdir'
8892 hardcode_libdir_separator=:
8893 hardcode_direct=yes
8894 hardcode_direct_absolute=yes
8895 export_dynamic_flag_spec='${wl}-E'
8896 # hardcode_minus_L: Not really in the search PATH,
8897 # but as the default location of the library.
8898 hardcode_minus_L=yes
8902 hpux11*)
8903 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8904 case $host_cpu in
8905 hppa*64*)
8906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8908 ia64*)
8909 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8912 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8914 esac
8915 else
8916 case $host_cpu in
8917 hppa*64*)
8918 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 ia64*)
8921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8925 # Older versions of the 11.00 compiler do not understand -b yet
8926 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8928 $as_echo_n "checking if $CC understands -b... " >&6; }
8929 if ${lt_cv_prog_compiler__b+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 lt_cv_prog_compiler__b=no
8933 save_LDFLAGS="$LDFLAGS"
8934 LDFLAGS="$LDFLAGS -b"
8935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8937 # The linker can only warn and ignore the option if not recognized
8938 # So say no if there are warnings
8939 if test -s conftest.err; then
8940 # Append any errors to the config.log.
8941 cat conftest.err 1>&5
8942 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944 if diff conftest.exp conftest.er2 >/dev/null; then
8945 lt_cv_prog_compiler__b=yes
8947 else
8948 lt_cv_prog_compiler__b=yes
8951 $RM -r conftest*
8952 LDFLAGS="$save_LDFLAGS"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8956 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8958 if test x"$lt_cv_prog_compiler__b" = xyes; then
8959 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8960 else
8961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8965 esac
8967 if test "$with_gnu_ld" = no; then
8968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8969 hardcode_libdir_separator=:
8971 case $host_cpu in
8972 hppa*64*|ia64*)
8973 hardcode_direct=no
8974 hardcode_shlibpath_var=no
8977 hardcode_direct=yes
8978 hardcode_direct_absolute=yes
8979 export_dynamic_flag_spec='${wl}-E'
8981 # hardcode_minus_L: Not really in the search PATH,
8982 # but as the default location of the library.
8983 hardcode_minus_L=yes
8985 esac
8989 irix5* | irix6* | nonstopux*)
8990 if test "$GCC" = yes; then
8991 archive_cmds='$CC -shared $pic_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'
8992 # Try to use the -exported_symbol ld option, if it does not
8993 # work, assume that -exports_file does not work either and
8994 # implicitly export all symbols.
8995 # This should be the same for all languages, so no per-tag cache variable.
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8997 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8998 if ${lt_cv_irix_exported_symbol+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 save_LDFLAGS="$LDFLAGS"
9002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 int foo (void) { return 0; }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"; then :
9008 lt_cv_irix_exported_symbol=yes
9009 else
9010 lt_cv_irix_exported_symbol=no
9012 rm -f core conftest.err conftest.$ac_objext \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LDFLAGS="$save_LDFLAGS"
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9017 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9018 if test "$lt_cv_irix_exported_symbol" = yes; then
9019 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9021 else
9022 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'
9023 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'
9025 archive_cmds_need_lc='no'
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 hardcode_libdir_separator=:
9028 inherit_rpath=yes
9029 link_all_deplibs=yes
9032 netbsd* | netbsdelf*-gnu)
9033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9035 else
9036 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9038 hardcode_libdir_flag_spec='-R$libdir'
9039 hardcode_direct=yes
9040 hardcode_shlibpath_var=no
9043 newsos6)
9044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_direct=yes
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 hardcode_libdir_separator=:
9048 hardcode_shlibpath_var=no
9051 *nto* | *qnx*)
9054 openbsd*)
9055 if test -f /usr/libexec/ld.so; then
9056 hardcode_direct=yes
9057 hardcode_shlibpath_var=no
9058 hardcode_direct_absolute=yes
9059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9063 export_dynamic_flag_spec='${wl}-E'
9064 else
9065 case $host_os in
9066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-R$libdir'
9071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9074 esac
9076 else
9077 ld_shlibs=no
9081 os2*)
9082 hardcode_libdir_flag_spec='-L$libdir'
9083 hardcode_minus_L=yes
9084 allow_undefined_flag=unsupported
9085 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'
9086 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9089 osf3*)
9090 if test "$GCC" = yes; then
9091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9092 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'
9093 else
9094 allow_undefined_flag=' -expect_unresolved \*'
9095 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'
9097 archive_cmds_need_lc='no'
9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 hardcode_libdir_separator=:
9102 osf4* | osf5*) # as osf3* with the addition of -msym flag
9103 if test "$GCC" = yes; then
9104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9105 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9107 else
9108 allow_undefined_flag=' -expect_unresolved \*'
9109 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'
9110 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~
9111 $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'
9113 # Both c and cxx compiler support -rpath directly
9114 hardcode_libdir_flag_spec='-rpath $libdir'
9116 archive_cmds_need_lc='no'
9117 hardcode_libdir_separator=:
9120 solaris*)
9121 no_undefined_flag=' -z defs'
9122 if test "$GCC" = yes; then
9123 wlarc='${wl}'
9124 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9126 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9127 else
9128 case `$CC -V 2>&1` in
9129 *"Compilers 5.0"*)
9130 wlarc=''
9131 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9136 wlarc='${wl}'
9137 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9139 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9141 esac
9143 hardcode_libdir_flag_spec='-R$libdir'
9144 hardcode_shlibpath_var=no
9145 case $host_os in
9146 solaris2.[0-5] | solaris2.[0-5].*) ;;
9148 # The compiler driver will combine and reorder linker options,
9149 # but understands `-z linker_flag'. GCC discards it without `$wl',
9150 # but is careful enough not to reorder.
9151 # Supported since Solaris 2.6 (maybe 2.5.1?)
9152 if test "$GCC" = yes; then
9153 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9154 else
9155 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9158 esac
9159 link_all_deplibs=yes
9162 sunos4*)
9163 if test "x$host_vendor" = xsequent; then
9164 # Use $CC to link under sequent, because it throws in some extra .o
9165 # files that make .init and .fini sections work.
9166 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9167 else
9168 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_direct=yes
9172 hardcode_minus_L=yes
9173 hardcode_shlibpath_var=no
9176 sysv4)
9177 case $host_vendor in
9178 sni)
9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180 hardcode_direct=yes # is this really true???
9182 siemens)
9183 ## LD is ld it makes a PLAMLIB
9184 ## CC just makes a GrossModule.
9185 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9186 reload_cmds='$CC -r -o $output$reload_objs'
9187 hardcode_direct=no
9189 motorola)
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9193 esac
9194 runpath_var='LD_RUN_PATH'
9195 hardcode_shlibpath_var=no
9198 sysv4.3*)
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_shlibpath_var=no
9201 export_dynamic_flag_spec='-Bexport'
9204 sysv4*MP*)
9205 if test -d /usr/nec; then
9206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207 hardcode_shlibpath_var=no
9208 runpath_var=LD_RUN_PATH
9209 hardcode_runpath_var=yes
9210 ld_shlibs=yes
9214 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9215 no_undefined_flag='${wl}-z,text'
9216 archive_cmds_need_lc=no
9217 hardcode_shlibpath_var=no
9218 runpath_var='LD_RUN_PATH'
9220 if test "$GCC" = yes; then
9221 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9222 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 else
9224 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 sysv5* | sco3.2v5* | sco5v6*)
9230 # Note: We can NOT use -z defs as we might desire, because we do not
9231 # link with -lc, and that would cause any symbols used from libc to
9232 # always be unresolved, which means just about no library would
9233 # ever link correctly. If we're not using GNU ld we use -z text
9234 # though, which does catch some bad symbols but isn't as heavy-handed
9235 # as -z defs.
9236 no_undefined_flag='${wl}-z,text'
9237 allow_undefined_flag='${wl}-z,nodefs'
9238 archive_cmds_need_lc=no
9239 hardcode_shlibpath_var=no
9240 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9241 hardcode_libdir_separator=':'
9242 link_all_deplibs=yes
9243 export_dynamic_flag_spec='${wl}-Bexport'
9244 runpath_var='LD_RUN_PATH'
9246 if test "$GCC" = yes; then
9247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9249 else
9250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 uts4*)
9256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_shlibpath_var=no
9262 ld_shlibs=no
9264 esac
9266 if test x$host_vendor = xsni; then
9267 case $host in
9268 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9269 export_dynamic_flag_spec='${wl}-Blargedynsym'
9271 esac
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9276 $as_echo "$ld_shlibs" >&6; }
9277 test "$ld_shlibs" = no && can_build_shared=no
9279 with_gnu_ld=$with_gnu_ld
9296 # Do we need to explicitly link libc?
9298 case "x$archive_cmds_need_lc" in
9299 x|xyes)
9300 # Assume -lc should be added
9301 archive_cmds_need_lc=yes
9303 if test "$enable_shared" = yes && test "$GCC" = yes; then
9304 case $archive_cmds in
9305 *'~'*)
9306 # FIXME: we may have to deal with multi-command sequences.
9308 '$CC '*)
9309 # Test whether the compiler implicitly links with -lc since on some
9310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9311 # to ld, don't add -lc before -lgcc.
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9314 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 $RM conftest*
9318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9321 (eval $ac_compile) 2>&5
9322 ac_status=$?
9323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324 test $ac_status = 0; } 2>conftest.err; then
9325 soname=conftest
9326 lib=conftest
9327 libobjs=conftest.$ac_objext
9328 deplibs=
9329 wl=$lt_prog_compiler_wl
9330 pic_flag=$lt_prog_compiler_pic
9331 compiler_flags=-v
9332 linker_flags=-v
9333 verstring=
9334 output_objdir=.
9335 libname=conftest
9336 lt_save_allow_undefined_flag=$allow_undefined_flag
9337 allow_undefined_flag=
9338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9339 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9340 ac_status=$?
9341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342 test $ac_status = 0; }
9343 then
9344 lt_cv_archive_cmds_need_lc=no
9345 else
9346 lt_cv_archive_cmds_need_lc=yes
9348 allow_undefined_flag=$lt_save_allow_undefined_flag
9349 else
9350 cat conftest.err 1>&5
9352 $RM conftest*
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9356 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9357 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9359 esac
9362 esac
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9521 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9523 if test "$GCC" = yes; then
9524 case $host_os in
9525 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9526 *) lt_awk_arg="/^libraries:/" ;;
9527 esac
9528 case $host_os in
9529 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9530 *) lt_sed_strip_eq="s,=/,/,g" ;;
9531 esac
9532 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9533 case $lt_search_path_spec in
9534 *\;*)
9535 # if the path contains ";" then we assume it to be the separator
9536 # otherwise default to the standard path separator (i.e. ":") - it is
9537 # assumed that no part of a normal pathname contains ";" but that should
9538 # okay in the real world where ";" in dirpaths is itself problematic.
9539 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9542 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9544 esac
9545 # Ok, now we have the path, separated by spaces, we can step through it
9546 # and add multilib dir if necessary.
9547 lt_tmp_lt_search_path_spec=
9548 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9549 for lt_sys_path in $lt_search_path_spec; do
9550 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9551 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9552 else
9553 test -d "$lt_sys_path" && \
9554 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9556 done
9557 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9558 BEGIN {RS=" "; FS="/|\n";} {
9559 lt_foo="";
9560 lt_count=0;
9561 for (lt_i = NF; lt_i > 0; lt_i--) {
9562 if ($lt_i != "" && $lt_i != ".") {
9563 if ($lt_i == "..") {
9564 lt_count++;
9565 } else {
9566 if (lt_count == 0) {
9567 lt_foo="/" $lt_i lt_foo;
9568 } else {
9569 lt_count--;
9574 if (lt_foo != "") { lt_freq[lt_foo]++; }
9575 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9577 # AWK program above erroneously prepends '/' to C:/dos/paths
9578 # for these hosts.
9579 case $host_os in
9580 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9581 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9582 esac
9583 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9584 else
9585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9587 library_names_spec=
9588 libname_spec='lib$name'
9589 soname_spec=
9590 shrext_cmds=".so"
9591 postinstall_cmds=
9592 postuninstall_cmds=
9593 finish_cmds=
9594 finish_eval=
9595 shlibpath_var=
9596 shlibpath_overrides_runpath=unknown
9597 version_type=none
9598 dynamic_linker="$host_os ld.so"
9599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9600 need_lib_prefix=unknown
9601 hardcode_into_libs=no
9603 # when you set need_version to no, make sure it does not cause -set_version
9604 # flags to be left without arguments
9605 need_version=unknown
9607 case $host_os in
9608 aix3*)
9609 version_type=linux
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9611 shlibpath_var=LIBPATH
9613 # AIX 3 has no versioning support, so we append a major version to the name.
9614 soname_spec='${libname}${release}${shared_ext}$major'
9617 aix[4-9]*)
9618 version_type=linux
9619 need_lib_prefix=no
9620 need_version=no
9621 hardcode_into_libs=yes
9622 if test "$host_cpu" = ia64; then
9623 # AIX 5 supports IA64
9624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 else
9627 # With GCC up to 2.95.x, collect2 would create an import file
9628 # for dependence libraries. The import file would start with
9629 # the line `#! .'. This would cause the generated library to
9630 # depend on `.', always an invalid library. This was fixed in
9631 # development snapshots of GCC prior to 3.0.
9632 case $host_os in
9633 aix4 | aix4.[01] | aix4.[01].*)
9634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9635 echo ' yes '
9636 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9638 else
9639 can_build_shared=no
9642 esac
9643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9644 # soname into executable. Probably we can add versioning support to
9645 # collect2, so additional links can be useful in future.
9646 if test "$aix_use_runtimelinking" = yes; then
9647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9648 # instead of lib<name>.a to let people know that these are not
9649 # typical AIX shared libraries.
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 else
9652 # We preserve .a as extension for shared libraries through AIX4.2
9653 # and later when we are not doing run time linking.
9654 library_names_spec='${libname}${release}.a $libname.a'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9657 shlibpath_var=LIBPATH
9661 amigaos*)
9662 case $host_cpu in
9663 powerpc)
9664 # Since July 2007 AmigaOS4 officially supports .so libraries.
9665 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 m68k)
9669 library_names_spec='$libname.ixlibrary $libname.a'
9670 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9671 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'
9673 esac
9676 beos*)
9677 library_names_spec='${libname}${shared_ext}'
9678 dynamic_linker="$host_os ld.so"
9679 shlibpath_var=LIBRARY_PATH
9682 bsdi[45]*)
9683 version_type=linux
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9690 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9691 # the default ld.so.conf also contains /usr/contrib/lib and
9692 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9693 # libtool to hard-code these into programs
9696 cygwin* | mingw* | pw32* | cegcc*)
9697 version_type=windows
9698 shrext_cmds=".dll"
9699 need_version=no
9700 need_lib_prefix=no
9702 case $GCC,$cc_basename in
9703 yes,*)
9704 # gcc
9705 library_names_spec='$libname.dll.a'
9706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9707 postinstall_cmds='base_file=`basename \${file}`~
9708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9709 dldir=$destdir/`dirname \$dlpath`~
9710 test -d \$dldir || mkdir -p \$dldir~
9711 $install_prog $dir/$dlname \$dldir/$dlname~
9712 chmod a+x \$dldir/$dlname~
9713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9717 dlpath=$dir/\$dldll~
9718 $RM \$dlpath'
9719 shlibpath_overrides_runpath=yes
9721 case $host_os in
9722 cygwin*)
9723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9726 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9728 mingw* | cegcc*)
9729 # MinGW DLLs use traditional 'lib' prefix
9730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9732 pw32*)
9733 # pw32 DLLs use 'pw' prefix rather than 'lib'
9734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9736 esac
9737 dynamic_linker='Win32 ld.exe'
9740 *,cl*)
9741 # Native MSVC
9742 libname_spec='$name'
9743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9744 library_names_spec='${libname}.dll.lib'
9746 case $build_os in
9747 mingw*)
9748 sys_lib_search_path_spec=
9749 lt_save_ifs=$IFS
9750 IFS=';'
9751 for lt_path in $LIB
9753 IFS=$lt_save_ifs
9754 # Let DOS variable expansion print the short 8.3 style file name.
9755 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9756 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9757 done
9758 IFS=$lt_save_ifs
9759 # Convert to MSYS style.
9760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9762 cygwin*)
9763 # Convert to unix form, then to dos form, then back to unix form
9764 # but this time dos style (no spaces!) so that the unix form looks
9765 # like /cygdrive/c/PROGRA~1:/cygdr...
9766 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9767 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9768 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9771 sys_lib_search_path_spec="$LIB"
9772 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9773 # It is most probably a Windows format PATH.
9774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9775 else
9776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9778 # FIXME: find the short name or the path components, as spaces are
9779 # common. (e.g. "Program Files" -> "PROGRA~1")
9781 esac
9783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9784 postinstall_cmds='base_file=`basename \${file}`~
9785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9786 dldir=$destdir/`dirname \$dlpath`~
9787 test -d \$dldir || mkdir -p \$dldir~
9788 $install_prog $dir/$dlname \$dldir/$dlname'
9789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9790 dlpath=$dir/\$dldll~
9791 $RM \$dlpath'
9792 shlibpath_overrides_runpath=yes
9793 dynamic_linker='Win32 link.exe'
9797 # Assume MSVC wrapper
9798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9799 dynamic_linker='Win32 ld.exe'
9801 esac
9802 # FIXME: first we should search . and the directory the executable is in
9803 shlibpath_var=PATH
9806 darwin* | rhapsody*)
9807 dynamic_linker="$host_os dyld"
9808 version_type=darwin
9809 need_lib_prefix=no
9810 need_version=no
9811 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9812 soname_spec='${libname}${release}${major}$shared_ext'
9813 shlibpath_overrides_runpath=yes
9814 shlibpath_var=DYLD_LIBRARY_PATH
9815 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9817 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9821 dgux*)
9822 version_type=linux
9823 need_lib_prefix=no
9824 need_version=no
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9830 freebsd1*)
9831 dynamic_linker=no
9834 freebsd* | dragonfly*)
9835 # DragonFly does not have aout. When/if they implement a new
9836 # versioning mechanism, adjust this.
9837 if test -x /usr/bin/objformat; then
9838 objformat=`/usr/bin/objformat`
9839 else
9840 case $host_os in
9841 freebsd[123]*) objformat=aout ;;
9842 *) objformat=elf ;;
9843 esac
9845 version_type=freebsd-$objformat
9846 case $version_type in
9847 freebsd-elf*)
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9849 need_version=no
9850 need_lib_prefix=no
9852 freebsd-*)
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9854 need_version=yes
9856 esac
9857 shlibpath_var=LD_LIBRARY_PATH
9858 case $host_os in
9859 freebsd2*)
9860 shlibpath_overrides_runpath=yes
9862 freebsd3.[01]* | freebsdelf3.[01]*)
9863 shlibpath_overrides_runpath=yes
9864 hardcode_into_libs=yes
9866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9868 shlibpath_overrides_runpath=no
9869 hardcode_into_libs=yes
9871 *) # from 4.6 on, and DragonFly
9872 shlibpath_overrides_runpath=yes
9873 hardcode_into_libs=yes
9875 esac
9878 gnu*)
9879 version_type=linux
9880 need_lib_prefix=no
9881 need_version=no
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 shlibpath_overrides_runpath=no
9886 hardcode_into_libs=yes
9889 haiku*)
9890 version_type=linux
9891 need_lib_prefix=no
9892 need_version=no
9893 dynamic_linker="$host_os runtime_loader"
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 shlibpath_var=LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes
9898 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9899 hardcode_into_libs=yes
9902 hpux9* | hpux10* | hpux11*)
9903 # Give a soname corresponding to the major version so that dld.sl refuses to
9904 # link against other versions.
9905 version_type=sunos
9906 need_lib_prefix=no
9907 need_version=no
9908 case $host_cpu in
9909 ia64*)
9910 shrext_cmds='.so'
9911 hardcode_into_libs=yes
9912 dynamic_linker="$host_os dld.so"
9913 shlibpath_var=LD_LIBRARY_PATH
9914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 if test "X$HPUX_IA64_MODE" = X32; then
9918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9919 else
9920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9924 hppa*64*)
9925 shrext_cmds='.sl'
9926 hardcode_into_libs=yes
9927 dynamic_linker="$host_os dld.sl"
9928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936 shrext_cmds='.sl'
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=SHLIB_PATH
9939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9943 esac
9944 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9945 postinstall_cmds='chmod 555 $lib'
9946 # or fails outright, so override atomically:
9947 install_override_mode=555
9950 interix[3-9]*)
9951 version_type=linux
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 shlibpath_overrides_runpath=no
9959 hardcode_into_libs=yes
9962 irix5* | irix6* | nonstopux*)
9963 case $host_os in
9964 nonstopux*) version_type=nonstopux ;;
9966 if test "$lt_cv_prog_gnu_ld" = yes; then
9967 version_type=linux
9968 else
9969 version_type=irix
9970 fi ;;
9971 esac
9972 need_lib_prefix=no
9973 need_version=no
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9976 case $host_os in
9977 irix5* | nonstopux*)
9978 libsuff= shlibsuff=
9981 case $LD in # libtool.m4 will add one of these switches to LD
9982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9983 libsuff= shlibsuff= libmagic=32-bit;;
9984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9985 libsuff=32 shlibsuff=N32 libmagic=N32;;
9986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9988 *) libsuff= shlibsuff= libmagic=never-match;;
9989 esac
9991 esac
9992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9993 shlibpath_overrides_runpath=no
9994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9996 hardcode_into_libs=yes
9999 # No shared lib support for Linux oldld, aout, or coff.
10000 linux*oldld* | linux*aout* | linux*coff*)
10001 dynamic_linker=no
10004 # This must be Linux ELF.
10005 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10006 version_type=linux
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=no
10015 # Some binutils ld are patched to set DT_RUNPATH
10016 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 lt_cv_shlibpath_overrides_runpath=no
10020 save_LDFLAGS=$LDFLAGS
10021 save_libdir=$libdir
10022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10028 main ()
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10037 lt_cv_shlibpath_overrides_runpath=yes
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LDFLAGS=$save_LDFLAGS
10043 libdir=$save_libdir
10047 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10049 # This implies no fast_install, which is unacceptable.
10050 # Some rework will be needed to allow for fast_install
10051 # before this can be enabled.
10052 hardcode_into_libs=yes
10054 # Append ld.so.conf contents to the search path
10055 if test -f /etc/ld.so.conf; then
10056 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' ' '`
10057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10060 # We used to test for /lib/ld.so.1 and disable shared libraries on
10061 # powerpc, because MkLinux only supported shared libraries with the
10062 # GNU dynamic linker. Since this was broken with cross compilers,
10063 # most powerpc-linux boxes support dynamic linking these days and
10064 # people can always --disable-shared, the test was removed, and we
10065 # assume the GNU/Linux dynamic linker is in use.
10066 dynamic_linker='GNU/Linux ld.so'
10069 netbsdelf*-gnu)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 dynamic_linker='NetBSD ld.elf_so'
10081 netbsd*)
10082 version_type=sunos
10083 need_lib_prefix=no
10084 need_version=no
10085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10088 dynamic_linker='NetBSD (a.out) ld.so'
10089 else
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 dynamic_linker='NetBSD ld.elf_so'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10099 newsos6)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 shlibpath_overrides_runpath=yes
10106 *nto* | *qnx*)
10107 version_type=qnx
10108 need_lib_prefix=no
10109 need_version=no
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 shlibpath_overrides_runpath=no
10114 hardcode_into_libs=yes
10115 dynamic_linker='ldqnx.so'
10118 openbsd*)
10119 version_type=sunos
10120 sys_lib_dlsearch_path_spec="/usr/lib"
10121 need_lib_prefix=no
10122 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10123 case $host_os in
10124 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10125 *) need_version=no ;;
10126 esac
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10131 case $host_os in
10132 openbsd2.[89] | openbsd2.[89].*)
10133 shlibpath_overrides_runpath=no
10136 shlibpath_overrides_runpath=yes
10138 esac
10139 else
10140 shlibpath_overrides_runpath=yes
10144 os2*)
10145 libname_spec='$name'
10146 shrext_cmds=".dll"
10147 need_lib_prefix=no
10148 library_names_spec='$libname${shared_ext} $libname.a'
10149 dynamic_linker='OS/2 ld.exe'
10150 shlibpath_var=LIBPATH
10153 osf3* | osf4* | osf5*)
10154 version_type=osf
10155 need_lib_prefix=no
10156 need_version=no
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10164 rdos*)
10165 dynamic_linker=no
10168 solaris*)
10169 version_type=linux
10170 need_lib_prefix=no
10171 need_version=no
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10177 # ldd complains unless libraries are executable
10178 postinstall_cmds='chmod +x $lib'
10181 sunos4*)
10182 version_type=sunos
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=yes
10187 if test "$with_gnu_ld" = yes; then
10188 need_lib_prefix=no
10190 need_version=yes
10193 sysv4 | sysv4.3*)
10194 version_type=linux
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 case $host_vendor in
10199 sni)
10200 shlibpath_overrides_runpath=no
10201 need_lib_prefix=no
10202 runpath_var=LD_RUN_PATH
10204 siemens)
10205 need_lib_prefix=no
10207 motorola)
10208 need_lib_prefix=no
10209 need_version=no
10210 shlibpath_overrides_runpath=no
10211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10213 esac
10216 sysv4*MP*)
10217 if test -d /usr/nec ;then
10218 version_type=linux
10219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10220 soname_spec='$libname${shared_ext}.$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10226 version_type=freebsd-elf
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=yes
10233 hardcode_into_libs=yes
10234 if test "$with_gnu_ld" = yes; then
10235 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10236 else
10237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10238 case $host_os in
10239 sco3.2v5*)
10240 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10242 esac
10244 sys_lib_dlsearch_path_spec='/usr/lib'
10247 tpf*)
10248 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10249 version_type=linux
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10258 uts4*)
10259 version_type=linux
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10266 dynamic_linker=no
10268 esac
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10270 $as_echo "$dynamic_linker" >&6; }
10271 test "$dynamic_linker" = no && can_build_shared=no
10273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10274 if test "$GCC" = yes; then
10275 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10278 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10279 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10281 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10282 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10378 hardcode_action=
10379 if test -n "$hardcode_libdir_flag_spec" ||
10380 test -n "$runpath_var" ||
10381 test "X$hardcode_automatic" = "Xyes" ; then
10383 # We can hardcode non-existent directories.
10384 if test "$hardcode_direct" != no &&
10385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10386 # have to relink, otherwise we might link with an installed library
10387 # when we should be linking with a yet-to-be-installed one
10388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10389 test "$hardcode_minus_L" != no; then
10390 # Linking always hardcodes the temporary library directory.
10391 hardcode_action=relink
10392 else
10393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10394 hardcode_action=immediate
10396 else
10397 # We cannot hardcode anything, or else we can only hardcode existing
10398 # directories.
10399 hardcode_action=unsupported
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10402 $as_echo "$hardcode_action" >&6; }
10404 if test "$hardcode_action" = relink ||
10405 test "$inherit_rpath" = yes; then
10406 # Fast installation is not supported
10407 enable_fast_install=no
10408 elif test "$shlibpath_overrides_runpath" = yes ||
10409 test "$enable_shared" = no; then
10410 # Fast installation is not necessary
10411 enable_fast_install=needless
10419 if test "x$enable_dlopen" != xyes; then
10420 enable_dlopen=unknown
10421 enable_dlopen_self=unknown
10422 enable_dlopen_self_static=unknown
10423 else
10424 lt_cv_dlopen=no
10425 lt_cv_dlopen_libs=
10427 case $host_os in
10428 beos*)
10429 lt_cv_dlopen="load_add_on"
10430 lt_cv_dlopen_libs=
10431 lt_cv_dlopen_self=yes
10434 mingw* | pw32* | cegcc*)
10435 lt_cv_dlopen="LoadLibrary"
10436 lt_cv_dlopen_libs=
10439 cygwin*)
10440 lt_cv_dlopen="dlopen"
10441 lt_cv_dlopen_libs=
10444 darwin*)
10445 # if libdl is installed we need to link against it
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10448 if ${ac_cv_lib_dl_dlopen+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-ldl $LIBS"
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char dlopen ();
10464 main ()
10466 return dlopen ();
10468 return 0;
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 ac_cv_lib_dl_dlopen=yes
10473 else
10474 ac_cv_lib_dl_dlopen=no
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 LIBS=$ac_check_lib_save_LIBS
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10482 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10484 else
10486 lt_cv_dlopen="dyld"
10487 lt_cv_dlopen_libs=
10488 lt_cv_dlopen_self=yes
10495 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10496 if test "x$ac_cv_func_shl_load" = xyes; then :
10497 lt_cv_dlopen="shl_load"
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10500 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10501 if ${ac_cv_lib_dld_shl_load+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-ldld $LIBS"
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char shl_load ();
10517 main ()
10519 return shl_load ();
10521 return 0;
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10525 ac_cv_lib_dld_shl_load=yes
10526 else
10527 ac_cv_lib_dld_shl_load=no
10529 rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10535 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10537 else
10538 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10539 if test "x$ac_cv_func_dlopen" = xyes; then :
10540 lt_cv_dlopen="dlopen"
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10544 if ${ac_cv_lib_dl_dlopen+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-ldl $LIBS"
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char dlopen ();
10560 main ()
10562 return dlopen ();
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_dl_dlopen=yes
10569 else
10570 ac_cv_lib_dl_dlopen=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10578 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10582 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10583 if ${ac_cv_lib_svld_dlopen+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-lsvld $LIBS"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char dlopen ();
10599 main ()
10601 return dlopen ();
10603 return 0;
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607 ac_cv_lib_svld_dlopen=yes
10608 else
10609 ac_cv_lib_svld_dlopen=no
10611 rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613 LIBS=$ac_check_lib_save_LIBS
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10616 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10617 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10622 if ${ac_cv_lib_dld_dld_link+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 ac_check_lib_save_LIBS=$LIBS
10626 LIBS="-ldld $LIBS"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char dld_link ();
10638 main ()
10640 return dld_link ();
10642 return 0;
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_lib_dld_dld_link=yes
10647 else
10648 ac_cv_lib_dld_dld_link=no
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10655 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10656 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10657 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10676 esac
10678 if test "x$lt_cv_dlopen" != xno; then
10679 enable_dlopen=yes
10680 else
10681 enable_dlopen=no
10684 case $lt_cv_dlopen in
10685 dlopen)
10686 save_CPPFLAGS="$CPPFLAGS"
10687 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10689 save_LDFLAGS="$LDFLAGS"
10690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10692 save_LIBS="$LIBS"
10693 LIBS="$lt_cv_dlopen_libs $LIBS"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10696 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10697 if ${lt_cv_dlopen_self+:} false; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 if test "$cross_compiling" = yes; then :
10701 lt_cv_dlopen_self=cross
10702 else
10703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10704 lt_status=$lt_dlunknown
10705 cat > conftest.$ac_ext <<_LT_EOF
10706 #line $LINENO "configure"
10707 #include "confdefs.h"
10709 #if HAVE_DLFCN_H
10710 #include <dlfcn.h>
10711 #endif
10713 #include <stdio.h>
10715 #ifdef RTLD_GLOBAL
10716 # define LT_DLGLOBAL RTLD_GLOBAL
10717 #else
10718 # ifdef DL_GLOBAL
10719 # define LT_DLGLOBAL DL_GLOBAL
10720 # else
10721 # define LT_DLGLOBAL 0
10722 # endif
10723 #endif
10725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10726 find out it does not work in some platform. */
10727 #ifndef LT_DLLAZY_OR_NOW
10728 # ifdef RTLD_LAZY
10729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10730 # else
10731 # ifdef DL_LAZY
10732 # define LT_DLLAZY_OR_NOW DL_LAZY
10733 # else
10734 # ifdef RTLD_NOW
10735 # define LT_DLLAZY_OR_NOW RTLD_NOW
10736 # else
10737 # ifdef DL_NOW
10738 # define LT_DLLAZY_OR_NOW DL_NOW
10739 # else
10740 # define LT_DLLAZY_OR_NOW 0
10741 # endif
10742 # endif
10743 # endif
10744 # endif
10745 #endif
10747 /* When -fvisbility=hidden is used, assume the code has been annotated
10748 correspondingly for the symbols needed. */
10749 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10750 int fnord () __attribute__((visibility("default")));
10751 #endif
10753 int fnord () { return 42; }
10754 int main ()
10756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10757 int status = $lt_dlunknown;
10759 if (self)
10761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10762 else
10764 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10765 else puts (dlerror ());
10767 /* dlclose (self); */
10769 else
10770 puts (dlerror ());
10772 return status;
10774 _LT_EOF
10775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10776 (eval $ac_link) 2>&5
10777 ac_status=$?
10778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10779 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10780 (./conftest; exit; ) >&5 2>/dev/null
10781 lt_status=$?
10782 case x$lt_status in
10783 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10784 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10785 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10786 esac
10787 else :
10788 # compilation failed
10789 lt_cv_dlopen_self=no
10792 rm -fr conftest*
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10797 $as_echo "$lt_cv_dlopen_self" >&6; }
10799 if test "x$lt_cv_dlopen_self" = xyes; then
10800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10802 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10803 if ${lt_cv_dlopen_self_static+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 if test "$cross_compiling" = yes; then :
10807 lt_cv_dlopen_self_static=cross
10808 else
10809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10810 lt_status=$lt_dlunknown
10811 cat > conftest.$ac_ext <<_LT_EOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10815 #if HAVE_DLFCN_H
10816 #include <dlfcn.h>
10817 #endif
10819 #include <stdio.h>
10821 #ifdef RTLD_GLOBAL
10822 # define LT_DLGLOBAL RTLD_GLOBAL
10823 #else
10824 # ifdef DL_GLOBAL
10825 # define LT_DLGLOBAL DL_GLOBAL
10826 # else
10827 # define LT_DLGLOBAL 0
10828 # endif
10829 #endif
10831 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10832 find out it does not work in some platform. */
10833 #ifndef LT_DLLAZY_OR_NOW
10834 # ifdef RTLD_LAZY
10835 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10836 # else
10837 # ifdef DL_LAZY
10838 # define LT_DLLAZY_OR_NOW DL_LAZY
10839 # else
10840 # ifdef RTLD_NOW
10841 # define LT_DLLAZY_OR_NOW RTLD_NOW
10842 # else
10843 # ifdef DL_NOW
10844 # define LT_DLLAZY_OR_NOW DL_NOW
10845 # else
10846 # define LT_DLLAZY_OR_NOW 0
10847 # endif
10848 # endif
10849 # endif
10850 # endif
10851 #endif
10853 /* When -fvisbility=hidden is used, assume the code has been annotated
10854 correspondingly for the symbols needed. */
10855 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10856 int fnord () __attribute__((visibility("default")));
10857 #endif
10859 int fnord () { return 42; }
10860 int main ()
10862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10863 int status = $lt_dlunknown;
10865 if (self)
10867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10868 else
10870 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10871 else puts (dlerror ());
10873 /* dlclose (self); */
10875 else
10876 puts (dlerror ());
10878 return status;
10880 _LT_EOF
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10882 (eval $ac_link) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10886 (./conftest; exit; ) >&5 2>/dev/null
10887 lt_status=$?
10888 case x$lt_status in
10889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10892 esac
10893 else :
10894 # compilation failed
10895 lt_cv_dlopen_self_static=no
10898 rm -fr conftest*
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10903 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10906 CPPFLAGS="$save_CPPFLAGS"
10907 LDFLAGS="$save_LDFLAGS"
10908 LIBS="$save_LIBS"
10910 esac
10912 case $lt_cv_dlopen_self in
10913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10914 *) enable_dlopen_self=unknown ;;
10915 esac
10917 case $lt_cv_dlopen_self_static in
10918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10919 *) enable_dlopen_self_static=unknown ;;
10920 esac
10939 striplib=
10940 old_striplib=
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10942 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10943 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10944 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10945 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10947 $as_echo "yes" >&6; }
10948 else
10949 # FIXME - insert some real tests, host_os isn't really good enough
10950 case $host_os in
10951 darwin*)
10952 if test -n "$STRIP" ; then
10953 striplib="$STRIP -x"
10954 old_striplib="$STRIP -S"
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956 $as_echo "yes" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10966 esac
10980 # Report which library types will actually be built
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10982 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10984 $as_echo "$can_build_shared" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10987 $as_echo_n "checking whether to build shared libraries... " >&6; }
10988 test "$can_build_shared" = "no" && enable_shared=no
10990 # On AIX, shared libraries and static libraries use the same namespace, and
10991 # are all built from PIC.
10992 case $host_os in
10993 aix3*)
10994 test "$enable_shared" = yes && enable_static=no
10995 if test -n "$RANLIB"; then
10996 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10997 postinstall_cmds='$RANLIB $lib'
11001 aix[4-9]*)
11002 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11003 test "$enable_shared" = yes && enable_static=no
11006 esac
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11008 $as_echo "$enable_shared" >&6; }
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11011 $as_echo_n "checking whether to build static libraries... " >&6; }
11012 # Make sure either enable_shared or enable_static is yes.
11013 test "$enable_shared" = yes || enable_static=yes
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11015 $as_echo "$enable_static" >&6; }
11021 ac_ext=c
11022 ac_cpp='$CPP $CPPFLAGS'
11023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027 CC="$lt_save_CC"
11041 ac_config_commands="$ac_config_commands libtool"
11046 # Only expand once:
11054 ac_ext=c
11055 ac_cpp='$CPP $CPPFLAGS'
11056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11059 if test -n "$ac_tool_prefix"; then
11060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11061 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_prog_CC+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 if test -n "$CC"; then
11068 ac_cv_prog_CC="$CC" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11081 done
11082 done
11083 IFS=$as_save_IFS
11087 CC=$ac_cv_prog_CC
11088 if test -n "$CC"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11090 $as_echo "$CC" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11098 if test -z "$ac_cv_prog_CC"; then
11099 ac_ct_CC=$CC
11100 # Extract the first word of "gcc", so it can be a program name with args.
11101 set dummy gcc; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 if test -n "$ac_ct_CC"; then
11108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11109 else
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117 ac_cv_prog_ac_ct_CC="gcc"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11128 if test -n "$ac_ct_CC"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11130 $as_echo "$ac_ct_CC" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11136 if test "x$ac_ct_CC" = x; then
11137 CC=""
11138 else
11139 case $cross_compiling:$ac_tool_warned in
11140 yes:)
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11143 ac_tool_warned=yes ;;
11144 esac
11145 CC=$ac_ct_CC
11147 else
11148 CC="$ac_cv_prog_CC"
11151 if test -z "$CC"; then
11152 if test -n "$ac_tool_prefix"; then
11153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}cc; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if ${ac_cv_prog_CC+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$CC"; then
11161 ac_cv_prog_CC="$CC" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_CC="${ac_tool_prefix}cc"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11174 done
11175 done
11176 IFS=$as_save_IFS
11180 CC=$ac_cv_prog_CC
11181 if test -n "$CC"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11183 $as_echo "$CC" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11192 if test -z "$CC"; then
11193 # Extract the first word of "cc", so it can be a program name with args.
11194 set dummy cc; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if ${ac_cv_prog_CC+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 if test -n "$CC"; then
11201 ac_cv_prog_CC="$CC" # Let the user override the test.
11202 else
11203 ac_prog_rejected=no
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11212 ac_prog_rejected=yes
11213 continue
11215 ac_cv_prog_CC="cc"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11219 done
11220 done
11221 IFS=$as_save_IFS
11223 if test $ac_prog_rejected = yes; then
11224 # We found a bogon in the path, so make sure we never use it.
11225 set dummy $ac_cv_prog_CC
11226 shift
11227 if test $# != 0; then
11228 # We chose a different compiler from the bogus one.
11229 # However, it has the same basename, so the bogon will be chosen
11230 # first if we set CC to just the basename; use the full file name.
11231 shift
11232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11237 CC=$ac_cv_prog_CC
11238 if test -n "$CC"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11240 $as_echo "$CC" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11248 if test -z "$CC"; then
11249 if test -n "$ac_tool_prefix"; then
11250 for ac_prog in cl.exe
11252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_CC+:} false; then :
11257 $as_echo_n "(cached) " >&6
11258 else
11259 if test -n "$CC"; then
11260 ac_cv_prog_CC="$CC" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11273 done
11274 done
11275 IFS=$as_save_IFS
11279 CC=$ac_cv_prog_CC
11280 if test -n "$CC"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11282 $as_echo "$CC" >&6; }
11283 else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11289 test -n "$CC" && break
11290 done
11292 if test -z "$CC"; then
11293 ac_ct_CC=$CC
11294 for ac_prog in cl.exe
11296 # Extract the first word of "$ac_prog", so it can be a program name with args.
11297 set dummy $ac_prog; ac_word=$2
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299 $as_echo_n "checking for $ac_word... " >&6; }
11300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test -n "$ac_ct_CC"; then
11304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11305 else
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313 ac_cv_prog_ac_ct_CC="$ac_prog"
11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11317 done
11318 done
11319 IFS=$as_save_IFS
11323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11324 if test -n "$ac_ct_CC"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11326 $as_echo "$ac_ct_CC" >&6; }
11327 else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 $as_echo "no" >&6; }
11333 test -n "$ac_ct_CC" && break
11334 done
11336 if test "x$ac_ct_CC" = x; then
11337 CC=""
11338 else
11339 case $cross_compiling:$ac_tool_warned in
11340 yes:)
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11343 ac_tool_warned=yes ;;
11344 esac
11345 CC=$ac_ct_CC
11352 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11354 as_fn_error $? "no acceptable C compiler found in \$PATH
11355 See \`config.log' for more details" "$LINENO" 5; }
11357 # Provide some information about the compiler.
11358 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11359 set X $ac_compile
11360 ac_compiler=$2
11361 for ac_option in --version -v -V -qversion; do
11362 { { ac_try="$ac_compiler $ac_option >&5"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11368 $as_echo "$ac_try_echo"; } >&5
11369 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11370 ac_status=$?
11371 if test -s conftest.err; then
11372 sed '10a\
11373 ... rest of stderr output deleted ...
11374 10q' conftest.err >conftest.er1
11375 cat conftest.er1 >&5
11377 rm -f conftest.er1 conftest.err
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; }
11380 done
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11384 if ${ac_cv_c_compiler_gnu+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11391 main ()
11393 #ifndef __GNUC__
11394 choke me
11395 #endif
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 ac_compiler_gnu=yes
11403 else
11404 ac_compiler_gnu=no
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11411 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11412 if test $ac_compiler_gnu = yes; then
11413 GCC=yes
11414 else
11415 GCC=
11417 ac_test_CFLAGS=${CFLAGS+set}
11418 ac_save_CFLAGS=$CFLAGS
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11420 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11421 if ${ac_cv_prog_cc_g+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_save_c_werror_flag=$ac_c_werror_flag
11425 ac_c_werror_flag=yes
11426 ac_cv_prog_cc_g=no
11427 CFLAGS="-g"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11432 main ()
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_compile "$LINENO"; then :
11440 ac_cv_prog_cc_g=yes
11441 else
11442 CFLAGS=""
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11447 main ()
11451 return 0;
11453 _ACEOF
11454 if ac_fn_c_try_compile "$LINENO"; then :
11456 else
11457 ac_c_werror_flag=$ac_save_c_werror_flag
11458 CFLAGS="-g"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11463 main ()
11467 return 0;
11469 _ACEOF
11470 if ac_fn_c_try_compile "$LINENO"; then :
11471 ac_cv_prog_cc_g=yes
11473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 ac_c_werror_flag=$ac_save_c_werror_flag
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11481 $as_echo "$ac_cv_prog_cc_g" >&6; }
11482 if test "$ac_test_CFLAGS" = set; then
11483 CFLAGS=$ac_save_CFLAGS
11484 elif test $ac_cv_prog_cc_g = yes; then
11485 if test "$GCC" = yes; then
11486 CFLAGS="-g -O2"
11487 else
11488 CFLAGS="-g"
11490 else
11491 if test "$GCC" = yes; then
11492 CFLAGS="-O2"
11493 else
11494 CFLAGS=
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11498 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11499 if ${ac_cv_prog_cc_c89+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 ac_cv_prog_cc_c89=no
11503 ac_save_CC=$CC
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <stdarg.h>
11507 #include <stdio.h>
11508 #include <sys/types.h>
11509 #include <sys/stat.h>
11510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11511 struct buf { int x; };
11512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11513 static char *e (p, i)
11514 char **p;
11515 int i;
11517 return p[i];
11519 static char *f (char * (*g) (char **, int), char **p, ...)
11521 char *s;
11522 va_list v;
11523 va_start (v,p);
11524 s = g (p, va_arg (v,int));
11525 va_end (v);
11526 return s;
11529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11530 function prototypes and stuff, but not '\xHH' hex character constants.
11531 These don't provoke an error unfortunately, instead are silently treated
11532 as 'x'. The following induces an error, until -std is added to get
11533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11534 array size at least. It's necessary to write '\x00'==0 to get something
11535 that's true only with -std. */
11536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11539 inside strings and character constants. */
11540 #define FOO(x) 'x'
11541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11543 int test (int i, double x);
11544 struct s1 {int (*f) (int a);};
11545 struct s2 {int (*f) (double a);};
11546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11547 int argc;
11548 char **argv;
11550 main ()
11552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11554 return 0;
11556 _ACEOF
11557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11560 CC="$ac_save_CC $ac_arg"
11561 if ac_fn_c_try_compile "$LINENO"; then :
11562 ac_cv_prog_cc_c89=$ac_arg
11564 rm -f core conftest.err conftest.$ac_objext
11565 test "x$ac_cv_prog_cc_c89" != "xno" && break
11566 done
11567 rm -f conftest.$ac_ext
11568 CC=$ac_save_CC
11571 # AC_CACHE_VAL
11572 case "x$ac_cv_prog_cc_c89" in
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11575 $as_echo "none needed" >&6; } ;;
11576 xno)
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11578 $as_echo "unsupported" >&6; } ;;
11580 CC="$CC $ac_cv_prog_cc_c89"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11583 esac
11584 if test "x$ac_cv_prog_cc_c89" != xno; then :
11588 ac_ext=c
11589 ac_cpp='$CPP $CPPFLAGS'
11590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11594 ac_ext=cpp
11595 ac_cpp='$CXXCPP $CPPFLAGS'
11596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11599 if test -z "$CXX"; then
11600 if test -n "$CCC"; then
11601 CXX=$CCC
11602 else
11603 if test -n "$ac_tool_prefix"; then
11604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_prog_CXX+:} false; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 if test -n "$CXX"; then
11614 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11615 else
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11627 done
11628 done
11629 IFS=$as_save_IFS
11633 CXX=$ac_cv_prog_CXX
11634 if test -n "$CXX"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11636 $as_echo "$CXX" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11643 test -n "$CXX" && break
11644 done
11646 if test -z "$CXX"; then
11647 ac_ct_CXX=$CXX
11648 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11650 # Extract the first word of "$ac_prog", so it can be a program name with args.
11651 set dummy $ac_prog; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 if test -n "$ac_ct_CXX"; then
11658 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_prog_ac_ct_CXX="$ac_prog"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11673 IFS=$as_save_IFS
11677 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11678 if test -n "$ac_ct_CXX"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11680 $as_echo "$ac_ct_CXX" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11687 test -n "$ac_ct_CXX" && break
11688 done
11690 if test "x$ac_ct_CXX" = x; then
11691 CXX="g++"
11692 else
11693 case $cross_compiling:$ac_tool_warned in
11694 yes:)
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11697 ac_tool_warned=yes ;;
11698 esac
11699 CXX=$ac_ct_CXX
11705 # Provide some information about the compiler.
11706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11707 set X $ac_compile
11708 ac_compiler=$2
11709 for ac_option in --version -v -V -qversion; do
11710 { { ac_try="$ac_compiler $ac_option >&5"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11716 $as_echo "$ac_try_echo"; } >&5
11717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11718 ac_status=$?
11719 if test -s conftest.err; then
11720 sed '10a\
11721 ... rest of stderr output deleted ...
11722 10q' conftest.err >conftest.er1
11723 cat conftest.er1 >&5
11725 rm -f conftest.er1 conftest.err
11726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727 test $ac_status = 0; }
11728 done
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11731 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11732 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11739 main ()
11741 #ifndef __GNUC__
11742 choke me
11743 #endif
11746 return 0;
11748 _ACEOF
11749 if ac_fn_cxx_try_compile "$LINENO"; then :
11750 ac_compiler_gnu=yes
11751 else
11752 ac_compiler_gnu=no
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11759 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11760 if test $ac_compiler_gnu = yes; then
11761 GXX=yes
11762 else
11763 GXX=
11765 ac_test_CXXFLAGS=${CXXFLAGS+set}
11766 ac_save_CXXFLAGS=$CXXFLAGS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11768 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11769 if ${ac_cv_prog_cxx_g+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11773 ac_cxx_werror_flag=yes
11774 ac_cv_prog_cxx_g=no
11775 CXXFLAGS="-g"
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11780 main ()
11784 return 0;
11786 _ACEOF
11787 if ac_fn_cxx_try_compile "$LINENO"; then :
11788 ac_cv_prog_cxx_g=yes
11789 else
11790 CXXFLAGS=""
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11795 main ()
11799 return 0;
11801 _ACEOF
11802 if ac_fn_cxx_try_compile "$LINENO"; then :
11804 else
11805 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11806 CXXFLAGS="-g"
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11811 main ()
11815 return 0;
11817 _ACEOF
11818 if ac_fn_cxx_try_compile "$LINENO"; then :
11819 ac_cv_prog_cxx_g=yes
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11826 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11829 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11830 if test "$ac_test_CXXFLAGS" = set; then
11831 CXXFLAGS=$ac_save_CXXFLAGS
11832 elif test $ac_cv_prog_cxx_g = yes; then
11833 if test "$GXX" = yes; then
11834 CXXFLAGS="-g -O2"
11835 else
11836 CXXFLAGS="-g"
11838 else
11839 if test "$GXX" = yes; then
11840 CXXFLAGS="-O2"
11841 else
11842 CXXFLAGS=
11845 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11853 func_stripname_cnf ()
11855 case ${2} in
11856 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11857 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11858 esac
11859 } # func_stripname_cnf
11861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11862 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11863 (test "X$CXX" != "Xg++"))) ; then
11864 ac_ext=cpp
11865 ac_cpp='$CXXCPP $CPPFLAGS'
11866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11870 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11871 if test -z "$CXXCPP"; then
11872 if ${ac_cv_prog_CXXCPP+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 # Double quotes because CXXCPP needs to be expanded
11876 for CXXCPP in "$CXX -E" "/lib/cpp"
11878 ac_preproc_ok=false
11879 for ac_cxx_preproc_warn_flag in '' yes
11881 # Use a header file that comes with gcc, so configuring glibc
11882 # with a fresh cross-compiler works.
11883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884 # <limits.h> exists even on freestanding compilers.
11885 # On the NeXT, cc -E runs the code through the compiler's parser,
11886 # not just through cpp. "Syntax error" is here to catch this case.
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889 #ifdef __STDC__
11890 # include <limits.h>
11891 #else
11892 # include <assert.h>
11893 #endif
11894 Syntax error
11895 _ACEOF
11896 if ac_fn_cxx_try_cpp "$LINENO"; then :
11898 else
11899 # Broken: fails on valid input.
11900 continue
11902 rm -f conftest.err conftest.i conftest.$ac_ext
11904 # OK, works on sane cases. Now check whether nonexistent headers
11905 # can be detected and how.
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include <ac_nonexistent.h>
11909 _ACEOF
11910 if ac_fn_cxx_try_cpp "$LINENO"; then :
11911 # Broken: success on invalid input.
11912 continue
11913 else
11914 # Passes both tests.
11915 ac_preproc_ok=:
11916 break
11918 rm -f conftest.err conftest.i conftest.$ac_ext
11920 done
11921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11922 rm -f conftest.i conftest.err conftest.$ac_ext
11923 if $ac_preproc_ok; then :
11924 break
11927 done
11928 ac_cv_prog_CXXCPP=$CXXCPP
11931 CXXCPP=$ac_cv_prog_CXXCPP
11932 else
11933 ac_cv_prog_CXXCPP=$CXXCPP
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11936 $as_echo "$CXXCPP" >&6; }
11937 ac_preproc_ok=false
11938 for ac_cxx_preproc_warn_flag in '' yes
11940 # Use a header file that comes with gcc, so configuring glibc
11941 # with a fresh cross-compiler works.
11942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11943 # <limits.h> exists even on freestanding compilers.
11944 # On the NeXT, cc -E runs the code through the compiler's parser,
11945 # not just through cpp. "Syntax error" is here to catch this case.
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948 #ifdef __STDC__
11949 # include <limits.h>
11950 #else
11951 # include <assert.h>
11952 #endif
11953 Syntax error
11954 _ACEOF
11955 if ac_fn_cxx_try_cpp "$LINENO"; then :
11957 else
11958 # Broken: fails on valid input.
11959 continue
11961 rm -f conftest.err conftest.i conftest.$ac_ext
11963 # OK, works on sane cases. Now check whether nonexistent headers
11964 # can be detected and how.
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <ac_nonexistent.h>
11968 _ACEOF
11969 if ac_fn_cxx_try_cpp "$LINENO"; then :
11970 # Broken: success on invalid input.
11971 continue
11972 else
11973 # Passes both tests.
11974 ac_preproc_ok=:
11975 break
11977 rm -f conftest.err conftest.i conftest.$ac_ext
11979 done
11980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11981 rm -f conftest.i conftest.err conftest.$ac_ext
11982 if $ac_preproc_ok; then :
11984 else
11985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11987 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11988 See \`config.log' for more details" "$LINENO" 5; }
11991 ac_ext=c
11992 ac_cpp='$CPP $CPPFLAGS'
11993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11997 else
11998 _lt_caught_CXX_error=yes
12001 ac_ext=cpp
12002 ac_cpp='$CXXCPP $CPPFLAGS'
12003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12007 archive_cmds_need_lc_CXX=no
12008 allow_undefined_flag_CXX=
12009 always_export_symbols_CXX=no
12010 archive_expsym_cmds_CXX=
12011 compiler_needs_object_CXX=no
12012 export_dynamic_flag_spec_CXX=
12013 hardcode_direct_CXX=no
12014 hardcode_direct_absolute_CXX=no
12015 hardcode_libdir_flag_spec_CXX=
12016 hardcode_libdir_flag_spec_ld_CXX=
12017 hardcode_libdir_separator_CXX=
12018 hardcode_minus_L_CXX=no
12019 hardcode_shlibpath_var_CXX=unsupported
12020 hardcode_automatic_CXX=no
12021 inherit_rpath_CXX=no
12022 module_cmds_CXX=
12023 module_expsym_cmds_CXX=
12024 link_all_deplibs_CXX=unknown
12025 old_archive_cmds_CXX=$old_archive_cmds
12026 reload_flag_CXX=$reload_flag
12027 reload_cmds_CXX=$reload_cmds
12028 no_undefined_flag_CXX=
12029 whole_archive_flag_spec_CXX=
12030 enable_shared_with_static_runtimes_CXX=no
12032 # Source file extension for C++ test sources.
12033 ac_ext=cpp
12035 # Object file extension for compiled C++ test sources.
12036 objext=o
12037 objext_CXX=$objext
12039 # No sense in running all these tests if we already determined that
12040 # the CXX compiler isn't working. Some variables (like enable_shared)
12041 # are currently assumed to apply to all compilers on this platform,
12042 # and will be corrupted by setting them based on a non-working compiler.
12043 if test "$_lt_caught_CXX_error" != yes; then
12044 # Code to be used in simple compile tests
12045 lt_simple_compile_test_code="int some_variable = 0;"
12047 # Code to be used in simple link tests
12048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12057 # If no C compiler was specified, use CC.
12058 LTCC=${LTCC-"$CC"}
12060 # If no C compiler flags were specified, use CFLAGS.
12061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12063 # Allow CC to be a program name with arguments.
12064 compiler=$CC
12067 # save warnings/boilerplate of simple test code
12068 ac_outfile=conftest.$ac_objext
12069 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12070 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12071 _lt_compiler_boilerplate=`cat conftest.err`
12072 $RM conftest*
12074 ac_outfile=conftest.$ac_objext
12075 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12076 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12077 _lt_linker_boilerplate=`cat conftest.err`
12078 $RM -r conftest*
12081 # Allow CC to be a program name with arguments.
12082 lt_save_CC=$CC
12083 lt_save_CFLAGS=$CFLAGS
12084 lt_save_LD=$LD
12085 lt_save_GCC=$GCC
12086 GCC=$GXX
12087 lt_save_with_gnu_ld=$with_gnu_ld
12088 lt_save_path_LD=$lt_cv_path_LD
12089 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12090 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12091 else
12092 $as_unset lt_cv_prog_gnu_ld
12094 if test -n "${lt_cv_path_LDCXX+set}"; then
12095 lt_cv_path_LD=$lt_cv_path_LDCXX
12096 else
12097 $as_unset lt_cv_path_LD
12099 test -z "${LDCXX+set}" || LD=$LDCXX
12100 CC=${CXX-"c++"}
12101 CFLAGS=$CXXFLAGS
12102 compiler=$CC
12103 compiler_CXX=$CC
12104 for cc_temp in $compiler""; do
12105 case $cc_temp in
12106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12108 \-*) ;;
12109 *) break;;
12110 esac
12111 done
12112 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12115 if test -n "$compiler"; then
12116 # We don't want -fno-exception when compiling C++ code, so set the
12117 # no_builtin_flag separately
12118 if test "$GXX" = yes; then
12119 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12120 else
12121 lt_prog_compiler_no_builtin_flag_CXX=
12124 if test "$GXX" = yes; then
12125 # Set up default GNU C++ configuration
12129 # Check whether --with-gnu-ld was given.
12130 if test "${with_gnu_ld+set}" = set; then :
12131 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12132 else
12133 with_gnu_ld=no
12136 ac_prog=ld
12137 if test "$GCC" = yes; then
12138 # Check if gcc -print-prog-name=ld gives a path.
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12140 $as_echo_n "checking for ld used by $CC... " >&6; }
12141 case $host in
12142 *-*-mingw*)
12143 # gcc leaves a trailing carriage return which upsets mingw
12144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12147 esac
12148 case $ac_prog in
12149 # Accept absolute paths.
12150 [\\/]* | ?:[\\/]*)
12151 re_direlt='/[^/][^/]*/\.\./'
12152 # Canonicalize the pathname of ld
12153 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12155 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12156 done
12157 test -z "$LD" && LD="$ac_prog"
12160 # If it fails, then pretend we aren't using GCC.
12161 ac_prog=ld
12164 # If it is relative, then search for the first ld in PATH.
12165 with_gnu_ld=unknown
12167 esac
12168 elif test "$with_gnu_ld" = yes; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12170 $as_echo_n "checking for GNU ld... " >&6; }
12171 else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12173 $as_echo_n "checking for non-GNU ld... " >&6; }
12175 if ${lt_cv_path_LD+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -z "$LD"; then
12179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12180 for ac_dir in $PATH; do
12181 IFS="$lt_save_ifs"
12182 test -z "$ac_dir" && ac_dir=.
12183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12184 lt_cv_path_LD="$ac_dir/$ac_prog"
12185 # Check to see if the program is GNU ld. I'd rather use --version,
12186 # but apparently some variants of GNU ld only accept -v.
12187 # Break only if it was the GNU/non-GNU ld that we prefer.
12188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12189 *GNU* | *'with BFD'*)
12190 test "$with_gnu_ld" != no && break
12193 test "$with_gnu_ld" != yes && break
12195 esac
12197 done
12198 IFS="$lt_save_ifs"
12199 else
12200 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12204 LD="$lt_cv_path_LD"
12205 if test -n "$LD"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12207 $as_echo "$LD" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12214 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12215 if ${lt_cv_prog_gnu_ld+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219 case `$LD -v 2>&1 </dev/null` in
12220 *GNU* | *'with BFD'*)
12221 lt_cv_prog_gnu_ld=yes
12224 lt_cv_prog_gnu_ld=no
12226 esac
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12229 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12230 with_gnu_ld=$lt_cv_prog_gnu_ld
12238 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12239 # archiving commands below assume that GNU ld is being used.
12240 if test "$with_gnu_ld" = yes; then
12241 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12245 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12247 # If archive_cmds runs LD, not CC, wlarc should be empty
12248 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12249 # investigate it a little bit more. (MM)
12250 wlarc='${wl}'
12252 # ancient GNU ld didn't support --whole-archive et. al.
12253 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12254 $GREP 'no-whole-archive' > /dev/null; then
12255 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12256 else
12257 whole_archive_flag_spec_CXX=
12259 else
12260 with_gnu_ld=no
12261 wlarc=
12263 # A generic and very simple default shared library creation
12264 # command for GNU C++ for the case where it uses the native
12265 # linker, instead of GNU ld. If possible, this setting should
12266 # overridden to take advantage of the native linker features on
12267 # the platform it is being used on.
12268 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12271 # Commands to make compiler produce verbose output that lists
12272 # what "hidden" libraries, object files and flags are used when
12273 # linking a shared library.
12274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12276 else
12277 GXX=no
12278 with_gnu_ld=no
12279 wlarc=
12282 # PORTME: fill in a description of your system's C++ link characteristics
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12284 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12285 ld_shlibs_CXX=yes
12286 case $host_os in
12287 aix3*)
12288 # FIXME: insert proper C++ library support
12289 ld_shlibs_CXX=no
12291 aix[4-9]*)
12292 if test "$host_cpu" = ia64; then
12293 # On IA64, the linker does run time linking by default, so we don't
12294 # have to do anything special.
12295 aix_use_runtimelinking=no
12296 exp_sym_flag='-Bexport'
12297 no_entry_flag=""
12298 else
12299 aix_use_runtimelinking=no
12301 # Test if we are trying to use run time linking or normal
12302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12303 # need to do runtime linking.
12304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12305 for ld_flag in $LDFLAGS; do
12306 case $ld_flag in
12307 *-brtl*)
12308 aix_use_runtimelinking=yes
12309 break
12311 esac
12312 done
12314 esac
12316 exp_sym_flag='-bexport'
12317 no_entry_flag='-bnoentry'
12320 # When large executables or shared objects are built, AIX ld can
12321 # have problems creating the table of contents. If linking a library
12322 # or program results in "error TOC overflow" add -mminimal-toc to
12323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12326 archive_cmds_CXX=''
12327 hardcode_direct_CXX=yes
12328 hardcode_direct_absolute_CXX=yes
12329 hardcode_libdir_separator_CXX=':'
12330 link_all_deplibs_CXX=yes
12331 file_list_spec_CXX='${wl}-f,'
12333 if test "$GXX" = yes; then
12334 case $host_os in aix4.[012]|aix4.[012].*)
12335 # We only want to do this on AIX 4.2 and lower, the check
12336 # below for broken collect2 doesn't work under 4.3+
12337 collect2name=`${CC} -print-prog-name=collect2`
12338 if test -f "$collect2name" &&
12339 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12340 then
12341 # We have reworked collect2
12343 else
12344 # We have old collect2
12345 hardcode_direct_CXX=unsupported
12346 # It fails to find uninstalled libraries when the uninstalled
12347 # path is not listed in the libpath. Setting hardcode_minus_L
12348 # to unsupported forces relinking
12349 hardcode_minus_L_CXX=yes
12350 hardcode_libdir_flag_spec_CXX='-L$libdir'
12351 hardcode_libdir_separator_CXX=
12353 esac
12354 shared_flag='-shared'
12355 if test "$aix_use_runtimelinking" = yes; then
12356 shared_flag="$shared_flag "'${wl}-G'
12358 else
12359 # not using gcc
12360 if test "$host_cpu" = ia64; then
12361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12362 # chokes on -Wl,-G. The following line is correct:
12363 shared_flag='-G'
12364 else
12365 if test "$aix_use_runtimelinking" = yes; then
12366 shared_flag='${wl}-G'
12367 else
12368 shared_flag='${wl}-bM:SRE'
12373 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12374 # It seems that -bexpall does not export symbols beginning with
12375 # underscore (_), so it is better to generate a list of symbols to
12376 # export.
12377 always_export_symbols_CXX=yes
12378 if test "$aix_use_runtimelinking" = yes; then
12379 # Warning - without using the other runtime loading flags (-brtl),
12380 # -berok will link without error, but may produce a broken library.
12381 allow_undefined_flag_CXX='-berok'
12382 # Determine the default libpath from the value encoded in an empty
12383 # executable.
12384 if test "${lt_cv_aix_libpath+set}" = set; then
12385 aix_libpath=$lt_cv_aix_libpath
12386 else
12387 if ${lt_cv_aix_libpath__CXX+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12394 main ()
12398 return 0;
12400 _ACEOF
12401 if ac_fn_cxx_try_link "$LINENO"; then :
12403 lt_aix_libpath_sed='
12404 /Import File Strings/,/^$/ {
12405 /^0/ {
12406 s/^0 *\([^ ]*\) *$/\1/
12410 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 # Check for a 64-bit object if we didn't find anything.
12412 if test -z "$lt_cv_aix_libpath__CXX"; then
12413 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 if test -z "$lt_cv_aix_libpath__CXX"; then
12419 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12424 aix_libpath=$lt_cv_aix_libpath__CXX
12427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12429 archive_expsym_cmds_CXX='$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"
12430 else
12431 if test "$host_cpu" = ia64; then
12432 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12433 allow_undefined_flag_CXX="-z nodefs"
12434 archive_expsym_cmds_CXX="\$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"
12435 else
12436 # Determine the default libpath from the value encoded in an
12437 # empty executable.
12438 if test "${lt_cv_aix_libpath+set}" = set; then
12439 aix_libpath=$lt_cv_aix_libpath
12440 else
12441 if ${lt_cv_aix_libpath__CXX+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12448 main ()
12452 return 0;
12454 _ACEOF
12455 if ac_fn_cxx_try_link "$LINENO"; then :
12457 lt_aix_libpath_sed='
12458 /Import File Strings/,/^$/ {
12459 /^0/ {
12460 s/^0 *\([^ ]*\) *$/\1/
12464 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12465 # Check for a 64-bit object if we didn't find anything.
12466 if test -z "$lt_cv_aix_libpath__CXX"; then
12467 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 if test -z "$lt_cv_aix_libpath__CXX"; then
12473 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12478 aix_libpath=$lt_cv_aix_libpath__CXX
12481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12482 # Warning - without using the other run time loading flags,
12483 # -berok will link without error, but may produce a broken library.
12484 no_undefined_flag_CXX=' ${wl}-bernotok'
12485 allow_undefined_flag_CXX=' ${wl}-berok'
12486 if test "$with_gnu_ld" = yes; then
12487 # We only use this code for GNU lds that support --whole-archive.
12488 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12489 else
12490 # Exported symbols can be pulled into shared objects from archives
12491 whole_archive_flag_spec_CXX='$convenience'
12493 archive_cmds_need_lc_CXX=yes
12494 # This is similar to how AIX traditionally builds its shared
12495 # libraries.
12496 archive_expsym_cmds_CXX="\$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'
12501 beos*)
12502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12503 allow_undefined_flag_CXX=unsupported
12504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505 # support --undefined. This deserves some investigation. FIXME
12506 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 else
12508 ld_shlibs_CXX=no
12512 chorus*)
12513 case $cc_basename in
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12518 esac
12521 cygwin* | mingw* | pw32* | cegcc*)
12522 case $GXX,$cc_basename in
12523 ,cl* | no,cl*)
12524 # Native MSVC
12525 # hardcode_libdir_flag_spec is actually meaningless, as there is
12526 # no search path for DLLs.
12527 hardcode_libdir_flag_spec_CXX=' '
12528 allow_undefined_flag_CXX=unsupported
12529 always_export_symbols_CXX=yes
12530 file_list_spec_CXX='@'
12531 # Tell ltmain to make .lib files, not .a files.
12532 libext=lib
12533 # Tell ltmain to make .dll files, not .so files.
12534 shrext_cmds=".dll"
12535 # FIXME: Setting linknames here is a bad hack.
12536 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12537 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12538 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12539 else
12540 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12542 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12543 linknames='
12544 # The linker will not automatically build a static lib if we build a DLL.
12545 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12546 enable_shared_with_static_runtimes_CXX=yes
12547 # Don't use ranlib
12548 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12549 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12550 lt_tool_outputfile="@TOOL_OUTPUT@"~
12551 case $lt_outputfile in
12552 *.exe|*.EXE) ;;
12554 lt_outputfile="$lt_outputfile.exe"
12555 lt_tool_outputfile="$lt_tool_outputfile.exe"
12557 esac~
12558 func_to_tool_file "$lt_outputfile"~
12559 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12560 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12561 $RM "$lt_outputfile.manifest";
12565 # g++
12566 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12567 # as there is no search path for DLLs.
12568 hardcode_libdir_flag_spec_CXX='-L$libdir'
12569 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12570 allow_undefined_flag_CXX=unsupported
12571 always_export_symbols_CXX=no
12572 enable_shared_with_static_runtimes_CXX=yes
12574 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12575 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12576 # If the export-symbols file already is a .def file (1st line
12577 # is EXPORTS), use it as is; otherwise, prepend...
12578 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12579 cp $export_symbols $output_objdir/$soname.def;
12580 else
12581 echo EXPORTS > $output_objdir/$soname.def;
12582 cat $export_symbols >> $output_objdir/$soname.def;
12584 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12585 else
12586 ld_shlibs_CXX=no
12589 esac
12591 darwin* | rhapsody*)
12594 archive_cmds_need_lc_CXX=no
12595 hardcode_direct_CXX=no
12596 hardcode_automatic_CXX=yes
12597 hardcode_shlibpath_var_CXX=unsupported
12598 if test "$lt_cv_ld_force_load" = "yes"; then
12599 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12600 else
12601 whole_archive_flag_spec_CXX=''
12603 link_all_deplibs_CXX=yes
12604 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12605 case $cc_basename in
12606 ifort*) _lt_dar_can_shared=yes ;;
12607 *) _lt_dar_can_shared=$GCC ;;
12608 esac
12609 if test "$_lt_dar_can_shared" = "yes"; then
12610 output_verbose_link_cmd=func_echo_all
12611 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12612 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12613 archive_expsym_cmds_CXX="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}"
12614 module_expsym_cmds_CXX="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}"
12615 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12616 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12617 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12620 else
12621 ld_shlibs_CXX=no
12626 dgux*)
12627 case $cc_basename in
12628 ec++*)
12629 # FIXME: insert proper C++ library support
12630 ld_shlibs_CXX=no
12632 ghcx*)
12633 # Green Hills C++ Compiler
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12638 # FIXME: insert proper C++ library support
12639 ld_shlibs_CXX=no
12641 esac
12644 freebsd[12]*)
12645 # C++ shared libraries reported to be fairly broken before
12646 # switch to ELF
12647 ld_shlibs_CXX=no
12650 freebsd-elf*)
12651 archive_cmds_need_lc_CXX=no
12654 freebsd* | dragonfly*)
12655 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12656 # conventions
12657 ld_shlibs_CXX=yes
12660 gnu*)
12663 haiku*)
12664 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12665 link_all_deplibs_CXX=yes
12668 hpux9*)
12669 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12670 hardcode_libdir_separator_CXX=:
12671 export_dynamic_flag_spec_CXX='${wl}-E'
12672 hardcode_direct_CXX=yes
12673 hardcode_minus_L_CXX=yes # Not in the search PATH,
12674 # but as the default
12675 # location of the library.
12677 case $cc_basename in
12678 CC*)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12682 aCC*)
12683 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12684 # Commands to make compiler produce verbose output that lists
12685 # what "hidden" libraries, object files and flags are used when
12686 # linking a shared library.
12688 # There doesn't appear to be a way to prevent this compiler from
12689 # explicitly linking system object files so we need to strip them
12690 # from the output so that they don't get included in the library
12691 # dependencies.
12692 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12695 if test "$GXX" = yes; then
12696 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12697 else
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12702 esac
12705 hpux10*|hpux11*)
12706 if test $with_gnu_ld = no; then
12707 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12708 hardcode_libdir_separator_CXX=:
12710 case $host_cpu in
12711 hppa*64*|ia64*)
12714 export_dynamic_flag_spec_CXX='${wl}-E'
12716 esac
12718 case $host_cpu in
12719 hppa*64*|ia64*)
12720 hardcode_direct_CXX=no
12721 hardcode_shlibpath_var_CXX=no
12724 hardcode_direct_CXX=yes
12725 hardcode_direct_absolute_CXX=yes
12726 hardcode_minus_L_CXX=yes # Not in the search PATH,
12727 # but as the default
12728 # location of the library.
12730 esac
12732 case $cc_basename in
12733 CC*)
12734 # FIXME: insert proper C++ library support
12735 ld_shlibs_CXX=no
12737 aCC*)
12738 case $host_cpu in
12739 hppa*64*)
12740 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12742 ia64*)
12743 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12746 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12748 esac
12749 # Commands to make compiler produce verbose output that lists
12750 # what "hidden" libraries, object files and flags are used when
12751 # linking a shared library.
12753 # There doesn't appear to be a way to prevent this compiler from
12754 # explicitly linking system object files so we need to strip them
12755 # from the output so that they don't get included in the library
12756 # dependencies.
12757 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12760 if test "$GXX" = yes; then
12761 if test $with_gnu_ld = no; then
12762 case $host_cpu in
12763 hppa*64*)
12764 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12766 ia64*)
12767 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12770 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12772 esac
12774 else
12775 # FIXME: insert proper C++ library support
12776 ld_shlibs_CXX=no
12779 esac
12782 interix[3-9]*)
12783 hardcode_direct_CXX=no
12784 hardcode_shlibpath_var_CXX=no
12785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12786 export_dynamic_flag_spec_CXX='${wl}-E'
12787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12788 # Instead, shared libraries are loaded at an image base (0x10000000 by
12789 # default) and relocated if they conflict, which is a slow very memory
12790 # consuming and fragmenting process. To avoid this, we pick a random,
12791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12793 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12794 archive_expsym_cmds_CXX='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'
12796 irix5* | irix6*)
12797 case $cc_basename in
12798 CC*)
12799 # SGI C++
12800 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12802 # Archives containing C++ object files must be created using
12803 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12804 # necessary to make sure instantiated templates are included
12805 # in the archive.
12806 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12809 if test "$GXX" = yes; then
12810 if test "$with_gnu_ld" = no; then
12811 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12812 else
12813 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12816 link_all_deplibs_CXX=yes
12818 esac
12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12820 hardcode_libdir_separator_CXX=:
12821 inherit_rpath_CXX=yes
12824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12825 case $cc_basename in
12826 KCC*)
12827 # Kuck and Associates, Inc. (KAI) C++ Compiler
12829 # KCC will only create a shared library if the output file
12830 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12831 # to its proper name (with version) after linking.
12832 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12833 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12834 # Commands to make compiler produce verbose output that lists
12835 # what "hidden" libraries, object files and flags are used when
12836 # linking a shared library.
12838 # There doesn't appear to be a way to prevent this compiler from
12839 # explicitly linking system object files so we need to strip them
12840 # from the output so that they don't get included in the library
12841 # dependencies.
12842 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12845 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12847 # Archives containing C++ object files must be created using
12848 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12849 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12851 icpc* | ecpc* )
12852 # Intel C++
12853 with_gnu_ld=yes
12854 # version 8.0 and above of icpc choke on multiply defined symbols
12855 # if we add $predep_objects and $postdep_objects, however 7.1 and
12856 # earlier do not add the objects themselves.
12857 case `$CC -V 2>&1` in
12858 *"Version 7."*)
12859 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12862 *) # Version 8.0 or newer
12863 tmp_idyn=
12864 case $host_cpu in
12865 ia64*) tmp_idyn=' -i_dynamic';;
12866 esac
12867 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12870 esac
12871 archive_cmds_need_lc_CXX=no
12872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12874 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12876 pgCC* | pgcpp*)
12877 # Portland Group C++ compiler
12878 case `$CC -V` in
12879 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12880 prelink_cmds_CXX='tpldir=Template.dir~
12881 rm -rf $tpldir~
12882 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12883 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12884 old_archive_cmds_CXX='tpldir=Template.dir~
12885 rm -rf $tpldir~
12886 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12887 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12888 $RANLIB $oldlib'
12889 archive_cmds_CXX='tpldir=Template.dir~
12890 rm -rf $tpldir~
12891 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12892 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12893 archive_expsym_cmds_CXX='tpldir=Template.dir~
12894 rm -rf $tpldir~
12895 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12896 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12898 *) # Version 6 and above use weak symbols
12899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12900 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12902 esac
12904 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12905 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12906 whole_archive_flag_spec_CXX='${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'
12908 cxx*)
12909 # Compaq C++
12910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12911 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12913 runpath_var=LD_RUN_PATH
12914 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12915 hardcode_libdir_separator_CXX=:
12917 # Commands to make compiler produce verbose output that lists
12918 # what "hidden" libraries, object files and flags are used when
12919 # linking a shared library.
12921 # There doesn't appear to be a way to prevent this compiler from
12922 # explicitly linking system object files so we need to strip them
12923 # from the output so that they don't get included in the library
12924 # dependencies.
12925 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12927 xl* | mpixl* | bgxl*)
12928 # IBM XL 8.0 on PPC, with GNU ld
12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 if test "x$supports_anon_versioning" = xyes; then
12933 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12935 echo "local: *; };" >> $output_objdir/$libname.ver~
12936 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12940 case `$CC -V 2>&1 | sed 5q` in
12941 *Sun\ C*)
12942 # Sun C++ 5.9
12943 no_undefined_flag_CXX=' -zdefs'
12944 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12945 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12946 hardcode_libdir_flag_spec_CXX='-R$libdir'
12947 whole_archive_flag_spec_CXX='${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'
12948 compiler_needs_object_CXX=yes
12950 # Not sure whether something based on
12951 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12952 # would be better.
12953 output_verbose_link_cmd='func_echo_all'
12955 # Archives containing C++ object files must be created using
12956 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12957 # necessary to make sure instantiated templates are included
12958 # in the archive.
12959 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12961 esac
12963 esac
12966 lynxos*)
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12971 m88k*)
12972 # FIXME: insert proper C++ library support
12973 ld_shlibs_CXX=no
12976 mvs*)
12977 case $cc_basename in
12978 cxx*)
12979 # FIXME: insert proper C++ library support
12980 ld_shlibs_CXX=no
12983 # FIXME: insert proper C++ library support
12984 ld_shlibs_CXX=no
12986 esac
12989 netbsd*)
12990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12991 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12992 wlarc=
12993 hardcode_libdir_flag_spec_CXX='-R$libdir'
12994 hardcode_direct_CXX=yes
12995 hardcode_shlibpath_var_CXX=no
12997 # Workaround some broken pre-1.5 toolchains
12998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13001 *nto* | *qnx*)
13002 ld_shlibs_CXX=yes
13005 openbsd2*)
13006 # C++ shared libraries are fairly broken
13007 ld_shlibs_CXX=no
13010 openbsd*)
13011 if test -f /usr/libexec/ld.so; then
13012 hardcode_direct_CXX=yes
13013 hardcode_shlibpath_var_CXX=no
13014 hardcode_direct_absolute_CXX=yes
13015 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13018 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13019 export_dynamic_flag_spec_CXX='${wl}-E'
13020 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13022 output_verbose_link_cmd=func_echo_all
13023 else
13024 ld_shlibs_CXX=no
13028 osf3* | osf4* | osf5*)
13029 case $cc_basename in
13030 KCC*)
13031 # Kuck and Associates, Inc. (KAI) C++ Compiler
13033 # KCC will only create a shared library if the output file
13034 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13035 # to its proper name (with version) after linking.
13036 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13039 hardcode_libdir_separator_CXX=:
13041 # Archives containing C++ object files must be created using
13042 # the KAI C++ compiler.
13043 case $host in
13044 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13045 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13046 esac
13048 RCC*)
13049 # Rational C++ 2.4.1
13050 # FIXME: insert proper C++ library support
13051 ld_shlibs_CXX=no
13053 cxx*)
13054 case $host in
13055 osf3*)
13056 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13057 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13061 allow_undefined_flag_CXX=' -expect_unresolved \*'
13062 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13063 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13064 echo "-hidden">> $lib.exp~
13065 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13066 $RM $lib.exp'
13067 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13069 esac
13071 hardcode_libdir_separator_CXX=:
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13077 # There doesn't appear to be a way to prevent this compiler from
13078 # explicitly linking system object files so we need to strip them
13079 # from the output so that they don't get included in the library
13080 # dependencies.
13081 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13084 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13085 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13086 case $host in
13087 osf3*)
13088 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13091 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13093 esac
13095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13096 hardcode_libdir_separator_CXX=:
13098 # Commands to make compiler produce verbose output that lists
13099 # what "hidden" libraries, object files and flags are used when
13100 # linking a shared library.
13101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13103 else
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13108 esac
13111 psos*)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13116 sunos4*)
13117 case $cc_basename in
13118 CC*)
13119 # Sun C++ 4.x
13120 # FIXME: insert proper C++ library support
13121 ld_shlibs_CXX=no
13123 lcc*)
13124 # Lucid
13125 # FIXME: insert proper C++ library support
13126 ld_shlibs_CXX=no
13129 # FIXME: insert proper C++ library support
13130 ld_shlibs_CXX=no
13132 esac
13135 solaris*)
13136 case $cc_basename in
13137 CC* | sunCC*)
13138 # Sun C++ 4.2, 5.x and Centerline C++
13139 archive_cmds_need_lc_CXX=yes
13140 no_undefined_flag_CXX=' -zdefs'
13141 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13145 hardcode_libdir_flag_spec_CXX='-R$libdir'
13146 hardcode_shlibpath_var_CXX=no
13147 case $host_os in
13148 solaris2.[0-5] | solaris2.[0-5].*) ;;
13150 # The compiler driver will combine and reorder linker options,
13151 # but understands `-z linker_flag'.
13152 # Supported since Solaris 2.6 (maybe 2.5.1?)
13153 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13155 esac
13156 link_all_deplibs_CXX=yes
13158 output_verbose_link_cmd='func_echo_all'
13160 # Archives containing C++ object files must be created using
13161 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13162 # necessary to make sure instantiated templates are included
13163 # in the archive.
13164 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13166 gcx*)
13167 # Green Hills C++ Compiler
13168 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13170 # The C++ compiler must be used to create the archive.
13171 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13174 # GNU C++ compiler with Solaris linker
13175 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13176 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13177 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13178 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13179 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13180 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13182 # Commands to make compiler produce verbose output that lists
13183 # what "hidden" libraries, object files and flags are used when
13184 # linking a shared library.
13185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13186 else
13187 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13188 # platform.
13189 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13190 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13191 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13193 # Commands to make compiler produce verbose output that lists
13194 # what "hidden" libraries, object files and flags are used when
13195 # linking a shared library.
13196 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13199 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13200 case $host_os in
13201 solaris2.[0-5] | solaris2.[0-5].*) ;;
13203 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13205 esac
13208 esac
13211 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13212 no_undefined_flag_CXX='${wl}-z,text'
13213 archive_cmds_need_lc_CXX=no
13214 hardcode_shlibpath_var_CXX=no
13215 runpath_var='LD_RUN_PATH'
13217 case $cc_basename in
13218 CC*)
13219 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13223 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13224 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13226 esac
13229 sysv5* | sco3.2v5* | sco5v6*)
13230 # Note: We can NOT use -z defs as we might desire, because we do not
13231 # link with -lc, and that would cause any symbols used from libc to
13232 # always be unresolved, which means just about no library would
13233 # ever link correctly. If we're not using GNU ld we use -z text
13234 # though, which does catch some bad symbols but isn't as heavy-handed
13235 # as -z defs.
13236 no_undefined_flag_CXX='${wl}-z,text'
13237 allow_undefined_flag_CXX='${wl}-z,nodefs'
13238 archive_cmds_need_lc_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13240 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13241 hardcode_libdir_separator_CXX=':'
13242 link_all_deplibs_CXX=yes
13243 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13244 runpath_var='LD_RUN_PATH'
13246 case $cc_basename in
13247 CC*)
13248 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13250 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13251 '"$old_archive_cmds_CXX"
13252 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13253 '"$reload_cmds_CXX"
13256 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13259 esac
13262 tandem*)
13263 case $cc_basename in
13264 NCC*)
13265 # NonStop-UX NCC 3.20
13266 # FIXME: insert proper C++ library support
13267 ld_shlibs_CXX=no
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13273 esac
13276 vxworks*)
13277 # FIXME: insert proper C++ library support
13278 ld_shlibs_CXX=no
13282 # FIXME: insert proper C++ library support
13283 ld_shlibs_CXX=no
13285 esac
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13288 $as_echo "$ld_shlibs_CXX" >&6; }
13289 test "$ld_shlibs_CXX" = no && can_build_shared=no
13291 GCC_CXX="$GXX"
13292 LD_CXX="$LD"
13294 ## CAVEAT EMPTOR:
13295 ## There is no encapsulation within the following macros, do not change
13296 ## the running order or otherwise move them around unless you know exactly
13297 ## what you are doing...
13298 # Dependencies to place before and after the object being linked:
13299 predep_objects_CXX=
13300 postdep_objects_CXX=
13301 predeps_CXX=
13302 postdeps_CXX=
13303 compiler_lib_search_path_CXX=
13305 cat > conftest.$ac_ext <<_LT_EOF
13306 class Foo
13308 public:
13309 Foo (void) { a = 0; }
13310 private:
13311 int a;
13313 _LT_EOF
13316 _lt_libdeps_save_CFLAGS=$CFLAGS
13317 case "$CC $CFLAGS " in #(
13318 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13319 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13320 esac
13322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13323 (eval $ac_compile) 2>&5
13324 ac_status=$?
13325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 test $ac_status = 0; }; then
13327 # Parse the compiler output and extract the necessary
13328 # objects, libraries and library flags.
13330 # Sentinel used to keep track of whether or not we are before
13331 # the conftest object file.
13332 pre_test_object_deps_done=no
13334 for p in `eval "$output_verbose_link_cmd"`; do
13335 case ${prev}${p} in
13337 -L* | -R* | -l*)
13338 # Some compilers place space between "-{L,R}" and the path.
13339 # Remove the space.
13340 if test $p = "-L" ||
13341 test $p = "-R"; then
13342 prev=$p
13343 continue
13346 # Expand the sysroot to ease extracting the directories later.
13347 if test -z "$prev"; then
13348 case $p in
13349 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13350 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13351 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13352 esac
13354 case $p in
13355 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13356 esac
13357 if test "$pre_test_object_deps_done" = no; then
13358 case ${prev} in
13359 -L | -R)
13360 # Internal compiler library paths should come after those
13361 # provided the user. The postdeps already come after the
13362 # user supplied libs so there is no need to process them.
13363 if test -z "$compiler_lib_search_path_CXX"; then
13364 compiler_lib_search_path_CXX="${prev}${p}"
13365 else
13366 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13369 # The "-l" case would never come before the object being
13370 # linked, so don't bother handling this case.
13371 esac
13372 else
13373 if test -z "$postdeps_CXX"; then
13374 postdeps_CXX="${prev}${p}"
13375 else
13376 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13379 prev=
13382 *.lto.$objext) ;; # Ignore GCC LTO objects
13383 *.$objext)
13384 # This assumes that the test object file only shows up
13385 # once in the compiler output.
13386 if test "$p" = "conftest.$objext"; then
13387 pre_test_object_deps_done=yes
13388 continue
13391 if test "$pre_test_object_deps_done" = no; then
13392 if test -z "$predep_objects_CXX"; then
13393 predep_objects_CXX="$p"
13394 else
13395 predep_objects_CXX="$predep_objects_CXX $p"
13397 else
13398 if test -z "$postdep_objects_CXX"; then
13399 postdep_objects_CXX="$p"
13400 else
13401 postdep_objects_CXX="$postdep_objects_CXX $p"
13406 *) ;; # Ignore the rest.
13408 esac
13409 done
13411 # Clean up.
13412 rm -f a.out a.exe
13413 else
13414 echo "libtool.m4: error: problem compiling CXX test program"
13417 $RM -f confest.$objext
13418 CFLAGS=$_lt_libdeps_save_CFLAGS
13420 # PORTME: override above test on systems where it is broken
13421 case $host_os in
13422 interix[3-9]*)
13423 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13424 # hack all around it, let's just trust "g++" to DTRT.
13425 predep_objects_CXX=
13426 postdep_objects_CXX=
13427 postdeps_CXX=
13430 linux*)
13431 case `$CC -V 2>&1 | sed 5q` in
13432 *Sun\ C*)
13433 # Sun C++ 5.9
13435 # The more standards-conforming stlport4 library is
13436 # incompatible with the Cstd library. Avoid specifying
13437 # it if it's in CXXFLAGS. Ignore libCrun as
13438 # -library=stlport4 depends on it.
13439 case " $CXX $CXXFLAGS " in
13440 *" -library=stlport4 "*)
13441 solaris_use_stlport4=yes
13443 esac
13445 if test "$solaris_use_stlport4" != yes; then
13446 postdeps_CXX='-library=Cstd -library=Crun'
13449 esac
13452 solaris*)
13453 case $cc_basename in
13454 CC* | sunCC*)
13455 # The more standards-conforming stlport4 library is
13456 # incompatible with the Cstd library. Avoid specifying
13457 # it if it's in CXXFLAGS. Ignore libCrun as
13458 # -library=stlport4 depends on it.
13459 case " $CXX $CXXFLAGS " in
13460 *" -library=stlport4 "*)
13461 solaris_use_stlport4=yes
13463 esac
13465 # Adding this requires a known-good setup of shared libraries for
13466 # Sun compiler versions before 5.6, else PIC objects from an old
13467 # archive will be linked into the output, leading to subtle bugs.
13468 if test "$solaris_use_stlport4" != yes; then
13469 postdeps_CXX='-library=Cstd -library=Crun'
13472 esac
13474 esac
13477 case " $postdeps_CXX " in
13478 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13479 esac
13480 compiler_lib_search_dirs_CXX=
13481 if test -n "${compiler_lib_search_path_CXX}"; then
13482 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13515 lt_prog_compiler_wl_CXX=
13516 lt_prog_compiler_pic_CXX=
13517 lt_prog_compiler_static_CXX=
13520 # C++ specific cases for pic, static, wl, etc.
13521 if test "$GXX" = yes; then
13522 lt_prog_compiler_wl_CXX='-Wl,'
13523 lt_prog_compiler_static_CXX='-static'
13525 case $host_os in
13526 aix*)
13527 # All AIX code is PIC.
13528 if test "$host_cpu" = ia64; then
13529 # AIX 5 now supports IA64 processor
13530 lt_prog_compiler_static_CXX='-Bstatic'
13534 amigaos*)
13535 case $host_cpu in
13536 powerpc)
13537 # see comment about AmigaOS4 .so support
13538 lt_prog_compiler_pic_CXX='-fPIC'
13540 m68k)
13541 # FIXME: we need at least 68020 code to build shared libraries, but
13542 # adding the `-m68020' flag to GCC prevents building anything better,
13543 # like `-m68040'.
13544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13546 esac
13549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13550 # PIC is the default for these OSes.
13552 mingw* | cygwin* | os2* | pw32* | cegcc*)
13553 # This hack is so that the source file can tell whether it is being
13554 # built for inclusion in a dll (and should export symbols for example).
13555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13556 # (--disable-auto-import) libraries
13557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13559 darwin* | rhapsody*)
13560 # PIC is the default on this platform
13561 # Common symbols not allowed in MH_DYLIB files
13562 lt_prog_compiler_pic_CXX='-fno-common'
13564 *djgpp*)
13565 # DJGPP does not support shared libraries at all
13566 lt_prog_compiler_pic_CXX=
13568 haiku*)
13569 # PIC is the default for Haiku.
13570 # The "-static" flag exists, but is broken.
13571 lt_prog_compiler_static_CXX=
13573 interix[3-9]*)
13574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13575 # Instead, we relocate shared libraries at runtime.
13577 sysv4*MP*)
13578 if test -d /usr/nec; then
13579 lt_prog_compiler_pic_CXX=-Kconform_pic
13582 hpux*)
13583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13585 # sets the default TLS model and affects inlining.
13586 case $host_cpu in
13587 hppa*64*)
13590 lt_prog_compiler_pic_CXX='-fPIC'
13592 esac
13594 *qnx* | *nto*)
13595 # QNX uses GNU C++, but need to define -shared option too, otherwise
13596 # it will coredump.
13597 lt_prog_compiler_pic_CXX='-fPIC -shared'
13600 lt_prog_compiler_pic_CXX='-fPIC'
13602 esac
13603 else
13604 case $host_os in
13605 aix[4-9]*)
13606 # All AIX code is PIC.
13607 if test "$host_cpu" = ia64; then
13608 # AIX 5 now supports IA64 processor
13609 lt_prog_compiler_static_CXX='-Bstatic'
13610 else
13611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13614 chorus*)
13615 case $cc_basename in
13616 cxch68*)
13617 # Green Hills C++ Compiler
13618 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13620 esac
13622 mingw* | cygwin* | os2* | pw32* | cegcc*)
13623 # This hack is so that the source file can tell whether it is being
13624 # built for inclusion in a dll (and should export symbols for example).
13625 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13627 dgux*)
13628 case $cc_basename in
13629 ec++*)
13630 lt_prog_compiler_pic_CXX='-KPIC'
13632 ghcx*)
13633 # Green Hills C++ Compiler
13634 lt_prog_compiler_pic_CXX='-pic'
13638 esac
13640 freebsd* | dragonfly*)
13641 # FreeBSD uses GNU C++
13643 hpux9* | hpux10* | hpux11*)
13644 case $cc_basename in
13645 CC*)
13646 lt_prog_compiler_wl_CXX='-Wl,'
13647 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13648 if test "$host_cpu" != ia64; then
13649 lt_prog_compiler_pic_CXX='+Z'
13652 aCC*)
13653 lt_prog_compiler_wl_CXX='-Wl,'
13654 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13655 case $host_cpu in
13656 hppa*64*|ia64*)
13657 # +Z the default
13660 lt_prog_compiler_pic_CXX='+Z'
13662 esac
13666 esac
13668 interix*)
13669 # This is c89, which is MS Visual C++ (no shared libs)
13670 # Anyone wants to do a port?
13672 irix5* | irix6* | nonstopux*)
13673 case $cc_basename in
13674 CC*)
13675 lt_prog_compiler_wl_CXX='-Wl,'
13676 lt_prog_compiler_static_CXX='-non_shared'
13677 # CC pic flag -KPIC is the default.
13681 esac
13683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13684 case $cc_basename in
13685 KCC*)
13686 # KAI C++ Compiler
13687 lt_prog_compiler_wl_CXX='--backend -Wl,'
13688 lt_prog_compiler_pic_CXX='-fPIC'
13690 ecpc* )
13691 # old Intel C++ for x86_64 which still supported -KPIC.
13692 lt_prog_compiler_wl_CXX='-Wl,'
13693 lt_prog_compiler_pic_CXX='-KPIC'
13694 lt_prog_compiler_static_CXX='-static'
13696 icpc* )
13697 # Intel C++, used to be incompatible with GCC.
13698 # ICC 10 doesn't accept -KPIC any more.
13699 lt_prog_compiler_wl_CXX='-Wl,'
13700 lt_prog_compiler_pic_CXX='-fPIC'
13701 lt_prog_compiler_static_CXX='-static'
13703 pgCC* | pgcpp*)
13704 # Portland Group C++ compiler
13705 lt_prog_compiler_wl_CXX='-Wl,'
13706 lt_prog_compiler_pic_CXX='-fpic'
13707 lt_prog_compiler_static_CXX='-Bstatic'
13709 cxx*)
13710 # Compaq C++
13711 # Make sure the PIC flag is empty. It appears that all Alpha
13712 # Linux and Compaq Tru64 Unix objects are PIC.
13713 lt_prog_compiler_pic_CXX=
13714 lt_prog_compiler_static_CXX='-non_shared'
13716 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13717 # IBM XL 8.0, 9.0 on PPC and BlueGene
13718 lt_prog_compiler_wl_CXX='-Wl,'
13719 lt_prog_compiler_pic_CXX='-qpic'
13720 lt_prog_compiler_static_CXX='-qstaticlink'
13723 case `$CC -V 2>&1 | sed 5q` in
13724 *Sun\ C*)
13725 # Sun C++ 5.9
13726 lt_prog_compiler_pic_CXX='-KPIC'
13727 lt_prog_compiler_static_CXX='-Bstatic'
13728 lt_prog_compiler_wl_CXX='-Qoption ld '
13730 esac
13732 esac
13734 lynxos*)
13736 m88k*)
13738 mvs*)
13739 case $cc_basename in
13740 cxx*)
13741 lt_prog_compiler_pic_CXX='-W c,exportall'
13745 esac
13747 netbsd* | netbsdelf*-gnu)
13749 *qnx* | *nto*)
13750 # QNX uses GNU C++, but need to define -shared option too, otherwise
13751 # it will coredump.
13752 lt_prog_compiler_pic_CXX='-fPIC -shared'
13754 osf3* | osf4* | osf5*)
13755 case $cc_basename in
13756 KCC*)
13757 lt_prog_compiler_wl_CXX='--backend -Wl,'
13759 RCC*)
13760 # Rational C++ 2.4.1
13761 lt_prog_compiler_pic_CXX='-pic'
13763 cxx*)
13764 # Digital/Compaq C++
13765 lt_prog_compiler_wl_CXX='-Wl,'
13766 # Make sure the PIC flag is empty. It appears that all Alpha
13767 # Linux and Compaq Tru64 Unix objects are PIC.
13768 lt_prog_compiler_pic_CXX=
13769 lt_prog_compiler_static_CXX='-non_shared'
13773 esac
13775 psos*)
13777 solaris*)
13778 case $cc_basename in
13779 CC* | sunCC*)
13780 # Sun C++ 4.2, 5.x and Centerline C++
13781 lt_prog_compiler_pic_CXX='-KPIC'
13782 lt_prog_compiler_static_CXX='-Bstatic'
13783 lt_prog_compiler_wl_CXX='-Qoption ld '
13785 gcx*)
13786 # Green Hills C++ Compiler
13787 lt_prog_compiler_pic_CXX='-PIC'
13791 esac
13793 sunos4*)
13794 case $cc_basename in
13795 CC*)
13796 # Sun C++ 4.x
13797 lt_prog_compiler_pic_CXX='-pic'
13798 lt_prog_compiler_static_CXX='-Bstatic'
13800 lcc*)
13801 # Lucid
13802 lt_prog_compiler_pic_CXX='-pic'
13806 esac
13808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13809 case $cc_basename in
13810 CC*)
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 lt_prog_compiler_pic_CXX='-KPIC'
13813 lt_prog_compiler_static_CXX='-Bstatic'
13815 esac
13817 tandem*)
13818 case $cc_basename in
13819 NCC*)
13820 # NonStop-UX NCC 3.20
13821 lt_prog_compiler_pic_CXX='-KPIC'
13825 esac
13827 vxworks*)
13830 lt_prog_compiler_can_build_shared_CXX=no
13832 esac
13835 case $host_os in
13836 # For platforms which do not support PIC, -DPIC is meaningless:
13837 *djgpp*)
13838 lt_prog_compiler_pic_CXX=
13841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13843 esac
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13846 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13847 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13853 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13854 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13857 # Check to make sure the PIC flag actually works.
13859 if test -n "$lt_prog_compiler_pic_CXX"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13861 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13862 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 lt_cv_prog_compiler_pic_works_CXX=no
13866 ac_outfile=conftest.$ac_objext
13867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13868 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13869 # Insert the option either (1) after the last *FLAGS variable, or
13870 # (2) before a word containing "conftest.", or (3) at the end.
13871 # Note that $ac_compile itself does not contain backslashes and begins
13872 # with a dollar sign (not a hyphen), so the echo should work correctly.
13873 # The option is referenced via a variable to avoid confusing sed.
13874 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'`
13878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13879 (eval "$lt_compile" 2>conftest.err)
13880 ac_status=$?
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 if (exit $ac_status) && test -s "$ac_outfile"; then
13884 # The compiler can only warn and ignore the option if not recognized
13885 # So say no if there are warnings other than the usual output.
13886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13889 lt_cv_prog_compiler_pic_works_CXX=yes
13892 $RM conftest*
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13896 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13898 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13899 case $lt_prog_compiler_pic_CXX in
13900 "" | " "*) ;;
13901 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13902 esac
13903 else
13904 lt_prog_compiler_pic_CXX=
13905 lt_prog_compiler_can_build_shared_CXX=no
13915 # Check to make sure the static flag actually works.
13917 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13919 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13920 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 lt_cv_prog_compiler_static_works_CXX=no
13924 save_LDFLAGS="$LDFLAGS"
13925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13928 # The linker can only warn and ignore the option if not recognized
13929 # So say no if there are warnings
13930 if test -s conftest.err; then
13931 # Append any errors to the config.log.
13932 cat conftest.err 1>&5
13933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13935 if diff conftest.exp conftest.er2 >/dev/null; then
13936 lt_cv_prog_compiler_static_works_CXX=yes
13938 else
13939 lt_cv_prog_compiler_static_works_CXX=yes
13942 $RM -r conftest*
13943 LDFLAGS="$save_LDFLAGS"
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13947 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13949 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13951 else
13952 lt_prog_compiler_static_CXX=
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13960 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 lt_cv_prog_compiler_c_o_CXX=no
13964 $RM -r conftest 2>/dev/null
13965 mkdir conftest
13966 cd conftest
13967 mkdir out
13968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="-o out/conftest2.$ac_objext"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 lt_compile=`echo "$ac_compile" | $SED \
13976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13978 -e 's:$: $lt_compiler_flag:'`
13979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13980 (eval "$lt_compile" 2>out/conftest.err)
13981 ac_status=$?
13982 cat out/conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13985 then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings
13988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13991 lt_cv_prog_compiler_c_o_CXX=yes
13994 chmod u+w . 2>&5
13995 $RM conftest*
13996 # SGI C++ compiler will create directory out/ii_files/ for
13997 # template instantiation
13998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13999 $RM out/* && rmdir out
14000 cd ..
14001 $RM -r conftest
14002 $RM conftest*
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14006 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14012 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 lt_cv_prog_compiler_c_o_CXX=no
14016 $RM -r conftest 2>/dev/null
14017 mkdir conftest
14018 cd conftest
14019 mkdir out
14020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14022 lt_compiler_flag="-o out/conftest2.$ac_objext"
14023 # Insert the option either (1) after the last *FLAGS variable, or
14024 # (2) before a word containing "conftest.", or (3) at the end.
14025 # Note that $ac_compile itself does not contain backslashes and begins
14026 # with a dollar sign (not a hyphen), so the echo should work correctly.
14027 lt_compile=`echo "$ac_compile" | $SED \
14028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14030 -e 's:$: $lt_compiler_flag:'`
14031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14032 (eval "$lt_compile" 2>out/conftest.err)
14033 ac_status=$?
14034 cat out/conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14037 then
14038 # The compiler can only warn and ignore the option if not recognized
14039 # So say no if there are warnings
14040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14043 lt_cv_prog_compiler_c_o_CXX=yes
14046 chmod u+w . 2>&5
14047 $RM conftest*
14048 # SGI C++ compiler will create directory out/ii_files/ for
14049 # template instantiation
14050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14051 $RM out/* && rmdir out
14052 cd ..
14053 $RM -r conftest
14054 $RM conftest*
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14058 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14063 hard_links="nottested"
14064 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14065 # do not overwrite the value of need_locks provided by the user
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14067 $as_echo_n "checking if we can lock with hard links... " >&6; }
14068 hard_links=yes
14069 $RM conftest*
14070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14071 touch conftest.a
14072 ln conftest.a conftest.b 2>&5 || hard_links=no
14073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14075 $as_echo "$hard_links" >&6; }
14076 if test "$hard_links" = no; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14078 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14079 need_locks=warn
14081 else
14082 need_locks=no
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14088 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14091 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14092 case $host_os in
14093 aix[4-9]*)
14094 # If we're using GNU nm, then we don't want the "-C" option.
14095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14096 # Also, AIX nm treats weak defined symbols like other global defined
14097 # symbols, whereas GNU nm marks them as "W".
14098 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14099 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14100 else
14101 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14104 pw32*)
14105 export_symbols_cmds_CXX="$ltdll_cmds"
14107 cygwin* | mingw* | cegcc*)
14108 case $cc_basename in
14109 cl*) ;;
14111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14112 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14114 esac
14116 linux* | k*bsd*-gnu | gnu*)
14117 link_all_deplibs_CXX=no
14120 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14122 esac
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14125 $as_echo "$ld_shlibs_CXX" >&6; }
14126 test "$ld_shlibs_CXX" = no && can_build_shared=no
14128 with_gnu_ld_CXX=$with_gnu_ld
14136 # Do we need to explicitly link libc?
14138 case "x$archive_cmds_need_lc_CXX" in
14139 x|xyes)
14140 # Assume -lc should be added
14141 archive_cmds_need_lc_CXX=yes
14143 if test "$enable_shared" = yes && test "$GCC" = yes; then
14144 case $archive_cmds_CXX in
14145 *'~'*)
14146 # FIXME: we may have to deal with multi-command sequences.
14148 '$CC '*)
14149 # Test whether the compiler implicitly links with -lc since on some
14150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14151 # to ld, don't add -lc before -lgcc.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14154 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 $RM conftest*
14158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14161 (eval $ac_compile) 2>&5
14162 ac_status=$?
14163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14164 test $ac_status = 0; } 2>conftest.err; then
14165 soname=conftest
14166 lib=conftest
14167 libobjs=conftest.$ac_objext
14168 deplibs=
14169 wl=$lt_prog_compiler_wl_CXX
14170 pic_flag=$lt_prog_compiler_pic_CXX
14171 compiler_flags=-v
14172 linker_flags=-v
14173 verstring=
14174 output_objdir=.
14175 libname=conftest
14176 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14177 allow_undefined_flag_CXX=
14178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14179 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14180 ac_status=$?
14181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182 test $ac_status = 0; }
14183 then
14184 lt_cv_archive_cmds_need_lc_CXX=no
14185 else
14186 lt_cv_archive_cmds_need_lc_CXX=yes
14188 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14189 else
14190 cat conftest.err 1>&5
14192 $RM conftest*
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14196 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14197 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14199 esac
14202 esac
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14270 library_names_spec=
14271 libname_spec='lib$name'
14272 soname_spec=
14273 shrext_cmds=".so"
14274 postinstall_cmds=
14275 postuninstall_cmds=
14276 finish_cmds=
14277 finish_eval=
14278 shlibpath_var=
14279 shlibpath_overrides_runpath=unknown
14280 version_type=none
14281 dynamic_linker="$host_os ld.so"
14282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14283 need_lib_prefix=unknown
14284 hardcode_into_libs=no
14286 # when you set need_version to no, make sure it does not cause -set_version
14287 # flags to be left without arguments
14288 need_version=unknown
14290 case $host_os in
14291 aix3*)
14292 version_type=linux
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14294 shlibpath_var=LIBPATH
14296 # AIX 3 has no versioning support, so we append a major version to the name.
14297 soname_spec='${libname}${release}${shared_ext}$major'
14300 aix[4-9]*)
14301 version_type=linux
14302 need_lib_prefix=no
14303 need_version=no
14304 hardcode_into_libs=yes
14305 if test "$host_cpu" = ia64; then
14306 # AIX 5 supports IA64
14307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 else
14310 # With GCC up to 2.95.x, collect2 would create an import file
14311 # for dependence libraries. The import file would start with
14312 # the line `#! .'. This would cause the generated library to
14313 # depend on `.', always an invalid library. This was fixed in
14314 # development snapshots of GCC prior to 3.0.
14315 case $host_os in
14316 aix4 | aix4.[01] | aix4.[01].*)
14317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14318 echo ' yes '
14319 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14321 else
14322 can_build_shared=no
14325 esac
14326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14327 # soname into executable. Probably we can add versioning support to
14328 # collect2, so additional links can be useful in future.
14329 if test "$aix_use_runtimelinking" = yes; then
14330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14331 # instead of lib<name>.a to let people know that these are not
14332 # typical AIX shared libraries.
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 else
14335 # We preserve .a as extension for shared libraries through AIX4.2
14336 # and later when we are not doing run time linking.
14337 library_names_spec='${libname}${release}.a $libname.a'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14340 shlibpath_var=LIBPATH
14344 amigaos*)
14345 case $host_cpu in
14346 powerpc)
14347 # Since July 2007 AmigaOS4 officially supports .so libraries.
14348 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351 m68k)
14352 library_names_spec='$libname.ixlibrary $libname.a'
14353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14354 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'
14356 esac
14359 beos*)
14360 library_names_spec='${libname}${shared_ext}'
14361 dynamic_linker="$host_os ld.so"
14362 shlibpath_var=LIBRARY_PATH
14365 bsdi[45]*)
14366 version_type=linux
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14374 # the default ld.so.conf also contains /usr/contrib/lib and
14375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14376 # libtool to hard-code these into programs
14379 cygwin* | mingw* | pw32* | cegcc*)
14380 version_type=windows
14381 shrext_cmds=".dll"
14382 need_version=no
14383 need_lib_prefix=no
14385 case $GCC,$cc_basename in
14386 yes,*)
14387 # gcc
14388 library_names_spec='$libname.dll.a'
14389 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14390 postinstall_cmds='base_file=`basename \${file}`~
14391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14392 dldir=$destdir/`dirname \$dlpath`~
14393 test -d \$dldir || mkdir -p \$dldir~
14394 $install_prog $dir/$dlname \$dldir/$dlname~
14395 chmod a+x \$dldir/$dlname~
14396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14400 dlpath=$dir/\$dldll~
14401 $RM \$dlpath'
14402 shlibpath_overrides_runpath=yes
14404 case $host_os in
14405 cygwin*)
14406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14410 mingw* | cegcc*)
14411 # MinGW DLLs use traditional 'lib' prefix
14412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414 pw32*)
14415 # pw32 DLLs use 'pw' prefix rather than 'lib'
14416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14418 esac
14419 dynamic_linker='Win32 ld.exe'
14422 *,cl*)
14423 # Native MSVC
14424 libname_spec='$name'
14425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14426 library_names_spec='${libname}.dll.lib'
14428 case $build_os in
14429 mingw*)
14430 sys_lib_search_path_spec=
14431 lt_save_ifs=$IFS
14432 IFS=';'
14433 for lt_path in $LIB
14435 IFS=$lt_save_ifs
14436 # Let DOS variable expansion print the short 8.3 style file name.
14437 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14438 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14439 done
14440 IFS=$lt_save_ifs
14441 # Convert to MSYS style.
14442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14444 cygwin*)
14445 # Convert to unix form, then to dos form, then back to unix form
14446 # but this time dos style (no spaces!) so that the unix form looks
14447 # like /cygdrive/c/PROGRA~1:/cygdr...
14448 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14449 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14450 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14453 sys_lib_search_path_spec="$LIB"
14454 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14455 # It is most probably a Windows format PATH.
14456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14457 else
14458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14460 # FIXME: find the short name or the path components, as spaces are
14461 # common. (e.g. "Program Files" -> "PROGRA~1")
14463 esac
14465 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14466 postinstall_cmds='base_file=`basename \${file}`~
14467 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14468 dldir=$destdir/`dirname \$dlpath`~
14469 test -d \$dldir || mkdir -p \$dldir~
14470 $install_prog $dir/$dlname \$dldir/$dlname'
14471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14472 dlpath=$dir/\$dldll~
14473 $RM \$dlpath'
14474 shlibpath_overrides_runpath=yes
14475 dynamic_linker='Win32 link.exe'
14479 # Assume MSVC wrapper
14480 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14481 dynamic_linker='Win32 ld.exe'
14483 esac
14484 # FIXME: first we should search . and the directory the executable is in
14485 shlibpath_var=PATH
14488 darwin* | rhapsody*)
14489 dynamic_linker="$host_os dyld"
14490 version_type=darwin
14491 need_lib_prefix=no
14492 need_version=no
14493 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14494 soname_spec='${libname}${release}${major}$shared_ext'
14495 shlibpath_overrides_runpath=yes
14496 shlibpath_var=DYLD_LIBRARY_PATH
14497 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14502 dgux*)
14503 version_type=linux
14504 need_lib_prefix=no
14505 need_version=no
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 shlibpath_var=LD_LIBRARY_PATH
14511 freebsd1*)
14512 dynamic_linker=no
14515 freebsd* | dragonfly*)
14516 # DragonFly does not have aout. When/if they implement a new
14517 # versioning mechanism, adjust this.
14518 if test -x /usr/bin/objformat; then
14519 objformat=`/usr/bin/objformat`
14520 else
14521 case $host_os in
14522 freebsd[123]*) objformat=aout ;;
14523 *) objformat=elf ;;
14524 esac
14526 version_type=freebsd-$objformat
14527 case $version_type in
14528 freebsd-elf*)
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14530 need_version=no
14531 need_lib_prefix=no
14533 freebsd-*)
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14535 need_version=yes
14537 esac
14538 shlibpath_var=LD_LIBRARY_PATH
14539 case $host_os in
14540 freebsd2*)
14541 shlibpath_overrides_runpath=yes
14543 freebsd3.[01]* | freebsdelf3.[01]*)
14544 shlibpath_overrides_runpath=yes
14545 hardcode_into_libs=yes
14547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14552 *) # from 4.6 on, and DragonFly
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14556 esac
14559 gnu*)
14560 version_type=linux
14561 need_lib_prefix=no
14562 need_version=no
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 shlibpath_var=LD_LIBRARY_PATH
14566 shlibpath_overrides_runpath=no
14567 hardcode_into_libs=yes
14570 haiku*)
14571 version_type=linux
14572 need_lib_prefix=no
14573 need_version=no
14574 dynamic_linker="$host_os runtime_loader"
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14580 hardcode_into_libs=yes
14583 hpux9* | hpux10* | hpux11*)
14584 # Give a soname corresponding to the major version so that dld.sl refuses to
14585 # link against other versions.
14586 version_type=sunos
14587 need_lib_prefix=no
14588 need_version=no
14589 case $host_cpu in
14590 ia64*)
14591 shrext_cmds='.so'
14592 hardcode_into_libs=yes
14593 dynamic_linker="$host_os dld.so"
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 if test "X$HPUX_IA64_MODE" = X32; then
14599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14600 else
14601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14605 hppa*64*)
14606 shrext_cmds='.sl'
14607 hardcode_into_libs=yes
14608 dynamic_linker="$host_os dld.sl"
14609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14617 shrext_cmds='.sl'
14618 dynamic_linker="$host_os dld.sl"
14619 shlibpath_var=SHLIB_PATH
14620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14624 esac
14625 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14626 postinstall_cmds='chmod 555 $lib'
14627 # or fails outright, so override atomically:
14628 install_override_mode=555
14631 interix[3-9]*)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14643 irix5* | irix6* | nonstopux*)
14644 case $host_os in
14645 nonstopux*) version_type=nonstopux ;;
14647 if test "$lt_cv_prog_gnu_ld" = yes; then
14648 version_type=linux
14649 else
14650 version_type=irix
14651 fi ;;
14652 esac
14653 need_lib_prefix=no
14654 need_version=no
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14657 case $host_os in
14658 irix5* | nonstopux*)
14659 libsuff= shlibsuff=
14662 case $LD in # libtool.m4 will add one of these switches to LD
14663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664 libsuff= shlibsuff= libmagic=32-bit;;
14665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666 libsuff=32 shlibsuff=N32 libmagic=N32;;
14667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669 *) libsuff= shlibsuff= libmagic=never-match;;
14670 esac
14672 esac
14673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674 shlibpath_overrides_runpath=no
14675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677 hardcode_into_libs=yes
14680 # No shared lib support for Linux oldld, aout, or coff.
14681 linux*oldld* | linux*aout* | linux*coff*)
14682 dynamic_linker=no
14685 # This must be Linux ELF.
14686 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14687 version_type=linux
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=no
14696 # Some binutils ld are patched to set DT_RUNPATH
14697 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 lt_cv_shlibpath_overrides_runpath=no
14701 save_LDFLAGS=$LDFLAGS
14702 save_libdir=$libdir
14703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14709 main ()
14713 return 0;
14715 _ACEOF
14716 if ac_fn_cxx_try_link "$LINENO"; then :
14717 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14718 lt_cv_shlibpath_overrides_runpath=yes
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LDFLAGS=$save_LDFLAGS
14724 libdir=$save_libdir
14728 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14730 # This implies no fast_install, which is unacceptable.
14731 # Some rework will be needed to allow for fast_install
14732 # before this can be enabled.
14733 hardcode_into_libs=yes
14735 # Append ld.so.conf contents to the search path
14736 if test -f /etc/ld.so.conf; then
14737 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' ' '`
14738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14741 # We used to test for /lib/ld.so.1 and disable shared libraries on
14742 # powerpc, because MkLinux only supported shared libraries with the
14743 # GNU dynamic linker. Since this was broken with cross compilers,
14744 # most powerpc-linux boxes support dynamic linking these days and
14745 # people can always --disable-shared, the test was removed, and we
14746 # assume the GNU/Linux dynamic linker is in use.
14747 dynamic_linker='GNU/Linux ld.so'
14750 netbsdelf*-gnu)
14751 version_type=linux
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 hardcode_into_libs=yes
14759 dynamic_linker='NetBSD ld.elf_so'
14762 netbsd*)
14763 version_type=sunos
14764 need_lib_prefix=no
14765 need_version=no
14766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14769 dynamic_linker='NetBSD (a.out) ld.so'
14770 else
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 dynamic_linker='NetBSD ld.elf_so'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14780 newsos6)
14781 version_type=linux
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14787 *nto* | *qnx*)
14788 version_type=qnx
14789 need_lib_prefix=no
14790 need_version=no
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 hardcode_into_libs=yes
14796 dynamic_linker='ldqnx.so'
14799 openbsd*)
14800 version_type=sunos
14801 sys_lib_dlsearch_path_spec="/usr/lib"
14802 need_lib_prefix=no
14803 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14804 case $host_os in
14805 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14806 *) need_version=no ;;
14807 esac
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14812 case $host_os in
14813 openbsd2.[89] | openbsd2.[89].*)
14814 shlibpath_overrides_runpath=no
14817 shlibpath_overrides_runpath=yes
14819 esac
14820 else
14821 shlibpath_overrides_runpath=yes
14825 os2*)
14826 libname_spec='$name'
14827 shrext_cmds=".dll"
14828 need_lib_prefix=no
14829 library_names_spec='$libname${shared_ext} $libname.a'
14830 dynamic_linker='OS/2 ld.exe'
14831 shlibpath_var=LIBPATH
14834 osf3* | osf4* | osf5*)
14835 version_type=osf
14836 need_lib_prefix=no
14837 need_version=no
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14845 rdos*)
14846 dynamic_linker=no
14849 solaris*)
14850 version_type=linux
14851 need_lib_prefix=no
14852 need_version=no
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 shlibpath_overrides_runpath=yes
14857 hardcode_into_libs=yes
14858 # ldd complains unless libraries are executable
14859 postinstall_cmds='chmod +x $lib'
14862 sunos4*)
14863 version_type=sunos
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14868 if test "$with_gnu_ld" = yes; then
14869 need_lib_prefix=no
14871 need_version=yes
14874 sysv4 | sysv4.3*)
14875 version_type=linux
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 case $host_vendor in
14880 sni)
14881 shlibpath_overrides_runpath=no
14882 need_lib_prefix=no
14883 runpath_var=LD_RUN_PATH
14885 siemens)
14886 need_lib_prefix=no
14888 motorola)
14889 need_lib_prefix=no
14890 need_version=no
14891 shlibpath_overrides_runpath=no
14892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14894 esac
14897 sysv4*MP*)
14898 if test -d /usr/nec ;then
14899 version_type=linux
14900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14901 soname_spec='$libname${shared_ext}.$major'
14902 shlibpath_var=LD_LIBRARY_PATH
14906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14907 version_type=freebsd-elf
14908 need_lib_prefix=no
14909 need_version=no
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath=yes
14914 hardcode_into_libs=yes
14915 if test "$with_gnu_ld" = yes; then
14916 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14917 else
14918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14919 case $host_os in
14920 sco3.2v5*)
14921 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14923 esac
14925 sys_lib_dlsearch_path_spec='/usr/lib'
14928 tpf*)
14929 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14930 version_type=linux
14931 need_lib_prefix=no
14932 need_version=no
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 shlibpath_overrides_runpath=no
14936 hardcode_into_libs=yes
14939 uts4*)
14940 version_type=linux
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14947 dynamic_linker=no
14949 esac
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14951 $as_echo "$dynamic_linker" >&6; }
14952 test "$dynamic_linker" = no && can_build_shared=no
14954 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14955 if test "$GCC" = yes; then
14956 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14959 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14960 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14962 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14963 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15005 hardcode_action_CXX=
15006 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15007 test -n "$runpath_var_CXX" ||
15008 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15010 # We can hardcode non-existent directories.
15011 if test "$hardcode_direct_CXX" != no &&
15012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013 # have to relink, otherwise we might link with an installed library
15014 # when we should be linking with a yet-to-be-installed one
15015 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15016 test "$hardcode_minus_L_CXX" != no; then
15017 # Linking always hardcodes the temporary library directory.
15018 hardcode_action_CXX=relink
15019 else
15020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021 hardcode_action_CXX=immediate
15023 else
15024 # We cannot hardcode anything, or else we can only hardcode existing
15025 # directories.
15026 hardcode_action_CXX=unsupported
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15029 $as_echo "$hardcode_action_CXX" >&6; }
15031 if test "$hardcode_action_CXX" = relink ||
15032 test "$inherit_rpath_CXX" = yes; then
15033 # Fast installation is not supported
15034 enable_fast_install=no
15035 elif test "$shlibpath_overrides_runpath" = yes ||
15036 test "$enable_shared" = no; then
15037 # Fast installation is not necessary
15038 enable_fast_install=needless
15047 fi # test -n "$compiler"
15049 CC=$lt_save_CC
15050 CFLAGS=$lt_save_CFLAGS
15051 LDCXX=$LD
15052 LD=$lt_save_LD
15053 GCC=$lt_save_GCC
15054 with_gnu_ld=$lt_save_with_gnu_ld
15055 lt_cv_path_LDCXX=$lt_cv_path_LD
15056 lt_cv_path_LD=$lt_save_path_LD
15057 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15058 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15059 fi # test "$_lt_caught_CXX_error" != yes
15061 ac_ext=c
15062 ac_cpp='$CPP $CPPFLAGS'
15063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15068 # Find a good install program. We prefer a C program (faster),
15069 # so one script is as good as another. But avoid the broken or
15070 # incompatible versions:
15071 # SysV /etc/install, /usr/sbin/install
15072 # SunOS /usr/etc/install
15073 # IRIX /sbin/install
15074 # AIX /bin/install
15075 # AmigaOS /C/install, which installs bootblocks on floppy discs
15076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15079 # OS/2's system install, which has a completely different semantic
15080 # ./install, which can be erroneously created by make from ./install.sh.
15081 # Reject install programs that cannot install multiple files.
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15084 if test -z "$INSTALL"; then
15085 if ${ac_cv_path_install+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 # Account for people who put trailing slashes in PATH elements.
15094 case $as_dir/ in #((
15095 ./ | .// | /[cC]/* | \
15096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15098 /usr/ucb/* ) ;;
15100 # OSF1 and SCO ODT 3.0 have their own names for install.
15101 # Don't use installbsd from OSF since it installs stuff as root
15102 # by default.
15103 for ac_prog in ginstall scoinst install; do
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15106 if test $ac_prog = install &&
15107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15108 # AIX install. It has an incompatible calling convention.
15110 elif test $ac_prog = install &&
15111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15112 # program-specific install script used by HP pwplus--don't use.
15114 else
15115 rm -rf conftest.one conftest.two conftest.dir
15116 echo one > conftest.one
15117 echo two > conftest.two
15118 mkdir conftest.dir
15119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15120 test -s conftest.one && test -s conftest.two &&
15121 test -s conftest.dir/conftest.one &&
15122 test -s conftest.dir/conftest.two
15123 then
15124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15125 break 3
15129 done
15130 done
15132 esac
15134 done
15135 IFS=$as_save_IFS
15137 rm -rf conftest.one conftest.two conftest.dir
15140 if test "${ac_cv_path_install+set}" = set; then
15141 INSTALL=$ac_cv_path_install
15142 else
15143 # As a last resort, use the slow shell script. Don't cache a
15144 # value for INSTALL within a source directory, because that will
15145 # break other packages using the cache if that directory is
15146 # removed, or if the value is a relative name.
15147 INSTALL=$ac_install_sh
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15151 $as_echo "$INSTALL" >&6; }
15153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15154 # It thinks the first close brace ends the variable substitution.
15155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15162 if test "$GCC" = yes ; then
15163 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15164 CFLAGS="$OLDCFLAGS -fexceptions"
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15166 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15171 main ()
15175 return 0;
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"; then :
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15180 $as_echo "yes" >&6; }
15181 else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15183 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15187 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15191 $as_echo_n "checking for ANSI C header files... " >&6; }
15192 if ${ac_cv_header_stdc+:} false; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #include <stdlib.h>
15198 #include <stdarg.h>
15199 #include <string.h>
15200 #include <float.h>
15203 main ()
15207 return 0;
15209 _ACEOF
15210 if ac_fn_c_try_compile "$LINENO"; then :
15211 ac_cv_header_stdc=yes
15212 else
15213 ac_cv_header_stdc=no
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 if test $ac_cv_header_stdc = yes; then
15218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 #include <string.h>
15223 _ACEOF
15224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15225 $EGREP "memchr" >/dev/null 2>&1; then :
15227 else
15228 ac_cv_header_stdc=no
15230 rm -f conftest*
15234 if test $ac_cv_header_stdc = yes; then
15235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 #include <stdlib.h>
15240 _ACEOF
15241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15242 $EGREP "free" >/dev/null 2>&1; then :
15244 else
15245 ac_cv_header_stdc=no
15247 rm -f conftest*
15251 if test $ac_cv_header_stdc = yes; then
15252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15253 if test "$cross_compiling" = yes; then :
15255 else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 #include <ctype.h>
15259 #include <stdlib.h>
15260 #if ((' ' & 0x0FF) == 0x020)
15261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15263 #else
15264 # define ISLOWER(c) \
15265 (('a' <= (c) && (c) <= 'i') \
15266 || ('j' <= (c) && (c) <= 'r') \
15267 || ('s' <= (c) && (c) <= 'z'))
15268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15269 #endif
15271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15273 main ()
15275 int i;
15276 for (i = 0; i < 256; i++)
15277 if (XOR (islower (i), ISLOWER (i))
15278 || toupper (i) != TOUPPER (i))
15279 return 2;
15280 return 0;
15282 _ACEOF
15283 if ac_fn_c_try_run "$LINENO"; then :
15285 else
15286 ac_cv_header_stdc=no
15288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289 conftest.$ac_objext conftest.beam conftest.$ac_ext
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15295 $as_echo "$ac_cv_header_stdc" >&6; }
15296 if test $ac_cv_header_stdc = yes; then
15298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15305 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15306 if ${ac_cv_c_bigendian+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_cv_c_bigendian=unknown
15310 # See if sys/param.h defines the BYTE_ORDER macro.
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #include <sys/types.h>
15314 #include <sys/param.h>
15316 main ()
15319 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15320 bogus endian macros
15321 #endif
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"; then :
15327 # It does; now see whether it defined to BIG_ENDIAN or not.
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/types.h>
15331 #include <sys/param.h>
15333 main ()
15336 #if BYTE_ORDER != BIG_ENDIAN
15337 not big endian
15338 #endif
15340 return 0;
15342 _ACEOF
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344 ac_cv_c_bigendian=yes
15345 else
15346 ac_cv_c_bigendian=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 if test $ac_cv_c_bigendian = unknown; then
15352 if test "$cross_compiling" = yes; then :
15353 echo $ac_n "cross-compiling... " 2>&6
15354 else
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 main () {
15358 /* Are we little or big endian? From Harbison&Steele. */
15359 union
15361 long l;
15362 char c[sizeof (long)];
15363 } u;
15364 u.l = 1;
15365 exit (u.c[sizeof (long) - 1] == 1);
15367 _ACEOF
15368 if ac_fn_c_try_run "$LINENO"; then :
15369 ac_cv_c_bigendian=no
15370 else
15371 ac_cv_c_bigendian=yes
15373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374 conftest.$ac_objext conftest.beam conftest.$ac_ext
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15380 $as_echo "$ac_cv_c_bigendian" >&6; }
15381 if test $ac_cv_c_bigendian = unknown; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15383 $as_echo_n "checking to probe for byte ordering... " >&6; }
15385 cat >conftest.c <<EOF
15386 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15387 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15388 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15389 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15390 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15391 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15392 int main() { _ascii (); _ebcdic (); return 0; }
15394 if test -f conftest.c ; then
15395 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15396 if test `grep -l BIGenDianSyS conftest.o` ; then
15397 echo $ac_n ' big endian probe OK, ' 1>&6
15398 ac_cv_c_bigendian=yes
15400 if test `grep -l LiTTleEnDian conftest.o` ; then
15401 echo $ac_n ' little endian probe OK, ' 1>&6
15402 if test $ac_cv_c_bigendian = yes ; then
15403 ac_cv_c_bigendian=unknown;
15404 else
15405 ac_cv_c_bigendian=no
15408 echo $ac_n 'guessing bigendian ... ' >&6
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15412 $as_echo "$ac_cv_c_bigendian" >&6; }
15414 if test $ac_cv_c_bigendian = yes; then
15416 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15418 BYTEORDER=4321
15419 else
15420 BYTEORDER=1234
15423 cat >>confdefs.h <<_ACEOF
15424 #define BYTEORDER $BYTEORDER
15425 _ACEOF
15427 if test $ac_cv_c_bigendian = unknown; then
15428 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15433 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15434 if ${ac_cv_c_const+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15441 main ()
15443 /* FIXME: Include the comments suggested by Paul. */
15444 #ifndef __cplusplus
15445 /* Ultrix mips cc rejects this. */
15446 typedef int charset[2];
15447 const charset cs;
15448 /* SunOS 4.1.1 cc rejects this. */
15449 char const *const *pcpcc;
15450 char **ppc;
15451 /* NEC SVR4.0.2 mips cc rejects this. */
15452 struct point {int x, y;};
15453 static struct point const zero = {0,0};
15454 /* AIX XL C 1.02.0.0 rejects this.
15455 It does not let you subtract one const X* pointer from another in
15456 an arm of an if-expression whose if-part is not a constant
15457 expression */
15458 const char *g = "string";
15459 pcpcc = &g + (g ? g-g : 0);
15460 /* HPUX 7.0 cc rejects these. */
15461 ++pcpcc;
15462 ppc = (char**) pcpcc;
15463 pcpcc = (char const *const *) ppc;
15464 { /* SCO 3.2v4 cc rejects this. */
15465 char *t;
15466 char const *s = 0 ? (char *) 0 : (char const *) 0;
15468 *t++ = 0;
15469 if (s) return 0;
15471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15472 int x[] = {25, 17};
15473 const int *foo = &x[0];
15474 ++foo;
15476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15477 typedef const int *iptr;
15478 iptr p = 0;
15479 ++p;
15481 { /* AIX XL C 1.02.0.0 rejects this saying
15482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15483 struct s { int j; const int *ap[3]; };
15484 struct s *b; b->j = 5;
15486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15487 const int foo = 10;
15488 if (!foo) return 0;
15490 return !cs[0] && !zero.x;
15491 #endif
15494 return 0;
15496 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498 ac_cv_c_const=yes
15499 else
15500 ac_cv_c_const=no
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15505 $as_echo "$ac_cv_c_const" >&6; }
15506 if test $ac_cv_c_const = no; then
15508 $as_echo "#define const /**/" >>confdefs.h
15512 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15513 if test "x$ac_cv_type_size_t" = xyes; then :
15515 else
15517 cat >>confdefs.h <<_ACEOF
15518 #define size_t unsigned int
15519 _ACEOF
15523 for ac_func in memmove bcopy
15524 do :
15525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15528 cat >>confdefs.h <<_ACEOF
15529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15530 _ACEOF
15533 done
15536 for ac_header in fcntl.h unistd.h
15537 do :
15538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15540 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15541 cat >>confdefs.h <<_ACEOF
15542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543 _ACEOF
15547 done
15549 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15550 if test "x$ac_cv_type_off_t" = xyes; then :
15552 else
15554 cat >>confdefs.h <<_ACEOF
15555 #define off_t long int
15556 _ACEOF
15563 for ac_header in $ac_header_list
15564 do :
15565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15569 cat >>confdefs.h <<_ACEOF
15570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571 _ACEOF
15575 done
15584 for ac_func in getpagesize
15585 do :
15586 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15587 if test "x$ac_cv_func_getpagesize" = xyes; then :
15588 cat >>confdefs.h <<_ACEOF
15589 #define HAVE_GETPAGESIZE 1
15590 _ACEOF
15593 done
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15596 $as_echo_n "checking for working mmap... " >&6; }
15597 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 if test "$cross_compiling" = yes; then :
15601 ac_cv_func_mmap_fixed_mapped=no
15602 else
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 $ac_includes_default
15606 /* malloc might have been renamed as rpl_malloc. */
15607 #undef malloc
15609 /* Thanks to Mike Haertel and Jim Avera for this test.
15610 Here is a matrix of mmap possibilities:
15611 mmap private not fixed
15612 mmap private fixed at somewhere currently unmapped
15613 mmap private fixed at somewhere already mapped
15614 mmap shared not fixed
15615 mmap shared fixed at somewhere currently unmapped
15616 mmap shared fixed at somewhere already mapped
15617 For private mappings, we should verify that changes cannot be read()
15618 back from the file, nor mmap's back from the file at a different
15619 address. (There have been systems where private was not correctly
15620 implemented like the infamous i386 svr4.0, and systems where the
15621 VM page cache was not coherent with the file system buffer cache
15622 like early versions of FreeBSD and possibly contemporary NetBSD.)
15623 For shared mappings, we should conversely verify that changes get
15624 propagated back to all the places they're supposed to be.
15626 Grep wants private fixed already mapped.
15627 The main things grep needs to know about mmap are:
15628 * does it exist and is it safe to write into the mmap'd area
15629 * how to use it (BSD variants) */
15631 #include <fcntl.h>
15632 #include <sys/mman.h>
15634 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15635 char *malloc ();
15636 #endif
15638 /* This mess was copied from the GNU getpagesize.h. */
15639 #ifndef HAVE_GETPAGESIZE
15640 # ifdef _SC_PAGESIZE
15641 # define getpagesize() sysconf(_SC_PAGESIZE)
15642 # else /* no _SC_PAGESIZE */
15643 # ifdef HAVE_SYS_PARAM_H
15644 # include <sys/param.h>
15645 # ifdef EXEC_PAGESIZE
15646 # define getpagesize() EXEC_PAGESIZE
15647 # else /* no EXEC_PAGESIZE */
15648 # ifdef NBPG
15649 # define getpagesize() NBPG * CLSIZE
15650 # ifndef CLSIZE
15651 # define CLSIZE 1
15652 # endif /* no CLSIZE */
15653 # else /* no NBPG */
15654 # ifdef NBPC
15655 # define getpagesize() NBPC
15656 # else /* no NBPC */
15657 # ifdef PAGESIZE
15658 # define getpagesize() PAGESIZE
15659 # endif /* PAGESIZE */
15660 # endif /* no NBPC */
15661 # endif /* no NBPG */
15662 # endif /* no EXEC_PAGESIZE */
15663 # else /* no HAVE_SYS_PARAM_H */
15664 # define getpagesize() 8192 /* punt totally */
15665 # endif /* no HAVE_SYS_PARAM_H */
15666 # endif /* no _SC_PAGESIZE */
15668 #endif /* no HAVE_GETPAGESIZE */
15671 main ()
15673 char *data, *data2, *data3;
15674 const char *cdata2;
15675 int i, pagesize;
15676 int fd, fd2;
15678 pagesize = getpagesize ();
15680 /* First, make a file with some known garbage in it. */
15681 data = (char *) malloc (pagesize);
15682 if (!data)
15683 return 1;
15684 for (i = 0; i < pagesize; ++i)
15685 *(data + i) = rand ();
15686 umask (0);
15687 fd = creat ("conftest.mmap", 0600);
15688 if (fd < 0)
15689 return 2;
15690 if (write (fd, data, pagesize) != pagesize)
15691 return 3;
15692 close (fd);
15694 /* Next, check that the tail of a page is zero-filled. File must have
15695 non-zero length, otherwise we risk SIGBUS for entire page. */
15696 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15697 if (fd2 < 0)
15698 return 4;
15699 cdata2 = "";
15700 if (write (fd2, cdata2, 1) != 1)
15701 return 5;
15702 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15703 if (data2 == MAP_FAILED)
15704 return 6;
15705 for (i = 0; i < pagesize; ++i)
15706 if (*(data2 + i))
15707 return 7;
15708 close (fd2);
15709 if (munmap (data2, pagesize))
15710 return 8;
15712 /* Next, try to mmap the file at a fixed address which already has
15713 something else allocated at it. If we can, also make sure that
15714 we see the same garbage. */
15715 fd = open ("conftest.mmap", O_RDWR);
15716 if (fd < 0)
15717 return 9;
15718 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15719 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15720 return 10;
15721 for (i = 0; i < pagesize; ++i)
15722 if (*(data + i) != *(data2 + i))
15723 return 11;
15725 /* Finally, make sure that changes to the mapped area do not
15726 percolate back to the file as seen by read(). (This is a bug on
15727 some variants of i386 svr4.0.) */
15728 for (i = 0; i < pagesize; ++i)
15729 *(data2 + i) = *(data2 + i) + 1;
15730 data3 = (char *) malloc (pagesize);
15731 if (!data3)
15732 return 12;
15733 if (read (fd, data3, pagesize) != pagesize)
15734 return 13;
15735 for (i = 0; i < pagesize; ++i)
15736 if (*(data + i) != *(data3 + i))
15737 return 14;
15738 close (fd);
15739 return 0;
15741 _ACEOF
15742 if ac_fn_c_try_run "$LINENO"; then :
15743 ac_cv_func_mmap_fixed_mapped=yes
15744 else
15745 ac_cv_func_mmap_fixed_mapped=no
15747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15748 conftest.$ac_objext conftest.beam conftest.$ac_ext
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15753 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15756 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15759 rm -f conftest.mmap conftest.txt
15762 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15763 FILEMAP=unixfilemap
15764 else
15765 FILEMAP=readfilemap
15770 # AC_CPP_FUNC
15771 # ------------------ #
15772 # Checks to see if ANSI C99 CPP variable __func__ works.
15773 # If not, perhaps __FUNCTION__ works instead.
15774 # If not, we'll just define __func__ to "".
15775 # AC_CPP_FUNC
15777 case $ac_cv_prog_cc_stdc in #(
15778 no) :
15779 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15780 *) :
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15782 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15783 if ${ac_cv_prog_cc_c99+:} false; then :
15784 $as_echo_n "(cached) " >&6
15785 else
15786 ac_cv_prog_cc_c99=no
15787 ac_save_CC=$CC
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 #include <stdarg.h>
15791 #include <stdbool.h>
15792 #include <stdlib.h>
15793 #include <wchar.h>
15794 #include <stdio.h>
15796 // Check varargs macros. These examples are taken from C99 6.10.3.5.
15797 #define debug(...) fprintf (stderr, __VA_ARGS__)
15798 #define showlist(...) puts (#__VA_ARGS__)
15799 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15800 static void
15801 test_varargs_macros (void)
15803 int x = 1234;
15804 int y = 5678;
15805 debug ("Flag");
15806 debug ("X = %d\n", x);
15807 showlist (The first, second, and third items.);
15808 report (x>y, "x is %d but y is %d", x, y);
15811 // Check long long types.
15812 #define BIG64 18446744073709551615ull
15813 #define BIG32 4294967295ul
15814 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15815 #if !BIG_OK
15816 your preprocessor is broken;
15817 #endif
15818 #if BIG_OK
15819 #else
15820 your preprocessor is broken;
15821 #endif
15822 static long long int bignum = -9223372036854775807LL;
15823 static unsigned long long int ubignum = BIG64;
15825 struct incomplete_array
15827 int datasize;
15828 double data[];
15831 struct named_init {
15832 int number;
15833 const wchar_t *name;
15834 double average;
15837 typedef const char *ccp;
15839 static inline int
15840 test_restrict (ccp restrict text)
15842 // See if C++-style comments work.
15843 // Iterate through items via the restricted pointer.
15844 // Also check for declarations in for loops.
15845 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15846 continue;
15847 return 0;
15850 // Check varargs and va_copy.
15851 static void
15852 test_varargs (const char *format, ...)
15854 va_list args;
15855 va_start (args, format);
15856 va_list args_copy;
15857 va_copy (args_copy, args);
15859 const char *str;
15860 int number;
15861 float fnumber;
15863 while (*format)
15865 switch (*format++)
15867 case 's': // string
15868 str = va_arg (args_copy, const char *);
15869 break;
15870 case 'd': // int
15871 number = va_arg (args_copy, int);
15872 break;
15873 case 'f': // float
15874 fnumber = va_arg (args_copy, double);
15875 break;
15876 default:
15877 break;
15880 va_end (args_copy);
15881 va_end (args);
15885 main ()
15888 // Check bool.
15889 _Bool success = false;
15891 // Check restrict.
15892 if (test_restrict ("String literal") == 0)
15893 success = true;
15894 char *restrict newvar = "Another string";
15896 // Check varargs.
15897 test_varargs ("s, d' f .", "string", 65, 34.234);
15898 test_varargs_macros ();
15900 // Check flexible array members.
15901 struct incomplete_array *ia =
15902 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15903 ia->datasize = 10;
15904 for (int i = 0; i < ia->datasize; ++i)
15905 ia->data[i] = i * 1.234;
15907 // Check named initializers.
15908 struct named_init ni = {
15909 .number = 34,
15910 .name = L"Test wide string",
15911 .average = 543.34343,
15914 ni.number = 58;
15916 int dynamic_array[ni.number];
15917 dynamic_array[ni.number - 1] = 543;
15919 // work around unused variable warnings
15920 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15921 || dynamic_array[ni.number - 1] != 543);
15924 return 0;
15926 _ACEOF
15927 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
15929 CC="$ac_save_CC $ac_arg"
15930 if ac_fn_c_try_compile "$LINENO"; then :
15931 ac_cv_prog_cc_c99=$ac_arg
15933 rm -f core conftest.err conftest.$ac_objext
15934 test "x$ac_cv_prog_cc_c99" != "xno" && break
15935 done
15936 rm -f conftest.$ac_ext
15937 CC=$ac_save_CC
15940 # AC_CACHE_VAL
15941 case "x$ac_cv_prog_cc_c99" in
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15944 $as_echo "none needed" >&6; } ;;
15945 xno)
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15947 $as_echo "unsupported" >&6; } ;;
15949 CC="$CC $ac_cv_prog_cc_c99"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15951 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15952 esac
15953 if test "x$ac_cv_prog_cc_c99" != xno; then :
15954 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15955 else
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15958 if ${ac_cv_prog_cc_c89+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 ac_cv_prog_cc_c89=no
15962 ac_save_CC=$CC
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964 /* end confdefs.h. */
15965 #include <stdarg.h>
15966 #include <stdio.h>
15967 #include <sys/types.h>
15968 #include <sys/stat.h>
15969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15970 struct buf { int x; };
15971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15972 static char *e (p, i)
15973 char **p;
15974 int i;
15976 return p[i];
15978 static char *f (char * (*g) (char **, int), char **p, ...)
15980 char *s;
15981 va_list v;
15982 va_start (v,p);
15983 s = g (p, va_arg (v,int));
15984 va_end (v);
15985 return s;
15988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15989 function prototypes and stuff, but not '\xHH' hex character constants.
15990 These don't provoke an error unfortunately, instead are silently treated
15991 as 'x'. The following induces an error, until -std is added to get
15992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15993 array size at least. It's necessary to write '\x00'==0 to get something
15994 that's true only with -std. */
15995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15998 inside strings and character constants. */
15999 #define FOO(x) 'x'
16000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16002 int test (int i, double x);
16003 struct s1 {int (*f) (int a);};
16004 struct s2 {int (*f) (double a);};
16005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16006 int argc;
16007 char **argv;
16009 main ()
16011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16013 return 0;
16015 _ACEOF
16016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16019 CC="$ac_save_CC $ac_arg"
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 ac_cv_prog_cc_c89=$ac_arg
16023 rm -f core conftest.err conftest.$ac_objext
16024 test "x$ac_cv_prog_cc_c89" != "xno" && break
16025 done
16026 rm -f conftest.$ac_ext
16027 CC=$ac_save_CC
16030 # AC_CACHE_VAL
16031 case "x$ac_cv_prog_cc_c89" in
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16034 $as_echo "none needed" >&6; } ;;
16035 xno)
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16037 $as_echo "unsupported" >&6; } ;;
16039 CC="$CC $ac_cv_prog_cc_c89"
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16042 esac
16043 if test "x$ac_cv_prog_cc_c89" != xno; then :
16044 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16045 else
16046 ac_cv_prog_cc_stdc=no
16051 esac
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16053 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16054 if ${ac_cv_prog_cc_stdc+:} false; then :
16055 $as_echo_n "(cached) " >&6
16058 case $ac_cv_prog_cc_stdc in #(
16059 no) :
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16061 $as_echo "unsupported" >&6; } ;; #(
16062 '') :
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16064 $as_echo "none needed" >&6; } ;; #(
16065 *) :
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16067 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16068 esac
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16071 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16072 if ${ac_cv_cpp_func+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16079 main ()
16081 char *foo = __func__;
16083 return 0;
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087 ac_cv_cpp_func=yes
16088 else
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16093 main ()
16095 char *foo = __FUNCTION__;
16097 return 0;
16099 _ACEOF
16100 if ac_fn_c_try_compile "$LINENO"; then :
16101 ac_cv_cpp_func=__FUNCTION__
16102 else
16103 ac_cv_cpp_func=no
16105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16110 $as_echo "$ac_cv_cpp_func" >&6; }
16111 if test $ac_cv_cpp_func = __FUNCTION__; then
16113 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16115 elif test $ac_cv_cpp_func = no; then
16117 $as_echo "#define __func__ \"\"" >>confdefs.h
16124 $as_echo "#define XML_NS 1" >>confdefs.h
16127 $as_echo "#define XML_DTD 1" >>confdefs.h
16130 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16133 ac_config_files="$ac_config_files Makefile expat.pc"
16135 cat >confcache <<\_ACEOF
16136 # This file is a shell script that caches the results of configure
16137 # tests run on this system so they can be shared between configure
16138 # scripts and configure runs, see configure's option --config-cache.
16139 # It is not useful on other systems. If it contains results you don't
16140 # want to keep, you may remove or edit it.
16142 # config.status only pays attention to the cache file if you give it
16143 # the --recheck option to rerun configure.
16145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16147 # following values.
16149 _ACEOF
16151 # The following way of writing the cache mishandles newlines in values,
16152 # but we know of no workaround that is simple, portable, and efficient.
16153 # So, we kill variables containing newlines.
16154 # Ultrix sh set writes to stderr and can't be redirected directly,
16155 # and sets the high bit in the cache file unless we assign to the vars.
16157 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16158 eval ac_val=\$$ac_var
16159 case $ac_val in #(
16160 *${as_nl}*)
16161 case $ac_var in #(
16162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16163 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16164 esac
16165 case $ac_var in #(
16166 _ | IFS | as_nl) ;; #(
16167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16168 *) { eval $ac_var=; unset $ac_var;} ;;
16169 esac ;;
16170 esac
16171 done
16173 (set) 2>&1 |
16174 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16175 *${as_nl}ac_space=\ *)
16176 # `set' does not quote correctly, so add quotes: double-quote
16177 # substitution turns \\\\ into \\, and sed turns \\ into \.
16178 sed -n \
16179 "s/'/'\\\\''/g;
16180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16181 ;; #(
16183 # `set' quotes correctly as required by POSIX, so do not add quotes.
16184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16186 esac |
16187 sort
16189 sed '
16190 /^ac_cv_env_/b end
16191 t clear
16192 :clear
16193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16194 t end
16195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16196 :end' >>confcache
16197 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16198 if test -w "$cache_file"; then
16199 if test "x$cache_file" != "x/dev/null"; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16201 $as_echo "$as_me: updating cache $cache_file" >&6;}
16202 if test ! -f "$cache_file" || test -h "$cache_file"; then
16203 cat confcache >"$cache_file"
16204 else
16205 case $cache_file in #(
16206 */* | ?:*)
16207 mv -f confcache "$cache_file"$$ &&
16208 mv -f "$cache_file"$$ "$cache_file" ;; #(
16210 mv -f confcache "$cache_file" ;;
16211 esac
16214 else
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16216 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16219 rm -f confcache
16221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16222 # Let make expand exec_prefix.
16223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16225 DEFS=-DHAVE_CONFIG_H
16227 ac_libobjs=
16228 ac_ltlibobjs=
16230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16231 # 1. Remove the extension, and $U if already installed.
16232 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16233 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16234 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16235 # will be set to the directory where LIBOBJS objects are built.
16236 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16237 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16238 done
16239 LIBOBJS=$ac_libobjs
16241 LTLIBOBJS=$ac_ltlibobjs
16245 : "${CONFIG_STATUS=./config.status}"
16246 ac_write_fail=0
16247 ac_clean_files_save=$ac_clean_files
16248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16251 as_write_fail=0
16252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16253 #! $SHELL
16254 # Generated by $as_me.
16255 # Run this file to recreate the current configuration.
16256 # Compiler output produced by configure, useful for debugging
16257 # configure, is in config.log if it exists.
16259 debug=false
16260 ac_cs_recheck=false
16261 ac_cs_silent=false
16263 SHELL=\${CONFIG_SHELL-$SHELL}
16264 export SHELL
16265 _ASEOF
16266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16267 ## -------------------- ##
16268 ## M4sh Initialization. ##
16269 ## -------------------- ##
16271 # Be more Bourne compatible
16272 DUALCASE=1; export DUALCASE # for MKS sh
16273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16274 emulate sh
16275 NULLCMD=:
16276 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16277 # is contrary to our usage. Disable this feature.
16278 alias -g '${1+"$@"}'='"$@"'
16279 setopt NO_GLOB_SUBST
16280 else
16281 case `(set -o) 2>/dev/null` in #(
16282 *posix*) :
16283 set -o posix ;; #(
16284 *) :
16286 esac
16290 as_nl='
16292 export as_nl
16293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16294 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16297 # Prefer a ksh shell builtin over an external printf program on Solaris,
16298 # but without wasting forks for bash or zsh.
16299 if test -z "$BASH_VERSION$ZSH_VERSION" \
16300 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16301 as_echo='print -r --'
16302 as_echo_n='print -rn --'
16303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16304 as_echo='printf %s\n'
16305 as_echo_n='printf %s'
16306 else
16307 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16308 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16309 as_echo_n='/usr/ucb/echo -n'
16310 else
16311 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16312 as_echo_n_body='eval
16313 arg=$1;
16314 case $arg in #(
16315 *"$as_nl"*)
16316 expr "X$arg" : "X\\(.*\\)$as_nl";
16317 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16318 esac;
16319 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16321 export as_echo_n_body
16322 as_echo_n='sh -c $as_echo_n_body as_echo'
16324 export as_echo_body
16325 as_echo='sh -c $as_echo_body as_echo'
16328 # The user is always right.
16329 if test "${PATH_SEPARATOR+set}" != set; then
16330 PATH_SEPARATOR=:
16331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16332 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16333 PATH_SEPARATOR=';'
16338 # IFS
16339 # We need space, tab and new line, in precisely that order. Quoting is
16340 # there to prevent editors from complaining about space-tab.
16341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16342 # splitting by setting IFS to empty value.)
16343 IFS=" "" $as_nl"
16345 # Find who we are. Look in the path if we contain no directory separator.
16346 as_myself=
16347 case $0 in #((
16348 *[\\/]* ) as_myself=$0 ;;
16349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16352 IFS=$as_save_IFS
16353 test -z "$as_dir" && as_dir=.
16354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16355 done
16356 IFS=$as_save_IFS
16359 esac
16360 # We did not find ourselves, most probably we were run as `sh COMMAND'
16361 # in which case we are not to be found in the path.
16362 if test "x$as_myself" = x; then
16363 as_myself=$0
16365 if test ! -f "$as_myself"; then
16366 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16367 exit 1
16370 # Unset variables that we do not need and which cause bugs (e.g. in
16371 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16372 # suppresses any "Segmentation fault" message there. '((' could
16373 # trigger a bug in pdksh 5.2.14.
16374 for as_var in BASH_ENV ENV MAIL MAILPATH
16375 do eval test x\${$as_var+set} = xset \
16376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16377 done
16378 PS1='$ '
16379 PS2='> '
16380 PS4='+ '
16382 # NLS nuisances.
16383 LC_ALL=C
16384 export LC_ALL
16385 LANGUAGE=C
16386 export LANGUAGE
16388 # CDPATH.
16389 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16393 # ----------------------------------------
16394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16396 # script with STATUS, using 1 if that was 0.
16397 as_fn_error ()
16399 as_status=$1; test $as_status -eq 0 && as_status=1
16400 if test "$4"; then
16401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16402 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16404 $as_echo "$as_me: error: $2" >&2
16405 as_fn_exit $as_status
16406 } # as_fn_error
16409 # as_fn_set_status STATUS
16410 # -----------------------
16411 # Set $? to STATUS, without forking.
16412 as_fn_set_status ()
16414 return $1
16415 } # as_fn_set_status
16417 # as_fn_exit STATUS
16418 # -----------------
16419 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16420 as_fn_exit ()
16422 set +e
16423 as_fn_set_status $1
16424 exit $1
16425 } # as_fn_exit
16427 # as_fn_unset VAR
16428 # ---------------
16429 # Portably unset VAR.
16430 as_fn_unset ()
16432 { eval $1=; unset $1;}
16434 as_unset=as_fn_unset
16435 # as_fn_append VAR VALUE
16436 # ----------------------
16437 # Append the text in VALUE to the end of the definition contained in VAR. Take
16438 # advantage of any shell optimizations that allow amortized linear growth over
16439 # repeated appends, instead of the typical quadratic growth present in naive
16440 # implementations.
16441 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16442 eval 'as_fn_append ()
16444 eval $1+=\$2
16446 else
16447 as_fn_append ()
16449 eval $1=\$$1\$2
16451 fi # as_fn_append
16453 # as_fn_arith ARG...
16454 # ------------------
16455 # Perform arithmetic evaluation on the ARGs, and store the result in the
16456 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16457 # must be portable across $(()) and expr.
16458 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16459 eval 'as_fn_arith ()
16461 as_val=$(( $* ))
16463 else
16464 as_fn_arith ()
16466 as_val=`expr "$@" || test $? -eq 1`
16468 fi # as_fn_arith
16471 if expr a : '\(a\)' >/dev/null 2>&1 &&
16472 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16473 as_expr=expr
16474 else
16475 as_expr=false
16478 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16479 as_basename=basename
16480 else
16481 as_basename=false
16484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16485 as_dirname=dirname
16486 else
16487 as_dirname=false
16490 as_me=`$as_basename -- "$0" ||
16491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16492 X"$0" : 'X\(//\)$' \| \
16493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16494 $as_echo X/"$0" |
16495 sed '/^.*\/\([^/][^/]*\)\/*$/{
16496 s//\1/
16499 /^X\/\(\/\/\)$/{
16500 s//\1/
16503 /^X\/\(\/\).*/{
16504 s//\1/
16507 s/.*/./; q'`
16509 # Avoid depending upon Character Ranges.
16510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16513 as_cr_digits='0123456789'
16514 as_cr_alnum=$as_cr_Letters$as_cr_digits
16516 ECHO_C= ECHO_N= ECHO_T=
16517 case `echo -n x` in #(((((
16518 -n*)
16519 case `echo 'xy\c'` in
16520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16521 xy) ECHO_C='\c';;
16522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16523 ECHO_T=' ';;
16524 esac;;
16526 ECHO_N='-n';;
16527 esac
16529 rm -f conf$$ conf$$.exe conf$$.file
16530 if test -d conf$$.dir; then
16531 rm -f conf$$.dir/conf$$.file
16532 else
16533 rm -f conf$$.dir
16534 mkdir conf$$.dir 2>/dev/null
16536 if (echo >conf$$.file) 2>/dev/null; then
16537 if ln -s conf$$.file conf$$ 2>/dev/null; then
16538 as_ln_s='ln -s'
16539 # ... but there are two gotchas:
16540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16542 # In both cases, we have to default to `cp -p'.
16543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16544 as_ln_s='cp -p'
16545 elif ln conf$$.file conf$$ 2>/dev/null; then
16546 as_ln_s=ln
16547 else
16548 as_ln_s='cp -p'
16550 else
16551 as_ln_s='cp -p'
16553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16554 rmdir conf$$.dir 2>/dev/null
16557 # as_fn_mkdir_p
16558 # -------------
16559 # Create "$as_dir" as a directory, including parents if necessary.
16560 as_fn_mkdir_p ()
16563 case $as_dir in #(
16564 -*) as_dir=./$as_dir;;
16565 esac
16566 test -d "$as_dir" || eval $as_mkdir_p || {
16567 as_dirs=
16568 while :; do
16569 case $as_dir in #(
16570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16571 *) as_qdir=$as_dir;;
16572 esac
16573 as_dirs="'$as_qdir' $as_dirs"
16574 as_dir=`$as_dirname -- "$as_dir" ||
16575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16576 X"$as_dir" : 'X\(//\)[^/]' \| \
16577 X"$as_dir" : 'X\(//\)$' \| \
16578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16579 $as_echo X"$as_dir" |
16580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16581 s//\1/
16584 /^X\(\/\/\)[^/].*/{
16585 s//\1/
16588 /^X\(\/\/\)$/{
16589 s//\1/
16592 /^X\(\/\).*/{
16593 s//\1/
16596 s/.*/./; q'`
16597 test -d "$as_dir" && break
16598 done
16599 test -z "$as_dirs" || eval "mkdir $as_dirs"
16600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16603 } # as_fn_mkdir_p
16604 if mkdir -p . 2>/dev/null; then
16605 as_mkdir_p='mkdir -p "$as_dir"'
16606 else
16607 test -d ./-p && rmdir ./-p
16608 as_mkdir_p=false
16611 if test -x / >/dev/null 2>&1; then
16612 as_test_x='test -x'
16613 else
16614 if ls -dL / >/dev/null 2>&1; then
16615 as_ls_L_option=L
16616 else
16617 as_ls_L_option=
16619 as_test_x='
16620 eval sh -c '\''
16621 if test -d "$1"; then
16622 test -d "$1/.";
16623 else
16624 case $1 in #(
16625 -*)set "./$1";;
16626 esac;
16627 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16628 ???[sx]*):;;*)false;;esac;fi
16629 '\'' sh
16632 as_executable_p=$as_test_x
16634 # Sed expression to map a string onto a valid CPP name.
16635 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16637 # Sed expression to map a string onto a valid variable name.
16638 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16641 exec 6>&1
16642 ## ----------------------------------- ##
16643 ## Main body of $CONFIG_STATUS script. ##
16644 ## ----------------------------------- ##
16645 _ASEOF
16646 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649 # Save the log message, to keep $0 and so on meaningful, and to
16650 # report actual input values of CONFIG_FILES etc. instead of their
16651 # values after options handling.
16652 ac_log="
16653 This file was extended by expat $as_me 2.1.0, which was
16654 generated by GNU Autoconf 2.68. Invocation command line was
16656 CONFIG_FILES = $CONFIG_FILES
16657 CONFIG_HEADERS = $CONFIG_HEADERS
16658 CONFIG_LINKS = $CONFIG_LINKS
16659 CONFIG_COMMANDS = $CONFIG_COMMANDS
16660 $ $0 $@
16662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16665 _ACEOF
16667 case $ac_config_files in *"
16668 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16669 esac
16671 case $ac_config_headers in *"
16672 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16673 esac
16676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16677 # Files that config.status was made for.
16678 config_files="$ac_config_files"
16679 config_headers="$ac_config_headers"
16680 config_commands="$ac_config_commands"
16682 _ACEOF
16684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16685 ac_cs_usage="\
16686 \`$as_me' instantiates files and other configuration actions
16687 from templates according to the current configuration. Unless the files
16688 and actions are specified as TAGs, all are instantiated by default.
16690 Usage: $0 [OPTION]... [TAG]...
16692 -h, --help print this help, then exit
16693 -V, --version print version number and configuration settings, then exit
16694 --config print configuration, then exit
16695 -q, --quiet, --silent
16696 do not print progress messages
16697 -d, --debug don't remove temporary files
16698 --recheck update $as_me by reconfiguring in the same conditions
16699 --file=FILE[:TEMPLATE]
16700 instantiate the configuration file FILE
16701 --header=FILE[:TEMPLATE]
16702 instantiate the configuration header FILE
16704 Configuration files:
16705 $config_files
16707 Configuration headers:
16708 $config_headers
16710 Configuration commands:
16711 $config_commands
16713 Report bugs to <expat-bugs@libexpat.org>."
16715 _ACEOF
16716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16717 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16718 ac_cs_version="\\
16719 expat config.status 2.1.0
16720 configured by $0, generated by GNU Autoconf 2.68,
16721 with options \\"\$ac_cs_config\\"
16723 Copyright (C) 2010 Free Software Foundation, Inc.
16724 This config.status script is free software; the Free Software Foundation
16725 gives unlimited permission to copy, distribute and modify it."
16727 ac_pwd='$ac_pwd'
16728 srcdir='$srcdir'
16729 INSTALL='$INSTALL'
16730 AWK='$AWK'
16731 test -n "\$AWK" || AWK=awk
16732 _ACEOF
16734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16735 # The default lists apply if the user does not specify any file.
16736 ac_need_defaults=:
16737 while test $# != 0
16739 case $1 in
16740 --*=?*)
16741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16743 ac_shift=:
16745 --*=)
16746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16747 ac_optarg=
16748 ac_shift=:
16751 ac_option=$1
16752 ac_optarg=$2
16753 ac_shift=shift
16755 esac
16757 case $ac_option in
16758 # Handling of the options.
16759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16760 ac_cs_recheck=: ;;
16761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16762 $as_echo "$ac_cs_version"; exit ;;
16763 --config | --confi | --conf | --con | --co | --c )
16764 $as_echo "$ac_cs_config"; exit ;;
16765 --debug | --debu | --deb | --de | --d | -d )
16766 debug=: ;;
16767 --file | --fil | --fi | --f )
16768 $ac_shift
16769 case $ac_optarg in
16770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16771 '') as_fn_error $? "missing file argument" ;;
16772 esac
16773 as_fn_append CONFIG_FILES " '$ac_optarg'"
16774 ac_need_defaults=false;;
16775 --header | --heade | --head | --hea )
16776 $ac_shift
16777 case $ac_optarg in
16778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16779 esac
16780 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16781 ac_need_defaults=false;;
16782 --he | --h)
16783 # Conflict between --help and --header
16784 as_fn_error $? "ambiguous option: \`$1'
16785 Try \`$0 --help' for more information.";;
16786 --help | --hel | -h )
16787 $as_echo "$ac_cs_usage"; exit ;;
16788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16790 ac_cs_silent=: ;;
16792 # This is an error.
16793 -*) as_fn_error $? "unrecognized option: \`$1'
16794 Try \`$0 --help' for more information." ;;
16796 *) as_fn_append ac_config_targets " $1"
16797 ac_need_defaults=false ;;
16799 esac
16800 shift
16801 done
16803 ac_configure_extra_args=
16805 if $ac_cs_silent; then
16806 exec 6>/dev/null
16807 ac_configure_extra_args="$ac_configure_extra_args --silent"
16810 _ACEOF
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812 if \$ac_cs_recheck; then
16813 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16814 shift
16815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16816 CONFIG_SHELL='$SHELL'
16817 export CONFIG_SHELL
16818 exec "\$@"
16821 _ACEOF
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 exec 5>>config.log
16825 echo
16826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16827 ## Running $as_me. ##
16828 _ASBOX
16829 $as_echo "$ac_log"
16830 } >&5
16832 _ACEOF
16833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835 # INIT-COMMANDS
16839 # The HP-UX ksh and POSIX shell print the target directory to stdout
16840 # if CDPATH is set.
16841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16843 sed_quote_subst='$sed_quote_subst'
16844 double_quote_subst='$double_quote_subst'
16845 delay_variable_subst='$delay_variable_subst'
16846 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16847 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16848 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16849 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16850 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16851 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16852 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16853 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16854 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16855 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16856 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16857 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16858 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16859 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16860 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16861 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16862 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16863 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16864 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16865 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16866 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16867 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16868 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16869 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16870 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16871 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16872 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16873 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16874 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16875 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16876 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16877 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16878 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16879 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16880 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16881 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16882 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16883 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16884 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16885 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16886 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16887 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16888 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16889 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16890 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16891 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16892 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16893 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16894 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16895 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16896 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16897 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16898 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16899 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16900 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16901 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16902 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"`'
16903 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16904 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16905 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16906 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16907 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16908 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16909 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16910 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16911 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16912 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16913 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16914 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16915 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16916 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16917 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16918 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16919 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16920 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16921 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16922 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16923 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16924 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16925 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16926 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16927 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16928 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16929 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16930 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16931 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16932 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16933 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16934 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16935 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16936 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16937 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16970 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16971 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16972 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16973 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16974 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16975 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16976 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16977 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16978 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16979 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16980 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16981 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16982 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16983 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16984 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16985 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16986 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16987 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16988 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16989 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16990 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16991 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16992 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16993 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16994 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16995 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16996 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16997 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16998 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16999 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17000 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17001 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17002 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17003 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17004 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17005 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17006 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17007 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17008 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17009 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17010 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17011 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17012 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17013 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17014 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17015 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17016 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17017 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17018 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17019 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17020 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17021 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17022 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17023 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17024 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17025 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17026 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17027 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17028 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17029 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17030 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17031 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17033 LTCC='$LTCC'
17034 LTCFLAGS='$LTCFLAGS'
17035 compiler='$compiler_DEFAULT'
17037 # A function that is used when there is no print builtin or printf.
17038 func_fallback_echo ()
17040 eval 'cat <<_LTECHO_EOF
17042 _LTECHO_EOF'
17045 # Quote evaled strings.
17046 for var in AS \
17047 DLLTOOL \
17048 OBJDUMP \
17049 SHELL \
17050 ECHO \
17051 SED \
17052 GREP \
17053 EGREP \
17054 FGREP \
17055 LD \
17056 NM \
17057 LN_S \
17058 lt_SP2NL \
17059 lt_NL2SP \
17060 reload_flag \
17061 deplibs_check_method \
17062 file_magic_cmd \
17063 file_magic_glob \
17064 want_nocaseglob \
17065 sharedlib_from_linklib_cmd \
17066 AR \
17067 AR_FLAGS \
17068 archiver_list_spec \
17069 STRIP \
17070 RANLIB \
17071 CC \
17072 CFLAGS \
17073 compiler \
17074 lt_cv_sys_global_symbol_pipe \
17075 lt_cv_sys_global_symbol_to_cdecl \
17076 lt_cv_sys_global_symbol_to_c_name_address \
17077 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17078 nm_file_list_spec \
17079 lt_prog_compiler_no_builtin_flag \
17080 lt_prog_compiler_pic \
17081 lt_prog_compiler_wl \
17082 lt_prog_compiler_static \
17083 lt_cv_prog_compiler_c_o \
17084 need_locks \
17085 MANIFEST_TOOL \
17086 DSYMUTIL \
17087 NMEDIT \
17088 LIPO \
17089 OTOOL \
17090 OTOOL64 \
17091 shrext_cmds \
17092 export_dynamic_flag_spec \
17093 whole_archive_flag_spec \
17094 compiler_needs_object \
17095 with_gnu_ld \
17096 allow_undefined_flag \
17097 no_undefined_flag \
17098 hardcode_libdir_flag_spec \
17099 hardcode_libdir_flag_spec_ld \
17100 hardcode_libdir_separator \
17101 exclude_expsyms \
17102 include_expsyms \
17103 file_list_spec \
17104 variables_saved_for_relink \
17105 libname_spec \
17106 library_names_spec \
17107 soname_spec \
17108 install_override_mode \
17109 finish_eval \
17110 old_striplib \
17111 striplib \
17112 compiler_lib_search_dirs \
17113 predep_objects \
17114 postdep_objects \
17115 predeps \
17116 postdeps \
17117 compiler_lib_search_path \
17118 LD_CXX \
17119 reload_flag_CXX \
17120 compiler_CXX \
17121 lt_prog_compiler_no_builtin_flag_CXX \
17122 lt_prog_compiler_pic_CXX \
17123 lt_prog_compiler_wl_CXX \
17124 lt_prog_compiler_static_CXX \
17125 lt_cv_prog_compiler_c_o_CXX \
17126 export_dynamic_flag_spec_CXX \
17127 whole_archive_flag_spec_CXX \
17128 compiler_needs_object_CXX \
17129 with_gnu_ld_CXX \
17130 allow_undefined_flag_CXX \
17131 no_undefined_flag_CXX \
17132 hardcode_libdir_flag_spec_CXX \
17133 hardcode_libdir_flag_spec_ld_CXX \
17134 hardcode_libdir_separator_CXX \
17135 exclude_expsyms_CXX \
17136 include_expsyms_CXX \
17137 file_list_spec_CXX \
17138 compiler_lib_search_dirs_CXX \
17139 predep_objects_CXX \
17140 postdep_objects_CXX \
17141 predeps_CXX \
17142 postdeps_CXX \
17143 compiler_lib_search_path_CXX; do
17144 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17145 *[\\\\\\\`\\"\\\$]*)
17146 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17149 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17151 esac
17152 done
17154 # Double-quote double-evaled strings.
17155 for var in reload_cmds \
17156 old_postinstall_cmds \
17157 old_postuninstall_cmds \
17158 old_archive_cmds \
17159 extract_expsyms_cmds \
17160 old_archive_from_new_cmds \
17161 old_archive_from_expsyms_cmds \
17162 archive_cmds \
17163 archive_expsym_cmds \
17164 module_cmds \
17165 module_expsym_cmds \
17166 export_symbols_cmds \
17167 prelink_cmds \
17168 postlink_cmds \
17169 postinstall_cmds \
17170 postuninstall_cmds \
17171 finish_cmds \
17172 sys_lib_search_path_spec \
17173 sys_lib_dlsearch_path_spec \
17174 reload_cmds_CXX \
17175 old_archive_cmds_CXX \
17176 old_archive_from_new_cmds_CXX \
17177 old_archive_from_expsyms_cmds_CXX \
17178 archive_cmds_CXX \
17179 archive_expsym_cmds_CXX \
17180 module_cmds_CXX \
17181 module_expsym_cmds_CXX \
17182 export_symbols_cmds_CXX \
17183 prelink_cmds_CXX \
17184 postlink_cmds_CXX; do
17185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17186 *[\\\\\\\`\\"\\\$]*)
17187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17192 esac
17193 done
17195 ac_aux_dir='$ac_aux_dir'
17196 xsi_shell='$xsi_shell'
17197 lt_shell_append='$lt_shell_append'
17199 # See if we are running on zsh, and set the options which allow our
17200 # commands through without removal of \ escapes INIT.
17201 if test -n "\${ZSH_VERSION+set}" ; then
17202 setopt NO_GLOB_SUBST
17206 PACKAGE='$PACKAGE'
17207 VERSION='$VERSION'
17208 TIMESTAMP='$TIMESTAMP'
17209 RM='$RM'
17210 ofile='$ofile'
17217 _ACEOF
17219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17221 # Handling of arguments.
17222 for ac_config_target in $ac_config_targets
17224 case $ac_config_target in
17225 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17226 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17227 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17228 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17230 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17231 esac
17232 done
17235 # If the user did not use the arguments to specify the items to instantiate,
17236 # then the envvar interface is used. Set only those that are not.
17237 # We use the long form for the default assignment because of an extremely
17238 # bizarre bug on SunOS 4.1.3.
17239 if $ac_need_defaults; then
17240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17245 # Have a temporary directory for convenience. Make it in the build tree
17246 # simply because there is no reason against having it here, and in addition,
17247 # creating and moving files from /tmp can sometimes cause problems.
17248 # Hook for its removal unless debugging.
17249 # Note that there is a small window in which the directory will not be cleaned:
17250 # after its creation but before its name has been assigned to `$tmp'.
17251 $debug ||
17253 tmp= ac_tmp=
17254 trap 'exit_status=$?
17255 : "${ac_tmp:=$tmp}"
17256 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17258 trap 'as_fn_exit 1' 1 2 13 15
17260 # Create a (secure) tmp directory for tmp files.
17263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17264 test -d "$tmp"
17265 } ||
17267 tmp=./conf$$-$RANDOM
17268 (umask 077 && mkdir "$tmp")
17269 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17270 ac_tmp=$tmp
17272 # Set up the scripts for CONFIG_FILES section.
17273 # No need to generate them if there are no CONFIG_FILES.
17274 # This happens for instance with `./config.status config.h'.
17275 if test -n "$CONFIG_FILES"; then
17278 ac_cr=`echo X | tr X '\015'`
17279 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17280 # But we know of no other shell where ac_cr would be empty at this
17281 # point, so we can use a bashism as a fallback.
17282 if test "x$ac_cr" = x; then
17283 eval ac_cr=\$\'\\r\'
17285 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17286 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17287 ac_cs_awk_cr='\\r'
17288 else
17289 ac_cs_awk_cr=$ac_cr
17292 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17293 _ACEOF
17297 echo "cat >conf$$subs.awk <<_ACEOF" &&
17298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17299 echo "_ACEOF"
17300 } >conf$$subs.sh ||
17301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17303 ac_delim='%!_!# '
17304 for ac_last_try in false false false false false :; do
17305 . ./conf$$subs.sh ||
17306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17309 if test $ac_delim_n = $ac_delim_num; then
17310 break
17311 elif $ac_last_try; then
17312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17313 else
17314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17316 done
17317 rm -f conf$$subs.sh
17319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17321 _ACEOF
17322 sed -n '
17324 s/^/S["/; s/!.*/"]=/
17327 s/^[^!]*!//
17328 :repl
17329 t repl
17330 s/'"$ac_delim"'$//
17331 t delim
17334 s/\(.\{148\}\)..*/\1/
17335 t more1
17336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17339 b repl
17340 :more1
17341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17344 s/.\{148\}//
17345 t nl
17346 :delim
17348 s/\(.\{148\}\)..*/\1/
17349 t more2
17350 s/["\\]/\\&/g; s/^/"/; s/$/"/
17353 :more2
17354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17357 s/.\{148\}//
17358 t delim
17359 ' <conf$$subs.awk | sed '
17360 /^[^""]/{
17362 s/\n//
17364 ' >>$CONFIG_STATUS || ac_write_fail=1
17365 rm -f conf$$subs.awk
17366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17367 _ACAWK
17368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17369 for (key in S) S_is_set[key] = 1
17370 FS = "\a"
17374 line = $ 0
17375 nfields = split(line, field, "@")
17376 substed = 0
17377 len = length(field[1])
17378 for (i = 2; i < nfields; i++) {
17379 key = field[i]
17380 keylen = length(key)
17381 if (S_is_set[key]) {
17382 value = S[key]
17383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17384 len += length(value) + length(field[++i])
17385 substed = 1
17386 } else
17387 len += 1 + keylen
17390 print line
17393 _ACAWK
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17398 else
17400 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17402 _ACEOF
17404 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17405 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17406 # trailing colons and then remove the whole line if VPATH becomes empty
17407 # (actually we leave an empty line to preserve line numbers).
17408 if test "x$srcdir" = x.; then
17409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17411 s///
17412 s/^/:/
17413 s/[ ]*$/:/
17414 s/:\$(srcdir):/:/g
17415 s/:\${srcdir}:/:/g
17416 s/:@srcdir@:/:/g
17417 s/^:*//
17418 s/:*$//
17420 s/\(=[ ]*\).*/\1/
17422 s/\n//
17423 s/^[^=]*=[ ]*$//
17427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17428 fi # test -n "$CONFIG_FILES"
17430 # Set up the scripts for CONFIG_HEADERS section.
17431 # No need to generate them if there are no CONFIG_HEADERS.
17432 # This happens for instance with `./config.status Makefile'.
17433 if test -n "$CONFIG_HEADERS"; then
17434 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17435 BEGIN {
17436 _ACEOF
17438 # Transform confdefs.h into an awk script `defines.awk', embedded as
17439 # here-document in config.status, that substitutes the proper values into
17440 # config.h.in to produce config.h.
17442 # Create a delimiter string that does not exist in confdefs.h, to ease
17443 # handling of long lines.
17444 ac_delim='%!_!# '
17445 for ac_last_try in false false :; do
17446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17447 if test -z "$ac_tt"; then
17448 break
17449 elif $ac_last_try; then
17450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17451 else
17452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17454 done
17456 # For the awk script, D is an array of macro values keyed by name,
17457 # likewise P contains macro parameters if any. Preserve backslash
17458 # newline sequences.
17460 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17461 sed -n '
17462 s/.\{148\}/&'"$ac_delim"'/g
17463 t rset
17464 :rset
17465 s/^[ ]*#[ ]*define[ ][ ]*/ /
17466 t def
17468 :def
17469 s/\\$//
17470 t bsnl
17471 s/["\\]/\\&/g
17472 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17473 D["\1"]=" \3"/p
17474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17476 :bsnl
17477 s/["\\]/\\&/g
17478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17479 D["\1"]=" \3\\\\\\n"\\/p
17480 t cont
17481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17482 t cont
17484 :cont
17486 s/.\{148\}/&'"$ac_delim"'/g
17487 t clear
17488 :clear
17489 s/\\$//
17490 t bsnlc
17491 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17493 :bsnlc
17494 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17495 b cont
17496 ' <confdefs.h | sed '
17497 s/'"$ac_delim"'/"\\\
17498 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17501 for (key in D) D_is_set[key] = 1
17502 FS = "\a"
17504 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17505 line = \$ 0
17506 split(line, arg, " ")
17507 if (arg[1] == "#") {
17508 defundef = arg[2]
17509 mac1 = arg[3]
17510 } else {
17511 defundef = substr(arg[1], 2)
17512 mac1 = arg[2]
17514 split(mac1, mac2, "(") #)
17515 macro = mac2[1]
17516 prefix = substr(line, 1, index(line, defundef) - 1)
17517 if (D_is_set[macro]) {
17518 # Preserve the white space surrounding the "#".
17519 print prefix "define", macro P[macro] D[macro]
17520 next
17521 } else {
17522 # Replace #undef with comments. This is necessary, for example,
17523 # in the case of _POSIX_SOURCE, which is predefined and required
17524 # on some systems where configure will not decide to define it.
17525 if (defundef == "undef") {
17526 print "/*", prefix defundef, macro, "*/"
17527 next
17531 { print }
17532 _ACAWK
17533 _ACEOF
17534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17536 fi # test -n "$CONFIG_HEADERS"
17539 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17540 shift
17541 for ac_tag
17543 case $ac_tag in
17544 :[FHLC]) ac_mode=$ac_tag; continue;;
17545 esac
17546 case $ac_mode$ac_tag in
17547 :[FHL]*:*);;
17548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17549 :[FH]-) ac_tag=-:-;;
17550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17551 esac
17552 ac_save_IFS=$IFS
17553 IFS=:
17554 set x $ac_tag
17555 IFS=$ac_save_IFS
17556 shift
17557 ac_file=$1
17558 shift
17560 case $ac_mode in
17561 :L) ac_source=$1;;
17562 :[FH])
17563 ac_file_inputs=
17564 for ac_f
17566 case $ac_f in
17567 -) ac_f="$ac_tmp/stdin";;
17568 *) # Look for the file first in the build tree, then in the source tree
17569 # (if the path is not absolute). The absolute path cannot be DOS-style,
17570 # because $ac_f cannot contain `:'.
17571 test -f "$ac_f" ||
17572 case $ac_f in
17573 [\\/$]*) false;;
17574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17575 esac ||
17576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17577 esac
17578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17579 as_fn_append ac_file_inputs " '$ac_f'"
17580 done
17582 # Let's still pretend it is `configure' which instantiates (i.e., don't
17583 # use $as_me), people would be surprised to read:
17584 # /* config.h. Generated by config.status. */
17585 configure_input='Generated from '`
17586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17587 `' by configure.'
17588 if test x"$ac_file" != x-; then
17589 configure_input="$ac_file. $configure_input"
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17591 $as_echo "$as_me: creating $ac_file" >&6;}
17593 # Neutralize special characters interpreted by sed in replacement strings.
17594 case $configure_input in #(
17595 *\&* | *\|* | *\\* )
17596 ac_sed_conf_input=`$as_echo "$configure_input" |
17597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17598 *) ac_sed_conf_input=$configure_input;;
17599 esac
17601 case $ac_tag in
17602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17604 esac
17606 esac
17608 ac_dir=`$as_dirname -- "$ac_file" ||
17609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17610 X"$ac_file" : 'X\(//\)[^/]' \| \
17611 X"$ac_file" : 'X\(//\)$' \| \
17612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17613 $as_echo X"$ac_file" |
17614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17615 s//\1/
17618 /^X\(\/\/\)[^/].*/{
17619 s//\1/
17622 /^X\(\/\/\)$/{
17623 s//\1/
17626 /^X\(\/\).*/{
17627 s//\1/
17630 s/.*/./; q'`
17631 as_dir="$ac_dir"; as_fn_mkdir_p
17632 ac_builddir=.
17634 case "$ac_dir" in
17635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17638 # A ".." for each directory in $ac_dir_suffix.
17639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17640 case $ac_top_builddir_sub in
17641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17643 esac ;;
17644 esac
17645 ac_abs_top_builddir=$ac_pwd
17646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17647 # for backward compatibility:
17648 ac_top_builddir=$ac_top_build_prefix
17650 case $srcdir in
17651 .) # We are building in place.
17652 ac_srcdir=.
17653 ac_top_srcdir=$ac_top_builddir_sub
17654 ac_abs_top_srcdir=$ac_pwd ;;
17655 [\\/]* | ?:[\\/]* ) # Absolute name.
17656 ac_srcdir=$srcdir$ac_dir_suffix;
17657 ac_top_srcdir=$srcdir
17658 ac_abs_top_srcdir=$srcdir ;;
17659 *) # Relative name.
17660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17661 ac_top_srcdir=$ac_top_build_prefix$srcdir
17662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17663 esac
17664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17667 case $ac_mode in
17670 # CONFIG_FILE
17673 case $INSTALL in
17674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17676 esac
17677 _ACEOF
17679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17680 # If the template does not know about datarootdir, expand it.
17681 # FIXME: This hack should be removed a few years after 2.60.
17682 ac_datarootdir_hack=; ac_datarootdir_seen=
17683 ac_sed_dataroot='
17684 /datarootdir/ {
17688 /@datadir@/p
17689 /@docdir@/p
17690 /@infodir@/p
17691 /@localedir@/p
17692 /@mandir@/p'
17693 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17694 *datarootdir*) ac_datarootdir_seen=yes;;
17695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17697 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17698 _ACEOF
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700 ac_datarootdir_hack='
17701 s&@datadir@&$datadir&g
17702 s&@docdir@&$docdir&g
17703 s&@infodir@&$infodir&g
17704 s&@localedir@&$localedir&g
17705 s&@mandir@&$mandir&g
17706 s&\\\${datarootdir}&$datarootdir&g' ;;
17707 esac
17708 _ACEOF
17710 # Neutralize VPATH when `$srcdir' = `.'.
17711 # Shell code in configure.ac might set extrasub.
17712 # FIXME: do we really want to maintain this feature?
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 ac_sed_extra="$ac_vpsub
17715 $extrasub
17716 _ACEOF
17717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17720 s|@configure_input@|$ac_sed_conf_input|;t t
17721 s&@top_builddir@&$ac_top_builddir_sub&;t t
17722 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17723 s&@srcdir@&$ac_srcdir&;t t
17724 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17725 s&@top_srcdir@&$ac_top_srcdir&;t t
17726 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17727 s&@builddir@&$ac_builddir&;t t
17728 s&@abs_builddir@&$ac_abs_builddir&;t t
17729 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17730 s&@INSTALL@&$ac_INSTALL&;t t
17731 $ac_datarootdir_hack
17733 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17734 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17736 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17737 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17738 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17739 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17741 which seems to be undefined. Please make sure it is defined" >&5
17742 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17743 which seems to be undefined. Please make sure it is defined" >&2;}
17745 rm -f "$ac_tmp/stdin"
17746 case $ac_file in
17747 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17748 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17749 esac \
17750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17754 # CONFIG_HEADER
17756 if test x"$ac_file" != x-; then
17758 $as_echo "/* $configure_input */" \
17759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17760 } >"$ac_tmp/config.h" \
17761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17762 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17764 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17765 else
17766 rm -f "$ac_file"
17767 mv "$ac_tmp/config.h" "$ac_file" \
17768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17770 else
17771 $as_echo "/* $configure_input */" \
17772 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17773 || as_fn_error $? "could not create -" "$LINENO" 5
17777 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17778 $as_echo "$as_me: executing $ac_file commands" >&6;}
17780 esac
17783 case $ac_file$ac_mode in
17784 "libtool":C)
17786 # See if we are running on zsh, and set the options which allow our
17787 # commands through without removal of \ escapes.
17788 if test -n "${ZSH_VERSION+set}" ; then
17789 setopt NO_GLOB_SUBST
17792 cfgfile="${ofile}T"
17793 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17794 $RM "$cfgfile"
17796 cat <<_LT_EOF >> "$cfgfile"
17797 #! $SHELL
17799 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17800 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17801 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17802 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17804 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17805 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17806 # Inc.
17807 # Written by Gordon Matzigkeit, 1996
17809 # This file is part of GNU Libtool.
17811 # GNU Libtool is free software; you can redistribute it and/or
17812 # modify it under the terms of the GNU General Public License as
17813 # published by the Free Software Foundation; either version 2 of
17814 # the License, or (at your option) any later version.
17816 # As a special exception to the GNU General Public License,
17817 # if you distribute this file as part of a program or library that
17818 # is built using GNU Libtool, you may include this file under the
17819 # same distribution terms that you use for the rest of that program.
17821 # GNU Libtool is distributed in the hope that it will be useful,
17822 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17823 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17824 # GNU General Public License for more details.
17826 # You should have received a copy of the GNU General Public License
17827 # along with GNU Libtool; see the file COPYING. If not, a copy
17828 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17829 # obtained by writing to the Free Software Foundation, Inc.,
17830 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17833 # The names of the tagged configurations supported by this script.
17834 available_tags="CXX "
17836 # ### BEGIN LIBTOOL CONFIG
17838 # Assembler program.
17839 AS=$lt_AS
17841 # DLL creation program.
17842 DLLTOOL=$lt_DLLTOOL
17844 # Object dumper program.
17845 OBJDUMP=$lt_OBJDUMP
17847 # Which release of libtool.m4 was used?
17848 macro_version=$macro_version
17849 macro_revision=$macro_revision
17851 # Whether or not to build shared libraries.
17852 build_libtool_libs=$enable_shared
17854 # Whether or not to build static libraries.
17855 build_old_libs=$enable_static
17857 # What type of objects to build.
17858 pic_mode=$pic_mode
17860 # Whether or not to optimize for fast installation.
17861 fast_install=$enable_fast_install
17863 # Shell to use when invoking shell scripts.
17864 SHELL=$lt_SHELL
17866 # An echo program that protects backslashes.
17867 ECHO=$lt_ECHO
17869 # The host system.
17870 host_alias=$host_alias
17871 host=$host
17872 host_os=$host_os
17874 # The build system.
17875 build_alias=$build_alias
17876 build=$build
17877 build_os=$build_os
17879 # A sed program that does not truncate output.
17880 SED=$lt_SED
17882 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17883 Xsed="\$SED -e 1s/^X//"
17885 # A grep program that handles long lines.
17886 GREP=$lt_GREP
17888 # An ERE matcher.
17889 EGREP=$lt_EGREP
17891 # A literal string matcher.
17892 FGREP=$lt_FGREP
17894 # A BSD- or MS-compatible name lister.
17895 NM=$lt_NM
17897 # Whether we need soft or hard links.
17898 LN_S=$lt_LN_S
17900 # What is the maximum length of a command?
17901 max_cmd_len=$max_cmd_len
17903 # Object file suffix (normally "o").
17904 objext=$ac_objext
17906 # Executable file suffix (normally "").
17907 exeext=$exeext
17909 # whether the shell understands "unset".
17910 lt_unset=$lt_unset
17912 # turn spaces into newlines.
17913 SP2NL=$lt_lt_SP2NL
17915 # turn newlines into spaces.
17916 NL2SP=$lt_lt_NL2SP
17918 # convert \$build file names to \$host format.
17919 to_host_file_cmd=$lt_cv_to_host_file_cmd
17921 # convert \$build files to toolchain format.
17922 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17924 # Method to check whether dependent libraries are shared objects.
17925 deplibs_check_method=$lt_deplibs_check_method
17927 # Command to use when deplibs_check_method = "file_magic".
17928 file_magic_cmd=$lt_file_magic_cmd
17930 # How to find potential files when deplibs_check_method = "file_magic".
17931 file_magic_glob=$lt_file_magic_glob
17933 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17934 want_nocaseglob=$lt_want_nocaseglob
17936 # Command to associate shared and link libraries.
17937 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17939 # The archiver.
17940 AR=$lt_AR
17942 # Flags to create an archive.
17943 AR_FLAGS=$lt_AR_FLAGS
17945 # How to feed a file listing to the archiver.
17946 archiver_list_spec=$lt_archiver_list_spec
17948 # A symbol stripping program.
17949 STRIP=$lt_STRIP
17951 # Commands used to install an old-style archive.
17952 RANLIB=$lt_RANLIB
17953 old_postinstall_cmds=$lt_old_postinstall_cmds
17954 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17956 # Whether to use a lock for old archive extraction.
17957 lock_old_archive_extraction=$lock_old_archive_extraction
17959 # A C compiler.
17960 LTCC=$lt_CC
17962 # LTCC compiler flags.
17963 LTCFLAGS=$lt_CFLAGS
17965 # Take the output of nm and produce a listing of raw symbols and C names.
17966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17968 # Transform the output of nm in a proper C declaration.
17969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17971 # Transform the output of nm in a C name address pair.
17972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17974 # Transform the output of nm in a C name address pair when lib prefix is needed.
17975 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17977 # Specify filename containing input files for \$NM.
17978 nm_file_list_spec=$lt_nm_file_list_spec
17980 # The root where to search for dependent libraries,and in which our libraries should be installed.
17981 lt_sysroot=$lt_sysroot
17983 # The name of the directory that contains temporary libtool files.
17984 objdir=$objdir
17986 # Used to examine libraries when file_magic_cmd begins with "file".
17987 MAGIC_CMD=$MAGIC_CMD
17989 # Must we lock files when doing compilation?
17990 need_locks=$lt_need_locks
17992 # Manifest tool.
17993 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17995 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17996 DSYMUTIL=$lt_DSYMUTIL
17998 # Tool to change global to local symbols on Mac OS X.
17999 NMEDIT=$lt_NMEDIT
18001 # Tool to manipulate fat objects and archives on Mac OS X.
18002 LIPO=$lt_LIPO
18004 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18005 OTOOL=$lt_OTOOL
18007 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18008 OTOOL64=$lt_OTOOL64
18010 # Old archive suffix (normally "a").
18011 libext=$libext
18013 # Shared library suffix (normally ".so").
18014 shrext_cmds=$lt_shrext_cmds
18016 # The commands to extract the exported symbol list from a shared archive.
18017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18019 # Variables whose values should be saved in libtool wrapper scripts and
18020 # restored at link time.
18021 variables_saved_for_relink=$lt_variables_saved_for_relink
18023 # Do we need the "lib" prefix for modules?
18024 need_lib_prefix=$need_lib_prefix
18026 # Do we need a version for libraries?
18027 need_version=$need_version
18029 # Library versioning type.
18030 version_type=$version_type
18032 # Shared library runtime path variable.
18033 runpath_var=$runpath_var
18035 # Shared library path variable.
18036 shlibpath_var=$shlibpath_var
18038 # Is shlibpath searched before the hard-coded library search path?
18039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18041 # Format of library name prefix.
18042 libname_spec=$lt_libname_spec
18044 # List of archive names. First name is the real one, the rest are links.
18045 # The last name is the one that the linker finds with -lNAME
18046 library_names_spec=$lt_library_names_spec
18048 # The coded name of the library, if different from the real name.
18049 soname_spec=$lt_soname_spec
18051 # Permission mode override for installation of shared libraries.
18052 install_override_mode=$lt_install_override_mode
18054 # Command to use after installation of a shared archive.
18055 postinstall_cmds=$lt_postinstall_cmds
18057 # Command to use after uninstallation of a shared archive.
18058 postuninstall_cmds=$lt_postuninstall_cmds
18060 # Commands used to finish a libtool library installation in a directory.
18061 finish_cmds=$lt_finish_cmds
18063 # As "finish_cmds", except a single script fragment to be evaled but
18064 # not shown.
18065 finish_eval=$lt_finish_eval
18067 # Whether we should hardcode library paths into libraries.
18068 hardcode_into_libs=$hardcode_into_libs
18070 # Compile-time system search path for libraries.
18071 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18073 # Run-time system search path for libraries.
18074 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18076 # Whether dlopen is supported.
18077 dlopen_support=$enable_dlopen
18079 # Whether dlopen of programs is supported.
18080 dlopen_self=$enable_dlopen_self
18082 # Whether dlopen of statically linked programs is supported.
18083 dlopen_self_static=$enable_dlopen_self_static
18085 # Commands to strip libraries.
18086 old_striplib=$lt_old_striplib
18087 striplib=$lt_striplib
18090 # The linker used to build libraries.
18091 LD=$lt_LD
18093 # How to create reloadable object files.
18094 reload_flag=$lt_reload_flag
18095 reload_cmds=$lt_reload_cmds
18097 # Commands used to build an old-style archive.
18098 old_archive_cmds=$lt_old_archive_cmds
18100 # A language specific compiler.
18101 CC=$lt_compiler
18103 # Is the compiler the GNU compiler?
18104 with_gcc=$GCC
18106 # Compiler flag to turn off builtin functions.
18107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18109 # Additional compiler flags for building library objects.
18110 pic_flag=$lt_lt_prog_compiler_pic
18112 # How to pass a linker flag through the compiler.
18113 wl=$lt_lt_prog_compiler_wl
18115 # Compiler flag to prevent dynamic linking.
18116 link_static_flag=$lt_lt_prog_compiler_static
18118 # Does compiler simultaneously support -c and -o options?
18119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18121 # Whether or not to add -lc for building shared libraries.
18122 build_libtool_need_lc=$archive_cmds_need_lc
18124 # Whether or not to disallow shared libs when runtime libs are static.
18125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18127 # Compiler flag to allow reflexive dlopens.
18128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18130 # Compiler flag to generate shared objects directly from archives.
18131 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18133 # Whether the compiler copes with passing no objects directly.
18134 compiler_needs_object=$lt_compiler_needs_object
18136 # Create an old-style archive from a shared archive.
18137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18139 # Create a temporary old-style archive to link instead of a shared archive.
18140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18142 # Commands used to build a shared archive.
18143 archive_cmds=$lt_archive_cmds
18144 archive_expsym_cmds=$lt_archive_expsym_cmds
18146 # Commands used to build a loadable module if different from building
18147 # a shared archive.
18148 module_cmds=$lt_module_cmds
18149 module_expsym_cmds=$lt_module_expsym_cmds
18151 # Whether we are building with GNU ld or not.
18152 with_gnu_ld=$lt_with_gnu_ld
18154 # Flag that allows shared libraries with undefined symbols to be built.
18155 allow_undefined_flag=$lt_allow_undefined_flag
18157 # Flag that enforces no undefined symbols.
18158 no_undefined_flag=$lt_no_undefined_flag
18160 # Flag to hardcode \$libdir into a binary during linking.
18161 # This must work even if \$libdir does not exist
18162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18164 # If ld is used when linking, flag to hardcode \$libdir into a binary
18165 # during linking. This must work even if \$libdir does not exist.
18166 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18168 # Whether we need a single "-rpath" flag with a separated argument.
18169 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18171 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18172 # DIR into the resulting binary.
18173 hardcode_direct=$hardcode_direct
18175 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18176 # DIR into the resulting binary and the resulting library dependency is
18177 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18178 # library is relocated.
18179 hardcode_direct_absolute=$hardcode_direct_absolute
18181 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18182 # into the resulting binary.
18183 hardcode_minus_L=$hardcode_minus_L
18185 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18186 # into the resulting binary.
18187 hardcode_shlibpath_var=$hardcode_shlibpath_var
18189 # Set to "yes" if building a shared library automatically hardcodes DIR
18190 # into the library and all subsequent libraries and executables linked
18191 # against it.
18192 hardcode_automatic=$hardcode_automatic
18194 # Set to yes if linker adds runtime paths of dependent libraries
18195 # to runtime path list.
18196 inherit_rpath=$inherit_rpath
18198 # Whether libtool must link a program against all its dependency libraries.
18199 link_all_deplibs=$link_all_deplibs
18201 # Set to "yes" if exported symbols are required.
18202 always_export_symbols=$always_export_symbols
18204 # The commands to list exported symbols.
18205 export_symbols_cmds=$lt_export_symbols_cmds
18207 # Symbols that should not be listed in the preloaded symbols.
18208 exclude_expsyms=$lt_exclude_expsyms
18210 # Symbols that must always be exported.
18211 include_expsyms=$lt_include_expsyms
18213 # Commands necessary for linking programs (against libraries) with templates.
18214 prelink_cmds=$lt_prelink_cmds
18216 # Commands necessary for finishing linking programs.
18217 postlink_cmds=$lt_postlink_cmds
18219 # Specify filename containing input files.
18220 file_list_spec=$lt_file_list_spec
18222 # How to hardcode a shared library path into an executable.
18223 hardcode_action=$hardcode_action
18225 # The directories searched by this compiler when creating a shared library.
18226 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18228 # Dependencies to place before and after the objects being linked to
18229 # create a shared library.
18230 predep_objects=$lt_predep_objects
18231 postdep_objects=$lt_postdep_objects
18232 predeps=$lt_predeps
18233 postdeps=$lt_postdeps
18235 # The library search path used internally by the compiler when linking
18236 # a shared library.
18237 compiler_lib_search_path=$lt_compiler_lib_search_path
18239 # ### END LIBTOOL CONFIG
18241 _LT_EOF
18243 case $host_os in
18244 aix3*)
18245 cat <<\_LT_EOF >> "$cfgfile"
18246 # AIX sometimes has problems with the GCC collect2 program. For some
18247 # reason, if we set the COLLECT_NAMES environment variable, the problems
18248 # vanish in a puff of smoke.
18249 if test "X${COLLECT_NAMES+set}" != Xset; then
18250 COLLECT_NAMES=
18251 export COLLECT_NAMES
18253 _LT_EOF
18255 esac
18258 ltmain="$ac_aux_dir/ltmain.sh"
18261 # We use sed instead of cat because bash on DJGPP gets confused if
18262 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18263 # text mode, it properly converts lines to CR/LF. This bash problem
18264 # is reportedly fixed, but why not run on old versions too?
18265 sed '$q' "$ltmain" >> "$cfgfile" \
18266 || (rm -f "$cfgfile"; exit 1)
18268 if test x"$xsi_shell" = xyes; then
18269 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18270 func_dirname ()\
18272 \ case ${1} in\
18273 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18274 \ * ) func_dirname_result="${3}" ;;\
18275 \ esac\
18276 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18277 && mv -f "$cfgfile.tmp" "$cfgfile" \
18278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18279 test 0 -eq $? || _lt_function_replace_fail=:
18282 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18283 func_basename ()\
18285 \ func_basename_result="${1##*/}"\
18286 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18287 && mv -f "$cfgfile.tmp" "$cfgfile" \
18288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18289 test 0 -eq $? || _lt_function_replace_fail=:
18292 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18293 func_dirname_and_basename ()\
18295 \ case ${1} in\
18296 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18297 \ * ) func_dirname_result="${3}" ;;\
18298 \ esac\
18299 \ func_basename_result="${1##*/}"\
18300 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18301 && mv -f "$cfgfile.tmp" "$cfgfile" \
18302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18303 test 0 -eq $? || _lt_function_replace_fail=:
18306 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18307 func_stripname ()\
18309 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18310 \ # positional parameters, so assign one to ordinary parameter first.\
18311 \ func_stripname_result=${3}\
18312 \ func_stripname_result=${func_stripname_result#"${1}"}\
18313 \ func_stripname_result=${func_stripname_result%"${2}"}\
18314 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18315 && mv -f "$cfgfile.tmp" "$cfgfile" \
18316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18317 test 0 -eq $? || _lt_function_replace_fail=:
18320 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18321 func_split_long_opt ()\
18323 \ func_split_long_opt_name=${1%%=*}\
18324 \ func_split_long_opt_arg=${1#*=}\
18325 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18326 && mv -f "$cfgfile.tmp" "$cfgfile" \
18327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18328 test 0 -eq $? || _lt_function_replace_fail=:
18331 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18332 func_split_short_opt ()\
18334 \ func_split_short_opt_arg=${1#??}\
18335 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18336 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18337 && mv -f "$cfgfile.tmp" "$cfgfile" \
18338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18339 test 0 -eq $? || _lt_function_replace_fail=:
18342 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18343 func_lo2o ()\
18345 \ case ${1} in\
18346 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18347 \ *) func_lo2o_result=${1} ;;\
18348 \ esac\
18349 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18350 && mv -f "$cfgfile.tmp" "$cfgfile" \
18351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18352 test 0 -eq $? || _lt_function_replace_fail=:
18355 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18356 func_xform ()\
18358 func_xform_result=${1%.*}.lo\
18359 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18360 && mv -f "$cfgfile.tmp" "$cfgfile" \
18361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18362 test 0 -eq $? || _lt_function_replace_fail=:
18365 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18366 func_arith ()\
18368 func_arith_result=$(( $* ))\
18369 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18370 && mv -f "$cfgfile.tmp" "$cfgfile" \
18371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18372 test 0 -eq $? || _lt_function_replace_fail=:
18375 sed -e '/^func_len ()$/,/^} # func_len /c\
18376 func_len ()\
18378 func_len_result=${#1}\
18379 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18380 && mv -f "$cfgfile.tmp" "$cfgfile" \
18381 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18382 test 0 -eq $? || _lt_function_replace_fail=:
18386 if test x"$lt_shell_append" = xyes; then
18387 sed -e '/^func_append ()$/,/^} # func_append /c\
18388 func_append ()\
18390 eval "${1}+=\\${2}"\
18391 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18392 && mv -f "$cfgfile.tmp" "$cfgfile" \
18393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18394 test 0 -eq $? || _lt_function_replace_fail=:
18397 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18398 func_append_quoted ()\
18400 \ func_quote_for_eval "${2}"\
18401 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18402 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18403 && mv -f "$cfgfile.tmp" "$cfgfile" \
18404 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18405 test 0 -eq $? || _lt_function_replace_fail=:
18408 # Save a `func_append' function call where possible by direct use of '+='
18409 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18410 && mv -f "$cfgfile.tmp" "$cfgfile" \
18411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18412 test 0 -eq $? || _lt_function_replace_fail=:
18413 else
18414 # Save a `func_append' function call even when '+=' is not available
18415 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18416 && mv -f "$cfgfile.tmp" "$cfgfile" \
18417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18418 test 0 -eq $? || _lt_function_replace_fail=:
18421 if test x"$_lt_function_replace_fail" = x":"; then
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18423 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18427 mv -f "$cfgfile" "$ofile" ||
18428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18429 chmod +x "$ofile"
18432 cat <<_LT_EOF >> "$ofile"
18434 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18436 # The linker used to build libraries.
18437 LD=$lt_LD_CXX
18439 # How to create reloadable object files.
18440 reload_flag=$lt_reload_flag_CXX
18441 reload_cmds=$lt_reload_cmds_CXX
18443 # Commands used to build an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds_CXX
18446 # A language specific compiler.
18447 CC=$lt_compiler_CXX
18449 # Is the compiler the GNU compiler?
18450 with_gcc=$GCC_CXX
18452 # Compiler flag to turn off builtin functions.
18453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18455 # Additional compiler flags for building library objects.
18456 pic_flag=$lt_lt_prog_compiler_pic_CXX
18458 # How to pass a linker flag through the compiler.
18459 wl=$lt_lt_prog_compiler_wl_CXX
18461 # Compiler flag to prevent dynamic linking.
18462 link_static_flag=$lt_lt_prog_compiler_static_CXX
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18467 # Whether or not to add -lc for building shared libraries.
18468 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18470 # Whether or not to disallow shared libs when runtime libs are static.
18471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18473 # Compiler flag to allow reflexive dlopens.
18474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18476 # Compiler flag to generate shared objects directly from archives.
18477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18479 # Whether the compiler copes with passing no objects directly.
18480 compiler_needs_object=$lt_compiler_needs_object_CXX
18482 # Create an old-style archive from a shared archive.
18483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18485 # Create a temporary old-style archive to link instead of a shared archive.
18486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18488 # Commands used to build a shared archive.
18489 archive_cmds=$lt_archive_cmds_CXX
18490 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18492 # Commands used to build a loadable module if different from building
18493 # a shared archive.
18494 module_cmds=$lt_module_cmds_CXX
18495 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18497 # Whether we are building with GNU ld or not.
18498 with_gnu_ld=$lt_with_gnu_ld_CXX
18500 # Flag that allows shared libraries with undefined symbols to be built.
18501 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18503 # Flag that enforces no undefined symbols.
18504 no_undefined_flag=$lt_no_undefined_flag_CXX
18506 # Flag to hardcode \$libdir into a binary during linking.
18507 # This must work even if \$libdir does not exist
18508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18510 # If ld is used when linking, flag to hardcode \$libdir into a binary
18511 # during linking. This must work even if \$libdir does not exist.
18512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18514 # Whether we need a single "-rpath" flag with a separated argument.
18515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18518 # DIR into the resulting binary.
18519 hardcode_direct=$hardcode_direct_CXX
18521 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18522 # DIR into the resulting binary and the resulting library dependency is
18523 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18524 # library is relocated.
18525 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18527 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18528 # into the resulting binary.
18529 hardcode_minus_L=$hardcode_minus_L_CXX
18531 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18532 # into the resulting binary.
18533 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18535 # Set to "yes" if building a shared library automatically hardcodes DIR
18536 # into the library and all subsequent libraries and executables linked
18537 # against it.
18538 hardcode_automatic=$hardcode_automatic_CXX
18540 # Set to yes if linker adds runtime paths of dependent libraries
18541 # to runtime path list.
18542 inherit_rpath=$inherit_rpath_CXX
18544 # Whether libtool must link a program against all its dependency libraries.
18545 link_all_deplibs=$link_all_deplibs_CXX
18547 # Set to "yes" if exported symbols are required.
18548 always_export_symbols=$always_export_symbols_CXX
18550 # The commands to list exported symbols.
18551 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18553 # Symbols that should not be listed in the preloaded symbols.
18554 exclude_expsyms=$lt_exclude_expsyms_CXX
18556 # Symbols that must always be exported.
18557 include_expsyms=$lt_include_expsyms_CXX
18559 # Commands necessary for linking programs (against libraries) with templates.
18560 prelink_cmds=$lt_prelink_cmds_CXX
18562 # Commands necessary for finishing linking programs.
18563 postlink_cmds=$lt_postlink_cmds_CXX
18565 # Specify filename containing input files.
18566 file_list_spec=$lt_file_list_spec_CXX
18568 # How to hardcode a shared library path into an executable.
18569 hardcode_action=$hardcode_action_CXX
18571 # The directories searched by this compiler when creating a shared library.
18572 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18574 # Dependencies to place before and after the objects being linked to
18575 # create a shared library.
18576 predep_objects=$lt_predep_objects_CXX
18577 postdep_objects=$lt_postdep_objects_CXX
18578 predeps=$lt_predeps_CXX
18579 postdeps=$lt_postdeps_CXX
18581 # The library search path used internally by the compiler when linking
18582 # a shared library.
18583 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18585 # ### END LIBTOOL TAG CONFIG: CXX
18586 _LT_EOF
18590 esac
18591 done # for ac_tag
18594 as_fn_exit 0
18595 _ACEOF
18596 ac_clean_files=$ac_clean_files_save
18598 test $ac_write_fail = 0 ||
18599 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18602 # configure is writing to config.log, and then calls config.status.
18603 # config.status does its own redirection, appending to config.log.
18604 # Unfortunately, on DOS this fails, as config.log is still kept open
18605 # by configure, so config.status won't be able to write to it; its
18606 # output is simply discarded. So we exec the FD to /dev/null,
18607 # effectively closing config.log, so it can be properly (re)opened and
18608 # appended to by config.status. When coming back to configure, we
18609 # need to make the FD available again.
18610 if test "$no_create" != yes; then
18611 ac_cs_success=:
18612 ac_config_status_args=
18613 test "$silent" = yes &&
18614 ac_config_status_args="$ac_config_status_args --quiet"
18615 exec 5>/dev/null
18616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18617 exec 5>>config.log
18618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18619 # would make configure fail if this is the last instruction.
18620 $ac_cs_success || as_fn_exit 1
18622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18628 abs_srcdir="`cd $srcdir && pwd`"
18629 abs_builddir="`pwd`"
18630 if test "$abs_srcdir" != "$abs_builddir"; then
18631 make mkdir-init