2016-08-24 Michael Collison <michael.collison@linaro.org>
[official-gcc.git] / libffi / configure
blobf40dd4d01a4832d62de4e6d12a3afe4dae2fb410
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://github.com/atgreen/libffi/issues about your
241 $0: system, including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='libffi'
561 PACKAGE_TARNAME='libffi'
562 PACKAGE_VERSION='3.99999'
563 PACKAGE_STRING='libffi 3.99999'
564 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
565 PACKAGE_URL=''
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
608 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
609 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
610 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
611 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
612 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
613 OPT_LDFLAGS
614 SECTION_LDFLAGS
615 toolexeclibdir
616 toolexecdir
617 FFI_DEBUG_FALSE
618 FFI_DEBUG_TRUE
619 TARGET_OBJ
620 TARGETDIR
621 TARGET
622 FFI_EXEC_TRAMPOLINE_TABLE
623 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
624 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
625 HAVE_LONG_DOUBLE_VARIANT
626 HAVE_LONG_DOUBLE
627 ALLOCA
628 AM_LTLDFLAGS
629 AM_RUNTESTFLAGS
630 TESTSUBDIR_FALSE
631 TESTSUBDIR_TRUE
632 MAINT
633 MAINTAINER_MODE_FALSE
634 MAINTAINER_MODE_TRUE
635 CXXCPP
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 RANLIB
644 OBJDUMP
645 LN_S
647 ac_ct_DUMPBIN
648 DUMPBIN
650 FGREP
651 EGREP
652 GREP
654 LIBTOOL
655 am__fastdepCCAS_FALSE
656 am__fastdepCCAS_TRUE
657 CCASDEPMODE
658 CCASFLAGS
659 CCAS
660 am__fastdepCXX_FALSE
661 am__fastdepCXX_TRUE
662 CXXDEPMODE
663 ac_ct_CXX
664 CXXFLAGS
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 GENINSRC_FALSE
684 GENINSRC_TRUE
685 BUILD_INFO_FALSE
686 BUILD_INFO_TRUE
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 multi_basedir
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_multilib
765 enable_generated_files_in_srcdir
766 enable_dependency_tracking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_gnu_ld
772 enable_libtool_lock
773 enable_maintainer_mode
774 enable_pax_emutramp
775 enable_debug
776 enable_structs
777 enable_raw_api
778 enable_purify_safety
779 enable_symvers
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CCAS
785 CCASFLAGS
787 CPPFLAGS
788 CXXCPP'
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
839 ac_prev=
840 ac_dashdash=
841 for ac_option
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
859 ac_dashdash=yes ;;
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
878 --config-cache | -C)
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information."
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 esac
1196 done
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1385 cat <<\_ACEOF
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of libffi 3.99999:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-multilib build many library versions (default)
1410 --enable-generated-files-in-srcdir
1411 put copies of generated files in source dir intended
1412 for creating source tarballs for users without
1413 texinfo bison or flex
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --enable-maintainer-mode enable make rules and dependencies not useful
1422 (and sometimes confusing) to the casual installer
1423 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1424 --enable-debug debugging mode
1425 --disable-structs omit code for struct support
1426 --disable-raw-api make the raw api unavailable
1427 --enable-purify-safety purify-safe mode
1428 --enable-symvers=STYLE enables symbol versioning of the shared library
1429 [default=yes]
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1448 CCAS assembler compiler command (defaults to CC)
1449 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1450 CPP C preprocessor
1451 CXXCPP C++ preprocessor
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to <http://github.com/atgreen/libffi/issues>.
1457 _ACEOF
1458 ac_status=$?
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 libffi configure 3.99999
1520 generated by GNU Autoconf 2.64
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1564 ac_retval=1
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1569 } # ac_fn_c_try_compile
1571 # ac_fn_cxx_try_compile LINENO
1572 # ----------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_cxx_try_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_cxx_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1602 ac_retval=1
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1605 return $ac_retval
1607 } # ac_fn_cxx_try_compile
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_link ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest$ac_exeext
1616 if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 $as_test_x conftest$ac_exeext
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 ac_retval=1
1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647 # interfere with the next link command; also delete a directory that is
1648 # left behind by Apple's compiler. We do this before executing the actions.
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651 return $ac_retval
1653 } # ac_fn_c_try_link
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 eval "$3=yes"
1674 else
1675 eval "$3=no"
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } >/dev/null && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=1
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 return $ac_retval
1721 } # ac_fn_c_try_cpp
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1727 ac_fn_c_try_run ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=$ac_status
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1763 } # ac_fn_c_try_run
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1787 #ifdef __STDC__
1788 # include <limits.h>
1789 #else
1790 # include <assert.h>
1791 #endif
1793 #undef $2
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1798 #ifdef __cplusplus
1799 extern "C"
1800 #endif
1801 char $2 ();
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1806 choke me
1807 #endif
1810 main ()
1812 return $2 ();
1814 return 0;
1816 _ACEOF
1817 if ac_fn_c_try_link "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1822 rm -f core conftest.err conftest.$ac_objext \
1823 conftest$ac_exeext conftest.$ac_ext
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_func
1832 # ac_fn_cxx_try_cpp LINENO
1833 # ------------------------
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_cpp ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } >/dev/null && {
1854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1867 } # ac_fn_cxx_try_cpp
1869 # ac_fn_cxx_try_link LINENO
1870 # -------------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_cxx_try_link ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_cxx_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest$ac_exeext
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_retval=1
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_cxx_try_link
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1919 # computed
1920 ac_fn_c_compute_int ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if test "$cross_compiling" = yes; then
1924 # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1932 test_array [0] = 0
1935 return 0;
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_lo=0 ac_mid=0
1940 while :; do
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 main ()
1947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1948 test_array [0] = 0
1951 return 0;
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_hi=$ac_mid; break
1956 else
1957 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1958 if test $ac_lo -le $ac_mid; then
1959 ac_lo= ac_hi=
1960 break
1962 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 done
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static int test_array [1 - 2 * !(($2) < 0)];
1974 test_array [0] = 0
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_hi=-1 ac_mid=-1
1982 while :; do
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1990 test_array [0] = 0
1993 return 0;
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_lo=$ac_mid; break
1998 else
1999 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2000 if test $ac_mid -le $ac_hi; then
2001 ac_lo= ac_hi=
2002 break
2004 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 done
2008 else
2009 ac_lo= ac_hi=
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 # Binary search between lo and hi bounds.
2015 while test "x$ac_lo" != "x$ac_hi"; do
2016 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 test_array [0] = 0
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid
2032 else
2033 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037 case $ac_lo in #((
2038 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2039 '') ac_retval=1 ;;
2040 esac
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2047 #include <stdio.h>
2048 #include <stdlib.h>
2050 main ()
2053 FILE *f = fopen ("conftest.val", "w");
2054 if (! f)
2055 return 1;
2056 if (($2) < 0)
2058 long int i = longval ();
2059 if (i != ($2))
2060 return 1;
2061 fprintf (f, "%ld", i);
2063 else
2065 unsigned long int i = ulongval ();
2066 if (i != ($2))
2067 return 1;
2068 fprintf (f, "%lu", i);
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_run "$LINENO"; then :
2079 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2080 else
2081 ac_retval=1
2083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2084 conftest.$ac_objext conftest.beam conftest.$ac_ext
2085 rm -f conftest.val
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 return $ac_retval
2091 } # ac_fn_c_compute_int
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2097 # accordingly.
2098 ac_fn_c_check_header_mongrel ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105 $as_echo_n "(cached) " >&6
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 else
2111 # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2117 #include <$2>
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2121 else
2122 ac_header_compiler=no
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 #include <$2>
2134 _ACEOF
2135 if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2137 else
2138 ac_header_preproc=no
2140 rm -f conftest.err conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2144 # So? What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 yes:no: )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 no:yes:* )
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 ( cat <<\_ASBOX
2164 ## ------------------------------------------------------ ##
2165 ## Report this to http://github.com/atgreen/libffi/issues ##
2166 ## ------------------------------------------------------ ##
2167 _ASBOX
2168 ) | sed "s/^/$as_me: WARNING: /" >&2
2170 esac
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2176 eval "$3=\$ac_header_compiler"
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 } # ac_fn_c_check_header_mongrel
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2189 It was created by libffi $as_me 3.99999, which was
2190 generated by GNU Autoconf 2.64. Invocation command line was
2192 $ $0 $@
2194 _ACEOF
2195 exec 5>>config.log
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2219 _ASUNAME
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2230 } >&5
2232 cat >&5 <<_ACEOF
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2239 _ACEOF
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2253 for ac_arg
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2282 as_fn_append ac_configure_args " '$ac_arg'"
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2298 echo
2300 cat <<\_ASBOX
2301 ## ---------------- ##
2302 ## Cache variables. ##
2303 ## ---------------- ##
2304 _ASBOX
2305 echo
2306 # The following way of writing the cache mishandles newlines in values,
2308 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in #(
2311 *${as_nl}*)
2312 case $ac_var in #(
2313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315 esac
2316 case $ac_var in #(
2317 _ | IFS | as_nl) ;; #(
2318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2319 *) { eval $ac_var=; unset $ac_var;} ;;
2320 esac ;;
2321 esac
2322 done
2323 (set) 2>&1 |
2324 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2325 *${as_nl}ac_space=\ *)
2326 sed -n \
2327 "s/'\''/'\''\\\\'\'''\''/g;
2328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329 ;; #(
2331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2333 esac |
2334 sort
2336 echo
2338 cat <<\_ASBOX
2339 ## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##
2342 _ASBOX
2343 echo
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2354 if test -n "$ac_subst_files"; then
2355 cat <<\_ASBOX
2356 ## ------------------- ##
2357 ## File substitutions. ##
2358 ## ------------------- ##
2359 _ASBOX
2360 echo
2361 for ac_var in $ac_subst_files
2363 eval ac_val=\$$ac_var
2364 case $ac_val in
2365 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366 esac
2367 $as_echo "$ac_var='\''$ac_val'\''"
2368 done | sort
2369 echo
2372 if test -s confdefs.h; then
2373 cat <<\_ASBOX
2374 ## ----------- ##
2375 ## confdefs.h. ##
2376 ## ----------- ##
2377 _ASBOX
2378 echo
2379 cat confdefs.h
2380 echo
2382 test "$ac_signal" != 0 &&
2383 $as_echo "$as_me: caught signal $ac_signal"
2384 $as_echo "$as_me: exit $exit_status"
2385 } >&5
2386 rm -f core *.core core.conftest.* &&
2387 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2388 exit $exit_status
2390 for ac_signal in 1 2 13 15; do
2391 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2392 done
2393 ac_signal=0
2395 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2396 rm -f -r conftest* confdefs.h
2398 $as_echo "/* confdefs.h */" > confdefs.h
2400 # Predefined preprocessor variables.
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_NAME "$PACKAGE_NAME"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_STRING "$PACKAGE_STRING"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2420 _ACEOF
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_URL "$PACKAGE_URL"
2424 _ACEOF
2427 # Let the site file select an alternate cache file if it wants to.
2428 # Prefer an explicitly selected file to automatically selected ones.
2429 ac_site_file1=NONE
2430 ac_site_file2=NONE
2431 if test -n "$CONFIG_SITE"; then
2432 ac_site_file1=$CONFIG_SITE
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE && continue
2443 if test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file"
2449 done
2451 if test -r "$cache_file"; then
2452 # Some versions of bash will fail to source /dev/null (special
2453 # files actually), so we avoid doing that.
2454 if test -f "$cache_file"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2456 $as_echo "$as_me: loading cache $cache_file" >&6;}
2457 case $cache_file in
2458 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2459 *) . "./$cache_file";;
2460 esac
2462 else
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2464 $as_echo "$as_me: creating cache $cache_file" >&6;}
2465 >$cache_file
2468 # Check that the precious variables saved in the cache have kept the same
2469 # value.
2470 ac_cache_corrupted=false
2471 for ac_var in $ac_precious_vars; do
2472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2473 eval ac_new_set=\$ac_env_${ac_var}_set
2474 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2475 eval ac_new_val=\$ac_env_${ac_var}_value
2476 case $ac_old_set,$ac_new_set in
2477 set,)
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2479 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2480 ac_cache_corrupted=: ;;
2481 ,set)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,);;
2487 if test "x$ac_old_val" != "x$ac_new_val"; then
2488 # differences in whitespace do not lead to failure.
2489 ac_old_val_w=`echo x $ac_old_val`
2490 ac_new_val_w=`echo x $ac_new_val`
2491 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2493 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2494 ac_cache_corrupted=:
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2497 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2498 eval $ac_var=\$ac_old_val
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2501 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2503 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2504 fi;;
2505 esac
2506 # Pass precious variables to config.status.
2507 if test "$ac_new_set" = set; then
2508 case $ac_new_val in
2509 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 *) ac_arg=$ac_var=$ac_new_val ;;
2511 esac
2512 case " $ac_configure_args " in
2513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2514 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515 esac
2517 done
2518 if $ac_cache_corrupted; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2522 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2523 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525 ## -------------------- ##
2526 ## Main body of script. ##
2527 ## -------------------- ##
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 ac_config_headers="$ac_config_headers fficonfig.h"
2542 # Default to --enable-multilib
2543 # Check whether --enable-multilib was given.
2544 if test "${enable_multilib+set}" = set; then :
2545 enableval=$enable_multilib; case "$enableval" in
2546 yes) multilib=yes ;;
2547 no) multilib=no ;;
2548 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2549 esac
2550 else
2551 multilib=yes
2555 # We may get other options which we leave undocumented:
2556 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2557 # See config-ml.in if you want the gory details.
2559 if test "$srcdir" = "."; then
2560 if test "$with_target_subdir" != "."; then
2561 multi_basedir="$srcdir/$with_multisrctop../.."
2562 else
2563 multi_basedir="$srcdir/$with_multisrctop.."
2565 else
2566 multi_basedir="$srcdir/.."
2570 # Even if the default multilib is not a cross compilation,
2571 # it may be that some of the other multilibs are.
2572 if test $cross_compiling = no && test $multilib = yes \
2573 && test "x${with_multisubdir}" != x ; then
2574 cross_compiling=maybe
2577 ac_config_commands="$ac_config_commands default-1"
2580 ac_aux_dir=
2581 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2582 for ac_t in install-sh install.sh shtool; do
2583 if test -f "$ac_dir/$ac_t"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/$ac_t -c"
2586 break 2
2588 done
2589 done
2590 if test -z "$ac_aux_dir"; then
2591 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608 $as_echo_n "checking build system type... " >&6; }
2609 if test "${ac_cv_build+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 ac_build_alias=$build_alias
2613 test "x$ac_build_alias" = x &&
2614 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615 test "x$ac_build_alias" = x &&
2616 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2617 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622 $as_echo "$ac_cv_build" >&6; }
2623 case $ac_cv_build in
2624 *-*-*) ;;
2625 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2626 esac
2627 build=$ac_cv_build
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_build
2630 shift
2631 build_cpu=$1
2632 build_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 build_os=$*
2637 IFS=$ac_save_IFS
2638 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642 $as_echo_n "checking host system type... " >&6; }
2643 if test "${ac_cv_host+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648 else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655 $as_echo "$ac_cv_host" >&6; }
2656 case $ac_cv_host in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2659 esac
2660 host=$ac_cv_host
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_host
2663 shift
2664 host_cpu=$1
2665 host_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 host_os=$*
2670 IFS=$ac_save_IFS
2671 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675 $as_echo_n "checking target system type... " >&6; }
2676 if test "${ac_cv_target+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test "x$target_alias" = x; then
2680 ac_cv_target=$ac_cv_host
2681 else
2682 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688 $as_echo "$ac_cv_target" >&6; }
2689 case $ac_cv_target in
2690 *-*-*) ;;
2691 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2692 esac
2693 target=$ac_cv_target
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_target
2696 shift
2697 target_cpu=$1
2698 target_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 target_os=$*
2703 IFS=$ac_save_IFS
2704 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2707 # The aliases save the names the user supplied, while $host etc.
2708 # will get canonicalized.
2709 test -n "$target_alias" &&
2710 test "$program_prefix$program_suffix$program_transform_name" = \
2711 NONENONEs,x,x, &&
2712 program_prefix=${target_alias}-
2714 target_alias=${target_alias-$host_alias}
2716 am__api_version='1.11'
2718 # Find a good install program. We prefer a C program (faster),
2719 # so one script is as good as another. But avoid the broken or
2720 # incompatible versions:
2721 # SysV /etc/install, /usr/sbin/install
2722 # SunOS /usr/etc/install
2723 # IRIX /sbin/install
2724 # AIX /bin/install
2725 # AmigaOS /C/install, which installs bootblocks on floppy discs
2726 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2729 # OS/2's system install, which has a completely different semantic
2730 # ./install, which can be erroneously created by make from ./install.sh.
2731 # Reject install programs that cannot install multiple files.
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2733 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2734 if test -z "$INSTALL"; then
2735 if test "${ac_cv_path_install+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 # Account for people who put trailing slashes in PATH elements.
2744 case $as_dir/ in #((
2745 ./ | .// | /[cC]/* | \
2746 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2747 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2748 /usr/ucb/* ) ;;
2750 # OSF1 and SCO ODT 3.0 have their own names for install.
2751 # Don't use installbsd from OSF since it installs stuff as root
2752 # by default.
2753 for ac_prog in ginstall scoinst install; do
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2756 if test $ac_prog = install &&
2757 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2758 # AIX install. It has an incompatible calling convention.
2760 elif test $ac_prog = install &&
2761 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2762 # program-specific install script used by HP pwplus--don't use.
2764 else
2765 rm -rf conftest.one conftest.two conftest.dir
2766 echo one > conftest.one
2767 echo two > conftest.two
2768 mkdir conftest.dir
2769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2770 test -s conftest.one && test -s conftest.two &&
2771 test -s conftest.dir/conftest.one &&
2772 test -s conftest.dir/conftest.two
2773 then
2774 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2775 break 3
2779 done
2780 done
2782 esac
2784 done
2785 IFS=$as_save_IFS
2787 rm -rf conftest.one conftest.two conftest.dir
2790 if test "${ac_cv_path_install+set}" = set; then
2791 INSTALL=$ac_cv_path_install
2792 else
2793 # As a last resort, use the slow shell script. Don't cache a
2794 # value for INSTALL within a source directory, because that will
2795 # break other packages using the cache if that directory is
2796 # removed, or if the value is a relative name.
2797 INSTALL=$ac_install_sh
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2801 $as_echo "$INSTALL" >&6; }
2803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2804 # It thinks the first close brace ends the variable substitution.
2805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2812 $as_echo_n "checking whether build environment is sane... " >&6; }
2813 # Just in case
2814 sleep 1
2815 echo timestamp > conftest.file
2816 # Reject unsafe characters in $srcdir or the absolute working directory
2817 # name. Accept space and tab only in the latter.
2818 am_lf='
2820 case `pwd` in
2821 *[\\\"\#\$\&\'\`$am_lf]*)
2822 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2823 esac
2824 case $srcdir in
2825 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2826 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2827 esac
2829 # Do `set' in a subshell so we don't clobber the current shell's
2830 # arguments. Must try -L first in case configure is actually a
2831 # symlink; some systems play weird games with the mod time of symlinks
2832 # (eg FreeBSD returns the mod time of the symlink's containing
2833 # directory).
2834 if (
2835 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2836 if test "$*" = "X"; then
2837 # -L didn't work.
2838 set X `ls -t "$srcdir/configure" conftest.file`
2840 rm -f conftest.file
2841 if test "$*" != "X $srcdir/configure conftest.file" \
2842 && test "$*" != "X conftest.file $srcdir/configure"; then
2844 # If neither matched, then we have a broken ls. This can happen
2845 # if, for instance, CONFIG_SHELL is bash and it inherits a
2846 # broken ls alias from the environment. This has actually
2847 # happened. Such a system could not be considered "sane".
2848 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2849 alias in your environment" "$LINENO" 5
2852 test "$2" = conftest.file
2854 then
2855 # Ok.
2857 else
2858 as_fn_error "newly created file is older than distributed files!
2859 Check your system clock" "$LINENO" 5
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2862 $as_echo "yes" >&6; }
2863 test "$program_prefix" != NONE &&
2864 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2865 # Use a double $ so make ignores it.
2866 test "$program_suffix" != NONE &&
2867 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2868 # Double any \ or $.
2869 # By default was `s,x,x', remove it if useless.
2870 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2871 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2873 # expand $ac_aux_dir to an absolute path
2874 am_aux_dir=`cd $ac_aux_dir && pwd`
2876 if test x"${MISSING+set}" != xset; then
2877 case $am_aux_dir in
2878 *\ * | *\ *)
2879 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2881 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2882 esac
2884 # Use eval to expand $SHELL
2885 if eval "$MISSING --run true"; then
2886 am_missing_run="$MISSING --run "
2887 else
2888 am_missing_run=
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2890 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2893 if test x"${install_sh}" != xset; then
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898 install_sh="\${SHELL} $am_aux_dir/install-sh"
2899 esac
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'. However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_STRIP"; then
2947 ac_ct_STRIP=$STRIP
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_STRIP" = x; then
2985 STRIP=":"
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 STRIP=$ac_ct_STRIP
2995 else
2996 STRIP="$ac_cv_prog_STRIP"
3000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3003 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3004 if test -z "$MKDIR_P"; then
3005 if test "${ac_cv_path_mkdir+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_prog in mkdir gmkdir; do
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3016 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3017 'mkdir (GNU coreutils) '* | \
3018 'mkdir (coreutils) '* | \
3019 'mkdir (fileutils) '4.1*)
3020 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3021 break 3;;
3022 esac
3023 done
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 if test "${ac_cv_path_mkdir+set}" = set; then
3031 MKDIR_P="$ac_cv_path_mkdir -p"
3032 else
3033 # As a last resort, use the slow shell script. Don't cache a
3034 # value for MKDIR_P within a source directory, because that will
3035 # break other packages using the cache if that directory is
3036 # removed, or if the value is a relative name.
3037 test -d ./--version && rmdir ./--version
3038 MKDIR_P="$ac_install_sh -d"
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3042 $as_echo "$MKDIR_P" >&6; }
3044 mkdir_p="$MKDIR_P"
3045 case $mkdir_p in
3046 [\\/$]* | ?:[\\/]*) ;;
3047 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3048 esac
3050 for ac_prog in gawk mawk nawk awk
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_AWK+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$AWK"; then
3060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_AWK="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 AWK=$ac_cv_prog_AWK
3080 if test -n "$AWK"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3082 $as_echo "$AWK" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3089 test -n "$AWK" && break
3090 done
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3094 set x ${MAKE-make}
3095 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3096 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 cat >conftest.make <<\_ACEOF
3100 SHELL = /bin/sh
3101 all:
3102 @echo '@@@%%%=$(MAKE)=@@@%%%'
3103 _ACEOF
3104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3106 *@@@%%%=?*=@@@%%%*)
3107 eval ac_cv_prog_make_${ac_make}_set=yes;;
3109 eval ac_cv_prog_make_${ac_make}_set=no;;
3110 esac
3111 rm -f conftest.make
3113 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3116 SET_MAKE=
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 SET_MAKE="MAKE=${MAKE-make}"
3123 rm -rf .tst 2>/dev/null
3124 mkdir .tst 2>/dev/null
3125 if test -d .tst; then
3126 am__leading_dot=.
3127 else
3128 am__leading_dot=_
3130 rmdir .tst 2>/dev/null
3132 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3133 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3134 # is not polluted with repeated "-I."
3135 am__isrc=' -I$(srcdir)'
3136 # test to see if srcdir already configured
3137 if test -f $srcdir/config.status; then
3138 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3142 # test whether we have cygpath
3143 if test -z "$CYGPATH_W"; then
3144 if (cygpath --version) >/dev/null 2>/dev/null; then
3145 CYGPATH_W='cygpath -w'
3146 else
3147 CYGPATH_W=echo
3152 # Define the identity of the package.
3153 PACKAGE='libffi'
3154 VERSION='3.99999'
3157 cat >>confdefs.h <<_ACEOF
3158 #define PACKAGE "$PACKAGE"
3159 _ACEOF
3162 cat >>confdefs.h <<_ACEOF
3163 #define VERSION "$VERSION"
3164 _ACEOF
3166 # Some tools Automake needs.
3168 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3171 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3174 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3177 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3180 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3182 # We need awk for the "check" target. The system "awk" is bad on
3183 # some platforms.
3184 # Always define AMTAR for backward compatibility. Yes, it's still used
3185 # in the wild :-( We should find a proper way to deprecate it ...
3186 AMTAR='$${TAR-tar}'
3188 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3195 # See if makeinfo has been installed and is modern enough
3196 # that we can use it.
3198 # Extract the first word of "makeinfo", so it can be a program name with args.
3199 set dummy makeinfo; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$MAKEINFO"; then
3206 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_MAKEINFO="makeinfo"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 MAKEINFO=$ac_cv_prog_MAKEINFO
3226 if test -n "$MAKEINFO"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3228 $as_echo "$MAKEINFO" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 if test -n "$MAKEINFO"; then
3236 # Found it, now check the version.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3238 $as_echo_n "checking for modern makeinfo... " >&6; }
3239 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3243 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3245 case $ac_prog_version in
3246 '') gcc_cv_prog_makeinfo_modern=no;;
3247 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3248 *) gcc_cv_prog_makeinfo_modern=no;;
3249 esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3253 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3254 else
3255 gcc_cv_prog_makeinfo_modern=no
3257 if test $gcc_cv_prog_makeinfo_modern = no; then
3258 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3261 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3262 BUILD_INFO_TRUE=
3263 BUILD_INFO_FALSE='#'
3264 else
3265 BUILD_INFO_TRUE='#'
3266 BUILD_INFO_FALSE=
3270 # We would like our source tree to be readonly. However when releases or
3271 # pre-releases are generated, the flex/bison generated files as well as the
3272 # various formats of manuals need to be included along with the rest of the
3273 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3274 # just that.
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3276 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3277 # Check whether --enable-generated-files-in-srcdir was given.
3278 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3279 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3280 yes) enable_generated_files_in_srcdir=yes ;;
3281 no) enable_generated_files_in_srcdir=no ;;
3282 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3283 esac
3284 else
3285 enable_generated_files_in_srcdir=no
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3289 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3290 if test "$enable_generated_files_in_srcdir" = yes; then
3291 GENINSRC_TRUE=
3292 GENINSRC_FALSE='#'
3293 else
3294 GENINSRC_TRUE='#'
3295 GENINSRC_FALSE=
3299 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3300 # We must force CC to /not/ be precious variables; otherwise
3301 # the wrong, non-multilib-adjusted value will be used in multilibs.
3302 # As a side effect, we have to subst CFLAGS ourselves.
3303 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3304 # defaults of its own if none are provided.
3308 save_CFLAGS=$CFLAGS
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if test "${ac_cv_prog_CC+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3353 if test -z "$ac_cv_prog_CC"; then
3354 ac_ct_CC=$CC
3355 # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_ac_ct_CC="gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3376 done
3377 done
3378 IFS=$as_save_IFS
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3391 if test "x$ac_ct_CC" = x; then
3392 CC=""
3393 else
3394 case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400 CC=$ac_ct_CC
3402 else
3403 CC="$ac_cv_prog_CC"
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="${ac_tool_prefix}cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3447 if test -z "$CC"; then
3448 # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 ac_prog_rejected=no
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected=yes
3468 continue
3470 ac_cv_prog_CC="cc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy $ac_cv_prog_CC
3481 shift
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3486 shift
3487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$CC" && break
3545 done
3547 if test -z "$CC"; then
3548 ac_ct_CC=$CC
3549 for ac_prog in cl.exe
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$ac_ct_CC" && break
3589 done
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details." "$LINENO" 5; }
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3614 set X $ac_compile
3615 ac_compiler=$2
3616 for ac_option in --version -v -V -qversion; do
3617 { { ac_try="$ac_compiler $ac_option >&5"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3625 ac_status=$?
3626 if test -s conftest.err; then
3627 sed '10a\
3628 ... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
3631 rm -f conftest.er1 conftest.err
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3635 done
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3641 main ()
3645 return 0;
3647 _ACEOF
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3652 # of exeext.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3654 $as_echo_n "checking for C compiler default output file name... " >&6; }
3655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3657 # The possible output files:
3658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3660 ac_rmfiles=
3661 for ac_file in $ac_files
3663 case $ac_file in
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666 esac
3667 done
3668 rm -f $ac_rmfiles
3670 if { { ac_try="$ac_link_default"
3671 case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link_default") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3684 # so that the user can short-circuit this test for compilers unknown to
3685 # Autoconf.
3686 for ac_file in $ac_files ''
3688 test -f "$ac_file" || continue
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3692 [ab].out )
3693 # We found the default executable, but exeext='' is most
3694 # certainly right.
3695 break;;
3696 *.* )
3697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3698 then :; else
3699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 # We set ac_cv_exeext here because the later test for it is not
3702 # safe: cross compilers may not add the suffix if given an `-o'
3703 # argument, so we may need to know it at that point already.
3704 # Even if this section looks crufty: it has the advantage of
3705 # actually working.
3706 break;;
3708 break;;
3709 esac
3710 done
3711 test "$ac_cv_exeext" = no && ac_cv_exeext=
3713 else
3714 ac_file=''
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 if test -z "$ac_file"; then :
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 { as_fn_set_status 77
3725 as_fn_error "C compiler cannot create executables
3726 See \`config.log' for more details." "$LINENO" 5; }; }
3728 ac_exeext=$ac_cv_exeext
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3733 $as_echo_n "checking whether the C compiler works... " >&6; }
3734 # If not cross compiling, check that we can run a simple program.
3735 if test "$cross_compiling" != yes; then
3736 if { ac_try='./$ac_file'
3737 { { case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_try") 2>&5
3744 ac_status=$?
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; }; then
3747 cross_compiling=no
3748 else
3749 if test "$cross_compiling" = maybe; then
3750 cross_compiling=yes
3751 else
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "cannot run C compiled programs.
3755 If you meant to cross compile, use \`--host'.
3756 See \`config.log' for more details." "$LINENO" 5; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 $as_echo "yes" >&6; }
3763 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3764 ac_clean_files=$ac_clean_files_save
3765 # Check that the compiler produces executables we can run. If not, either
3766 # the compiler is broken, or we cross compile.
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3768 $as_echo_n "checking whether we are cross compiling... " >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3770 $as_echo "$cross_compiling" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3773 $as_echo_n "checking for suffix of executables... " >&6; }
3774 if { { ac_try="$ac_link"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3787 # work properly (i.e., refer to `conftest.exe'), while it won't with
3788 # `rm'.
3789 for ac_file in conftest.exe conftest conftest.*; do
3790 test -f "$ac_file" || continue
3791 case $ac_file in
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 break;;
3795 * ) break;;
3796 esac
3797 done
3798 else
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "cannot compute suffix of executables: cannot compile and link
3802 See \`config.log' for more details." "$LINENO" 5; }
3804 rm -f conftest$ac_cv_exeext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3806 $as_echo "$ac_cv_exeext" >&6; }
3808 rm -f conftest.$ac_ext
3809 EXEEXT=$ac_cv_exeext
3810 ac_exeext=$EXEEXT
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812 $as_echo_n "checking for suffix of object files... " >&6; }
3813 if test "${ac_cv_objext+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 main ()
3824 return 0;
3826 _ACEOF
3827 rm -f conftest.o conftest.obj
3828 if { { ac_try="$ac_compile"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compile") 2>&5
3836 ac_status=$?
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 for ac_file in conftest.o conftest.obj conftest.*; do
3840 test -f "$ac_file" || continue;
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3844 break;;
3845 esac
3846 done
3847 else
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error "cannot compute suffix of object files: cannot compile
3854 See \`config.log' for more details." "$LINENO" 5; }
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859 $as_echo "$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3861 ac_objext=$OBJEXT
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3871 main ()
3873 #ifndef __GNUC__
3874 choke me
3875 #endif
3878 return 0;
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_compiler_gnu=yes
3883 else
3884 ac_compiler_gnu=no
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892 if test $ac_compiler_gnu = yes; then
3893 GCC=yes
3894 else
3895 GCC=
3897 ac_test_CFLAGS=${CFLAGS+set}
3898 ac_save_CFLAGS=$CFLAGS
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3901 if test "${ac_cv_prog_cc_g+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 ac_save_c_werror_flag=$ac_c_werror_flag
3905 ac_c_werror_flag=yes
3906 ac_cv_prog_cc_g=no
3907 CFLAGS="-g"
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_g=yes
3921 else
3922 CFLAGS=""
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3927 main ()
3931 return 0;
3933 _ACEOF
3934 if ac_fn_c_try_compile "$LINENO"; then :
3936 else
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 CFLAGS="-g"
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 main ()
3947 return 0;
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_prog_cc_g=yes
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961 $as_echo "$ac_cv_prog_cc_g" >&6; }
3962 if test "$ac_test_CFLAGS" = set; then
3963 CFLAGS=$ac_save_CFLAGS
3964 elif test $ac_cv_prog_cc_g = yes; then
3965 if test "$GCC" = yes; then
3966 CFLAGS="-g -O2"
3967 else
3968 CFLAGS="-g"
3970 else
3971 if test "$GCC" = yes; then
3972 CFLAGS="-O2"
3973 else
3974 CFLAGS=
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 ac_cv_prog_cc_c89=no
3983 ac_save_CC=$CC
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 #include <stdarg.h>
3987 #include <stdio.h>
3988 #include <sys/types.h>
3989 #include <sys/stat.h>
3990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3991 struct buf { int x; };
3992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3993 static char *e (p, i)
3994 char **p;
3995 int i;
3997 return p[i];
3999 static char *f (char * (*g) (char **, int), char **p, ...)
4001 char *s;
4002 va_list v;
4003 va_start (v,p);
4004 s = g (p, va_arg (v,int));
4005 va_end (v);
4006 return s;
4009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4010 function prototypes and stuff, but not '\xHH' hex character constants.
4011 These don't provoke an error unfortunately, instead are silently treated
4012 as 'x'. The following induces an error, until -std is added to get
4013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4014 array size at least. It's necessary to write '\x00'==0 to get something
4015 that's true only with -std. */
4016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4019 inside strings and character constants. */
4020 #define FOO(x) 'x'
4021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4023 int test (int i, double x);
4024 struct s1 {int (*f) (int a);};
4025 struct s2 {int (*f) (double a);};
4026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4027 int argc;
4028 char **argv;
4030 main ()
4032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4034 return 0;
4036 _ACEOF
4037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4040 CC="$ac_save_CC $ac_arg"
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_cv_prog_cc_c89=$ac_arg
4044 rm -f core conftest.err conftest.$ac_objext
4045 test "x$ac_cv_prog_cc_c89" != "xno" && break
4046 done
4047 rm -f conftest.$ac_ext
4048 CC=$ac_save_CC
4051 # AC_CACHE_VAL
4052 case "x$ac_cv_prog_cc_c89" in
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4055 $as_echo "none needed" >&6; } ;;
4056 xno)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4058 $as_echo "unsupported" >&6; } ;;
4060 CC="$CC $ac_cv_prog_cc_c89"
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4062 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4063 esac
4064 if test "x$ac_cv_prog_cc_c89" != xno; then :
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 DEPDIR="${am__leading_dot}deps"
4075 ac_config_commands="$ac_config_commands depfiles"
4078 am_make=${MAKE-make}
4079 cat > confinc << 'END'
4080 am__doit:
4081 @echo this is the am__doit target
4082 .PHONY: am__doit
4084 # If we don't find an include directive, just comment out the code.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4086 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4087 am__include="#"
4088 am__quote=
4089 _am_result=none
4090 # First try GNU make style include.
4091 echo "include confinc" > confmf
4092 # Ignore all kinds of additional output from `make'.
4093 case `$am_make -s -f confmf 2> /dev/null` in #(
4094 *the\ am__doit\ target*)
4095 am__include=include
4096 am__quote=
4097 _am_result=GNU
4099 esac
4100 # Now try BSD make style include.
4101 if test "$am__include" = "#"; then
4102 echo '.include "confinc"' > confmf
4103 case `$am_make -s -f confmf 2> /dev/null` in #(
4104 *the\ am__doit\ target*)
4105 am__include=.include
4106 am__quote="\""
4107 _am_result=BSD
4109 esac
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4114 $as_echo "$_am_result" >&6; }
4115 rm -f confinc confmf
4117 # Check whether --enable-dependency-tracking was given.
4118 if test "${enable_dependency_tracking+set}" = set; then :
4119 enableval=$enable_dependency_tracking;
4122 if test "x$enable_dependency_tracking" != xno; then
4123 am_depcomp="$ac_aux_dir/depcomp"
4124 AMDEPBACKSLASH='\'
4125 am__nodep='_no'
4127 if test "x$enable_dependency_tracking" != xno; then
4128 AMDEP_TRUE=
4129 AMDEP_FALSE='#'
4130 else
4131 AMDEP_TRUE='#'
4132 AMDEP_FALSE=
4137 depcc="$CC" am_compiler_list=
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145 # We make a subdir and do the tests there. Otherwise we can end up
4146 # making bogus files that we don't know about and never remove. For
4147 # instance it was reported that on HP-UX the gcc test will end up
4148 # making a dummy file named `D' -- because `-MD' means `put the output
4149 # in D'.
4150 rm -rf conftest.dir
4151 mkdir conftest.dir
4152 # Copy depcomp to subdir because otherwise we won't find it if we're
4153 # using a relative directory.
4154 cp "$am_depcomp" conftest.dir
4155 cd conftest.dir
4156 # We will build objects and dependencies in a subdirectory because
4157 # it helps to detect inapplicable dependency modes. For instance
4158 # both Tru64's cc and ICC support -MD to output dependencies as a
4159 # side effect of compilation, but ICC will put the dependencies in
4160 # the current directory while Tru64 will put them in the object
4161 # directory.
4162 mkdir sub
4164 am_cv_CC_dependencies_compiler_type=none
4165 if test "$am_compiler_list" = ""; then
4166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4168 am__universal=false
4169 case " $depcc " in #(
4170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4171 esac
4173 for depmode in $am_compiler_list; do
4174 # Setup a source with many dependencies, because some compilers
4175 # like to wrap large dependency lists on column 80 (with \), and
4176 # we should not choose a depcomp mode which is confused by this.
4178 # We need to recreate these files for each test, as the compiler may
4179 # overwrite some of them when testing with obscure command lines.
4180 # This happens at least with the AIX C compiler.
4181 : > sub/conftest.c
4182 for i in 1 2 3 4 5 6; do
4183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4185 # Solaris 8's {/usr,}/bin/sh.
4186 touch sub/conftst$i.h
4187 done
4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191 # mode. It turns out that the SunPro C++ compiler does not properly
4192 # handle `-M -o', and we need to detect this. Also, some Intel
4193 # versions had trouble with output in subdirs
4194 am__obj=sub/conftest.${OBJEXT-o}
4195 am__minus_obj="-o $am__obj"
4196 case $depmode in
4197 gcc)
4198 # This depmode causes a compiler race in universal mode.
4199 test "$am__universal" = false || continue
4201 nosideeffect)
4202 # after this tag, mechanisms are not by side-effect, so they'll
4203 # only be used when explicitly requested
4204 if test "x$enable_dependency_tracking" = xyes; then
4205 continue
4206 else
4207 break
4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4211 # This compiler won't grok `-c -o', but also, the minuso test has
4212 # not run yet. These depmodes are late enough in the game, and
4213 # so weak that their functioning should not be impacted.
4214 am__obj=conftest.${OBJEXT-o}
4215 am__minus_obj=
4217 none) break ;;
4218 esac
4219 if depmode=$depmode \
4220 source=sub/conftest.c object=$am__obj \
4221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4223 >/dev/null 2>conftest.err &&
4224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4228 # icc doesn't choke on unknown options, it will just issue warnings
4229 # or remarks (even with -Werror). So we grep stderr for any message
4230 # that says an option was ignored or not supported.
4231 # When given -MP, icc 7.0 and 7.1 complain thusly:
4232 # icc: Command line warning: ignoring option '-M'; no argument required
4233 # The diagnosis changed in icc 8.0:
4234 # icc: Command line remark: option '-MP' not supported
4235 if (grep 'ignoring option' conftest.err ||
4236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4237 am_cv_CC_dependencies_compiler_type=$depmode
4238 break
4241 done
4243 cd ..
4244 rm -rf conftest.dir
4245 else
4246 am_cv_CC_dependencies_compiler_type=none
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4255 test "x$enable_dependency_tracking" != xno \
4256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4257 am__fastdepCC_TRUE=
4258 am__fastdepCC_FALSE='#'
4259 else
4260 am__fastdepCC_TRUE='#'
4261 am__fastdepCC_FALSE=
4265 ac_ext=cpp
4266 ac_cpp='$CXXCPP $CPPFLAGS'
4267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4270 if test -z "$CXX"; then
4271 if test -n "$CCC"; then
4272 CXX=$CCC
4273 else
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_CXX+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$CXX"; then
4285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4298 done
4299 done
4300 IFS=$as_save_IFS
4304 CXX=$ac_cv_prog_CXX
4305 if test -n "$CXX"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4307 $as_echo "$CXX" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CXX" && break
4315 done
4317 if test -z "$CXX"; then
4318 ac_ct_CXX=$CXX
4319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$ac_ct_CXX"; then
4329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_CXX="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4349 if test -n "$ac_ct_CXX"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4351 $as_echo "$ac_ct_CXX" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CXX" && break
4359 done
4361 if test "x$ac_ct_CXX" = x; then
4362 CXX="g++"
4363 else
4364 case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370 CXX=$ac_ct_CXX
4376 # Provide some information about the compiler.
4377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4378 set X $ac_compile
4379 ac_compiler=$2
4380 for ac_option in --version -v -V -qversion; do
4381 { { ac_try="$ac_compiler $ac_option >&5"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4389 ac_status=$?
4390 if test -s conftest.err; then
4391 sed '10a\
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err >conftest.er1
4394 cat conftest.er1 >&5
4395 rm -f conftest.er1 conftest.err
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4399 done
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4410 main ()
4412 #ifndef __GNUC__
4413 choke me
4414 #endif
4417 return 0;
4419 _ACEOF
4420 if ac_fn_cxx_try_compile "$LINENO"; then :
4421 ac_compiler_gnu=yes
4422 else
4423 ac_compiler_gnu=no
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4431 if test $ac_compiler_gnu = yes; then
4432 GXX=yes
4433 else
4434 GXX=
4436 ac_test_CXXFLAGS=${CXXFLAGS+set}
4437 ac_save_CXXFLAGS=$CXXFLAGS
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4444 ac_cxx_werror_flag=yes
4445 ac_cv_prog_cxx_g=no
4446 CXXFLAGS="-g"
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4451 main ()
4455 return 0;
4457 _ACEOF
4458 if ac_fn_cxx_try_compile "$LINENO"; then :
4459 ac_cv_prog_cxx_g=yes
4460 else
4461 CXXFLAGS=""
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4466 main ()
4470 return 0;
4472 _ACEOF
4473 if ac_fn_cxx_try_compile "$LINENO"; then :
4475 else
4476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4477 CXXFLAGS="-g"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4482 main ()
4486 return 0;
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4501 if test "$ac_test_CXXFLAGS" = set; then
4502 CXXFLAGS=$ac_save_CXXFLAGS
4503 elif test $ac_cv_prog_cxx_g = yes; then
4504 if test "$GXX" = yes; then
4505 CXXFLAGS="-g -O2"
4506 else
4507 CXXFLAGS="-g"
4509 else
4510 if test "$GXX" = yes; then
4511 CXXFLAGS="-O2"
4512 else
4513 CXXFLAGS=
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 depcc="$CXX" am_compiler_list=
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4525 $as_echo_n "checking dependency style of $depcc... " >&6; }
4526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4530 # We make a subdir and do the tests there. Otherwise we can end up
4531 # making bogus files that we don't know about and never remove. For
4532 # instance it was reported that on HP-UX the gcc test will end up
4533 # making a dummy file named `D' -- because `-MD' means `put the output
4534 # in D'.
4535 rm -rf conftest.dir
4536 mkdir conftest.dir
4537 # Copy depcomp to subdir because otherwise we won't find it if we're
4538 # using a relative directory.
4539 cp "$am_depcomp" conftest.dir
4540 cd conftest.dir
4541 # We will build objects and dependencies in a subdirectory because
4542 # it helps to detect inapplicable dependency modes. For instance
4543 # both Tru64's cc and ICC support -MD to output dependencies as a
4544 # side effect of compilation, but ICC will put the dependencies in
4545 # the current directory while Tru64 will put them in the object
4546 # directory.
4547 mkdir sub
4549 am_cv_CXX_dependencies_compiler_type=none
4550 if test "$am_compiler_list" = ""; then
4551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 am__universal=false
4554 case " $depcc " in #(
4555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4556 esac
4558 for depmode in $am_compiler_list; do
4559 # Setup a source with many dependencies, because some compilers
4560 # like to wrap large dependency lists on column 80 (with \), and
4561 # we should not choose a depcomp mode which is confused by this.
4563 # We need to recreate these files for each test, as the compiler may
4564 # overwrite some of them when testing with obscure command lines.
4565 # This happens at least with the AIX C compiler.
4566 : > sub/conftest.c
4567 for i in 1 2 3 4 5 6; do
4568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4570 # Solaris 8's {/usr,}/bin/sh.
4571 touch sub/conftst$i.h
4572 done
4573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4576 # mode. It turns out that the SunPro C++ compiler does not properly
4577 # handle `-M -o', and we need to detect this. Also, some Intel
4578 # versions had trouble with output in subdirs
4579 am__obj=sub/conftest.${OBJEXT-o}
4580 am__minus_obj="-o $am__obj"
4581 case $depmode in
4582 gcc)
4583 # This depmode causes a compiler race in universal mode.
4584 test "$am__universal" = false || continue
4586 nosideeffect)
4587 # after this tag, mechanisms are not by side-effect, so they'll
4588 # only be used when explicitly requested
4589 if test "x$enable_dependency_tracking" = xyes; then
4590 continue
4591 else
4592 break
4595 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4596 # This compiler won't grok `-c -o', but also, the minuso test has
4597 # not run yet. These depmodes are late enough in the game, and
4598 # so weak that their functioning should not be impacted.
4599 am__obj=conftest.${OBJEXT-o}
4600 am__minus_obj=
4602 none) break ;;
4603 esac
4604 if depmode=$depmode \
4605 source=sub/conftest.c object=$am__obj \
4606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4608 >/dev/null 2>conftest.err &&
4609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4613 # icc doesn't choke on unknown options, it will just issue warnings
4614 # or remarks (even with -Werror). So we grep stderr for any message
4615 # that says an option was ignored or not supported.
4616 # When given -MP, icc 7.0 and 7.1 complain thusly:
4617 # icc: Command line warning: ignoring option '-M'; no argument required
4618 # The diagnosis changed in icc 8.0:
4619 # icc: Command line remark: option '-MP' not supported
4620 if (grep 'ignoring option' conftest.err ||
4621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4622 am_cv_CXX_dependencies_compiler_type=$depmode
4623 break
4626 done
4628 cd ..
4629 rm -rf conftest.dir
4630 else
4631 am_cv_CXX_dependencies_compiler_type=none
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4636 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4637 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4640 test "x$enable_dependency_tracking" != xno \
4641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4642 am__fastdepCXX_TRUE=
4643 am__fastdepCXX_FALSE='#'
4644 else
4645 am__fastdepCXX_TRUE='#'
4646 am__fastdepCXX_FALSE=
4650 CFLAGS=$save_CFLAGS
4656 # By default we simply use the C compiler to build assembly code.
4658 test "${CCAS+set}" = set || CCAS=$CC
4659 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4663 depcc="$CCAS" am_compiler_list=
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4666 $as_echo_n "checking dependency style of $depcc... " >&6; }
4667 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4671 # We make a subdir and do the tests there. Otherwise we can end up
4672 # making bogus files that we don't know about and never remove. For
4673 # instance it was reported that on HP-UX the gcc test will end up
4674 # making a dummy file named `D' -- because `-MD' means `put the output
4675 # in D'.
4676 rm -rf conftest.dir
4677 mkdir conftest.dir
4678 # Copy depcomp to subdir because otherwise we won't find it if we're
4679 # using a relative directory.
4680 cp "$am_depcomp" conftest.dir
4681 cd conftest.dir
4682 # We will build objects and dependencies in a subdirectory because
4683 # it helps to detect inapplicable dependency modes. For instance
4684 # both Tru64's cc and ICC support -MD to output dependencies as a
4685 # side effect of compilation, but ICC will put the dependencies in
4686 # the current directory while Tru64 will put them in the object
4687 # directory.
4688 mkdir sub
4690 am_cv_CCAS_dependencies_compiler_type=none
4691 if test "$am_compiler_list" = ""; then
4692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4694 am__universal=false
4697 for depmode in $am_compiler_list; do
4698 # Setup a source with many dependencies, because some compilers
4699 # like to wrap large dependency lists on column 80 (with \), and
4700 # we should not choose a depcomp mode which is confused by this.
4702 # We need to recreate these files for each test, as the compiler may
4703 # overwrite some of them when testing with obscure command lines.
4704 # This happens at least with the AIX C compiler.
4705 : > sub/conftest.c
4706 for i in 1 2 3 4 5 6; do
4707 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4708 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4709 # Solaris 8's {/usr,}/bin/sh.
4710 touch sub/conftst$i.h
4711 done
4712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4715 # mode. It turns out that the SunPro C++ compiler does not properly
4716 # handle `-M -o', and we need to detect this. Also, some Intel
4717 # versions had trouble with output in subdirs
4718 am__obj=sub/conftest.${OBJEXT-o}
4719 am__minus_obj="-o $am__obj"
4720 case $depmode in
4721 gcc)
4722 # This depmode causes a compiler race in universal mode.
4723 test "$am__universal" = false || continue
4725 nosideeffect)
4726 # after this tag, mechanisms are not by side-effect, so they'll
4727 # only be used when explicitly requested
4728 if test "x$enable_dependency_tracking" = xyes; then
4729 continue
4730 else
4731 break
4734 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4735 # This compiler won't grok `-c -o', but also, the minuso test has
4736 # not run yet. These depmodes are late enough in the game, and
4737 # so weak that their functioning should not be impacted.
4738 am__obj=conftest.${OBJEXT-o}
4739 am__minus_obj=
4741 none) break ;;
4742 esac
4743 if depmode=$depmode \
4744 source=sub/conftest.c object=$am__obj \
4745 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4746 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4747 >/dev/null 2>conftest.err &&
4748 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4749 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4750 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4751 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4752 # icc doesn't choke on unknown options, it will just issue warnings
4753 # or remarks (even with -Werror). So we grep stderr for any message
4754 # that says an option was ignored or not supported.
4755 # When given -MP, icc 7.0 and 7.1 complain thusly:
4756 # icc: Command line warning: ignoring option '-M'; no argument required
4757 # The diagnosis changed in icc 8.0:
4758 # icc: Command line remark: option '-MP' not supported
4759 if (grep 'ignoring option' conftest.err ||
4760 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4761 am_cv_CCAS_dependencies_compiler_type=$depmode
4762 break
4765 done
4767 cd ..
4768 rm -rf conftest.dir
4769 else
4770 am_cv_CCAS_dependencies_compiler_type=none
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4775 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4776 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4779 test "x$enable_dependency_tracking" != xno \
4780 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4781 am__fastdepCCAS_TRUE=
4782 am__fastdepCCAS_FALSE='#'
4783 else
4784 am__fastdepCCAS_TRUE='#'
4785 am__fastdepCCAS_FALSE=
4789 if test "x$CC" != xcc; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4791 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4794 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4796 set dummy $CC; ac_cc=`$as_echo "$2" |
4797 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4798 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4809 return 0;
4811 _ACEOF
4812 # Make sure it works both with $CC and with simple cc.
4813 # We do the test twice because some compilers refuse to overwrite an
4814 # existing .o file with -o, though they will create one.
4815 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4816 rm -f conftest2.*
4817 if { { case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4822 $as_echo "$ac_try_echo"; } >&5
4823 (eval "$ac_try") 2>&5
4824 ac_status=$?
4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4826 test $ac_status = 0; } &&
4827 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832 $as_echo "$ac_try_echo"; } >&5
4833 (eval "$ac_try") 2>&5
4834 ac_status=$?
4835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836 test $ac_status = 0; };
4837 then
4838 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4839 if test "x$CC" != xcc; then
4840 # Test first that cc exists at all.
4841 if { ac_try='cc -c conftest.$ac_ext >&5'
4842 { { case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_try") 2>&5
4849 ac_status=$?
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; }; then
4852 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4853 rm -f conftest2.*
4854 if { { case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4859 $as_echo "$ac_try_echo"; } >&5
4860 (eval "$ac_try") 2>&5
4861 ac_status=$?
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; } &&
4864 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_try") 2>&5
4871 ac_status=$?
4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873 test $ac_status = 0; };
4874 then
4875 # cc works too.
4877 else
4878 # cc exists but doesn't like -o.
4879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4883 else
4884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4886 rm -f core conftest*
4889 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4896 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4900 # FIXME: we rely on the cache variable name because
4901 # there is no other way.
4902 set dummy $CC
4903 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4904 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4905 if test "$am_t" != yes; then
4906 # Losing compiler, so override with the script.
4907 # FIXME: It is wrong to rewrite CC.
4908 # But if we don't then we get into trouble of one sort or another.
4909 # A longer-term fix would be to have automake use am__CC in this case,
4910 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4911 CC="$am_aux_dir/compile $CC"
4915 case `pwd` in
4916 *\ * | *\ *)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4918 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4919 esac
4923 macro_version='2.2.7a'
4924 macro_revision='1.3134'
4938 ltmain="$ac_aux_dir/ltmain.sh"
4940 # Backslashify metacharacters that are still active within
4941 # double-quoted strings.
4942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4944 # Same as above, but do not quote variable references.
4945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4947 # Sed substitution to delay expansion of an escaped shell variable in a
4948 # double_quote_subst'ed string.
4949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4951 # Sed substitution to delay expansion of an escaped single quote.
4952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4954 # Sed substitution to avoid accidental globbing in evaled expressions
4955 no_glob_subst='s/\*/\\\*/g'
4957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4962 $as_echo_n "checking how to print strings... " >&6; }
4963 # Test print first, because it will be a builtin if present.
4964 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4965 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4966 ECHO='print -r --'
4967 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4968 ECHO='printf %s\n'
4969 else
4970 # Use this function as a fallback that always works.
4971 func_fallback_echo ()
4973 eval 'cat <<_LTECHO_EOF
4975 _LTECHO_EOF'
4977 ECHO='func_fallback_echo'
4980 # func_echo_all arg...
4981 # Invoke $ECHO with all args, space-separated.
4982 func_echo_all ()
4984 $ECHO ""
4987 case "$ECHO" in
4988 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4989 $as_echo "printf" >&6; } ;;
4990 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4991 $as_echo "print -r" >&6; } ;;
4992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4993 $as_echo "cat" >&6; } ;;
4994 esac
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5010 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5011 if test "${ac_cv_path_SED+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5015 for ac_i in 1 2 3 4 5 6 7; do
5016 ac_script="$ac_script$as_nl$ac_script"
5017 done
5018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5019 { ac_script=; unset ac_script;}
5020 if test -z "$SED"; then
5021 ac_path_SED_found=false
5022 # Loop through the user's path and test for each of PROGNAME-LIST
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_prog in sed gsed; do
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5032 # Check for GNU ac_path_SED and select it if it is found.
5033 # Check for GNU $ac_path_SED
5034 case `"$ac_path_SED" --version 2>&1` in
5035 *GNU*)
5036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5038 ac_count=0
5039 $as_echo_n 0123456789 >"conftest.in"
5040 while :
5042 cat "conftest.in" "conftest.in" >"conftest.tmp"
5043 mv "conftest.tmp" "conftest.in"
5044 cp "conftest.in" "conftest.nl"
5045 $as_echo '' >> "conftest.nl"
5046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5048 as_fn_arith $ac_count + 1 && ac_count=$as_val
5049 if test $ac_count -gt ${ac_path_SED_max-0}; then
5050 # Best one so far, save it but keep looking for a better one
5051 ac_cv_path_SED="$ac_path_SED"
5052 ac_path_SED_max=$ac_count
5054 # 10*(2^10) chars as input seems more than enough
5055 test $ac_count -gt 10 && break
5056 done
5057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5058 esac
5060 $ac_path_SED_found && break 3
5061 done
5062 done
5063 done
5064 IFS=$as_save_IFS
5065 if test -z "$ac_cv_path_SED"; then
5066 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5068 else
5069 ac_cv_path_SED=$SED
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5074 $as_echo "$ac_cv_path_SED" >&6; }
5075 SED="$ac_cv_path_SED"
5076 rm -f conftest.sed
5078 test -z "$SED" && SED=sed
5079 Xsed="$SED -e 1s/^X//"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5093 if test "${ac_cv_path_GREP+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -z "$GREP"; then
5097 ac_path_GREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in grep ggrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5108 # Check for GNU ac_path_GREP and select it if it is found.
5109 # Check for GNU $ac_path_GREP
5110 case `"$ac_path_GREP" --version 2>&1` in
5111 *GNU*)
5112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 ac_count=0
5115 $as_echo_n 0123456789 >"conftest.in"
5116 while :
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 $as_echo 'GREP' >> "conftest.nl"
5122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 as_fn_arith $ac_count + 1 && ac_count=$as_val
5125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_GREP="$ac_path_GREP"
5128 ac_path_GREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5132 done
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134 esac
5136 $ac_path_GREP_found && break 3
5137 done
5138 done
5139 done
5140 IFS=$as_save_IFS
5141 if test -z "$ac_cv_path_GREP"; then
5142 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5144 else
5145 ac_cv_path_GREP=$GREP
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5150 $as_echo "$ac_cv_path_GREP" >&6; }
5151 GREP="$ac_cv_path_GREP"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5155 $as_echo_n "checking for egrep... " >&6; }
5156 if test "${ac_cv_path_EGREP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5160 then ac_cv_path_EGREP="$GREP -E"
5161 else
5162 if test -z "$EGREP"; then
5163 ac_path_EGREP_found=false
5164 # Loop through the user's path and test for each of PROGNAME-LIST
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_prog in egrep; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5174 # Check for GNU ac_path_EGREP and select it if it is found.
5175 # Check for GNU $ac_path_EGREP
5176 case `"$ac_path_EGREP" --version 2>&1` in
5177 *GNU*)
5178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5180 ac_count=0
5181 $as_echo_n 0123456789 >"conftest.in"
5182 while :
5184 cat "conftest.in" "conftest.in" >"conftest.tmp"
5185 mv "conftest.tmp" "conftest.in"
5186 cp "conftest.in" "conftest.nl"
5187 $as_echo 'EGREP' >> "conftest.nl"
5188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5190 as_fn_arith $ac_count + 1 && ac_count=$as_val
5191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5192 # Best one so far, save it but keep looking for a better one
5193 ac_cv_path_EGREP="$ac_path_EGREP"
5194 ac_path_EGREP_max=$ac_count
5196 # 10*(2^10) chars as input seems more than enough
5197 test $ac_count -gt 10 && break
5198 done
5199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200 esac
5202 $ac_path_EGREP_found && break 3
5203 done
5204 done
5205 done
5206 IFS=$as_save_IFS
5207 if test -z "$ac_cv_path_EGREP"; then
5208 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210 else
5211 ac_cv_path_EGREP=$EGREP
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5217 $as_echo "$ac_cv_path_EGREP" >&6; }
5218 EGREP="$ac_cv_path_EGREP"
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5222 $as_echo_n "checking for fgrep... " >&6; }
5223 if test "${ac_cv_path_FGREP+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5227 then ac_cv_path_FGREP="$GREP -F"
5228 else
5229 if test -z "$FGREP"; then
5230 ac_path_FGREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in fgrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5241 # Check for GNU ac_path_FGREP and select it if it is found.
5242 # Check for GNU $ac_path_FGREP
5243 case `"$ac_path_FGREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'FGREP' >> "conftest.nl"
5255 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_FGREP="$ac_path_FGREP"
5261 ac_path_FGREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5269 $ac_path_FGREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_FGREP"; then
5275 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277 else
5278 ac_cv_path_FGREP=$FGREP
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5284 $as_echo "$ac_cv_path_FGREP" >&6; }
5285 FGREP="$ac_cv_path_FGREP"
5288 test -z "$GREP" && GREP=grep
5308 # Check whether --with-gnu-ld was given.
5309 if test "${with_gnu_ld+set}" = set; then :
5310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5311 else
5312 with_gnu_ld=no
5315 ac_prog=ld
5316 if test "$GCC" = yes; then
5317 # Check if gcc -print-prog-name=ld gives a path.
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5319 $as_echo_n "checking for ld used by $CC... " >&6; }
5320 case $host in
5321 *-*-mingw*)
5322 # gcc leaves a trailing carriage return which upsets mingw
5323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5326 esac
5327 case $ac_prog in
5328 # Accept absolute paths.
5329 [\\/]* | ?:[\\/]*)
5330 re_direlt='/[^/][^/]*/\.\./'
5331 # Canonicalize the pathname of ld
5332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5335 done
5336 test -z "$LD" && LD="$ac_prog"
5339 # If it fails, then pretend we aren't using GCC.
5340 ac_prog=ld
5343 # If it is relative, then search for the first ld in PATH.
5344 with_gnu_ld=unknown
5346 esac
5347 elif test "$with_gnu_ld" = yes; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5349 $as_echo_n "checking for GNU ld... " >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5352 $as_echo_n "checking for non-GNU ld... " >&6; }
5354 if test "${lt_cv_path_LD+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -z "$LD"; then
5358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359 for ac_dir in $PATH; do
5360 IFS="$lt_save_ifs"
5361 test -z "$ac_dir" && ac_dir=.
5362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363 lt_cv_path_LD="$ac_dir/$ac_prog"
5364 # Check to see if the program is GNU ld. I'd rather use --version,
5365 # but apparently some variants of GNU ld only accept -v.
5366 # Break only if it was the GNU/non-GNU ld that we prefer.
5367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368 *GNU* | *'with BFD'*)
5369 test "$with_gnu_ld" != no && break
5372 test "$with_gnu_ld" != yes && break
5374 esac
5376 done
5377 IFS="$lt_save_ifs"
5378 else
5379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5383 LD="$lt_cv_path_LD"
5384 if test -n "$LD"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5386 $as_echo "$LD" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5391 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5398 case `$LD -v 2>&1 </dev/null` in
5399 *GNU* | *'with BFD'*)
5400 lt_cv_prog_gnu_ld=yes
5403 lt_cv_prog_gnu_ld=no
5405 esac
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5409 with_gnu_ld=$lt_cv_prog_gnu_ld
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5420 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5421 if test "${lt_cv_path_NM+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$NM"; then
5425 # Let the user override the test.
5426 lt_cv_path_NM="$NM"
5427 else
5428 lt_nm_to_check="${ac_tool_prefix}nm"
5429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5430 lt_nm_to_check="$lt_nm_to_check nm"
5432 for lt_tmp_nm in $lt_nm_to_check; do
5433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5435 IFS="$lt_save_ifs"
5436 test -z "$ac_dir" && ac_dir=.
5437 tmp_nm="$ac_dir/$lt_tmp_nm"
5438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5439 # Check to see if the nm accepts a BSD-compat flag.
5440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5441 # nm: unknown option "B" ignored
5442 # Tru64's nm complains that /dev/null is an invalid object file
5443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5444 */dev/null* | *'Invalid file or object type'*)
5445 lt_cv_path_NM="$tmp_nm -B"
5446 break
5449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5450 */dev/null*)
5451 lt_cv_path_NM="$tmp_nm -p"
5452 break
5455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5456 continue # so that we can try to find one that supports BSD flags
5458 esac
5460 esac
5462 done
5463 IFS="$lt_save_ifs"
5464 done
5465 : ${lt_cv_path_NM=no}
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5469 $as_echo "$lt_cv_path_NM" >&6; }
5470 if test "$lt_cv_path_NM" != "no"; then
5471 NM="$lt_cv_path_NM"
5472 else
5473 # Didn't find any BSD compatible name lister, look for dumpbin.
5474 if test -n "$DUMPBIN"; then :
5475 # Let the user override the test.
5476 else
5477 if test -n "$ac_tool_prefix"; then
5478 for ac_prog in dumpbin "link -dump"
5480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$DUMPBIN"; then
5488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5501 done
5502 done
5503 IFS=$as_save_IFS
5507 DUMPBIN=$ac_cv_prog_DUMPBIN
5508 if test -n "$DUMPBIN"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5510 $as_echo "$DUMPBIN" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5517 test -n "$DUMPBIN" && break
5518 done
5520 if test -z "$DUMPBIN"; then
5521 ac_ct_DUMPBIN=$DUMPBIN
5522 for ac_prog in dumpbin "link -dump"
5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$ac_ct_DUMPBIN"; then
5532 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5551 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5552 if test -n "$ac_ct_DUMPBIN"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5554 $as_echo "$ac_ct_DUMPBIN" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 test -n "$ac_ct_DUMPBIN" && break
5562 done
5564 if test "x$ac_ct_DUMPBIN" = x; then
5565 DUMPBIN=":"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568 yes:)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571 ac_tool_warned=yes ;;
5572 esac
5573 DUMPBIN=$ac_ct_DUMPBIN
5577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5578 *COFF*)
5579 DUMPBIN="$DUMPBIN -symbols"
5582 DUMPBIN=:
5584 esac
5587 if test "$DUMPBIN" != ":"; then
5588 NM="$DUMPBIN"
5591 test -z "$NM" && NM=nm
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5599 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5600 if test "${lt_cv_nm_interface+set}" = set; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 lt_cv_nm_interface="BSD nm"
5604 echo "int some_variable = 0;" > conftest.$ac_ext
5605 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5606 (eval "$ac_compile" 2>conftest.err)
5607 cat conftest.err >&5
5608 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5609 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5610 cat conftest.err >&5
5611 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5612 cat conftest.out >&5
5613 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5614 lt_cv_nm_interface="MS dumpbin"
5616 rm -f conftest*
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5619 $as_echo "$lt_cv_nm_interface" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5622 $as_echo_n "checking whether ln -s works... " >&6; }
5623 LN_S=$as_ln_s
5624 if test "$LN_S" = "ln -s"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5626 $as_echo "yes" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5629 $as_echo "no, using $LN_S" >&6; }
5632 # find the maximum length of command line arguments
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5634 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5635 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5639 teststring="ABCD"
5641 case $build_os in
5642 msdosdjgpp*)
5643 # On DJGPP, this test can blow up pretty badly due to problems in libc
5644 # (any single argument exceeding 2000 bytes causes a buffer overrun
5645 # during glob expansion). Even if it were fixed, the result of this
5646 # check would be larger than it should be.
5647 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5650 gnu*)
5651 # Under GNU Hurd, this test is not required because there is
5652 # no limit to the length of command line arguments.
5653 # Libtool will interpret -1 as no limit whatsoever
5654 lt_cv_sys_max_cmd_len=-1;
5657 cygwin* | mingw* | cegcc*)
5658 # On Win9x/ME, this test blows up -- it succeeds, but takes
5659 # about 5 minutes as the teststring grows exponentially.
5660 # Worse, since 9x/ME are not pre-emptively multitasking,
5661 # you end up with a "frozen" computer, even though with patience
5662 # the test eventually succeeds (with a max line length of 256k).
5663 # Instead, let's just punt: use the minimum linelength reported by
5664 # all of the supported platforms: 8192 (on NT/2K/XP).
5665 lt_cv_sys_max_cmd_len=8192;
5668 mint*)
5669 # On MiNT this can take a long time and run out of memory.
5670 lt_cv_sys_max_cmd_len=8192;
5673 amigaos*)
5674 # On AmigaOS with pdksh, this test takes hours, literally.
5675 # So we just punt and use a minimum line length of 8192.
5676 lt_cv_sys_max_cmd_len=8192;
5679 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5680 # This has been around since 386BSD, at least. Likely further.
5681 if test -x /sbin/sysctl; then
5682 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5683 elif test -x /usr/sbin/sysctl; then
5684 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5685 else
5686 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5688 # And add a safety zone
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5693 interix*)
5694 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5695 lt_cv_sys_max_cmd_len=196608
5698 osf*)
5699 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5700 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5701 # nice to cause kernel panics so lets avoid the loop below.
5702 # First set a reasonable default.
5703 lt_cv_sys_max_cmd_len=16384
5705 if test -x /sbin/sysconfig; then
5706 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5707 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5708 esac
5711 sco3.2v5*)
5712 lt_cv_sys_max_cmd_len=102400
5714 sysv5* | sco5v6* | sysv4.2uw2*)
5715 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5716 if test -n "$kargmax"; then
5717 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5718 else
5719 lt_cv_sys_max_cmd_len=32768
5723 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5724 if test -n "$lt_cv_sys_max_cmd_len"; then
5725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5727 else
5728 # Make teststring a little bigger before we do anything with it.
5729 # a 1K string should be a reasonable start.
5730 for i in 1 2 3 4 5 6 7 8 ; do
5731 teststring=$teststring$teststring
5732 done
5733 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5734 # If test is not a shell built-in, we'll probably end up computing a
5735 # maximum length that is only half of the actual maximum length, but
5736 # we can't tell.
5737 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5738 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5739 test $i != 17 # 1/2 MB should be enough
5741 i=`expr $i + 1`
5742 teststring=$teststring$teststring
5743 done
5744 # Only check the string length outside the loop.
5745 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5746 teststring=
5747 # Add a significant safety factor because C++ compilers can tack on
5748 # massive amounts of additional arguments before passing them to the
5749 # linker. It appears as though 1/2 is a usable value.
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5753 esac
5757 if test -n $lt_cv_sys_max_cmd_len ; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5762 $as_echo "none" >&6; }
5764 max_cmd_len=$lt_cv_sys_max_cmd_len
5771 : ${CP="cp -f"}
5772 : ${MV="mv -f"}
5773 : ${RM="rm -f"}
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5776 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5777 # Try some XSI features
5778 xsi_shell=no
5779 ( _lt_dummy="a/b/c"
5780 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5781 = c,a/b,, \
5782 && eval 'test $(( 1 + 1 )) -eq 2 \
5783 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5784 && xsi_shell=yes
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5786 $as_echo "$xsi_shell" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5790 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5791 lt_shell_append=no
5792 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5793 >/dev/null 2>&1 \
5794 && lt_shell_append=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5796 $as_echo "$lt_shell_append" >&6; }
5799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5800 lt_unset=unset
5801 else
5802 lt_unset=false
5809 # test EBCDIC or ASCII
5810 case `echo X|tr X '\101'` in
5811 A) # ASCII based system
5812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5813 lt_SP2NL='tr \040 \012'
5814 lt_NL2SP='tr \015\012 \040\040'
5816 *) # EBCDIC based system
5817 lt_SP2NL='tr \100 \n'
5818 lt_NL2SP='tr \r\n \100\100'
5820 esac
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5831 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5832 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 lt_cv_ld_reload_flag='-r'
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5838 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5839 reload_flag=$lt_cv_ld_reload_flag
5840 case $reload_flag in
5841 "" | " "*) ;;
5842 *) reload_flag=" $reload_flag" ;;
5843 esac
5844 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5845 case $host_os in
5846 darwin*)
5847 if test "$GCC" = yes; then
5848 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5849 else
5850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5853 esac
5863 if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -n "$OBJDUMP"; then
5872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5885 done
5886 done
5887 IFS=$as_save_IFS
5891 OBJDUMP=$ac_cv_prog_OBJDUMP
5892 if test -n "$OBJDUMP"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5894 $as_echo "$OBJDUMP" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5902 if test -z "$ac_cv_prog_OBJDUMP"; then
5903 ac_ct_OBJDUMP=$OBJDUMP
5904 # Extract the first word of "objdump", so it can be a program name with args.
5905 set dummy objdump; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$ac_ct_OBJDUMP"; then
5912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5927 IFS=$as_save_IFS
5931 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5932 if test -n "$ac_ct_OBJDUMP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5934 $as_echo "$ac_ct_OBJDUMP" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5940 if test "x$ac_ct_OBJDUMP" = x; then
5941 OBJDUMP="false"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944 yes:)
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned=yes ;;
5948 esac
5949 OBJDUMP=$ac_ct_OBJDUMP
5951 else
5952 OBJDUMP="$ac_cv_prog_OBJDUMP"
5955 test -z "$OBJDUMP" && OBJDUMP=objdump
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5966 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 lt_cv_file_magic_cmd='$MAGIC_CMD'
5971 lt_cv_file_magic_test_file=
5972 lt_cv_deplibs_check_method='unknown'
5973 # Need to set the preceding variable on all platforms that support
5974 # interlibrary dependencies.
5975 # 'none' -- dependencies not supported.
5976 # `unknown' -- same as none, but documents that we really don't know.
5977 # 'pass_all' -- all dependencies passed with no checks.
5978 # 'test_compile' -- check by making test program.
5979 # 'file_magic [[regex]]' -- check by looking for files in library path
5980 # which responds to the $file_magic_cmd with a given extended regex.
5981 # If you have `file' or equivalent on your system and you're not sure
5982 # whether `pass_all' will *always* work, you probably want this one.
5984 case $host_os in
5985 aix[4-9]*)
5986 lt_cv_deplibs_check_method=pass_all
5989 beos*)
5990 lt_cv_deplibs_check_method=pass_all
5993 bsdi[45]*)
5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5995 lt_cv_file_magic_cmd='/usr/bin/file -L'
5996 lt_cv_file_magic_test_file=/shlib/libc.so
5999 cygwin*)
6000 # func_win32_libid is a shell function defined in ltmain.sh
6001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6002 lt_cv_file_magic_cmd='func_win32_libid'
6005 mingw* | pw32*)
6006 # Base MSYS/MinGW do not provide the 'file' command needed by
6007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6008 # unless we find 'file', for example because we are cross-compiling.
6009 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6010 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6012 lt_cv_file_magic_cmd='func_win32_libid'
6013 else
6014 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6019 cegcc*)
6020 # use the weaker test based on 'objdump'. See mingw*.
6021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6022 lt_cv_file_magic_cmd='$OBJDUMP -f'
6025 darwin* | rhapsody*)
6026 lt_cv_deplibs_check_method=pass_all
6029 freebsd* | dragonfly*)
6030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6031 case $host_cpu in
6032 i*86 )
6033 # Not sure whether the presence of OpenBSD here was a mistake.
6034 # Let's accept both of them until this is cleared up.
6035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6036 lt_cv_file_magic_cmd=/usr/bin/file
6037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6039 esac
6040 else
6041 lt_cv_deplibs_check_method=pass_all
6045 gnu*)
6046 lt_cv_deplibs_check_method=pass_all
6049 haiku*)
6050 lt_cv_deplibs_check_method=pass_all
6053 hpux10.20* | hpux11*)
6054 lt_cv_file_magic_cmd=/usr/bin/file
6055 case $host_cpu in
6056 ia64*)
6057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6060 hppa*64*)
6061 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]'
6062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6068 esac
6071 interix[3-9]*)
6072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6076 irix5* | irix6* | nonstopux*)
6077 case $LD in
6078 *-32|*"-32 ") libmagic=32-bit;;
6079 *-n32|*"-n32 ") libmagic=N32;;
6080 *-64|*"-64 ") libmagic=64-bit;;
6081 *) libmagic=never-match;;
6082 esac
6083 lt_cv_deplibs_check_method=pass_all
6086 # This must be Linux ELF.
6087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6088 lt_cv_deplibs_check_method=pass_all
6091 netbsd*)
6092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6094 else
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6099 newos6*)
6100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6101 lt_cv_file_magic_cmd=/usr/bin/file
6102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6105 *nto* | *qnx*)
6106 lt_cv_deplibs_check_method=pass_all
6109 openbsd*)
6110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6112 else
6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6117 osf3* | osf4* | osf5*)
6118 lt_cv_deplibs_check_method=pass_all
6121 rdos*)
6122 lt_cv_deplibs_check_method=pass_all
6125 solaris*)
6126 lt_cv_deplibs_check_method=pass_all
6129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6130 lt_cv_deplibs_check_method=pass_all
6133 sysv4 | sysv4.3*)
6134 case $host_vendor in
6135 motorola)
6136 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]'
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6139 ncr)
6140 lt_cv_deplibs_check_method=pass_all
6142 sequent)
6143 lt_cv_file_magic_cmd='/bin/file'
6144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6146 sni)
6147 lt_cv_file_magic_cmd='/bin/file'
6148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6149 lt_cv_file_magic_test_file=/lib/libc.so
6151 siemens)
6152 lt_cv_deplibs_check_method=pass_all
6155 lt_cv_deplibs_check_method=pass_all
6157 esac
6160 tpf*)
6161 lt_cv_deplibs_check_method=pass_all
6163 esac
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6168 file_magic_cmd=$lt_cv_file_magic_cmd
6169 deplibs_check_method=$lt_cv_deplibs_check_method
6170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}ar; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_AR+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 if test -n "$AR"; then
6192 ac_cv_prog_AR="$AR" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_AR="${ac_tool_prefix}ar"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6205 done
6206 done
6207 IFS=$as_save_IFS
6211 AR=$ac_cv_prog_AR
6212 if test -n "$AR"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6214 $as_echo "$AR" >&6; }
6215 else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test -z "$ac_cv_prog_AR"; then
6223 ac_ct_AR=$AR
6224 # Extract the first word of "ar", so it can be a program name with args.
6225 set dummy ar; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 if test -n "$ac_ct_AR"; then
6232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_AR="ar"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6245 done
6246 done
6247 IFS=$as_save_IFS
6251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6252 if test -n "$ac_ct_AR"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6254 $as_echo "$ac_ct_AR" >&6; }
6255 else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6260 if test "x$ac_ct_AR" = x; then
6261 AR="false"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269 AR=$ac_ct_AR
6271 else
6272 AR="$ac_cv_prog_AR"
6275 test -z "$AR" && AR=ar
6276 test -z "$AR_FLAGS" && AR_FLAGS=cru
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}strip; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if test "${ac_cv_prog_STRIP+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$STRIP"; then
6297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6310 done
6311 done
6312 IFS=$as_save_IFS
6316 STRIP=$ac_cv_prog_STRIP
6317 if test -n "$STRIP"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6319 $as_echo "$STRIP" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_prog_STRIP"; then
6328 ac_ct_STRIP=$STRIP
6329 # Extract the first word of "strip", so it can be a program name with args.
6330 set dummy strip; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$ac_ct_STRIP"; then
6337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_ac_ct_STRIP="strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6357 if test -n "$ac_ct_STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6359 $as_echo "$ac_ct_STRIP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 if test "x$ac_ct_STRIP" = x; then
6366 STRIP=":"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374 STRIP=$ac_ct_STRIP
6376 else
6377 STRIP="$ac_cv_prog_STRIP"
6380 test -z "$STRIP" && STRIP=:
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$RANLIB"; then
6396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6411 IFS=$as_save_IFS
6415 RANLIB=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427 ac_ct_RANLIB=$RANLIB
6428 # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_RANLIB"; then
6436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_ac_ct_RANLIB="ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_RANLIB" = x; then
6465 RANLIB=":"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 RANLIB=$ac_ct_RANLIB
6475 else
6476 RANLIB="$ac_cv_prog_RANLIB"
6479 test -z "$RANLIB" && RANLIB=:
6486 # Determine commands to create old-style static archives.
6487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6488 old_postinstall_cmds='chmod 644 $oldlib'
6489 old_postuninstall_cmds=
6491 if test -n "$RANLIB"; then
6492 case $host_os in
6493 openbsd*)
6494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6499 esac
6500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6503 case $host_os in
6504 darwin*)
6505 lock_old_archive_extraction=yes ;;
6507 lock_old_archive_extraction=no ;;
6508 esac
6548 # If no C compiler was specified, use CC.
6549 LTCC=${LTCC-"$CC"}
6551 # If no C compiler flags were specified, use CFLAGS.
6552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6554 # Allow CC to be a program name with arguments.
6555 compiler=$CC
6558 # Check for command to grab the raw symbol name followed by C symbol from nm.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6565 # These are sane defaults that work on at least a few old systems.
6566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6568 # Character class describing NM global symbol codes.
6569 symcode='[BCDEGRST]'
6571 # Regexp to match symbols that can be accessed directly from C.
6572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6574 # Define system-specific variables.
6575 case $host_os in
6576 aix*)
6577 symcode='[BCDT]'
6579 cygwin* | mingw* | pw32* | cegcc*)
6580 symcode='[ABCDGISTW]'
6582 hpux*)
6583 if test "$host_cpu" = ia64; then
6584 symcode='[ABCDEGRST]'
6587 irix* | nonstopux*)
6588 symcode='[BCDEGRST]'
6590 osf*)
6591 symcode='[BCDEGQRST]'
6593 solaris*)
6594 symcode='[BDRT]'
6596 sco3.2v5*)
6597 symcode='[DT]'
6599 sysv4.2uw2*)
6600 symcode='[DT]'
6602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6603 symcode='[ABDT]'
6605 sysv4)
6606 symcode='[DFNSTU]'
6608 esac
6610 # If we're using GNU nm, then use its standard symbol codes.
6611 case `$NM -V 2>&1` in
6612 *GNU* | *'with BFD'*)
6613 symcode='[ABCDGIRSTW]' ;;
6614 esac
6616 # Transform an extracted symbol line into a proper C declaration.
6617 # Some systems (esp. on ia64) link data and code symbols differently,
6618 # so use this general approach.
6619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6621 # Transform an extracted symbol line into symbol name and symbol address
6622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6623 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'"
6625 # Handle CRLF in mingw tool chain
6626 opt_cr=
6627 case $build_os in
6628 mingw*)
6629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6631 esac
6633 # Try without a prefix underscore, then with it.
6634 for ac_symprfx in "" "_"; do
6636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6637 symxfrm="\\1 $ac_symprfx\\2 \\2"
6639 # Write the raw and C identifiers.
6640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6641 # Fake it for dumpbin and say T for any non-static function
6642 # and D for any global variable.
6643 # Also find C++ and __fastcall symbols from MSVC++,
6644 # which start with @ or ?.
6645 lt_cv_sys_global_symbol_pipe="$AWK '"\
6646 " {last_section=section; section=\$ 3};"\
6647 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6648 " \$ 0!~/External *\|/{next};"\
6649 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6650 " {if(hide[section]) next};"\
6651 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6652 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6653 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6654 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6655 " ' prfx=^$ac_symprfx"
6656 else
6657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6660 # Check to see that the pipe works correctly.
6661 pipe_works=no
6663 rm -f conftest*
6664 cat > conftest.$ac_ext <<_LT_EOF
6665 #ifdef __cplusplus
6666 extern "C" {
6667 #endif
6668 char nm_test_var;
6669 void nm_test_func(void);
6670 void nm_test_func(void){}
6671 #ifdef __cplusplus
6673 #endif
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6675 _LT_EOF
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 # Now try to grab the symbols.
6683 nlist=conftest.nm
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6686 ac_status=$?
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; } && test -s "$nlist"; then
6689 # Try sorting and uniquifying the output.
6690 if sort "$nlist" | uniq > "$nlist"T; then
6691 mv -f "$nlist"T "$nlist"
6692 else
6693 rm -f "$nlist"T
6696 # Make sure that we snagged all the symbols we need.
6697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6699 cat <<_LT_EOF > conftest.$ac_ext
6700 #ifdef __cplusplus
6701 extern "C" {
6702 #endif
6704 _LT_EOF
6705 # Now generate the symbol file.
6706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6708 cat <<_LT_EOF >> conftest.$ac_ext
6710 /* The mapping between symbol names and symbols. */
6711 const struct {
6712 const char *name;
6713 void *address;
6715 lt__PROGRAM__LTX_preloaded_symbols[] =
6717 { "@PROGRAM@", (void *) 0 },
6718 _LT_EOF
6719 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6720 cat <<\_LT_EOF >> conftest.$ac_ext
6721 {0, (void *) 0}
6724 /* This works around a problem in FreeBSD linker */
6725 #ifdef FREEBSD_WORKAROUND
6726 static const void *lt_preloaded_setup() {
6727 return lt__PROGRAM__LTX_preloaded_symbols;
6729 #endif
6731 #ifdef __cplusplus
6733 #endif
6734 _LT_EOF
6735 # Now try linking the two files.
6736 mv conftest.$ac_objext conftstm.$ac_objext
6737 lt_save_LIBS="$LIBS"
6738 lt_save_CFLAGS="$CFLAGS"
6739 LIBS="conftstm.$ac_objext"
6740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6742 (eval $ac_link) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6746 pipe_works=yes
6748 LIBS="$lt_save_LIBS"
6749 CFLAGS="$lt_save_CFLAGS"
6750 else
6751 echo "cannot find nm_test_func in $nlist" >&5
6753 else
6754 echo "cannot find nm_test_var in $nlist" >&5
6756 else
6757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6759 else
6760 echo "$progname: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 rm -rf conftest* conftst*
6765 # Do not use the global_symbol_pipe unless it works.
6766 if test "$pipe_works" = yes; then
6767 break
6768 else
6769 lt_cv_sys_global_symbol_pipe=
6771 done
6775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6776 lt_cv_sys_global_symbol_to_cdecl=
6778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6780 $as_echo "failed" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6783 $as_echo "ok" >&6; }
6808 # Check whether --enable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then :
6810 enableval=$enable_libtool_lock;
6813 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6815 # Some flags need to be propagated to the compiler or linker for good
6816 # libtool support.
6817 case $host in
6818 ia64-*-hpux*)
6819 # Find out which ABI we are using.
6820 echo 'int i;' > conftest.$ac_ext
6821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822 (eval $ac_compile) 2>&5
6823 ac_status=$?
6824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; then
6826 case `/usr/bin/file conftest.$ac_objext` in
6827 *ELF-32*)
6828 HPUX_IA64_MODE="32"
6830 *ELF-64*)
6831 HPUX_IA64_MODE="64"
6833 esac
6835 rm -rf conftest*
6837 *-*-irix6*)
6838 # Find out which ABI we are using.
6839 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 if test "$lt_cv_prog_gnu_ld" = yes; then
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *32-bit*)
6848 LD="${LD-ld} -melf32bsmip"
6850 *N32*)
6851 LD="${LD-ld} -melf32bmipn32"
6853 *64-bit*)
6854 LD="${LD-ld} -melf64bmip"
6856 esac
6857 else
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *32-bit*)
6860 LD="${LD-ld} -32"
6862 *N32*)
6863 LD="${LD-ld} -n32"
6865 *64-bit*)
6866 LD="${LD-ld} -64"
6868 esac
6871 rm -rf conftest*
6874 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6875 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6876 # Find out which ABI we are using.
6877 echo 'int i;' > conftest.$ac_ext
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 case `/usr/bin/file conftest.o` in
6884 *32-bit*)
6885 case $host in
6886 x86_64-*kfreebsd*-gnu)
6887 LD="${LD-ld} -m elf_i386_fbsd"
6889 x86_64-*linux*)
6890 case `/usr/bin/file conftest.o` in
6891 *x86-64*)
6892 LD="${LD-ld} -m elf32_x86_64"
6895 LD="${LD-ld} -m elf_i386"
6897 esac
6899 powerpc64le-*linux*)
6900 LD="${LD-ld} -m elf32lppclinux"
6902 powerpc64-*linux*)
6903 LD="${LD-ld} -m elf32ppclinux"
6905 s390x-*linux*)
6906 LD="${LD-ld} -m elf_s390"
6908 sparc64-*linux*)
6909 LD="${LD-ld} -m elf32_sparc"
6911 esac
6913 *64-bit*)
6914 case $host in
6915 x86_64-*kfreebsd*-gnu)
6916 LD="${LD-ld} -m elf_x86_64_fbsd"
6918 x86_64-*linux*)
6919 LD="${LD-ld} -m elf_x86_64"
6921 powerpcle-*linux*)
6922 LD="${LD-ld} -m elf64lppc"
6924 powerpc-*linux*)
6925 LD="${LD-ld} -m elf64ppc"
6927 s390*-*linux*|s390*-*tpf*)
6928 LD="${LD-ld} -m elf64_s390"
6930 sparc*-*linux*)
6931 LD="${LD-ld} -m elf64_sparc"
6933 esac
6935 esac
6937 rm -rf conftest*
6940 *-*-sco3.2v5*)
6941 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6942 SAVE_CFLAGS="$CFLAGS"
6943 CFLAGS="$CFLAGS -belf"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6945 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6946 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 ac_ext=c
6950 ac_cpp='$CPP $CPPFLAGS'
6951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6959 main ()
6963 return 0;
6965 _ACEOF
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 lt_cv_cc_needs_belf=yes
6968 else
6969 lt_cv_cc_needs_belf=no
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 ac_ext=c
6974 ac_cpp='$CPP $CPPFLAGS'
6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6981 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6982 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6984 CFLAGS="$SAVE_CFLAGS"
6987 sparc*-*solaris*)
6988 # Find out which ABI we are using.
6989 echo 'int i;' > conftest.$ac_ext
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6992 ac_status=$?
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 case `/usr/bin/file conftest.o` in
6996 *64-bit*)
6997 case $lt_cv_prog_gnu_ld in
6998 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7000 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7001 LD="${LD-ld} -64"
7004 esac
7006 esac
7008 rm -rf conftest*
7010 esac
7012 need_locks="$enable_libtool_lock"
7015 case $host_os in
7016 rhapsody* | darwin*)
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$DSYMUTIL"; then
7026 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7046 if test -n "$DSYMUTIL"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7048 $as_echo "$DSYMUTIL" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7056 if test -z "$ac_cv_prog_DSYMUTIL"; then
7057 ac_ct_DSYMUTIL=$DSYMUTIL
7058 # Extract the first word of "dsymutil", so it can be a program name with args.
7059 set dummy dsymutil; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$ac_ct_DSYMUTIL"; then
7066 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7079 done
7080 done
7081 IFS=$as_save_IFS
7085 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7086 if test -n "$ac_ct_DSYMUTIL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7088 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7094 if test "x$ac_ct_DSYMUTIL" = x; then
7095 DSYMUTIL=":"
7096 else
7097 case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103 DSYMUTIL=$ac_ct_DSYMUTIL
7105 else
7106 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$NMEDIT"; then
7118 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7131 done
7132 done
7133 IFS=$as_save_IFS
7137 NMEDIT=$ac_cv_prog_NMEDIT
7138 if test -n "$NMEDIT"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7140 $as_echo "$NMEDIT" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_NMEDIT"; then
7149 ac_ct_NMEDIT=$NMEDIT
7150 # Extract the first word of "nmedit", so it can be a program name with args.
7151 set dummy nmedit; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_NMEDIT"; then
7158 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7177 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7178 if test -n "$ac_ct_NMEDIT"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7180 $as_echo "$ac_ct_NMEDIT" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_NMEDIT" = x; then
7187 NMEDIT=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 NMEDIT=$ac_ct_NMEDIT
7197 else
7198 NMEDIT="$ac_cv_prog_NMEDIT"
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_LIPO+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$LIPO"; then
7210 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7229 LIPO=$ac_cv_prog_LIPO
7230 if test -n "$LIPO"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7232 $as_echo "$LIPO" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_LIPO"; then
7241 ac_ct_LIPO=$LIPO
7242 # Extract the first word of "lipo", so it can be a program name with args.
7243 set dummy lipo; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_LIPO"; then
7250 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_LIPO="lipo"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7270 if test -n "$ac_ct_LIPO"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7272 $as_echo "$ac_ct_LIPO" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_LIPO" = x; then
7279 LIPO=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 LIPO=$ac_ct_LIPO
7289 else
7290 LIPO="$ac_cv_prog_LIPO"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}otool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$OTOOL"; then
7302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7317 IFS=$as_save_IFS
7321 OTOOL=$ac_cv_prog_OTOOL
7322 if test -n "$OTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324 $as_echo "$OTOOL" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_OTOOL"; then
7333 ac_ct_OTOOL=$OTOOL
7334 # Extract the first word of "otool", so it can be a program name with args.
7335 set dummy otool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_OTOOL"; then
7342 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_OTOOL="otool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7362 if test -n "$ac_ct_OTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7364 $as_echo "$ac_ct_OTOOL" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_OTOOL" = x; then
7371 OTOOL=":"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 OTOOL=$ac_ct_OTOOL
7381 else
7382 OTOOL="$ac_cv_prog_OTOOL"
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$OTOOL64"; then
7394 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7409 IFS=$as_save_IFS
7413 OTOOL64=$ac_cv_prog_OTOOL64
7414 if test -n "$OTOOL64"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7416 $as_echo "$OTOOL64" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_OTOOL64"; then
7425 ac_ct_OTOOL64=$OTOOL64
7426 # Extract the first word of "otool64", so it can be a program name with args.
7427 set dummy otool64; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$ac_ct_OTOOL64"; then
7434 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_OTOOL64="otool64"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7454 if test -n "$ac_ct_OTOOL64"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7456 $as_echo "$ac_ct_OTOOL64" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_OTOOL64" = x; then
7463 OTOOL64=":"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 OTOOL64=$ac_ct_OTOOL64
7473 else
7474 OTOOL64="$ac_cv_prog_OTOOL64"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7504 $as_echo_n "checking for -single_module linker flag... " >&6; }
7505 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 lt_cv_apple_cc_single_mod=no
7509 if test -z "${LT_MULTI_MODULE}"; then
7510 # By default we will add the -single_module flag. You can override
7511 # by either setting the environment variable LT_MULTI_MODULE
7512 # non-empty at configure time, or by adding -multi_module to the
7513 # link flags.
7514 rm -rf libconftest.dylib*
7515 echo "int foo(void){return 1;}" > conftest.c
7516 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7517 -dynamiclib -Wl,-single_module conftest.c" >&5
7518 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7520 _lt_result=$?
7521 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7522 lt_cv_apple_cc_single_mod=yes
7523 else
7524 cat conftest.err >&5
7526 rm -rf libconftest.dylib*
7527 rm -f conftest.*
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7531 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7533 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7534 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_ld_exported_symbols_list=no
7538 save_LDFLAGS=$LDFLAGS
7539 echo "_main" > conftest.sym
7540 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7545 main ()
7549 return 0;
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7553 lt_cv_ld_exported_symbols_list=yes
7554 else
7555 lt_cv_ld_exported_symbols_list=no
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LDFLAGS="$save_LDFLAGS"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7565 $as_echo_n "checking for -force_load linker flag... " >&6; }
7566 if test "${lt_cv_ld_force_load+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 lt_cv_ld_force_load=no
7570 cat > conftest.c << _LT_EOF
7571 int forced_loaded() { return 2;}
7572 _LT_EOF
7573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7575 echo "$AR cru libconftest.a conftest.o" >&5
7576 $AR cru libconftest.a conftest.o 2>&5
7577 cat > conftest.c << _LT_EOF
7578 int main() { return 0;}
7579 _LT_EOF
7580 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7582 _lt_result=$?
7583 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7584 lt_cv_ld_force_load=yes
7585 else
7586 cat conftest.err >&5
7588 rm -f conftest.err libconftest.a conftest conftest.c
7589 rm -rf conftest.dSYM
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7593 $as_echo "$lt_cv_ld_force_load" >&6; }
7594 case $host_os in
7595 rhapsody* | darwin1.[012])
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7597 darwin1.*)
7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606 10.[012][,.]*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 10.*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 esac
7612 esac
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod='$single_module'
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7618 else
7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7621 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7622 _lt_dsymutil='~$DSYMUTIL $lib || :'
7623 else
7624 _lt_dsymutil=
7627 esac
7629 ac_ext=c
7630 ac_cpp='$CPP $CPPFLAGS'
7631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7635 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7636 # On Suns, sometimes $CPP names a directory.
7637 if test -n "$CPP" && test -d "$CPP"; then
7638 CPP=
7640 if test -z "$CPP"; then
7641 if test "${ac_cv_prog_CPP+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 # Double quotes because CPP needs to be expanded
7645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7647 ac_preproc_ok=false
7648 for ac_c_preproc_warn_flag in '' yes
7650 # Use a header file that comes with gcc, so configuring glibc
7651 # with a fresh cross-compiler works.
7652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 # <limits.h> exists even on freestanding compilers.
7654 # On the NeXT, cc -E runs the code through the compiler's parser,
7655 # not just through cpp. "Syntax error" is here to catch this case.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #ifdef __STDC__
7659 # include <limits.h>
7660 #else
7661 # include <assert.h>
7662 #endif
7663 Syntax error
7664 _ACEOF
7665 if ac_fn_c_try_cpp "$LINENO"; then :
7667 else
7668 # Broken: fails on valid input.
7669 continue
7671 rm -f conftest.err conftest.$ac_ext
7673 # OK, works on sane cases. Now check whether nonexistent headers
7674 # can be detected and how.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <ac_nonexistent.h>
7678 _ACEOF
7679 if ac_fn_c_try_cpp "$LINENO"; then :
7680 # Broken: success on invalid input.
7681 continue
7682 else
7683 # Passes both tests.
7684 ac_preproc_ok=:
7685 break
7687 rm -f conftest.err conftest.$ac_ext
7689 done
7690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7691 rm -f conftest.err conftest.$ac_ext
7692 if $ac_preproc_ok; then :
7693 break
7696 done
7697 ac_cv_prog_CPP=$CPP
7700 CPP=$ac_cv_prog_CPP
7701 else
7702 ac_cv_prog_CPP=$CPP
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7705 $as_echo "$CPP" >&6; }
7706 ac_preproc_ok=false
7707 for ac_c_preproc_warn_flag in '' yes
7709 # Use a header file that comes with gcc, so configuring glibc
7710 # with a fresh cross-compiler works.
7711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7712 # <limits.h> exists even on freestanding compilers.
7713 # On the NeXT, cc -E runs the code through the compiler's parser,
7714 # not just through cpp. "Syntax error" is here to catch this case.
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #ifdef __STDC__
7718 # include <limits.h>
7719 #else
7720 # include <assert.h>
7721 #endif
7722 Syntax error
7723 _ACEOF
7724 if ac_fn_c_try_cpp "$LINENO"; then :
7726 else
7727 # Broken: fails on valid input.
7728 continue
7730 rm -f conftest.err conftest.$ac_ext
7732 # OK, works on sane cases. Now check whether nonexistent headers
7733 # can be detected and how.
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <ac_nonexistent.h>
7737 _ACEOF
7738 if ac_fn_c_try_cpp "$LINENO"; then :
7739 # Broken: success on invalid input.
7740 continue
7741 else
7742 # Passes both tests.
7743 ac_preproc_ok=:
7744 break
7746 rm -f conftest.err conftest.$ac_ext
7748 done
7749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7750 rm -f conftest.err conftest.$ac_ext
7751 if $ac_preproc_ok; then :
7753 else
7754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7756 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7757 See \`config.log' for more details." "$LINENO" 5; }
7760 ac_ext=c
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7768 $as_echo_n "checking for ANSI C header files... " >&6; }
7769 if test "${ac_cv_header_stdc+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <stdlib.h>
7775 #include <stdarg.h>
7776 #include <string.h>
7777 #include <float.h>
7780 main ()
7784 return 0;
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 ac_cv_header_stdc=yes
7789 else
7790 ac_cv_header_stdc=no
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 if test $ac_cv_header_stdc = yes; then
7795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 #include <string.h>
7800 _ACEOF
7801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802 $EGREP "memchr" >/dev/null 2>&1; then :
7804 else
7805 ac_cv_header_stdc=no
7807 rm -f conftest*
7811 if test $ac_cv_header_stdc = yes; then
7812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <stdlib.h>
7817 _ACEOF
7818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7819 $EGREP "free" >/dev/null 2>&1; then :
7821 else
7822 ac_cv_header_stdc=no
7824 rm -f conftest*
7828 if test $ac_cv_header_stdc = yes; then
7829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7830 if test "$cross_compiling" = yes; then :
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <ctype.h>
7836 #include <stdlib.h>
7837 #if ((' ' & 0x0FF) == 0x020)
7838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7840 #else
7841 # define ISLOWER(c) \
7842 (('a' <= (c) && (c) <= 'i') \
7843 || ('j' <= (c) && (c) <= 'r') \
7844 || ('s' <= (c) && (c) <= 'z'))
7845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7846 #endif
7848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7850 main ()
7852 int i;
7853 for (i = 0; i < 256; i++)
7854 if (XOR (islower (i), ISLOWER (i))
7855 || toupper (i) != TOUPPER (i))
7856 return 2;
7857 return 0;
7859 _ACEOF
7860 if ac_fn_c_try_run "$LINENO"; then :
7862 else
7863 ac_cv_header_stdc=no
7865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7866 conftest.$ac_objext conftest.beam conftest.$ac_ext
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7872 $as_echo "$ac_cv_header_stdc" >&6; }
7873 if test $ac_cv_header_stdc = yes; then
7875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7880 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7881 inttypes.h stdint.h unistd.h
7882 do :
7883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7886 eval as_val=\$$as_ac_Header
7887 if test "x$as_val" = x""yes; then :
7888 cat >>confdefs.h <<_ACEOF
7889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890 _ACEOF
7894 done
7897 for ac_header in dlfcn.h
7898 do :
7899 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7901 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7902 cat >>confdefs.h <<_ACEOF
7903 #define HAVE_DLFCN_H 1
7904 _ACEOF
7908 done
7915 # Set options
7919 enable_dlopen=no
7922 enable_win32_dll=no
7925 # Check whether --enable-shared was given.
7926 if test "${enable_shared+set}" = set; then :
7927 enableval=$enable_shared; p=${PACKAGE-default}
7928 case $enableval in
7929 yes) enable_shared=yes ;;
7930 no) enable_shared=no ;;
7932 enable_shared=no
7933 # Look at the argument we got. We use all the common list separators.
7934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7935 for pkg in $enableval; do
7936 IFS="$lt_save_ifs"
7937 if test "X$pkg" = "X$p"; then
7938 enable_shared=yes
7940 done
7941 IFS="$lt_save_ifs"
7943 esac
7944 else
7945 enable_shared=yes
7956 # Check whether --enable-static was given.
7957 if test "${enable_static+set}" = set; then :
7958 enableval=$enable_static; p=${PACKAGE-default}
7959 case $enableval in
7960 yes) enable_static=yes ;;
7961 no) enable_static=no ;;
7963 enable_static=no
7964 # Look at the argument we got. We use all the common list separators.
7965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7966 for pkg in $enableval; do
7967 IFS="$lt_save_ifs"
7968 if test "X$pkg" = "X$p"; then
7969 enable_static=yes
7971 done
7972 IFS="$lt_save_ifs"
7974 esac
7975 else
7976 enable_static=yes
7988 # Check whether --with-pic was given.
7989 if test "${with_pic+set}" = set; then :
7990 withval=$with_pic; pic_mode="$withval"
7991 else
7992 pic_mode=default
7996 test -z "$pic_mode" && pic_mode=default
8004 # Check whether --enable-fast-install was given.
8005 if test "${enable_fast_install+set}" = set; then :
8006 enableval=$enable_fast_install; p=${PACKAGE-default}
8007 case $enableval in
8008 yes) enable_fast_install=yes ;;
8009 no) enable_fast_install=no ;;
8011 enable_fast_install=no
8012 # Look at the argument we got. We use all the common list separators.
8013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8014 for pkg in $enableval; do
8015 IFS="$lt_save_ifs"
8016 if test "X$pkg" = "X$p"; then
8017 enable_fast_install=yes
8019 done
8020 IFS="$lt_save_ifs"
8022 esac
8023 else
8024 enable_fast_install=yes
8037 # This can be used to rebuild libtool when needed
8038 LIBTOOL_DEPS="$ltmain"
8040 # Always use our own libtool.
8041 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8068 test -z "$LN_S" && LN_S="ln -s"
8083 if test -n "${ZSH_VERSION+set}" ; then
8084 setopt NO_GLOB_SUBST
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8088 $as_echo_n "checking for objdir... " >&6; }
8089 if test "${lt_cv_objdir+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 rm -f .libs 2>/dev/null
8093 mkdir .libs 2>/dev/null
8094 if test -d .libs; then
8095 lt_cv_objdir=.libs
8096 else
8097 # MS-DOS does not allow filenames that begin with a dot.
8098 lt_cv_objdir=_libs
8100 rmdir .libs 2>/dev/null
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8103 $as_echo "$lt_cv_objdir" >&6; }
8104 objdir=$lt_cv_objdir
8110 cat >>confdefs.h <<_ACEOF
8111 #define LT_OBJDIR "$lt_cv_objdir/"
8112 _ACEOF
8117 case $host_os in
8118 aix3*)
8119 # AIX sometimes has problems with the GCC collect2 program. For some
8120 # reason, if we set the COLLECT_NAMES environment variable, the problems
8121 # vanish in a puff of smoke.
8122 if test "X${COLLECT_NAMES+set}" != Xset; then
8123 COLLECT_NAMES=
8124 export COLLECT_NAMES
8127 esac
8129 # Global variables:
8130 ofile=libtool
8131 can_build_shared=yes
8133 # All known linkers require a `.a' archive for static linking (except MSVC,
8134 # which needs '.lib').
8135 libext=a
8137 with_gnu_ld="$lt_cv_prog_gnu_ld"
8139 old_CC="$CC"
8140 old_CFLAGS="$CFLAGS"
8142 # Set sane defaults for various variables
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8146 test -z "$LD" && LD=ld
8147 test -z "$ac_objext" && ac_objext=o
8149 for cc_temp in $compiler""; do
8150 case $cc_temp in
8151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8153 \-*) ;;
8154 *) break;;
8155 esac
8156 done
8157 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8160 # Only perform the check for file, if the check method requires it
8161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162 case $deplibs_check_method in
8163 file_magic*)
8164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8166 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 case $MAGIC_CMD in
8171 [\\/*] | ?:[\\/]*)
8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD="$MAGIC_CMD"
8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir in $ac_dummy; do
8179 IFS="$lt_save_ifs"
8180 test -z "$ac_dir" && ac_dir=.
8181 if test -f $ac_dir/${ac_tool_prefix}file; then
8182 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8185 "file_magic "*)
8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189 $EGREP "$file_magic_regex" > /dev/null; then
8191 else
8192 cat <<_LT_EOF 1>&2
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8203 _LT_EOF
8204 fi ;;
8205 esac
8207 break
8209 done
8210 IFS="$lt_save_ifs"
8211 MAGIC_CMD="$lt_save_MAGIC_CMD"
8213 esac
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8220 else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8229 if test -z "$lt_cv_path_MAGIC_CMD"; then
8230 if test -n "$ac_tool_prefix"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8232 $as_echo_n "checking for file... " >&6; }
8233 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 case $MAGIC_CMD in
8237 [\\/*] | ?:[\\/]*)
8238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8241 lt_save_MAGIC_CMD="$MAGIC_CMD"
8242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8244 for ac_dir in $ac_dummy; do
8245 IFS="$lt_save_ifs"
8246 test -z "$ac_dir" && ac_dir=.
8247 if test -f $ac_dir/file; then
8248 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8249 if test -n "$file_magic_test_file"; then
8250 case $deplibs_check_method in
8251 "file_magic "*)
8252 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8255 $EGREP "$file_magic_regex" > /dev/null; then
8257 else
8258 cat <<_LT_EOF 1>&2
8260 *** Warning: the command libtool uses to detect shared libraries,
8261 *** $file_magic_cmd, produces output that libtool cannot recognize.
8262 *** The result is that libtool may fail to recognize shared libraries
8263 *** as such. This will affect the creation of libtool libraries that
8264 *** depend on shared libraries, but programs linked with such libtool
8265 *** libraries will work regardless of this problem. Nevertheless, you
8266 *** may want to report the problem to your system manager and/or to
8267 *** bug-libtool@gnu.org
8269 _LT_EOF
8270 fi ;;
8271 esac
8273 break
8275 done
8276 IFS="$lt_save_ifs"
8277 MAGIC_CMD="$lt_save_MAGIC_CMD"
8279 esac
8282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8283 if test -n "$MAGIC_CMD"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8285 $as_echo "$MAGIC_CMD" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8292 else
8293 MAGIC_CMD=:
8299 esac
8301 # Use C for the default configuration in the libtool script
8303 lt_save_CC="$CC"
8304 ac_ext=c
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311 # Source file extension for C test sources.
8312 ac_ext=c
8314 # Object file extension for compiled C test sources.
8315 objext=o
8316 objext=$objext
8318 # Code to be used in simple compile tests
8319 lt_simple_compile_test_code="int some_variable = 0;"
8321 # Code to be used in simple link tests
8322 lt_simple_link_test_code='int main(){return(0);}'
8330 # If no C compiler was specified, use CC.
8331 LTCC=${LTCC-"$CC"}
8333 # If no C compiler flags were specified, use CFLAGS.
8334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8336 # Allow CC to be a program name with arguments.
8337 compiler=$CC
8339 # Save the default compiler, since it gets overwritten when the other
8340 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8341 compiler_DEFAULT=$CC
8343 # save warnings/boilerplate of simple test code
8344 ac_outfile=conftest.$ac_objext
8345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8347 _lt_compiler_boilerplate=`cat conftest.err`
8348 $RM conftest*
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_linker_boilerplate=`cat conftest.err`
8354 $RM -r conftest*
8357 ## CAVEAT EMPTOR:
8358 ## There is no encapsulation within the following macros, do not change
8359 ## the running order or otherwise move them around unless you know exactly
8360 ## what you are doing...
8361 if test -n "$compiler"; then
8363 lt_prog_compiler_no_builtin_flag=
8365 if test "$GCC" = yes; then
8366 case $cc_basename in
8367 nvcc*)
8368 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8370 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8371 esac
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8374 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 lt_cv_prog_compiler_rtti_exceptions=no
8379 ac_outfile=conftest.$ac_objext
8380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8381 lt_compiler_flag="-fno-rtti -fno-exceptions"
8382 # Insert the option either (1) after the last *FLAGS variable, or
8383 # (2) before a word containing "conftest.", or (3) at the end.
8384 # Note that $ac_compile itself does not contain backslashes and begins
8385 # with a dollar sign (not a hyphen), so the echo should work correctly.
8386 # The option is referenced via a variable to avoid confusing sed.
8387 lt_compile=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
8391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8392 (eval "$lt_compile" 2>conftest.err)
8393 ac_status=$?
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 if (exit $ac_status) && test -s "$ac_outfile"; then
8397 # The compiler can only warn and ignore the option if not recognized
8398 # So say no if there are warnings other than the usual output.
8399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8402 lt_cv_prog_compiler_rtti_exceptions=yes
8405 $RM conftest*
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8409 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8413 else
8424 lt_prog_compiler_wl=
8425 lt_prog_compiler_pic=
8426 lt_prog_compiler_static=
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8429 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8431 if test "$GCC" = yes; then
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_static='-static'
8435 case $host_os in
8436 aix*)
8437 # All AIX code is PIC.
8438 if test "$host_cpu" = ia64; then
8439 # AIX 5 now supports IA64 processor
8440 lt_prog_compiler_static='-Bstatic'
8442 lt_prog_compiler_pic='-fPIC'
8445 amigaos*)
8446 case $host_cpu in
8447 powerpc)
8448 # see comment about AmigaOS4 .so support
8449 lt_prog_compiler_pic='-fPIC'
8451 m68k)
8452 # FIXME: we need at least 68020 code to build shared libraries, but
8453 # adding the `-m68020' flag to GCC prevents building anything better,
8454 # like `-m68040'.
8455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8457 esac
8460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8461 # PIC is the default for these OSes.
8464 mingw* | cygwin* | pw32* | os2* | cegcc*)
8465 # This hack is so that the source file can tell whether it is being
8466 # built for inclusion in a dll (and should export symbols for example).
8467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8468 # (--disable-auto-import) libraries
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8472 darwin* | rhapsody*)
8473 # PIC is the default on this platform
8474 # Common symbols not allowed in MH_DYLIB files
8475 lt_prog_compiler_pic='-fno-common'
8478 haiku*)
8479 # PIC is the default for Haiku.
8480 # The "-static" flag exists, but is broken.
8481 lt_prog_compiler_static=
8484 hpux*)
8485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8487 # sets the default TLS model and affects inlining.
8488 case $host_cpu in
8489 hppa*64*)
8490 # +Z the default
8493 lt_prog_compiler_pic='-fPIC'
8495 esac
8498 interix[3-9]*)
8499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8500 # Instead, we relocate shared libraries at runtime.
8503 msdosdjgpp*)
8504 # Just because we use GCC doesn't mean we suddenly get shared libraries
8505 # on systems that don't support them.
8506 lt_prog_compiler_can_build_shared=no
8507 enable_shared=no
8510 *nto* | *qnx*)
8511 # QNX uses GNU C++, but need to define -shared option too, otherwise
8512 # it will coredump.
8513 lt_prog_compiler_pic='-fPIC -shared'
8516 sysv4*MP*)
8517 if test -d /usr/nec; then
8518 lt_prog_compiler_pic=-Kconform_pic
8523 lt_prog_compiler_pic='-fPIC'
8525 esac
8527 case $cc_basename in
8528 nvcc*) # Cuda Compiler Driver 2.2
8529 lt_prog_compiler_wl='-Xlinker '
8530 lt_prog_compiler_pic='-Xcompiler -fPIC'
8532 esac
8533 else
8534 # PORTME Check for flag to pass linker flags through the system compiler.
8535 case $host_os in
8536 aix*)
8537 lt_prog_compiler_wl='-Wl,'
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8541 else
8542 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8546 mingw* | cygwin* | pw32* | os2* | cegcc*)
8547 # This hack is so that the source file can tell whether it is being
8548 # built for inclusion in a dll (and should export symbols for example).
8549 lt_prog_compiler_pic='-DDLL_EXPORT'
8552 hpux9* | hpux10* | hpux11*)
8553 lt_prog_compiler_wl='-Wl,'
8554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8555 # not for PA HP-UX.
8556 case $host_cpu in
8557 hppa*64*|ia64*)
8558 # +Z the default
8561 lt_prog_compiler_pic='+Z'
8563 esac
8564 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8565 lt_prog_compiler_static='${wl}-a ${wl}archive'
8568 irix5* | irix6* | nonstopux*)
8569 lt_prog_compiler_wl='-Wl,'
8570 # PIC (with -KPIC) is the default.
8571 lt_prog_compiler_static='-non_shared'
8574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8575 case $cc_basename in
8576 # old Intel for x86_64 which still supported -KPIC.
8577 ecc*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-static'
8582 # icc used to be incompatible with GCC.
8583 # ICC 10 doesn't accept -KPIC any more.
8584 icc* | ifort*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fPIC'
8587 lt_prog_compiler_static='-static'
8589 # Lahey Fortran 8.1.
8590 lf95*)
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_pic='--shared'
8593 lt_prog_compiler_static='--static'
8595 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8596 # Portland Group compilers (*not* the Pentium gcc compiler,
8597 # which looks to be a dead project)
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-fpic'
8600 lt_prog_compiler_static='-Bstatic'
8602 ccc*)
8603 lt_prog_compiler_wl='-Wl,'
8604 # All Alpha code is PIC.
8605 lt_prog_compiler_static='-non_shared'
8607 xl* | bgxl* | bgf* | mpixl*)
8608 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-qpic'
8611 lt_prog_compiler_static='-qstaticlink'
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ F* | *Sun*Fortran*)
8616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl=''
8621 *Sun\ C*)
8622 # Sun C 5.9
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl='-Wl,'
8627 esac
8629 esac
8632 newsos6)
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8637 *nto* | *qnx*)
8638 # QNX uses GNU C++, but need to define -shared option too, otherwise
8639 # it will coredump.
8640 lt_prog_compiler_pic='-fPIC -shared'
8643 osf3* | osf4* | osf5*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # All OSF/1 code is PIC.
8646 lt_prog_compiler_static='-non_shared'
8649 rdos*)
8650 lt_prog_compiler_static='-non_shared'
8653 solaris*)
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-Bstatic'
8656 case $cc_basename in
8657 f77* | f90* | f95*)
8658 lt_prog_compiler_wl='-Qoption ld ';;
8660 lt_prog_compiler_wl='-Wl,';;
8661 esac
8664 sunos4*)
8665 lt_prog_compiler_wl='-Qoption ld '
8666 lt_prog_compiler_pic='-PIC'
8667 lt_prog_compiler_static='-Bstatic'
8670 sysv4 | sysv4.2uw2* | sysv4.3*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8676 sysv4*MP*)
8677 if test -d /usr/nec ;then
8678 lt_prog_compiler_pic='-Kconform_pic'
8679 lt_prog_compiler_static='-Bstatic'
8683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8689 unicos*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_can_build_shared=no
8694 uts4*)
8695 lt_prog_compiler_pic='-pic'
8696 lt_prog_compiler_static='-Bstatic'
8700 lt_prog_compiler_can_build_shared=no
8702 esac
8705 case $host_os in
8706 # For platforms which do not support PIC, -DPIC is meaningless:
8707 *djgpp*)
8708 lt_prog_compiler_pic=
8711 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713 esac
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8715 $as_echo "$lt_prog_compiler_pic" >&6; }
8723 # Check to make sure the PIC flag actually works.
8725 if test -n "$lt_prog_compiler_pic"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8727 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8728 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 lt_cv_prog_compiler_pic_works=no
8732 ac_outfile=conftest.$ac_objext
8733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 # The option is referenced via a variable to avoid confusing sed.
8740 lt_compile=`echo "$ac_compile" | $SED \
8741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
8744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745 (eval "$lt_compile" 2>conftest.err)
8746 ac_status=$?
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 if (exit $ac_status) && test -s "$ac_outfile"; then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings other than the usual output.
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_pic_works=yes
8758 $RM conftest*
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8762 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8764 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8765 case $lt_prog_compiler_pic in
8766 "" | " "*) ;;
8767 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8768 esac
8769 else
8770 lt_prog_compiler_pic=
8771 lt_prog_compiler_can_build_shared=no
8782 # Check to make sure the static flag actually works.
8784 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8786 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8787 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 lt_cv_prog_compiler_static_works=no
8791 save_LDFLAGS="$LDFLAGS"
8792 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8793 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8794 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8795 # The linker can only warn and ignore the option if not recognized
8796 # So say no if there are warnings
8797 if test -s conftest.err; then
8798 # Append any errors to the config.log.
8799 cat conftest.err 1>&5
8800 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8802 if diff conftest.exp conftest.er2 >/dev/null; then
8803 lt_cv_prog_compiler_static_works=yes
8805 else
8806 lt_cv_prog_compiler_static_works=yes
8809 $RM -r conftest*
8810 LDFLAGS="$save_LDFLAGS"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8814 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8816 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8818 else
8819 lt_prog_compiler_static=
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8830 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 lt_cv_prog_compiler_c_o=no
8834 $RM -r conftest 2>/dev/null
8835 mkdir conftest
8836 cd conftest
8837 mkdir out
8838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840 lt_compiler_flag="-o out/conftest2.$ac_objext"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 lt_compile=`echo "$ac_compile" | $SED \
8846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848 -e 's:$: $lt_compiler_flag:'`
8849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8850 (eval "$lt_compile" 2>out/conftest.err)
8851 ac_status=$?
8852 cat out/conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8855 then
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings
8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8861 lt_cv_prog_compiler_c_o=yes
8864 chmod u+w . 2>&5
8865 $RM conftest*
8866 # SGI C++ compiler will create directory out/ii_files/ for
8867 # template instantiation
8868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8869 $RM out/* && rmdir out
8870 cd ..
8871 $RM -r conftest
8872 $RM conftest*
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8876 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8884 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8885 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 lt_cv_prog_compiler_c_o=no
8889 $RM -r conftest 2>/dev/null
8890 mkdir conftest
8891 cd conftest
8892 mkdir out
8893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895 lt_compiler_flag="-o out/conftest2.$ac_objext"
8896 # Insert the option either (1) after the last *FLAGS variable, or
8897 # (2) before a word containing "conftest.", or (3) at the end.
8898 # Note that $ac_compile itself does not contain backslashes and begins
8899 # with a dollar sign (not a hyphen), so the echo should work correctly.
8900 lt_compile=`echo "$ac_compile" | $SED \
8901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8903 -e 's:$: $lt_compiler_flag:'`
8904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8905 (eval "$lt_compile" 2>out/conftest.err)
8906 ac_status=$?
8907 cat out/conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8910 then
8911 # The compiler can only warn and ignore the option if not recognized
8912 # So say no if there are warnings
8913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8914 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8915 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8916 lt_cv_prog_compiler_c_o=yes
8919 chmod u+w . 2>&5
8920 $RM conftest*
8921 # SGI C++ compiler will create directory out/ii_files/ for
8922 # template instantiation
8923 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8924 $RM out/* && rmdir out
8925 cd ..
8926 $RM -r conftest
8927 $RM conftest*
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8931 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8936 hard_links="nottested"
8937 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8938 # do not overwrite the value of need_locks provided by the user
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8940 $as_echo_n "checking if we can lock with hard links... " >&6; }
8941 hard_links=yes
8942 $RM conftest*
8943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944 touch conftest.a
8945 ln conftest.a conftest.b 2>&5 || hard_links=no
8946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8948 $as_echo "$hard_links" >&6; }
8949 if test "$hard_links" = no; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8951 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8952 need_locks=warn
8954 else
8955 need_locks=no
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8964 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8966 runpath_var=
8967 allow_undefined_flag=
8968 always_export_symbols=no
8969 archive_cmds=
8970 archive_expsym_cmds=
8971 compiler_needs_object=no
8972 enable_shared_with_static_runtimes=no
8973 export_dynamic_flag_spec=
8974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8975 hardcode_automatic=no
8976 hardcode_direct=no
8977 hardcode_direct_absolute=no
8978 hardcode_libdir_flag_spec=
8979 hardcode_libdir_flag_spec_ld=
8980 hardcode_libdir_separator=
8981 hardcode_minus_L=no
8982 hardcode_shlibpath_var=unsupported
8983 inherit_rpath=no
8984 link_all_deplibs=unknown
8985 module_cmds=
8986 module_expsym_cmds=
8987 old_archive_from_new_cmds=
8988 old_archive_from_expsyms_cmds=
8989 thread_safe_flag_spec=
8990 whole_archive_flag_spec=
8991 # include_expsyms should be a list of space-separated symbols to be *always*
8992 # included in the symbol list
8993 include_expsyms=
8994 # exclude_expsyms can be an extended regexp of symbols to exclude
8995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8997 # as well as any symbol that contains `d'.
8998 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9000 # platforms (ab)use it in PIC code, but their linkers get confused if
9001 # the symbol is explicitly referenced. Since portable code cannot
9002 # rely on this symbol name, it's probably fine to never include it in
9003 # preloaded symbol tables.
9004 # Exclude shared library initialization/finalization symbols.
9005 extract_expsyms_cmds=
9007 case $host_os in
9008 cygwin* | mingw* | pw32* | cegcc*)
9009 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9010 # When not using gcc, we currently assume that we are using
9011 # Microsoft Visual C++.
9012 if test "$GCC" != yes; then
9013 with_gnu_ld=no
9016 interix*)
9017 # we just hope/assume this is gcc and not c89 (= MSVC++)
9018 with_gnu_ld=yes
9020 openbsd*)
9021 with_gnu_ld=no
9023 esac
9025 ld_shlibs=yes
9027 # On some targets, GNU ld is compatible enough with the native linker
9028 # that we're better off using the native interface for both.
9029 lt_use_gnu_ld_interface=no
9030 if test "$with_gnu_ld" = yes; then
9031 case $host_os in
9032 aix*)
9033 # The AIX port of GNU ld has always aspired to compatibility
9034 # with the native linker. However, as the warning in the GNU ld
9035 # block says, versions before 2.19.5* couldn't really create working
9036 # shared libraries, regardless of the interface used.
9037 case `$LD -v 2>&1` in
9038 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9039 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9040 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9042 lt_use_gnu_ld_interface=yes
9044 esac
9047 lt_use_gnu_ld_interface=yes
9049 esac
9052 if test "$lt_use_gnu_ld_interface" = yes; then
9053 # If archive_cmds runs LD, not CC, wlarc should be empty
9054 wlarc='${wl}'
9056 # Set some defaults for GNU ld with shared library support. These
9057 # are reset later if shared libraries are not supported. Putting them
9058 # here allows them to be overridden if necessary.
9059 runpath_var=LD_RUN_PATH
9060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9061 export_dynamic_flag_spec='${wl}--export-dynamic'
9062 # ancient GNU ld didn't support --whole-archive et. al.
9063 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9064 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9065 else
9066 whole_archive_flag_spec=
9068 supports_anon_versioning=no
9069 case `$LD -v 2>&1` in
9070 *GNU\ gold*) supports_anon_versioning=yes ;;
9071 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9072 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9073 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9074 *\ 2.11.*) ;; # other 2.11 versions
9075 *) supports_anon_versioning=yes ;;
9076 esac
9078 # See if GNU ld supports shared libraries.
9079 case $host_os in
9080 aix[3-9]*)
9081 # On AIX/PPC, the GNU linker is very broken
9082 if test "$host_cpu" != ia64; then
9083 ld_shlibs=no
9084 cat <<_LT_EOF 1>&2
9086 *** Warning: the GNU linker, at least up to release 2.19, is reported
9087 *** to be unable to reliably create shared libraries on AIX.
9088 *** Therefore, libtool is disabling shared libraries support. If you
9089 *** really care for shared libraries, you may want to install binutils
9090 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9091 *** You will then need to restart the configuration process.
9093 _LT_EOF
9097 amigaos*)
9098 case $host_cpu in
9099 powerpc)
9100 # see comment about AmigaOS4 .so support
9101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 archive_expsym_cmds=''
9104 m68k)
9105 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)'
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 hardcode_minus_L=yes
9109 esac
9112 beos*)
9113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9114 allow_undefined_flag=unsupported
9115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9116 # support --undefined. This deserves some investigation. FIXME
9117 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118 else
9119 ld_shlibs=no
9123 cygwin* | mingw* | pw32* | cegcc*)
9124 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9125 # as there is no search path for DLLs.
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 export_dynamic_flag_spec='${wl}--export-all-symbols'
9128 allow_undefined_flag=unsupported
9129 always_export_symbols=no
9130 enable_shared_with_static_runtimes=yes
9131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9133 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135 # If the export-symbols file already is a .def file (1st line
9136 # is EXPORTS), use it as is; otherwise, prepend...
9137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9138 cp $export_symbols $output_objdir/$soname.def;
9139 else
9140 echo EXPORTS > $output_objdir/$soname.def;
9141 cat $export_symbols >> $output_objdir/$soname.def;
9143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9144 else
9145 ld_shlibs=no
9149 haiku*)
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 link_all_deplibs=yes
9154 interix[3-9]*)
9155 hardcode_direct=no
9156 hardcode_shlibpath_var=no
9157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9158 export_dynamic_flag_spec='${wl}-E'
9159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9160 # Instead, shared libraries are loaded at an image base (0x10000000 by
9161 # default) and relocated if they conflict, which is a slow very memory
9162 # consuming and fragmenting process. To avoid this, we pick a random,
9163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9166 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'
9169 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9170 tmp_diet=no
9171 if test "$host_os" = linux-dietlibc; then
9172 case $cc_basename in
9173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9174 esac
9176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9177 && test "$tmp_diet" = no
9178 then
9179 tmp_addflag=' $pic_flag'
9180 tmp_sharedflag='-shared'
9181 case $cc_basename,$host_cpu in
9182 pgcc*) # Portland Group C compiler
9183 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'
9184 tmp_addflag=' $pic_flag'
9186 pgf77* | pgf90* | pgf95* | pgfortran*)
9187 # Portland Group f77 and f90 compilers
9188 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'
9189 tmp_addflag=' $pic_flag -Mnomain' ;;
9190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9191 tmp_addflag=' -i_dynamic' ;;
9192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9193 tmp_addflag=' -i_dynamic -nofor_main' ;;
9194 ifc* | ifort*) # Intel Fortran compiler
9195 tmp_addflag=' -nofor_main' ;;
9196 lf95*) # Lahey Fortran 8.1
9197 whole_archive_flag_spec=
9198 tmp_sharedflag='--shared' ;;
9199 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9200 tmp_sharedflag='-qmkshrobj'
9201 tmp_addflag= ;;
9202 nvcc*) # Cuda Compiler Driver 2.2
9203 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'
9204 compiler_needs_object=yes
9206 esac
9207 case `$CC -V 2>&1 | sed 5q` in
9208 *Sun\ C*) # Sun C 5.9
9209 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'
9210 compiler_needs_object=yes
9211 tmp_sharedflag='-G' ;;
9212 *Sun\ F*) # Sun Fortran 8.3
9213 tmp_sharedflag='-G' ;;
9214 esac
9215 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 if test "x$supports_anon_versioning" = xyes; then
9218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9224 case $cc_basename in
9225 xlf* | bgf* | bgxlf* | mpixlf*)
9226 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9227 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9228 hardcode_libdir_flag_spec=
9229 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9230 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9231 if test "x$supports_anon_versioning" = xyes; then
9232 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9238 esac
9239 else
9240 ld_shlibs=no
9244 netbsd*)
9245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9246 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9247 wlarc=
9248 else
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254 solaris*)
9255 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9256 ld_shlibs=no
9257 cat <<_LT_EOF 1>&2
9259 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9260 *** create shared libraries on Solaris systems. Therefore, libtool
9261 *** is disabling shared libraries support. We urge you to upgrade GNU
9262 *** binutils to release 2.9.1 or newer. Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9266 _LT_EOF
9267 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9270 else
9271 ld_shlibs=no
9275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9276 case `$LD -v 2>&1` in
9277 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9278 ld_shlibs=no
9279 cat <<_LT_EOF 1>&2
9281 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9282 *** reliably create shared libraries on SCO systems. Therefore, libtool
9283 *** is disabling shared libraries support. We urge you to upgrade GNU
9284 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9285 *** your PATH or compiler configuration so that the native linker is
9286 *** used, and then restart.
9288 _LT_EOF
9291 # For security reasons, it is highly recommended that you always
9292 # use absolute paths for naming shared libraries, and exclude the
9293 # DT_RUNPATH tag from executables and libraries. But doing so
9294 # requires that you compile everything twice, which is a pain.
9295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9299 else
9300 ld_shlibs=no
9303 esac
9306 sunos4*)
9307 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308 wlarc=
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9317 else
9318 ld_shlibs=no
9321 esac
9323 if test "$ld_shlibs" = no; then
9324 runpath_var=
9325 hardcode_libdir_flag_spec=
9326 export_dynamic_flag_spec=
9327 whole_archive_flag_spec=
9329 else
9330 # PORTME fill in a description of your system's linker (not GNU ld)
9331 case $host_os in
9332 aix3*)
9333 allow_undefined_flag=unsupported
9334 always_export_symbols=yes
9335 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'
9336 # Note: this linker hardcodes the directories in LIBPATH if there
9337 # are no directories specified by -L.
9338 hardcode_minus_L=yes
9339 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9340 # Neither direct hardcoding nor static linking is supported with a
9341 # broken collect2.
9342 hardcode_direct=unsupported
9346 aix[4-9]*)
9347 if test "$host_cpu" = ia64; then
9348 # On IA64, the linker does run time linking by default, so we don't
9349 # have to do anything special.
9350 aix_use_runtimelinking=no
9351 exp_sym_flag='-Bexport'
9352 no_entry_flag=""
9353 else
9354 # If we're using GNU nm, then we don't want the "-C" option.
9355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9356 # Also, AIX nm treats weak defined symbols like other global
9357 # defined symbols, whereas GNU nm marks them as "W".
9358 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9359 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'
9360 else
9361 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9363 aix_use_runtimelinking=no
9365 # Test if we are trying to use run time linking or normal
9366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9367 # need to do runtime linking.
9368 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9369 for ld_flag in $LDFLAGS; do
9370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9371 aix_use_runtimelinking=yes
9372 break
9374 done
9376 esac
9378 exp_sym_flag='-bexport'
9379 no_entry_flag='-bnoentry'
9382 # When large executables or shared objects are built, AIX ld can
9383 # have problems creating the table of contents. If linking a library
9384 # or program results in "error TOC overflow" add -mminimal-toc to
9385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9388 archive_cmds=''
9389 hardcode_direct=yes
9390 hardcode_direct_absolute=yes
9391 hardcode_libdir_separator=':'
9392 link_all_deplibs=yes
9393 file_list_spec='${wl}-f,'
9395 if test "$GCC" = yes; then
9396 case $host_os in aix4.[012]|aix4.[012].*)
9397 # We only want to do this on AIX 4.2 and lower, the check
9398 # below for broken collect2 doesn't work under 4.3+
9399 collect2name=`${CC} -print-prog-name=collect2`
9400 if test -f "$collect2name" &&
9401 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9402 then
9403 # We have reworked collect2
9405 else
9406 # We have old collect2
9407 hardcode_direct=unsupported
9408 # It fails to find uninstalled libraries when the uninstalled
9409 # path is not listed in the libpath. Setting hardcode_minus_L
9410 # to unsupported forces relinking
9411 hardcode_minus_L=yes
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_libdir_separator=
9416 esac
9417 shared_flag='-shared'
9418 if test "$aix_use_runtimelinking" = yes; then
9419 shared_flag="$shared_flag "'${wl}-G'
9421 else
9422 # not using gcc
9423 if test "$host_cpu" = ia64; then
9424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9425 # chokes on -Wl,-G. The following line is correct:
9426 shared_flag='-G'
9427 else
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag='${wl}-G'
9430 else
9431 shared_flag='${wl}-bM:SRE'
9436 export_dynamic_flag_spec='${wl}-bexpall'
9437 # It seems that -bexpall does not export symbols beginning with
9438 # underscore (_), so it is better to generate a list of symbols to export.
9439 always_export_symbols=yes
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # Warning - without using the other runtime loading flags (-brtl),
9442 # -berok will link without error, but may produce a broken library.
9443 allow_undefined_flag='-berok'
9444 # Determine the default libpath from the value encoded in an
9445 # empty executable.
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9450 main ()
9454 return 0;
9456 _ACEOF
9457 if ac_fn_c_try_link "$LINENO"; then :
9459 lt_aix_libpath_sed='
9460 /Import File Strings/,/^$/ {
9461 /^0/ {
9462 s/^0 *\(.*\)$/\1/
9466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 # Check for a 64-bit object if we didn't find anything.
9468 if test -z "$aix_libpath"; then
9469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9477 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"
9478 else
9479 if test "$host_cpu" = ia64; then
9480 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9481 allow_undefined_flag="-z nodefs"
9482 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"
9483 else
9484 # Determine the default libpath from the value encoded in an
9485 # empty executable.
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9490 main ()
9494 return 0;
9496 _ACEOF
9497 if ac_fn_c_try_link "$LINENO"; then :
9499 lt_aix_libpath_sed='
9500 /Import File Strings/,/^$/ {
9501 /^0/ {
9502 s/^0 *\(.*\)$/\1/
9506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507 # Check for a 64-bit object if we didn't find anything.
9508 if test -z "$aix_libpath"; then
9509 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9517 # Warning - without using the other run time loading flags,
9518 # -berok will link without error, but may produce a broken library.
9519 no_undefined_flag=' ${wl}-bernotok'
9520 allow_undefined_flag=' ${wl}-berok'
9521 if test "$with_gnu_ld" = yes; then
9522 # We only use this code for GNU lds that support --whole-archive.
9523 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9524 else
9525 # Exported symbols can be pulled into shared objects from archives
9526 whole_archive_flag_spec='$convenience'
9528 archive_cmds_need_lc=yes
9529 # This is similar to how AIX traditionally builds its shared libraries.
9530 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'
9535 amigaos*)
9536 case $host_cpu in
9537 powerpc)
9538 # see comment about AmigaOS4 .so support
9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds=''
9542 m68k)
9543 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)'
9544 hardcode_libdir_flag_spec='-L$libdir'
9545 hardcode_minus_L=yes
9547 esac
9550 bsdi[45]*)
9551 export_dynamic_flag_spec=-rdynamic
9554 cygwin* | mingw* | pw32* | cegcc*)
9555 # When not using gcc, we currently assume that we are using
9556 # Microsoft Visual C++.
9557 # hardcode_libdir_flag_spec is actually meaningless, as there is
9558 # no search path for DLLs.
9559 hardcode_libdir_flag_spec=' '
9560 allow_undefined_flag=unsupported
9561 # Tell ltmain to make .lib files, not .a files.
9562 libext=lib
9563 # Tell ltmain to make .dll files, not .so files.
9564 shrext_cmds=".dll"
9565 # FIXME: Setting linknames here is a bad hack.
9566 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9567 # The linker will automatically build a .lib file if we build a DLL.
9568 old_archive_from_new_cmds='true'
9569 # FIXME: Should let the user specify the lib program.
9570 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9571 fix_srcfile_path='`cygpath -w "$srcfile"`'
9572 enable_shared_with_static_runtimes=yes
9575 darwin* | rhapsody*)
9578 archive_cmds_need_lc=no
9579 hardcode_direct=no
9580 hardcode_automatic=yes
9581 hardcode_shlibpath_var=unsupported
9582 if test "$lt_cv_ld_force_load" = "yes"; then
9583 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\"`'
9584 else
9585 whole_archive_flag_spec=''
9587 link_all_deplibs=yes
9588 allow_undefined_flag="$_lt_dar_allow_undefined"
9589 case $cc_basename in
9590 ifort*) _lt_dar_can_shared=yes ;;
9591 *) _lt_dar_can_shared=$GCC ;;
9592 esac
9593 if test "$_lt_dar_can_shared" = "yes"; then
9594 output_verbose_link_cmd=func_echo_all
9595 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9596 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9597 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}"
9598 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}"
9600 else
9601 ld_shlibs=no
9606 dgux*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9613 # support. Future versions do this automatically, but an explicit c++rt0.o
9614 # does not break anything, and helps significantly (at the cost of a little
9615 # extra space).
9616 freebsd2.2*)
9617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9618 hardcode_libdir_flag_spec='-R$libdir'
9619 hardcode_direct=yes
9620 hardcode_shlibpath_var=no
9623 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9624 freebsd2.*)
9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_direct=yes
9627 hardcode_minus_L=yes
9628 hardcode_shlibpath_var=no
9631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9632 freebsd* | dragonfly*)
9633 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9639 hpux9*)
9640 if test "$GCC" = yes; then
9641 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9642 else
9643 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'
9645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9646 hardcode_libdir_separator=:
9647 hardcode_direct=yes
9649 # hardcode_minus_L: Not really in the search PATH,
9650 # but as the default location of the library.
9651 hardcode_minus_L=yes
9652 export_dynamic_flag_spec='${wl}-E'
9655 hpux10*)
9656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9657 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9661 if test "$with_gnu_ld" = no; then
9662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9663 hardcode_libdir_flag_spec_ld='+b $libdir'
9664 hardcode_libdir_separator=:
9665 hardcode_direct=yes
9666 hardcode_direct_absolute=yes
9667 export_dynamic_flag_spec='${wl}-E'
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9674 hpux11*)
9675 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9676 case $host_cpu in
9677 hppa*64*)
9678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 ia64*)
9681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9686 esac
9687 else
9688 case $host_cpu in
9689 hppa*64*)
9690 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 ia64*)
9693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 # Older versions of the 11.00 compiler do not understand -b yet
9698 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9700 $as_echo_n "checking if $CC understands -b... " >&6; }
9701 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 lt_cv_prog_compiler__b=no
9705 save_LDFLAGS="$LDFLAGS"
9706 LDFLAGS="$LDFLAGS -b"
9707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9709 # The linker can only warn and ignore the option if not recognized
9710 # So say no if there are warnings
9711 if test -s conftest.err; then
9712 # Append any errors to the config.log.
9713 cat conftest.err 1>&5
9714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9716 if diff conftest.exp conftest.er2 >/dev/null; then
9717 lt_cv_prog_compiler__b=yes
9719 else
9720 lt_cv_prog_compiler__b=yes
9723 $RM -r conftest*
9724 LDFLAGS="$save_LDFLAGS"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9728 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9730 if test x"$lt_cv_prog_compiler__b" = xyes; then
9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9732 else
9733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9737 esac
9739 if test "$with_gnu_ld" = no; then
9740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9741 hardcode_libdir_separator=:
9743 case $host_cpu in
9744 hppa*64*|ia64*)
9745 hardcode_direct=no
9746 hardcode_shlibpath_var=no
9749 hardcode_direct=yes
9750 hardcode_direct_absolute=yes
9751 export_dynamic_flag_spec='${wl}-E'
9753 # hardcode_minus_L: Not really in the search PATH,
9754 # but as the default location of the library.
9755 hardcode_minus_L=yes
9757 esac
9761 irix5* | irix6* | nonstopux*)
9762 if test "$GCC" = yes; then
9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9764 # Try to use the -exported_symbol ld option, if it does not
9765 # work, assume that -exports_file does not work either and
9766 # implicitly export all symbols.
9767 save_LDFLAGS="$LDFLAGS"
9768 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int foo(void) {}
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LDFLAGS="$save_LDFLAGS"
9780 else
9781 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'
9782 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'
9784 archive_cmds_need_lc='no'
9785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786 hardcode_libdir_separator=:
9787 inherit_rpath=yes
9788 link_all_deplibs=yes
9791 netbsd*)
9792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9794 else
9795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9797 hardcode_libdir_flag_spec='-R$libdir'
9798 hardcode_direct=yes
9799 hardcode_shlibpath_var=no
9802 newsos6)
9803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804 hardcode_direct=yes
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator=:
9807 hardcode_shlibpath_var=no
9810 *nto* | *qnx*)
9813 openbsd*)
9814 if test -f /usr/libexec/ld.so; then
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
9817 hardcode_direct_absolute=yes
9818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9822 export_dynamic_flag_spec='${wl}-E'
9823 else
9824 case $host_os in
9825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_libdir_flag_spec='-R$libdir'
9830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9833 esac
9835 else
9836 ld_shlibs=no
9840 os2*)
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_minus_L=yes
9843 allow_undefined_flag=unsupported
9844 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'
9845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9848 osf3*)
9849 if test "$GCC" = yes; then
9850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9851 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'
9852 else
9853 allow_undefined_flag=' -expect_unresolved \*'
9854 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'
9856 archive_cmds_need_lc='no'
9857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858 hardcode_libdir_separator=:
9861 osf4* | osf5*) # as osf3* with the addition of -msym flag
9862 if test "$GCC" = yes; then
9863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866 else
9867 allow_undefined_flag=' -expect_unresolved \*'
9868 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'
9869 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~
9870 $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'
9872 # Both c and cxx compiler support -rpath directly
9873 hardcode_libdir_flag_spec='-rpath $libdir'
9875 archive_cmds_need_lc='no'
9876 hardcode_libdir_separator=:
9879 solaris*)
9880 no_undefined_flag=' -z defs'
9881 if test "$GCC" = yes; then
9882 wlarc='${wl}'
9883 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9885 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9886 else
9887 case `$CC -V 2>&1` in
9888 *"Compilers 5.0"*)
9889 wlarc=''
9890 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9895 wlarc='${wl}'
9896 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9900 esac
9902 hardcode_libdir_flag_spec='-R$libdir'
9903 hardcode_shlibpath_var=no
9904 case $host_os in
9905 solaris2.[0-5] | solaris2.[0-5].*) ;;
9907 # The compiler driver will combine and reorder linker options,
9908 # but understands `-z linker_flag'. GCC discards it without `$wl',
9909 # but is careful enough not to reorder.
9910 # Supported since Solaris 2.6 (maybe 2.5.1?)
9911 if test "$GCC" = yes; then
9912 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9913 else
9914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9917 esac
9918 link_all_deplibs=yes
9921 sunos4*)
9922 if test "x$host_vendor" = xsequent; then
9923 # Use $CC to link under sequent, because it throws in some extra .o
9924 # files that make .init and .fini sections work.
9925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9926 else
9927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_libdir_flag_spec='-L$libdir'
9930 hardcode_direct=yes
9931 hardcode_minus_L=yes
9932 hardcode_shlibpath_var=no
9935 sysv4)
9936 case $host_vendor in
9937 sni)
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_direct=yes # is this really true???
9941 siemens)
9942 ## LD is ld it makes a PLAMLIB
9943 ## CC just makes a GrossModule.
9944 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9945 reload_cmds='$CC -r -o $output$reload_objs'
9946 hardcode_direct=no
9948 motorola)
9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9952 esac
9953 runpath_var='LD_RUN_PATH'
9954 hardcode_shlibpath_var=no
9957 sysv4.3*)
9958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_shlibpath_var=no
9960 export_dynamic_flag_spec='-Bexport'
9963 sysv4*MP*)
9964 if test -d /usr/nec; then
9965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 hardcode_shlibpath_var=no
9967 runpath_var=LD_RUN_PATH
9968 hardcode_runpath_var=yes
9969 ld_shlibs=yes
9973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9974 no_undefined_flag='${wl}-z,text'
9975 archive_cmds_need_lc=no
9976 hardcode_shlibpath_var=no
9977 runpath_var='LD_RUN_PATH'
9979 if test "$GCC" = yes; then
9980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982 else
9983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 sysv5* | sco3.2v5* | sco5v6*)
9989 # Note: We can NOT use -z defs as we might desire, because we do not
9990 # link with -lc, and that would cause any symbols used from libc to
9991 # always be unresolved, which means just about no library would
9992 # ever link correctly. If we're not using GNU ld we use -z text
9993 # though, which does catch some bad symbols but isn't as heavy-handed
9994 # as -z defs.
9995 no_undefined_flag='${wl}-z,text'
9996 allow_undefined_flag='${wl}-z,nodefs'
9997 archive_cmds_need_lc=no
9998 hardcode_shlibpath_var=no
9999 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10000 hardcode_libdir_separator=':'
10001 link_all_deplibs=yes
10002 export_dynamic_flag_spec='${wl}-Bexport'
10003 runpath_var='LD_RUN_PATH'
10005 if test "$GCC" = yes; then
10006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008 else
10009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 uts4*)
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_shlibpath_var=no
10021 ld_shlibs=no
10023 esac
10025 if test x$host_vendor = xsni; then
10026 case $host in
10027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10028 export_dynamic_flag_spec='${wl}-Blargedynsym'
10030 esac
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10035 $as_echo "$ld_shlibs" >&6; }
10036 test "$ld_shlibs" = no && can_build_shared=no
10038 with_gnu_ld=$with_gnu_ld
10055 # Do we need to explicitly link libc?
10057 case "x$archive_cmds_need_lc" in
10058 x|xyes)
10059 # Assume -lc should be added
10060 archive_cmds_need_lc=yes
10062 if test "$enable_shared" = yes && test "$GCC" = yes; then
10063 case $archive_cmds in
10064 *'~'*)
10065 # FIXME: we may have to deal with multi-command sequences.
10067 '$CC '*)
10068 # Test whether the compiler implicitly links with -lc since on some
10069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10070 # to ld, don't add -lc before -lgcc.
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10073 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 $RM conftest*
10077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10080 (eval $ac_compile) 2>&5
10081 ac_status=$?
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; } 2>conftest.err; then
10084 soname=conftest
10085 lib=conftest
10086 libobjs=conftest.$ac_objext
10087 deplibs=
10088 wl=$lt_prog_compiler_wl
10089 pic_flag=$lt_prog_compiler_pic
10090 compiler_flags=-v
10091 linker_flags=-v
10092 verstring=
10093 output_objdir=.
10094 libname=conftest
10095 lt_save_allow_undefined_flag=$allow_undefined_flag
10096 allow_undefined_flag=
10097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10098 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10099 ac_status=$?
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; }
10102 then
10103 lt_cv_archive_cmds_need_lc=no
10104 else
10105 lt_cv_archive_cmds_need_lc=yes
10107 allow_undefined_flag=$lt_save_allow_undefined_flag
10108 else
10109 cat conftest.err 1>&5
10111 $RM conftest*
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10115 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10116 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10118 esac
10121 esac
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10280 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10282 if test "$GCC" = yes; then
10283 case $host_os in
10284 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10285 *) lt_awk_arg="/^libraries:/" ;;
10286 esac
10287 case $host_os in
10288 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10289 *) lt_sed_strip_eq="s,=/,/,g" ;;
10290 esac
10291 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10292 case $lt_search_path_spec in
10293 *\;*)
10294 # if the path contains ";" then we assume it to be the separator
10295 # otherwise default to the standard path separator (i.e. ":") - it is
10296 # assumed that no part of a normal pathname contains ";" but that should
10297 # okay in the real world where ";" in dirpaths is itself problematic.
10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10301 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10303 esac
10304 # Ok, now we have the path, separated by spaces, we can step through it
10305 # and add multilib dir if necessary.
10306 lt_tmp_lt_search_path_spec=
10307 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10308 for lt_sys_path in $lt_search_path_spec; do
10309 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10311 else
10312 test -d "$lt_sys_path" && \
10313 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10315 done
10316 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10317 BEGIN {RS=" "; FS="/|\n";} {
10318 lt_foo="";
10319 lt_count=0;
10320 for (lt_i = NF; lt_i > 0; lt_i--) {
10321 if ($lt_i != "" && $lt_i != ".") {
10322 if ($lt_i == "..") {
10323 lt_count++;
10324 } else {
10325 if (lt_count == 0) {
10326 lt_foo="/" $lt_i lt_foo;
10327 } else {
10328 lt_count--;
10333 if (lt_foo != "") { lt_freq[lt_foo]++; }
10334 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10336 # AWK program above erroneously prepends '/' to C:/dos/paths
10337 # for these hosts.
10338 case $host_os in
10339 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10340 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10341 esac
10342 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10343 else
10344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10346 library_names_spec=
10347 libname_spec='lib$name'
10348 soname_spec=
10349 shrext_cmds=".so"
10350 postinstall_cmds=
10351 postuninstall_cmds=
10352 finish_cmds=
10353 finish_eval=
10354 shlibpath_var=
10355 shlibpath_overrides_runpath=unknown
10356 version_type=none
10357 dynamic_linker="$host_os ld.so"
10358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10359 need_lib_prefix=unknown
10360 hardcode_into_libs=no
10362 # when you set need_version to no, make sure it does not cause -set_version
10363 # flags to be left without arguments
10364 need_version=unknown
10366 case $host_os in
10367 aix3*)
10368 version_type=linux
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10370 shlibpath_var=LIBPATH
10372 # AIX 3 has no versioning support, so we append a major version to the name.
10373 soname_spec='${libname}${release}${shared_ext}$major'
10376 aix[4-9]*)
10377 version_type=linux
10378 need_lib_prefix=no
10379 need_version=no
10380 hardcode_into_libs=yes
10381 if test "$host_cpu" = ia64; then
10382 # AIX 5 supports IA64
10383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 else
10386 # With GCC up to 2.95.x, collect2 would create an import file
10387 # for dependence libraries. The import file would start with
10388 # the line `#! .'. This would cause the generated library to
10389 # depend on `.', always an invalid library. This was fixed in
10390 # development snapshots of GCC prior to 3.0.
10391 case $host_os in
10392 aix4 | aix4.[01] | aix4.[01].*)
10393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10394 echo ' yes '
10395 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10397 else
10398 can_build_shared=no
10401 esac
10402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10403 # soname into executable. Probably we can add versioning support to
10404 # collect2, so additional links can be useful in future.
10405 if test "$aix_use_runtimelinking" = yes; then
10406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10407 # instead of lib<name>.a to let people know that these are not
10408 # typical AIX shared libraries.
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 else
10411 # We preserve .a as extension for shared libraries through AIX4.2
10412 # and later when we are not doing run time linking.
10413 library_names_spec='${libname}${release}.a $libname.a'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LIBPATH
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # Since July 2007 AmigaOS4 officially supports .so libraries.
10424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 m68k)
10428 library_names_spec='$libname.ixlibrary $libname.a'
10429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10430 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'
10432 esac
10435 beos*)
10436 library_names_spec='${libname}${shared_ext}'
10437 dynamic_linker="$host_os ld.so"
10438 shlibpath_var=LIBRARY_PATH
10441 bsdi[45]*)
10442 version_type=linux
10443 need_version=no
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10450 # the default ld.so.conf also contains /usr/contrib/lib and
10451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10452 # libtool to hard-code these into programs
10455 cygwin* | mingw* | pw32* | cegcc*)
10456 version_type=windows
10457 shrext_cmds=".dll"
10458 need_version=no
10459 need_lib_prefix=no
10461 case $GCC,$host_os in
10462 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10463 library_names_spec='$libname.dll.a'
10464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10465 postinstall_cmds='base_file=`basename \${file}`~
10466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10467 dldir=$destdir/`dirname \$dlpath`~
10468 test -d \$dldir || mkdir -p \$dldir~
10469 $install_prog $dir/$dlname \$dldir/$dlname~
10470 chmod a+x \$dldir/$dlname~
10471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10475 dlpath=$dir/\$dldll~
10476 $RM \$dlpath'
10477 shlibpath_overrides_runpath=yes
10479 case $host_os in
10480 cygwin*)
10481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10486 mingw* | cegcc*)
10487 # MinGW DLLs use traditional 'lib' prefix
10488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10490 pw32*)
10491 # pw32 DLLs use 'pw' prefix rather than 'lib'
10492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494 esac
10498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10500 esac
10501 dynamic_linker='Win32 ld.exe'
10502 # FIXME: first we should search . and the directory the executable is in
10503 shlibpath_var=PATH
10506 darwin* | rhapsody*)
10507 dynamic_linker="$host_os dyld"
10508 version_type=darwin
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10512 soname_spec='${libname}${release}${major}$shared_ext'
10513 shlibpath_overrides_runpath=yes
10514 shlibpath_var=DYLD_LIBRARY_PATH
10515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10521 dgux*)
10522 version_type=linux
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10530 freebsd* | dragonfly*)
10531 # DragonFly does not have aout. When/if they implement a new
10532 # versioning mechanism, adjust this.
10533 if test -x /usr/bin/objformat; then
10534 objformat=`/usr/bin/objformat`
10535 else
10536 case $host_os in
10537 freebsd[23].*) objformat=aout ;;
10538 *) objformat=elf ;;
10539 esac
10541 version_type=freebsd-$objformat
10542 case $version_type in
10543 freebsd-elf*)
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10545 need_version=no
10546 need_lib_prefix=no
10548 freebsd-*)
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10550 need_version=yes
10552 esac
10553 shlibpath_var=LD_LIBRARY_PATH
10554 case $host_os in
10555 freebsd2.*)
10556 shlibpath_overrides_runpath=yes
10558 freebsd3.[01]* | freebsdelf3.[01]*)
10559 shlibpath_overrides_runpath=yes
10560 hardcode_into_libs=yes
10562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10564 shlibpath_overrides_runpath=no
10565 hardcode_into_libs=yes
10567 *) # from 4.6 on, and DragonFly
10568 shlibpath_overrides_runpath=yes
10569 hardcode_into_libs=yes
10571 esac
10574 gnu*)
10575 version_type=linux
10576 need_lib_prefix=no
10577 need_version=no
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 hardcode_into_libs=yes
10584 haiku*)
10585 version_type=linux
10586 need_lib_prefix=no
10587 need_version=no
10588 dynamic_linker="$host_os runtime_loader"
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10594 hardcode_into_libs=yes
10597 hpux9* | hpux10* | hpux11*)
10598 # Give a soname corresponding to the major version so that dld.sl refuses to
10599 # link against other versions.
10600 version_type=sunos
10601 need_lib_prefix=no
10602 need_version=no
10603 case $host_cpu in
10604 ia64*)
10605 shrext_cmds='.so'
10606 hardcode_into_libs=yes
10607 dynamic_linker="$host_os dld.so"
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 if test "X$HPUX_IA64_MODE" = X32; then
10613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10614 else
10615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10619 hppa*64*)
10620 shrext_cmds='.sl'
10621 hardcode_into_libs=yes
10622 dynamic_linker="$host_os dld.sl"
10623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10631 shrext_cmds='.sl'
10632 dynamic_linker="$host_os dld.sl"
10633 shlibpath_var=SHLIB_PATH
10634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10638 esac
10639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10640 postinstall_cmds='chmod 555 $lib'
10641 # or fails outright, so override atomically:
10642 install_override_mode=555
10645 interix[3-9]*)
10646 version_type=linux
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=no
10654 hardcode_into_libs=yes
10657 irix5* | irix6* | nonstopux*)
10658 case $host_os in
10659 nonstopux*) version_type=nonstopux ;;
10661 if test "$lt_cv_prog_gnu_ld" = yes; then
10662 version_type=linux
10663 else
10664 version_type=irix
10665 fi ;;
10666 esac
10667 need_lib_prefix=no
10668 need_version=no
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10671 case $host_os in
10672 irix5* | nonstopux*)
10673 libsuff= shlibsuff=
10676 case $LD in # libtool.m4 will add one of these switches to LD
10677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10678 libsuff= shlibsuff= libmagic=32-bit;;
10679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10680 libsuff=32 shlibsuff=N32 libmagic=N32;;
10681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10682 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10683 *) libsuff= shlibsuff= libmagic=never-match;;
10684 esac
10686 esac
10687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10688 shlibpath_overrides_runpath=no
10689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10691 hardcode_into_libs=yes
10694 # No shared lib support for Linux oldld, aout, or coff.
10695 linux*oldld* | linux*aout* | linux*coff*)
10696 dynamic_linker=no
10699 # This must be Linux ELF.
10700 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10701 version_type=linux
10702 need_lib_prefix=no
10703 need_version=no
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10710 # Some binutils ld are patched to set DT_RUNPATH
10711 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 lt_cv_shlibpath_overrides_runpath=no
10715 save_LDFLAGS=$LDFLAGS
10716 save_libdir=$libdir
10717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10723 main ()
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10732 lt_cv_shlibpath_overrides_runpath=yes
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LDFLAGS=$save_LDFLAGS
10738 libdir=$save_libdir
10742 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10744 # This implies no fast_install, which is unacceptable.
10745 # Some rework will be needed to allow for fast_install
10746 # before this can be enabled.
10747 hardcode_into_libs=yes
10749 # Append ld.so.conf contents to the search path
10750 if test -f /etc/ld.so.conf; then
10751 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' ' '`
10752 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10755 # We used to test for /lib/ld.so.1 and disable shared libraries on
10756 # powerpc, because MkLinux only supported shared libraries with the
10757 # GNU dynamic linker. Since this was broken with cross compilers,
10758 # most powerpc-linux boxes support dynamic linking these days and
10759 # people can always --disable-shared, the test was removed, and we
10760 # assume the GNU/Linux dynamic linker is in use.
10761 dynamic_linker='GNU/Linux ld.so'
10764 netbsd*)
10765 version_type=sunos
10766 need_lib_prefix=no
10767 need_version=no
10768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10771 dynamic_linker='NetBSD (a.out) ld.so'
10772 else
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 dynamic_linker='NetBSD ld.elf_so'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath=yes
10779 hardcode_into_libs=yes
10782 newsos6)
10783 version_type=linux
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=yes
10789 *nto* | *qnx*)
10790 version_type=qnx
10791 need_lib_prefix=no
10792 need_version=no
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 dynamic_linker='ldqnx.so'
10801 openbsd*)
10802 version_type=sunos
10803 sys_lib_dlsearch_path_spec="/usr/lib"
10804 need_lib_prefix=no
10805 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10806 case $host_os in
10807 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10808 *) need_version=no ;;
10809 esac
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10814 case $host_os in
10815 openbsd2.[89] | openbsd2.[89].*)
10816 shlibpath_overrides_runpath=no
10819 shlibpath_overrides_runpath=yes
10821 esac
10822 else
10823 shlibpath_overrides_runpath=yes
10827 os2*)
10828 libname_spec='$name'
10829 shrext_cmds=".dll"
10830 need_lib_prefix=no
10831 library_names_spec='$libname${shared_ext} $libname.a'
10832 dynamic_linker='OS/2 ld.exe'
10833 shlibpath_var=LIBPATH
10836 osf3* | osf4* | osf5*)
10837 version_type=osf
10838 need_lib_prefix=no
10839 need_version=no
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10847 rdos*)
10848 dynamic_linker=no
10851 solaris*)
10852 version_type=linux
10853 need_lib_prefix=no
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 hardcode_into_libs=yes
10860 # ldd complains unless libraries are executable
10861 postinstall_cmds='chmod +x $lib'
10864 sunos4*)
10865 version_type=sunos
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10870 if test "$with_gnu_ld" = yes; then
10871 need_lib_prefix=no
10873 need_version=yes
10876 sysv4 | sysv4.3*)
10877 version_type=linux
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 case $host_vendor in
10882 sni)
10883 shlibpath_overrides_runpath=no
10884 need_lib_prefix=no
10885 runpath_var=LD_RUN_PATH
10887 siemens)
10888 need_lib_prefix=no
10890 motorola)
10891 need_lib_prefix=no
10892 need_version=no
10893 shlibpath_overrides_runpath=no
10894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10896 esac
10899 sysv4*MP*)
10900 if test -d /usr/nec ;then
10901 version_type=linux
10902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10903 soname_spec='$libname${shared_ext}.$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10909 version_type=freebsd-elf
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=yes
10916 hardcode_into_libs=yes
10917 if test "$with_gnu_ld" = yes; then
10918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10919 else
10920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10921 case $host_os in
10922 sco3.2v5*)
10923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10925 esac
10927 sys_lib_dlsearch_path_spec='/usr/lib'
10930 tpf*)
10931 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10941 uts4*)
10942 version_type=linux
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10949 dynamic_linker=no
10951 esac
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10953 $as_echo "$dynamic_linker" >&6; }
10954 test "$dynamic_linker" = no && can_build_shared=no
10956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10957 if test "$GCC" = yes; then
10958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10962 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10965 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11061 hardcode_action=
11062 if test -n "$hardcode_libdir_flag_spec" ||
11063 test -n "$runpath_var" ||
11064 test "X$hardcode_automatic" = "Xyes" ; then
11066 # We can hardcode non-existent directories.
11067 if test "$hardcode_direct" != no &&
11068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11069 # have to relink, otherwise we might link with an installed library
11070 # when we should be linking with a yet-to-be-installed one
11071 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11072 test "$hardcode_minus_L" != no; then
11073 # Linking always hardcodes the temporary library directory.
11074 hardcode_action=relink
11075 else
11076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11077 hardcode_action=immediate
11079 else
11080 # We cannot hardcode anything, or else we can only hardcode existing
11081 # directories.
11082 hardcode_action=unsupported
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11085 $as_echo "$hardcode_action" >&6; }
11087 if test "$hardcode_action" = relink ||
11088 test "$inherit_rpath" = yes; then
11089 # Fast installation is not supported
11090 enable_fast_install=no
11091 elif test "$shlibpath_overrides_runpath" = yes ||
11092 test "$enable_shared" = no; then
11093 # Fast installation is not necessary
11094 enable_fast_install=needless
11102 if test "x$enable_dlopen" != xyes; then
11103 enable_dlopen=unknown
11104 enable_dlopen_self=unknown
11105 enable_dlopen_self_static=unknown
11106 else
11107 lt_cv_dlopen=no
11108 lt_cv_dlopen_libs=
11110 case $host_os in
11111 beos*)
11112 lt_cv_dlopen="load_add_on"
11113 lt_cv_dlopen_libs=
11114 lt_cv_dlopen_self=yes
11117 mingw* | pw32* | cegcc*)
11118 lt_cv_dlopen="LoadLibrary"
11119 lt_cv_dlopen_libs=
11122 cygwin*)
11123 lt_cv_dlopen="dlopen"
11124 lt_cv_dlopen_libs=
11127 darwin*)
11128 # if libdl is installed we need to link against it
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11131 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_lib_save_LIBS=$LIBS
11135 LIBS="-ldl $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char dlopen ();
11147 main ()
11149 return dlopen ();
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 ac_cv_lib_dl_dlopen=yes
11156 else
11157 ac_cv_lib_dl_dlopen=no
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11165 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11167 else
11169 lt_cv_dlopen="dyld"
11170 lt_cv_dlopen_libs=
11171 lt_cv_dlopen_self=yes
11178 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11179 if test "x$ac_cv_func_shl_load" = x""yes; then :
11180 lt_cv_dlopen="shl_load"
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11183 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11184 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 ac_check_lib_save_LIBS=$LIBS
11188 LIBS="-ldld $LIBS"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char shl_load ();
11200 main ()
11202 return shl_load ();
11204 return 0;
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_lib_dld_shl_load=yes
11209 else
11210 ac_cv_lib_dld_shl_load=no
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 LIBS=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11218 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11220 else
11221 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11222 if test "x$ac_cv_func_dlopen" = x""yes; then :
11223 lt_cv_dlopen="dlopen"
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldl $LIBS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char dlopen ();
11243 main ()
11245 return dlopen ();
11247 return 0;
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_dl_dlopen=yes
11252 else
11253 ac_cv_lib_dl_dlopen=no
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11261 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11265 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11266 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_lib_save_LIBS=$LIBS
11270 LIBS="-lsvld $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char dlopen ();
11282 main ()
11284 return dlopen ();
11286 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 ac_cv_lib_svld_dlopen=yes
11291 else
11292 ac_cv_lib_svld_dlopen=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11299 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11300 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11304 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11305 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-ldld $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char dld_link ();
11321 main ()
11323 return dld_link ();
11325 return 0;
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_dld_dld_link=yes
11330 else
11331 ac_cv_lib_dld_dld_link=no
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11338 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11339 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11359 esac
11361 if test "x$lt_cv_dlopen" != xno; then
11362 enable_dlopen=yes
11363 else
11364 enable_dlopen=no
11367 case $lt_cv_dlopen in
11368 dlopen)
11369 save_CPPFLAGS="$CPPFLAGS"
11370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11372 save_LDFLAGS="$LDFLAGS"
11373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11375 save_LIBS="$LIBS"
11376 LIBS="$lt_cv_dlopen_libs $LIBS"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11379 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11380 if test "${lt_cv_dlopen_self+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 if test "$cross_compiling" = yes; then :
11384 lt_cv_dlopen_self=cross
11385 else
11386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11387 lt_status=$lt_dlunknown
11388 cat > conftest.$ac_ext <<_LT_EOF
11389 #line 11389 "configure"
11390 #include "confdefs.h"
11392 #if HAVE_DLFCN_H
11393 #include <dlfcn.h>
11394 #endif
11396 #include <stdio.h>
11398 #ifdef RTLD_GLOBAL
11399 # define LT_DLGLOBAL RTLD_GLOBAL
11400 #else
11401 # ifdef DL_GLOBAL
11402 # define LT_DLGLOBAL DL_GLOBAL
11403 # else
11404 # define LT_DLGLOBAL 0
11405 # endif
11406 #endif
11408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11409 find out it does not work in some platform. */
11410 #ifndef LT_DLLAZY_OR_NOW
11411 # ifdef RTLD_LAZY
11412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11413 # else
11414 # ifdef DL_LAZY
11415 # define LT_DLLAZY_OR_NOW DL_LAZY
11416 # else
11417 # ifdef RTLD_NOW
11418 # define LT_DLLAZY_OR_NOW RTLD_NOW
11419 # else
11420 # ifdef DL_NOW
11421 # define LT_DLLAZY_OR_NOW DL_NOW
11422 # else
11423 # define LT_DLLAZY_OR_NOW 0
11424 # endif
11425 # endif
11426 # endif
11427 # endif
11428 #endif
11430 /* When -fvisbility=hidden is used, assume the code has been annotated
11431 correspondingly for the symbols needed. */
11432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11433 void fnord () __attribute__((visibility("default")));
11434 #endif
11436 void fnord () { int i=42; }
11437 int main ()
11439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11440 int status = $lt_dlunknown;
11442 if (self)
11444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11445 else
11447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11448 else puts (dlerror ());
11450 /* dlclose (self); */
11452 else
11453 puts (dlerror ());
11455 return status;
11457 _LT_EOF
11458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11459 (eval $ac_link) 2>&5
11460 ac_status=$?
11461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11463 (./conftest; exit; ) >&5 2>/dev/null
11464 lt_status=$?
11465 case x$lt_status in
11466 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11467 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11468 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11469 esac
11470 else :
11471 # compilation failed
11472 lt_cv_dlopen_self=no
11475 rm -fr conftest*
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11480 $as_echo "$lt_cv_dlopen_self" >&6; }
11482 if test "x$lt_cv_dlopen_self" = xyes; then
11483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11485 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11486 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 if test "$cross_compiling" = yes; then :
11490 lt_cv_dlopen_self_static=cross
11491 else
11492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11493 lt_status=$lt_dlunknown
11494 cat > conftest.$ac_ext <<_LT_EOF
11495 #line 11495 "configure"
11496 #include "confdefs.h"
11498 #if HAVE_DLFCN_H
11499 #include <dlfcn.h>
11500 #endif
11502 #include <stdio.h>
11504 #ifdef RTLD_GLOBAL
11505 # define LT_DLGLOBAL RTLD_GLOBAL
11506 #else
11507 # ifdef DL_GLOBAL
11508 # define LT_DLGLOBAL DL_GLOBAL
11509 # else
11510 # define LT_DLGLOBAL 0
11511 # endif
11512 #endif
11514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11515 find out it does not work in some platform. */
11516 #ifndef LT_DLLAZY_OR_NOW
11517 # ifdef RTLD_LAZY
11518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11519 # else
11520 # ifdef DL_LAZY
11521 # define LT_DLLAZY_OR_NOW DL_LAZY
11522 # else
11523 # ifdef RTLD_NOW
11524 # define LT_DLLAZY_OR_NOW RTLD_NOW
11525 # else
11526 # ifdef DL_NOW
11527 # define LT_DLLAZY_OR_NOW DL_NOW
11528 # else
11529 # define LT_DLLAZY_OR_NOW 0
11530 # endif
11531 # endif
11532 # endif
11533 # endif
11534 #endif
11536 /* When -fvisbility=hidden is used, assume the code has been annotated
11537 correspondingly for the symbols needed. */
11538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11539 void fnord () __attribute__((visibility("default")));
11540 #endif
11542 void fnord () { int i=42; }
11543 int main ()
11545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11546 int status = $lt_dlunknown;
11548 if (self)
11550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11551 else
11553 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554 else puts (dlerror ());
11556 /* dlclose (self); */
11558 else
11559 puts (dlerror ());
11561 return status;
11563 _LT_EOF
11564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11565 (eval $ac_link) 2>&5
11566 ac_status=$?
11567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11569 (./conftest; exit; ) >&5 2>/dev/null
11570 lt_status=$?
11571 case x$lt_status in
11572 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11573 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11574 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11575 esac
11576 else :
11577 # compilation failed
11578 lt_cv_dlopen_self_static=no
11581 rm -fr conftest*
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11586 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11589 CPPFLAGS="$save_CPPFLAGS"
11590 LDFLAGS="$save_LDFLAGS"
11591 LIBS="$save_LIBS"
11593 esac
11595 case $lt_cv_dlopen_self in
11596 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11597 *) enable_dlopen_self=unknown ;;
11598 esac
11600 case $lt_cv_dlopen_self_static in
11601 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11602 *) enable_dlopen_self_static=unknown ;;
11603 esac
11622 striplib=
11623 old_striplib=
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11625 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11626 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11627 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11628 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631 else
11632 # FIXME - insert some real tests, host_os isn't really good enough
11633 case $host_os in
11634 darwin*)
11635 if test -n "$STRIP" ; then
11636 striplib="$STRIP -x"
11637 old_striplib="$STRIP -S"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639 $as_echo "yes" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11649 esac
11663 # Report which library types will actually be built
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11665 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11667 $as_echo "$can_build_shared" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11670 $as_echo_n "checking whether to build shared libraries... " >&6; }
11671 test "$can_build_shared" = "no" && enable_shared=no
11673 # On AIX, shared libraries and static libraries use the same namespace, and
11674 # are all built from PIC.
11675 case $host_os in
11676 aix3*)
11677 test "$enable_shared" = yes && enable_static=no
11678 if test -n "$RANLIB"; then
11679 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11680 postinstall_cmds='$RANLIB $lib'
11684 aix[4-9]*)
11685 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11686 test "$enable_shared" = yes && enable_static=no
11689 esac
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11691 $as_echo "$enable_shared" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11694 $as_echo_n "checking whether to build static libraries... " >&6; }
11695 # Make sure either enable_shared or enable_static is yes.
11696 test "$enable_shared" = yes || enable_static=yes
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11698 $as_echo "$enable_static" >&6; }
11704 ac_ext=c
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710 CC="$lt_save_CC"
11712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11713 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11714 (test "X$CXX" != "Xg++"))) ; then
11715 ac_ext=cpp
11716 ac_cpp='$CXXCPP $CPPFLAGS'
11717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11721 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11722 if test -z "$CXXCPP"; then
11723 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11725 else
11726 # Double quotes because CXXCPP needs to be expanded
11727 for CXXCPP in "$CXX -E" "/lib/cpp"
11729 ac_preproc_ok=false
11730 for ac_cxx_preproc_warn_flag in '' yes
11732 # Use a header file that comes with gcc, so configuring glibc
11733 # with a fresh cross-compiler works.
11734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11735 # <limits.h> exists even on freestanding compilers.
11736 # On the NeXT, cc -E runs the code through the compiler's parser,
11737 # not just through cpp. "Syntax error" is here to catch this case.
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740 #ifdef __STDC__
11741 # include <limits.h>
11742 #else
11743 # include <assert.h>
11744 #endif
11745 Syntax error
11746 _ACEOF
11747 if ac_fn_cxx_try_cpp "$LINENO"; then :
11749 else
11750 # Broken: fails on valid input.
11751 continue
11753 rm -f conftest.err conftest.$ac_ext
11755 # OK, works on sane cases. Now check whether nonexistent headers
11756 # can be detected and how.
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 #include <ac_nonexistent.h>
11760 _ACEOF
11761 if ac_fn_cxx_try_cpp "$LINENO"; then :
11762 # Broken: success on invalid input.
11763 continue
11764 else
11765 # Passes both tests.
11766 ac_preproc_ok=:
11767 break
11769 rm -f conftest.err conftest.$ac_ext
11771 done
11772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11773 rm -f conftest.err conftest.$ac_ext
11774 if $ac_preproc_ok; then :
11775 break
11778 done
11779 ac_cv_prog_CXXCPP=$CXXCPP
11782 CXXCPP=$ac_cv_prog_CXXCPP
11783 else
11784 ac_cv_prog_CXXCPP=$CXXCPP
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11787 $as_echo "$CXXCPP" >&6; }
11788 ac_preproc_ok=false
11789 for ac_cxx_preproc_warn_flag in '' yes
11791 # Use a header file that comes with gcc, so configuring glibc
11792 # with a fresh cross-compiler works.
11793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 # <limits.h> exists even on freestanding compilers.
11795 # On the NeXT, cc -E runs the code through the compiler's parser,
11796 # not just through cpp. "Syntax error" is here to catch this case.
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799 #ifdef __STDC__
11800 # include <limits.h>
11801 #else
11802 # include <assert.h>
11803 #endif
11804 Syntax error
11805 _ACEOF
11806 if ac_fn_cxx_try_cpp "$LINENO"; then :
11808 else
11809 # Broken: fails on valid input.
11810 continue
11812 rm -f conftest.err conftest.$ac_ext
11814 # OK, works on sane cases. Now check whether nonexistent headers
11815 # can be detected and how.
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <ac_nonexistent.h>
11819 _ACEOF
11820 if ac_fn_cxx_try_cpp "$LINENO"; then :
11821 # Broken: success on invalid input.
11822 continue
11823 else
11824 # Passes both tests.
11825 ac_preproc_ok=:
11826 break
11828 rm -f conftest.err conftest.$ac_ext
11830 done
11831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11832 rm -f conftest.err conftest.$ac_ext
11833 if $ac_preproc_ok; then :
11835 else
11836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11838 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11839 See \`config.log' for more details." "$LINENO" 5; }
11842 ac_ext=c
11843 ac_cpp='$CPP $CPPFLAGS'
11844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11848 else
11849 _lt_caught_CXX_error=yes
11852 ac_ext=cpp
11853 ac_cpp='$CXXCPP $CPPFLAGS'
11854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11858 archive_cmds_need_lc_CXX=no
11859 allow_undefined_flag_CXX=
11860 always_export_symbols_CXX=no
11861 archive_expsym_cmds_CXX=
11862 compiler_needs_object_CXX=no
11863 export_dynamic_flag_spec_CXX=
11864 hardcode_direct_CXX=no
11865 hardcode_direct_absolute_CXX=no
11866 hardcode_libdir_flag_spec_CXX=
11867 hardcode_libdir_flag_spec_ld_CXX=
11868 hardcode_libdir_separator_CXX=
11869 hardcode_minus_L_CXX=no
11870 hardcode_shlibpath_var_CXX=unsupported
11871 hardcode_automatic_CXX=no
11872 inherit_rpath_CXX=no
11873 module_cmds_CXX=
11874 module_expsym_cmds_CXX=
11875 link_all_deplibs_CXX=unknown
11876 old_archive_cmds_CXX=$old_archive_cmds
11877 reload_flag_CXX=$reload_flag
11878 reload_cmds_CXX=$reload_cmds
11879 no_undefined_flag_CXX=
11880 whole_archive_flag_spec_CXX=
11881 enable_shared_with_static_runtimes_CXX=no
11883 # Source file extension for C++ test sources.
11884 ac_ext=cpp
11886 # Object file extension for compiled C++ test sources.
11887 objext=o
11888 objext_CXX=$objext
11890 # No sense in running all these tests if we already determined that
11891 # the CXX compiler isn't working. Some variables (like enable_shared)
11892 # are currently assumed to apply to all compilers on this platform,
11893 # and will be corrupted by setting them based on a non-working compiler.
11894 if test "$_lt_caught_CXX_error" != yes; then
11895 # Code to be used in simple compile tests
11896 lt_simple_compile_test_code="int some_variable = 0;"
11898 # Code to be used in simple link tests
11899 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11908 # If no C compiler was specified, use CC.
11909 LTCC=${LTCC-"$CC"}
11911 # If no C compiler flags were specified, use CFLAGS.
11912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11914 # Allow CC to be a program name with arguments.
11915 compiler=$CC
11918 # save warnings/boilerplate of simple test code
11919 ac_outfile=conftest.$ac_objext
11920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_compiler_boilerplate=`cat conftest.err`
11923 $RM conftest*
11925 ac_outfile=conftest.$ac_objext
11926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11928 _lt_linker_boilerplate=`cat conftest.err`
11929 $RM -r conftest*
11932 # Allow CC to be a program name with arguments.
11933 lt_save_CC=$CC
11934 lt_save_LD=$LD
11935 lt_save_GCC=$GCC
11936 GCC=$GXX
11937 lt_save_with_gnu_ld=$with_gnu_ld
11938 lt_save_path_LD=$lt_cv_path_LD
11939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11941 else
11942 $as_unset lt_cv_prog_gnu_ld
11944 if test -n "${lt_cv_path_LDCXX+set}"; then
11945 lt_cv_path_LD=$lt_cv_path_LDCXX
11946 else
11947 $as_unset lt_cv_path_LD
11949 test -z "${LDCXX+set}" || LD=$LDCXX
11950 CC=${CXX-"c++"}
11951 compiler=$CC
11952 compiler_CXX=$CC
11953 for cc_temp in $compiler""; do
11954 case $cc_temp in
11955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11957 \-*) ;;
11958 *) break;;
11959 esac
11960 done
11961 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11964 if test -n "$compiler"; then
11965 # We don't want -fno-exception when compiling C++ code, so set the
11966 # no_builtin_flag separately
11967 if test "$GXX" = yes; then
11968 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11969 else
11970 lt_prog_compiler_no_builtin_flag_CXX=
11973 if test "$GXX" = yes; then
11974 # Set up default GNU C++ configuration
11978 # Check whether --with-gnu-ld was given.
11979 if test "${with_gnu_ld+set}" = set; then :
11980 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11981 else
11982 with_gnu_ld=no
11985 ac_prog=ld
11986 if test "$GCC" = yes; then
11987 # Check if gcc -print-prog-name=ld gives a path.
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11989 $as_echo_n "checking for ld used by $CC... " >&6; }
11990 case $host in
11991 *-*-mingw*)
11992 # gcc leaves a trailing carriage return which upsets mingw
11993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11996 esac
11997 case $ac_prog in
11998 # Accept absolute paths.
11999 [\\/]* | ?:[\\/]*)
12000 re_direlt='/[^/][^/]*/\.\./'
12001 # Canonicalize the pathname of ld
12002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12005 done
12006 test -z "$LD" && LD="$ac_prog"
12009 # If it fails, then pretend we aren't using GCC.
12010 ac_prog=ld
12013 # If it is relative, then search for the first ld in PATH.
12014 with_gnu_ld=unknown
12016 esac
12017 elif test "$with_gnu_ld" = yes; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12019 $as_echo_n "checking for GNU ld... " >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12022 $as_echo_n "checking for non-GNU ld... " >&6; }
12024 if test "${lt_cv_path_LD+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 if test -z "$LD"; then
12028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12029 for ac_dir in $PATH; do
12030 IFS="$lt_save_ifs"
12031 test -z "$ac_dir" && ac_dir=.
12032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12033 lt_cv_path_LD="$ac_dir/$ac_prog"
12034 # Check to see if the program is GNU ld. I'd rather use --version,
12035 # but apparently some variants of GNU ld only accept -v.
12036 # Break only if it was the GNU/non-GNU ld that we prefer.
12037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12038 *GNU* | *'with BFD'*)
12039 test "$with_gnu_ld" != no && break
12042 test "$with_gnu_ld" != yes && break
12044 esac
12046 done
12047 IFS="$lt_save_ifs"
12048 else
12049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12053 LD="$lt_cv_path_LD"
12054 if test -n "$LD"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12056 $as_echo "$LD" >&6; }
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12061 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12064 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12068 case `$LD -v 2>&1 </dev/null` in
12069 *GNU* | *'with BFD'*)
12070 lt_cv_prog_gnu_ld=yes
12073 lt_cv_prog_gnu_ld=no
12075 esac
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12079 with_gnu_ld=$lt_cv_prog_gnu_ld
12087 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12088 # archiving commands below assume that GNU ld is being used.
12089 if test "$with_gnu_ld" = yes; then
12090 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12091 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'
12093 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12096 # If archive_cmds runs LD, not CC, wlarc should be empty
12097 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12098 # investigate it a little bit more. (MM)
12099 wlarc='${wl}'
12101 # ancient GNU ld didn't support --whole-archive et. al.
12102 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12103 $GREP 'no-whole-archive' > /dev/null; then
12104 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12105 else
12106 whole_archive_flag_spec_CXX=
12108 else
12109 with_gnu_ld=no
12110 wlarc=
12112 # A generic and very simple default shared library creation
12113 # command for GNU C++ for the case where it uses the native
12114 # linker, instead of GNU ld. If possible, this setting should
12115 # overridden to take advantage of the native linker features on
12116 # the platform it is being used on.
12117 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12120 # Commands to make compiler produce verbose output that lists
12121 # what "hidden" libraries, object files and flags are used when
12122 # linking a shared library.
12123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12125 else
12126 GXX=no
12127 with_gnu_ld=no
12128 wlarc=
12131 # PORTME: fill in a description of your system's C++ link characteristics
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12134 ld_shlibs_CXX=yes
12135 case $host_os in
12136 aix3*)
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12140 aix[4-9]*)
12141 if test "$host_cpu" = ia64; then
12142 # On IA64, the linker does run time linking by default, so we don't
12143 # have to do anything special.
12144 aix_use_runtimelinking=no
12145 exp_sym_flag='-Bexport'
12146 no_entry_flag=""
12147 else
12148 aix_use_runtimelinking=no
12150 # Test if we are trying to use run time linking or normal
12151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12152 # need to do runtime linking.
12153 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12154 for ld_flag in $LDFLAGS; do
12155 case $ld_flag in
12156 *-brtl*)
12157 aix_use_runtimelinking=yes
12158 break
12160 esac
12161 done
12163 esac
12165 exp_sym_flag='-bexport'
12166 no_entry_flag='-bnoentry'
12169 # When large executables or shared objects are built, AIX ld can
12170 # have problems creating the table of contents. If linking a library
12171 # or program results in "error TOC overflow" add -mminimal-toc to
12172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12175 archive_cmds_CXX=''
12176 hardcode_direct_CXX=yes
12177 hardcode_direct_absolute_CXX=yes
12178 hardcode_libdir_separator_CXX=':'
12179 link_all_deplibs_CXX=yes
12180 file_list_spec_CXX='${wl}-f,'
12182 if test "$GXX" = yes; then
12183 case $host_os in aix4.[012]|aix4.[012].*)
12184 # We only want to do this on AIX 4.2 and lower, the check
12185 # below for broken collect2 doesn't work under 4.3+
12186 collect2name=`${CC} -print-prog-name=collect2`
12187 if test -f "$collect2name" &&
12188 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12189 then
12190 # We have reworked collect2
12192 else
12193 # We have old collect2
12194 hardcode_direct_CXX=unsupported
12195 # It fails to find uninstalled libraries when the uninstalled
12196 # path is not listed in the libpath. Setting hardcode_minus_L
12197 # to unsupported forces relinking
12198 hardcode_minus_L_CXX=yes
12199 hardcode_libdir_flag_spec_CXX='-L$libdir'
12200 hardcode_libdir_separator_CXX=
12202 esac
12203 shared_flag='-shared'
12204 if test "$aix_use_runtimelinking" = yes; then
12205 shared_flag="$shared_flag "'${wl}-G'
12207 else
12208 # not using gcc
12209 if test "$host_cpu" = ia64; then
12210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12211 # chokes on -Wl,-G. The following line is correct:
12212 shared_flag='-G'
12213 else
12214 if test "$aix_use_runtimelinking" = yes; then
12215 shared_flag='${wl}-G'
12216 else
12217 shared_flag='${wl}-bM:SRE'
12222 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12223 # It seems that -bexpall does not export symbols beginning with
12224 # underscore (_), so it is better to generate a list of symbols to
12225 # export.
12226 always_export_symbols_CXX=yes
12227 if test "$aix_use_runtimelinking" = yes; then
12228 # Warning - without using the other runtime loading flags (-brtl),
12229 # -berok will link without error, but may produce a broken library.
12230 allow_undefined_flag_CXX='-berok'
12231 # Determine the default libpath from the value encoded in an empty
12232 # executable.
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12237 main ()
12241 return 0;
12243 _ACEOF
12244 if ac_fn_cxx_try_link "$LINENO"; then :
12246 lt_aix_libpath_sed='
12247 /Import File Strings/,/^$/ {
12248 /^0/ {
12249 s/^0 *\(.*\)$/\1/
12253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254 # Check for a 64-bit object if we didn't find anything.
12255 if test -z "$aix_libpath"; then
12256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12265 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"
12266 else
12267 if test "$host_cpu" = ia64; then
12268 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12269 allow_undefined_flag_CXX="-z nodefs"
12270 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"
12271 else
12272 # Determine the default libpath from the value encoded in an
12273 # empty executable.
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12278 main ()
12282 return 0;
12284 _ACEOF
12285 if ac_fn_cxx_try_link "$LINENO"; then :
12287 lt_aix_libpath_sed='
12288 /Import File Strings/,/^$/ {
12289 /^0/ {
12290 s/^0 *\(.*\)$/\1/
12294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12295 # Check for a 64-bit object if we didn't find anything.
12296 if test -z "$aix_libpath"; then
12297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12304 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12305 # Warning - without using the other run time loading flags,
12306 # -berok will link without error, but may produce a broken library.
12307 no_undefined_flag_CXX=' ${wl}-bernotok'
12308 allow_undefined_flag_CXX=' ${wl}-berok'
12309 if test "$with_gnu_ld" = yes; then
12310 # We only use this code for GNU lds that support --whole-archive.
12311 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12312 else
12313 # Exported symbols can be pulled into shared objects from archives
12314 whole_archive_flag_spec_CXX='$convenience'
12316 archive_cmds_need_lc_CXX=yes
12317 # This is similar to how AIX traditionally builds its shared
12318 # libraries.
12319 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'
12324 beos*)
12325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12326 allow_undefined_flag_CXX=unsupported
12327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12328 # support --undefined. This deserves some investigation. FIXME
12329 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330 else
12331 ld_shlibs_CXX=no
12335 chorus*)
12336 case $cc_basename in
12338 # FIXME: insert proper C++ library support
12339 ld_shlibs_CXX=no
12341 esac
12344 cygwin* | mingw* | pw32* | cegcc*)
12345 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12346 # as there is no search path for DLLs.
12347 hardcode_libdir_flag_spec_CXX='-L$libdir'
12348 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12349 allow_undefined_flag_CXX=unsupported
12350 always_export_symbols_CXX=no
12351 enable_shared_with_static_runtimes_CXX=yes
12353 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12354 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'
12355 # If the export-symbols file already is a .def file (1st line
12356 # is EXPORTS), use it as is; otherwise, prepend...
12357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12358 cp $export_symbols $output_objdir/$soname.def;
12359 else
12360 echo EXPORTS > $output_objdir/$soname.def;
12361 cat $export_symbols >> $output_objdir/$soname.def;
12363 $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'
12364 else
12365 ld_shlibs_CXX=no
12368 darwin* | rhapsody*)
12371 archive_cmds_need_lc_CXX=no
12372 hardcode_direct_CXX=no
12373 hardcode_automatic_CXX=yes
12374 hardcode_shlibpath_var_CXX=unsupported
12375 if test "$lt_cv_ld_force_load" = "yes"; then
12376 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\"`'
12377 else
12378 whole_archive_flag_spec_CXX=''
12380 link_all_deplibs_CXX=yes
12381 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12382 case $cc_basename in
12383 ifort*) _lt_dar_can_shared=yes ;;
12384 *) _lt_dar_can_shared=$GCC ;;
12385 esac
12386 if test "$_lt_dar_can_shared" = "yes"; then
12387 output_verbose_link_cmd=func_echo_all
12388 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}"
12389 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12390 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}"
12391 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}"
12392 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12393 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}"
12394 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}"
12397 else
12398 ld_shlibs_CXX=no
12403 dgux*)
12404 case $cc_basename in
12405 ec++*)
12406 # FIXME: insert proper C++ library support
12407 ld_shlibs_CXX=no
12409 ghcx*)
12410 # Green Hills C++ Compiler
12411 # FIXME: insert proper C++ library support
12412 ld_shlibs_CXX=no
12415 # FIXME: insert proper C++ library support
12416 ld_shlibs_CXX=no
12418 esac
12421 freebsd2.*)
12422 # C++ shared libraries reported to be fairly broken before
12423 # switch to ELF
12424 ld_shlibs_CXX=no
12427 freebsd-elf*)
12428 archive_cmds_need_lc_CXX=no
12431 freebsd* | dragonfly*)
12432 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12433 # conventions
12434 ld_shlibs_CXX=yes
12437 gnu*)
12440 haiku*)
12441 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442 link_all_deplibs_CXX=yes
12445 hpux9*)
12446 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12447 hardcode_libdir_separator_CXX=:
12448 export_dynamic_flag_spec_CXX='${wl}-E'
12449 hardcode_direct_CXX=yes
12450 hardcode_minus_L_CXX=yes # Not in the search PATH,
12451 # but as the default
12452 # location of the library.
12454 case $cc_basename in
12455 CC*)
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12459 aCC*)
12460 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'
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12465 # There doesn't appear to be a way to prevent this compiler from
12466 # explicitly linking system object files so we need to strip them
12467 # from the output so that they don't get included in the library
12468 # dependencies.
12469 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"'
12472 if test "$GXX" = yes; then
12473 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12474 else
12475 # FIXME: insert proper C++ library support
12476 ld_shlibs_CXX=no
12479 esac
12482 hpux10*|hpux11*)
12483 if test $with_gnu_ld = no; then
12484 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12485 hardcode_libdir_separator_CXX=:
12487 case $host_cpu in
12488 hppa*64*|ia64*)
12491 export_dynamic_flag_spec_CXX='${wl}-E'
12493 esac
12495 case $host_cpu in
12496 hppa*64*|ia64*)
12497 hardcode_direct_CXX=no
12498 hardcode_shlibpath_var_CXX=no
12501 hardcode_direct_CXX=yes
12502 hardcode_direct_absolute_CXX=yes
12503 hardcode_minus_L_CXX=yes # Not in the search PATH,
12504 # but as the default
12505 # location of the library.
12507 esac
12509 case $cc_basename in
12510 CC*)
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12514 aCC*)
12515 case $host_cpu in
12516 hppa*64*)
12517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519 ia64*)
12520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12525 esac
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12533 # dependencies.
12534 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"'
12537 if test "$GXX" = yes; then
12538 if test $with_gnu_ld = no; then
12539 case $host_cpu in
12540 hppa*64*)
12541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12543 ia64*)
12544 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12549 esac
12551 else
12552 # FIXME: insert proper C++ library support
12553 ld_shlibs_CXX=no
12556 esac
12559 interix[3-9]*)
12560 hardcode_direct_CXX=no
12561 hardcode_shlibpath_var_CXX=no
12562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12563 export_dynamic_flag_spec_CXX='${wl}-E'
12564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12565 # Instead, shared libraries are loaded at an image base (0x10000000 by
12566 # default) and relocated if they conflict, which is a slow very memory
12567 # consuming and fragmenting process. To avoid this, we pick a random,
12568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12570 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'
12571 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'
12573 irix5* | irix6*)
12574 case $cc_basename in
12575 CC*)
12576 # SGI C++
12577 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'
12579 # Archives containing C++ object files must be created using
12580 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12581 # necessary to make sure instantiated templates are included
12582 # in the archive.
12583 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12586 if test "$GXX" = yes; then
12587 if test "$with_gnu_ld" = no; then
12588 archive_cmds_CXX='$CC -shared -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'
12589 else
12590 archive_cmds_CXX='$CC -shared -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'
12593 link_all_deplibs_CXX=yes
12595 esac
12596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12597 hardcode_libdir_separator_CXX=:
12598 inherit_rpath_CXX=yes
12601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12602 case $cc_basename in
12603 KCC*)
12604 # Kuck and Associates, Inc. (KAI) C++ Compiler
12606 # KCC will only create a shared library if the output file
12607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12608 # to its proper name (with version) after linking.
12609 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'
12610 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'
12611 # Commands to make compiler produce verbose output that lists
12612 # what "hidden" libraries, object files and flags are used when
12613 # linking a shared library.
12615 # There doesn't appear to be a way to prevent this compiler from
12616 # explicitly linking system object files so we need to strip them
12617 # from the output so that they don't get included in the library
12618 # dependencies.
12619 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"'
12621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12622 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12624 # Archives containing C++ object files must be created using
12625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12626 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12628 icpc* | ecpc* )
12629 # Intel C++
12630 with_gnu_ld=yes
12631 # version 8.0 and above of icpc choke on multiply defined symbols
12632 # if we add $predep_objects and $postdep_objects, however 7.1 and
12633 # earlier do not add the objects themselves.
12634 case `$CC -V 2>&1` in
12635 *"Version 7."*)
12636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637 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'
12639 *) # Version 8.0 or newer
12640 tmp_idyn=
12641 case $host_cpu in
12642 ia64*) tmp_idyn=' -i_dynamic';;
12643 esac
12644 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645 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'
12647 esac
12648 archive_cmds_need_lc_CXX=no
12649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12651 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12653 pgCC* | pgcpp*)
12654 # Portland Group C++ compiler
12655 case `$CC -V` in
12656 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12657 prelink_cmds_CXX='tpldir=Template.dir~
12658 rm -rf $tpldir~
12659 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12660 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12661 old_archive_cmds_CXX='tpldir=Template.dir~
12662 rm -rf $tpldir~
12663 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12664 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12665 $RANLIB $oldlib'
12666 archive_cmds_CXX='tpldir=Template.dir~
12667 rm -rf $tpldir~
12668 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12669 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12670 archive_expsym_cmds_CXX='tpldir=Template.dir~
12671 rm -rf $tpldir~
12672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12673 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12675 *) # Version 6 and above use weak symbols
12676 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12677 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'
12679 esac
12681 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12683 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'
12685 cxx*)
12686 # Compaq C++
12687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 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'
12690 runpath_var=LD_RUN_PATH
12691 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12692 hardcode_libdir_separator_CXX=:
12694 # Commands to make compiler produce verbose output that lists
12695 # what "hidden" libraries, object files and flags are used when
12696 # linking a shared library.
12698 # There doesn't appear to be a way to prevent this compiler from
12699 # explicitly linking system object files so we need to strip them
12700 # from the output so that they don't get included in the library
12701 # dependencies.
12702 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'
12704 xl* | mpixl* | bgxl*)
12705 # IBM XL 8.0 on PPC, with GNU ld
12706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12708 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 if test "x$supports_anon_versioning" = xyes; then
12710 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12712 echo "local: *; };" >> $output_objdir/$libname.ver~
12713 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12717 case `$CC -V 2>&1 | sed 5q` in
12718 *Sun\ C*)
12719 # Sun C++ 5.9
12720 no_undefined_flag_CXX=' -zdefs'
12721 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722 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'
12723 hardcode_libdir_flag_spec_CXX='-R$libdir'
12724 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'
12725 compiler_needs_object_CXX=yes
12727 # Not sure whether something based on
12728 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12729 # would be better.
12730 output_verbose_link_cmd='func_echo_all'
12732 # Archives containing C++ object files must be created using
12733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12734 # necessary to make sure instantiated templates are included
12735 # in the archive.
12736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12738 esac
12740 esac
12743 lynxos*)
12744 # FIXME: insert proper C++ library support
12745 ld_shlibs_CXX=no
12748 m88k*)
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12753 mvs*)
12754 case $cc_basename in
12755 cxx*)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12760 # FIXME: insert proper C++ library support
12761 ld_shlibs_CXX=no
12763 esac
12766 netbsd*)
12767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12768 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12769 wlarc=
12770 hardcode_libdir_flag_spec_CXX='-R$libdir'
12771 hardcode_direct_CXX=yes
12772 hardcode_shlibpath_var_CXX=no
12774 # Workaround some broken pre-1.5 toolchains
12775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12778 *nto* | *qnx*)
12779 ld_shlibs_CXX=yes
12782 openbsd2*)
12783 # C++ shared libraries are fairly broken
12784 ld_shlibs_CXX=no
12787 openbsd*)
12788 if test -f /usr/libexec/ld.so; then
12789 hardcode_direct_CXX=yes
12790 hardcode_shlibpath_var_CXX=no
12791 hardcode_direct_absolute_CXX=yes
12792 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12796 export_dynamic_flag_spec_CXX='${wl}-E'
12797 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12799 output_verbose_link_cmd=func_echo_all
12800 else
12801 ld_shlibs_CXX=no
12805 osf3* | osf4* | osf5*)
12806 case $cc_basename in
12807 KCC*)
12808 # Kuck and Associates, Inc. (KAI) C++ Compiler
12810 # KCC will only create a shared library if the output file
12811 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12812 # to its proper name (with version) after linking.
12813 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'
12815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12816 hardcode_libdir_separator_CXX=:
12818 # Archives containing C++ object files must be created using
12819 # the KAI C++ compiler.
12820 case $host in
12821 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12822 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12823 esac
12825 RCC*)
12826 # Rational C++ 2.4.1
12827 # FIXME: insert proper C++ library support
12828 ld_shlibs_CXX=no
12830 cxx*)
12831 case $host in
12832 osf3*)
12833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12834 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'
12835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12838 allow_undefined_flag_CXX=' -expect_unresolved \*'
12839 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'
12840 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12841 echo "-hidden">> $lib.exp~
12842 $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~
12843 $RM $lib.exp'
12844 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12846 esac
12848 hardcode_libdir_separator_CXX=:
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12854 # There doesn't appear to be a way to prevent this compiler from
12855 # explicitly linking system object files so we need to strip them
12856 # from the output so that they don't get included in the library
12857 # dependencies.
12858 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"'
12861 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12863 case $host in
12864 osf3*)
12865 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'
12868 archive_cmds_CXX='$CC -shared -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'
12870 esac
12872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12873 hardcode_libdir_separator_CXX=:
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12880 else
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12885 esac
12888 psos*)
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12893 sunos4*)
12894 case $cc_basename in
12895 CC*)
12896 # Sun C++ 4.x
12897 # FIXME: insert proper C++ library support
12898 ld_shlibs_CXX=no
12900 lcc*)
12901 # Lucid
12902 # FIXME: insert proper C++ library support
12903 ld_shlibs_CXX=no
12906 # FIXME: insert proper C++ library support
12907 ld_shlibs_CXX=no
12909 esac
12912 solaris*)
12913 case $cc_basename in
12914 CC*)
12915 # Sun C++ 4.2, 5.x and Centerline C++
12916 archive_cmds_need_lc_CXX=yes
12917 no_undefined_flag_CXX=' -zdefs'
12918 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12919 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12920 $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'
12922 hardcode_libdir_flag_spec_CXX='-R$libdir'
12923 hardcode_shlibpath_var_CXX=no
12924 case $host_os in
12925 solaris2.[0-5] | solaris2.[0-5].*) ;;
12927 # The compiler driver will combine and reorder linker options,
12928 # but understands `-z linker_flag'.
12929 # Supported since Solaris 2.6 (maybe 2.5.1?)
12930 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12932 esac
12933 link_all_deplibs_CXX=yes
12935 output_verbose_link_cmd='func_echo_all'
12937 # Archives containing C++ object files must be created using
12938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12939 # necessary to make sure instantiated templates are included
12940 # in the archive.
12941 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12943 gcx*)
12944 # Green Hills C++ Compiler
12945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12947 # The C++ compiler must be used to create the archive.
12948 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12951 # GNU C++ compiler with Solaris linker
12952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12953 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12954 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12955 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12956 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12959 # Commands to make compiler produce verbose output that lists
12960 # what "hidden" libraries, object files and flags are used when
12961 # linking a shared library.
12962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12963 else
12964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12965 # platform.
12966 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12967 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12968 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12970 # Commands to make compiler produce verbose output that lists
12971 # what "hidden" libraries, object files and flags are used when
12972 # linking a shared library.
12973 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12976 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12977 case $host_os in
12978 solaris2.[0-5] | solaris2.[0-5].*) ;;
12980 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12982 esac
12985 esac
12988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12989 no_undefined_flag_CXX='${wl}-z,text'
12990 archive_cmds_need_lc_CXX=no
12991 hardcode_shlibpath_var_CXX=no
12992 runpath_var='LD_RUN_PATH'
12994 case $cc_basename in
12995 CC*)
12996 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003 esac
13006 sysv5* | sco3.2v5* | sco5v6*)
13007 # Note: We can NOT use -z defs as we might desire, because we do not
13008 # link with -lc, and that would cause any symbols used from libc to
13009 # always be unresolved, which means just about no library would
13010 # ever link correctly. If we're not using GNU ld we use -z text
13011 # though, which does catch some bad symbols but isn't as heavy-handed
13012 # as -z defs.
13013 no_undefined_flag_CXX='${wl}-z,text'
13014 allow_undefined_flag_CXX='${wl}-z,nodefs'
13015 archive_cmds_need_lc_CXX=no
13016 hardcode_shlibpath_var_CXX=no
13017 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13018 hardcode_libdir_separator_CXX=':'
13019 link_all_deplibs_CXX=yes
13020 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13021 runpath_var='LD_RUN_PATH'
13023 case $cc_basename in
13024 CC*)
13025 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13027 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13028 '"$old_archive_cmds_CXX"
13029 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13030 '"$reload_cmds_CXX"
13033 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13036 esac
13039 tandem*)
13040 case $cc_basename in
13041 NCC*)
13042 # NonStop-UX NCC 3.20
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13050 esac
13053 vxworks*)
13054 # FIXME: insert proper C++ library support
13055 ld_shlibs_CXX=no
13059 # FIXME: insert proper C++ library support
13060 ld_shlibs_CXX=no
13062 esac
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13065 $as_echo "$ld_shlibs_CXX" >&6; }
13066 test "$ld_shlibs_CXX" = no && can_build_shared=no
13068 GCC_CXX="$GXX"
13069 LD_CXX="$LD"
13071 ## CAVEAT EMPTOR:
13072 ## There is no encapsulation within the following macros, do not change
13073 ## the running order or otherwise move them around unless you know exactly
13074 ## what you are doing...
13075 # Dependencies to place before and after the object being linked:
13076 predep_objects_CXX=
13077 postdep_objects_CXX=
13078 predeps_CXX=
13079 postdeps_CXX=
13080 compiler_lib_search_path_CXX=
13082 cat > conftest.$ac_ext <<_LT_EOF
13083 class Foo
13085 public:
13086 Foo (void) { a = 0; }
13087 private:
13088 int a;
13090 _LT_EOF
13092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096 test $ac_status = 0; }; then
13097 # Parse the compiler output and extract the necessary
13098 # objects, libraries and library flags.
13100 # Sentinel used to keep track of whether or not we are before
13101 # the conftest object file.
13102 pre_test_object_deps_done=no
13104 for p in `eval "$output_verbose_link_cmd"`; do
13105 case $p in
13107 -L* | -R* | -l*)
13108 # Some compilers place space between "-{L,R}" and the path.
13109 # Remove the space.
13110 if test $p = "-L" ||
13111 test $p = "-R"; then
13112 prev=$p
13113 continue
13114 else
13115 prev=
13118 if test "$pre_test_object_deps_done" = no; then
13119 case $p in
13120 -L* | -R*)
13121 # Internal compiler library paths should come after those
13122 # provided the user. The postdeps already come after the
13123 # user supplied libs so there is no need to process them.
13124 if test -z "$compiler_lib_search_path_CXX"; then
13125 compiler_lib_search_path_CXX="${prev}${p}"
13126 else
13127 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13130 # The "-l" case would never come before the object being
13131 # linked, so don't bother handling this case.
13132 esac
13133 else
13134 if test -z "$postdeps_CXX"; then
13135 postdeps_CXX="${prev}${p}"
13136 else
13137 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13142 *.$objext)
13143 # This assumes that the test object file only shows up
13144 # once in the compiler output.
13145 if test "$p" = "conftest.$objext"; then
13146 pre_test_object_deps_done=yes
13147 continue
13150 if test "$pre_test_object_deps_done" = no; then
13151 if test -z "$predep_objects_CXX"; then
13152 predep_objects_CXX="$p"
13153 else
13154 predep_objects_CXX="$predep_objects_CXX $p"
13156 else
13157 if test -z "$postdep_objects_CXX"; then
13158 postdep_objects_CXX="$p"
13159 else
13160 postdep_objects_CXX="$postdep_objects_CXX $p"
13165 *) ;; # Ignore the rest.
13167 esac
13168 done
13170 # Clean up.
13171 rm -f a.out a.exe
13172 else
13173 echo "libtool.m4: error: problem compiling CXX test program"
13176 $RM -f confest.$objext
13178 # PORTME: override above test on systems where it is broken
13179 case $host_os in
13180 interix[3-9]*)
13181 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13182 # hack all around it, let's just trust "g++" to DTRT.
13183 predep_objects_CXX=
13184 postdep_objects_CXX=
13185 postdeps_CXX=
13188 linux*)
13189 case `$CC -V 2>&1 | sed 5q` in
13190 *Sun\ C*)
13191 # Sun C++ 5.9
13193 # The more standards-conforming stlport4 library is
13194 # incompatible with the Cstd library. Avoid specifying
13195 # it if it's in CXXFLAGS. Ignore libCrun as
13196 # -library=stlport4 depends on it.
13197 case " $CXX $CXXFLAGS " in
13198 *" -library=stlport4 "*)
13199 solaris_use_stlport4=yes
13201 esac
13203 if test "$solaris_use_stlport4" != yes; then
13204 postdeps_CXX='-library=Cstd -library=Crun'
13207 esac
13210 solaris*)
13211 case $cc_basename in
13212 CC*)
13213 # The more standards-conforming stlport4 library is
13214 # incompatible with the Cstd library. Avoid specifying
13215 # it if it's in CXXFLAGS. Ignore libCrun as
13216 # -library=stlport4 depends on it.
13217 case " $CXX $CXXFLAGS " in
13218 *" -library=stlport4 "*)
13219 solaris_use_stlport4=yes
13221 esac
13223 # Adding this requires a known-good setup of shared libraries for
13224 # Sun compiler versions before 5.6, else PIC objects from an old
13225 # archive will be linked into the output, leading to subtle bugs.
13226 if test "$solaris_use_stlport4" != yes; then
13227 postdeps_CXX='-library=Cstd -library=Crun'
13230 esac
13232 esac
13235 case " $postdeps_CXX " in
13236 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13237 esac
13238 compiler_lib_search_dirs_CXX=
13239 if test -n "${compiler_lib_search_path_CXX}"; then
13240 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13273 lt_prog_compiler_wl_CXX=
13274 lt_prog_compiler_pic_CXX=
13275 lt_prog_compiler_static_CXX=
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13278 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13280 # C++ specific cases for pic, static, wl, etc.
13281 if test "$GXX" = yes; then
13282 lt_prog_compiler_wl_CXX='-Wl,'
13283 lt_prog_compiler_static_CXX='-static'
13285 case $host_os in
13286 aix*)
13287 # All AIX code is PIC.
13288 if test "$host_cpu" = ia64; then
13289 # AIX 5 now supports IA64 processor
13290 lt_prog_compiler_static_CXX='-Bstatic'
13292 lt_prog_compiler_pic_CXX='-fPIC'
13295 amigaos*)
13296 case $host_cpu in
13297 powerpc)
13298 # see comment about AmigaOS4 .so support
13299 lt_prog_compiler_pic_CXX='-fPIC'
13301 m68k)
13302 # FIXME: we need at least 68020 code to build shared libraries, but
13303 # adding the `-m68020' flag to GCC prevents building anything better,
13304 # like `-m68040'.
13305 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13307 esac
13310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13311 # PIC is the default for these OSes.
13313 mingw* | cygwin* | os2* | pw32* | cegcc*)
13314 # This hack is so that the source file can tell whether it is being
13315 # built for inclusion in a dll (and should export symbols for example).
13316 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13317 # (--disable-auto-import) libraries
13318 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13320 darwin* | rhapsody*)
13321 # PIC is the default on this platform
13322 # Common symbols not allowed in MH_DYLIB files
13323 lt_prog_compiler_pic_CXX='-fno-common'
13325 *djgpp*)
13326 # DJGPP does not support shared libraries at all
13327 lt_prog_compiler_pic_CXX=
13329 haiku*)
13330 # PIC is the default for Haiku.
13331 # The "-static" flag exists, but is broken.
13332 lt_prog_compiler_static_CXX=
13334 interix[3-9]*)
13335 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13336 # Instead, we relocate shared libraries at runtime.
13338 sysv4*MP*)
13339 if test -d /usr/nec; then
13340 lt_prog_compiler_pic_CXX=-Kconform_pic
13343 hpux*)
13344 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13345 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13346 # sets the default TLS model and affects inlining.
13347 case $host_cpu in
13348 hppa*64*)
13351 lt_prog_compiler_pic_CXX='-fPIC'
13353 esac
13355 *qnx* | *nto*)
13356 # QNX uses GNU C++, but need to define -shared option too, otherwise
13357 # it will coredump.
13358 lt_prog_compiler_pic_CXX='-fPIC -shared'
13361 lt_prog_compiler_pic_CXX='-fPIC'
13363 esac
13364 else
13365 case $host_os in
13366 aix[4-9]*)
13367 # All AIX code is PIC.
13368 if test "$host_cpu" = ia64; then
13369 # AIX 5 now supports IA64 processor
13370 lt_prog_compiler_static_CXX='-Bstatic'
13371 else
13372 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13375 chorus*)
13376 case $cc_basename in
13377 cxch68*)
13378 # Green Hills C++ Compiler
13379 # _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"
13381 esac
13383 dgux*)
13384 case $cc_basename in
13385 ec++*)
13386 lt_prog_compiler_pic_CXX='-KPIC'
13388 ghcx*)
13389 # Green Hills C++ Compiler
13390 lt_prog_compiler_pic_CXX='-pic'
13394 esac
13396 freebsd* | dragonfly*)
13397 # FreeBSD uses GNU C++
13399 hpux9* | hpux10* | hpux11*)
13400 case $cc_basename in
13401 CC*)
13402 lt_prog_compiler_wl_CXX='-Wl,'
13403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13404 if test "$host_cpu" != ia64; then
13405 lt_prog_compiler_pic_CXX='+Z'
13408 aCC*)
13409 lt_prog_compiler_wl_CXX='-Wl,'
13410 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13411 case $host_cpu in
13412 hppa*64*|ia64*)
13413 # +Z the default
13416 lt_prog_compiler_pic_CXX='+Z'
13418 esac
13422 esac
13424 interix*)
13425 # This is c89, which is MS Visual C++ (no shared libs)
13426 # Anyone wants to do a port?
13428 irix5* | irix6* | nonstopux*)
13429 case $cc_basename in
13430 CC*)
13431 lt_prog_compiler_wl_CXX='-Wl,'
13432 lt_prog_compiler_static_CXX='-non_shared'
13433 # CC pic flag -KPIC is the default.
13437 esac
13439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13440 case $cc_basename in
13441 KCC*)
13442 # KAI C++ Compiler
13443 lt_prog_compiler_wl_CXX='--backend -Wl,'
13444 lt_prog_compiler_pic_CXX='-fPIC'
13446 ecpc* )
13447 # old Intel C++ for x86_64 which still supported -KPIC.
13448 lt_prog_compiler_wl_CXX='-Wl,'
13449 lt_prog_compiler_pic_CXX='-KPIC'
13450 lt_prog_compiler_static_CXX='-static'
13452 icpc* )
13453 # Intel C++, used to be incompatible with GCC.
13454 # ICC 10 doesn't accept -KPIC any more.
13455 lt_prog_compiler_wl_CXX='-Wl,'
13456 lt_prog_compiler_pic_CXX='-fPIC'
13457 lt_prog_compiler_static_CXX='-static'
13459 pgCC* | pgcpp*)
13460 # Portland Group C++ compiler
13461 lt_prog_compiler_wl_CXX='-Wl,'
13462 lt_prog_compiler_pic_CXX='-fpic'
13463 lt_prog_compiler_static_CXX='-Bstatic'
13465 cxx*)
13466 # Compaq C++
13467 # Make sure the PIC flag is empty. It appears that all Alpha
13468 # Linux and Compaq Tru64 Unix objects are PIC.
13469 lt_prog_compiler_pic_CXX=
13470 lt_prog_compiler_static_CXX='-non_shared'
13472 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13473 # IBM XL 8.0, 9.0 on PPC and BlueGene
13474 lt_prog_compiler_wl_CXX='-Wl,'
13475 lt_prog_compiler_pic_CXX='-qpic'
13476 lt_prog_compiler_static_CXX='-qstaticlink'
13479 case `$CC -V 2>&1 | sed 5q` in
13480 *Sun\ C*)
13481 # Sun C++ 5.9
13482 lt_prog_compiler_pic_CXX='-KPIC'
13483 lt_prog_compiler_static_CXX='-Bstatic'
13484 lt_prog_compiler_wl_CXX='-Qoption ld '
13486 esac
13488 esac
13490 lynxos*)
13492 m88k*)
13494 mvs*)
13495 case $cc_basename in
13496 cxx*)
13497 lt_prog_compiler_pic_CXX='-W c,exportall'
13501 esac
13503 netbsd*)
13505 *qnx* | *nto*)
13506 # QNX uses GNU C++, but need to define -shared option too, otherwise
13507 # it will coredump.
13508 lt_prog_compiler_pic_CXX='-fPIC -shared'
13510 osf3* | osf4* | osf5*)
13511 case $cc_basename in
13512 KCC*)
13513 lt_prog_compiler_wl_CXX='--backend -Wl,'
13515 RCC*)
13516 # Rational C++ 2.4.1
13517 lt_prog_compiler_pic_CXX='-pic'
13519 cxx*)
13520 # Digital/Compaq C++
13521 lt_prog_compiler_wl_CXX='-Wl,'
13522 # Make sure the PIC flag is empty. It appears that all Alpha
13523 # Linux and Compaq Tru64 Unix objects are PIC.
13524 lt_prog_compiler_pic_CXX=
13525 lt_prog_compiler_static_CXX='-non_shared'
13529 esac
13531 psos*)
13533 solaris*)
13534 case $cc_basename in
13535 CC*)
13536 # Sun C++ 4.2, 5.x and Centerline C++
13537 lt_prog_compiler_pic_CXX='-KPIC'
13538 lt_prog_compiler_static_CXX='-Bstatic'
13539 lt_prog_compiler_wl_CXX='-Qoption ld '
13541 gcx*)
13542 # Green Hills C++ Compiler
13543 lt_prog_compiler_pic_CXX='-PIC'
13547 esac
13549 sunos4*)
13550 case $cc_basename in
13551 CC*)
13552 # Sun C++ 4.x
13553 lt_prog_compiler_pic_CXX='-pic'
13554 lt_prog_compiler_static_CXX='-Bstatic'
13556 lcc*)
13557 # Lucid
13558 lt_prog_compiler_pic_CXX='-pic'
13562 esac
13564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13565 case $cc_basename in
13566 CC*)
13567 lt_prog_compiler_wl_CXX='-Wl,'
13568 lt_prog_compiler_pic_CXX='-KPIC'
13569 lt_prog_compiler_static_CXX='-Bstatic'
13571 esac
13573 tandem*)
13574 case $cc_basename in
13575 NCC*)
13576 # NonStop-UX NCC 3.20
13577 lt_prog_compiler_pic_CXX='-KPIC'
13581 esac
13583 vxworks*)
13586 lt_prog_compiler_can_build_shared_CXX=no
13588 esac
13591 case $host_os in
13592 # For platforms which do not support PIC, -DPIC is meaningless:
13593 *djgpp*)
13594 lt_prog_compiler_pic_CXX=
13597 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13599 esac
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13601 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13606 # Check to make sure the PIC flag actually works.
13608 if test -n "$lt_prog_compiler_pic_CXX"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13611 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 lt_cv_prog_compiler_pic_works_CXX=no
13615 ac_outfile=conftest.$ac_objext
13616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13617 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13618 # Insert the option either (1) after the last *FLAGS variable, or
13619 # (2) before a word containing "conftest.", or (3) at the end.
13620 # Note that $ac_compile itself does not contain backslashes and begins
13621 # with a dollar sign (not a hyphen), so the echo should work correctly.
13622 # The option is referenced via a variable to avoid confusing sed.
13623 lt_compile=`echo "$ac_compile" | $SED \
13624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13626 -e 's:$: $lt_compiler_flag:'`
13627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13628 (eval "$lt_compile" 2>conftest.err)
13629 ac_status=$?
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 if (exit $ac_status) && test -s "$ac_outfile"; then
13633 # The compiler can only warn and ignore the option if not recognized
13634 # So say no if there are warnings other than the usual output.
13635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13638 lt_cv_prog_compiler_pic_works_CXX=yes
13641 $RM conftest*
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13645 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13647 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13648 case $lt_prog_compiler_pic_CXX in
13649 "" | " "*) ;;
13650 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13651 esac
13652 else
13653 lt_prog_compiler_pic_CXX=
13654 lt_prog_compiler_can_build_shared_CXX=no
13662 # Check to make sure the static flag actually works.
13664 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13666 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13667 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 lt_cv_prog_compiler_static_works_CXX=no
13671 save_LDFLAGS="$LDFLAGS"
13672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13673 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13675 # The linker can only warn and ignore the option if not recognized
13676 # So say no if there are warnings
13677 if test -s conftest.err; then
13678 # Append any errors to the config.log.
13679 cat conftest.err 1>&5
13680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13682 if diff conftest.exp conftest.er2 >/dev/null; then
13683 lt_cv_prog_compiler_static_works_CXX=yes
13685 else
13686 lt_cv_prog_compiler_static_works_CXX=yes
13689 $RM -r conftest*
13690 LDFLAGS="$save_LDFLAGS"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13694 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13696 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13698 else
13699 lt_prog_compiler_static_CXX=
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13707 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 lt_cv_prog_compiler_c_o_CXX=no
13711 $RM -r conftest 2>/dev/null
13712 mkdir conftest
13713 cd conftest
13714 mkdir out
13715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13717 lt_compiler_flag="-o out/conftest2.$ac_objext"
13718 # Insert the option either (1) after the last *FLAGS variable, or
13719 # (2) before a word containing "conftest.", or (3) at the end.
13720 # Note that $ac_compile itself does not contain backslashes and begins
13721 # with a dollar sign (not a hyphen), so the echo should work correctly.
13722 lt_compile=`echo "$ac_compile" | $SED \
13723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13725 -e 's:$: $lt_compiler_flag:'`
13726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13727 (eval "$lt_compile" 2>out/conftest.err)
13728 ac_status=$?
13729 cat out/conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13732 then
13733 # The compiler can only warn and ignore the option if not recognized
13734 # So say no if there are warnings
13735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13738 lt_cv_prog_compiler_c_o_CXX=yes
13741 chmod u+w . 2>&5
13742 $RM conftest*
13743 # SGI C++ compiler will create directory out/ii_files/ for
13744 # template instantiation
13745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13746 $RM out/* && rmdir out
13747 cd ..
13748 $RM -r conftest
13749 $RM conftest*
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13753 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13759 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 lt_cv_prog_compiler_c_o_CXX=no
13763 $RM -r conftest 2>/dev/null
13764 mkdir conftest
13765 cd conftest
13766 mkdir out
13767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13769 lt_compiler_flag="-o out/conftest2.$ac_objext"
13770 # Insert the option either (1) after the last *FLAGS variable, or
13771 # (2) before a word containing "conftest.", or (3) at the end.
13772 # Note that $ac_compile itself does not contain backslashes and begins
13773 # with a dollar sign (not a hyphen), so the echo should work correctly.
13774 lt_compile=`echo "$ac_compile" | $SED \
13775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777 -e 's:$: $lt_compiler_flag:'`
13778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13779 (eval "$lt_compile" 2>out/conftest.err)
13780 ac_status=$?
13781 cat out/conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13784 then
13785 # The compiler can only warn and ignore the option if not recognized
13786 # So say no if there are warnings
13787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13790 lt_cv_prog_compiler_c_o_CXX=yes
13793 chmod u+w . 2>&5
13794 $RM conftest*
13795 # SGI C++ compiler will create directory out/ii_files/ for
13796 # template instantiation
13797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13798 $RM out/* && rmdir out
13799 cd ..
13800 $RM -r conftest
13801 $RM conftest*
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13805 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13810 hard_links="nottested"
13811 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13812 # do not overwrite the value of need_locks provided by the user
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13814 $as_echo_n "checking if we can lock with hard links... " >&6; }
13815 hard_links=yes
13816 $RM conftest*
13817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13818 touch conftest.a
13819 ln conftest.a conftest.b 2>&5 || hard_links=no
13820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13822 $as_echo "$hard_links" >&6; }
13823 if test "$hard_links" = no; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13825 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13826 need_locks=warn
13828 else
13829 need_locks=no
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13837 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13838 case $host_os in
13839 aix[4-9]*)
13840 # If we're using GNU nm, then we don't want the "-C" option.
13841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13842 # Also, AIX nm treats weak defined symbols like other global defined
13843 # symbols, whereas GNU nm marks them as "W".
13844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13845 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'
13846 else
13847 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13850 pw32*)
13851 export_symbols_cmds_CXX="$ltdll_cmds"
13853 cygwin* | mingw* | cegcc*)
13854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13859 esac
13860 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13863 $as_echo "$ld_shlibs_CXX" >&6; }
13864 test "$ld_shlibs_CXX" = no && can_build_shared=no
13866 with_gnu_ld_CXX=$with_gnu_ld
13874 # Do we need to explicitly link libc?
13876 case "x$archive_cmds_need_lc_CXX" in
13877 x|xyes)
13878 # Assume -lc should be added
13879 archive_cmds_need_lc_CXX=yes
13881 if test "$enable_shared" = yes && test "$GCC" = yes; then
13882 case $archive_cmds_CXX in
13883 *'~'*)
13884 # FIXME: we may have to deal with multi-command sequences.
13886 '$CC '*)
13887 # Test whether the compiler implicitly links with -lc since on some
13888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13889 # to ld, don't add -lc before -lgcc.
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13892 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 $RM conftest*
13896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13899 (eval $ac_compile) 2>&5
13900 ac_status=$?
13901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; } 2>conftest.err; then
13903 soname=conftest
13904 lib=conftest
13905 libobjs=conftest.$ac_objext
13906 deplibs=
13907 wl=$lt_prog_compiler_wl_CXX
13908 pic_flag=$lt_prog_compiler_pic_CXX
13909 compiler_flags=-v
13910 linker_flags=-v
13911 verstring=
13912 output_objdir=.
13913 libname=conftest
13914 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13915 allow_undefined_flag_CXX=
13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13917 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13918 ac_status=$?
13919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920 test $ac_status = 0; }
13921 then
13922 lt_cv_archive_cmds_need_lc_CXX=no
13923 else
13924 lt_cv_archive_cmds_need_lc_CXX=yes
13926 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13927 else
13928 cat conftest.err 1>&5
13930 $RM conftest*
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13934 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13935 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13937 esac
13940 esac
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14006 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14008 library_names_spec=
14009 libname_spec='lib$name'
14010 soname_spec=
14011 shrext_cmds=".so"
14012 postinstall_cmds=
14013 postuninstall_cmds=
14014 finish_cmds=
14015 finish_eval=
14016 shlibpath_var=
14017 shlibpath_overrides_runpath=unknown
14018 version_type=none
14019 dynamic_linker="$host_os ld.so"
14020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14021 need_lib_prefix=unknown
14022 hardcode_into_libs=no
14024 # when you set need_version to no, make sure it does not cause -set_version
14025 # flags to be left without arguments
14026 need_version=unknown
14028 case $host_os in
14029 aix3*)
14030 version_type=linux
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14032 shlibpath_var=LIBPATH
14034 # AIX 3 has no versioning support, so we append a major version to the name.
14035 soname_spec='${libname}${release}${shared_ext}$major'
14038 aix[4-9]*)
14039 version_type=linux
14040 need_lib_prefix=no
14041 need_version=no
14042 hardcode_into_libs=yes
14043 if test "$host_cpu" = ia64; then
14044 # AIX 5 supports IA64
14045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 else
14048 # With GCC up to 2.95.x, collect2 would create an import file
14049 # for dependence libraries. The import file would start with
14050 # the line `#! .'. This would cause the generated library to
14051 # depend on `.', always an invalid library. This was fixed in
14052 # development snapshots of GCC prior to 3.0.
14053 case $host_os in
14054 aix4 | aix4.[01] | aix4.[01].*)
14055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14056 echo ' yes '
14057 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14059 else
14060 can_build_shared=no
14063 esac
14064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14065 # soname into executable. Probably we can add versioning support to
14066 # collect2, so additional links can be useful in future.
14067 if test "$aix_use_runtimelinking" = yes; then
14068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14069 # instead of lib<name>.a to let people know that these are not
14070 # typical AIX shared libraries.
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 else
14073 # We preserve .a as extension for shared libraries through AIX4.2
14074 # and later when we are not doing run time linking.
14075 library_names_spec='${libname}${release}.a $libname.a'
14076 soname_spec='${libname}${release}${shared_ext}$major'
14078 shlibpath_var=LIBPATH
14082 amigaos*)
14083 case $host_cpu in
14084 powerpc)
14085 # Since July 2007 AmigaOS4 officially supports .so libraries.
14086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 m68k)
14090 library_names_spec='$libname.ixlibrary $libname.a'
14091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14092 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'
14094 esac
14097 beos*)
14098 library_names_spec='${libname}${shared_ext}'
14099 dynamic_linker="$host_os ld.so"
14100 shlibpath_var=LIBRARY_PATH
14103 bsdi[45]*)
14104 version_type=linux
14105 need_version=no
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14111 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14112 # the default ld.so.conf also contains /usr/contrib/lib and
14113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14114 # libtool to hard-code these into programs
14117 cygwin* | mingw* | pw32* | cegcc*)
14118 version_type=windows
14119 shrext_cmds=".dll"
14120 need_version=no
14121 need_lib_prefix=no
14123 case $GCC,$host_os in
14124 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14125 library_names_spec='$libname.dll.a'
14126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14127 postinstall_cmds='base_file=`basename \${file}`~
14128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14129 dldir=$destdir/`dirname \$dlpath`~
14130 test -d \$dldir || mkdir -p \$dldir~
14131 $install_prog $dir/$dlname \$dldir/$dlname~
14132 chmod a+x \$dldir/$dlname~
14133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14137 dlpath=$dir/\$dldll~
14138 $RM \$dlpath'
14139 shlibpath_overrides_runpath=yes
14141 case $host_os in
14142 cygwin*)
14143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14147 mingw* | cegcc*)
14148 # MinGW DLLs use traditional 'lib' prefix
14149 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14151 pw32*)
14152 # pw32 DLLs use 'pw' prefix rather than 'lib'
14153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14155 esac
14159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14161 esac
14162 dynamic_linker='Win32 ld.exe'
14163 # FIXME: first we should search . and the directory the executable is in
14164 shlibpath_var=PATH
14167 darwin* | rhapsody*)
14168 dynamic_linker="$host_os dyld"
14169 version_type=darwin
14170 need_lib_prefix=no
14171 need_version=no
14172 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14173 soname_spec='${libname}${release}${major}$shared_ext'
14174 shlibpath_overrides_runpath=yes
14175 shlibpath_var=DYLD_LIBRARY_PATH
14176 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14181 dgux*)
14182 version_type=linux
14183 need_lib_prefix=no
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14190 freebsd* | dragonfly*)
14191 # DragonFly does not have aout. When/if they implement a new
14192 # versioning mechanism, adjust this.
14193 if test -x /usr/bin/objformat; then
14194 objformat=`/usr/bin/objformat`
14195 else
14196 case $host_os in
14197 freebsd[23].*) objformat=aout ;;
14198 *) objformat=elf ;;
14199 esac
14201 version_type=freebsd-$objformat
14202 case $version_type in
14203 freebsd-elf*)
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14205 need_version=no
14206 need_lib_prefix=no
14208 freebsd-*)
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14210 need_version=yes
14212 esac
14213 shlibpath_var=LD_LIBRARY_PATH
14214 case $host_os in
14215 freebsd2.*)
14216 shlibpath_overrides_runpath=yes
14218 freebsd3.[01]* | freebsdelf3.[01]*)
14219 shlibpath_overrides_runpath=yes
14220 hardcode_into_libs=yes
14222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14224 shlibpath_overrides_runpath=no
14225 hardcode_into_libs=yes
14227 *) # from 4.6 on, and DragonFly
14228 shlibpath_overrides_runpath=yes
14229 hardcode_into_libs=yes
14231 esac
14234 gnu*)
14235 version_type=linux
14236 need_lib_prefix=no
14237 need_version=no
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14239 soname_spec='${libname}${release}${shared_ext}$major'
14240 shlibpath_var=LD_LIBRARY_PATH
14241 hardcode_into_libs=yes
14244 haiku*)
14245 version_type=linux
14246 need_lib_prefix=no
14247 need_version=no
14248 dynamic_linker="$host_os runtime_loader"
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 shlibpath_var=LIBRARY_PATH
14252 shlibpath_overrides_runpath=yes
14253 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14254 hardcode_into_libs=yes
14257 hpux9* | hpux10* | hpux11*)
14258 # Give a soname corresponding to the major version so that dld.sl refuses to
14259 # link against other versions.
14260 version_type=sunos
14261 need_lib_prefix=no
14262 need_version=no
14263 case $host_cpu in
14264 ia64*)
14265 shrext_cmds='.so'
14266 hardcode_into_libs=yes
14267 dynamic_linker="$host_os dld.so"
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 if test "X$HPUX_IA64_MODE" = X32; then
14273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14274 else
14275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14279 hppa*64*)
14280 shrext_cmds='.sl'
14281 hardcode_into_libs=yes
14282 dynamic_linker="$host_os dld.sl"
14283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286 soname_spec='${libname}${release}${shared_ext}$major'
14287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14291 shrext_cmds='.sl'
14292 dynamic_linker="$host_os dld.sl"
14293 shlibpath_var=SHLIB_PATH
14294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 soname_spec='${libname}${release}${shared_ext}$major'
14298 esac
14299 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14300 postinstall_cmds='chmod 555 $lib'
14301 # or fails outright, so override atomically:
14302 install_override_mode=555
14305 interix[3-9]*)
14306 version_type=linux
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14312 shlibpath_var=LD_LIBRARY_PATH
14313 shlibpath_overrides_runpath=no
14314 hardcode_into_libs=yes
14317 irix5* | irix6* | nonstopux*)
14318 case $host_os in
14319 nonstopux*) version_type=nonstopux ;;
14321 if test "$lt_cv_prog_gnu_ld" = yes; then
14322 version_type=linux
14323 else
14324 version_type=irix
14325 fi ;;
14326 esac
14327 need_lib_prefix=no
14328 need_version=no
14329 soname_spec='${libname}${release}${shared_ext}$major'
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14331 case $host_os in
14332 irix5* | nonstopux*)
14333 libsuff= shlibsuff=
14336 case $LD in # libtool.m4 will add one of these switches to LD
14337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14338 libsuff= shlibsuff= libmagic=32-bit;;
14339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14340 libsuff=32 shlibsuff=N32 libmagic=N32;;
14341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14343 *) libsuff= shlibsuff= libmagic=never-match;;
14344 esac
14346 esac
14347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14348 shlibpath_overrides_runpath=no
14349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14351 hardcode_into_libs=yes
14354 # No shared lib support for Linux oldld, aout, or coff.
14355 linux*oldld* | linux*aout* | linux*coff*)
14356 dynamic_linker=no
14359 # This must be Linux ELF.
14360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14361 version_type=linux
14362 need_lib_prefix=no
14363 need_version=no
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath=no
14370 # Some binutils ld are patched to set DT_RUNPATH
14371 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 lt_cv_shlibpath_overrides_runpath=no
14375 save_LDFLAGS=$LDFLAGS
14376 save_libdir=$libdir
14377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14383 main ()
14387 return 0;
14389 _ACEOF
14390 if ac_fn_cxx_try_link "$LINENO"; then :
14391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14392 lt_cv_shlibpath_overrides_runpath=yes
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LDFLAGS=$save_LDFLAGS
14398 libdir=$save_libdir
14402 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14404 # This implies no fast_install, which is unacceptable.
14405 # Some rework will be needed to allow for fast_install
14406 # before this can be enabled.
14407 hardcode_into_libs=yes
14409 # Append ld.so.conf contents to the search path
14410 if test -f /etc/ld.so.conf; then
14411 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' ' '`
14412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14415 # We used to test for /lib/ld.so.1 and disable shared libraries on
14416 # powerpc, because MkLinux only supported shared libraries with the
14417 # GNU dynamic linker. Since this was broken with cross compilers,
14418 # most powerpc-linux boxes support dynamic linking these days and
14419 # people can always --disable-shared, the test was removed, and we
14420 # assume the GNU/Linux dynamic linker is in use.
14421 dynamic_linker='GNU/Linux ld.so'
14424 netbsd*)
14425 version_type=sunos
14426 need_lib_prefix=no
14427 need_version=no
14428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14431 dynamic_linker='NetBSD (a.out) ld.so'
14432 else
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 dynamic_linker='NetBSD ld.elf_so'
14437 shlibpath_var=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath=yes
14439 hardcode_into_libs=yes
14442 newsos6)
14443 version_type=linux
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes
14449 *nto* | *qnx*)
14450 version_type=qnx
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=no
14457 hardcode_into_libs=yes
14458 dynamic_linker='ldqnx.so'
14461 openbsd*)
14462 version_type=sunos
14463 sys_lib_dlsearch_path_spec="/usr/lib"
14464 need_lib_prefix=no
14465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14466 case $host_os in
14467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14468 *) need_version=no ;;
14469 esac
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14474 case $host_os in
14475 openbsd2.[89] | openbsd2.[89].*)
14476 shlibpath_overrides_runpath=no
14479 shlibpath_overrides_runpath=yes
14481 esac
14482 else
14483 shlibpath_overrides_runpath=yes
14487 os2*)
14488 libname_spec='$name'
14489 shrext_cmds=".dll"
14490 need_lib_prefix=no
14491 library_names_spec='$libname${shared_ext} $libname.a'
14492 dynamic_linker='OS/2 ld.exe'
14493 shlibpath_var=LIBPATH
14496 osf3* | osf4* | osf5*)
14497 version_type=osf
14498 need_lib_prefix=no
14499 need_version=no
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14507 rdos*)
14508 dynamic_linker=no
14511 solaris*)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14520 # ldd complains unless libraries are executable
14521 postinstall_cmds='chmod +x $lib'
14524 sunos4*)
14525 version_type=sunos
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 if test "$with_gnu_ld" = yes; then
14531 need_lib_prefix=no
14533 need_version=yes
14536 sysv4 | sysv4.3*)
14537 version_type=linux
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 case $host_vendor in
14542 sni)
14543 shlibpath_overrides_runpath=no
14544 need_lib_prefix=no
14545 runpath_var=LD_RUN_PATH
14547 siemens)
14548 need_lib_prefix=no
14550 motorola)
14551 need_lib_prefix=no
14552 need_version=no
14553 shlibpath_overrides_runpath=no
14554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14556 esac
14559 sysv4*MP*)
14560 if test -d /usr/nec ;then
14561 version_type=linux
14562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14563 soname_spec='$libname${shared_ext}.$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14569 version_type=freebsd-elf
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=yes
14576 hardcode_into_libs=yes
14577 if test "$with_gnu_ld" = yes; then
14578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14579 else
14580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14581 case $host_os in
14582 sco3.2v5*)
14583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14585 esac
14587 sys_lib_dlsearch_path_spec='/usr/lib'
14590 tpf*)
14591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14592 version_type=linux
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=no
14598 hardcode_into_libs=yes
14601 uts4*)
14602 version_type=linux
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 shlibpath_var=LD_LIBRARY_PATH
14609 dynamic_linker=no
14611 esac
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14613 $as_echo "$dynamic_linker" >&6; }
14614 test "$dynamic_linker" = no && can_build_shared=no
14616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14617 if test "$GCC" = yes; then
14618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14666 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14667 hardcode_action_CXX=
14668 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14669 test -n "$runpath_var_CXX" ||
14670 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14672 # We can hardcode non-existent directories.
14673 if test "$hardcode_direct_CXX" != no &&
14674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14675 # have to relink, otherwise we might link with an installed library
14676 # when we should be linking with a yet-to-be-installed one
14677 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14678 test "$hardcode_minus_L_CXX" != no; then
14679 # Linking always hardcodes the temporary library directory.
14680 hardcode_action_CXX=relink
14681 else
14682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14683 hardcode_action_CXX=immediate
14685 else
14686 # We cannot hardcode anything, or else we can only hardcode existing
14687 # directories.
14688 hardcode_action_CXX=unsupported
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14691 $as_echo "$hardcode_action_CXX" >&6; }
14693 if test "$hardcode_action_CXX" = relink ||
14694 test "$inherit_rpath_CXX" = yes; then
14695 # Fast installation is not supported
14696 enable_fast_install=no
14697 elif test "$shlibpath_overrides_runpath" = yes ||
14698 test "$enable_shared" = no; then
14699 # Fast installation is not necessary
14700 enable_fast_install=needless
14709 fi # test -n "$compiler"
14711 CC=$lt_save_CC
14712 LDCXX=$LD
14713 LD=$lt_save_LD
14714 GCC=$lt_save_GCC
14715 with_gnu_ld=$lt_save_with_gnu_ld
14716 lt_cv_path_LDCXX=$lt_cv_path_LD
14717 lt_cv_path_LD=$lt_save_path_LD
14718 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14719 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14720 fi # test "$_lt_caught_CXX_error" != yes
14722 ac_ext=c
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14740 ac_config_commands="$ac_config_commands libtool"
14745 # Only expand once:
14749 # Test for 64-bit build.
14750 # The cast to long int works around a bug in the HP C Compiler
14751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14753 # This bug is HP SR number 8606223364.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14755 $as_echo_n "checking size of size_t... " >&6; }
14756 if test "${ac_cv_sizeof_size_t+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14761 else
14762 if test "$ac_cv_type_size_t" = yes; then
14763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14765 { as_fn_set_status 77
14766 as_fn_error "cannot compute sizeof (size_t)
14767 See \`config.log' for more details." "$LINENO" 5; }; }
14768 else
14769 ac_cv_sizeof_size_t=0
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14775 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14779 cat >>confdefs.h <<_ACEOF
14780 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14781 _ACEOF
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14787 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14788 # Check whether --enable-maintainer-mode was given.
14789 if test "${enable_maintainer_mode+set}" = set; then :
14790 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14791 else
14792 USE_MAINTAINER_MODE=no
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14796 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14797 if test $USE_MAINTAINER_MODE = yes; then
14798 MAINTAINER_MODE_TRUE=
14799 MAINTAINER_MODE_FALSE='#'
14800 else
14801 MAINTAINER_MODE_TRUE='#'
14802 MAINTAINER_MODE_FALSE=
14805 MAINT=$MAINTAINER_MODE_TRUE
14809 for ac_header in sys/mman.h
14810 do :
14811 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14812 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14813 cat >>confdefs.h <<_ACEOF
14814 #define HAVE_SYS_MMAN_H 1
14815 _ACEOF
14819 done
14821 for ac_func in mmap mkostemp
14822 do :
14823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14825 eval as_val=\$$as_ac_var
14826 if test "x$as_val" = x""yes; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14829 _ACEOF
14832 done
14835 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14837 libffi_header_sys_mman_h=yes
14838 else
14839 libffi_header_sys_mman_h=no
14843 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14844 if test "x$ac_cv_func_mmap" = x""yes; then :
14845 libffi_func_mmap=yes
14846 else
14847 libffi_func_mmap=no
14850 if test "$libffi_header_sys_mman_h" != yes \
14851 || test "$libffi_func_mmap" != yes; then
14852 ac_cv_func_mmap_file=no
14853 ac_cv_func_mmap_dev_zero=no
14854 ac_cv_func_mmap_anon=no
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14857 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14858 if test "${ac_cv_func_mmap_file+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 # Add a system to this blacklist if
14862 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14863 # memory area containing the same data that you'd get if you applied
14864 # read() to the same fd. The only system known to have a problem here
14865 # is VMS, where text files have record structure.
14866 case "$host_os" in
14867 vms* | ultrix*)
14868 ac_cv_func_mmap_file=no ;;
14870 ac_cv_func_mmap_file=yes;;
14871 esac
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14874 $as_echo "$ac_cv_func_mmap_file" >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14876 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14877 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 # Add a system to this blacklist if it has mmap() but /dev/zero
14881 # does not exist, or if mmapping /dev/zero does not give anonymous
14882 # zeroed pages with both the following properties:
14883 # 1. If you map N consecutive pages in with one call, and then
14884 # unmap any subset of those pages, the pages that were not
14885 # explicitly unmapped remain accessible.
14886 # 2. If you map two adjacent blocks of memory and then unmap them
14887 # both at once, they must both go away.
14888 # Systems known to be in this category are Windows (all variants),
14889 # VMS, and Darwin.
14890 case "$host_os" in
14891 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
14892 ac_cv_func_mmap_dev_zero=no ;;
14894 ac_cv_func_mmap_dev_zero=yes;;
14895 esac
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14898 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
14900 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14902 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14903 if test "${ac_cv_decl_map_anon+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14909 #include <sys/mman.h>
14910 #include <unistd.h>
14912 #ifndef MAP_ANONYMOUS
14913 #define MAP_ANONYMOUS MAP_ANON
14914 #endif
14917 main ()
14919 int n = MAP_ANONYMOUS;
14921 return 0;
14923 _ACEOF
14924 if ac_fn_c_try_compile "$LINENO"; then :
14925 ac_cv_decl_map_anon=yes
14926 else
14927 ac_cv_decl_map_anon=no
14929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14932 $as_echo "$ac_cv_decl_map_anon" >&6; }
14934 if test $ac_cv_decl_map_anon = no; then
14935 ac_cv_func_mmap_anon=no
14936 else
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14938 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14939 if test "${ac_cv_func_mmap_anon+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14941 else
14942 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14943 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14944 # doesn't give anonymous zeroed pages with the same properties listed
14945 # above for use of /dev/zero.
14946 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14947 case "$host_os" in
14948 vms* | cygwin* | pe | mingw* | sco* | udk* )
14949 ac_cv_func_mmap_anon=no ;;
14951 ac_cv_func_mmap_anon=yes;;
14952 esac
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14955 $as_echo "$ac_cv_func_mmap_anon" >&6; }
14959 if test $ac_cv_func_mmap_file = yes; then
14961 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
14964 if test $ac_cv_func_mmap_dev_zero = yes; then
14966 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
14969 if test $ac_cv_func_mmap_anon = yes; then
14971 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
14976 if test -d $srcdir/testsuite; then
14977 TESTSUBDIR_TRUE=
14978 TESTSUBDIR_FALSE='#'
14979 else
14980 TESTSUBDIR_TRUE='#'
14981 TESTSUBDIR_FALSE=
14985 TARGETDIR="unknown"
14986 HAVE_LONG_DOUBLE_VARIANT=0
14988 . ${srcdir}/configure.host
14990 if test -n "${UNSUPPORTED}"; then
14991 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14998 $as_echo_n "checking for ANSI C header files... " >&6; }
14999 if test "${ac_cv_header_stdc+set}" = set; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <stdlib.h>
15005 #include <stdarg.h>
15006 #include <string.h>
15007 #include <float.h>
15010 main ()
15014 return 0;
15016 _ACEOF
15017 if ac_fn_c_try_compile "$LINENO"; then :
15018 ac_cv_header_stdc=yes
15019 else
15020 ac_cv_header_stdc=no
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 if test $ac_cv_header_stdc = yes; then
15025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <string.h>
15030 _ACEOF
15031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15032 $EGREP "memchr" >/dev/null 2>&1; then :
15034 else
15035 ac_cv_header_stdc=no
15037 rm -f conftest*
15041 if test $ac_cv_header_stdc = yes; then
15042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #include <stdlib.h>
15047 _ACEOF
15048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15049 $EGREP "free" >/dev/null 2>&1; then :
15051 else
15052 ac_cv_header_stdc=no
15054 rm -f conftest*
15058 if test $ac_cv_header_stdc = yes; then
15059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15060 if test "$cross_compiling" = yes; then :
15062 else
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 #include <ctype.h>
15066 #include <stdlib.h>
15067 #if ((' ' & 0x0FF) == 0x020)
15068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15070 #else
15071 # define ISLOWER(c) \
15072 (('a' <= (c) && (c) <= 'i') \
15073 || ('j' <= (c) && (c) <= 'r') \
15074 || ('s' <= (c) && (c) <= 'z'))
15075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15076 #endif
15078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15080 main ()
15082 int i;
15083 for (i = 0; i < 256; i++)
15084 if (XOR (islower (i), ISLOWER (i))
15085 || toupper (i) != TOUPPER (i))
15086 return 2;
15087 return 0;
15089 _ACEOF
15090 if ac_fn_c_try_run "$LINENO"; then :
15092 else
15093 ac_cv_header_stdc=no
15095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15096 conftest.$ac_objext conftest.beam conftest.$ac_ext
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15102 $as_echo "$ac_cv_header_stdc" >&6; }
15103 if test $ac_cv_header_stdc = yes; then
15105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15109 for ac_func in memcpy
15110 do :
15111 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15112 if test "x$ac_cv_func_memcpy" = x""yes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_MEMCPY 1
15115 _ACEOF
15118 done
15120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15121 # for constant arguments. Useless!
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15123 $as_echo_n "checking for working alloca.h... " >&6; }
15124 if test "${ac_cv_working_alloca_h+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <alloca.h>
15131 main ()
15133 char *p = (char *) alloca (2 * sizeof (int));
15134 if (p) return 0;
15136 return 0;
15138 _ACEOF
15139 if ac_fn_c_try_link "$LINENO"; then :
15140 ac_cv_working_alloca_h=yes
15141 else
15142 ac_cv_working_alloca_h=no
15144 rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15148 $as_echo "$ac_cv_working_alloca_h" >&6; }
15149 if test $ac_cv_working_alloca_h = yes; then
15151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15156 $as_echo_n "checking for alloca... " >&6; }
15157 if test "${ac_cv_func_alloca_works+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #ifdef __GNUC__
15163 # define alloca __builtin_alloca
15164 #else
15165 # ifdef _MSC_VER
15166 # include <malloc.h>
15167 # define alloca _alloca
15168 # else
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15171 # else
15172 # ifdef _AIX
15173 #pragma alloca
15174 # else
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15176 char *alloca ();
15177 # endif
15178 # endif
15179 # endif
15180 # endif
15181 #endif
15184 main ()
15186 char *p = (char *) alloca (1);
15187 if (p) return 0;
15189 return 0;
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_func_alloca_works=yes
15194 else
15195 ac_cv_func_alloca_works=no
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15201 $as_echo "$ac_cv_func_alloca_works" >&6; }
15203 if test $ac_cv_func_alloca_works = yes; then
15205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15207 else
15208 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15209 # that cause trouble. Some versions do not even contain alloca or
15210 # contain a buggy version. If you still want to use their alloca,
15211 # use ar to extract alloca.o from them instead of compiling alloca.c.
15213 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15215 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15219 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15220 if test "${ac_cv_os_cray+set}" = set; then :
15221 $as_echo_n "(cached) " >&6
15222 else
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 #if defined CRAY && ! defined CRAY2
15226 webecray
15227 #else
15228 wenotbecray
15229 #endif
15231 _ACEOF
15232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15233 $EGREP "webecray" >/dev/null 2>&1; then :
15234 ac_cv_os_cray=yes
15235 else
15236 ac_cv_os_cray=no
15238 rm -f conftest*
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15242 $as_echo "$ac_cv_os_cray" >&6; }
15243 if test $ac_cv_os_cray = yes; then
15244 for ac_func in _getb67 GETB67 getb67; do
15245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15247 eval as_val=\$$as_ac_var
15248 if test "x$as_val" = x""yes; then :
15250 cat >>confdefs.h <<_ACEOF
15251 #define CRAY_STACKSEG_END $ac_func
15252 _ACEOF
15254 break
15257 done
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15261 $as_echo_n "checking stack direction for C alloca... " >&6; }
15262 if test "${ac_cv_c_stack_direction+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 if test "$cross_compiling" = yes; then :
15266 ac_cv_c_stack_direction=0
15267 else
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 $ac_includes_default
15272 find_stack_direction ()
15274 static char *addr = 0;
15275 auto char dummy;
15276 if (addr == 0)
15278 addr = &dummy;
15279 return find_stack_direction ();
15281 else
15282 return (&dummy > addr) ? 1 : -1;
15286 main ()
15288 return find_stack_direction () < 0;
15290 _ACEOF
15291 if ac_fn_c_try_run "$LINENO"; then :
15292 ac_cv_c_stack_direction=1
15293 else
15294 ac_cv_c_stack_direction=-1
15296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15297 conftest.$ac_objext conftest.beam conftest.$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15302 $as_echo "$ac_cv_c_stack_direction" >&6; }
15303 cat >>confdefs.h <<_ACEOF
15304 #define STACK_DIRECTION $ac_cv_c_stack_direction
15305 _ACEOF
15311 # The cast to long int works around a bug in the HP C Compiler
15312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15314 # This bug is HP SR number 8606223364.
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15316 $as_echo_n "checking size of double... " >&6; }
15317 if test "${ac_cv_sizeof_double+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15319 else
15320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15322 else
15323 if test "$ac_cv_type_double" = yes; then
15324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15326 { as_fn_set_status 77
15327 as_fn_error "cannot compute sizeof (double)
15328 See \`config.log' for more details." "$LINENO" 5; }; }
15329 else
15330 ac_cv_sizeof_double=0
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15336 $as_echo "$ac_cv_sizeof_double" >&6; }
15340 cat >>confdefs.h <<_ACEOF
15341 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15342 _ACEOF
15345 # The cast to long int works around a bug in the HP C Compiler
15346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15348 # This bug is HP SR number 8606223364.
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15350 $as_echo_n "checking size of long double... " >&6; }
15351 if test "${ac_cv_sizeof_long_double+set}" = set; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15356 else
15357 if test "$ac_cv_type_long_double" = yes; then
15358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15360 { as_fn_set_status 77
15361 as_fn_error "cannot compute sizeof (long double)
15362 See \`config.log' for more details." "$LINENO" 5; }; }
15363 else
15364 ac_cv_sizeof_long_double=0
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15370 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15374 cat >>confdefs.h <<_ACEOF
15375 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15376 _ACEOF
15380 # Also AC_SUBST this variable for ffi.h.
15381 if test -z "$HAVE_LONG_DOUBLE"; then
15382 HAVE_LONG_DOUBLE=0
15383 if test $ac_cv_sizeof_long_double != 0; then
15384 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15386 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15388 HAVE_LONG_DOUBLE=1
15389 else
15390 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15391 HAVE_LONG_DOUBLE=1
15393 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15404 if test "${ac_cv_c_bigendian+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 ac_cv_c_bigendian=unknown
15408 # See if we're dealing with a universal compiler.
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #ifndef __APPLE_CC__
15412 not a universal capable compiler
15413 #endif
15414 typedef int dummy;
15416 _ACEOF
15417 if ac_fn_c_try_compile "$LINENO"; then :
15419 # Check for potential -arch flags. It is not universal unless
15420 # there are at least two -arch flags with different values.
15421 ac_arch=
15422 ac_prev=
15423 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15424 if test -n "$ac_prev"; then
15425 case $ac_word in
15426 i?86 | x86_64 | ppc | ppc64)
15427 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15428 ac_arch=$ac_word
15429 else
15430 ac_cv_c_bigendian=universal
15431 break
15434 esac
15435 ac_prev=
15436 elif test "x$ac_word" = "x-arch"; then
15437 ac_prev=arch
15439 done
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 if test $ac_cv_c_bigendian = unknown; then
15443 # See if sys/param.h defines the BYTE_ORDER macro.
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <sys/types.h>
15447 #include <sys/param.h>
15450 main ()
15452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15454 && LITTLE_ENDIAN)
15455 bogus endian macros
15456 #endif
15459 return 0;
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463 # It does; now see whether it defined to BIG_ENDIAN or not.
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466 #include <sys/types.h>
15467 #include <sys/param.h>
15470 main ()
15472 #if BYTE_ORDER != BIG_ENDIAN
15473 not big endian
15474 #endif
15477 return 0;
15479 _ACEOF
15480 if ac_fn_c_try_compile "$LINENO"; then :
15481 ac_cv_c_bigendian=yes
15482 else
15483 ac_cv_c_bigendian=no
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 if test $ac_cv_c_bigendian = unknown; then
15490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 #include <limits.h>
15496 main ()
15498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15499 bogus endian macros
15500 #endif
15503 return 0;
15505 _ACEOF
15506 if ac_fn_c_try_compile "$LINENO"; then :
15507 # It does; now see whether it defined to _BIG_ENDIAN or not.
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 #include <limits.h>
15513 main ()
15515 #ifndef _BIG_ENDIAN
15516 not big endian
15517 #endif
15520 return 0;
15522 _ACEOF
15523 if ac_fn_c_try_compile "$LINENO"; then :
15524 ac_cv_c_bigendian=yes
15525 else
15526 ac_cv_c_bigendian=no
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 if test $ac_cv_c_bigendian = unknown; then
15533 # Compile a test program.
15534 if test "$cross_compiling" = yes; then :
15535 # Try to guess by grepping values from an object file.
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 short int ascii_mm[] =
15539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15540 short int ascii_ii[] =
15541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15542 int use_ascii (int i) {
15543 return ascii_mm[i] + ascii_ii[i];
15545 short int ebcdic_ii[] =
15546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15547 short int ebcdic_mm[] =
15548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15549 int use_ebcdic (int i) {
15550 return ebcdic_mm[i] + ebcdic_ii[i];
15552 extern int foo;
15555 main ()
15557 return use_ascii (foo) == use_ebcdic (foo);
15559 return 0;
15561 _ACEOF
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15564 ac_cv_c_bigendian=yes
15566 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15567 if test "$ac_cv_c_bigendian" = unknown; then
15568 ac_cv_c_bigendian=no
15569 else
15570 # finding both strings is unlikely to happen, but who knows?
15571 ac_cv_c_bigendian=unknown
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576 else
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 $ac_includes_default
15581 main ()
15584 /* Are we little or big endian? From Harbison&Steele. */
15585 union
15587 long int l;
15588 char c[sizeof (long int)];
15589 } u;
15590 u.l = 1;
15591 return u.c[sizeof (long int) - 1] == 1;
15594 return 0;
15596 _ACEOF
15597 if ac_fn_c_try_run "$LINENO"; then :
15598 ac_cv_c_bigendian=no
15599 else
15600 ac_cv_c_bigendian=yes
15602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15603 conftest.$ac_objext conftest.beam conftest.$ac_ext
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15609 $as_echo "$ac_cv_c_bigendian" >&6; }
15610 case $ac_cv_c_bigendian in #(
15611 yes)
15612 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15613 ;; #(
15615 ;; #(
15616 universal)
15618 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15620 ;; #(
15622 as_fn_error "unknown endianness
15623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15624 esac
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15628 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15629 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15633 gcc_cv_as_cfi_pseudo_op=unknown
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 asm (".cfi_startproc\n\t.cfi_endproc");
15638 main ()
15642 return 0;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 gcc_cv_as_cfi_pseudo_op=yes
15647 else
15648 gcc_cv_as_cfi_pseudo_op=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15654 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15655 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15657 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15662 case "$TARGET" in
15663 SPARC)
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15665 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15666 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15668 else
15670 save_CFLAGS="$CFLAGS"
15671 save_LDFLAGS="$LDFLAGS"
15672 CFLAGS="$CFLAGS -fpic"
15673 LDFLAGS="$LDFLAGS -shared"
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15678 main ()
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 libffi_cv_as_sparc_ua_pcrel=yes
15687 else
15688 libffi_cv_as_sparc_ua_pcrel=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 CFLAGS="$save_CFLAGS"
15693 LDFLAGS="$save_LDFLAGS"
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15696 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15697 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15699 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15704 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15705 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15709 libffi_cv_as_register_pseudo_op=unknown
15710 # Check if we have .register
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15715 main ()
15717 asm (".register %g2, #scratch");
15719 return 0;
15721 _ACEOF
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723 libffi_cv_as_register_pseudo_op=yes
15724 else
15725 libffi_cv_as_register_pseudo_op=no
15727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15731 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15732 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15734 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15739 X86*)
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15741 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15742 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15746 libffi_cv_as_x86_pcrel=no
15747 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15748 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15749 libffi_cv_as_x86_pcrel=yes
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15754 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15755 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15757 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15762 S390)
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15764 $as_echo_n "checking compiler uses zarch features... " >&6; }
15765 if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15769 libffi_cv_as_s390_zarch=no
15770 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15771 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15772 if grep -q brasl conftest.s; then
15773 libffi_cv_as_s390_zarch=yes
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15779 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15780 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15782 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15786 esac
15788 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15789 # Check whether --enable-pax_emutramp was given.
15790 if test "${enable_pax_emutramp+set}" = set; then :
15791 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15793 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15799 FFI_EXEC_TRAMPOLINE_TABLE=0
15800 case "$target" in
15801 *arm*-apple-darwin* | aarch64-apple-darwin*)
15802 FFI_EXEC_TRAMPOLINE_TABLE=1
15804 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15807 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15809 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15812 esac
15813 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15814 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15815 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15816 else
15817 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15818 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
15823 if test x$TARGET = xX86_64; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15825 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
15826 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15830 cat > conftest1.s << EOF
15831 .text
15832 .globl foo
15833 foo:
15834 jmp bar
15835 .section .eh_frame,"a",@unwind
15836 bar:
15839 cat > conftest2.c << EOF
15840 extern void foo();
15841 int main(){foo();}
15844 libffi_cv_as_x86_64_unwind_section_type=no
15845 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15846 # since the compiler can support it and not the linker (ie old binutils)
15847 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
15848 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
15849 libffi_cv_as_x86_64_unwind_section_type=yes
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15854 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15855 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
15857 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15862 if test "x$GCC" = "xyes"; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15864 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15865 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15869 libffi_cv_ro_eh_frame=no
15870 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15871 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
15872 objdump -h conftest.o > conftest.dump 2>&1
15873 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15874 if test "x$libffi_eh_frame_line" != "x"; then
15875 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
15876 sed -n $libffi_test_line conftest.dump > conftest.line
15877 if grep READONLY conftest.line > /dev/null; then
15878 libffi_cv_ro_eh_frame=yes
15882 rm -f conftest.*
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15886 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15887 if test "x$libffi_cv_ro_eh_frame" = xyes; then
15889 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15892 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15894 else
15896 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15901 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15902 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15906 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15907 libffi_cv_hidden_visibility_attribute=no
15908 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15913 test $ac_status = 0; }; }; then
15914 if grep '\.hidden.*foo' conftest.s >/dev/null; then
15915 libffi_cv_hidden_visibility_attribute=yes
15918 rm -f conftest.*
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15922 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15923 if test $libffi_cv_hidden_visibility_attribute = yes; then
15925 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15936 TARGET_OBJ=
15937 for i in $SOURCES; do
15938 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15939 done
15945 # Check whether --enable-debug was given.
15946 if test "${enable_debug+set}" = set; then :
15947 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
15949 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
15954 if test "$enable_debug" = "yes"; then
15955 FFI_DEBUG_TRUE=
15956 FFI_DEBUG_FALSE='#'
15957 else
15958 FFI_DEBUG_TRUE='#'
15959 FFI_DEBUG_FALSE=
15963 # Check whether --enable-structs was given.
15964 if test "${enable_structs+set}" = set; then :
15965 enableval=$enable_structs; if test "$enable_structs" = "no"; then
15967 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15972 if test "$enable_debug" = "yes"; then
15973 FFI_DEBUG_TRUE=
15974 FFI_DEBUG_FALSE='#'
15975 else
15976 FFI_DEBUG_TRUE='#'
15977 FFI_DEBUG_FALSE=
15981 # Check whether --enable-raw-api was given.
15982 if test "${enable_raw_api+set}" = set; then :
15983 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15985 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15991 # Check whether --enable-purify-safety was given.
15992 if test "${enable_purify_safety+set}" = set; then :
15993 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15995 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16001 if test -n "$with_cross_host" &&
16002 test x"$with_cross_host" != x"no"; then
16003 toolexecdir='$(exec_prefix)/$(target_alias)'
16004 toolexeclibdir='$(toolexecdir)/lib'
16005 else
16006 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16007 toolexeclibdir='$(libdir)'
16009 multi_os_directory=`$CC -print-multi-os-directory`
16010 case $multi_os_directory in
16011 .) ;; # Avoid trailing /.
16012 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16013 esac
16017 if test "${multilib}" = "yes"; then
16018 multilib_arg="--enable-multilib"
16019 else
16020 multilib_arg=
16023 # Check linker support.
16026 # Check whether --with-gnu-ld was given.
16027 if test "${with_gnu_ld+set}" = set; then :
16028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16029 else
16030 with_gnu_ld=no
16033 ac_prog=ld
16034 if test "$GCC" = yes; then
16035 # Check if gcc -print-prog-name=ld gives a path.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16037 $as_echo_n "checking for ld used by $CC... " >&6; }
16038 case $host in
16039 *-*-mingw*)
16040 # gcc leaves a trailing carriage return which upsets mingw
16041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16044 esac
16045 case $ac_prog in
16046 # Accept absolute paths.
16047 [\\/]* | ?:[\\/]*)
16048 re_direlt='/[^/][^/]*/\.\./'
16049 # Canonicalize the pathname of ld
16050 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16051 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16052 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16053 done
16054 test -z "$LD" && LD="$ac_prog"
16057 # If it fails, then pretend we aren't using GCC.
16058 ac_prog=ld
16061 # If it is relative, then search for the first ld in PATH.
16062 with_gnu_ld=unknown
16064 esac
16065 elif test "$with_gnu_ld" = yes; then
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16067 $as_echo_n "checking for GNU ld... " >&6; }
16068 else
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16070 $as_echo_n "checking for non-GNU ld... " >&6; }
16072 if test "${lt_cv_path_LD+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 if test -z "$LD"; then
16076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16077 for ac_dir in $PATH; do
16078 IFS="$lt_save_ifs"
16079 test -z "$ac_dir" && ac_dir=.
16080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16081 lt_cv_path_LD="$ac_dir/$ac_prog"
16082 # Check to see if the program is GNU ld. I'd rather use --version,
16083 # but apparently some variants of GNU ld only accept -v.
16084 # Break only if it was the GNU/non-GNU ld that we prefer.
16085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16086 *GNU* | *'with BFD'*)
16087 test "$with_gnu_ld" != no && break
16090 test "$with_gnu_ld" != yes && break
16092 esac
16094 done
16095 IFS="$lt_save_ifs"
16096 else
16097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16101 LD="$lt_cv_path_LD"
16102 if test -n "$LD"; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16104 $as_echo "$LD" >&6; }
16105 else
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16107 $as_echo "no" >&6; }
16109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16116 case `$LD -v 2>&1 </dev/null` in
16117 *GNU* | *'with BFD'*)
16118 lt_cv_prog_gnu_ld=yes
16121 lt_cv_prog_gnu_ld=no
16123 esac
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16127 with_gnu_ld=$lt_cv_prog_gnu_ld
16135 # If we're not using GNU ld, then there's no point in even trying these
16136 # tests. Check for that first. We should have already tested for gld
16137 # by now (in libtool), but require it now just to be safe...
16138 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16139 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16143 # The name set by libtool depends on the version of libtool. Shame on us
16144 # for depending on an impl detail, but c'est la vie. Older versions used
16145 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16146 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16147 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16148 # set (hence we're using an older libtool), then set it.
16149 if test x${with_gnu_ld+set} != xset; then
16150 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16151 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16152 with_gnu_ld=no
16153 else
16154 with_gnu_ld=$ac_cv_prog_gnu_ld
16158 # Start by getting the version number. I think the libtool test already
16159 # does some of this, but throws away the result.
16160 libat_ld_is_gold=no
16161 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16162 libat_ld_is_gold=yes
16165 ldver=`$LD --version 2>/dev/null |
16166 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16168 libat_gnu_ld_version=`echo $ldver | \
16169 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16171 # Set --gc-sections.
16172 if test "$with_gnu_ld" = "notbroken"; then
16173 # GNU ld it is! Joy and bunny rabbits!
16175 # All these tests are for C++; save the language and the compiler flags.
16176 # Need to do this so that g++ won't try to link in libstdc++
16177 ac_test_CFLAGS="${CFLAGS+set}"
16178 ac_save_CFLAGS="$CFLAGS"
16179 CFLAGS='-x c++ -Wl,--gc-sections'
16181 # Check for -Wl,--gc-sections
16182 # XXX This test is broken at the moment, as symbols required for linking
16183 # are now in libsupc++ (not built yet). In addition, this test has
16184 # cored on solaris in the past. In addition, --gc-sections doesn't
16185 # really work at the moment (keeps on discarding used sections, first
16186 # .eh_frame and now some of the glibc sections for iconv).
16187 # Bzzzzt. Thanks for playing, maybe next time.
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16189 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16190 if test "$cross_compiling" = yes; then :
16191 ac_sectionLDflags=yes
16192 else
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16196 int main(void)
16198 try { throw 1; }
16199 catch (...) { };
16200 return 0;
16203 _ACEOF
16204 if ac_fn_c_try_run "$LINENO"; then :
16205 ac_sectionLDflags=yes
16206 else
16207 ac_sectionLDflags=no
16209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16210 conftest.$ac_objext conftest.beam conftest.$ac_ext
16213 if test "$ac_test_CFLAGS" = set; then
16214 CFLAGS="$ac_save_CFLAGS"
16215 else
16216 # this is the suspicious part
16217 CFLAGS=''
16219 if test "$ac_sectionLDflags" = "yes"; then
16220 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16223 $as_echo "$ac_sectionLDflags" >&6; }
16226 # Set linker optimization flags.
16227 if test x"$with_gnu_ld" = x"yes"; then
16228 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16236 # Check whether --enable-symvers was given.
16237 if test "${enable_symvers+set}" = set; then :
16238 enableval=$enable_symvers;
16239 case "$enableval" in
16240 yes|no|gnu*|sun) ;;
16241 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16242 esac
16244 else
16245 enable_symvers=yes
16250 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16251 # don't know enough about $LD to do tricks...
16254 # Turn a 'yes' into a suitable default.
16255 if test x$enable_symvers = xyes ; then
16256 # FIXME The following test is too strict, in theory.
16257 if test $enable_shared = no || test "x$LD" = x; then
16258 enable_symvers=no
16259 else
16260 if test $with_gnu_ld = yes ; then
16261 enable_symvers=gnu
16262 else
16263 case ${target_os} in
16264 # Sun symbol versioning exists since Solaris 2.5.
16265 solaris2.[5-9]* | solaris2.1[0-9]*)
16266 enable_symvers=sun ;;
16268 enable_symvers=no ;;
16269 esac
16274 # Check if 'sun' was requested on non-Solaris 2 platforms.
16275 if test x$enable_symvers = xsun ; then
16276 case ${target_os} in
16277 solaris2*)
16278 # All fine.
16281 # Unlikely to work.
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16283 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16285 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16287 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16288 enable_symvers=no
16290 esac
16293 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16294 if test $enable_symvers != no; then
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16296 $as_echo_n "checking for shared libgcc... " >&6; }
16297 ac_save_CFLAGS="$CFLAGS"
16298 CFLAGS=' -lgcc_s'
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16303 main ()
16305 return 0;
16307 return 0;
16309 _ACEOF
16310 if ac_fn_c_try_link "$LINENO"; then :
16311 libat_shared_libgcc=yes
16312 else
16313 libat_shared_libgcc=no
16315 rm -f core conftest.err conftest.$ac_objext \
16316 conftest$ac_exeext conftest.$ac_ext
16317 CFLAGS="$ac_save_CFLAGS"
16318 if test $libat_shared_libgcc = no; then
16319 cat > conftest.c <<EOF
16320 int main (void) { return 0; }
16322 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16323 -shared -shared-libgcc -o conftest.so \
16324 conftest.c -v 2>&1 >/dev/null \
16325 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16326 rm -f conftest.c conftest.so
16327 if test x${libat_libgcc_s_suffix+set} = xset; then
16328 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16333 main ()
16335 return 0;
16337 return 0;
16339 _ACEOF
16340 if ac_fn_c_try_link "$LINENO"; then :
16341 libat_shared_libgcc=yes
16343 rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345 CFLAGS="$ac_save_CFLAGS"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16349 $as_echo "$libat_shared_libgcc" >&6; }
16352 # For GNU ld, we need at least this version. The format is described in
16353 # LIBAT_CHECK_LINKER_FEATURES above.
16354 libat_min_gnu_ld_version=21400
16355 # XXXXXXXXXXX libat_gnu_ld_version=21390
16357 # Check to see if unspecified "yes" value can win, given results above.
16358 # Change "yes" into either "no" or a style name.
16359 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16360 if test $with_gnu_ld = yes; then
16361 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16362 enable_symvers=gnu
16363 elif test $libat_ld_is_gold = yes ; then
16364 enable_symvers=gnu
16365 else
16366 # The right tools, the right setup, but too old. Fallbacks?
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16368 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16370 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16372 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16374 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16375 if test $libat_gnu_ld_version -ge 21200 ; then
16376 # Globbing fix is present, proper block support is not.
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16378 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16379 enable_symvers=no
16380 else
16381 # 2.11 or older.
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16383 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16384 enable_symvers=no
16387 elif test $enable_symvers = sun; then
16388 : All interesting versions of Sun ld support sun style symbol versioning.
16389 else
16390 # just fail for now
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16392 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16394 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16396 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16398 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16399 enable_symvers=no
16402 if test $enable_symvers = gnu; then
16404 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16408 if test $enable_symvers != no; then
16409 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16410 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16411 else
16412 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16413 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16416 if test $enable_symvers = gnu; then
16417 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16418 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16419 else
16420 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16421 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16424 if test $enable_symvers = sun; then
16425 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16426 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16427 else
16428 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16429 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16433 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16436 ac_config_commands="$ac_config_commands include"
16438 ac_config_commands="$ac_config_commands src"
16441 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16444 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16447 cat >confcache <<\_ACEOF
16448 # This file is a shell script that caches the results of configure
16449 # tests run on this system so they can be shared between configure
16450 # scripts and configure runs, see configure's option --config-cache.
16451 # It is not useful on other systems. If it contains results you don't
16452 # want to keep, you may remove or edit it.
16454 # config.status only pays attention to the cache file if you give it
16455 # the --recheck option to rerun configure.
16457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16459 # following values.
16461 _ACEOF
16463 # The following way of writing the cache mishandles newlines in values,
16464 # but we know of no workaround that is simple, portable, and efficient.
16465 # So, we kill variables containing newlines.
16466 # Ultrix sh set writes to stderr and can't be redirected directly,
16467 # and sets the high bit in the cache file unless we assign to the vars.
16469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16470 eval ac_val=\$$ac_var
16471 case $ac_val in #(
16472 *${as_nl}*)
16473 case $ac_var in #(
16474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16476 esac
16477 case $ac_var in #(
16478 _ | IFS | as_nl) ;; #(
16479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16480 *) { eval $ac_var=; unset $ac_var;} ;;
16481 esac ;;
16482 esac
16483 done
16485 (set) 2>&1 |
16486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16487 *${as_nl}ac_space=\ *)
16488 # `set' does not quote correctly, so add quotes: double-quote
16489 # substitution turns \\\\ into \\, and sed turns \\ into \.
16490 sed -n \
16491 "s/'/'\\\\''/g;
16492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16493 ;; #(
16495 # `set' quotes correctly as required by POSIX, so do not add quotes.
16496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16498 esac |
16499 sort
16501 sed '
16502 /^ac_cv_env_/b end
16503 t clear
16504 :clear
16505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16506 t end
16507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16508 :end' >>confcache
16509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16510 if test -w "$cache_file"; then
16511 test "x$cache_file" != "x/dev/null" &&
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16513 $as_echo "$as_me: updating cache $cache_file" >&6;}
16514 cat confcache >$cache_file
16515 else
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16520 rm -f confcache
16522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16523 # Let make expand exec_prefix.
16524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16526 DEFS=-DHAVE_CONFIG_H
16528 ac_libobjs=
16529 ac_ltlibobjs=
16530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16531 # 1. Remove the extension, and $U if already installed.
16532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16533 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16535 # will be set to the directory where LIBOBJS objects are built.
16536 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16537 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16538 done
16539 LIBOBJS=$ac_libobjs
16541 LTLIBOBJS=$ac_ltlibobjs
16544 if test -n "$EXEEXT"; then
16545 am__EXEEXT_TRUE=
16546 am__EXEEXT_FALSE='#'
16547 else
16548 am__EXEEXT_TRUE='#'
16549 am__EXEEXT_FALSE=
16552 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16553 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16557 as_fn_error "conditional \"GENINSRC\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16561 as_fn_error "conditional \"AMDEP\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16565 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16569 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16573 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16577 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16581 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16585 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16586 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16589 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16590 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16593 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16594 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16597 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16598 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16602 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16605 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16606 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16610 : ${CONFIG_STATUS=./config.status}
16611 ac_write_fail=0
16612 ac_clean_files_save=$ac_clean_files
16613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16616 as_write_fail=0
16617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16618 #! $SHELL
16619 # Generated by $as_me.
16620 # Run this file to recreate the current configuration.
16621 # Compiler output produced by configure, useful for debugging
16622 # configure, is in config.log if it exists.
16624 debug=false
16625 ac_cs_recheck=false
16626 ac_cs_silent=false
16628 SHELL=\${CONFIG_SHELL-$SHELL}
16629 export SHELL
16630 _ASEOF
16631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16632 ## -------------------- ##
16633 ## M4sh Initialization. ##
16634 ## -------------------- ##
16636 # Be more Bourne compatible
16637 DUALCASE=1; export DUALCASE # for MKS sh
16638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16639 emulate sh
16640 NULLCMD=:
16641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16642 # is contrary to our usage. Disable this feature.
16643 alias -g '${1+"$@"}'='"$@"'
16644 setopt NO_GLOB_SUBST
16645 else
16646 case `(set -o) 2>/dev/null` in #(
16647 *posix*) :
16648 set -o posix ;; #(
16649 *) :
16651 esac
16655 as_nl='
16657 export as_nl
16658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16662 # Prefer a ksh shell builtin over an external printf program on Solaris,
16663 # but without wasting forks for bash or zsh.
16664 if test -z "$BASH_VERSION$ZSH_VERSION" \
16665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16666 as_echo='print -r --'
16667 as_echo_n='print -rn --'
16668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16669 as_echo='printf %s\n'
16670 as_echo_n='printf %s'
16671 else
16672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16673 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16674 as_echo_n='/usr/ucb/echo -n'
16675 else
16676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16677 as_echo_n_body='eval
16678 arg=$1;
16679 case $arg in #(
16680 *"$as_nl"*)
16681 expr "X$arg" : "X\\(.*\\)$as_nl";
16682 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16683 esac;
16684 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16686 export as_echo_n_body
16687 as_echo_n='sh -c $as_echo_n_body as_echo'
16689 export as_echo_body
16690 as_echo='sh -c $as_echo_body as_echo'
16693 # The user is always right.
16694 if test "${PATH_SEPARATOR+set}" != set; then
16695 PATH_SEPARATOR=:
16696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16698 PATH_SEPARATOR=';'
16703 # IFS
16704 # We need space, tab and new line, in precisely that order. Quoting is
16705 # there to prevent editors from complaining about space-tab.
16706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16707 # splitting by setting IFS to empty value.)
16708 IFS=" "" $as_nl"
16710 # Find who we are. Look in the path if we contain no directory separator.
16711 case $0 in #((
16712 *[\\/]* ) as_myself=$0 ;;
16713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16714 for as_dir in $PATH
16716 IFS=$as_save_IFS
16717 test -z "$as_dir" && as_dir=.
16718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16719 done
16720 IFS=$as_save_IFS
16723 esac
16724 # We did not find ourselves, most probably we were run as `sh COMMAND'
16725 # in which case we are not to be found in the path.
16726 if test "x$as_myself" = x; then
16727 as_myself=$0
16729 if test ! -f "$as_myself"; then
16730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16731 exit 1
16734 # Unset variables that we do not need and which cause bugs (e.g. in
16735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16736 # suppresses any "Segmentation fault" message there. '((' could
16737 # trigger a bug in pdksh 5.2.14.
16738 for as_var in BASH_ENV ENV MAIL MAILPATH
16739 do eval test x\${$as_var+set} = xset \
16740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16741 done
16742 PS1='$ '
16743 PS2='> '
16744 PS4='+ '
16746 # NLS nuisances.
16747 LC_ALL=C
16748 export LC_ALL
16749 LANGUAGE=C
16750 export LANGUAGE
16752 # CDPATH.
16753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16756 # as_fn_error ERROR [LINENO LOG_FD]
16757 # ---------------------------------
16758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16760 # script with status $?, using 1 if that was 0.
16761 as_fn_error ()
16763 as_status=$?; test $as_status -eq 0 && as_status=1
16764 if test "$3"; then
16765 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16768 $as_echo "$as_me: error: $1" >&2
16769 as_fn_exit $as_status
16770 } # as_fn_error
16773 # as_fn_set_status STATUS
16774 # -----------------------
16775 # Set $? to STATUS, without forking.
16776 as_fn_set_status ()
16778 return $1
16779 } # as_fn_set_status
16781 # as_fn_exit STATUS
16782 # -----------------
16783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16784 as_fn_exit ()
16786 set +e
16787 as_fn_set_status $1
16788 exit $1
16789 } # as_fn_exit
16791 # as_fn_unset VAR
16792 # ---------------
16793 # Portably unset VAR.
16794 as_fn_unset ()
16796 { eval $1=; unset $1;}
16798 as_unset=as_fn_unset
16799 # as_fn_append VAR VALUE
16800 # ----------------------
16801 # Append the text in VALUE to the end of the definition contained in VAR. Take
16802 # advantage of any shell optimizations that allow amortized linear growth over
16803 # repeated appends, instead of the typical quadratic growth present in naive
16804 # implementations.
16805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16806 eval 'as_fn_append ()
16808 eval $1+=\$2
16810 else
16811 as_fn_append ()
16813 eval $1=\$$1\$2
16815 fi # as_fn_append
16817 # as_fn_arith ARG...
16818 # ------------------
16819 # Perform arithmetic evaluation on the ARGs, and store the result in the
16820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16821 # must be portable across $(()) and expr.
16822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16823 eval 'as_fn_arith ()
16825 as_val=$(( $* ))
16827 else
16828 as_fn_arith ()
16830 as_val=`expr "$@" || test $? -eq 1`
16832 fi # as_fn_arith
16835 if expr a : '\(a\)' >/dev/null 2>&1 &&
16836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16837 as_expr=expr
16838 else
16839 as_expr=false
16842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16843 as_basename=basename
16844 else
16845 as_basename=false
16848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16849 as_dirname=dirname
16850 else
16851 as_dirname=false
16854 as_me=`$as_basename -- "$0" ||
16855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16856 X"$0" : 'X\(//\)$' \| \
16857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16858 $as_echo X/"$0" |
16859 sed '/^.*\/\([^/][^/]*\)\/*$/{
16860 s//\1/
16863 /^X\/\(\/\/\)$/{
16864 s//\1/
16867 /^X\/\(\/\).*/{
16868 s//\1/
16871 s/.*/./; q'`
16873 # Avoid depending upon Character Ranges.
16874 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16877 as_cr_digits='0123456789'
16878 as_cr_alnum=$as_cr_Letters$as_cr_digits
16880 ECHO_C= ECHO_N= ECHO_T=
16881 case `echo -n x` in #(((((
16882 -n*)
16883 case `echo 'xy\c'` in
16884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16885 xy) ECHO_C='\c';;
16886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16887 ECHO_T=' ';;
16888 esac;;
16890 ECHO_N='-n';;
16891 esac
16893 rm -f conf$$ conf$$.exe conf$$.file
16894 if test -d conf$$.dir; then
16895 rm -f conf$$.dir/conf$$.file
16896 else
16897 rm -f conf$$.dir
16898 mkdir conf$$.dir 2>/dev/null
16900 if (echo >conf$$.file) 2>/dev/null; then
16901 if ln -s conf$$.file conf$$ 2>/dev/null; then
16902 as_ln_s='ln -s'
16903 # ... but there are two gotchas:
16904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16906 # In both cases, we have to default to `cp -p'.
16907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16908 as_ln_s='cp -p'
16909 elif ln conf$$.file conf$$ 2>/dev/null; then
16910 as_ln_s=ln
16911 else
16912 as_ln_s='cp -p'
16914 else
16915 as_ln_s='cp -p'
16917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16918 rmdir conf$$.dir 2>/dev/null
16921 # as_fn_mkdir_p
16922 # -------------
16923 # Create "$as_dir" as a directory, including parents if necessary.
16924 as_fn_mkdir_p ()
16927 case $as_dir in #(
16928 -*) as_dir=./$as_dir;;
16929 esac
16930 test -d "$as_dir" || eval $as_mkdir_p || {
16931 as_dirs=
16932 while :; do
16933 case $as_dir in #(
16934 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16935 *) as_qdir=$as_dir;;
16936 esac
16937 as_dirs="'$as_qdir' $as_dirs"
16938 as_dir=`$as_dirname -- "$as_dir" ||
16939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$as_dir" : 'X\(//\)[^/]' \| \
16941 X"$as_dir" : 'X\(//\)$' \| \
16942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16943 $as_echo X"$as_dir" |
16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16945 s//\1/
16948 /^X\(\/\/\)[^/].*/{
16949 s//\1/
16952 /^X\(\/\/\)$/{
16953 s//\1/
16956 /^X\(\/\).*/{
16957 s//\1/
16960 s/.*/./; q'`
16961 test -d "$as_dir" && break
16962 done
16963 test -z "$as_dirs" || eval "mkdir $as_dirs"
16964 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16967 } # as_fn_mkdir_p
16968 if mkdir -p . 2>/dev/null; then
16969 as_mkdir_p='mkdir -p "$as_dir"'
16970 else
16971 test -d ./-p && rmdir ./-p
16972 as_mkdir_p=false
16975 if test -x / >/dev/null 2>&1; then
16976 as_test_x='test -x'
16977 else
16978 if ls -dL / >/dev/null 2>&1; then
16979 as_ls_L_option=L
16980 else
16981 as_ls_L_option=
16983 as_test_x='
16984 eval sh -c '\''
16985 if test -d "$1"; then
16986 test -d "$1/.";
16987 else
16988 case $1 in #(
16989 -*)set "./$1";;
16990 esac;
16991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16992 ???[sx]*):;;*)false;;esac;fi
16993 '\'' sh
16996 as_executable_p=$as_test_x
16998 # Sed expression to map a string onto a valid CPP name.
16999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17001 # Sed expression to map a string onto a valid variable name.
17002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17005 exec 6>&1
17006 ## ----------------------------------- ##
17007 ## Main body of $CONFIG_STATUS script. ##
17008 ## ----------------------------------- ##
17009 _ASEOF
17010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17013 # Save the log message, to keep $0 and so on meaningful, and to
17014 # report actual input values of CONFIG_FILES etc. instead of their
17015 # values after options handling.
17016 ac_log="
17017 This file was extended by libffi $as_me 3.99999, which was
17018 generated by GNU Autoconf 2.64. Invocation command line was
17020 CONFIG_FILES = $CONFIG_FILES
17021 CONFIG_HEADERS = $CONFIG_HEADERS
17022 CONFIG_LINKS = $CONFIG_LINKS
17023 CONFIG_COMMANDS = $CONFIG_COMMANDS
17024 $ $0 $@
17026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17029 _ACEOF
17031 case $ac_config_files in *"
17032 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17033 esac
17035 case $ac_config_headers in *"
17036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17037 esac
17040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17041 # Files that config.status was made for.
17042 config_files="$ac_config_files"
17043 config_headers="$ac_config_headers"
17044 config_links="$ac_config_links"
17045 config_commands="$ac_config_commands"
17047 _ACEOF
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 ac_cs_usage="\
17051 \`$as_me' instantiates files and other configuration actions
17052 from templates according to the current configuration. Unless the files
17053 and actions are specified as TAGs, all are instantiated by default.
17055 Usage: $0 [OPTION]... [TAG]...
17057 -h, --help print this help, then exit
17058 -V, --version print version number and configuration settings, then exit
17059 -q, --quiet, --silent
17060 do not print progress messages
17061 -d, --debug don't remove temporary files
17062 --recheck update $as_me by reconfiguring in the same conditions
17063 --file=FILE[:TEMPLATE]
17064 instantiate the configuration file FILE
17065 --header=FILE[:TEMPLATE]
17066 instantiate the configuration header FILE
17068 Configuration files:
17069 $config_files
17071 Configuration headers:
17072 $config_headers
17074 Configuration links:
17075 $config_links
17077 Configuration commands:
17078 $config_commands
17080 Report bugs to <http://github.com/atgreen/libffi/issues>."
17082 _ACEOF
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 ac_cs_version="\\
17085 libffi config.status 3.99999
17086 configured by $0, generated by GNU Autoconf 2.64,
17087 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17089 Copyright (C) 2009 Free Software Foundation, Inc.
17090 This config.status script is free software; the Free Software Foundation
17091 gives unlimited permission to copy, distribute and modify it."
17093 ac_pwd='$ac_pwd'
17094 srcdir='$srcdir'
17095 INSTALL='$INSTALL'
17096 MKDIR_P='$MKDIR_P'
17097 AWK='$AWK'
17098 test -n "\$AWK" || AWK=awk
17099 _ACEOF
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17102 # The default lists apply if the user does not specify any file.
17103 ac_need_defaults=:
17104 while test $# != 0
17106 case $1 in
17107 --*=*)
17108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17110 ac_shift=:
17113 ac_option=$1
17114 ac_optarg=$2
17115 ac_shift=shift
17117 esac
17119 case $ac_option in
17120 # Handling of the options.
17121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17122 ac_cs_recheck=: ;;
17123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17124 $as_echo "$ac_cs_version"; exit ;;
17125 --debug | --debu | --deb | --de | --d | -d )
17126 debug=: ;;
17127 --file | --fil | --fi | --f )
17128 $ac_shift
17129 case $ac_optarg in
17130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17131 esac
17132 as_fn_append CONFIG_FILES " '$ac_optarg'"
17133 ac_need_defaults=false;;
17134 --header | --heade | --head | --hea )
17135 $ac_shift
17136 case $ac_optarg in
17137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17138 esac
17139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17140 ac_need_defaults=false;;
17141 --he | --h)
17142 # Conflict between --help and --header
17143 as_fn_error "ambiguous option: \`$1'
17144 Try \`$0 --help' for more information.";;
17145 --help | --hel | -h )
17146 $as_echo "$ac_cs_usage"; exit ;;
17147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17149 ac_cs_silent=: ;;
17151 # This is an error.
17152 -*) as_fn_error "unrecognized option: \`$1'
17153 Try \`$0 --help' for more information." ;;
17155 *) as_fn_append ac_config_targets " $1"
17156 ac_need_defaults=false ;;
17158 esac
17159 shift
17160 done
17162 ac_configure_extra_args=
17164 if $ac_cs_silent; then
17165 exec 6>/dev/null
17166 ac_configure_extra_args="$ac_configure_extra_args --silent"
17169 _ACEOF
17170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171 if \$ac_cs_recheck; then
17172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17173 shift
17174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17175 CONFIG_SHELL='$SHELL'
17176 export CONFIG_SHELL
17177 exec "\$@"
17180 _ACEOF
17181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 exec 5>>config.log
17184 echo
17185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17186 ## Running $as_me. ##
17187 _ASBOX
17188 $as_echo "$ac_log"
17189 } >&5
17191 _ACEOF
17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17194 # INIT-COMMANDS
17197 srcdir="$srcdir"
17198 host="$host"
17199 target="$target"
17200 with_multisubdir="$with_multisubdir"
17201 with_multisrctop="$with_multisrctop"
17202 with_target_subdir="$with_target_subdir"
17203 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17204 multi_basedir="$multi_basedir"
17205 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17206 CC="$CC"
17207 CXX="$CXX"
17208 GFORTRAN="$GFORTRAN"
17209 GCJ="$GCJ"
17210 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17213 # The HP-UX ksh and POSIX shell print the target directory to stdout
17214 # if CDPATH is set.
17215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17217 sed_quote_subst='$sed_quote_subst'
17218 double_quote_subst='$double_quote_subst'
17219 delay_variable_subst='$delay_variable_subst'
17220 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17221 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17222 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17224 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17225 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17228 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17229 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17230 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17231 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17232 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17233 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17234 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17235 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17236 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17237 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17238 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17239 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17240 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17241 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17242 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17243 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17244 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17245 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17246 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17247 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17253 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17254 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17255 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17256 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17257 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17258 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17259 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17260 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17261 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17262 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17263 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17264 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17265 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17267 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17268 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"`'
17269 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17270 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17271 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17274 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17275 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17276 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17300 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17301 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17302 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17303 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17304 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17305 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17306 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17307 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17308 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17309 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17315 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17316 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17317 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17318 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17319 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17320 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17321 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17322 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17323 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17324 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17325 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17326 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17327 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17328 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17329 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17330 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17331 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17332 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17333 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17340 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17341 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17342 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17343 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17344 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17345 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17346 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17347 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17348 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17349 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17350 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17351 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17352 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17353 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17356 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17357 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17358 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17359 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17360 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17361 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17362 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17363 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17364 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17365 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17366 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17367 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17368 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17369 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17370 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17371 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17372 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17373 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17374 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17375 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17376 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17377 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17378 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17379 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17380 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17381 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17382 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17383 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17384 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17385 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17386 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17387 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17388 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17389 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17390 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17391 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17392 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17393 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17394 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17396 LTCC='$LTCC'
17397 LTCFLAGS='$LTCFLAGS'
17398 compiler='$compiler_DEFAULT'
17400 # A function that is used when there is no print builtin or printf.
17401 func_fallback_echo ()
17403 eval 'cat <<_LTECHO_EOF
17405 _LTECHO_EOF'
17408 # Quote evaled strings.
17409 for var in SHELL \
17410 ECHO \
17411 SED \
17412 GREP \
17413 EGREP \
17414 FGREP \
17415 LD \
17416 NM \
17417 LN_S \
17418 lt_SP2NL \
17419 lt_NL2SP \
17420 reload_flag \
17421 OBJDUMP \
17422 deplibs_check_method \
17423 file_magic_cmd \
17424 AR \
17425 AR_FLAGS \
17426 STRIP \
17427 RANLIB \
17428 CC \
17429 CFLAGS \
17430 compiler \
17431 lt_cv_sys_global_symbol_pipe \
17432 lt_cv_sys_global_symbol_to_cdecl \
17433 lt_cv_sys_global_symbol_to_c_name_address \
17434 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17435 lt_prog_compiler_no_builtin_flag \
17436 lt_prog_compiler_wl \
17437 lt_prog_compiler_pic \
17438 lt_prog_compiler_static \
17439 lt_cv_prog_compiler_c_o \
17440 need_locks \
17441 DSYMUTIL \
17442 NMEDIT \
17443 LIPO \
17444 OTOOL \
17445 OTOOL64 \
17446 shrext_cmds \
17447 export_dynamic_flag_spec \
17448 whole_archive_flag_spec \
17449 compiler_needs_object \
17450 with_gnu_ld \
17451 allow_undefined_flag \
17452 no_undefined_flag \
17453 hardcode_libdir_flag_spec \
17454 hardcode_libdir_flag_spec_ld \
17455 hardcode_libdir_separator \
17456 fix_srcfile_path \
17457 exclude_expsyms \
17458 include_expsyms \
17459 file_list_spec \
17460 variables_saved_for_relink \
17461 libname_spec \
17462 library_names_spec \
17463 soname_spec \
17464 install_override_mode \
17465 finish_eval \
17466 old_striplib \
17467 striplib \
17468 compiler_lib_search_dirs \
17469 predep_objects \
17470 postdep_objects \
17471 predeps \
17472 postdeps \
17473 compiler_lib_search_path \
17474 LD_CXX \
17475 reload_flag_CXX \
17476 compiler_CXX \
17477 lt_prog_compiler_no_builtin_flag_CXX \
17478 lt_prog_compiler_wl_CXX \
17479 lt_prog_compiler_pic_CXX \
17480 lt_prog_compiler_static_CXX \
17481 lt_cv_prog_compiler_c_o_CXX \
17482 export_dynamic_flag_spec_CXX \
17483 whole_archive_flag_spec_CXX \
17484 compiler_needs_object_CXX \
17485 with_gnu_ld_CXX \
17486 allow_undefined_flag_CXX \
17487 no_undefined_flag_CXX \
17488 hardcode_libdir_flag_spec_CXX \
17489 hardcode_libdir_flag_spec_ld_CXX \
17490 hardcode_libdir_separator_CXX \
17491 fix_srcfile_path_CXX \
17492 exclude_expsyms_CXX \
17493 include_expsyms_CXX \
17494 file_list_spec_CXX \
17495 compiler_lib_search_dirs_CXX \
17496 predep_objects_CXX \
17497 postdep_objects_CXX \
17498 predeps_CXX \
17499 postdeps_CXX \
17500 compiler_lib_search_path_CXX; do
17501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17502 *[\\\\\\\`\\"\\\$]*)
17503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17508 esac
17509 done
17511 # Double-quote double-evaled strings.
17512 for var in reload_cmds \
17513 old_postinstall_cmds \
17514 old_postuninstall_cmds \
17515 old_archive_cmds \
17516 extract_expsyms_cmds \
17517 old_archive_from_new_cmds \
17518 old_archive_from_expsyms_cmds \
17519 archive_cmds \
17520 archive_expsym_cmds \
17521 module_cmds \
17522 module_expsym_cmds \
17523 export_symbols_cmds \
17524 prelink_cmds \
17525 postinstall_cmds \
17526 postuninstall_cmds \
17527 finish_cmds \
17528 sys_lib_search_path_spec \
17529 sys_lib_dlsearch_path_spec \
17530 reload_cmds_CXX \
17531 old_archive_cmds_CXX \
17532 old_archive_from_new_cmds_CXX \
17533 old_archive_from_expsyms_cmds_CXX \
17534 archive_cmds_CXX \
17535 archive_expsym_cmds_CXX \
17536 module_cmds_CXX \
17537 module_expsym_cmds_CXX \
17538 export_symbols_cmds_CXX \
17539 prelink_cmds_CXX; do
17540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17541 *[\\\\\\\`\\"\\\$]*)
17542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17547 esac
17548 done
17550 ac_aux_dir='$ac_aux_dir'
17551 xsi_shell='$xsi_shell'
17552 lt_shell_append='$lt_shell_append'
17554 # See if we are running on zsh, and set the options which allow our
17555 # commands through without removal of \ escapes INIT.
17556 if test -n "\${ZSH_VERSION+set}" ; then
17557 setopt NO_GLOB_SUBST
17561 PACKAGE='$PACKAGE'
17562 VERSION='$VERSION'
17563 TIMESTAMP='$TIMESTAMP'
17564 RM='$RM'
17565 ofile='$ofile'
17571 TARGETDIR="$TARGETDIR"
17573 _ACEOF
17575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17577 # Handling of arguments.
17578 for ac_config_target in $ac_config_targets
17580 case $ac_config_target in
17581 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17582 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17583 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17584 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17585 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17586 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17587 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17588 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17589 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17591 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17592 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17593 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17595 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17596 esac
17597 done
17600 # If the user did not use the arguments to specify the items to instantiate,
17601 # then the envvar interface is used. Set only those that are not.
17602 # We use the long form for the default assignment because of an extremely
17603 # bizarre bug on SunOS 4.1.3.
17604 if $ac_need_defaults; then
17605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17611 # Have a temporary directory for convenience. Make it in the build tree
17612 # simply because there is no reason against having it here, and in addition,
17613 # creating and moving files from /tmp can sometimes cause problems.
17614 # Hook for its removal unless debugging.
17615 # Note that there is a small window in which the directory will not be cleaned:
17616 # after its creation but before its name has been assigned to `$tmp'.
17617 $debug ||
17619 tmp=
17620 trap 'exit_status=$?
17621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17623 trap 'as_fn_exit 1' 1 2 13 15
17625 # Create a (secure) tmp directory for tmp files.
17628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17629 test -n "$tmp" && test -d "$tmp"
17630 } ||
17632 tmp=./conf$$-$RANDOM
17633 (umask 077 && mkdir "$tmp")
17634 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17636 # Set up the scripts for CONFIG_FILES section.
17637 # No need to generate them if there are no CONFIG_FILES.
17638 # This happens for instance with `./config.status config.h'.
17639 if test -n "$CONFIG_FILES"; then
17642 ac_cr=`echo X | tr X '\015'`
17643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17644 # But we know of no other shell where ac_cr would be empty at this
17645 # point, so we can use a bashism as a fallback.
17646 if test "x$ac_cr" = x; then
17647 eval ac_cr=\$\'\\r\'
17649 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17651 ac_cs_awk_cr='\r'
17652 else
17653 ac_cs_awk_cr=$ac_cr
17656 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17657 _ACEOF
17661 echo "cat >conf$$subs.awk <<_ACEOF" &&
17662 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17663 echo "_ACEOF"
17664 } >conf$$subs.sh ||
17665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17666 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17667 ac_delim='%!_!# '
17668 for ac_last_try in false false false false false :; do
17669 . ./conf$$subs.sh ||
17670 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17672 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17673 if test $ac_delim_n = $ac_delim_num; then
17674 break
17675 elif $ac_last_try; then
17676 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17677 else
17678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17680 done
17681 rm -f conf$$subs.sh
17683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17684 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17685 _ACEOF
17686 sed -n '
17688 s/^/S["/; s/!.*/"]=/
17691 s/^[^!]*!//
17692 :repl
17693 t repl
17694 s/'"$ac_delim"'$//
17695 t delim
17698 s/\(.\{148\}\).*/\1/
17699 t more1
17700 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17703 b repl
17704 :more1
17705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17708 s/.\{148\}//
17709 t nl
17710 :delim
17712 s/\(.\{148\}\).*/\1/
17713 t more2
17714 s/["\\]/\\&/g; s/^/"/; s/$/"/
17717 :more2
17718 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17721 s/.\{148\}//
17722 t delim
17723 ' <conf$$subs.awk | sed '
17724 /^[^""]/{
17726 s/\n//
17728 ' >>$CONFIG_STATUS || ac_write_fail=1
17729 rm -f conf$$subs.awk
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17731 _ACAWK
17732 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17733 for (key in S) S_is_set[key] = 1
17734 FS = "\a"
17738 line = $ 0
17739 nfields = split(line, field, "@")
17740 substed = 0
17741 len = length(field[1])
17742 for (i = 2; i < nfields; i++) {
17743 key = field[i]
17744 keylen = length(key)
17745 if (S_is_set[key]) {
17746 value = S[key]
17747 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17748 len += length(value) + length(field[++i])
17749 substed = 1
17750 } else
17751 len += 1 + keylen
17754 print line
17757 _ACAWK
17758 _ACEOF
17759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17760 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17761 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17762 else
17764 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17765 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17766 _ACEOF
17768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17770 # trailing colons and then remove the whole line if VPATH becomes empty
17771 # (actually we leave an empty line to preserve line numbers).
17772 if test "x$srcdir" = x.; then
17773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17774 s/:*\$(srcdir):*/:/
17775 s/:*\${srcdir}:*/:/
17776 s/:*@srcdir@:*/:/
17777 s/^\([^=]*=[ ]*\):*/\1/
17778 s/:*$//
17779 s/^[^=]*=[ ]*$//
17783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784 fi # test -n "$CONFIG_FILES"
17786 # Set up the scripts for CONFIG_HEADERS section.
17787 # No need to generate them if there are no CONFIG_HEADERS.
17788 # This happens for instance with `./config.status Makefile'.
17789 if test -n "$CONFIG_HEADERS"; then
17790 cat >"$tmp/defines.awk" <<\_ACAWK ||
17791 BEGIN {
17792 _ACEOF
17794 # Transform confdefs.h into an awk script `defines.awk', embedded as
17795 # here-document in config.status, that substitutes the proper values into
17796 # config.h.in to produce config.h.
17798 # Create a delimiter string that does not exist in confdefs.h, to ease
17799 # handling of long lines.
17800 ac_delim='%!_!# '
17801 for ac_last_try in false false :; do
17802 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17803 if test -z "$ac_t"; then
17804 break
17805 elif $ac_last_try; then
17806 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17807 else
17808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17810 done
17812 # For the awk script, D is an array of macro values keyed by name,
17813 # likewise P contains macro parameters if any. Preserve backslash
17814 # newline sequences.
17816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17817 sed -n '
17818 s/.\{148\}/&'"$ac_delim"'/g
17819 t rset
17820 :rset
17821 s/^[ ]*#[ ]*define[ ][ ]*/ /
17822 t def
17824 :def
17825 s/\\$//
17826 t bsnl
17827 s/["\\]/\\&/g
17828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17829 D["\1"]=" \3"/p
17830 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17832 :bsnl
17833 s/["\\]/\\&/g
17834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17835 D["\1"]=" \3\\\\\\n"\\/p
17836 t cont
17837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17838 t cont
17840 :cont
17842 s/.\{148\}/&'"$ac_delim"'/g
17843 t clear
17844 :clear
17845 s/\\$//
17846 t bsnlc
17847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17849 :bsnlc
17850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17851 b cont
17852 ' <confdefs.h | sed '
17853 s/'"$ac_delim"'/"\\\
17854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 for (key in D) D_is_set[key] = 1
17858 FS = "\a"
17860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17861 line = \$ 0
17862 split(line, arg, " ")
17863 if (arg[1] == "#") {
17864 defundef = arg[2]
17865 mac1 = arg[3]
17866 } else {
17867 defundef = substr(arg[1], 2)
17868 mac1 = arg[2]
17870 split(mac1, mac2, "(") #)
17871 macro = mac2[1]
17872 prefix = substr(line, 1, index(line, defundef) - 1)
17873 if (D_is_set[macro]) {
17874 # Preserve the white space surrounding the "#".
17875 print prefix "define", macro P[macro] D[macro]
17876 next
17877 } else {
17878 # Replace #undef with comments. This is necessary, for example,
17879 # in the case of _POSIX_SOURCE, which is predefined and required
17880 # on some systems where configure will not decide to define it.
17881 if (defundef == "undef") {
17882 print "/*", prefix defundef, macro, "*/"
17883 next
17887 { print }
17888 _ACAWK
17889 _ACEOF
17890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17892 fi # test -n "$CONFIG_HEADERS"
17895 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17896 shift
17897 for ac_tag
17899 case $ac_tag in
17900 :[FHLC]) ac_mode=$ac_tag; continue;;
17901 esac
17902 case $ac_mode$ac_tag in
17903 :[FHL]*:*);;
17904 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17905 :[FH]-) ac_tag=-:-;;
17906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17907 esac
17908 ac_save_IFS=$IFS
17909 IFS=:
17910 set x $ac_tag
17911 IFS=$ac_save_IFS
17912 shift
17913 ac_file=$1
17914 shift
17916 case $ac_mode in
17917 :L) ac_source=$1;;
17918 :[FH])
17919 ac_file_inputs=
17920 for ac_f
17922 case $ac_f in
17923 -) ac_f="$tmp/stdin";;
17924 *) # Look for the file first in the build tree, then in the source tree
17925 # (if the path is not absolute). The absolute path cannot be DOS-style,
17926 # because $ac_f cannot contain `:'.
17927 test -f "$ac_f" ||
17928 case $ac_f in
17929 [\\/$]*) false;;
17930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17931 esac ||
17932 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17933 esac
17934 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17935 as_fn_append ac_file_inputs " '$ac_f'"
17936 done
17938 # Let's still pretend it is `configure' which instantiates (i.e., don't
17939 # use $as_me), people would be surprised to read:
17940 # /* config.h. Generated by config.status. */
17941 configure_input='Generated from '`
17942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17943 `' by configure.'
17944 if test x"$ac_file" != x-; then
17945 configure_input="$ac_file. $configure_input"
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17947 $as_echo "$as_me: creating $ac_file" >&6;}
17949 # Neutralize special characters interpreted by sed in replacement strings.
17950 case $configure_input in #(
17951 *\&* | *\|* | *\\* )
17952 ac_sed_conf_input=`$as_echo "$configure_input" |
17953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17954 *) ac_sed_conf_input=$configure_input;;
17955 esac
17957 case $ac_tag in
17958 *:-:* | *:-) cat >"$tmp/stdin" \
17959 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17960 esac
17962 esac
17964 ac_dir=`$as_dirname -- "$ac_file" ||
17965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17966 X"$ac_file" : 'X\(//\)[^/]' \| \
17967 X"$ac_file" : 'X\(//\)$' \| \
17968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17969 $as_echo X"$ac_file" |
17970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17971 s//\1/
17974 /^X\(\/\/\)[^/].*/{
17975 s//\1/
17978 /^X\(\/\/\)$/{
17979 s//\1/
17982 /^X\(\/\).*/{
17983 s//\1/
17986 s/.*/./; q'`
17987 as_dir="$ac_dir"; as_fn_mkdir_p
17988 ac_builddir=.
17990 case "$ac_dir" in
17991 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17993 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17994 # A ".." for each directory in $ac_dir_suffix.
17995 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17996 case $ac_top_builddir_sub in
17997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17999 esac ;;
18000 esac
18001 ac_abs_top_builddir=$ac_pwd
18002 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18003 # for backward compatibility:
18004 ac_top_builddir=$ac_top_build_prefix
18006 case $srcdir in
18007 .) # We are building in place.
18008 ac_srcdir=.
18009 ac_top_srcdir=$ac_top_builddir_sub
18010 ac_abs_top_srcdir=$ac_pwd ;;
18011 [\\/]* | ?:[\\/]* ) # Absolute name.
18012 ac_srcdir=$srcdir$ac_dir_suffix;
18013 ac_top_srcdir=$srcdir
18014 ac_abs_top_srcdir=$srcdir ;;
18015 *) # Relative name.
18016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18017 ac_top_srcdir=$ac_top_build_prefix$srcdir
18018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18019 esac
18020 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18023 case $ac_mode in
18026 # CONFIG_FILE
18029 case $INSTALL in
18030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18032 esac
18033 ac_MKDIR_P=$MKDIR_P
18034 case $MKDIR_P in
18035 [\\/$]* | ?:[\\/]* ) ;;
18036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18037 esac
18038 _ACEOF
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18041 # If the template does not know about datarootdir, expand it.
18042 # FIXME: This hack should be removed a few years after 2.60.
18043 ac_datarootdir_hack=; ac_datarootdir_seen=
18044 ac_sed_dataroot='
18045 /datarootdir/ {
18049 /@datadir@/p
18050 /@docdir@/p
18051 /@infodir@/p
18052 /@localedir@/p
18053 /@mandir@/p'
18054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18055 *datarootdir*) ac_datarootdir_seen=yes;;
18056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18059 _ACEOF
18060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18061 ac_datarootdir_hack='
18062 s&@datadir@&$datadir&g
18063 s&@docdir@&$docdir&g
18064 s&@infodir@&$infodir&g
18065 s&@localedir@&$localedir&g
18066 s&@mandir@&$mandir&g
18067 s&\\\${datarootdir}&$datarootdir&g' ;;
18068 esac
18069 _ACEOF
18071 # Neutralize VPATH when `$srcdir' = `.'.
18072 # Shell code in configure.ac might set extrasub.
18073 # FIXME: do we really want to maintain this feature?
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18075 ac_sed_extra="$ac_vpsub
18076 $extrasub
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18081 s|@configure_input@|$ac_sed_conf_input|;t t
18082 s&@top_builddir@&$ac_top_builddir_sub&;t t
18083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18084 s&@srcdir@&$ac_srcdir&;t t
18085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18086 s&@top_srcdir@&$ac_top_srcdir&;t t
18087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18088 s&@builddir@&$ac_builddir&;t t
18089 s&@abs_builddir@&$ac_abs_builddir&;t t
18090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18091 s&@INSTALL@&$ac_INSTALL&;t t
18092 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18093 $ac_datarootdir_hack
18095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18096 || as_fn_error "could not create $ac_file" "$LINENO" 5
18098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18102 which seems to be undefined. Please make sure it is defined." >&5
18103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18104 which seems to be undefined. Please make sure it is defined." >&2;}
18106 rm -f "$tmp/stdin"
18107 case $ac_file in
18108 -) cat "$tmp/out" && rm -f "$tmp/out";;
18109 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18110 esac \
18111 || as_fn_error "could not create $ac_file" "$LINENO" 5
18115 # CONFIG_HEADER
18117 if test x"$ac_file" != x-; then
18119 $as_echo "/* $configure_input */" \
18120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18121 } >"$tmp/config.h" \
18122 || as_fn_error "could not create $ac_file" "$LINENO" 5
18123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18126 else
18127 rm -f "$ac_file"
18128 mv "$tmp/config.h" "$ac_file" \
18129 || as_fn_error "could not create $ac_file" "$LINENO" 5
18131 else
18132 $as_echo "/* $configure_input */" \
18133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18134 || as_fn_error "could not create -" "$LINENO" 5
18136 # Compute "$ac_file"'s index in $config_headers.
18137 _am_arg="$ac_file"
18138 _am_stamp_count=1
18139 for _am_header in $config_headers :; do
18140 case $_am_header in
18141 $_am_arg | $_am_arg:* )
18142 break ;;
18144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18145 esac
18146 done
18147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18149 X"$_am_arg" : 'X\(//\)[^/]' \| \
18150 X"$_am_arg" : 'X\(//\)$' \| \
18151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18152 $as_echo X"$_am_arg" |
18153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18154 s//\1/
18157 /^X\(\/\/\)[^/].*/{
18158 s//\1/
18161 /^X\(\/\/\)$/{
18162 s//\1/
18165 /^X\(\/\).*/{
18166 s//\1/
18169 s/.*/./; q'`/stamp-h$_am_stamp_count
18173 # CONFIG_LINK
18176 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18178 else
18179 # Prefer the file from the source tree if names are identical.
18180 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18181 ac_source=$srcdir/$ac_source
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18185 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18187 if test ! -r "$ac_source"; then
18188 as_fn_error "$ac_source: file not found" "$LINENO" 5
18190 rm -f "$ac_file"
18192 # Try a relative symlink, then a hard link, then a copy.
18193 case $srcdir in
18194 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18195 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18196 esac
18197 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18198 ln "$ac_source" "$ac_file" 2>/dev/null ||
18199 cp -p "$ac_source" "$ac_file" ||
18200 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18203 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18204 $as_echo "$as_me: executing $ac_file commands" >&6;}
18206 esac
18209 case $ac_file$ac_mode in
18210 "default-1":C)
18211 # Only add multilib support code if we just rebuilt the top-level
18212 # Makefile.
18213 case " $CONFIG_FILES " in
18214 *" Makefile "*)
18215 ac_file=Makefile . ${multi_basedir}/config-ml.in
18217 esac ;;
18218 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18219 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18220 # are listed without --file. Let's play safe and only enable the eval
18221 # if we detect the quoting.
18222 case $CONFIG_FILES in
18223 *\'*) eval set x "$CONFIG_FILES" ;;
18224 *) set x $CONFIG_FILES ;;
18225 esac
18226 shift
18227 for mf
18229 # Strip MF so we end up with the name of the file.
18230 mf=`echo "$mf" | sed -e 's/:.*$//'`
18231 # Check whether this is an Automake generated Makefile or not.
18232 # We used to match only the files named `Makefile.in', but
18233 # some people rename them; so instead we look at the file content.
18234 # Grep'ing the first line is not enough: some people post-process
18235 # each Makefile.in and add a new line on top of each file to say so.
18236 # Grep'ing the whole file is not good either: AIX grep has a line
18237 # limit of 2048, but all sed's we know have understand at least 4000.
18238 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18239 dirpart=`$as_dirname -- "$mf" ||
18240 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18241 X"$mf" : 'X\(//\)[^/]' \| \
18242 X"$mf" : 'X\(//\)$' \| \
18243 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18244 $as_echo X"$mf" |
18245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18246 s//\1/
18249 /^X\(\/\/\)[^/].*/{
18250 s//\1/
18253 /^X\(\/\/\)$/{
18254 s//\1/
18257 /^X\(\/\).*/{
18258 s//\1/
18261 s/.*/./; q'`
18262 else
18263 continue
18265 # Extract the definition of DEPDIR, am__include, and am__quote
18266 # from the Makefile without running `make'.
18267 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18268 test -z "$DEPDIR" && continue
18269 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18270 test -z "am__include" && continue
18271 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18272 # When using ansi2knr, U may be empty or an underscore; expand it
18273 U=`sed -n 's/^U = //p' < "$mf"`
18274 # Find all dependency output files, they are included files with
18275 # $(DEPDIR) in their names. We invoke sed twice because it is the
18276 # simplest approach to changing $(DEPDIR) to its actual value in the
18277 # expansion.
18278 for file in `sed -n "
18279 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18280 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18281 # Make sure the directory exists.
18282 test -f "$dirpart/$file" && continue
18283 fdir=`$as_dirname -- "$file" ||
18284 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18285 X"$file" : 'X\(//\)[^/]' \| \
18286 X"$file" : 'X\(//\)$' \| \
18287 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18288 $as_echo X"$file" |
18289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18290 s//\1/
18293 /^X\(\/\/\)[^/].*/{
18294 s//\1/
18297 /^X\(\/\/\)$/{
18298 s//\1/
18301 /^X\(\/\).*/{
18302 s//\1/
18305 s/.*/./; q'`
18306 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18307 # echo "creating $dirpart/$file"
18308 echo '# dummy' > "$dirpart/$file"
18309 done
18310 done
18313 "libtool":C)
18315 # See if we are running on zsh, and set the options which allow our
18316 # commands through without removal of \ escapes.
18317 if test -n "${ZSH_VERSION+set}" ; then
18318 setopt NO_GLOB_SUBST
18321 cfgfile="${ofile}T"
18322 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18323 $RM "$cfgfile"
18325 cat <<_LT_EOF >> "$cfgfile"
18326 #! $SHELL
18328 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18329 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18331 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18333 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18334 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18335 # Written by Gordon Matzigkeit, 1996
18337 # This file is part of GNU Libtool.
18339 # GNU Libtool is free software; you can redistribute it and/or
18340 # modify it under the terms of the GNU General Public License as
18341 # published by the Free Software Foundation; either version 2 of
18342 # the License, or (at your option) any later version.
18344 # As a special exception to the GNU General Public License,
18345 # if you distribute this file as part of a program or library that
18346 # is built using GNU Libtool, you may include this file under the
18347 # same distribution terms that you use for the rest of that program.
18349 # GNU Libtool is distributed in the hope that it will be useful,
18350 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18352 # GNU General Public License for more details.
18354 # You should have received a copy of the GNU General Public License
18355 # along with GNU Libtool; see the file COPYING. If not, a copy
18356 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18357 # obtained by writing to the Free Software Foundation, Inc.,
18358 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18361 # The names of the tagged configurations supported by this script.
18362 available_tags="CXX "
18364 # ### BEGIN LIBTOOL CONFIG
18366 # Which release of libtool.m4 was used?
18367 macro_version=$macro_version
18368 macro_revision=$macro_revision
18370 # Whether or not to build shared libraries.
18371 build_libtool_libs=$enable_shared
18373 # Whether or not to build static libraries.
18374 build_old_libs=$enable_static
18376 # What type of objects to build.
18377 pic_mode=$pic_mode
18379 # Whether or not to optimize for fast installation.
18380 fast_install=$enable_fast_install
18382 # Shell to use when invoking shell scripts.
18383 SHELL=$lt_SHELL
18385 # An echo program that protects backslashes.
18386 ECHO=$lt_ECHO
18388 # The host system.
18389 host_alias=$host_alias
18390 host=$host
18391 host_os=$host_os
18393 # The build system.
18394 build_alias=$build_alias
18395 build=$build
18396 build_os=$build_os
18398 # A sed program that does not truncate output.
18399 SED=$lt_SED
18401 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18402 Xsed="\$SED -e 1s/^X//"
18404 # A grep program that handles long lines.
18405 GREP=$lt_GREP
18407 # An ERE matcher.
18408 EGREP=$lt_EGREP
18410 # A literal string matcher.
18411 FGREP=$lt_FGREP
18413 # A BSD- or MS-compatible name lister.
18414 NM=$lt_NM
18416 # Whether we need soft or hard links.
18417 LN_S=$lt_LN_S
18419 # What is the maximum length of a command?
18420 max_cmd_len=$max_cmd_len
18422 # Object file suffix (normally "o").
18423 objext=$ac_objext
18425 # Executable file suffix (normally "").
18426 exeext=$exeext
18428 # whether the shell understands "unset".
18429 lt_unset=$lt_unset
18431 # turn spaces into newlines.
18432 SP2NL=$lt_lt_SP2NL
18434 # turn newlines into spaces.
18435 NL2SP=$lt_lt_NL2SP
18437 # An object symbol dumper.
18438 OBJDUMP=$lt_OBJDUMP
18440 # Method to check whether dependent libraries are shared objects.
18441 deplibs_check_method=$lt_deplibs_check_method
18443 # Command to use when deplibs_check_method == "file_magic".
18444 file_magic_cmd=$lt_file_magic_cmd
18446 # The archiver.
18447 AR=$lt_AR
18448 AR_FLAGS=$lt_AR_FLAGS
18450 # A symbol stripping program.
18451 STRIP=$lt_STRIP
18453 # Commands used to install an old-style archive.
18454 RANLIB=$lt_RANLIB
18455 old_postinstall_cmds=$lt_old_postinstall_cmds
18456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18458 # Whether to use a lock for old archive extraction.
18459 lock_old_archive_extraction=$lock_old_archive_extraction
18461 # A C compiler.
18462 LTCC=$lt_CC
18464 # LTCC compiler flags.
18465 LTCFLAGS=$lt_CFLAGS
18467 # Take the output of nm and produce a listing of raw symbols and C names.
18468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18470 # Transform the output of nm in a proper C declaration.
18471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18473 # Transform the output of nm in a C name address pair.
18474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18476 # Transform the output of nm in a C name address pair when lib prefix is needed.
18477 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18479 # The name of the directory that contains temporary libtool files.
18480 objdir=$objdir
18482 # Used to examine libraries when file_magic_cmd begins with "file".
18483 MAGIC_CMD=$MAGIC_CMD
18485 # Must we lock files when doing compilation?
18486 need_locks=$lt_need_locks
18488 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18489 DSYMUTIL=$lt_DSYMUTIL
18491 # Tool to change global to local symbols on Mac OS X.
18492 NMEDIT=$lt_NMEDIT
18494 # Tool to manipulate fat objects and archives on Mac OS X.
18495 LIPO=$lt_LIPO
18497 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18498 OTOOL=$lt_OTOOL
18500 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18501 OTOOL64=$lt_OTOOL64
18503 # Old archive suffix (normally "a").
18504 libext=$libext
18506 # Shared library suffix (normally ".so").
18507 shrext_cmds=$lt_shrext_cmds
18509 # The commands to extract the exported symbol list from a shared archive.
18510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18512 # Variables whose values should be saved in libtool wrapper scripts and
18513 # restored at link time.
18514 variables_saved_for_relink=$lt_variables_saved_for_relink
18516 # Do we need the "lib" prefix for modules?
18517 need_lib_prefix=$need_lib_prefix
18519 # Do we need a version for libraries?
18520 need_version=$need_version
18522 # Library versioning type.
18523 version_type=$version_type
18525 # Shared library runtime path variable.
18526 runpath_var=$runpath_var
18528 # Shared library path variable.
18529 shlibpath_var=$shlibpath_var
18531 # Is shlibpath searched before the hard-coded library search path?
18532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18534 # Format of library name prefix.
18535 libname_spec=$lt_libname_spec
18537 # List of archive names. First name is the real one, the rest are links.
18538 # The last name is the one that the linker finds with -lNAME
18539 library_names_spec=$lt_library_names_spec
18541 # The coded name of the library, if different from the real name.
18542 soname_spec=$lt_soname_spec
18544 # Permission mode override for installation of shared libraries.
18545 install_override_mode=$lt_install_override_mode
18547 # Command to use after installation of a shared archive.
18548 postinstall_cmds=$lt_postinstall_cmds
18550 # Command to use after uninstallation of a shared archive.
18551 postuninstall_cmds=$lt_postuninstall_cmds
18553 # Commands used to finish a libtool library installation in a directory.
18554 finish_cmds=$lt_finish_cmds
18556 # As "finish_cmds", except a single script fragment to be evaled but
18557 # not shown.
18558 finish_eval=$lt_finish_eval
18560 # Whether we should hardcode library paths into libraries.
18561 hardcode_into_libs=$hardcode_into_libs
18563 # Compile-time system search path for libraries.
18564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18566 # Run-time system search path for libraries.
18567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18569 # Whether dlopen is supported.
18570 dlopen_support=$enable_dlopen
18572 # Whether dlopen of programs is supported.
18573 dlopen_self=$enable_dlopen_self
18575 # Whether dlopen of statically linked programs is supported.
18576 dlopen_self_static=$enable_dlopen_self_static
18578 # Commands to strip libraries.
18579 old_striplib=$lt_old_striplib
18580 striplib=$lt_striplib
18583 # The linker used to build libraries.
18584 LD=$lt_LD
18586 # How to create reloadable object files.
18587 reload_flag=$lt_reload_flag
18588 reload_cmds=$lt_reload_cmds
18590 # Commands used to build an old-style archive.
18591 old_archive_cmds=$lt_old_archive_cmds
18593 # A language specific compiler.
18594 CC=$lt_compiler
18596 # Is the compiler the GNU compiler?
18597 with_gcc=$GCC
18599 # Compiler flag to turn off builtin functions.
18600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18602 # How to pass a linker flag through the compiler.
18603 wl=$lt_lt_prog_compiler_wl
18605 # Additional compiler flags for building library objects.
18606 pic_flag=$lt_lt_prog_compiler_pic
18608 # Compiler flag to prevent dynamic linking.
18609 link_static_flag=$lt_lt_prog_compiler_static
18611 # Does compiler simultaneously support -c and -o options?
18612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18614 # Whether or not to add -lc for building shared libraries.
18615 build_libtool_need_lc=$archive_cmds_need_lc
18617 # Whether or not to disallow shared libs when runtime libs are static.
18618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18620 # Compiler flag to allow reflexive dlopens.
18621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18623 # Compiler flag to generate shared objects directly from archives.
18624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18626 # Whether the compiler copes with passing no objects directly.
18627 compiler_needs_object=$lt_compiler_needs_object
18629 # Create an old-style archive from a shared archive.
18630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18632 # Create a temporary old-style archive to link instead of a shared archive.
18633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18635 # Commands used to build a shared archive.
18636 archive_cmds=$lt_archive_cmds
18637 archive_expsym_cmds=$lt_archive_expsym_cmds
18639 # Commands used to build a loadable module if different from building
18640 # a shared archive.
18641 module_cmds=$lt_module_cmds
18642 module_expsym_cmds=$lt_module_expsym_cmds
18644 # Whether we are building with GNU ld or not.
18645 with_gnu_ld=$lt_with_gnu_ld
18647 # Flag that allows shared libraries with undefined symbols to be built.
18648 allow_undefined_flag=$lt_allow_undefined_flag
18650 # Flag that enforces no undefined symbols.
18651 no_undefined_flag=$lt_no_undefined_flag
18653 # Flag to hardcode \$libdir into a binary during linking.
18654 # This must work even if \$libdir does not exist
18655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18657 # If ld is used when linking, flag to hardcode \$libdir into a binary
18658 # during linking. This must work even if \$libdir does not exist.
18659 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18661 # Whether we need a single "-rpath" flag with a separated argument.
18662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18665 # DIR into the resulting binary.
18666 hardcode_direct=$hardcode_direct
18668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18669 # DIR into the resulting binary and the resulting library dependency is
18670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18671 # library is relocated.
18672 hardcode_direct_absolute=$hardcode_direct_absolute
18674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18675 # into the resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L
18678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18679 # into the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var
18682 # Set to "yes" if building a shared library automatically hardcodes DIR
18683 # into the library and all subsequent libraries and executables linked
18684 # against it.
18685 hardcode_automatic=$hardcode_automatic
18687 # Set to yes if linker adds runtime paths of dependent libraries
18688 # to runtime path list.
18689 inherit_rpath=$inherit_rpath
18691 # Whether libtool must link a program against all its dependency libraries.
18692 link_all_deplibs=$link_all_deplibs
18694 # Fix the shell variable \$srcfile for the compiler.
18695 fix_srcfile_path=$lt_fix_srcfile_path
18697 # Set to "yes" if exported symbols are required.
18698 always_export_symbols=$always_export_symbols
18700 # The commands to list exported symbols.
18701 export_symbols_cmds=$lt_export_symbols_cmds
18703 # Symbols that should not be listed in the preloaded symbols.
18704 exclude_expsyms=$lt_exclude_expsyms
18706 # Symbols that must always be exported.
18707 include_expsyms=$lt_include_expsyms
18709 # Commands necessary for linking programs (against libraries) with templates.
18710 prelink_cmds=$lt_prelink_cmds
18712 # Specify filename containing input files.
18713 file_list_spec=$lt_file_list_spec
18715 # How to hardcode a shared library path into an executable.
18716 hardcode_action=$hardcode_action
18718 # The directories searched by this compiler when creating a shared library.
18719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18721 # Dependencies to place before and after the objects being linked to
18722 # create a shared library.
18723 predep_objects=$lt_predep_objects
18724 postdep_objects=$lt_postdep_objects
18725 predeps=$lt_predeps
18726 postdeps=$lt_postdeps
18728 # The library search path used internally by the compiler when linking
18729 # a shared library.
18730 compiler_lib_search_path=$lt_compiler_lib_search_path
18732 # ### END LIBTOOL CONFIG
18734 _LT_EOF
18736 case $host_os in
18737 aix3*)
18738 cat <<\_LT_EOF >> "$cfgfile"
18739 # AIX sometimes has problems with the GCC collect2 program. For some
18740 # reason, if we set the COLLECT_NAMES environment variable, the problems
18741 # vanish in a puff of smoke.
18742 if test "X${COLLECT_NAMES+set}" != Xset; then
18743 COLLECT_NAMES=
18744 export COLLECT_NAMES
18746 _LT_EOF
18748 esac
18751 ltmain="$ac_aux_dir/ltmain.sh"
18754 # We use sed instead of cat because bash on DJGPP gets confused if
18755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18756 # text mode, it properly converts lines to CR/LF. This bash problem
18757 # is reportedly fixed, but why not run on old versions too?
18758 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18759 || (rm -f "$cfgfile"; exit 1)
18761 case $xsi_shell in
18762 yes)
18763 cat << \_LT_EOF >> "$cfgfile"
18765 # func_dirname file append nondir_replacement
18766 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18767 # otherwise set result to NONDIR_REPLACEMENT.
18768 func_dirname ()
18770 case ${1} in
18771 */*) func_dirname_result="${1%/*}${2}" ;;
18772 * ) func_dirname_result="${3}" ;;
18773 esac
18776 # func_basename file
18777 func_basename ()
18779 func_basename_result="${1##*/}"
18782 # func_dirname_and_basename file append nondir_replacement
18783 # perform func_basename and func_dirname in a single function
18784 # call:
18785 # dirname: Compute the dirname of FILE. If nonempty,
18786 # add APPEND to the result, otherwise set result
18787 # to NONDIR_REPLACEMENT.
18788 # value returned in "$func_dirname_result"
18789 # basename: Compute filename of FILE.
18790 # value retuned in "$func_basename_result"
18791 # Implementation must be kept synchronized with func_dirname
18792 # and func_basename. For efficiency, we do not delegate to
18793 # those functions but instead duplicate the functionality here.
18794 func_dirname_and_basename ()
18796 case ${1} in
18797 */*) func_dirname_result="${1%/*}${2}" ;;
18798 * ) func_dirname_result="${3}" ;;
18799 esac
18800 func_basename_result="${1##*/}"
18803 # func_stripname prefix suffix name
18804 # strip PREFIX and SUFFIX off of NAME.
18805 # PREFIX and SUFFIX must not contain globbing or regex special
18806 # characters, hashes, percent signs, but SUFFIX may contain a leading
18807 # dot (in which case that matches only a dot).
18808 func_stripname ()
18810 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18811 # positional parameters, so assign one to ordinary parameter first.
18812 func_stripname_result=${3}
18813 func_stripname_result=${func_stripname_result#"${1}"}
18814 func_stripname_result=${func_stripname_result%"${2}"}
18817 # func_opt_split
18818 func_opt_split ()
18820 func_opt_split_opt=${1%%=*}
18821 func_opt_split_arg=${1#*=}
18824 # func_lo2o object
18825 func_lo2o ()
18827 case ${1} in
18828 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18829 *) func_lo2o_result=${1} ;;
18830 esac
18833 # func_xform libobj-or-source
18834 func_xform ()
18836 func_xform_result=${1%.*}.lo
18839 # func_arith arithmetic-term...
18840 func_arith ()
18842 func_arith_result=$(( $* ))
18845 # func_len string
18846 # STRING may not start with a hyphen.
18847 func_len ()
18849 func_len_result=${#1}
18852 _LT_EOF
18854 *) # Bourne compatible functions.
18855 cat << \_LT_EOF >> "$cfgfile"
18857 # func_dirname file append nondir_replacement
18858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18859 # otherwise set result to NONDIR_REPLACEMENT.
18860 func_dirname ()
18862 # Extract subdirectory from the argument.
18863 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18864 if test "X$func_dirname_result" = "X${1}"; then
18865 func_dirname_result="${3}"
18866 else
18867 func_dirname_result="$func_dirname_result${2}"
18871 # func_basename file
18872 func_basename ()
18874 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18878 # func_stripname prefix suffix name
18879 # strip PREFIX and SUFFIX off of NAME.
18880 # PREFIX and SUFFIX must not contain globbing or regex special
18881 # characters, hashes, percent signs, but SUFFIX may contain a leading
18882 # dot (in which case that matches only a dot).
18883 # func_strip_suffix prefix name
18884 func_stripname ()
18886 case ${2} in
18887 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18888 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18889 esac
18892 # sed scripts:
18893 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18894 my_sed_long_arg='1s/^-[^=]*=//'
18896 # func_opt_split
18897 func_opt_split ()
18899 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18900 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18903 # func_lo2o object
18904 func_lo2o ()
18906 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18909 # func_xform libobj-or-source
18910 func_xform ()
18912 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18915 # func_arith arithmetic-term...
18916 func_arith ()
18918 func_arith_result=`expr "$@"`
18921 # func_len string
18922 # STRING may not start with a hyphen.
18923 func_len ()
18925 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18928 _LT_EOF
18929 esac
18931 case $lt_shell_append in
18932 yes)
18933 cat << \_LT_EOF >> "$cfgfile"
18935 # func_append var value
18936 # Append VALUE to the end of shell variable VAR.
18937 func_append ()
18939 eval "$1+=\$2"
18941 _LT_EOF
18944 cat << \_LT_EOF >> "$cfgfile"
18946 # func_append var value
18947 # Append VALUE to the end of shell variable VAR.
18948 func_append ()
18950 eval "$1=\$$1\$2"
18953 _LT_EOF
18955 esac
18958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18959 || (rm -f "$cfgfile"; exit 1)
18961 mv -f "$cfgfile" "$ofile" ||
18962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18963 chmod +x "$ofile"
18966 cat <<_LT_EOF >> "$ofile"
18968 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18970 # The linker used to build libraries.
18971 LD=$lt_LD_CXX
18973 # How to create reloadable object files.
18974 reload_flag=$lt_reload_flag_CXX
18975 reload_cmds=$lt_reload_cmds_CXX
18977 # Commands used to build an old-style archive.
18978 old_archive_cmds=$lt_old_archive_cmds_CXX
18980 # A language specific compiler.
18981 CC=$lt_compiler_CXX
18983 # Is the compiler the GNU compiler?
18984 with_gcc=$GCC_CXX
18986 # Compiler flag to turn off builtin functions.
18987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18989 # How to pass a linker flag through the compiler.
18990 wl=$lt_lt_prog_compiler_wl_CXX
18992 # Additional compiler flags for building library objects.
18993 pic_flag=$lt_lt_prog_compiler_pic_CXX
18995 # Compiler flag to prevent dynamic linking.
18996 link_static_flag=$lt_lt_prog_compiler_static_CXX
18998 # Does compiler simultaneously support -c and -o options?
18999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19001 # Whether or not to add -lc for building shared libraries.
19002 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19004 # Whether or not to disallow shared libs when runtime libs are static.
19005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19007 # Compiler flag to allow reflexive dlopens.
19008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19010 # Compiler flag to generate shared objects directly from archives.
19011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19013 # Whether the compiler copes with passing no objects directly.
19014 compiler_needs_object=$lt_compiler_needs_object_CXX
19016 # Create an old-style archive from a shared archive.
19017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19019 # Create a temporary old-style archive to link instead of a shared archive.
19020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19022 # Commands used to build a shared archive.
19023 archive_cmds=$lt_archive_cmds_CXX
19024 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19026 # Commands used to build a loadable module if different from building
19027 # a shared archive.
19028 module_cmds=$lt_module_cmds_CXX
19029 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19031 # Whether we are building with GNU ld or not.
19032 with_gnu_ld=$lt_with_gnu_ld_CXX
19034 # Flag that allows shared libraries with undefined symbols to be built.
19035 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19037 # Flag that enforces no undefined symbols.
19038 no_undefined_flag=$lt_no_undefined_flag_CXX
19040 # Flag to hardcode \$libdir into a binary during linking.
19041 # This must work even if \$libdir does not exist
19042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19044 # If ld is used when linking, flag to hardcode \$libdir into a binary
19045 # during linking. This must work even if \$libdir does not exist.
19046 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19048 # Whether we need a single "-rpath" flag with a separated argument.
19049 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19052 # DIR into the resulting binary.
19053 hardcode_direct=$hardcode_direct_CXX
19055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19056 # DIR into the resulting binary and the resulting library dependency is
19057 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19058 # library is relocated.
19059 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19062 # into the resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L_CXX
19065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19069 # Set to "yes" if building a shared library automatically hardcodes DIR
19070 # into the library and all subsequent libraries and executables linked
19071 # against it.
19072 hardcode_automatic=$hardcode_automatic_CXX
19074 # Set to yes if linker adds runtime paths of dependent libraries
19075 # to runtime path list.
19076 inherit_rpath=$inherit_rpath_CXX
19078 # Whether libtool must link a program against all its dependency libraries.
19079 link_all_deplibs=$link_all_deplibs_CXX
19081 # Fix the shell variable \$srcfile for the compiler.
19082 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19084 # Set to "yes" if exported symbols are required.
19085 always_export_symbols=$always_export_symbols_CXX
19087 # The commands to list exported symbols.
19088 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19090 # Symbols that should not be listed in the preloaded symbols.
19091 exclude_expsyms=$lt_exclude_expsyms_CXX
19093 # Symbols that must always be exported.
19094 include_expsyms=$lt_include_expsyms_CXX
19096 # Commands necessary for linking programs (against libraries) with templates.
19097 prelink_cmds=$lt_prelink_cmds_CXX
19099 # Specify filename containing input files.
19100 file_list_spec=$lt_file_list_spec_CXX
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_CXX
19105 # The directories searched by this compiler when creating a shared library.
19106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19108 # Dependencies to place before and after the objects being linked to
19109 # create a shared library.
19110 predep_objects=$lt_predep_objects_CXX
19111 postdep_objects=$lt_postdep_objects_CXX
19112 predeps=$lt_predeps_CXX
19113 postdeps=$lt_postdeps_CXX
19115 # The library search path used internally by the compiler when linking
19116 # a shared library.
19117 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19119 # ### END LIBTOOL TAG CONFIG: CXX
19120 _LT_EOF
19123 "include":C) test -d include || mkdir include ;;
19124 "src":C)
19125 test -d src || mkdir src
19126 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19129 esac
19130 done # for ac_tag
19133 as_fn_exit 0
19134 _ACEOF
19135 ac_clean_files=$ac_clean_files_save
19137 test $ac_write_fail = 0 ||
19138 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19141 # configure is writing to config.log, and then calls config.status.
19142 # config.status does its own redirection, appending to config.log.
19143 # Unfortunately, on DOS this fails, as config.log is still kept open
19144 # by configure, so config.status won't be able to write to it; its
19145 # output is simply discarded. So we exec the FD to /dev/null,
19146 # effectively closing config.log, so it can be properly (re)opened and
19147 # appended to by config.status. When coming back to configure, we
19148 # need to make the FD available again.
19149 if test "$no_create" != yes; then
19150 ac_cs_success=:
19151 ac_config_status_args=
19152 test "$silent" = yes &&
19153 ac_config_status_args="$ac_config_status_args --quiet"
19154 exec 5>/dev/null
19155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19156 exec 5>>config.log
19157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19158 # would make configure fail if this is the last instruction.
19159 $ac_cs_success || as_fn_exit $?
19161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}