PR go/67101
[official-gcc.git] / libffi / configure
blob79b430ab1ca01b3404036c9151a8000d6efb39cc
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 toolexeclibdir
608 toolexecdir
609 FFI_DEBUG_FALSE
610 FFI_DEBUG_TRUE
611 TARGET_OBJ
612 TARGETDIR
613 TARGET
614 FFI_EXEC_TRAMPOLINE_TABLE
615 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
616 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
617 HAVE_LONG_DOUBLE_VARIANT
618 HAVE_LONG_DOUBLE
619 ALLOCA
620 AM_LTLDFLAGS
621 AM_RUNTESTFLAGS
622 TESTSUBDIR_FALSE
623 TESTSUBDIR_TRUE
624 MAINT
625 MAINTAINER_MODE_FALSE
626 MAINTAINER_MODE_TRUE
627 CXXCPP
629 OTOOL64
630 OTOOL
631 LIPO
632 NMEDIT
633 DSYMUTIL
634 RANLIB
636 OBJDUMP
637 LN_S
639 ac_ct_DUMPBIN
640 DUMPBIN
642 FGREP
643 EGREP
644 GREP
646 LIBTOOL
647 am__fastdepCCAS_FALSE
648 am__fastdepCCAS_TRUE
649 CCASDEPMODE
650 CCASFLAGS
651 CCAS
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 ac_ct_CXX
656 CXXFLAGS
658 am__fastdepCC_FALSE
659 am__fastdepCC_TRUE
660 CCDEPMODE
661 am__nodep
662 AMDEPBACKSLASH
663 AMDEP_FALSE
664 AMDEP_TRUE
665 am__quote
666 am__include
667 DEPDIR
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 GENINSRC_FALSE
676 GENINSRC_TRUE
677 BUILD_INFO_FALSE
678 BUILD_INFO_TRUE
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 multi_basedir
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_multilib
757 enable_generated_files_in_srcdir
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 enable_libtool_lock
765 enable_maintainer_mode
766 enable_pax_emutramp
767 enable_debug
768 enable_structs
769 enable_raw_api
770 enable_purify_safety
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CCAS
776 CCASFLAGS
778 CPPFLAGS
779 CXXCPP'
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186 esac
1187 done
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387 _ACEOF
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of libffi 3.99999:";;
1393 esac
1394 cat <<\_ACEOF
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-multilib build many library versions (default)
1401 --enable-generated-files-in-srcdir
1402 put copies of generated files in source dir intended
1403 for creating source tarballs for users without
1404 texinfo bison or flex
1405 --disable-dependency-tracking speeds up one-time build
1406 --enable-dependency-tracking do not reject slow dependency extractors
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1415 --enable-debug debugging mode
1416 --disable-structs omit code for struct support
1417 --disable-raw-api make the raw api unavailable
1418 --enable-purify-safety purify-safe mode
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CCAS assembler compiler command (defaults to CC)
1438 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1439 CPP C preprocessor
1440 CXXCPP C++ preprocessor
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <http://github.com/atgreen/libffi/issues>.
1446 _ACEOF
1447 ac_status=$?
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 libffi configure 3.99999
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_cxx_try_compile LINENO
1561 # ----------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_cxx_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 return $ac_retval
1596 } # ac_fn_cxx_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 } # ac_fn_c_check_header_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=1
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 return $ac_retval
1710 } # ac_fn_c_try_cpp
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=$ac_status
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1752 } # ac_fn_c_try_run
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1764 else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1776 #ifdef __STDC__
1777 # include <limits.h>
1778 #else
1779 # include <assert.h>
1780 #endif
1782 #undef $2
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1787 #ifdef __cplusplus
1788 extern "C"
1789 #endif
1790 char $2 ();
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1795 choke me
1796 #endif
1799 main ()
1801 return $2 ();
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_link "$LINENO"; then :
1807 eval "$3=yes"
1808 else
1809 eval "$3=no"
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_func
1821 # ac_fn_cxx_try_cpp LINENO
1822 # ------------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_cpp ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_cxx_try_cpp
1858 # ac_fn_cxx_try_link LINENO
1859 # -------------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_cxx_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1902 } # ac_fn_cxx_try_link
1904 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905 # --------------------------------------------
1906 # Tries to find the compile-time value of EXPR in a program that includes
1907 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1908 # computed
1909 ac_fn_c_compute_int ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if test "$cross_compiling" = yes; then
1913 # Depending upon the size, compute the lo and hi bounds.
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1918 main ()
1920 static int test_array [1 - 2 * !(($2) >= 0)];
1921 test_array [0] = 0
1924 return 0;
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_lo=0 ac_mid=0
1929 while :; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_hi=$ac_mid; break
1945 else
1946 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1947 if test $ac_lo -le $ac_mid; then
1948 ac_lo= ac_hi=
1949 break
1951 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 static int test_array [1 - 2 * !(($2) < 0)];
1963 test_array [0] = 0
1966 return 0;
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_hi=-1 ac_mid=-1
1971 while :; do
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1979 test_array [0] = 0
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_lo=$ac_mid; break
1987 else
1988 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1989 if test $ac_mid -le $ac_hi; then
1990 ac_lo= ac_hi=
1991 break
1993 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 done
1997 else
1998 ac_lo= ac_hi=
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 # Binary search between lo and hi bounds.
2004 while test "x$ac_lo" != "x$ac_hi"; do
2005 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2013 test_array [0] = 0
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_hi=$ac_mid
2021 else
2022 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026 case $ac_lo in #((
2027 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2028 '') ac_retval=1 ;;
2029 esac
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2034 static long int longval () { return $2; }
2035 static unsigned long int ulongval () { return $2; }
2036 #include <stdio.h>
2037 #include <stdlib.h>
2039 main ()
2042 FILE *f = fopen ("conftest.val", "w");
2043 if (! f)
2044 return 1;
2045 if (($2) < 0)
2047 long int i = longval ();
2048 if (i != ($2))
2049 return 1;
2050 fprintf (f, "%ld", i);
2052 else
2054 unsigned long int i = ulongval ();
2055 if (i != ($2))
2056 return 1;
2057 fprintf (f, "%lu", i);
2059 /* Do not output a trailing newline, as this causes \r\n confusion
2060 on some platforms. */
2061 return ferror (f) || fclose (f) != 0;
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_run "$LINENO"; then :
2068 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2069 else
2070 ac_retval=1
2072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2073 conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 rm -f conftest.val
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2080 } # ac_fn_c_compute_int
2082 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # -------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2086 # accordingly.
2087 ac_fn_c_check_header_mongrel ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094 $as_echo_n "(cached) " >&6
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 else
2100 # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_header_compiler=yes
2110 else
2111 ac_header_compiler=no
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_c_try_cpp "$LINENO"; then :
2125 ac_header_preproc=yes
2126 else
2127 ac_header_preproc=no
2129 rm -f conftest.err conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2133 # So? What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2135 yes:no: )
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 no:yes:* )
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 ( cat <<\_ASBOX
2153 ## ------------------------------------------------------ ##
2154 ## Report this to http://github.com/atgreen/libffi/issues ##
2155 ## ------------------------------------------------------ ##
2156 _ASBOX
2157 ) | sed "s/^/$as_me: WARNING: /" >&2
2159 esac
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163 $as_echo_n "(cached) " >&6
2164 else
2165 eval "$3=\$ac_header_compiler"
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_header_mongrel
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2178 It was created by libffi $as_me 3.99999, which was
2179 generated by GNU Autoconf 2.64. Invocation command line was
2181 $ $0 $@
2183 _ACEOF
2184 exec 5>>config.log
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2208 _ASUNAME
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2219 } >&5
2221 cat >&5 <<_ACEOF
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2228 _ACEOF
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2242 for ac_arg
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2271 as_fn_append ac_configure_args " '$ac_arg'"
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2287 echo
2289 cat <<\_ASBOX
2290 ## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##
2293 _ASBOX
2294 echo
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in #(
2300 *${as_nl}*)
2301 case $ac_var in #(
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 esac
2305 case $ac_var in #(
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2309 esac ;;
2310 esac
2311 done
2312 (set) 2>&1 |
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2315 sed -n \
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 ;; #(
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 esac |
2323 sort
2325 echo
2327 cat <<\_ASBOX
2328 ## ----------------- ##
2329 ## Output variables. ##
2330 ## ----------------- ##
2331 _ASBOX
2332 echo
2333 for ac_var in $ac_subst_vars
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2343 if test -n "$ac_subst_files"; then
2344 cat <<\_ASBOX
2345 ## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##
2348 _ASBOX
2349 echo
2350 for ac_var in $ac_subst_files
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2361 if test -s confdefs.h; then
2362 cat <<\_ASBOX
2363 ## ----------- ##
2364 ## confdefs.h. ##
2365 ## ----------- ##
2366 _ASBOX
2367 echo
2368 cat confdefs.h
2369 echo
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2387 $as_echo "/* confdefs.h */" > confdefs.h
2389 # Predefined preprocessor variables.
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 ac_site_file1=$CONFIG_SITE
2422 elif test "x$prefix" != xNONE; then
2423 ac_site_file1=$prefix/share/config.site
2424 ac_site_file2=$prefix/etc/config.site
2425 else
2426 ac_site_file1=$ac_default_prefix/share/config.site
2427 ac_site_file2=$ac_default_prefix/etc/config.site
2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431 test "x$ac_site_file" = xNONE && continue
2432 if test -r "$ac_site_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435 sed 's/^/| /' "$ac_site_file" >&5
2436 . "$ac_site_file"
2438 done
2440 if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special
2442 # files actually), so we avoid doing that.
2443 if test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445 $as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453 $as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2457 # Check that the precious variables saved in the cache have kept the same
2458 # value.
2459 ac_cache_corrupted=false
2460 for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2506 done
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_config_headers="$ac_config_headers fficonfig.h"
2531 # Default to --enable-multilib
2532 # Check whether --enable-multilib was given.
2533 if test "${enable_multilib+set}" = set; then :
2534 enableval=$enable_multilib; case "$enableval" in
2535 yes) multilib=yes ;;
2536 no) multilib=no ;;
2537 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2538 esac
2539 else
2540 multilib=yes
2544 # We may get other options which we leave undocumented:
2545 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2546 # See config-ml.in if you want the gory details.
2548 if test "$srcdir" = "."; then
2549 if test "$with_target_subdir" != "."; then
2550 multi_basedir="$srcdir/$with_multisrctop../.."
2551 else
2552 multi_basedir="$srcdir/$with_multisrctop.."
2554 else
2555 multi_basedir="$srcdir/.."
2559 # Even if the default multilib is not a cross compilation,
2560 # it may be that some of the other multilibs are.
2561 if test $cross_compiling = no && test $multilib = yes \
2562 && test "x${with_multisubdir}" != x ; then
2563 cross_compiling=maybe
2566 ac_config_commands="$ac_config_commands default-1"
2569 ac_aux_dir=
2570 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2571 for ac_t in install-sh install.sh shtool; do
2572 if test -f "$ac_dir/$ac_t"; then
2573 ac_aux_dir=$ac_dir
2574 ac_install_sh="$ac_aux_dir/$ac_t -c"
2575 break 2
2577 done
2578 done
2579 if test -z "$ac_aux_dir"; then
2580 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2597 $as_echo_n "checking build system type... " >&6; }
2598 if test "${ac_cv_build+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 ac_build_alias=$build_alias
2602 test "x$ac_build_alias" = x &&
2603 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2604 test "x$ac_build_alias" = x &&
2605 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2606 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2607 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2611 $as_echo "$ac_cv_build" >&6; }
2612 case $ac_cv_build in
2613 *-*-*) ;;
2614 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2615 esac
2616 build=$ac_cv_build
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_build
2619 shift
2620 build_cpu=$1
2621 build_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 build_os=$*
2626 IFS=$ac_save_IFS
2627 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2631 $as_echo_n "checking host system type... " >&6; }
2632 if test "${ac_cv_host+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test "x$host_alias" = x; then
2636 ac_cv_host=$ac_cv_build
2637 else
2638 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2644 $as_echo "$ac_cv_host" >&6; }
2645 case $ac_cv_host in
2646 *-*-*) ;;
2647 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2648 esac
2649 host=$ac_cv_host
2650 ac_save_IFS=$IFS; IFS='-'
2651 set x $ac_cv_host
2652 shift
2653 host_cpu=$1
2654 host_vendor=$2
2655 shift; shift
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2658 host_os=$*
2659 IFS=$ac_save_IFS
2660 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2664 $as_echo_n "checking target system type... " >&6; }
2665 if test "${ac_cv_target+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test "x$target_alias" = x; then
2669 ac_cv_target=$ac_cv_host
2670 else
2671 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2672 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2677 $as_echo "$ac_cv_target" >&6; }
2678 case $ac_cv_target in
2679 *-*-*) ;;
2680 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2681 esac
2682 target=$ac_cv_target
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_target
2685 shift
2686 target_cpu=$1
2687 target_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 target_os=$*
2692 IFS=$ac_save_IFS
2693 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2696 # The aliases save the names the user supplied, while $host etc.
2697 # will get canonicalized.
2698 test -n "$target_alias" &&
2699 test "$program_prefix$program_suffix$program_transform_name" = \
2700 NONENONEs,x,x, &&
2701 program_prefix=${target_alias}-
2703 target_alias=${target_alias-$host_alias}
2705 am__api_version='1.11'
2707 # Find a good install program. We prefer a C program (faster),
2708 # so one script is as good as another. But avoid the broken or
2709 # incompatible versions:
2710 # SysV /etc/install, /usr/sbin/install
2711 # SunOS /usr/etc/install
2712 # IRIX /sbin/install
2713 # AIX /bin/install
2714 # AmigaOS /C/install, which installs bootblocks on floppy discs
2715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2718 # OS/2's system install, which has a completely different semantic
2719 # ./install, which can be erroneously created by make from ./install.sh.
2720 # Reject install programs that cannot install multiple files.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2723 if test -z "$INSTALL"; then
2724 if test "${ac_cv_path_install+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 # Account for people who put trailing slashes in PATH elements.
2733 case $as_dir/ in #((
2734 ./ | .// | /[cC]/* | \
2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2737 /usr/ucb/* ) ;;
2739 # OSF1 and SCO ODT 3.0 have their own names for install.
2740 # Don't use installbsd from OSF since it installs stuff as root
2741 # by default.
2742 for ac_prog in ginstall scoinst install; do
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2745 if test $ac_prog = install &&
2746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2747 # AIX install. It has an incompatible calling convention.
2749 elif test $ac_prog = install &&
2750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2751 # program-specific install script used by HP pwplus--don't use.
2753 else
2754 rm -rf conftest.one conftest.two conftest.dir
2755 echo one > conftest.one
2756 echo two > conftest.two
2757 mkdir conftest.dir
2758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2759 test -s conftest.one && test -s conftest.two &&
2760 test -s conftest.dir/conftest.one &&
2761 test -s conftest.dir/conftest.two
2762 then
2763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2764 break 3
2768 done
2769 done
2771 esac
2773 done
2774 IFS=$as_save_IFS
2776 rm -rf conftest.one conftest.two conftest.dir
2779 if test "${ac_cv_path_install+set}" = set; then
2780 INSTALL=$ac_cv_path_install
2781 else
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for INSTALL within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 INSTALL=$ac_install_sh
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790 $as_echo "$INSTALL" >&6; }
2792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793 # It thinks the first close brace ends the variable substitution.
2794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801 $as_echo_n "checking whether build environment is sane... " >&6; }
2802 # Just in case
2803 sleep 1
2804 echo timestamp > conftest.file
2805 # Reject unsafe characters in $srcdir or the absolute working directory
2806 # name. Accept space and tab only in the latter.
2807 am_lf='
2809 case `pwd` in
2810 *[\\\"\#\$\&\'\`$am_lf]*)
2811 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2812 esac
2813 case $srcdir in
2814 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2815 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2816 esac
2818 # Do `set' in a subshell so we don't clobber the current shell's
2819 # arguments. Must try -L first in case configure is actually a
2820 # symlink; some systems play weird games with the mod time of symlinks
2821 # (eg FreeBSD returns the mod time of the symlink's containing
2822 # directory).
2823 if (
2824 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825 if test "$*" = "X"; then
2826 # -L didn't work.
2827 set X `ls -t "$srcdir/configure" conftest.file`
2829 rm -f conftest.file
2830 if test "$*" != "X $srcdir/configure conftest.file" \
2831 && test "$*" != "X conftest.file $srcdir/configure"; then
2833 # If neither matched, then we have a broken ls. This can happen
2834 # if, for instance, CONFIG_SHELL is bash and it inherits a
2835 # broken ls alias from the environment. This has actually
2836 # happened. Such a system could not be considered "sane".
2837 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2838 alias in your environment" "$LINENO" 5
2841 test "$2" = conftest.file
2843 then
2844 # Ok.
2846 else
2847 as_fn_error "newly created file is older than distributed files!
2848 Check your system clock" "$LINENO" 5
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851 $as_echo "yes" >&6; }
2852 test "$program_prefix" != NONE &&
2853 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2854 # Use a double $ so make ignores it.
2855 test "$program_suffix" != NONE &&
2856 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2857 # Double any \ or $.
2858 # By default was `s,x,x', remove it if useless.
2859 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2860 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862 # expand $ac_aux_dir to an absolute path
2863 am_aux_dir=`cd $ac_aux_dir && pwd`
2865 if test x"${MISSING+set}" != xset; then
2866 case $am_aux_dir in
2867 *\ * | *\ *)
2868 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2871 esac
2873 # Use eval to expand $SHELL
2874 if eval "$MISSING --run true"; then
2875 am_missing_run="$MISSING --run "
2876 else
2877 am_missing_run=
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2879 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2882 if test x"${install_sh}" != xset; then
2883 case $am_aux_dir in
2884 *\ * | *\ *)
2885 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 install_sh="\${SHELL} $am_aux_dir/install-sh"
2888 esac
2891 # Installed binaries are usually stripped using `strip' when the user
2892 # run `make install-strip'. However `strip' might not be the right
2893 # tool to use in cross-compilation environments, therefore Automake
2894 # will honor the `STRIP' environment variable to overrule this program.
2895 if test "$cross_compiling" != no; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}strip; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_STRIP+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$STRIP"; then
2905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2918 done
2919 done
2920 IFS=$as_save_IFS
2924 STRIP=$ac_cv_prog_STRIP
2925 if test -n "$STRIP"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2927 $as_echo "$STRIP" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_STRIP"; then
2936 ac_ct_STRIP=$STRIP
2937 # Extract the first word of "strip", so it can be a program name with args.
2938 set dummy strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$ac_ct_STRIP"; then
2945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_ac_ct_STRIP="strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2965 if test -n "$ac_ct_STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2967 $as_echo "$ac_ct_STRIP" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_STRIP" = x; then
2974 STRIP=":"
2975 else
2976 case $cross_compiling:$ac_tool_warned in
2977 yes:)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 STRIP=$ac_ct_STRIP
2984 else
2985 STRIP="$ac_cv_prog_STRIP"
2989 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2992 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2993 if test -z "$MKDIR_P"; then
2994 if test "${ac_cv_path_mkdir+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_prog in mkdir gmkdir; do
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3006 'mkdir (GNU coreutils) '* | \
3007 'mkdir (coreutils) '* | \
3008 'mkdir (fileutils) '4.1*)
3009 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3010 break 3;;
3011 esac
3012 done
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 if test "${ac_cv_path_mkdir+set}" = set; then
3020 MKDIR_P="$ac_cv_path_mkdir -p"
3021 else
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for MKDIR_P within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 test -d ./--version && rmdir ./--version
3027 MKDIR_P="$ac_install_sh -d"
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3031 $as_echo "$MKDIR_P" >&6; }
3033 mkdir_p="$MKDIR_P"
3034 case $mkdir_p in
3035 [\\/$]* | ?:[\\/]*) ;;
3036 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3037 esac
3039 for ac_prog in gawk mawk nawk awk
3041 # Extract the first word of "$ac_prog", so it can be a program name with args.
3042 set dummy $ac_prog; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_AWK+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$AWK"; then
3049 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_AWK="$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3068 AWK=$ac_cv_prog_AWK
3069 if test -n "$AWK"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3071 $as_echo "$AWK" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3078 test -n "$AWK" && break
3079 done
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3083 set x ${MAKE-make}
3084 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3085 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 cat >conftest.make <<\_ACEOF
3089 SHELL = /bin/sh
3090 all:
3091 @echo '@@@%%%=$(MAKE)=@@@%%%'
3092 _ACEOF
3093 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3095 *@@@%%%=?*=@@@%%%*)
3096 eval ac_cv_prog_make_${ac_make}_set=yes;;
3098 eval ac_cv_prog_make_${ac_make}_set=no;;
3099 esac
3100 rm -f conftest.make
3102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104 $as_echo "yes" >&6; }
3105 SET_MAKE=
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 SET_MAKE="MAKE=${MAKE-make}"
3112 rm -rf .tst 2>/dev/null
3113 mkdir .tst 2>/dev/null
3114 if test -d .tst; then
3115 am__leading_dot=.
3116 else
3117 am__leading_dot=_
3119 rmdir .tst 2>/dev/null
3121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123 # is not polluted with repeated "-I."
3124 am__isrc=' -I$(srcdir)'
3125 # test to see if srcdir already configured
3126 if test -f $srcdir/config.status; then
3127 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 # test whether we have cygpath
3132 if test -z "$CYGPATH_W"; then
3133 if (cygpath --version) >/dev/null 2>/dev/null; then
3134 CYGPATH_W='cygpath -w'
3135 else
3136 CYGPATH_W=echo
3141 # Define the identity of the package.
3142 PACKAGE='libffi'
3143 VERSION='3.99999'
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE "$PACKAGE"
3148 _ACEOF
3151 cat >>confdefs.h <<_ACEOF
3152 #define VERSION "$VERSION"
3153 _ACEOF
3155 # Some tools Automake needs.
3157 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3160 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3163 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3166 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3169 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3171 # We need awk for the "check" target. The system "awk" is bad on
3172 # some platforms.
3173 # Always define AMTAR for backward compatibility. Yes, it's still used
3174 # in the wild :-( We should find a proper way to deprecate it ...
3175 AMTAR='$${TAR-tar}'
3177 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3184 # See if makeinfo has been installed and is modern enough
3185 # that we can use it.
3187 # Extract the first word of "makeinfo", so it can be a program name with args.
3188 set dummy makeinfo; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 if test -n "$MAKEINFO"; then
3195 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_MAKEINFO="makeinfo"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 MAKEINFO=$ac_cv_prog_MAKEINFO
3215 if test -n "$MAKEINFO"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3217 $as_echo "$MAKEINFO" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 if test -n "$MAKEINFO"; then
3225 # Found it, now check the version.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3227 $as_echo_n "checking for modern makeinfo... " >&6; }
3228 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3232 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3234 case $ac_prog_version in
3235 '') gcc_cv_prog_makeinfo_modern=no;;
3236 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3237 *) gcc_cv_prog_makeinfo_modern=no;;
3238 esac
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3243 else
3244 gcc_cv_prog_makeinfo_modern=no
3246 if test $gcc_cv_prog_makeinfo_modern = no; then
3247 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3250 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3251 BUILD_INFO_TRUE=
3252 BUILD_INFO_FALSE='#'
3253 else
3254 BUILD_INFO_TRUE='#'
3255 BUILD_INFO_FALSE=
3259 # We would like our source tree to be readonly. However when releases or
3260 # pre-releases are generated, the flex/bison generated files as well as the
3261 # various formats of manuals need to be included along with the rest of the
3262 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3263 # just that.
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3265 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3266 # Check whether --enable-generated-files-in-srcdir was given.
3267 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3268 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3269 yes) enable_generated_files_in_srcdir=yes ;;
3270 no) enable_generated_files_in_srcdir=no ;;
3271 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3272 esac
3273 else
3274 enable_generated_files_in_srcdir=no
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3278 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3279 if test "$enable_generated_files_in_srcdir" = yes; then
3280 GENINSRC_TRUE=
3281 GENINSRC_FALSE='#'
3282 else
3283 GENINSRC_TRUE='#'
3284 GENINSRC_FALSE=
3288 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3289 # We must force CC to /not/ be precious variables; otherwise
3290 # the wrong, non-multilib-adjusted value will be used in multilibs.
3291 # As a side effect, we have to subst CFLAGS ourselves.
3292 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3293 # defaults of its own if none are provided.
3297 save_CFLAGS=$CFLAGS
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$ac_cv_prog_CC"; then
3343 ac_ct_CC=$CC
3344 # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_ac_ct_CC="gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3380 if test "x$ac_ct_CC" = x; then
3381 CC=""
3382 else
3383 case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389 CC=$ac_ct_CC
3391 else
3392 CC="$ac_cv_prog_CC"
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC="${ac_tool_prefix}cc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3457 continue
3459 ac_cv_prog_CC="cc"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy $ac_cv_prog_CC
3470 shift
3471 if test $# != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3475 shift
3476 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog in cl.exe
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$CC" && break
3534 done
3536 if test -z "$CC"; then
3537 ac_ct_CC=$CC
3538 for ac_prog in cl.exe
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_CC="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$ac_ct_CC" && break
3578 done
3580 if test "x$ac_ct_CC" = x; then
3581 CC=""
3582 else
3583 case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589 CC=$ac_ct_CC
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details." "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614 ac_status=$?
3615 if test -s conftest.err; then
3616 sed '10a\
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 done
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3630 main ()
3634 return 0;
3636 _ACEOF
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3641 # of exeext.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 $as_echo_n "checking for C compiler default output file name... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649 ac_rmfiles=
3650 for ac_file in $ac_files
3652 case $ac_file in
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 esac
3656 done
3657 rm -f $ac_rmfiles
3659 if { { ac_try="$ac_link_default"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3674 # Autoconf.
3675 for ac_file in $ac_files ''
3677 test -f "$ac_file" || continue
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681 [ab].out )
3682 # We found the default executable, but exeext='' is most
3683 # certainly right.
3684 break;;
3685 *.* )
3686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687 then :; else
3688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 # We set ac_cv_exeext here because the later test for it is not
3691 # safe: cross compilers may not add the suffix if given an `-o'
3692 # argument, so we may need to know it at that point already.
3693 # Even if this section looks crufty: it has the advantage of
3694 # actually working.
3695 break;;
3697 break;;
3698 esac
3699 done
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702 else
3703 ac_file=''
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3706 $as_echo "$ac_file" >&6; }
3707 if test -z "$ac_file"; then :
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 { as_fn_set_status 77
3714 as_fn_error "C compiler cannot create executables
3715 See \`config.log' for more details." "$LINENO" 5; }; }
3717 ac_exeext=$ac_cv_exeext
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722 $as_echo_n "checking whether the C compiler works... " >&6; }
3723 # If not cross compiling, check that we can run a simple program.
3724 if test "$cross_compiling" != yes; then
3725 if { ac_try='./$ac_file'
3726 { { case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3736 cross_compiling=no
3737 else
3738 if test "$cross_compiling" = maybe; then
3739 cross_compiling=yes
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error "cannot run C compiled programs.
3744 If you meant to cross compile, use \`--host'.
3745 See \`config.log' for more details." "$LINENO" 5; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3750 $as_echo "yes" >&6; }
3752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3759 $as_echo "$cross_compiling" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762 $as_echo_n "checking for suffix of executables... " >&6; }
3763 if { { ac_try="$ac_link"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3775 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3776 # work properly (i.e., refer to `conftest.exe'), while it won't with
3777 # `rm'.
3778 for ac_file in conftest.exe conftest conftest.*; do
3779 test -f "$ac_file" || continue
3780 case $ac_file in
3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783 break;;
3784 * ) break;;
3785 esac
3786 done
3787 else
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error "cannot compute suffix of executables: cannot compile and link
3791 See \`config.log' for more details." "$LINENO" 5; }
3793 rm -f conftest$ac_cv_exeext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3795 $as_echo "$ac_cv_exeext" >&6; }
3797 rm -f conftest.$ac_ext
3798 EXEEXT=$ac_cv_exeext
3799 ac_exeext=$EXEEXT
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3801 $as_echo_n "checking for suffix of object files... " >&6; }
3802 if test "${ac_cv_objext+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3809 main ()
3813 return 0;
3815 _ACEOF
3816 rm -f conftest.o conftest.obj
3817 if { { ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compile") 2>&5
3825 ac_status=$?
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 for ac_file in conftest.o conftest.obj conftest.*; do
3829 test -f "$ac_file" || continue;
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833 break;;
3834 esac
3835 done
3836 else
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "cannot compute suffix of object files: cannot compile
3843 See \`config.log' for more details." "$LINENO" 5; }
3845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3848 $as_echo "$ac_cv_objext" >&6; }
3849 OBJEXT=$ac_cv_objext
3850 ac_objext=$OBJEXT
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3852 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3853 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3860 main ()
3862 #ifndef __GNUC__
3863 choke me
3864 #endif
3867 return 0;
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_compiler_gnu=yes
3872 else
3873 ac_compiler_gnu=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3880 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3881 if test $ac_compiler_gnu = yes; then
3882 GCC=yes
3883 else
3884 GCC=
3886 ac_test_CFLAGS=${CFLAGS+set}
3887 ac_save_CFLAGS=$CFLAGS
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3889 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3890 if test "${ac_cv_prog_cc_g+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 ac_save_c_werror_flag=$ac_c_werror_flag
3894 ac_c_werror_flag=yes
3895 ac_cv_prog_cc_g=no
3896 CFLAGS="-g"
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3901 main ()
3905 return 0;
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_cv_prog_cc_g=yes
3910 else
3911 CFLAGS=""
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3916 main ()
3920 return 0;
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3925 else
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3927 CFLAGS="-g"
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 main ()
3936 return 0;
3938 _ACEOF
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_prog_cc_g=yes
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 ac_c_werror_flag=$ac_save_c_werror_flag
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3950 $as_echo "$ac_cv_prog_cc_g" >&6; }
3951 if test "$ac_test_CFLAGS" = set; then
3952 CFLAGS=$ac_save_CFLAGS
3953 elif test $ac_cv_prog_cc_g = yes; then
3954 if test "$GCC" = yes; then
3955 CFLAGS="-g -O2"
3956 else
3957 CFLAGS="-g"
3959 else
3960 if test "$GCC" = yes; then
3961 CFLAGS="-O2"
3962 else
3963 CFLAGS=
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3967 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3968 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 ac_cv_prog_cc_c89=no
3972 ac_save_CC=$CC
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <stdarg.h>
3976 #include <stdio.h>
3977 #include <sys/types.h>
3978 #include <sys/stat.h>
3979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3980 struct buf { int x; };
3981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3982 static char *e (p, i)
3983 char **p;
3984 int i;
3986 return p[i];
3988 static char *f (char * (*g) (char **, int), char **p, ...)
3990 char *s;
3991 va_list v;
3992 va_start (v,p);
3993 s = g (p, va_arg (v,int));
3994 va_end (v);
3995 return s;
3998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3999 function prototypes and stuff, but not '\xHH' hex character constants.
4000 These don't provoke an error unfortunately, instead are silently treated
4001 as 'x'. The following induces an error, until -std is added to get
4002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4003 array size at least. It's necessary to write '\x00'==0 to get something
4004 that's true only with -std. */
4005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4008 inside strings and character constants. */
4009 #define FOO(x) 'x'
4010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4012 int test (int i, double x);
4013 struct s1 {int (*f) (int a);};
4014 struct s2 {int (*f) (double a);};
4015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4016 int argc;
4017 char **argv;
4019 main ()
4021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4023 return 0;
4025 _ACEOF
4026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029 CC="$ac_save_CC $ac_arg"
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_c89=$ac_arg
4033 rm -f core conftest.err conftest.$ac_objext
4034 test "x$ac_cv_prog_cc_c89" != "xno" && break
4035 done
4036 rm -f conftest.$ac_ext
4037 CC=$ac_save_CC
4040 # AC_CACHE_VAL
4041 case "x$ac_cv_prog_cc_c89" in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044 $as_echo "none needed" >&6; } ;;
4045 xno)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4047 $as_echo "unsupported" >&6; } ;;
4049 CC="$CC $ac_cv_prog_cc_c89"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4051 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4052 esac
4053 if test "x$ac_cv_prog_cc_c89" != xno; then :
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 DEPDIR="${am__leading_dot}deps"
4064 ac_config_commands="$ac_config_commands depfiles"
4067 am_make=${MAKE-make}
4068 cat > confinc << 'END'
4069 am__doit:
4070 @echo this is the am__doit target
4071 .PHONY: am__doit
4073 # If we don't find an include directive, just comment out the code.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4075 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4076 am__include="#"
4077 am__quote=
4078 _am_result=none
4079 # First try GNU make style include.
4080 echo "include confinc" > confmf
4081 # Ignore all kinds of additional output from `make'.
4082 case `$am_make -s -f confmf 2> /dev/null` in #(
4083 *the\ am__doit\ target*)
4084 am__include=include
4085 am__quote=
4086 _am_result=GNU
4088 esac
4089 # Now try BSD make style include.
4090 if test "$am__include" = "#"; then
4091 echo '.include "confinc"' > confmf
4092 case `$am_make -s -f confmf 2> /dev/null` in #(
4093 *the\ am__doit\ target*)
4094 am__include=.include
4095 am__quote="\""
4096 _am_result=BSD
4098 esac
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4103 $as_echo "$_am_result" >&6; }
4104 rm -f confinc confmf
4106 # Check whether --enable-dependency-tracking was given.
4107 if test "${enable_dependency_tracking+set}" = set; then :
4108 enableval=$enable_dependency_tracking;
4111 if test "x$enable_dependency_tracking" != xno; then
4112 am_depcomp="$ac_aux_dir/depcomp"
4113 AMDEPBACKSLASH='\'
4114 am__nodep='_no'
4116 if test "x$enable_dependency_tracking" != xno; then
4117 AMDEP_TRUE=
4118 AMDEP_FALSE='#'
4119 else
4120 AMDEP_TRUE='#'
4121 AMDEP_FALSE=
4126 depcc="$CC" am_compiler_list=
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4129 $as_echo_n "checking dependency style of $depcc... " >&6; }
4130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4134 # We make a subdir and do the tests there. Otherwise we can end up
4135 # making bogus files that we don't know about and never remove. For
4136 # instance it was reported that on HP-UX the gcc test will end up
4137 # making a dummy file named `D' -- because `-MD' means `put the output
4138 # in D'.
4139 rm -rf conftest.dir
4140 mkdir conftest.dir
4141 # Copy depcomp to subdir because otherwise we won't find it if we're
4142 # using a relative directory.
4143 cp "$am_depcomp" conftest.dir
4144 cd conftest.dir
4145 # We will build objects and dependencies in a subdirectory because
4146 # it helps to detect inapplicable dependency modes. For instance
4147 # both Tru64's cc and ICC support -MD to output dependencies as a
4148 # side effect of compilation, but ICC will put the dependencies in
4149 # the current directory while Tru64 will put them in the object
4150 # directory.
4151 mkdir sub
4153 am_cv_CC_dependencies_compiler_type=none
4154 if test "$am_compiler_list" = ""; then
4155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157 am__universal=false
4158 case " $depcc " in #(
4159 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4160 esac
4162 for depmode in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4170 : > sub/conftest.c
4171 for i in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174 # Solaris 8's {/usr,}/bin/sh.
4175 touch sub/conftst$i.h
4176 done
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle `-M -o', and we need to detect this. Also, some Intel
4182 # versions had trouble with output in subdirs
4183 am__obj=sub/conftest.${OBJEXT-o}
4184 am__minus_obj="-o $am__obj"
4185 case $depmode in
4186 gcc)
4187 # This depmode causes a compiler race in universal mode.
4188 test "$am__universal" = false || continue
4190 nosideeffect)
4191 # after this tag, mechanisms are not by side-effect, so they'll
4192 # only be used when explicitly requested
4193 if test "x$enable_dependency_tracking" = xyes; then
4194 continue
4195 else
4196 break
4199 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4200 # This compiler won't grok `-c -o', but also, the minuso test has
4201 # not run yet. These depmodes are late enough in the game, and
4202 # so weak that their functioning should not be impacted.
4203 am__obj=conftest.${OBJEXT-o}
4204 am__minus_obj=
4206 none) break ;;
4207 esac
4208 if depmode=$depmode \
4209 source=sub/conftest.c object=$am__obj \
4210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4211 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4212 >/dev/null 2>conftest.err &&
4213 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4214 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4216 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4217 # icc doesn't choke on unknown options, it will just issue warnings
4218 # or remarks (even with -Werror). So we grep stderr for any message
4219 # that says an option was ignored or not supported.
4220 # When given -MP, icc 7.0 and 7.1 complain thusly:
4221 # icc: Command line warning: ignoring option '-M'; no argument required
4222 # The diagnosis changed in icc 8.0:
4223 # icc: Command line remark: option '-MP' not supported
4224 if (grep 'ignoring option' conftest.err ||
4225 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4226 am_cv_CC_dependencies_compiler_type=$depmode
4227 break
4230 done
4232 cd ..
4233 rm -rf conftest.dir
4234 else
4235 am_cv_CC_dependencies_compiler_type=none
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4240 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4241 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4244 test "x$enable_dependency_tracking" != xno \
4245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4246 am__fastdepCC_TRUE=
4247 am__fastdepCC_FALSE='#'
4248 else
4249 am__fastdepCC_TRUE='#'
4250 am__fastdepCC_FALSE=
4254 ac_ext=cpp
4255 ac_cpp='$CXXCPP $CPPFLAGS'
4256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4259 if test -z "$CXX"; then
4260 if test -n "$CCC"; then
4261 CXX=$CCC
4262 else
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_CXX+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CXX"; then
4274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 CXX=$ac_cv_prog_CXX
4294 if test -n "$CXX"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4296 $as_echo "$CXX" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$CXX" && break
4304 done
4306 if test -z "$CXX"; then
4307 ac_ct_CXX=$CXX
4308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$ac_ct_CXX"; then
4318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_ac_ct_CXX="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4338 if test -n "$ac_ct_CXX"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4340 $as_echo "$ac_ct_CXX" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$ac_ct_CXX" && break
4348 done
4350 if test "x$ac_ct_CXX" = x; then
4351 CXX="g++"
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354 yes:)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned=yes ;;
4358 esac
4359 CXX=$ac_ct_CXX
4365 # Provide some information about the compiler.
4366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4367 set X $ac_compile
4368 ac_compiler=$2
4369 for ac_option in --version -v -V -qversion; do
4370 { { ac_try="$ac_compiler $ac_option >&5"
4371 case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 $as_echo "$ac_try_echo"; } >&5
4377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4378 ac_status=$?
4379 if test -s conftest.err; then
4380 sed '10a\
4381 ... rest of stderr output deleted ...
4382 10q' conftest.err >conftest.er1
4383 cat conftest.er1 >&5
4384 rm -f conftest.er1 conftest.err
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }
4388 done
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4391 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4401 #ifndef __GNUC__
4402 choke me
4403 #endif
4406 return 0;
4408 _ACEOF
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4410 ac_compiler_gnu=yes
4411 else
4412 ac_compiler_gnu=no
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4419 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4420 if test $ac_compiler_gnu = yes; then
4421 GXX=yes
4422 else
4423 GXX=
4425 ac_test_CXXFLAGS=${CXXFLAGS+set}
4426 ac_save_CXXFLAGS=$CXXFLAGS
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4428 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4429 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4433 ac_cxx_werror_flag=yes
4434 ac_cv_prog_cxx_g=no
4435 CXXFLAGS="-g"
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4444 return 0;
4446 _ACEOF
4447 if ac_fn_cxx_try_compile "$LINENO"; then :
4448 ac_cv_prog_cxx_g=yes
4449 else
4450 CXXFLAGS=""
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4464 else
4465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4466 CXXFLAGS="-g"
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4471 main ()
4475 return 0;
4477 _ACEOF
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4479 ac_cv_prog_cxx_g=yes
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4489 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4490 if test "$ac_test_CXXFLAGS" = set; then
4491 CXXFLAGS=$ac_save_CXXFLAGS
4492 elif test $ac_cv_prog_cxx_g = yes; then
4493 if test "$GXX" = yes; then
4494 CXXFLAGS="-g -O2"
4495 else
4496 CXXFLAGS="-g"
4498 else
4499 if test "$GXX" = yes; then
4500 CXXFLAGS="-O2"
4501 else
4502 CXXFLAGS=
4505 ac_ext=c
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 depcc="$CXX" am_compiler_list=
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4514 $as_echo_n "checking dependency style of $depcc... " >&6; }
4515 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4519 # We make a subdir and do the tests there. Otherwise we can end up
4520 # making bogus files that we don't know about and never remove. For
4521 # instance it was reported that on HP-UX the gcc test will end up
4522 # making a dummy file named `D' -- because `-MD' means `put the output
4523 # in D'.
4524 rm -rf conftest.dir
4525 mkdir conftest.dir
4526 # Copy depcomp to subdir because otherwise we won't find it if we're
4527 # using a relative directory.
4528 cp "$am_depcomp" conftest.dir
4529 cd conftest.dir
4530 # We will build objects and dependencies in a subdirectory because
4531 # it helps to detect inapplicable dependency modes. For instance
4532 # both Tru64's cc and ICC support -MD to output dependencies as a
4533 # side effect of compilation, but ICC will put the dependencies in
4534 # the current directory while Tru64 will put them in the object
4535 # directory.
4536 mkdir sub
4538 am_cv_CXX_dependencies_compiler_type=none
4539 if test "$am_compiler_list" = ""; then
4540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4542 am__universal=false
4543 case " $depcc " in #(
4544 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4545 esac
4547 for depmode in $am_compiler_list; do
4548 # Setup a source with many dependencies, because some compilers
4549 # like to wrap large dependency lists on column 80 (with \), and
4550 # we should not choose a depcomp mode which is confused by this.
4552 # We need to recreate these files for each test, as the compiler may
4553 # overwrite some of them when testing with obscure command lines.
4554 # This happens at least with the AIX C compiler.
4555 : > sub/conftest.c
4556 for i in 1 2 3 4 5 6; do
4557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4559 # Solaris 8's {/usr,}/bin/sh.
4560 touch sub/conftst$i.h
4561 done
4562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4565 # mode. It turns out that the SunPro C++ compiler does not properly
4566 # handle `-M -o', and we need to detect this. Also, some Intel
4567 # versions had trouble with output in subdirs
4568 am__obj=sub/conftest.${OBJEXT-o}
4569 am__minus_obj="-o $am__obj"
4570 case $depmode in
4571 gcc)
4572 # This depmode causes a compiler race in universal mode.
4573 test "$am__universal" = false || continue
4575 nosideeffect)
4576 # after this tag, mechanisms are not by side-effect, so they'll
4577 # only be used when explicitly requested
4578 if test "x$enable_dependency_tracking" = xyes; then
4579 continue
4580 else
4581 break
4584 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4585 # This compiler won't grok `-c -o', but also, the minuso test has
4586 # not run yet. These depmodes are late enough in the game, and
4587 # so weak that their functioning should not be impacted.
4588 am__obj=conftest.${OBJEXT-o}
4589 am__minus_obj=
4591 none) break ;;
4592 esac
4593 if depmode=$depmode \
4594 source=sub/conftest.c object=$am__obj \
4595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4596 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4597 >/dev/null 2>conftest.err &&
4598 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4599 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4600 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4602 # icc doesn't choke on unknown options, it will just issue warnings
4603 # or remarks (even with -Werror). So we grep stderr for any message
4604 # that says an option was ignored or not supported.
4605 # When given -MP, icc 7.0 and 7.1 complain thusly:
4606 # icc: Command line warning: ignoring option '-M'; no argument required
4607 # The diagnosis changed in icc 8.0:
4608 # icc: Command line remark: option '-MP' not supported
4609 if (grep 'ignoring option' conftest.err ||
4610 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4611 am_cv_CXX_dependencies_compiler_type=$depmode
4612 break
4615 done
4617 cd ..
4618 rm -rf conftest.dir
4619 else
4620 am_cv_CXX_dependencies_compiler_type=none
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4625 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4626 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4629 test "x$enable_dependency_tracking" != xno \
4630 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4631 am__fastdepCXX_TRUE=
4632 am__fastdepCXX_FALSE='#'
4633 else
4634 am__fastdepCXX_TRUE='#'
4635 am__fastdepCXX_FALSE=
4639 CFLAGS=$save_CFLAGS
4645 # By default we simply use the C compiler to build assembly code.
4647 test "${CCAS+set}" = set || CCAS=$CC
4648 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4652 depcc="$CCAS" am_compiler_list=
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4655 $as_echo_n "checking dependency style of $depcc... " >&6; }
4656 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4660 # We make a subdir and do the tests there. Otherwise we can end up
4661 # making bogus files that we don't know about and never remove. For
4662 # instance it was reported that on HP-UX the gcc test will end up
4663 # making a dummy file named `D' -- because `-MD' means `put the output
4664 # in D'.
4665 rm -rf conftest.dir
4666 mkdir conftest.dir
4667 # Copy depcomp to subdir because otherwise we won't find it if we're
4668 # using a relative directory.
4669 cp "$am_depcomp" conftest.dir
4670 cd conftest.dir
4671 # We will build objects and dependencies in a subdirectory because
4672 # it helps to detect inapplicable dependency modes. For instance
4673 # both Tru64's cc and ICC support -MD to output dependencies as a
4674 # side effect of compilation, but ICC will put the dependencies in
4675 # the current directory while Tru64 will put them in the object
4676 # directory.
4677 mkdir sub
4679 am_cv_CCAS_dependencies_compiler_type=none
4680 if test "$am_compiler_list" = ""; then
4681 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4683 am__universal=false
4686 for depmode in $am_compiler_list; do
4687 # Setup a source with many dependencies, because some compilers
4688 # like to wrap large dependency lists on column 80 (with \), and
4689 # we should not choose a depcomp mode which is confused by this.
4691 # We need to recreate these files for each test, as the compiler may
4692 # overwrite some of them when testing with obscure command lines.
4693 # This happens at least with the AIX C compiler.
4694 : > sub/conftest.c
4695 for i in 1 2 3 4 5 6; do
4696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4698 # Solaris 8's {/usr,}/bin/sh.
4699 touch sub/conftst$i.h
4700 done
4701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4704 # mode. It turns out that the SunPro C++ compiler does not properly
4705 # handle `-M -o', and we need to detect this. Also, some Intel
4706 # versions had trouble with output in subdirs
4707 am__obj=sub/conftest.${OBJEXT-o}
4708 am__minus_obj="-o $am__obj"
4709 case $depmode in
4710 gcc)
4711 # This depmode causes a compiler race in universal mode.
4712 test "$am__universal" = false || continue
4714 nosideeffect)
4715 # after this tag, mechanisms are not by side-effect, so they'll
4716 # only be used when explicitly requested
4717 if test "x$enable_dependency_tracking" = xyes; then
4718 continue
4719 else
4720 break
4723 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4724 # This compiler won't grok `-c -o', but also, the minuso test has
4725 # not run yet. These depmodes are late enough in the game, and
4726 # so weak that their functioning should not be impacted.
4727 am__obj=conftest.${OBJEXT-o}
4728 am__minus_obj=
4730 none) break ;;
4731 esac
4732 if depmode=$depmode \
4733 source=sub/conftest.c object=$am__obj \
4734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4736 >/dev/null 2>conftest.err &&
4737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4741 # icc doesn't choke on unknown options, it will just issue warnings
4742 # or remarks (even with -Werror). So we grep stderr for any message
4743 # that says an option was ignored or not supported.
4744 # When given -MP, icc 7.0 and 7.1 complain thusly:
4745 # icc: Command line warning: ignoring option '-M'; no argument required
4746 # The diagnosis changed in icc 8.0:
4747 # icc: Command line remark: option '-MP' not supported
4748 if (grep 'ignoring option' conftest.err ||
4749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4750 am_cv_CCAS_dependencies_compiler_type=$depmode
4751 break
4754 done
4756 cd ..
4757 rm -rf conftest.dir
4758 else
4759 am_cv_CCAS_dependencies_compiler_type=none
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4764 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4765 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4768 test "x$enable_dependency_tracking" != xno \
4769 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4770 am__fastdepCCAS_TRUE=
4771 am__fastdepCCAS_FALSE='#'
4772 else
4773 am__fastdepCCAS_TRUE='#'
4774 am__fastdepCCAS_FALSE=
4778 if test "x$CC" != xcc; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4780 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4783 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4785 set dummy $CC; ac_cc=`$as_echo "$2" |
4786 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4787 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4794 main ()
4798 return 0;
4800 _ACEOF
4801 # Make sure it works both with $CC and with simple cc.
4802 # We do the test twice because some compilers refuse to overwrite an
4803 # existing .o file with -o, though they will create one.
4804 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4805 rm -f conftest2.*
4806 if { { case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811 $as_echo "$ac_try_echo"; } >&5
4812 (eval "$ac_try") 2>&5
4813 ac_status=$?
4814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815 test $ac_status = 0; } &&
4816 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819 esac
4820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4821 $as_echo "$ac_try_echo"; } >&5
4822 (eval "$ac_try") 2>&5
4823 ac_status=$?
4824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825 test $ac_status = 0; };
4826 then
4827 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4828 if test "x$CC" != xcc; then
4829 # Test first that cc exists at all.
4830 if { ac_try='cc -c conftest.$ac_ext >&5'
4831 { { case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_try") 2>&5
4838 ac_status=$?
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }; }; then
4841 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4842 rm -f conftest2.*
4843 if { { case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848 $as_echo "$ac_try_echo"; } >&5
4849 (eval "$ac_try") 2>&5
4850 ac_status=$?
4851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852 test $ac_status = 0; } &&
4853 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858 $as_echo "$ac_try_echo"; } >&5
4859 (eval "$ac_try") 2>&5
4860 ac_status=$?
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; };
4863 then
4864 # cc works too.
4866 else
4867 # cc exists but doesn't like -o.
4868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4872 else
4873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4875 rm -f core conftest*
4878 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4885 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4889 # FIXME: we rely on the cache variable name because
4890 # there is no other way.
4891 set dummy $CC
4892 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4893 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4894 if test "$am_t" != yes; then
4895 # Losing compiler, so override with the script.
4896 # FIXME: It is wrong to rewrite CC.
4897 # But if we don't then we get into trouble of one sort or another.
4898 # A longer-term fix would be to have automake use am__CC in this case,
4899 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4900 CC="$am_aux_dir/compile $CC"
4904 case `pwd` in
4905 *\ * | *\ *)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4908 esac
4912 macro_version='2.2.7a'
4913 macro_revision='1.3134'
4927 ltmain="$ac_aux_dir/ltmain.sh"
4929 # Backslashify metacharacters that are still active within
4930 # double-quoted strings.
4931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4933 # Same as above, but do not quote variable references.
4934 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4936 # Sed substitution to delay expansion of an escaped shell variable in a
4937 # double_quote_subst'ed string.
4938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4940 # Sed substitution to delay expansion of an escaped single quote.
4941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4943 # Sed substitution to avoid accidental globbing in evaled expressions
4944 no_glob_subst='s/\*/\\\*/g'
4946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4951 $as_echo_n "checking how to print strings... " >&6; }
4952 # Test print first, because it will be a builtin if present.
4953 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4954 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4955 ECHO='print -r --'
4956 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4957 ECHO='printf %s\n'
4958 else
4959 # Use this function as a fallback that always works.
4960 func_fallback_echo ()
4962 eval 'cat <<_LTECHO_EOF
4964 _LTECHO_EOF'
4966 ECHO='func_fallback_echo'
4969 # func_echo_all arg...
4970 # Invoke $ECHO with all args, space-separated.
4971 func_echo_all ()
4973 $ECHO ""
4976 case "$ECHO" in
4977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4978 $as_echo "printf" >&6; } ;;
4979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4980 $as_echo "print -r" >&6; } ;;
4981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4982 $as_echo "cat" >&6; } ;;
4983 esac
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4999 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5000 if test "${ac_cv_path_SED+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5004 for ac_i in 1 2 3 4 5 6 7; do
5005 ac_script="$ac_script$as_nl$ac_script"
5006 done
5007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5008 { ac_script=; unset ac_script;}
5009 if test -z "$SED"; then
5010 ac_path_SED_found=false
5011 # Loop through the user's path and test for each of PROGNAME-LIST
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_prog in sed gsed; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5020 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5021 # Check for GNU ac_path_SED and select it if it is found.
5022 # Check for GNU $ac_path_SED
5023 case `"$ac_path_SED" --version 2>&1` in
5024 *GNU*)
5025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5027 ac_count=0
5028 $as_echo_n 0123456789 >"conftest.in"
5029 while :
5031 cat "conftest.in" "conftest.in" >"conftest.tmp"
5032 mv "conftest.tmp" "conftest.in"
5033 cp "conftest.in" "conftest.nl"
5034 $as_echo '' >> "conftest.nl"
5035 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5037 as_fn_arith $ac_count + 1 && ac_count=$as_val
5038 if test $ac_count -gt ${ac_path_SED_max-0}; then
5039 # Best one so far, save it but keep looking for a better one
5040 ac_cv_path_SED="$ac_path_SED"
5041 ac_path_SED_max=$ac_count
5043 # 10*(2^10) chars as input seems more than enough
5044 test $ac_count -gt 10 && break
5045 done
5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5047 esac
5049 $ac_path_SED_found && break 3
5050 done
5051 done
5052 done
5053 IFS=$as_save_IFS
5054 if test -z "$ac_cv_path_SED"; then
5055 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5057 else
5058 ac_cv_path_SED=$SED
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5063 $as_echo "$ac_cv_path_SED" >&6; }
5064 SED="$ac_cv_path_SED"
5065 rm -f conftest.sed
5067 test -z "$SED" && SED=sed
5068 Xsed="$SED -e 1s/^X//"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5082 if test "${ac_cv_path_GREP+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -z "$GREP"; then
5086 ac_path_GREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in grep ggrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5096 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5097 # Check for GNU ac_path_GREP and select it if it is found.
5098 # Check for GNU $ac_path_GREP
5099 case `"$ac_path_GREP" --version 2>&1` in
5100 *GNU*)
5101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5103 ac_count=0
5104 $as_echo_n 0123456789 >"conftest.in"
5105 while :
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'GREP' >> "conftest.nl"
5111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_GREP="$ac_path_GREP"
5117 ac_path_GREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5121 done
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5125 $ac_path_GREP_found && break 3
5126 done
5127 done
5128 done
5129 IFS=$as_save_IFS
5130 if test -z "$ac_cv_path_GREP"; then
5131 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5133 else
5134 ac_cv_path_GREP=$GREP
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5139 $as_echo "$ac_cv_path_GREP" >&6; }
5140 GREP="$ac_cv_path_GREP"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5144 $as_echo_n "checking for egrep... " >&6; }
5145 if test "${ac_cv_path_EGREP+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5149 then ac_cv_path_EGREP="$GREP -E"
5150 else
5151 if test -z "$EGREP"; then
5152 ac_path_EGREP_found=false
5153 # Loop through the user's path and test for each of PROGNAME-LIST
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_prog in egrep; do
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5162 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5163 # Check for GNU ac_path_EGREP and select it if it is found.
5164 # Check for GNU $ac_path_EGREP
5165 case `"$ac_path_EGREP" --version 2>&1` in
5166 *GNU*)
5167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5169 ac_count=0
5170 $as_echo_n 0123456789 >"conftest.in"
5171 while :
5173 cat "conftest.in" "conftest.in" >"conftest.tmp"
5174 mv "conftest.tmp" "conftest.in"
5175 cp "conftest.in" "conftest.nl"
5176 $as_echo 'EGREP' >> "conftest.nl"
5177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5179 as_fn_arith $ac_count + 1 && ac_count=$as_val
5180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5181 # Best one so far, save it but keep looking for a better one
5182 ac_cv_path_EGREP="$ac_path_EGREP"
5183 ac_path_EGREP_max=$ac_count
5185 # 10*(2^10) chars as input seems more than enough
5186 test $ac_count -gt 10 && break
5187 done
5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5189 esac
5191 $ac_path_EGREP_found && break 3
5192 done
5193 done
5194 done
5195 IFS=$as_save_IFS
5196 if test -z "$ac_cv_path_EGREP"; then
5197 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5199 else
5200 ac_cv_path_EGREP=$EGREP
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5206 $as_echo "$ac_cv_path_EGREP" >&6; }
5207 EGREP="$ac_cv_path_EGREP"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5211 $as_echo_n "checking for fgrep... " >&6; }
5212 if test "${ac_cv_path_FGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5216 then ac_cv_path_FGREP="$GREP -F"
5217 else
5218 if test -z "$FGREP"; then
5219 ac_path_FGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in fgrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5230 # Check for GNU ac_path_FGREP and select it if it is found.
5231 # Check for GNU $ac_path_FGREP
5232 case `"$ac_path_FGREP" --version 2>&1` in
5233 *GNU*)
5234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'FGREP' >> "conftest.nl"
5244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_FGREP="$ac_path_FGREP"
5250 ac_path_FGREP_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5258 $ac_path_FGREP_found && break 3
5259 done
5260 done
5261 done
5262 IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_FGREP"; then
5264 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5266 else
5267 ac_cv_path_FGREP=$FGREP
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5273 $as_echo "$ac_cv_path_FGREP" >&6; }
5274 FGREP="$ac_cv_path_FGREP"
5277 test -z "$GREP" && GREP=grep
5297 # Check whether --with-gnu-ld was given.
5298 if test "${with_gnu_ld+set}" = set; then :
5299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5300 else
5301 with_gnu_ld=no
5304 ac_prog=ld
5305 if test "$GCC" = yes; then
5306 # Check if gcc -print-prog-name=ld gives a path.
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5308 $as_echo_n "checking for ld used by $CC... " >&6; }
5309 case $host in
5310 *-*-mingw*)
5311 # gcc leaves a trailing carriage return which upsets mingw
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5315 esac
5316 case $ac_prog in
5317 # Accept absolute paths.
5318 [\\/]* | ?:[\\/]*)
5319 re_direlt='/[^/][^/]*/\.\./'
5320 # Canonicalize the pathname of ld
5321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5324 done
5325 test -z "$LD" && LD="$ac_prog"
5328 # If it fails, then pretend we aren't using GCC.
5329 ac_prog=ld
5332 # If it is relative, then search for the first ld in PATH.
5333 with_gnu_ld=unknown
5335 esac
5336 elif test "$with_gnu_ld" = yes; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5338 $as_echo_n "checking for GNU ld... " >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5341 $as_echo_n "checking for non-GNU ld... " >&6; }
5343 if test "${lt_cv_path_LD+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -z "$LD"; then
5347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5349 IFS="$lt_save_ifs"
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD="$ac_dir/$ac_prog"
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test "$with_gnu_ld" != no && break
5361 test "$with_gnu_ld" != yes && break
5363 esac
5365 done
5366 IFS="$lt_save_ifs"
5367 else
5368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5372 LD="$lt_cv_path_LD"
5373 if test -n "$LD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5375 $as_echo "$LD" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5380 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5382 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5383 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5387 case `$LD -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 lt_cv_prog_gnu_ld=yes
5392 lt_cv_prog_gnu_ld=no
5394 esac
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5398 with_gnu_ld=$lt_cv_prog_gnu_ld
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5409 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5410 if test "${lt_cv_path_NM+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$NM"; then
5414 # Let the user override the test.
5415 lt_cv_path_NM="$NM"
5416 else
5417 lt_nm_to_check="${ac_tool_prefix}nm"
5418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419 lt_nm_to_check="$lt_nm_to_check nm"
5421 for lt_tmp_nm in $lt_nm_to_check; do
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5424 IFS="$lt_save_ifs"
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/$lt_tmp_nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5435 break
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439 */dev/null*)
5440 lt_cv_path_NM="$tmp_nm -p"
5441 break
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5447 esac
5449 esac
5451 done
5452 IFS="$lt_save_ifs"
5453 done
5454 : ${lt_cv_path_NM=no}
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5458 $as_echo "$lt_cv_path_NM" >&6; }
5459 if test "$lt_cv_path_NM" != "no"; then
5460 NM="$lt_cv_path_NM"
5461 else
5462 # Didn't find any BSD compatible name lister, look for dumpbin.
5463 if test -n "$DUMPBIN"; then :
5464 # Let the user override the test.
5465 else
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in dumpbin "link -dump"
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$DUMPBIN"; then
5477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 DUMPBIN=$ac_cv_prog_DUMPBIN
5497 if test -n "$DUMPBIN"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5499 $as_echo "$DUMPBIN" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 test -n "$DUMPBIN" && break
5507 done
5509 if test -z "$DUMPBIN"; then
5510 ac_ct_DUMPBIN=$DUMPBIN
5511 for ac_prog in dumpbin "link -dump"
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$ac_ct_DUMPBIN"; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5534 done
5535 done
5536 IFS=$as_save_IFS
5540 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5543 $as_echo "$ac_ct_DUMPBIN" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5550 test -n "$ac_ct_DUMPBIN" && break
5551 done
5553 if test "x$ac_ct_DUMPBIN" = x; then
5554 DUMPBIN=":"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 DUMPBIN=$ac_ct_DUMPBIN
5566 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5567 *COFF*)
5568 DUMPBIN="$DUMPBIN -symbols"
5571 DUMPBIN=:
5573 esac
5576 if test "$DUMPBIN" != ":"; then
5577 NM="$DUMPBIN"
5580 test -z "$NM" && NM=nm
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5588 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5589 if test "${lt_cv_nm_interface+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 lt_cv_nm_interface="BSD nm"
5593 echo "int some_variable = 0;" > conftest.$ac_ext
5594 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5595 (eval "$ac_compile" 2>conftest.err)
5596 cat conftest.err >&5
5597 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5598 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5599 cat conftest.err >&5
5600 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5601 cat conftest.out >&5
5602 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5603 lt_cv_nm_interface="MS dumpbin"
5605 rm -f conftest*
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5608 $as_echo "$lt_cv_nm_interface" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5611 $as_echo_n "checking whether ln -s works... " >&6; }
5612 LN_S=$as_ln_s
5613 if test "$LN_S" = "ln -s"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5618 $as_echo "no, using $LN_S" >&6; }
5621 # find the maximum length of command line arguments
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5623 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5624 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5628 teststring="ABCD"
5630 case $build_os in
5631 msdosdjgpp*)
5632 # On DJGPP, this test can blow up pretty badly due to problems in libc
5633 # (any single argument exceeding 2000 bytes causes a buffer overrun
5634 # during glob expansion). Even if it were fixed, the result of this
5635 # check would be larger than it should be.
5636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5639 gnu*)
5640 # Under GNU Hurd, this test is not required because there is
5641 # no limit to the length of command line arguments.
5642 # Libtool will interpret -1 as no limit whatsoever
5643 lt_cv_sys_max_cmd_len=-1;
5646 cygwin* | mingw* | cegcc*)
5647 # On Win9x/ME, this test blows up -- it succeeds, but takes
5648 # about 5 minutes as the teststring grows exponentially.
5649 # Worse, since 9x/ME are not pre-emptively multitasking,
5650 # you end up with a "frozen" computer, even though with patience
5651 # the test eventually succeeds (with a max line length of 256k).
5652 # Instead, let's just punt: use the minimum linelength reported by
5653 # all of the supported platforms: 8192 (on NT/2K/XP).
5654 lt_cv_sys_max_cmd_len=8192;
5657 mint*)
5658 # On MiNT this can take a long time and run out of memory.
5659 lt_cv_sys_max_cmd_len=8192;
5662 amigaos*)
5663 # On AmigaOS with pdksh, this test takes hours, literally.
5664 # So we just punt and use a minimum line length of 8192.
5665 lt_cv_sys_max_cmd_len=8192;
5668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669 # This has been around since 386BSD, at least. Likely further.
5670 if test -x /sbin/sysctl; then
5671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672 elif test -x /usr/sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5674 else
5675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5677 # And add a safety zone
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 interix*)
5683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5684 lt_cv_sys_max_cmd_len=196608
5687 osf*)
5688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690 # nice to cause kernel panics so lets avoid the loop below.
5691 # First set a reasonable default.
5692 lt_cv_sys_max_cmd_len=16384
5694 if test -x /sbin/sysconfig; then
5695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697 esac
5700 sco3.2v5*)
5701 lt_cv_sys_max_cmd_len=102400
5703 sysv5* | sco5v6* | sysv4.2uw2*)
5704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705 if test -n "$kargmax"; then
5706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5707 else
5708 lt_cv_sys_max_cmd_len=32768
5712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713 if test -n "$lt_cv_sys_max_cmd_len"; then
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716 else
5717 # Make teststring a little bigger before we do anything with it.
5718 # a 1K string should be a reasonable start.
5719 for i in 1 2 3 4 5 6 7 8 ; do
5720 teststring=$teststring$teststring
5721 done
5722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723 # If test is not a shell built-in, we'll probably end up computing a
5724 # maximum length that is only half of the actual maximum length, but
5725 # we can't tell.
5726 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5727 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5728 test $i != 17 # 1/2 MB should be enough
5730 i=`expr $i + 1`
5731 teststring=$teststring$teststring
5732 done
5733 # Only check the string length outside the loop.
5734 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5735 teststring=
5736 # Add a significant safety factor because C++ compilers can tack on
5737 # massive amounts of additional arguments before passing them to the
5738 # linker. It appears as though 1/2 is a usable value.
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5742 esac
5746 if test -n $lt_cv_sys_max_cmd_len ; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5751 $as_echo "none" >&6; }
5753 max_cmd_len=$lt_cv_sys_max_cmd_len
5760 : ${CP="cp -f"}
5761 : ${MV="mv -f"}
5762 : ${RM="rm -f"}
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5765 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5766 # Try some XSI features
5767 xsi_shell=no
5768 ( _lt_dummy="a/b/c"
5769 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5770 = c,a/b,, \
5771 && eval 'test $(( 1 + 1 )) -eq 2 \
5772 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5773 && xsi_shell=yes
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5775 $as_echo "$xsi_shell" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5780 lt_shell_append=no
5781 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5782 >/dev/null 2>&1 \
5783 && lt_shell_append=yes
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5785 $as_echo "$lt_shell_append" >&6; }
5788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5789 lt_unset=unset
5790 else
5791 lt_unset=false
5798 # test EBCDIC or ASCII
5799 case `echo X|tr X '\101'` in
5800 A) # ASCII based system
5801 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802 lt_SP2NL='tr \040 \012'
5803 lt_NL2SP='tr \015\012 \040\040'
5805 *) # EBCDIC based system
5806 lt_SP2NL='tr \100 \n'
5807 lt_NL2SP='tr \r\n \100\100'
5809 esac
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5821 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 lt_cv_ld_reload_flag='-r'
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5827 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5828 reload_flag=$lt_cv_ld_reload_flag
5829 case $reload_flag in
5830 "" | " "*) ;;
5831 *) reload_flag=" $reload_flag" ;;
5832 esac
5833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5834 case $host_os in
5835 darwin*)
5836 if test "$GCC" = yes; then
5837 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5838 else
5839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5842 esac
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$OBJDUMP"; then
5861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5874 done
5875 done
5876 IFS=$as_save_IFS
5880 OBJDUMP=$ac_cv_prog_OBJDUMP
5881 if test -n "$OBJDUMP"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5883 $as_echo "$OBJDUMP" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 if test -z "$ac_cv_prog_OBJDUMP"; then
5892 ac_ct_OBJDUMP=$OBJDUMP
5893 # Extract the first word of "objdump", so it can be a program name with args.
5894 set dummy objdump; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -n "$ac_ct_OBJDUMP"; then
5901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5916 IFS=$as_save_IFS
5920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5923 $as_echo "$ac_ct_OBJDUMP" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 if test "x$ac_ct_OBJDUMP" = x; then
5930 OBJDUMP="false"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938 OBJDUMP=$ac_ct_OBJDUMP
5940 else
5941 OBJDUMP="$ac_cv_prog_OBJDUMP"
5944 test -z "$OBJDUMP" && OBJDUMP=objdump
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5955 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 lt_cv_file_magic_cmd='$MAGIC_CMD'
5960 lt_cv_file_magic_test_file=
5961 lt_cv_deplibs_check_method='unknown'
5962 # Need to set the preceding variable on all platforms that support
5963 # interlibrary dependencies.
5964 # 'none' -- dependencies not supported.
5965 # `unknown' -- same as none, but documents that we really don't know.
5966 # 'pass_all' -- all dependencies passed with no checks.
5967 # 'test_compile' -- check by making test program.
5968 # 'file_magic [[regex]]' -- check by looking for files in library path
5969 # which responds to the $file_magic_cmd with a given extended regex.
5970 # If you have `file' or equivalent on your system and you're not sure
5971 # whether `pass_all' will *always* work, you probably want this one.
5973 case $host_os in
5974 aix[4-9]*)
5975 lt_cv_deplibs_check_method=pass_all
5978 beos*)
5979 lt_cv_deplibs_check_method=pass_all
5982 bsdi[45]*)
5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984 lt_cv_file_magic_cmd='/usr/bin/file -L'
5985 lt_cv_file_magic_test_file=/shlib/libc.so
5988 cygwin*)
5989 # func_win32_libid is a shell function defined in ltmain.sh
5990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd='func_win32_libid'
5994 mingw* | pw32*)
5995 # Base MSYS/MinGW do not provide the 'file' command needed by
5996 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997 # unless we find 'file', for example because we are cross-compiling.
5998 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5999 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd='func_win32_libid'
6002 else
6003 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6008 cegcc*)
6009 # use the weaker test based on 'objdump'. See mingw*.
6010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6011 lt_cv_file_magic_cmd='$OBJDUMP -f'
6014 darwin* | rhapsody*)
6015 lt_cv_deplibs_check_method=pass_all
6018 freebsd* | dragonfly*)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 case $host_cpu in
6021 i*86 )
6022 # Not sure whether the presence of OpenBSD here was a mistake.
6023 # Let's accept both of them until this is cleared up.
6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6025 lt_cv_file_magic_cmd=/usr/bin/file
6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6028 esac
6029 else
6030 lt_cv_deplibs_check_method=pass_all
6034 gnu*)
6035 lt_cv_deplibs_check_method=pass_all
6038 haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6042 hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6057 esac
6060 interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065 irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6075 # This must be Linux ELF.
6076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6077 lt_cv_deplibs_check_method=pass_all
6080 netbsd*)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6088 newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094 *nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6098 openbsd*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106 osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6110 rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6114 solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6122 sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6144 lt_cv_deplibs_check_method=pass_all
6146 esac
6149 tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6152 esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6156 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6157 file_magic_cmd=$lt_cv_file_magic_cmd
6158 deplibs_check_method=$lt_cv_deplibs_check_method
6159 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ar; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_AR+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$AR"; then
6181 ac_cv_prog_AR="$AR" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_AR="${ac_tool_prefix}ar"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6194 done
6195 done
6196 IFS=$as_save_IFS
6200 AR=$ac_cv_prog_AR
6201 if test -n "$AR"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6203 $as_echo "$AR" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_AR"; then
6212 ac_ct_AR=$AR
6213 # Extract the first word of "ar", so it can be a program name with args.
6214 set dummy ar; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$ac_ct_AR"; then
6221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_AR="ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6234 done
6235 done
6236 IFS=$as_save_IFS
6240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6241 if test -n "$ac_ct_AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6243 $as_echo "$ac_ct_AR" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_AR" = x; then
6250 AR="false"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 AR=$ac_ct_AR
6260 else
6261 AR="$ac_cv_prog_AR"
6264 test -z "$AR" && AR=ar
6265 test -z "$AR_FLAGS" && AR_FLAGS=cru
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}strip; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_prog_STRIP+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$STRIP"; then
6286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6305 STRIP=$ac_cv_prog_STRIP
6306 if test -n "$STRIP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6308 $as_echo "$STRIP" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6316 if test -z "$ac_cv_prog_STRIP"; then
6317 ac_ct_STRIP=$STRIP
6318 # Extract the first word of "strip", so it can be a program name with args.
6319 set dummy strip; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_STRIP="strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6339 done
6340 done
6341 IFS=$as_save_IFS
6345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6346 if test -n "$ac_ct_STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6348 $as_echo "$ac_ct_STRIP" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6354 if test "x$ac_ct_STRIP" = x; then
6355 STRIP=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6362 esac
6363 STRIP=$ac_ct_STRIP
6365 else
6366 STRIP="$ac_cv_prog_STRIP"
6369 test -z "$STRIP" && STRIP=:
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$RANLIB"; then
6385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6400 IFS=$as_save_IFS
6404 RANLIB=$ac_cv_prog_RANLIB
6405 if test -n "$RANLIB"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6407 $as_echo "$RANLIB" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_RANLIB"; then
6416 ac_ct_RANLIB=$RANLIB
6417 # Extract the first word of "ranlib", so it can be a program name with args.
6418 set dummy ranlib; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_RANLIB"; then
6425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_RANLIB="ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6440 IFS=$as_save_IFS
6444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6445 if test -n "$ac_ct_RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6447 $as_echo "$ac_ct_RANLIB" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_RANLIB" = x; then
6454 RANLIB=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 RANLIB=$ac_ct_RANLIB
6464 else
6465 RANLIB="$ac_cv_prog_RANLIB"
6468 test -z "$RANLIB" && RANLIB=:
6475 # Determine commands to create old-style static archives.
6476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6477 old_postinstall_cmds='chmod 644 $oldlib'
6478 old_postuninstall_cmds=
6480 if test -n "$RANLIB"; then
6481 case $host_os in
6482 openbsd*)
6483 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6488 esac
6489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6492 case $host_os in
6493 darwin*)
6494 lock_old_archive_extraction=yes ;;
6496 lock_old_archive_extraction=no ;;
6497 esac
6537 # If no C compiler was specified, use CC.
6538 LTCC=${LTCC-"$CC"}
6540 # If no C compiler flags were specified, use CFLAGS.
6541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6543 # Allow CC to be a program name with arguments.
6544 compiler=$CC
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6557 # Character class describing NM global symbol codes.
6558 symcode='[BCDEGRST]'
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6563 # Define system-specific variables.
6564 case $host_os in
6565 aix*)
6566 symcode='[BCDT]'
6568 cygwin* | mingw* | pw32* | cegcc*)
6569 symcode='[ABCDGISTW]'
6571 hpux*)
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6576 irix* | nonstopux*)
6577 symcode='[BCDEGRST]'
6579 osf*)
6580 symcode='[BCDEGQRST]'
6582 solaris*)
6583 symcode='[BDRT]'
6585 sco3.2v5*)
6586 symcode='[DT]'
6588 sysv4.2uw2*)
6589 symcode='[DT]'
6591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6592 symcode='[ABDT]'
6594 sysv4)
6595 symcode='[DFNSTU]'
6597 esac
6599 # If we're using GNU nm, then use its standard symbol codes.
6600 case `$NM -V 2>&1` in
6601 *GNU* | *'with BFD'*)
6602 symcode='[ABCDGIRSTW]' ;;
6603 esac
6605 # Transform an extracted symbol line into a proper C declaration.
6606 # Some systems (esp. on ia64) link data and code symbols differently,
6607 # so use this general approach.
6608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6610 # Transform an extracted symbol line into symbol name and symbol address
6611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6612 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'"
6614 # Handle CRLF in mingw tool chain
6615 opt_cr=
6616 case $build_os in
6617 mingw*)
6618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6620 esac
6622 # Try without a prefix underscore, then with it.
6623 for ac_symprfx in "" "_"; do
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm="\\1 $ac_symprfx\\2 \\2"
6628 # Write the raw and C identifiers.
6629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6630 # Fake it for dumpbin and say T for any non-static function
6631 # and D for any global variable.
6632 # Also find C++ and __fastcall symbols from MSVC++,
6633 # which start with @ or ?.
6634 lt_cv_sys_global_symbol_pipe="$AWK '"\
6635 " {last_section=section; section=\$ 3};"\
6636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 " \$ 0!~/External *\|/{next};"\
6638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 " {if(hide[section]) next};"\
6640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 " ' prfx=^$ac_symprfx"
6645 else
6646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6649 # Check to see that the pipe works correctly.
6650 pipe_works=no
6652 rm -f conftest*
6653 cat > conftest.$ac_ext <<_LT_EOF
6654 #ifdef __cplusplus
6655 extern "C" {
6656 #endif
6657 char nm_test_var;
6658 void nm_test_func(void);
6659 void nm_test_func(void){}
6660 #ifdef __cplusplus
6662 #endif
6663 int main(){nm_test_var='a';nm_test_func();return(0);}
6664 _LT_EOF
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }; then
6671 # Now try to grab the symbols.
6672 nlist=conftest.nm
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6674 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; } && test -s "$nlist"; then
6678 # Try sorting and uniquifying the output.
6679 if sort "$nlist" | uniq > "$nlist"T; then
6680 mv -f "$nlist"T "$nlist"
6681 else
6682 rm -f "$nlist"T
6685 # Make sure that we snagged all the symbols we need.
6686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6688 cat <<_LT_EOF > conftest.$ac_ext
6689 #ifdef __cplusplus
6690 extern "C" {
6691 #endif
6693 _LT_EOF
6694 # Now generate the symbol file.
6695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6697 cat <<_LT_EOF >> conftest.$ac_ext
6699 /* The mapping between symbol names and symbols. */
6700 const struct {
6701 const char *name;
6702 void *address;
6704 lt__PROGRAM__LTX_preloaded_symbols[] =
6706 { "@PROGRAM@", (void *) 0 },
6707 _LT_EOF
6708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6709 cat <<\_LT_EOF >> conftest.$ac_ext
6710 {0, (void *) 0}
6713 /* This works around a problem in FreeBSD linker */
6714 #ifdef FREEBSD_WORKAROUND
6715 static const void *lt_preloaded_setup() {
6716 return lt__PROGRAM__LTX_preloaded_symbols;
6718 #endif
6720 #ifdef __cplusplus
6722 #endif
6723 _LT_EOF
6724 # Now try linking the two files.
6725 mv conftest.$ac_objext conftstm.$ac_objext
6726 lt_save_LIBS="$LIBS"
6727 lt_save_CFLAGS="$CFLAGS"
6728 LIBS="conftstm.$ac_objext"
6729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731 (eval $ac_link) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6735 pipe_works=yes
6737 LIBS="$lt_save_LIBS"
6738 CFLAGS="$lt_save_CFLAGS"
6739 else
6740 echo "cannot find nm_test_func in $nlist" >&5
6742 else
6743 echo "cannot find nm_test_var in $nlist" >&5
6745 else
6746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6748 else
6749 echo "$progname: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 rm -rf conftest* conftst*
6754 # Do not use the global_symbol_pipe unless it works.
6755 if test "$pipe_works" = yes; then
6756 break
6757 else
6758 lt_cv_sys_global_symbol_pipe=
6760 done
6764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765 lt_cv_sys_global_symbol_to_cdecl=
6767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769 $as_echo "failed" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772 $as_echo "ok" >&6; }
6797 # Check whether --enable-libtool-lock was given.
6798 if test "${enable_libtool_lock+set}" = set; then :
6799 enableval=$enable_libtool_lock;
6802 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6804 # Some flags need to be propagated to the compiler or linker for good
6805 # libtool support.
6806 case $host in
6807 ia64-*-hpux*)
6808 # Find out which ABI we are using.
6809 echo 'int i;' > conftest.$ac_ext
6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811 (eval $ac_compile) 2>&5
6812 ac_status=$?
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; }; then
6815 case `/usr/bin/file conftest.$ac_objext` in
6816 *ELF-32*)
6817 HPUX_IA64_MODE="32"
6819 *ELF-64*)
6820 HPUX_IA64_MODE="64"
6822 esac
6824 rm -rf conftest*
6826 *-*-irix6*)
6827 # Find out which ABI we are using.
6828 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 if test "$lt_cv_prog_gnu_ld" = yes; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6836 *32-bit*)
6837 LD="${LD-ld} -melf32bsmip"
6839 *N32*)
6840 LD="${LD-ld} -melf32bmipn32"
6842 *64-bit*)
6843 LD="${LD-ld} -melf64bmip"
6845 esac
6846 else
6847 case `/usr/bin/file conftest.$ac_objext` in
6848 *32-bit*)
6849 LD="${LD-ld} -32"
6851 *N32*)
6852 LD="${LD-ld} -n32"
6854 *64-bit*)
6855 LD="${LD-ld} -64"
6857 esac
6860 rm -rf conftest*
6863 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6864 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.$ac_ext
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868 (eval $ac_compile) 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
6872 case `/usr/bin/file conftest.o` in
6873 *32-bit*)
6874 case $host in
6875 x86_64-*kfreebsd*-gnu)
6876 LD="${LD-ld} -m elf_i386_fbsd"
6878 x86_64-*linux*)
6879 case `/usr/bin/file conftest.o` in
6880 *x86-64*)
6881 LD="${LD-ld} -m elf32_x86_64"
6884 LD="${LD-ld} -m elf_i386"
6886 esac
6888 powerpc64le-*linux*)
6889 LD="${LD-ld} -m elf32lppclinux"
6891 powerpc64-*linux*)
6892 LD="${LD-ld} -m elf32ppclinux"
6894 s390x-*linux*)
6895 LD="${LD-ld} -m elf_s390"
6897 sparc64-*linux*)
6898 LD="${LD-ld} -m elf32_sparc"
6900 esac
6902 *64-bit*)
6903 case $host in
6904 x86_64-*kfreebsd*-gnu)
6905 LD="${LD-ld} -m elf_x86_64_fbsd"
6907 x86_64-*linux*)
6908 LD="${LD-ld} -m elf_x86_64"
6910 powerpcle-*linux*)
6911 LD="${LD-ld} -m elf64lppc"
6913 powerpc-*linux*)
6914 LD="${LD-ld} -m elf64ppc"
6916 s390*-*linux*|s390*-*tpf*)
6917 LD="${LD-ld} -m elf64_s390"
6919 sparc*-*linux*)
6920 LD="${LD-ld} -m elf64_sparc"
6922 esac
6924 esac
6926 rm -rf conftest*
6929 *-*-sco3.2v5*)
6930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6931 SAVE_CFLAGS="$CFLAGS"
6932 CFLAGS="$CFLAGS -belf"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6934 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6935 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 ac_ext=c
6939 ac_cpp='$CPP $CPPFLAGS'
6940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6948 main ()
6952 return 0;
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 lt_cv_cc_needs_belf=yes
6957 else
6958 lt_cv_cc_needs_belf=no
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 ac_ext=c
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6970 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6971 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6973 CFLAGS="$SAVE_CFLAGS"
6976 sparc*-*solaris*)
6977 # Find out which ABI we are using.
6978 echo 'int i;' > conftest.$ac_ext
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6981 ac_status=$?
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 case `/usr/bin/file conftest.o` in
6985 *64-bit*)
6986 case $lt_cv_prog_gnu_ld in
6987 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6989 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6990 LD="${LD-ld} -64"
6993 esac
6995 esac
6997 rm -rf conftest*
6999 esac
7001 need_locks="$enable_libtool_lock"
7004 case $host_os in
7005 rhapsody* | darwin*)
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$DSYMUTIL"; then
7015 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7035 if test -n "$DSYMUTIL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7037 $as_echo "$DSYMUTIL" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7045 if test -z "$ac_cv_prog_DSYMUTIL"; then
7046 ac_ct_DSYMUTIL=$DSYMUTIL
7047 # Extract the first word of "dsymutil", so it can be a program name with args.
7048 set dummy dsymutil; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$ac_ct_DSYMUTIL"; then
7055 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7068 done
7069 done
7070 IFS=$as_save_IFS
7074 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7077 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7083 if test "x$ac_ct_DSYMUTIL" = x; then
7084 DSYMUTIL=":"
7085 else
7086 case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092 DSYMUTIL=$ac_ct_DSYMUTIL
7094 else
7095 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$NMEDIT"; then
7107 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7120 done
7121 done
7122 IFS=$as_save_IFS
7126 NMEDIT=$ac_cv_prog_NMEDIT
7127 if test -n "$NMEDIT"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7129 $as_echo "$NMEDIT" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7137 if test -z "$ac_cv_prog_NMEDIT"; then
7138 ac_ct_NMEDIT=$NMEDIT
7139 # Extract the first word of "nmedit", so it can be a program name with args.
7140 set dummy nmedit; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_NMEDIT"; then
7147 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7160 done
7161 done
7162 IFS=$as_save_IFS
7166 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7167 if test -n "$ac_ct_NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7169 $as_echo "$ac_ct_NMEDIT" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7175 if test "x$ac_ct_NMEDIT" = x; then
7176 NMEDIT=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 NMEDIT=$ac_ct_NMEDIT
7186 else
7187 NMEDIT="$ac_cv_prog_NMEDIT"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_LIPO+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$LIPO"; then
7199 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7212 done
7213 done
7214 IFS=$as_save_IFS
7218 LIPO=$ac_cv_prog_LIPO
7219 if test -n "$LIPO"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7221 $as_echo "$LIPO" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_LIPO"; then
7230 ac_ct_LIPO=$LIPO
7231 # Extract the first word of "lipo", so it can be a program name with args.
7232 set dummy lipo; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$ac_ct_LIPO"; then
7239 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_LIPO="lipo"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7252 done
7253 done
7254 IFS=$as_save_IFS
7258 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7259 if test -n "$ac_ct_LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7261 $as_echo "$ac_ct_LIPO" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7267 if test "x$ac_ct_LIPO" = x; then
7268 LIPO=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276 LIPO=$ac_ct_LIPO
7278 else
7279 LIPO="$ac_cv_prog_LIPO"
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}otool; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$OTOOL"; then
7291 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7304 done
7305 done
7306 IFS=$as_save_IFS
7310 OTOOL=$ac_cv_prog_OTOOL
7311 if test -n "$OTOOL"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7313 $as_echo "$OTOOL" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7321 if test -z "$ac_cv_prog_OTOOL"; then
7322 ac_ct_OTOOL=$OTOOL
7323 # Extract the first word of "otool", so it can be a program name with args.
7324 set dummy otool; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$ac_ct_OTOOL"; then
7331 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_ac_ct_OTOOL="otool"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7346 IFS=$as_save_IFS
7350 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7351 if test -n "$ac_ct_OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7353 $as_echo "$ac_ct_OTOOL" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7359 if test "x$ac_ct_OTOOL" = x; then
7360 OTOOL=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363 yes:)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned=yes ;;
7367 esac
7368 OTOOL=$ac_ct_OTOOL
7370 else
7371 OTOOL="$ac_cv_prog_OTOOL"
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7376 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$OTOOL64"; then
7383 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7396 done
7397 done
7398 IFS=$as_save_IFS
7402 OTOOL64=$ac_cv_prog_OTOOL64
7403 if test -n "$OTOOL64"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7405 $as_echo "$OTOOL64" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7413 if test -z "$ac_cv_prog_OTOOL64"; then
7414 ac_ct_OTOOL64=$OTOOL64
7415 # Extract the first word of "otool64", so it can be a program name with args.
7416 set dummy otool64; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$ac_ct_OTOOL64"; then
7423 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_ac_ct_OTOOL64="otool64"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7436 done
7437 done
7438 IFS=$as_save_IFS
7442 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7443 if test -n "$ac_ct_OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7445 $as_echo "$ac_ct_OTOOL64" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7451 if test "x$ac_ct_OTOOL64" = x; then
7452 OTOOL64=":"
7453 else
7454 case $cross_compiling:$ac_tool_warned in
7455 yes:)
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7458 ac_tool_warned=yes ;;
7459 esac
7460 OTOOL64=$ac_ct_OTOOL64
7462 else
7463 OTOOL64="$ac_cv_prog_OTOOL64"
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7493 $as_echo_n "checking for -single_module linker flag... " >&6; }
7494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 lt_cv_apple_cc_single_mod=no
7498 if test -z "${LT_MULTI_MODULE}"; then
7499 # By default we will add the -single_module flag. You can override
7500 # by either setting the environment variable LT_MULTI_MODULE
7501 # non-empty at configure time, or by adding -multi_module to the
7502 # link flags.
7503 rm -rf libconftest.dylib*
7504 echo "int foo(void){return 1;}" > conftest.c
7505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c" >&5
7507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7509 _lt_result=$?
7510 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7511 lt_cv_apple_cc_single_mod=yes
7512 else
7513 cat conftest.err >&5
7515 rm -rf libconftest.dylib*
7516 rm -f conftest.*
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7520 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7522 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7523 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 lt_cv_ld_exported_symbols_list=no
7527 save_LDFLAGS=$LDFLAGS
7528 echo "_main" > conftest.sym
7529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7534 main ()
7538 return 0;
7540 _ACEOF
7541 if ac_fn_c_try_link "$LINENO"; then :
7542 lt_cv_ld_exported_symbols_list=yes
7543 else
7544 lt_cv_ld_exported_symbols_list=no
7546 rm -f core conftest.err conftest.$ac_objext \
7547 conftest$ac_exeext conftest.$ac_ext
7548 LDFLAGS="$save_LDFLAGS"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7552 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7554 $as_echo_n "checking for -force_load linker flag... " >&6; }
7555 if test "${lt_cv_ld_force_load+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 lt_cv_ld_force_load=no
7559 cat > conftest.c << _LT_EOF
7560 int forced_loaded() { return 2;}
7561 _LT_EOF
7562 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7564 echo "$AR cru libconftest.a conftest.o" >&5
7565 $AR cru libconftest.a conftest.o 2>&5
7566 cat > conftest.c << _LT_EOF
7567 int main() { return 0;}
7568 _LT_EOF
7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7570 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7571 _lt_result=$?
7572 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7573 lt_cv_ld_force_load=yes
7574 else
7575 cat conftest.err >&5
7577 rm -f conftest.err libconftest.a conftest conftest.c
7578 rm -rf conftest.dSYM
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7582 $as_echo "$lt_cv_ld_force_load" >&6; }
7583 case $host_os in
7584 rhapsody* | darwin1.[012])
7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7586 darwin1.*)
7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 darwin*) # darwin 5.x on
7589 # if running on 10.5 or later, the deployment target defaults
7590 # to the OS version, if on x86, and 10.4, the deployment
7591 # target defaults to 10.4. Don't you love it?
7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7593 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 10.[012][,.]*)
7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7597 10.*)
7598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7599 esac
7601 esac
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7607 else
7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7611 _lt_dsymutil='~$DSYMUTIL $lib || :'
7612 else
7613 _lt_dsymutil=
7616 esac
7618 ac_ext=c
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7624 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7625 # On Suns, sometimes $CPP names a directory.
7626 if test -n "$CPP" && test -d "$CPP"; then
7627 CPP=
7629 if test -z "$CPP"; then
7630 if test "${ac_cv_prog_CPP+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 # Double quotes because CPP needs to be expanded
7634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7636 ac_preproc_ok=false
7637 for ac_c_preproc_warn_flag in '' yes
7639 # Use a header file that comes with gcc, so configuring glibc
7640 # with a fresh cross-compiler works.
7641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642 # <limits.h> exists even on freestanding compilers.
7643 # On the NeXT, cc -E runs the code through the compiler's parser,
7644 # not just through cpp. "Syntax error" is here to catch this case.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #ifdef __STDC__
7648 # include <limits.h>
7649 #else
7650 # include <assert.h>
7651 #endif
7652 Syntax error
7653 _ACEOF
7654 if ac_fn_c_try_cpp "$LINENO"; then :
7656 else
7657 # Broken: fails on valid input.
7658 continue
7660 rm -f conftest.err conftest.$ac_ext
7662 # OK, works on sane cases. Now check whether nonexistent headers
7663 # can be detected and how.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <ac_nonexistent.h>
7667 _ACEOF
7668 if ac_fn_c_try_cpp "$LINENO"; then :
7669 # Broken: success on invalid input.
7670 continue
7671 else
7672 # Passes both tests.
7673 ac_preproc_ok=:
7674 break
7676 rm -f conftest.err conftest.$ac_ext
7678 done
7679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7680 rm -f conftest.err conftest.$ac_ext
7681 if $ac_preproc_ok; then :
7682 break
7685 done
7686 ac_cv_prog_CPP=$CPP
7689 CPP=$ac_cv_prog_CPP
7690 else
7691 ac_cv_prog_CPP=$CPP
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7694 $as_echo "$CPP" >&6; }
7695 ac_preproc_ok=false
7696 for ac_c_preproc_warn_flag in '' yes
7698 # Use a header file that comes with gcc, so configuring glibc
7699 # with a fresh cross-compiler works.
7700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701 # <limits.h> exists even on freestanding compilers.
7702 # On the NeXT, cc -E runs the code through the compiler's parser,
7703 # not just through cpp. "Syntax error" is here to catch this case.
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 #ifdef __STDC__
7707 # include <limits.h>
7708 #else
7709 # include <assert.h>
7710 #endif
7711 Syntax error
7712 _ACEOF
7713 if ac_fn_c_try_cpp "$LINENO"; then :
7715 else
7716 # Broken: fails on valid input.
7717 continue
7719 rm -f conftest.err conftest.$ac_ext
7721 # OK, works on sane cases. Now check whether nonexistent headers
7722 # can be detected and how.
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 #include <ac_nonexistent.h>
7726 _ACEOF
7727 if ac_fn_c_try_cpp "$LINENO"; then :
7728 # Broken: success on invalid input.
7729 continue
7730 else
7731 # Passes both tests.
7732 ac_preproc_ok=:
7733 break
7735 rm -f conftest.err conftest.$ac_ext
7737 done
7738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7739 rm -f conftest.err conftest.$ac_ext
7740 if $ac_preproc_ok; then :
7742 else
7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7745 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7746 See \`config.log' for more details." "$LINENO" 5; }
7749 ac_ext=c
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7757 $as_echo_n "checking for ANSI C header files... " >&6; }
7758 if test "${ac_cv_header_stdc+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 #include <stdlib.h>
7764 #include <stdarg.h>
7765 #include <string.h>
7766 #include <float.h>
7769 main ()
7773 return 0;
7775 _ACEOF
7776 if ac_fn_c_try_compile "$LINENO"; then :
7777 ac_cv_header_stdc=yes
7778 else
7779 ac_cv_header_stdc=no
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 if test $ac_cv_header_stdc = yes; then
7784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #include <string.h>
7789 _ACEOF
7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "memchr" >/dev/null 2>&1; then :
7793 else
7794 ac_cv_header_stdc=no
7796 rm -f conftest*
7800 if test $ac_cv_header_stdc = yes; then
7801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 #include <stdlib.h>
7806 _ACEOF
7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808 $EGREP "free" >/dev/null 2>&1; then :
7810 else
7811 ac_cv_header_stdc=no
7813 rm -f conftest*
7817 if test $ac_cv_header_stdc = yes; then
7818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7819 if test "$cross_compiling" = yes; then :
7821 else
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824 #include <ctype.h>
7825 #include <stdlib.h>
7826 #if ((' ' & 0x0FF) == 0x020)
7827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7829 #else
7830 # define ISLOWER(c) \
7831 (('a' <= (c) && (c) <= 'i') \
7832 || ('j' <= (c) && (c) <= 'r') \
7833 || ('s' <= (c) && (c) <= 'z'))
7834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7835 #endif
7837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7839 main ()
7841 int i;
7842 for (i = 0; i < 256; i++)
7843 if (XOR (islower (i), ISLOWER (i))
7844 || toupper (i) != TOUPPER (i))
7845 return 2;
7846 return 0;
7848 _ACEOF
7849 if ac_fn_c_try_run "$LINENO"; then :
7851 else
7852 ac_cv_header_stdc=no
7854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7855 conftest.$ac_objext conftest.beam conftest.$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7861 $as_echo "$ac_cv_header_stdc" >&6; }
7862 if test $ac_cv_header_stdc = yes; then
7864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7870 inttypes.h stdint.h unistd.h
7871 do :
7872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7875 eval as_val=\$$as_ac_Header
7876 if test "x$as_val" = x""yes; then :
7877 cat >>confdefs.h <<_ACEOF
7878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879 _ACEOF
7883 done
7886 for ac_header in dlfcn.h
7887 do :
7888 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7890 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7891 cat >>confdefs.h <<_ACEOF
7892 #define HAVE_DLFCN_H 1
7893 _ACEOF
7897 done
7904 # Set options
7908 enable_dlopen=no
7911 enable_win32_dll=no
7914 # Check whether --enable-shared was given.
7915 if test "${enable_shared+set}" = set; then :
7916 enableval=$enable_shared; p=${PACKAGE-default}
7917 case $enableval in
7918 yes) enable_shared=yes ;;
7919 no) enable_shared=no ;;
7921 enable_shared=no
7922 # Look at the argument we got. We use all the common list separators.
7923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7924 for pkg in $enableval; do
7925 IFS="$lt_save_ifs"
7926 if test "X$pkg" = "X$p"; then
7927 enable_shared=yes
7929 done
7930 IFS="$lt_save_ifs"
7932 esac
7933 else
7934 enable_shared=yes
7945 # Check whether --enable-static was given.
7946 if test "${enable_static+set}" = set; then :
7947 enableval=$enable_static; p=${PACKAGE-default}
7948 case $enableval in
7949 yes) enable_static=yes ;;
7950 no) enable_static=no ;;
7952 enable_static=no
7953 # Look at the argument we got. We use all the common list separators.
7954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7955 for pkg in $enableval; do
7956 IFS="$lt_save_ifs"
7957 if test "X$pkg" = "X$p"; then
7958 enable_static=yes
7960 done
7961 IFS="$lt_save_ifs"
7963 esac
7964 else
7965 enable_static=yes
7977 # Check whether --with-pic was given.
7978 if test "${with_pic+set}" = set; then :
7979 withval=$with_pic; pic_mode="$withval"
7980 else
7981 pic_mode=default
7985 test -z "$pic_mode" && pic_mode=default
7993 # Check whether --enable-fast-install was given.
7994 if test "${enable_fast_install+set}" = set; then :
7995 enableval=$enable_fast_install; p=${PACKAGE-default}
7996 case $enableval in
7997 yes) enable_fast_install=yes ;;
7998 no) enable_fast_install=no ;;
8000 enable_fast_install=no
8001 # Look at the argument we got. We use all the common list separators.
8002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8003 for pkg in $enableval; do
8004 IFS="$lt_save_ifs"
8005 if test "X$pkg" = "X$p"; then
8006 enable_fast_install=yes
8008 done
8009 IFS="$lt_save_ifs"
8011 esac
8012 else
8013 enable_fast_install=yes
8026 # This can be used to rebuild libtool when needed
8027 LIBTOOL_DEPS="$ltmain"
8029 # Always use our own libtool.
8030 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8057 test -z "$LN_S" && LN_S="ln -s"
8072 if test -n "${ZSH_VERSION+set}" ; then
8073 setopt NO_GLOB_SUBST
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8077 $as_echo_n "checking for objdir... " >&6; }
8078 if test "${lt_cv_objdir+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 rm -f .libs 2>/dev/null
8082 mkdir .libs 2>/dev/null
8083 if test -d .libs; then
8084 lt_cv_objdir=.libs
8085 else
8086 # MS-DOS does not allow filenames that begin with a dot.
8087 lt_cv_objdir=_libs
8089 rmdir .libs 2>/dev/null
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8092 $as_echo "$lt_cv_objdir" >&6; }
8093 objdir=$lt_cv_objdir
8099 cat >>confdefs.h <<_ACEOF
8100 #define LT_OBJDIR "$lt_cv_objdir/"
8101 _ACEOF
8106 case $host_os in
8107 aix3*)
8108 # AIX sometimes has problems with the GCC collect2 program. For some
8109 # reason, if we set the COLLECT_NAMES environment variable, the problems
8110 # vanish in a puff of smoke.
8111 if test "X${COLLECT_NAMES+set}" != Xset; then
8112 COLLECT_NAMES=
8113 export COLLECT_NAMES
8116 esac
8118 # Global variables:
8119 ofile=libtool
8120 can_build_shared=yes
8122 # All known linkers require a `.a' archive for static linking (except MSVC,
8123 # which needs '.lib').
8124 libext=a
8126 with_gnu_ld="$lt_cv_prog_gnu_ld"
8128 old_CC="$CC"
8129 old_CFLAGS="$CFLAGS"
8131 # Set sane defaults for various variables
8132 test -z "$CC" && CC=cc
8133 test -z "$LTCC" && LTCC=$CC
8134 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8135 test -z "$LD" && LD=ld
8136 test -z "$ac_objext" && ac_objext=o
8138 for cc_temp in $compiler""; do
8139 case $cc_temp in
8140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8142 \-*) ;;
8143 *) break;;
8144 esac
8145 done
8146 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8149 # Only perform the check for file, if the check method requires it
8150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8151 case $deplibs_check_method in
8152 file_magic*)
8153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8155 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 case $MAGIC_CMD in
8160 [\\/*] | ?:[\\/]*)
8161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8164 lt_save_MAGIC_CMD="$MAGIC_CMD"
8165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8167 for ac_dir in $ac_dummy; do
8168 IFS="$lt_save_ifs"
8169 test -z "$ac_dir" && ac_dir=.
8170 if test -f $ac_dir/${ac_tool_prefix}file; then
8171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8172 if test -n "$file_magic_test_file"; then
8173 case $deplibs_check_method in
8174 "file_magic "*)
8175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8178 $EGREP "$file_magic_regex" > /dev/null; then
8180 else
8181 cat <<_LT_EOF 1>&2
8183 *** Warning: the command libtool uses to detect shared libraries,
8184 *** $file_magic_cmd, produces output that libtool cannot recognize.
8185 *** The result is that libtool may fail to recognize shared libraries
8186 *** as such. This will affect the creation of libtool libraries that
8187 *** depend on shared libraries, but programs linked with such libtool
8188 *** libraries will work regardless of this problem. Nevertheless, you
8189 *** may want to report the problem to your system manager and/or to
8190 *** bug-libtool@gnu.org
8192 _LT_EOF
8193 fi ;;
8194 esac
8196 break
8198 done
8199 IFS="$lt_save_ifs"
8200 MAGIC_CMD="$lt_save_MAGIC_CMD"
8202 esac
8205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8206 if test -n "$MAGIC_CMD"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8208 $as_echo "$MAGIC_CMD" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8218 if test -z "$lt_cv_path_MAGIC_CMD"; then
8219 if test -n "$ac_tool_prefix"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8221 $as_echo_n "checking for file... " >&6; }
8222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 case $MAGIC_CMD in
8226 [\\/*] | ?:[\\/]*)
8227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230 lt_save_MAGIC_CMD="$MAGIC_CMD"
8231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8232 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8233 for ac_dir in $ac_dummy; do
8234 IFS="$lt_save_ifs"
8235 test -z "$ac_dir" && ac_dir=.
8236 if test -f $ac_dir/file; then
8237 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8238 if test -n "$file_magic_test_file"; then
8239 case $deplibs_check_method in
8240 "file_magic "*)
8241 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8244 $EGREP "$file_magic_regex" > /dev/null; then
8246 else
8247 cat <<_LT_EOF 1>&2
8249 *** Warning: the command libtool uses to detect shared libraries,
8250 *** $file_magic_cmd, produces output that libtool cannot recognize.
8251 *** The result is that libtool may fail to recognize shared libraries
8252 *** as such. This will affect the creation of libtool libraries that
8253 *** depend on shared libraries, but programs linked with such libtool
8254 *** libraries will work regardless of this problem. Nevertheless, you
8255 *** may want to report the problem to your system manager and/or to
8256 *** bug-libtool@gnu.org
8258 _LT_EOF
8259 fi ;;
8260 esac
8262 break
8264 done
8265 IFS="$lt_save_ifs"
8266 MAGIC_CMD="$lt_save_MAGIC_CMD"
8268 esac
8271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8272 if test -n "$MAGIC_CMD"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8274 $as_echo "$MAGIC_CMD" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 else
8282 MAGIC_CMD=:
8288 esac
8290 # Use C for the default configuration in the libtool script
8292 lt_save_CC="$CC"
8293 ac_ext=c
8294 ac_cpp='$CPP $CPPFLAGS'
8295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8300 # Source file extension for C test sources.
8301 ac_ext=c
8303 # Object file extension for compiled C test sources.
8304 objext=o
8305 objext=$objext
8307 # Code to be used in simple compile tests
8308 lt_simple_compile_test_code="int some_variable = 0;"
8310 # Code to be used in simple link tests
8311 lt_simple_link_test_code='int main(){return(0);}'
8319 # If no C compiler was specified, use CC.
8320 LTCC=${LTCC-"$CC"}
8322 # If no C compiler flags were specified, use CFLAGS.
8323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8325 # Allow CC to be a program name with arguments.
8326 compiler=$CC
8328 # Save the default compiler, since it gets overwritten when the other
8329 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8330 compiler_DEFAULT=$CC
8332 # save warnings/boilerplate of simple test code
8333 ac_outfile=conftest.$ac_objext
8334 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8336 _lt_compiler_boilerplate=`cat conftest.err`
8337 $RM conftest*
8339 ac_outfile=conftest.$ac_objext
8340 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8342 _lt_linker_boilerplate=`cat conftest.err`
8343 $RM -r conftest*
8346 ## CAVEAT EMPTOR:
8347 ## There is no encapsulation within the following macros, do not change
8348 ## the running order or otherwise move them around unless you know exactly
8349 ## what you are doing...
8350 if test -n "$compiler"; then
8352 lt_prog_compiler_no_builtin_flag=
8354 if test "$GCC" = yes; then
8355 case $cc_basename in
8356 nvcc*)
8357 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8359 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8360 esac
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8363 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 lt_cv_prog_compiler_rtti_exceptions=no
8368 ac_outfile=conftest.$ac_objext
8369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8370 lt_compiler_flag="-fno-rtti -fno-exceptions"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 # The option is referenced via a variable to avoid confusing sed.
8376 lt_compile=`echo "$ac_compile" | $SED \
8377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8379 -e 's:$: $lt_compiler_flag:'`
8380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8381 (eval "$lt_compile" 2>conftest.err)
8382 ac_status=$?
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 if (exit $ac_status) && test -s "$ac_outfile"; then
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings other than the usual output.
8388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8391 lt_cv_prog_compiler_rtti_exceptions=yes
8394 $RM conftest*
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8398 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8401 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8402 else
8413 lt_prog_compiler_wl=
8414 lt_prog_compiler_pic=
8415 lt_prog_compiler_static=
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8420 if test "$GCC" = yes; then
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_static='-static'
8424 case $host_os in
8425 aix*)
8426 # All AIX code is PIC.
8427 if test "$host_cpu" = ia64; then
8428 # AIX 5 now supports IA64 processor
8429 lt_prog_compiler_static='-Bstatic'
8431 lt_prog_compiler_pic='-fPIC'
8434 amigaos*)
8435 case $host_cpu in
8436 powerpc)
8437 # see comment about AmigaOS4 .so support
8438 lt_prog_compiler_pic='-fPIC'
8440 m68k)
8441 # FIXME: we need at least 68020 code to build shared libraries, but
8442 # adding the `-m68020' flag to GCC prevents building anything better,
8443 # like `-m68040'.
8444 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8446 esac
8449 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8450 # PIC is the default for these OSes.
8453 mingw* | cygwin* | pw32* | os2* | cegcc*)
8454 # This hack is so that the source file can tell whether it is being
8455 # built for inclusion in a dll (and should export symbols for example).
8456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8457 # (--disable-auto-import) libraries
8458 lt_prog_compiler_pic='-DDLL_EXPORT'
8461 darwin* | rhapsody*)
8462 # PIC is the default on this platform
8463 # Common symbols not allowed in MH_DYLIB files
8464 lt_prog_compiler_pic='-fno-common'
8467 haiku*)
8468 # PIC is the default for Haiku.
8469 # The "-static" flag exists, but is broken.
8470 lt_prog_compiler_static=
8473 hpux*)
8474 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8475 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8476 # sets the default TLS model and affects inlining.
8477 case $host_cpu in
8478 hppa*64*)
8479 # +Z the default
8482 lt_prog_compiler_pic='-fPIC'
8484 esac
8487 interix[3-9]*)
8488 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8489 # Instead, we relocate shared libraries at runtime.
8492 msdosdjgpp*)
8493 # Just because we use GCC doesn't mean we suddenly get shared libraries
8494 # on systems that don't support them.
8495 lt_prog_compiler_can_build_shared=no
8496 enable_shared=no
8499 *nto* | *qnx*)
8500 # QNX uses GNU C++, but need to define -shared option too, otherwise
8501 # it will coredump.
8502 lt_prog_compiler_pic='-fPIC -shared'
8505 sysv4*MP*)
8506 if test -d /usr/nec; then
8507 lt_prog_compiler_pic=-Kconform_pic
8512 lt_prog_compiler_pic='-fPIC'
8514 esac
8516 case $cc_basename in
8517 nvcc*) # Cuda Compiler Driver 2.2
8518 lt_prog_compiler_wl='-Xlinker '
8519 lt_prog_compiler_pic='-Xcompiler -fPIC'
8521 esac
8522 else
8523 # PORTME Check for flag to pass linker flags through the system compiler.
8524 case $host_os in
8525 aix*)
8526 lt_prog_compiler_wl='-Wl,'
8527 if test "$host_cpu" = ia64; then
8528 # AIX 5 now supports IA64 processor
8529 lt_prog_compiler_static='-Bstatic'
8530 else
8531 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8535 mingw* | cygwin* | pw32* | os2* | cegcc*)
8536 # This hack is so that the source file can tell whether it is being
8537 # built for inclusion in a dll (and should export symbols for example).
8538 lt_prog_compiler_pic='-DDLL_EXPORT'
8541 hpux9* | hpux10* | hpux11*)
8542 lt_prog_compiler_wl='-Wl,'
8543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8544 # not for PA HP-UX.
8545 case $host_cpu in
8546 hppa*64*|ia64*)
8547 # +Z the default
8550 lt_prog_compiler_pic='+Z'
8552 esac
8553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8554 lt_prog_compiler_static='${wl}-a ${wl}archive'
8557 irix5* | irix6* | nonstopux*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # PIC (with -KPIC) is the default.
8560 lt_prog_compiler_static='-non_shared'
8563 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8564 case $cc_basename in
8565 # old Intel for x86_64 which still supported -KPIC.
8566 ecc*)
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_pic='-KPIC'
8569 lt_prog_compiler_static='-static'
8571 # icc used to be incompatible with GCC.
8572 # ICC 10 doesn't accept -KPIC any more.
8573 icc* | ifort*)
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_pic='-fPIC'
8576 lt_prog_compiler_static='-static'
8578 # Lahey Fortran 8.1.
8579 lf95*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='--shared'
8582 lt_prog_compiler_static='--static'
8584 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8585 # Portland Group compilers (*not* the Pentium gcc compiler,
8586 # which looks to be a dead project)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-fpic'
8589 lt_prog_compiler_static='-Bstatic'
8591 ccc*)
8592 lt_prog_compiler_wl='-Wl,'
8593 # All Alpha code is PIC.
8594 lt_prog_compiler_static='-non_shared'
8596 xl* | bgxl* | bgf* | mpixl*)
8597 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-qpic'
8600 lt_prog_compiler_static='-qstaticlink'
8603 case `$CC -V 2>&1 | sed 5q` in
8604 *Sun\ F* | *Sun*Fortran*)
8605 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 lt_prog_compiler_wl=''
8610 *Sun\ C*)
8611 # Sun C 5.9
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_wl='-Wl,'
8616 esac
8618 esac
8621 newsos6)
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-Bstatic'
8626 *nto* | *qnx*)
8627 # QNX uses GNU C++, but need to define -shared option too, otherwise
8628 # it will coredump.
8629 lt_prog_compiler_pic='-fPIC -shared'
8632 osf3* | osf4* | osf5*)
8633 lt_prog_compiler_wl='-Wl,'
8634 # All OSF/1 code is PIC.
8635 lt_prog_compiler_static='-non_shared'
8638 rdos*)
8639 lt_prog_compiler_static='-non_shared'
8642 solaris*)
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 case $cc_basename in
8646 f77* | f90* | f95*)
8647 lt_prog_compiler_wl='-Qoption ld ';;
8649 lt_prog_compiler_wl='-Wl,';;
8650 esac
8653 sunos4*)
8654 lt_prog_compiler_wl='-Qoption ld '
8655 lt_prog_compiler_pic='-PIC'
8656 lt_prog_compiler_static='-Bstatic'
8659 sysv4 | sysv4.2uw2* | sysv4.3*)
8660 lt_prog_compiler_wl='-Wl,'
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8665 sysv4*MP*)
8666 if test -d /usr/nec ;then
8667 lt_prog_compiler_pic='-Kconform_pic'
8668 lt_prog_compiler_static='-Bstatic'
8672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8678 unicos*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_can_build_shared=no
8683 uts4*)
8684 lt_prog_compiler_pic='-pic'
8685 lt_prog_compiler_static='-Bstatic'
8689 lt_prog_compiler_can_build_shared=no
8691 esac
8694 case $host_os in
8695 # For platforms which do not support PIC, -DPIC is meaningless:
8696 *djgpp*)
8697 lt_prog_compiler_pic=
8700 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8702 esac
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8704 $as_echo "$lt_prog_compiler_pic" >&6; }
8712 # Check to make sure the PIC flag actually works.
8714 if test -n "$lt_prog_compiler_pic"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8716 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8717 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 lt_cv_prog_compiler_pic_works=no
8721 ac_outfile=conftest.$ac_objext
8722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8723 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8724 # Insert the option either (1) after the last *FLAGS variable, or
8725 # (2) before a word containing "conftest.", or (3) at the end.
8726 # Note that $ac_compile itself does not contain backslashes and begins
8727 # with a dollar sign (not a hyphen), so the echo should work correctly.
8728 # The option is referenced via a variable to avoid confusing sed.
8729 lt_compile=`echo "$ac_compile" | $SED \
8730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8732 -e 's:$: $lt_compiler_flag:'`
8733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8734 (eval "$lt_compile" 2>conftest.err)
8735 ac_status=$?
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 if (exit $ac_status) && test -s "$ac_outfile"; then
8739 # The compiler can only warn and ignore the option if not recognized
8740 # So say no if there are warnings other than the usual output.
8741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8744 lt_cv_prog_compiler_pic_works=yes
8747 $RM conftest*
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8751 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8753 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8754 case $lt_prog_compiler_pic in
8755 "" | " "*) ;;
8756 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8757 esac
8758 else
8759 lt_prog_compiler_pic=
8760 lt_prog_compiler_can_build_shared=no
8771 # Check to make sure the static flag actually works.
8773 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8776 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 lt_cv_prog_compiler_static_works=no
8780 save_LDFLAGS="$LDFLAGS"
8781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8784 # The linker can only warn and ignore the option if not recognized
8785 # So say no if there are warnings
8786 if test -s conftest.err; then
8787 # Append any errors to the config.log.
8788 cat conftest.err 1>&5
8789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791 if diff conftest.exp conftest.er2 >/dev/null; then
8792 lt_cv_prog_compiler_static_works=yes
8794 else
8795 lt_cv_prog_compiler_static_works=yes
8798 $RM -r conftest*
8799 LDFLAGS="$save_LDFLAGS"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8805 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8807 else
8808 lt_prog_compiler_static=
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 lt_cv_prog_compiler_c_o=no
8823 $RM -r conftest 2>/dev/null
8824 mkdir conftest
8825 cd conftest
8826 mkdir out
8827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829 lt_compiler_flag="-o out/conftest2.$ac_objext"
8830 # Insert the option either (1) after the last *FLAGS variable, or
8831 # (2) before a word containing "conftest.", or (3) at the end.
8832 # Note that $ac_compile itself does not contain backslashes and begins
8833 # with a dollar sign (not a hyphen), so the echo should work correctly.
8834 lt_compile=`echo "$ac_compile" | $SED \
8835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837 -e 's:$: $lt_compiler_flag:'`
8838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8839 (eval "$lt_compile" 2>out/conftest.err)
8840 ac_status=$?
8841 cat out/conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8844 then
8845 # The compiler can only warn and ignore the option if not recognized
8846 # So say no if there are warnings
8847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8850 lt_cv_prog_compiler_c_o=yes
8853 chmod u+w . 2>&5
8854 $RM conftest*
8855 # SGI C++ compiler will create directory out/ii_files/ for
8856 # template instantiation
8857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8858 $RM out/* && rmdir out
8859 cd ..
8860 $RM -r conftest
8861 $RM conftest*
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8865 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 lt_cv_prog_compiler_c_o=no
8878 $RM -r conftest 2>/dev/null
8879 mkdir conftest
8880 cd conftest
8881 mkdir out
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884 lt_compiler_flag="-o out/conftest2.$ac_objext"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894 (eval "$lt_compile" 2>out/conftest.err)
8895 ac_status=$?
8896 cat out/conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899 then
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_c_o=yes
8908 chmod u+w . 2>&5
8909 $RM conftest*
8910 # SGI C++ compiler will create directory out/ii_files/ for
8911 # template instantiation
8912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913 $RM out/* && rmdir out
8914 cd ..
8915 $RM -r conftest
8916 $RM conftest*
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8925 hard_links="nottested"
8926 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8927 # do not overwrite the value of need_locks provided by the user
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8929 $as_echo_n "checking if we can lock with hard links... " >&6; }
8930 hard_links=yes
8931 $RM conftest*
8932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8933 touch conftest.a
8934 ln conftest.a conftest.b 2>&5 || hard_links=no
8935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8937 $as_echo "$hard_links" >&6; }
8938 if test "$hard_links" = no; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8940 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8941 need_locks=warn
8943 else
8944 need_locks=no
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8955 runpath_var=
8956 allow_undefined_flag=
8957 always_export_symbols=no
8958 archive_cmds=
8959 archive_expsym_cmds=
8960 compiler_needs_object=no
8961 enable_shared_with_static_runtimes=no
8962 export_dynamic_flag_spec=
8963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8964 hardcode_automatic=no
8965 hardcode_direct=no
8966 hardcode_direct_absolute=no
8967 hardcode_libdir_flag_spec=
8968 hardcode_libdir_flag_spec_ld=
8969 hardcode_libdir_separator=
8970 hardcode_minus_L=no
8971 hardcode_shlibpath_var=unsupported
8972 inherit_rpath=no
8973 link_all_deplibs=unknown
8974 module_cmds=
8975 module_expsym_cmds=
8976 old_archive_from_new_cmds=
8977 old_archive_from_expsyms_cmds=
8978 thread_safe_flag_spec=
8979 whole_archive_flag_spec=
8980 # include_expsyms should be a list of space-separated symbols to be *always*
8981 # included in the symbol list
8982 include_expsyms=
8983 # exclude_expsyms can be an extended regexp of symbols to exclude
8984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8986 # as well as any symbol that contains `d'.
8987 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989 # platforms (ab)use it in PIC code, but their linkers get confused if
8990 # the symbol is explicitly referenced. Since portable code cannot
8991 # rely on this symbol name, it's probably fine to never include it in
8992 # preloaded symbol tables.
8993 # Exclude shared library initialization/finalization symbols.
8994 extract_expsyms_cmds=
8996 case $host_os in
8997 cygwin* | mingw* | pw32* | cegcc*)
8998 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8999 # When not using gcc, we currently assume that we are using
9000 # Microsoft Visual C++.
9001 if test "$GCC" != yes; then
9002 with_gnu_ld=no
9005 interix*)
9006 # we just hope/assume this is gcc and not c89 (= MSVC++)
9007 with_gnu_ld=yes
9009 openbsd*)
9010 with_gnu_ld=no
9012 esac
9014 ld_shlibs=yes
9016 # On some targets, GNU ld is compatible enough with the native linker
9017 # that we're better off using the native interface for both.
9018 lt_use_gnu_ld_interface=no
9019 if test "$with_gnu_ld" = yes; then
9020 case $host_os in
9021 aix*)
9022 # The AIX port of GNU ld has always aspired to compatibility
9023 # with the native linker. However, as the warning in the GNU ld
9024 # block says, versions before 2.19.5* couldn't really create working
9025 # shared libraries, regardless of the interface used.
9026 case `$LD -v 2>&1` in
9027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9029 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9031 lt_use_gnu_ld_interface=yes
9033 esac
9036 lt_use_gnu_ld_interface=yes
9038 esac
9041 if test "$lt_use_gnu_ld_interface" = yes; then
9042 # If archive_cmds runs LD, not CC, wlarc should be empty
9043 wlarc='${wl}'
9045 # Set some defaults for GNU ld with shared library support. These
9046 # are reset later if shared libraries are not supported. Putting them
9047 # here allows them to be overridden if necessary.
9048 runpath_var=LD_RUN_PATH
9049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050 export_dynamic_flag_spec='${wl}--export-dynamic'
9051 # ancient GNU ld didn't support --whole-archive et. al.
9052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9053 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9054 else
9055 whole_archive_flag_spec=
9057 supports_anon_versioning=no
9058 case `$LD -v 2>&1` in
9059 *GNU\ gold*) supports_anon_versioning=yes ;;
9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9063 *\ 2.11.*) ;; # other 2.11 versions
9064 *) supports_anon_versioning=yes ;;
9065 esac
9067 # See if GNU ld supports shared libraries.
9068 case $host_os in
9069 aix[3-9]*)
9070 # On AIX/PPC, the GNU linker is very broken
9071 if test "$host_cpu" != ia64; then
9072 ld_shlibs=no
9073 cat <<_LT_EOF 1>&2
9075 *** Warning: the GNU linker, at least up to release 2.19, is reported
9076 *** to be unable to reliably create shared libraries on AIX.
9077 *** Therefore, libtool is disabling shared libraries support. If you
9078 *** really care for shared libraries, you may want to install binutils
9079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9080 *** You will then need to restart the configuration process.
9082 _LT_EOF
9086 amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds=''
9093 m68k)
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9098 esac
9101 beos*)
9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9103 allow_undefined_flag=unsupported
9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9105 # support --undefined. This deserves some investigation. FIXME
9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 else
9108 ld_shlibs=no
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9114 # as there is no search path for DLLs.
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 export_dynamic_flag_spec='${wl}--export-all-symbols'
9117 allow_undefined_flag=unsupported
9118 always_export_symbols=no
9119 enable_shared_with_static_runtimes=yes
9120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9122 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124 # If the export-symbols file already is a .def file (1st line
9125 # is EXPORTS), use it as is; otherwise, prepend...
9126 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127 cp $export_symbols $output_objdir/$soname.def;
9128 else
9129 echo EXPORTS > $output_objdir/$soname.def;
9130 cat $export_symbols >> $output_objdir/$soname.def;
9132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133 else
9134 ld_shlibs=no
9138 haiku*)
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 link_all_deplibs=yes
9143 interix[3-9]*)
9144 hardcode_direct=no
9145 hardcode_shlibpath_var=no
9146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9147 export_dynamic_flag_spec='${wl}-E'
9148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9149 # Instead, shared libraries are loaded at an image base (0x10000000 by
9150 # default) and relocated if they conflict, which is a slow very memory
9151 # consuming and fragmenting process. To avoid this, we pick a random,
9152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9155 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'
9158 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9159 tmp_diet=no
9160 if test "$host_os" = linux-dietlibc; then
9161 case $cc_basename in
9162 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9163 esac
9165 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9166 && test "$tmp_diet" = no
9167 then
9168 tmp_addflag=' $pic_flag'
9169 tmp_sharedflag='-shared'
9170 case $cc_basename,$host_cpu in
9171 pgcc*) # Portland Group C compiler
9172 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'
9173 tmp_addflag=' $pic_flag'
9175 pgf77* | pgf90* | pgf95* | pgfortran*)
9176 # Portland Group f77 and f90 compilers
9177 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'
9178 tmp_addflag=' $pic_flag -Mnomain' ;;
9179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9180 tmp_addflag=' -i_dynamic' ;;
9181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9182 tmp_addflag=' -i_dynamic -nofor_main' ;;
9183 ifc* | ifort*) # Intel Fortran compiler
9184 tmp_addflag=' -nofor_main' ;;
9185 lf95*) # Lahey Fortran 8.1
9186 whole_archive_flag_spec=
9187 tmp_sharedflag='--shared' ;;
9188 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9189 tmp_sharedflag='-qmkshrobj'
9190 tmp_addflag= ;;
9191 nvcc*) # Cuda Compiler Driver 2.2
9192 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'
9193 compiler_needs_object=yes
9195 esac
9196 case `$CC -V 2>&1 | sed 5q` in
9197 *Sun\ C*) # Sun C 5.9
9198 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'
9199 compiler_needs_object=yes
9200 tmp_sharedflag='-G' ;;
9201 *Sun\ F*) # Sun Fortran 8.3
9202 tmp_sharedflag='-G' ;;
9203 esac
9204 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 if test "x$supports_anon_versioning" = xyes; then
9207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9209 echo "local: *; };" >> $output_objdir/$libname.ver~
9210 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9213 case $cc_basename in
9214 xlf* | bgf* | bgxlf* | mpixlf*)
9215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9216 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9217 hardcode_libdir_flag_spec=
9218 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9219 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9220 if test "x$supports_anon_versioning" = xyes; then
9221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9223 echo "local: *; };" >> $output_objdir/$libname.ver~
9224 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9227 esac
9228 else
9229 ld_shlibs=no
9233 netbsd*)
9234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9236 wlarc=
9237 else
9238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9243 solaris*)
9244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9245 ld_shlibs=no
9246 cat <<_LT_EOF 1>&2
9248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9249 *** create shared libraries on Solaris systems. Therefore, libtool
9250 *** is disabling shared libraries support. We urge you to upgrade GNU
9251 *** binutils to release 2.9.1 or newer. Another option is to modify
9252 *** your PATH or compiler configuration so that the native linker is
9253 *** used, and then restart.
9255 _LT_EOF
9256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9259 else
9260 ld_shlibs=no
9264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9265 case `$LD -v 2>&1` in
9266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9267 ld_shlibs=no
9268 cat <<_LT_EOF 1>&2
9270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9271 *** reliably create shared libraries on SCO systems. Therefore, libtool
9272 *** is disabling shared libraries support. We urge you to upgrade GNU
9273 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9274 *** your PATH or compiler configuration so that the native linker is
9275 *** used, and then restart.
9277 _LT_EOF
9280 # For security reasons, it is highly recommended that you always
9281 # use absolute paths for naming shared libraries, and exclude the
9282 # DT_RUNPATH tag from executables and libraries. But doing so
9283 # requires that you compile everything twice, which is a pain.
9284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288 else
9289 ld_shlibs=no
9292 esac
9295 sunos4*)
9296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 wlarc=
9298 hardcode_direct=yes
9299 hardcode_shlibpath_var=no
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9306 else
9307 ld_shlibs=no
9310 esac
9312 if test "$ld_shlibs" = no; then
9313 runpath_var=
9314 hardcode_libdir_flag_spec=
9315 export_dynamic_flag_spec=
9316 whole_archive_flag_spec=
9318 else
9319 # PORTME fill in a description of your system's linker (not GNU ld)
9320 case $host_os in
9321 aix3*)
9322 allow_undefined_flag=unsupported
9323 always_export_symbols=yes
9324 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'
9325 # Note: this linker hardcodes the directories in LIBPATH if there
9326 # are no directories specified by -L.
9327 hardcode_minus_L=yes
9328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9329 # Neither direct hardcoding nor static linking is supported with a
9330 # broken collect2.
9331 hardcode_direct=unsupported
9335 aix[4-9]*)
9336 if test "$host_cpu" = ia64; then
9337 # On IA64, the linker does run time linking by default, so we don't
9338 # have to do anything special.
9339 aix_use_runtimelinking=no
9340 exp_sym_flag='-Bexport'
9341 no_entry_flag=""
9342 else
9343 # If we're using GNU nm, then we don't want the "-C" option.
9344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9345 # Also, AIX nm treats weak defined symbols like other global
9346 # defined symbols, whereas GNU nm marks them as "W".
9347 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9348 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'
9349 else
9350 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9352 aix_use_runtimelinking=no
9354 # Test if we are trying to use run time linking or normal
9355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9356 # need to do runtime linking.
9357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9358 for ld_flag in $LDFLAGS; do
9359 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9360 aix_use_runtimelinking=yes
9361 break
9363 done
9365 esac
9367 exp_sym_flag='-bexport'
9368 no_entry_flag='-bnoentry'
9371 # When large executables or shared objects are built, AIX ld can
9372 # have problems creating the table of contents. If linking a library
9373 # or program results in "error TOC overflow" add -mminimal-toc to
9374 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9375 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9377 archive_cmds=''
9378 hardcode_direct=yes
9379 hardcode_direct_absolute=yes
9380 hardcode_libdir_separator=':'
9381 link_all_deplibs=yes
9382 file_list_spec='${wl}-f,'
9384 if test "$GCC" = yes; then
9385 case $host_os in aix4.[012]|aix4.[012].*)
9386 # We only want to do this on AIX 4.2 and lower, the check
9387 # below for broken collect2 doesn't work under 4.3+
9388 collect2name=`${CC} -print-prog-name=collect2`
9389 if test -f "$collect2name" &&
9390 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9391 then
9392 # We have reworked collect2
9394 else
9395 # We have old collect2
9396 hardcode_direct=unsupported
9397 # It fails to find uninstalled libraries when the uninstalled
9398 # path is not listed in the libpath. Setting hardcode_minus_L
9399 # to unsupported forces relinking
9400 hardcode_minus_L=yes
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_libdir_separator=
9405 esac
9406 shared_flag='-shared'
9407 if test "$aix_use_runtimelinking" = yes; then
9408 shared_flag="$shared_flag "'${wl}-G'
9410 else
9411 # not using gcc
9412 if test "$host_cpu" = ia64; then
9413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9414 # chokes on -Wl,-G. The following line is correct:
9415 shared_flag='-G'
9416 else
9417 if test "$aix_use_runtimelinking" = yes; then
9418 shared_flag='${wl}-G'
9419 else
9420 shared_flag='${wl}-bM:SRE'
9425 export_dynamic_flag_spec='${wl}-bexpall'
9426 # It seems that -bexpall does not export symbols beginning with
9427 # underscore (_), so it is better to generate a list of symbols to export.
9428 always_export_symbols=yes
9429 if test "$aix_use_runtimelinking" = yes; then
9430 # Warning - without using the other runtime loading flags (-brtl),
9431 # -berok will link without error, but may produce a broken library.
9432 allow_undefined_flag='-berok'
9433 # Determine the default libpath from the value encoded in an
9434 # empty executable.
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9439 main ()
9443 return 0;
9445 _ACEOF
9446 if ac_fn_c_try_link "$LINENO"; then :
9448 lt_aix_libpath_sed='
9449 /Import File Strings/,/^$/ {
9450 /^0/ {
9451 s/^0 *\(.*\)$/\1/
9455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456 # Check for a 64-bit object if we didn't find anything.
9457 if test -z "$aix_libpath"; then
9458 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 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"
9467 else
9468 if test "$host_cpu" = ia64; then
9469 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9470 allow_undefined_flag="-z nodefs"
9471 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"
9472 else
9473 # Determine the default libpath from the value encoded in an
9474 # empty executable.
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9479 main ()
9483 return 0;
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9488 lt_aix_libpath_sed='
9489 /Import File Strings/,/^$/ {
9490 /^0/ {
9491 s/^0 *\(.*\)$/\1/
9495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 # Check for a 64-bit object if we didn't find anything.
9497 if test -z "$aix_libpath"; then
9498 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9506 # Warning - without using the other run time loading flags,
9507 # -berok will link without error, but may produce a broken library.
9508 no_undefined_flag=' ${wl}-bernotok'
9509 allow_undefined_flag=' ${wl}-berok'
9510 if test "$with_gnu_ld" = yes; then
9511 # We only use this code for GNU lds that support --whole-archive.
9512 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9513 else
9514 # Exported symbols can be pulled into shared objects from archives
9515 whole_archive_flag_spec='$convenience'
9517 archive_cmds_need_lc=yes
9518 # This is similar to how AIX traditionally builds its shared libraries.
9519 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'
9524 amigaos*)
9525 case $host_cpu in
9526 powerpc)
9527 # see comment about AmigaOS4 .so support
9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 archive_expsym_cmds=''
9531 m68k)
9532 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)'
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_minus_L=yes
9536 esac
9539 bsdi[45]*)
9540 export_dynamic_flag_spec=-rdynamic
9543 cygwin* | mingw* | pw32* | cegcc*)
9544 # When not using gcc, we currently assume that we are using
9545 # Microsoft Visual C++.
9546 # hardcode_libdir_flag_spec is actually meaningless, as there is
9547 # no search path for DLLs.
9548 hardcode_libdir_flag_spec=' '
9549 allow_undefined_flag=unsupported
9550 # Tell ltmain to make .lib files, not .a files.
9551 libext=lib
9552 # Tell ltmain to make .dll files, not .so files.
9553 shrext_cmds=".dll"
9554 # FIXME: Setting linknames here is a bad hack.
9555 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9556 # The linker will automatically build a .lib file if we build a DLL.
9557 old_archive_from_new_cmds='true'
9558 # FIXME: Should let the user specify the lib program.
9559 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9560 fix_srcfile_path='`cygpath -w "$srcfile"`'
9561 enable_shared_with_static_runtimes=yes
9564 darwin* | rhapsody*)
9567 archive_cmds_need_lc=no
9568 hardcode_direct=no
9569 hardcode_automatic=yes
9570 hardcode_shlibpath_var=unsupported
9571 if test "$lt_cv_ld_force_load" = "yes"; then
9572 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\"`'
9573 else
9574 whole_archive_flag_spec=''
9576 link_all_deplibs=yes
9577 allow_undefined_flag="$_lt_dar_allow_undefined"
9578 case $cc_basename in
9579 ifort*) _lt_dar_can_shared=yes ;;
9580 *) _lt_dar_can_shared=$GCC ;;
9581 esac
9582 if test "$_lt_dar_can_shared" = "yes"; then
9583 output_verbose_link_cmd=func_echo_all
9584 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9585 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9586 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}"
9587 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}"
9589 else
9590 ld_shlibs=no
9595 dgux*)
9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_shlibpath_var=no
9601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9602 # support. Future versions do this automatically, but an explicit c++rt0.o
9603 # does not break anything, and helps significantly (at the cost of a little
9604 # extra space).
9605 freebsd2.2*)
9606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9612 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9613 freebsd2.*)
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_direct=yes
9616 hardcode_minus_L=yes
9617 hardcode_shlibpath_var=no
9620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9621 freebsd* | dragonfly*)
9622 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9623 hardcode_libdir_flag_spec='-R$libdir'
9624 hardcode_direct=yes
9625 hardcode_shlibpath_var=no
9628 hpux9*)
9629 if test "$GCC" = yes; then
9630 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'
9631 else
9632 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'
9634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9635 hardcode_libdir_separator=:
9636 hardcode_direct=yes
9638 # hardcode_minus_L: Not really in the search PATH,
9639 # but as the default location of the library.
9640 hardcode_minus_L=yes
9641 export_dynamic_flag_spec='${wl}-E'
9644 hpux10*)
9645 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9646 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647 else
9648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9650 if test "$with_gnu_ld" = no; then
9651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652 hardcode_libdir_flag_spec_ld='+b $libdir'
9653 hardcode_libdir_separator=:
9654 hardcode_direct=yes
9655 hardcode_direct_absolute=yes
9656 export_dynamic_flag_spec='${wl}-E'
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L=yes
9663 hpux11*)
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9665 case $host_cpu in
9666 hppa*64*)
9667 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 ia64*)
9670 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9675 esac
9676 else
9677 case $host_cpu in
9678 hppa*64*)
9679 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 ia64*)
9682 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 # Older versions of the 11.00 compiler do not understand -b yet
9687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9689 $as_echo_n "checking if $CC understands -b... " >&6; }
9690 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 lt_cv_prog_compiler__b=no
9694 save_LDFLAGS="$LDFLAGS"
9695 LDFLAGS="$LDFLAGS -b"
9696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9698 # The linker can only warn and ignore the option if not recognized
9699 # So say no if there are warnings
9700 if test -s conftest.err; then
9701 # Append any errors to the config.log.
9702 cat conftest.err 1>&5
9703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler__b=yes
9708 else
9709 lt_cv_prog_compiler__b=yes
9712 $RM -r conftest*
9713 LDFLAGS="$save_LDFLAGS"
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9717 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9719 if test x"$lt_cv_prog_compiler__b" = xyes; then
9720 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9726 esac
9728 if test "$with_gnu_ld" = no; then
9729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730 hardcode_libdir_separator=:
9732 case $host_cpu in
9733 hppa*64*|ia64*)
9734 hardcode_direct=no
9735 hardcode_shlibpath_var=no
9738 hardcode_direct=yes
9739 hardcode_direct_absolute=yes
9740 export_dynamic_flag_spec='${wl}-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L=yes
9746 esac
9750 irix5* | irix6* | nonstopux*)
9751 if test "$GCC" = yes; then
9752 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'
9753 # Try to use the -exported_symbol ld option, if it does not
9754 # work, assume that -exports_file does not work either and
9755 # implicitly export all symbols.
9756 save_LDFLAGS="$LDFLAGS"
9757 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 int foo(void) {}
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 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'
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 LDFLAGS="$save_LDFLAGS"
9769 else
9770 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'
9771 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'
9773 archive_cmds_need_lc='no'
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 hardcode_libdir_separator=:
9776 inherit_rpath=yes
9777 link_all_deplibs=yes
9780 netbsd*)
9781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9783 else
9784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9786 hardcode_libdir_flag_spec='-R$libdir'
9787 hardcode_direct=yes
9788 hardcode_shlibpath_var=no
9791 newsos6)
9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_direct=yes
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796 hardcode_shlibpath_var=no
9799 *nto* | *qnx*)
9802 openbsd*)
9803 if test -f /usr/libexec/ld.so; then
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9806 hardcode_direct_absolute=yes
9807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9811 export_dynamic_flag_spec='${wl}-E'
9812 else
9813 case $host_os in
9814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_libdir_flag_spec='-R$libdir'
9819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9822 esac
9824 else
9825 ld_shlibs=no
9829 os2*)
9830 hardcode_libdir_flag_spec='-L$libdir'
9831 hardcode_minus_L=yes
9832 allow_undefined_flag=unsupported
9833 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'
9834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9837 osf3*)
9838 if test "$GCC" = yes; then
9839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9840 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'
9841 else
9842 allow_undefined_flag=' -expect_unresolved \*'
9843 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'
9845 archive_cmds_need_lc='no'
9846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9847 hardcode_libdir_separator=:
9850 osf4* | osf5*) # as osf3* with the addition of -msym flag
9851 if test "$GCC" = yes; then
9852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9853 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'
9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9855 else
9856 allow_undefined_flag=' -expect_unresolved \*'
9857 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'
9858 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~
9859 $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'
9861 # Both c and cxx compiler support -rpath directly
9862 hardcode_libdir_flag_spec='-rpath $libdir'
9864 archive_cmds_need_lc='no'
9865 hardcode_libdir_separator=:
9868 solaris*)
9869 no_undefined_flag=' -z defs'
9870 if test "$GCC" = yes; then
9871 wlarc='${wl}'
9872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9875 else
9876 case `$CC -V 2>&1` in
9877 *"Compilers 5.0"*)
9878 wlarc=''
9879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9884 wlarc='${wl}'
9885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9889 esac
9891 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_shlibpath_var=no
9893 case $host_os in
9894 solaris2.[0-5] | solaris2.[0-5].*) ;;
9896 # The compiler driver will combine and reorder linker options,
9897 # but understands `-z linker_flag'. GCC discards it without `$wl',
9898 # but is careful enough not to reorder.
9899 # Supported since Solaris 2.6 (maybe 2.5.1?)
9900 if test "$GCC" = yes; then
9901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9902 else
9903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9906 esac
9907 link_all_deplibs=yes
9910 sunos4*)
9911 if test "x$host_vendor" = xsequent; then
9912 # Use $CC to link under sequent, because it throws in some extra .o
9913 # files that make .init and .fini sections work.
9914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9915 else
9916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_libdir_flag_spec='-L$libdir'
9919 hardcode_direct=yes
9920 hardcode_minus_L=yes
9921 hardcode_shlibpath_var=no
9924 sysv4)
9925 case $host_vendor in
9926 sni)
9927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_direct=yes # is this really true???
9930 siemens)
9931 ## LD is ld it makes a PLAMLIB
9932 ## CC just makes a GrossModule.
9933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9934 reload_cmds='$CC -r -o $output$reload_objs'
9935 hardcode_direct=no
9937 motorola)
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9941 esac
9942 runpath_var='LD_RUN_PATH'
9943 hardcode_shlibpath_var=no
9946 sysv4.3*)
9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948 hardcode_shlibpath_var=no
9949 export_dynamic_flag_spec='-Bexport'
9952 sysv4*MP*)
9953 if test -d /usr/nec; then
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_shlibpath_var=no
9956 runpath_var=LD_RUN_PATH
9957 hardcode_runpath_var=yes
9958 ld_shlibs=yes
9962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9963 no_undefined_flag='${wl}-z,text'
9964 archive_cmds_need_lc=no
9965 hardcode_shlibpath_var=no
9966 runpath_var='LD_RUN_PATH'
9968 if test "$GCC" = yes; then
9969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 else
9972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 sysv5* | sco3.2v5* | sco5v6*)
9978 # Note: We can NOT use -z defs as we might desire, because we do not
9979 # link with -lc, and that would cause any symbols used from libc to
9980 # always be unresolved, which means just about no library would
9981 # ever link correctly. If we're not using GNU ld we use -z text
9982 # though, which does catch some bad symbols but isn't as heavy-handed
9983 # as -z defs.
9984 no_undefined_flag='${wl}-z,text'
9985 allow_undefined_flag='${wl}-z,nodefs'
9986 archive_cmds_need_lc=no
9987 hardcode_shlibpath_var=no
9988 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9989 hardcode_libdir_separator=':'
9990 link_all_deplibs=yes
9991 export_dynamic_flag_spec='${wl}-Bexport'
9992 runpath_var='LD_RUN_PATH'
9994 if test "$GCC" = yes; then
9995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 else
9998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 uts4*)
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_libdir_flag_spec='-L$libdir'
10006 hardcode_shlibpath_var=no
10010 ld_shlibs=no
10012 esac
10014 if test x$host_vendor = xsni; then
10015 case $host in
10016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10017 export_dynamic_flag_spec='${wl}-Blargedynsym'
10019 esac
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10024 $as_echo "$ld_shlibs" >&6; }
10025 test "$ld_shlibs" = no && can_build_shared=no
10027 with_gnu_ld=$with_gnu_ld
10044 # Do we need to explicitly link libc?
10046 case "x$archive_cmds_need_lc" in
10047 x|xyes)
10048 # Assume -lc should be added
10049 archive_cmds_need_lc=yes
10051 if test "$enable_shared" = yes && test "$GCC" = yes; then
10052 case $archive_cmds in
10053 *'~'*)
10054 # FIXME: we may have to deal with multi-command sequences.
10056 '$CC '*)
10057 # Test whether the compiler implicitly links with -lc since on some
10058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10059 # to ld, don't add -lc before -lgcc.
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10061 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10062 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 $RM conftest*
10066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10069 (eval $ac_compile) 2>&5
10070 ac_status=$?
10071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10072 test $ac_status = 0; } 2>conftest.err; then
10073 soname=conftest
10074 lib=conftest
10075 libobjs=conftest.$ac_objext
10076 deplibs=
10077 wl=$lt_prog_compiler_wl
10078 pic_flag=$lt_prog_compiler_pic
10079 compiler_flags=-v
10080 linker_flags=-v
10081 verstring=
10082 output_objdir=.
10083 libname=conftest
10084 lt_save_allow_undefined_flag=$allow_undefined_flag
10085 allow_undefined_flag=
10086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10087 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10088 ac_status=$?
10089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10090 test $ac_status = 0; }
10091 then
10092 lt_cv_archive_cmds_need_lc=no
10093 else
10094 lt_cv_archive_cmds_need_lc=yes
10096 allow_undefined_flag=$lt_save_allow_undefined_flag
10097 else
10098 cat conftest.err 1>&5
10100 $RM conftest*
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10104 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10105 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10107 esac
10110 esac
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10269 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10271 if test "$GCC" = yes; then
10272 case $host_os in
10273 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10274 *) lt_awk_arg="/^libraries:/" ;;
10275 esac
10276 case $host_os in
10277 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10278 *) lt_sed_strip_eq="s,=/,/,g" ;;
10279 esac
10280 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10281 case $lt_search_path_spec in
10282 *\;*)
10283 # if the path contains ";" then we assume it to be the separator
10284 # otherwise default to the standard path separator (i.e. ":") - it is
10285 # assumed that no part of a normal pathname contains ";" but that should
10286 # okay in the real world where ";" in dirpaths is itself problematic.
10287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10290 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10292 esac
10293 # Ok, now we have the path, separated by spaces, we can step through it
10294 # and add multilib dir if necessary.
10295 lt_tmp_lt_search_path_spec=
10296 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10297 for lt_sys_path in $lt_search_path_spec; do
10298 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10300 else
10301 test -d "$lt_sys_path" && \
10302 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10304 done
10305 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10306 BEGIN {RS=" "; FS="/|\n";} {
10307 lt_foo="";
10308 lt_count=0;
10309 for (lt_i = NF; lt_i > 0; lt_i--) {
10310 if ($lt_i != "" && $lt_i != ".") {
10311 if ($lt_i == "..") {
10312 lt_count++;
10313 } else {
10314 if (lt_count == 0) {
10315 lt_foo="/" $lt_i lt_foo;
10316 } else {
10317 lt_count--;
10322 if (lt_foo != "") { lt_freq[lt_foo]++; }
10323 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10325 # AWK program above erroneously prepends '/' to C:/dos/paths
10326 # for these hosts.
10327 case $host_os in
10328 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10329 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10330 esac
10331 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10332 else
10333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10335 library_names_spec=
10336 libname_spec='lib$name'
10337 soname_spec=
10338 shrext_cmds=".so"
10339 postinstall_cmds=
10340 postuninstall_cmds=
10341 finish_cmds=
10342 finish_eval=
10343 shlibpath_var=
10344 shlibpath_overrides_runpath=unknown
10345 version_type=none
10346 dynamic_linker="$host_os ld.so"
10347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10348 need_lib_prefix=unknown
10349 hardcode_into_libs=no
10351 # when you set need_version to no, make sure it does not cause -set_version
10352 # flags to be left without arguments
10353 need_version=unknown
10355 case $host_os in
10356 aix3*)
10357 version_type=linux
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10359 shlibpath_var=LIBPATH
10361 # AIX 3 has no versioning support, so we append a major version to the name.
10362 soname_spec='${libname}${release}${shared_ext}$major'
10365 aix[4-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 hardcode_into_libs=yes
10370 if test "$host_cpu" = ia64; then
10371 # AIX 5 supports IA64
10372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 else
10375 # With GCC up to 2.95.x, collect2 would create an import file
10376 # for dependence libraries. The import file would start with
10377 # the line `#! .'. This would cause the generated library to
10378 # depend on `.', always an invalid library. This was fixed in
10379 # development snapshots of GCC prior to 3.0.
10380 case $host_os in
10381 aix4 | aix4.[01] | aix4.[01].*)
10382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10383 echo ' yes '
10384 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10386 else
10387 can_build_shared=no
10390 esac
10391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10392 # soname into executable. Probably we can add versioning support to
10393 # collect2, so additional links can be useful in future.
10394 if test "$aix_use_runtimelinking" = yes; then
10395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10396 # instead of lib<name>.a to let people know that these are not
10397 # typical AIX shared libraries.
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 else
10400 # We preserve .a as extension for shared libraries through AIX4.2
10401 # and later when we are not doing run time linking.
10402 library_names_spec='${libname}${release}.a $libname.a'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LIBPATH
10409 amigaos*)
10410 case $host_cpu in
10411 powerpc)
10412 # Since July 2007 AmigaOS4 officially supports .so libraries.
10413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 m68k)
10417 library_names_spec='$libname.ixlibrary $libname.a'
10418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10419 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'
10421 esac
10424 beos*)
10425 library_names_spec='${libname}${shared_ext}'
10426 dynamic_linker="$host_os ld.so"
10427 shlibpath_var=LIBRARY_PATH
10430 bsdi[45]*)
10431 version_type=linux
10432 need_version=no
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10439 # the default ld.so.conf also contains /usr/contrib/lib and
10440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10441 # libtool to hard-code these into programs
10444 cygwin* | mingw* | pw32* | cegcc*)
10445 version_type=windows
10446 shrext_cmds=".dll"
10447 need_version=no
10448 need_lib_prefix=no
10450 case $GCC,$host_os in
10451 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10452 library_names_spec='$libname.dll.a'
10453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10454 postinstall_cmds='base_file=`basename \${file}`~
10455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10456 dldir=$destdir/`dirname \$dlpath`~
10457 test -d \$dldir || mkdir -p \$dldir~
10458 $install_prog $dir/$dlname \$dldir/$dlname~
10459 chmod a+x \$dldir/$dlname~
10460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10464 dlpath=$dir/\$dldll~
10465 $RM \$dlpath'
10466 shlibpath_overrides_runpath=yes
10468 case $host_os in
10469 cygwin*)
10470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10475 mingw* | cegcc*)
10476 # MinGW DLLs use traditional 'lib' prefix
10477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10479 pw32*)
10480 # pw32 DLLs use 'pw' prefix rather than 'lib'
10481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10483 esac
10487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10489 esac
10490 dynamic_linker='Win32 ld.exe'
10491 # FIXME: first we should search . and the directory the executable is in
10492 shlibpath_var=PATH
10495 darwin* | rhapsody*)
10496 dynamic_linker="$host_os dyld"
10497 version_type=darwin
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10501 soname_spec='${libname}${release}${major}$shared_ext'
10502 shlibpath_overrides_runpath=yes
10503 shlibpath_var=DYLD_LIBRARY_PATH
10504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10510 dgux*)
10511 version_type=linux
10512 need_lib_prefix=no
10513 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LD_LIBRARY_PATH
10519 freebsd* | dragonfly*)
10520 # DragonFly does not have aout. When/if they implement a new
10521 # versioning mechanism, adjust this.
10522 if test -x /usr/bin/objformat; then
10523 objformat=`/usr/bin/objformat`
10524 else
10525 case $host_os in
10526 freebsd[23].*) objformat=aout ;;
10527 *) objformat=elf ;;
10528 esac
10530 version_type=freebsd-$objformat
10531 case $version_type in
10532 freebsd-elf*)
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10534 need_version=no
10535 need_lib_prefix=no
10537 freebsd-*)
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10539 need_version=yes
10541 esac
10542 shlibpath_var=LD_LIBRARY_PATH
10543 case $host_os in
10544 freebsd2.*)
10545 shlibpath_overrides_runpath=yes
10547 freebsd3.[01]* | freebsdelf3.[01]*)
10548 shlibpath_overrides_runpath=yes
10549 hardcode_into_libs=yes
10551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10556 *) # from 4.6 on, and DragonFly
10557 shlibpath_overrides_runpath=yes
10558 hardcode_into_libs=yes
10560 esac
10563 gnu*)
10564 version_type=linux
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 hardcode_into_libs=yes
10573 haiku*)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10581 shlibpath_overrides_runpath=yes
10582 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10583 hardcode_into_libs=yes
10586 hpux9* | hpux10* | hpux11*)
10587 # Give a soname corresponding to the major version so that dld.sl refuses to
10588 # link against other versions.
10589 version_type=sunos
10590 need_lib_prefix=no
10591 need_version=no
10592 case $host_cpu in
10593 ia64*)
10594 shrext_cmds='.so'
10595 hardcode_into_libs=yes
10596 dynamic_linker="$host_os dld.so"
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 if test "X$HPUX_IA64_MODE" = X32; then
10602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10603 else
10604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10608 hppa*64*)
10609 shrext_cmds='.sl'
10610 hardcode_into_libs=yes
10611 dynamic_linker="$host_os dld.sl"
10612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10620 shrext_cmds='.sl'
10621 dynamic_linker="$host_os dld.sl"
10622 shlibpath_var=SHLIB_PATH
10623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10627 esac
10628 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10629 postinstall_cmds='chmod 555 $lib'
10630 # or fails outright, so override atomically:
10631 install_override_mode=555
10634 interix[3-9]*)
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=no
10643 hardcode_into_libs=yes
10646 irix5* | irix6* | nonstopux*)
10647 case $host_os in
10648 nonstopux*) version_type=nonstopux ;;
10650 if test "$lt_cv_prog_gnu_ld" = yes; then
10651 version_type=linux
10652 else
10653 version_type=irix
10654 fi ;;
10655 esac
10656 need_lib_prefix=no
10657 need_version=no
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10660 case $host_os in
10661 irix5* | nonstopux*)
10662 libsuff= shlibsuff=
10665 case $LD in # libtool.m4 will add one of these switches to LD
10666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10667 libsuff= shlibsuff= libmagic=32-bit;;
10668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10669 libsuff=32 shlibsuff=N32 libmagic=N32;;
10670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10672 *) libsuff= shlibsuff= libmagic=never-match;;
10673 esac
10675 esac
10676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10677 shlibpath_overrides_runpath=no
10678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10680 hardcode_into_libs=yes
10683 # No shared lib support for Linux oldld, aout, or coff.
10684 linux*oldld* | linux*aout* | linux*coff*)
10685 dynamic_linker=no
10688 # This must be Linux ELF.
10689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10699 # Some binutils ld are patched to set DT_RUNPATH
10700 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 lt_cv_shlibpath_overrides_runpath=no
10704 save_LDFLAGS=$LDFLAGS
10705 save_libdir=$libdir
10706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10712 main ()
10716 return 0;
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10721 lt_cv_shlibpath_overrides_runpath=yes
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LDFLAGS=$save_LDFLAGS
10727 libdir=$save_libdir
10731 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10733 # This implies no fast_install, which is unacceptable.
10734 # Some rework will be needed to allow for fast_install
10735 # before this can be enabled.
10736 hardcode_into_libs=yes
10738 # Append ld.so.conf contents to the search path
10739 if test -f /etc/ld.so.conf; then
10740 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' ' '`
10741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10744 # We used to test for /lib/ld.so.1 and disable shared libraries on
10745 # powerpc, because MkLinux only supported shared libraries with the
10746 # GNU dynamic linker. Since this was broken with cross compilers,
10747 # most powerpc-linux boxes support dynamic linking these days and
10748 # people can always --disable-shared, the test was removed, and we
10749 # assume the GNU/Linux dynamic linker is in use.
10750 dynamic_linker='GNU/Linux ld.so'
10753 netbsd*)
10754 version_type=sunos
10755 need_lib_prefix=no
10756 need_version=no
10757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10760 dynamic_linker='NetBSD (a.out) ld.so'
10761 else
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='NetBSD ld.elf_so'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10771 newsos6)
10772 version_type=linux
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes
10778 *nto* | *qnx*)
10779 version_type=qnx
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=no
10786 hardcode_into_libs=yes
10787 dynamic_linker='ldqnx.so'
10790 openbsd*)
10791 version_type=sunos
10792 sys_lib_dlsearch_path_spec="/usr/lib"
10793 need_lib_prefix=no
10794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10795 case $host_os in
10796 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10797 *) need_version=no ;;
10798 esac
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10803 case $host_os in
10804 openbsd2.[89] | openbsd2.[89].*)
10805 shlibpath_overrides_runpath=no
10808 shlibpath_overrides_runpath=yes
10810 esac
10811 else
10812 shlibpath_overrides_runpath=yes
10816 os2*)
10817 libname_spec='$name'
10818 shrext_cmds=".dll"
10819 need_lib_prefix=no
10820 library_names_spec='$libname${shared_ext} $libname.a'
10821 dynamic_linker='OS/2 ld.exe'
10822 shlibpath_var=LIBPATH
10825 osf3* | osf4* | osf5*)
10826 version_type=osf
10827 need_lib_prefix=no
10828 need_version=no
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10836 rdos*)
10837 dynamic_linker=no
10840 solaris*)
10841 version_type=linux
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10849 # ldd complains unless libraries are executable
10850 postinstall_cmds='chmod +x $lib'
10853 sunos4*)
10854 version_type=sunos
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath=yes
10859 if test "$with_gnu_ld" = yes; then
10860 need_lib_prefix=no
10862 need_version=yes
10865 sysv4 | sysv4.3*)
10866 version_type=linux
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 case $host_vendor in
10871 sni)
10872 shlibpath_overrides_runpath=no
10873 need_lib_prefix=no
10874 runpath_var=LD_RUN_PATH
10876 siemens)
10877 need_lib_prefix=no
10879 motorola)
10880 need_lib_prefix=no
10881 need_version=no
10882 shlibpath_overrides_runpath=no
10883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10885 esac
10888 sysv4*MP*)
10889 if test -d /usr/nec ;then
10890 version_type=linux
10891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10892 soname_spec='$libname${shared_ext}.$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10898 version_type=freebsd-elf
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes
10905 hardcode_into_libs=yes
10906 if test "$with_gnu_ld" = yes; then
10907 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10908 else
10909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10910 case $host_os in
10911 sco3.2v5*)
10912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10914 esac
10916 sys_lib_dlsearch_path_spec='/usr/lib'
10919 tpf*)
10920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10921 version_type=linux
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10930 uts4*)
10931 version_type=linux
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10938 dynamic_linker=no
10940 esac
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10942 $as_echo "$dynamic_linker" >&6; }
10943 test "$dynamic_linker" = no && can_build_shared=no
10945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10946 if test "$GCC" = yes; then
10947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10950 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10953 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10954 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11049 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11050 hardcode_action=
11051 if test -n "$hardcode_libdir_flag_spec" ||
11052 test -n "$runpath_var" ||
11053 test "X$hardcode_automatic" = "Xyes" ; then
11055 # We can hardcode non-existent directories.
11056 if test "$hardcode_direct" != no &&
11057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11058 # have to relink, otherwise we might link with an installed library
11059 # when we should be linking with a yet-to-be-installed one
11060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11061 test "$hardcode_minus_L" != no; then
11062 # Linking always hardcodes the temporary library directory.
11063 hardcode_action=relink
11064 else
11065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11066 hardcode_action=immediate
11068 else
11069 # We cannot hardcode anything, or else we can only hardcode existing
11070 # directories.
11071 hardcode_action=unsupported
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11074 $as_echo "$hardcode_action" >&6; }
11076 if test "$hardcode_action" = relink ||
11077 test "$inherit_rpath" = yes; then
11078 # Fast installation is not supported
11079 enable_fast_install=no
11080 elif test "$shlibpath_overrides_runpath" = yes ||
11081 test "$enable_shared" = no; then
11082 # Fast installation is not necessary
11083 enable_fast_install=needless
11091 if test "x$enable_dlopen" != xyes; then
11092 enable_dlopen=unknown
11093 enable_dlopen_self=unknown
11094 enable_dlopen_self_static=unknown
11095 else
11096 lt_cv_dlopen=no
11097 lt_cv_dlopen_libs=
11099 case $host_os in
11100 beos*)
11101 lt_cv_dlopen="load_add_on"
11102 lt_cv_dlopen_libs=
11103 lt_cv_dlopen_self=yes
11106 mingw* | pw32* | cegcc*)
11107 lt_cv_dlopen="LoadLibrary"
11108 lt_cv_dlopen_libs=
11111 cygwin*)
11112 lt_cv_dlopen="dlopen"
11113 lt_cv_dlopen_libs=
11116 darwin*)
11117 # if libdl is installed we need to link against it
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11119 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_check_lib_save_LIBS=$LIBS
11124 LIBS="-ldl $LIBS"
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11128 /* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 char dlopen ();
11136 main ()
11138 return dlopen ();
11140 return 0;
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 ac_cv_lib_dl_dlopen=yes
11145 else
11146 ac_cv_lib_dl_dlopen=no
11148 rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11153 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11154 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11156 else
11158 lt_cv_dlopen="dyld"
11159 lt_cv_dlopen_libs=
11160 lt_cv_dlopen_self=yes
11167 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11168 if test "x$ac_cv_func_shl_load" = x""yes; then :
11169 lt_cv_dlopen="shl_load"
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11172 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-ldld $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char shl_load ();
11189 main ()
11191 return shl_load ();
11193 return 0;
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_dld_shl_load=yes
11198 else
11199 ac_cv_lib_dld_shl_load=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11206 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11207 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11209 else
11210 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11211 if test "x$ac_cv_func_dlopen" = x""yes; then :
11212 lt_cv_dlopen="dlopen"
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11215 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 ac_check_lib_save_LIBS=$LIBS
11220 LIBS="-ldl $LIBS"
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char dlopen ();
11232 main ()
11234 return dlopen ();
11236 return 0;
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 ac_cv_lib_dl_dlopen=yes
11241 else
11242 ac_cv_lib_dl_dlopen=no
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_lib_save_LIBS
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11250 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 ac_check_lib_save_LIBS=$LIBS
11259 LIBS="-lsvld $LIBS"
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 char dlopen ();
11271 main ()
11273 return dlopen ();
11275 return 0;
11277 _ACEOF
11278 if ac_fn_c_try_link "$LINENO"; then :
11279 ac_cv_lib_svld_dlopen=yes
11280 else
11281 ac_cv_lib_svld_dlopen=no
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11288 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11289 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11293 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11294 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-ldld $LIBS"
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 char dld_link ();
11310 main ()
11312 return dld_link ();
11314 return 0;
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 ac_cv_lib_dld_dld_link=yes
11319 else
11320 ac_cv_lib_dld_dld_link=no
11322 rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324 LIBS=$ac_check_lib_save_LIBS
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11328 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11329 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11348 esac
11350 if test "x$lt_cv_dlopen" != xno; then
11351 enable_dlopen=yes
11352 else
11353 enable_dlopen=no
11356 case $lt_cv_dlopen in
11357 dlopen)
11358 save_CPPFLAGS="$CPPFLAGS"
11359 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11361 save_LDFLAGS="$LDFLAGS"
11362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11364 save_LIBS="$LIBS"
11365 LIBS="$lt_cv_dlopen_libs $LIBS"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11369 if test "${lt_cv_dlopen_self+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 if test "$cross_compiling" = yes; then :
11373 lt_cv_dlopen_self=cross
11374 else
11375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11376 lt_status=$lt_dlunknown
11377 cat > conftest.$ac_ext <<_LT_EOF
11378 #line 11378 "configure"
11379 #include "confdefs.h"
11381 #if HAVE_DLFCN_H
11382 #include <dlfcn.h>
11383 #endif
11385 #include <stdio.h>
11387 #ifdef RTLD_GLOBAL
11388 # define LT_DLGLOBAL RTLD_GLOBAL
11389 #else
11390 # ifdef DL_GLOBAL
11391 # define LT_DLGLOBAL DL_GLOBAL
11392 # else
11393 # define LT_DLGLOBAL 0
11394 # endif
11395 #endif
11397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11398 find out it does not work in some platform. */
11399 #ifndef LT_DLLAZY_OR_NOW
11400 # ifdef RTLD_LAZY
11401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11402 # else
11403 # ifdef DL_LAZY
11404 # define LT_DLLAZY_OR_NOW DL_LAZY
11405 # else
11406 # ifdef RTLD_NOW
11407 # define LT_DLLAZY_OR_NOW RTLD_NOW
11408 # else
11409 # ifdef DL_NOW
11410 # define LT_DLLAZY_OR_NOW DL_NOW
11411 # else
11412 # define LT_DLLAZY_OR_NOW 0
11413 # endif
11414 # endif
11415 # endif
11416 # endif
11417 #endif
11419 /* When -fvisbility=hidden is used, assume the code has been annotated
11420 correspondingly for the symbols needed. */
11421 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11422 void fnord () __attribute__((visibility("default")));
11423 #endif
11425 void fnord () { int i=42; }
11426 int main ()
11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429 int status = $lt_dlunknown;
11431 if (self)
11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11434 else
11436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11437 else puts (dlerror ());
11439 /* dlclose (self); */
11441 else
11442 puts (dlerror ());
11444 return status;
11446 _LT_EOF
11447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11448 (eval $ac_link) 2>&5
11449 ac_status=$?
11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11452 (./conftest; exit; ) >&5 2>/dev/null
11453 lt_status=$?
11454 case x$lt_status in
11455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11458 esac
11459 else :
11460 # compilation failed
11461 lt_cv_dlopen_self=no
11464 rm -fr conftest*
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11469 $as_echo "$lt_cv_dlopen_self" >&6; }
11471 if test "x$lt_cv_dlopen_self" = xyes; then
11472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11474 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11475 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 if test "$cross_compiling" = yes; then :
11479 lt_cv_dlopen_self_static=cross
11480 else
11481 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11482 lt_status=$lt_dlunknown
11483 cat > conftest.$ac_ext <<_LT_EOF
11484 #line 11484 "configure"
11485 #include "confdefs.h"
11487 #if HAVE_DLFCN_H
11488 #include <dlfcn.h>
11489 #endif
11491 #include <stdio.h>
11493 #ifdef RTLD_GLOBAL
11494 # define LT_DLGLOBAL RTLD_GLOBAL
11495 #else
11496 # ifdef DL_GLOBAL
11497 # define LT_DLGLOBAL DL_GLOBAL
11498 # else
11499 # define LT_DLGLOBAL 0
11500 # endif
11501 #endif
11503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11504 find out it does not work in some platform. */
11505 #ifndef LT_DLLAZY_OR_NOW
11506 # ifdef RTLD_LAZY
11507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11508 # else
11509 # ifdef DL_LAZY
11510 # define LT_DLLAZY_OR_NOW DL_LAZY
11511 # else
11512 # ifdef RTLD_NOW
11513 # define LT_DLLAZY_OR_NOW RTLD_NOW
11514 # else
11515 # ifdef DL_NOW
11516 # define LT_DLLAZY_OR_NOW DL_NOW
11517 # else
11518 # define LT_DLLAZY_OR_NOW 0
11519 # endif
11520 # endif
11521 # endif
11522 # endif
11523 #endif
11525 /* When -fvisbility=hidden is used, assume the code has been annotated
11526 correspondingly for the symbols needed. */
11527 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11528 void fnord () __attribute__((visibility("default")));
11529 #endif
11531 void fnord () { int i=42; }
11532 int main ()
11534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535 int status = $lt_dlunknown;
11537 if (self)
11539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11540 else
11542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11543 else puts (dlerror ());
11545 /* dlclose (self); */
11547 else
11548 puts (dlerror ());
11550 return status;
11552 _LT_EOF
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11554 (eval $ac_link) 2>&5
11555 ac_status=$?
11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11558 (./conftest; exit; ) >&5 2>/dev/null
11559 lt_status=$?
11560 case x$lt_status in
11561 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11562 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11563 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11564 esac
11565 else :
11566 # compilation failed
11567 lt_cv_dlopen_self_static=no
11570 rm -fr conftest*
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11575 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11578 CPPFLAGS="$save_CPPFLAGS"
11579 LDFLAGS="$save_LDFLAGS"
11580 LIBS="$save_LIBS"
11582 esac
11584 case $lt_cv_dlopen_self in
11585 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11586 *) enable_dlopen_self=unknown ;;
11587 esac
11589 case $lt_cv_dlopen_self_static in
11590 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11591 *) enable_dlopen_self_static=unknown ;;
11592 esac
11611 striplib=
11612 old_striplib=
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11614 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11615 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11616 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11617 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11619 $as_echo "yes" >&6; }
11620 else
11621 # FIXME - insert some real tests, host_os isn't really good enough
11622 case $host_os in
11623 darwin*)
11624 if test -n "$STRIP" ; then
11625 striplib="$STRIP -x"
11626 old_striplib="$STRIP -S"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11638 esac
11652 # Report which library types will actually be built
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11654 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11656 $as_echo "$can_build_shared" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11659 $as_echo_n "checking whether to build shared libraries... " >&6; }
11660 test "$can_build_shared" = "no" && enable_shared=no
11662 # On AIX, shared libraries and static libraries use the same namespace, and
11663 # are all built from PIC.
11664 case $host_os in
11665 aix3*)
11666 test "$enable_shared" = yes && enable_static=no
11667 if test -n "$RANLIB"; then
11668 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11669 postinstall_cmds='$RANLIB $lib'
11673 aix[4-9]*)
11674 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11675 test "$enable_shared" = yes && enable_static=no
11678 esac
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11680 $as_echo "$enable_shared" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11683 $as_echo_n "checking whether to build static libraries... " >&6; }
11684 # Make sure either enable_shared or enable_static is yes.
11685 test "$enable_shared" = yes || enable_static=yes
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11687 $as_echo "$enable_static" >&6; }
11693 ac_ext=c
11694 ac_cpp='$CPP $CPPFLAGS'
11695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11699 CC="$lt_save_CC"
11701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11703 (test "X$CXX" != "Xg++"))) ; then
11704 ac_ext=cpp
11705 ac_cpp='$CXXCPP $CPPFLAGS'
11706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11710 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11711 if test -z "$CXXCPP"; then
11712 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 # Double quotes because CXXCPP needs to be expanded
11716 for CXXCPP in "$CXX -E" "/lib/cpp"
11718 ac_preproc_ok=false
11719 for ac_cxx_preproc_warn_flag in '' yes
11721 # Use a header file that comes with gcc, so configuring glibc
11722 # with a fresh cross-compiler works.
11723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 # <limits.h> exists even on freestanding compilers.
11725 # On the NeXT, cc -E runs the code through the compiler's parser,
11726 # not just through cpp. "Syntax error" is here to catch this case.
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #ifdef __STDC__
11730 # include <limits.h>
11731 #else
11732 # include <assert.h>
11733 #endif
11734 Syntax error
11735 _ACEOF
11736 if ac_fn_cxx_try_cpp "$LINENO"; then :
11738 else
11739 # Broken: fails on valid input.
11740 continue
11742 rm -f conftest.err conftest.$ac_ext
11744 # OK, works on sane cases. Now check whether nonexistent headers
11745 # can be detected and how.
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748 #include <ac_nonexistent.h>
11749 _ACEOF
11750 if ac_fn_cxx_try_cpp "$LINENO"; then :
11751 # Broken: success on invalid input.
11752 continue
11753 else
11754 # Passes both tests.
11755 ac_preproc_ok=:
11756 break
11758 rm -f conftest.err conftest.$ac_ext
11760 done
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.$ac_ext
11763 if $ac_preproc_ok; then :
11764 break
11767 done
11768 ac_cv_prog_CXXCPP=$CXXCPP
11771 CXXCPP=$ac_cv_prog_CXXCPP
11772 else
11773 ac_cv_prog_CXXCPP=$CXXCPP
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11776 $as_echo "$CXXCPP" >&6; }
11777 ac_preproc_ok=false
11778 for ac_cxx_preproc_warn_flag in '' yes
11780 # Use a header file that comes with gcc, so configuring glibc
11781 # with a fresh cross-compiler works.
11782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 # <limits.h> exists even on freestanding compilers.
11784 # On the NeXT, cc -E runs the code through the compiler's parser,
11785 # not just through cpp. "Syntax error" is here to catch this case.
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11788 #ifdef __STDC__
11789 # include <limits.h>
11790 #else
11791 # include <assert.h>
11792 #endif
11793 Syntax error
11794 _ACEOF
11795 if ac_fn_cxx_try_cpp "$LINENO"; then :
11797 else
11798 # Broken: fails on valid input.
11799 continue
11801 rm -f conftest.err conftest.$ac_ext
11803 # OK, works on sane cases. Now check whether nonexistent headers
11804 # can be detected and how.
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <ac_nonexistent.h>
11808 _ACEOF
11809 if ac_fn_cxx_try_cpp "$LINENO"; then :
11810 # Broken: success on invalid input.
11811 continue
11812 else
11813 # Passes both tests.
11814 ac_preproc_ok=:
11815 break
11817 rm -f conftest.err conftest.$ac_ext
11819 done
11820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11821 rm -f conftest.err conftest.$ac_ext
11822 if $ac_preproc_ok; then :
11824 else
11825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11827 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11828 See \`config.log' for more details." "$LINENO" 5; }
11831 ac_ext=c
11832 ac_cpp='$CPP $CPPFLAGS'
11833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11837 else
11838 _lt_caught_CXX_error=yes
11841 ac_ext=cpp
11842 ac_cpp='$CXXCPP $CPPFLAGS'
11843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11847 archive_cmds_need_lc_CXX=no
11848 allow_undefined_flag_CXX=
11849 always_export_symbols_CXX=no
11850 archive_expsym_cmds_CXX=
11851 compiler_needs_object_CXX=no
11852 export_dynamic_flag_spec_CXX=
11853 hardcode_direct_CXX=no
11854 hardcode_direct_absolute_CXX=no
11855 hardcode_libdir_flag_spec_CXX=
11856 hardcode_libdir_flag_spec_ld_CXX=
11857 hardcode_libdir_separator_CXX=
11858 hardcode_minus_L_CXX=no
11859 hardcode_shlibpath_var_CXX=unsupported
11860 hardcode_automatic_CXX=no
11861 inherit_rpath_CXX=no
11862 module_cmds_CXX=
11863 module_expsym_cmds_CXX=
11864 link_all_deplibs_CXX=unknown
11865 old_archive_cmds_CXX=$old_archive_cmds
11866 reload_flag_CXX=$reload_flag
11867 reload_cmds_CXX=$reload_cmds
11868 no_undefined_flag_CXX=
11869 whole_archive_flag_spec_CXX=
11870 enable_shared_with_static_runtimes_CXX=no
11872 # Source file extension for C++ test sources.
11873 ac_ext=cpp
11875 # Object file extension for compiled C++ test sources.
11876 objext=o
11877 objext_CXX=$objext
11879 # No sense in running all these tests if we already determined that
11880 # the CXX compiler isn't working. Some variables (like enable_shared)
11881 # are currently assumed to apply to all compilers on this platform,
11882 # and will be corrupted by setting them based on a non-working compiler.
11883 if test "$_lt_caught_CXX_error" != yes; then
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code="int some_variable = 0;"
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11897 # If no C compiler was specified, use CC.
11898 LTCC=${LTCC-"$CC"}
11900 # If no C compiler flags were specified, use CFLAGS.
11901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11903 # Allow CC to be a program name with arguments.
11904 compiler=$CC
11907 # save warnings/boilerplate of simple test code
11908 ac_outfile=conftest.$ac_objext
11909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11911 _lt_compiler_boilerplate=`cat conftest.err`
11912 $RM conftest*
11914 ac_outfile=conftest.$ac_objext
11915 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11917 _lt_linker_boilerplate=`cat conftest.err`
11918 $RM -r conftest*
11921 # Allow CC to be a program name with arguments.
11922 lt_save_CC=$CC
11923 lt_save_LD=$LD
11924 lt_save_GCC=$GCC
11925 GCC=$GXX
11926 lt_save_with_gnu_ld=$with_gnu_ld
11927 lt_save_path_LD=$lt_cv_path_LD
11928 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11929 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11930 else
11931 $as_unset lt_cv_prog_gnu_ld
11933 if test -n "${lt_cv_path_LDCXX+set}"; then
11934 lt_cv_path_LD=$lt_cv_path_LDCXX
11935 else
11936 $as_unset lt_cv_path_LD
11938 test -z "${LDCXX+set}" || LD=$LDCXX
11939 CC=${CXX-"c++"}
11940 compiler=$CC
11941 compiler_CXX=$CC
11942 for cc_temp in $compiler""; do
11943 case $cc_temp in
11944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11946 \-*) ;;
11947 *) break;;
11948 esac
11949 done
11950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11953 if test -n "$compiler"; then
11954 # We don't want -fno-exception when compiling C++ code, so set the
11955 # no_builtin_flag separately
11956 if test "$GXX" = yes; then
11957 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11958 else
11959 lt_prog_compiler_no_builtin_flag_CXX=
11962 if test "$GXX" = yes; then
11963 # Set up default GNU C++ configuration
11967 # Check whether --with-gnu-ld was given.
11968 if test "${with_gnu_ld+set}" = set; then :
11969 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11970 else
11971 with_gnu_ld=no
11974 ac_prog=ld
11975 if test "$GCC" = yes; then
11976 # Check if gcc -print-prog-name=ld gives a path.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11978 $as_echo_n "checking for ld used by $CC... " >&6; }
11979 case $host in
11980 *-*-mingw*)
11981 # gcc leaves a trailing carriage return which upsets mingw
11982 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11984 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11985 esac
11986 case $ac_prog in
11987 # Accept absolute paths.
11988 [\\/]* | ?:[\\/]*)
11989 re_direlt='/[^/][^/]*/\.\./'
11990 # Canonicalize the pathname of ld
11991 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11992 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11993 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11994 done
11995 test -z "$LD" && LD="$ac_prog"
11998 # If it fails, then pretend we aren't using GCC.
11999 ac_prog=ld
12002 # If it is relative, then search for the first ld in PATH.
12003 with_gnu_ld=unknown
12005 esac
12006 elif test "$with_gnu_ld" = yes; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12008 $as_echo_n "checking for GNU ld... " >&6; }
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12011 $as_echo_n "checking for non-GNU ld... " >&6; }
12013 if test "${lt_cv_path_LD+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 if test -z "$LD"; then
12017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12018 for ac_dir in $PATH; do
12019 IFS="$lt_save_ifs"
12020 test -z "$ac_dir" && ac_dir=.
12021 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12022 lt_cv_path_LD="$ac_dir/$ac_prog"
12023 # Check to see if the program is GNU ld. I'd rather use --version,
12024 # but apparently some variants of GNU ld only accept -v.
12025 # Break only if it was the GNU/non-GNU ld that we prefer.
12026 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12027 *GNU* | *'with BFD'*)
12028 test "$with_gnu_ld" != no && break
12031 test "$with_gnu_ld" != yes && break
12033 esac
12035 done
12036 IFS="$lt_save_ifs"
12037 else
12038 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12042 LD="$lt_cv_path_LD"
12043 if test -n "$LD"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12045 $as_echo "$LD" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12050 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12053 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057 case `$LD -v 2>&1 </dev/null` in
12058 *GNU* | *'with BFD'*)
12059 lt_cv_prog_gnu_ld=yes
12062 lt_cv_prog_gnu_ld=no
12064 esac
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12068 with_gnu_ld=$lt_cv_prog_gnu_ld
12076 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12077 # archiving commands below assume that GNU ld is being used.
12078 if test "$with_gnu_ld" = yes; then
12079 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 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'
12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085 # If archive_cmds runs LD, not CC, wlarc should be empty
12086 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12087 # investigate it a little bit more. (MM)
12088 wlarc='${wl}'
12090 # ancient GNU ld didn't support --whole-archive et. al.
12091 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12092 $GREP 'no-whole-archive' > /dev/null; then
12093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12094 else
12095 whole_archive_flag_spec_CXX=
12097 else
12098 with_gnu_ld=no
12099 wlarc=
12101 # A generic and very simple default shared library creation
12102 # command for GNU C++ for the case where it uses the native
12103 # linker, instead of GNU ld. If possible, this setting should
12104 # overridden to take advantage of the native linker features on
12105 # the platform it is being used on.
12106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12114 else
12115 GXX=no
12116 with_gnu_ld=no
12117 wlarc=
12120 # PORTME: fill in a description of your system's C++ link characteristics
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12123 ld_shlibs_CXX=yes
12124 case $host_os in
12125 aix3*)
12126 # FIXME: insert proper C++ library support
12127 ld_shlibs_CXX=no
12129 aix[4-9]*)
12130 if test "$host_cpu" = ia64; then
12131 # On IA64, the linker does run time linking by default, so we don't
12132 # have to do anything special.
12133 aix_use_runtimelinking=no
12134 exp_sym_flag='-Bexport'
12135 no_entry_flag=""
12136 else
12137 aix_use_runtimelinking=no
12139 # Test if we are trying to use run time linking or normal
12140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12141 # need to do runtime linking.
12142 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12143 for ld_flag in $LDFLAGS; do
12144 case $ld_flag in
12145 *-brtl*)
12146 aix_use_runtimelinking=yes
12147 break
12149 esac
12150 done
12152 esac
12154 exp_sym_flag='-bexport'
12155 no_entry_flag='-bnoentry'
12158 # When large executables or shared objects are built, AIX ld can
12159 # have problems creating the table of contents. If linking a library
12160 # or program results in "error TOC overflow" add -mminimal-toc to
12161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12164 archive_cmds_CXX=''
12165 hardcode_direct_CXX=yes
12166 hardcode_direct_absolute_CXX=yes
12167 hardcode_libdir_separator_CXX=':'
12168 link_all_deplibs_CXX=yes
12169 file_list_spec_CXX='${wl}-f,'
12171 if test "$GXX" = yes; then
12172 case $host_os in aix4.[012]|aix4.[012].*)
12173 # We only want to do this on AIX 4.2 and lower, the check
12174 # below for broken collect2 doesn't work under 4.3+
12175 collect2name=`${CC} -print-prog-name=collect2`
12176 if test -f "$collect2name" &&
12177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12178 then
12179 # We have reworked collect2
12181 else
12182 # We have old collect2
12183 hardcode_direct_CXX=unsupported
12184 # It fails to find uninstalled libraries when the uninstalled
12185 # path is not listed in the libpath. Setting hardcode_minus_L
12186 # to unsupported forces relinking
12187 hardcode_minus_L_CXX=yes
12188 hardcode_libdir_flag_spec_CXX='-L$libdir'
12189 hardcode_libdir_separator_CXX=
12191 esac
12192 shared_flag='-shared'
12193 if test "$aix_use_runtimelinking" = yes; then
12194 shared_flag="$shared_flag "'${wl}-G'
12196 else
12197 # not using gcc
12198 if test "$host_cpu" = ia64; then
12199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12200 # chokes on -Wl,-G. The following line is correct:
12201 shared_flag='-G'
12202 else
12203 if test "$aix_use_runtimelinking" = yes; then
12204 shared_flag='${wl}-G'
12205 else
12206 shared_flag='${wl}-bM:SRE'
12211 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12212 # It seems that -bexpall does not export symbols beginning with
12213 # underscore (_), so it is better to generate a list of symbols to
12214 # export.
12215 always_export_symbols_CXX=yes
12216 if test "$aix_use_runtimelinking" = yes; then
12217 # Warning - without using the other runtime loading flags (-brtl),
12218 # -berok will link without error, but may produce a broken library.
12219 allow_undefined_flag_CXX='-berok'
12220 # Determine the default libpath from the value encoded in an empty
12221 # executable.
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12226 main ()
12230 return 0;
12232 _ACEOF
12233 if ac_fn_cxx_try_link "$LINENO"; then :
12235 lt_aix_libpath_sed='
12236 /Import File Strings/,/^$/ {
12237 /^0/ {
12238 s/^0 *\(.*\)$/\1/
12242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12243 # Check for a 64-bit object if we didn't find anything.
12244 if test -z "$aix_libpath"; then
12245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12252 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12254 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"
12255 else
12256 if test "$host_cpu" = ia64; then
12257 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12258 allow_undefined_flag_CXX="-z nodefs"
12259 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"
12260 else
12261 # Determine the default libpath from the value encoded in an
12262 # empty executable.
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12267 main ()
12271 return 0;
12273 _ACEOF
12274 if ac_fn_cxx_try_link "$LINENO"; then :
12276 lt_aix_libpath_sed='
12277 /Import File Strings/,/^$/ {
12278 /^0/ {
12279 s/^0 *\(.*\)$/\1/
12283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12284 # Check for a 64-bit object if we didn't find anything.
12285 if test -z "$aix_libpath"; then
12286 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12293 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12294 # Warning - without using the other run time loading flags,
12295 # -berok will link without error, but may produce a broken library.
12296 no_undefined_flag_CXX=' ${wl}-bernotok'
12297 allow_undefined_flag_CXX=' ${wl}-berok'
12298 if test "$with_gnu_ld" = yes; then
12299 # We only use this code for GNU lds that support --whole-archive.
12300 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12301 else
12302 # Exported symbols can be pulled into shared objects from archives
12303 whole_archive_flag_spec_CXX='$convenience'
12305 archive_cmds_need_lc_CXX=yes
12306 # This is similar to how AIX traditionally builds its shared
12307 # libraries.
12308 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'
12313 beos*)
12314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12315 allow_undefined_flag_CXX=unsupported
12316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12317 # support --undefined. This deserves some investigation. FIXME
12318 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319 else
12320 ld_shlibs_CXX=no
12324 chorus*)
12325 case $cc_basename in
12327 # FIXME: insert proper C++ library support
12328 ld_shlibs_CXX=no
12330 esac
12333 cygwin* | mingw* | pw32* | cegcc*)
12334 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12335 # as there is no search path for DLLs.
12336 hardcode_libdir_flag_spec_CXX='-L$libdir'
12337 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12338 allow_undefined_flag_CXX=unsupported
12339 always_export_symbols_CXX=no
12340 enable_shared_with_static_runtimes_CXX=yes
12342 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12343 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'
12344 # If the export-symbols file already is a .def file (1st line
12345 # is EXPORTS), use it as is; otherwise, prepend...
12346 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12347 cp $export_symbols $output_objdir/$soname.def;
12348 else
12349 echo EXPORTS > $output_objdir/$soname.def;
12350 cat $export_symbols >> $output_objdir/$soname.def;
12352 $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'
12353 else
12354 ld_shlibs_CXX=no
12357 darwin* | rhapsody*)
12360 archive_cmds_need_lc_CXX=no
12361 hardcode_direct_CXX=no
12362 hardcode_automatic_CXX=yes
12363 hardcode_shlibpath_var_CXX=unsupported
12364 if test "$lt_cv_ld_force_load" = "yes"; then
12365 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\"`'
12366 else
12367 whole_archive_flag_spec_CXX=''
12369 link_all_deplibs_CXX=yes
12370 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12371 case $cc_basename in
12372 ifort*) _lt_dar_can_shared=yes ;;
12373 *) _lt_dar_can_shared=$GCC ;;
12374 esac
12375 if test "$_lt_dar_can_shared" = "yes"; then
12376 output_verbose_link_cmd=func_echo_all
12377 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}"
12378 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12379 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}"
12380 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}"
12381 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12382 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}"
12383 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}"
12386 else
12387 ld_shlibs_CXX=no
12392 dgux*)
12393 case $cc_basename in
12394 ec++*)
12395 # FIXME: insert proper C++ library support
12396 ld_shlibs_CXX=no
12398 ghcx*)
12399 # Green Hills C++ Compiler
12400 # FIXME: insert proper C++ library support
12401 ld_shlibs_CXX=no
12404 # FIXME: insert proper C++ library support
12405 ld_shlibs_CXX=no
12407 esac
12410 freebsd2.*)
12411 # C++ shared libraries reported to be fairly broken before
12412 # switch to ELF
12413 ld_shlibs_CXX=no
12416 freebsd-elf*)
12417 archive_cmds_need_lc_CXX=no
12420 freebsd* | dragonfly*)
12421 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12422 # conventions
12423 ld_shlibs_CXX=yes
12426 gnu*)
12429 haiku*)
12430 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 link_all_deplibs_CXX=yes
12434 hpux9*)
12435 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12436 hardcode_libdir_separator_CXX=:
12437 export_dynamic_flag_spec_CXX='${wl}-E'
12438 hardcode_direct_CXX=yes
12439 hardcode_minus_L_CXX=yes # Not in the search PATH,
12440 # but as the default
12441 # location of the library.
12443 case $cc_basename in
12444 CC*)
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12448 aCC*)
12449 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'
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12454 # There doesn't appear to be a way to prevent this compiler from
12455 # explicitly linking system object files so we need to strip them
12456 # from the output so that they don't get included in the library
12457 # dependencies.
12458 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"'
12461 if test "$GXX" = yes; then
12462 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'
12463 else
12464 # FIXME: insert proper C++ library support
12465 ld_shlibs_CXX=no
12468 esac
12471 hpux10*|hpux11*)
12472 if test $with_gnu_ld = no; then
12473 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12474 hardcode_libdir_separator_CXX=:
12476 case $host_cpu in
12477 hppa*64*|ia64*)
12480 export_dynamic_flag_spec_CXX='${wl}-E'
12482 esac
12484 case $host_cpu in
12485 hppa*64*|ia64*)
12486 hardcode_direct_CXX=no
12487 hardcode_shlibpath_var_CXX=no
12490 hardcode_direct_CXX=yes
12491 hardcode_direct_absolute_CXX=yes
12492 hardcode_minus_L_CXX=yes # Not in the search PATH,
12493 # but as the default
12494 # location of the library.
12496 esac
12498 case $cc_basename in
12499 CC*)
12500 # FIXME: insert proper C++ library support
12501 ld_shlibs_CXX=no
12503 aCC*)
12504 case $host_cpu in
12505 hppa*64*)
12506 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12508 ia64*)
12509 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12512 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12514 esac
12515 # Commands to make compiler produce verbose output that lists
12516 # what "hidden" libraries, object files and flags are used when
12517 # linking a shared library.
12519 # There doesn't appear to be a way to prevent this compiler from
12520 # explicitly linking system object files so we need to strip them
12521 # from the output so that they don't get included in the library
12522 # dependencies.
12523 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"'
12526 if test "$GXX" = yes; then
12527 if test $with_gnu_ld = no; then
12528 case $host_cpu in
12529 hppa*64*)
12530 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12532 ia64*)
12533 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 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'
12538 esac
12540 else
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12545 esac
12548 interix[3-9]*)
12549 hardcode_direct_CXX=no
12550 hardcode_shlibpath_var_CXX=no
12551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12552 export_dynamic_flag_spec_CXX='${wl}-E'
12553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12554 # Instead, shared libraries are loaded at an image base (0x10000000 by
12555 # default) and relocated if they conflict, which is a slow very memory
12556 # consuming and fragmenting process. To avoid this, we pick a random,
12557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12559 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'
12560 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'
12562 irix5* | irix6*)
12563 case $cc_basename in
12564 CC*)
12565 # SGI C++
12566 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'
12568 # Archives containing C++ object files must be created using
12569 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12570 # necessary to make sure instantiated templates are included
12571 # in the archive.
12572 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12575 if test "$GXX" = yes; then
12576 if test "$with_gnu_ld" = no; then
12577 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'
12578 else
12579 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'
12582 link_all_deplibs_CXX=yes
12584 esac
12585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12586 hardcode_libdir_separator_CXX=:
12587 inherit_rpath_CXX=yes
12590 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12591 case $cc_basename in
12592 KCC*)
12593 # Kuck and Associates, Inc. (KAI) C++ Compiler
12595 # KCC will only create a shared library if the output file
12596 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12597 # to its proper name (with version) after linking.
12598 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'
12599 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'
12600 # Commands to make compiler produce verbose output that lists
12601 # what "hidden" libraries, object files and flags are used when
12602 # linking a shared library.
12604 # There doesn't appear to be a way to prevent this compiler from
12605 # explicitly linking system object files so we need to strip them
12606 # from the output so that they don't get included in the library
12607 # dependencies.
12608 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"'
12610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12611 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12613 # Archives containing C++ object files must be created using
12614 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12615 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12617 icpc* | ecpc* )
12618 # Intel C++
12619 with_gnu_ld=yes
12620 # version 8.0 and above of icpc choke on multiply defined symbols
12621 # if we add $predep_objects and $postdep_objects, however 7.1 and
12622 # earlier do not add the objects themselves.
12623 case `$CC -V 2>&1` in
12624 *"Version 7."*)
12625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 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'
12628 *) # Version 8.0 or newer
12629 tmp_idyn=
12630 case $host_cpu in
12631 ia64*) tmp_idyn=' -i_dynamic';;
12632 esac
12633 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12634 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'
12636 esac
12637 archive_cmds_need_lc_CXX=no
12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12640 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12642 pgCC* | pgcpp*)
12643 # Portland Group C++ compiler
12644 case `$CC -V` in
12645 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12646 prelink_cmds_CXX='tpldir=Template.dir~
12647 rm -rf $tpldir~
12648 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12649 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12650 old_archive_cmds_CXX='tpldir=Template.dir~
12651 rm -rf $tpldir~
12652 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12653 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12654 $RANLIB $oldlib'
12655 archive_cmds_CXX='tpldir=Template.dir~
12656 rm -rf $tpldir~
12657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12658 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12659 archive_expsym_cmds_CXX='tpldir=Template.dir~
12660 rm -rf $tpldir~
12661 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12662 $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'
12664 *) # Version 6 and above use weak symbols
12665 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12666 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'
12668 esac
12670 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12672 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'
12674 cxx*)
12675 # Compaq C++
12676 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 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'
12679 runpath_var=LD_RUN_PATH
12680 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12681 hardcode_libdir_separator_CXX=:
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12690 # dependencies.
12691 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'
12693 xl* | mpixl* | bgxl*)
12694 # IBM XL 8.0 on PPC, with GNU ld
12695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12697 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698 if test "x$supports_anon_versioning" = xyes; then
12699 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12701 echo "local: *; };" >> $output_objdir/$libname.ver~
12702 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12706 case `$CC -V 2>&1 | sed 5q` in
12707 *Sun\ C*)
12708 # Sun C++ 5.9
12709 no_undefined_flag_CXX=' -zdefs'
12710 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711 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'
12712 hardcode_libdir_flag_spec_CXX='-R$libdir'
12713 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'
12714 compiler_needs_object_CXX=yes
12716 # Not sure whether something based on
12717 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12718 # would be better.
12719 output_verbose_link_cmd='func_echo_all'
12721 # Archives containing C++ object files must be created using
12722 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12723 # necessary to make sure instantiated templates are included
12724 # in the archive.
12725 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12727 esac
12729 esac
12732 lynxos*)
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12737 m88k*)
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12742 mvs*)
12743 case $cc_basename in
12744 cxx*)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12752 esac
12755 netbsd*)
12756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12757 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12758 wlarc=
12759 hardcode_libdir_flag_spec_CXX='-R$libdir'
12760 hardcode_direct_CXX=yes
12761 hardcode_shlibpath_var_CXX=no
12763 # Workaround some broken pre-1.5 toolchains
12764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12767 *nto* | *qnx*)
12768 ld_shlibs_CXX=yes
12771 openbsd2*)
12772 # C++ shared libraries are fairly broken
12773 ld_shlibs_CXX=no
12776 openbsd*)
12777 if test -f /usr/libexec/ld.so; then
12778 hardcode_direct_CXX=yes
12779 hardcode_shlibpath_var_CXX=no
12780 hardcode_direct_absolute_CXX=yes
12781 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12785 export_dynamic_flag_spec_CXX='${wl}-E'
12786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12788 output_verbose_link_cmd=func_echo_all
12789 else
12790 ld_shlibs_CXX=no
12794 osf3* | osf4* | osf5*)
12795 case $cc_basename in
12796 KCC*)
12797 # Kuck and Associates, Inc. (KAI) C++ Compiler
12799 # KCC will only create a shared library if the output file
12800 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12801 # to its proper name (with version) after linking.
12802 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'
12804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12805 hardcode_libdir_separator_CXX=:
12807 # Archives containing C++ object files must be created using
12808 # the KAI C++ compiler.
12809 case $host in
12810 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12811 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12812 esac
12814 RCC*)
12815 # Rational C++ 2.4.1
12816 # FIXME: insert proper C++ library support
12817 ld_shlibs_CXX=no
12819 cxx*)
12820 case $host in
12821 osf3*)
12822 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12823 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'
12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12827 allow_undefined_flag_CXX=' -expect_unresolved \*'
12828 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'
12829 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12830 echo "-hidden">> $lib.exp~
12831 $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~
12832 $RM $lib.exp'
12833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12835 esac
12837 hardcode_libdir_separator_CXX=:
12839 # Commands to make compiler produce verbose output that lists
12840 # what "hidden" libraries, object files and flags are used when
12841 # linking a shared library.
12843 # There doesn't appear to be a way to prevent this compiler from
12844 # explicitly linking system object files so we need to strip them
12845 # from the output so that they don't get included in the library
12846 # dependencies.
12847 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"'
12850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12852 case $host in
12853 osf3*)
12854 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'
12857 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'
12859 esac
12861 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12862 hardcode_libdir_separator_CXX=:
12864 # Commands to make compiler produce verbose output that lists
12865 # what "hidden" libraries, object files and flags are used when
12866 # linking a shared library.
12867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12869 else
12870 # FIXME: insert proper C++ library support
12871 ld_shlibs_CXX=no
12874 esac
12877 psos*)
12878 # FIXME: insert proper C++ library support
12879 ld_shlibs_CXX=no
12882 sunos4*)
12883 case $cc_basename in
12884 CC*)
12885 # Sun C++ 4.x
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12889 lcc*)
12890 # Lucid
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12898 esac
12901 solaris*)
12902 case $cc_basename in
12903 CC*)
12904 # Sun C++ 4.2, 5.x and Centerline C++
12905 archive_cmds_need_lc_CXX=yes
12906 no_undefined_flag_CXX=' -zdefs'
12907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12909 $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'
12911 hardcode_libdir_flag_spec_CXX='-R$libdir'
12912 hardcode_shlibpath_var_CXX=no
12913 case $host_os in
12914 solaris2.[0-5] | solaris2.[0-5].*) ;;
12916 # The compiler driver will combine and reorder linker options,
12917 # but understands `-z linker_flag'.
12918 # Supported since Solaris 2.6 (maybe 2.5.1?)
12919 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12921 esac
12922 link_all_deplibs_CXX=yes
12924 output_verbose_link_cmd='func_echo_all'
12926 # Archives containing C++ object files must be created using
12927 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12928 # necessary to make sure instantiated templates are included
12929 # in the archive.
12930 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12932 gcx*)
12933 # Green Hills C++ Compiler
12934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12936 # The C++ compiler must be used to create the archive.
12937 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12940 # GNU C++ compiler with Solaris linker
12941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12942 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12943 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12944 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12946 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12952 else
12953 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12954 # platform.
12955 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12965 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12966 case $host_os in
12967 solaris2.[0-5] | solaris2.[0-5].*) ;;
12969 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12971 esac
12974 esac
12977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12978 no_undefined_flag_CXX='${wl}-z,text'
12979 archive_cmds_need_lc_CXX=no
12980 hardcode_shlibpath_var_CXX=no
12981 runpath_var='LD_RUN_PATH'
12983 case $cc_basename in
12984 CC*)
12985 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 esac
12995 sysv5* | sco3.2v5* | sco5v6*)
12996 # Note: We can NOT use -z defs as we might desire, because we do not
12997 # link with -lc, and that would cause any symbols used from libc to
12998 # always be unresolved, which means just about no library would
12999 # ever link correctly. If we're not using GNU ld we use -z text
13000 # though, which does catch some bad symbols but isn't as heavy-handed
13001 # as -z defs.
13002 no_undefined_flag_CXX='${wl}-z,text'
13003 allow_undefined_flag_CXX='${wl}-z,nodefs'
13004 archive_cmds_need_lc_CXX=no
13005 hardcode_shlibpath_var_CXX=no
13006 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13007 hardcode_libdir_separator_CXX=':'
13008 link_all_deplibs_CXX=yes
13009 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13010 runpath_var='LD_RUN_PATH'
13012 case $cc_basename in
13013 CC*)
13014 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13017 '"$old_archive_cmds_CXX"
13018 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13019 '"$reload_cmds_CXX"
13022 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13023 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025 esac
13028 tandem*)
13029 case $cc_basename in
13030 NCC*)
13031 # NonStop-UX NCC 3.20
13032 # FIXME: insert proper C++ library support
13033 ld_shlibs_CXX=no
13036 # FIXME: insert proper C++ library support
13037 ld_shlibs_CXX=no
13039 esac
13042 vxworks*)
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13051 esac
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13054 $as_echo "$ld_shlibs_CXX" >&6; }
13055 test "$ld_shlibs_CXX" = no && can_build_shared=no
13057 GCC_CXX="$GXX"
13058 LD_CXX="$LD"
13060 ## CAVEAT EMPTOR:
13061 ## There is no encapsulation within the following macros, do not change
13062 ## the running order or otherwise move them around unless you know exactly
13063 ## what you are doing...
13064 # Dependencies to place before and after the object being linked:
13065 predep_objects_CXX=
13066 postdep_objects_CXX=
13067 predeps_CXX=
13068 postdeps_CXX=
13069 compiler_lib_search_path_CXX=
13071 cat > conftest.$ac_ext <<_LT_EOF
13072 class Foo
13074 public:
13075 Foo (void) { a = 0; }
13076 private:
13077 int a;
13079 _LT_EOF
13081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13082 (eval $ac_compile) 2>&5
13083 ac_status=$?
13084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13085 test $ac_status = 0; }; then
13086 # Parse the compiler output and extract the necessary
13087 # objects, libraries and library flags.
13089 # Sentinel used to keep track of whether or not we are before
13090 # the conftest object file.
13091 pre_test_object_deps_done=no
13093 for p in `eval "$output_verbose_link_cmd"`; do
13094 case $p in
13096 -L* | -R* | -l*)
13097 # Some compilers place space between "-{L,R}" and the path.
13098 # Remove the space.
13099 if test $p = "-L" ||
13100 test $p = "-R"; then
13101 prev=$p
13102 continue
13103 else
13104 prev=
13107 if test "$pre_test_object_deps_done" = no; then
13108 case $p in
13109 -L* | -R*)
13110 # Internal compiler library paths should come after those
13111 # provided the user. The postdeps already come after the
13112 # user supplied libs so there is no need to process them.
13113 if test -z "$compiler_lib_search_path_CXX"; then
13114 compiler_lib_search_path_CXX="${prev}${p}"
13115 else
13116 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13119 # The "-l" case would never come before the object being
13120 # linked, so don't bother handling this case.
13121 esac
13122 else
13123 if test -z "$postdeps_CXX"; then
13124 postdeps_CXX="${prev}${p}"
13125 else
13126 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13131 *.$objext)
13132 # This assumes that the test object file only shows up
13133 # once in the compiler output.
13134 if test "$p" = "conftest.$objext"; then
13135 pre_test_object_deps_done=yes
13136 continue
13139 if test "$pre_test_object_deps_done" = no; then
13140 if test -z "$predep_objects_CXX"; then
13141 predep_objects_CXX="$p"
13142 else
13143 predep_objects_CXX="$predep_objects_CXX $p"
13145 else
13146 if test -z "$postdep_objects_CXX"; then
13147 postdep_objects_CXX="$p"
13148 else
13149 postdep_objects_CXX="$postdep_objects_CXX $p"
13154 *) ;; # Ignore the rest.
13156 esac
13157 done
13159 # Clean up.
13160 rm -f a.out a.exe
13161 else
13162 echo "libtool.m4: error: problem compiling CXX test program"
13165 $RM -f confest.$objext
13167 # PORTME: override above test on systems where it is broken
13168 case $host_os in
13169 interix[3-9]*)
13170 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13171 # hack all around it, let's just trust "g++" to DTRT.
13172 predep_objects_CXX=
13173 postdep_objects_CXX=
13174 postdeps_CXX=
13177 linux*)
13178 case `$CC -V 2>&1 | sed 5q` in
13179 *Sun\ C*)
13180 # Sun C++ 5.9
13182 # The more standards-conforming stlport4 library is
13183 # incompatible with the Cstd library. Avoid specifying
13184 # it if it's in CXXFLAGS. Ignore libCrun as
13185 # -library=stlport4 depends on it.
13186 case " $CXX $CXXFLAGS " in
13187 *" -library=stlport4 "*)
13188 solaris_use_stlport4=yes
13190 esac
13192 if test "$solaris_use_stlport4" != yes; then
13193 postdeps_CXX='-library=Cstd -library=Crun'
13196 esac
13199 solaris*)
13200 case $cc_basename in
13201 CC*)
13202 # The more standards-conforming stlport4 library is
13203 # incompatible with the Cstd library. Avoid specifying
13204 # it if it's in CXXFLAGS. Ignore libCrun as
13205 # -library=stlport4 depends on it.
13206 case " $CXX $CXXFLAGS " in
13207 *" -library=stlport4 "*)
13208 solaris_use_stlport4=yes
13210 esac
13212 # Adding this requires a known-good setup of shared libraries for
13213 # Sun compiler versions before 5.6, else PIC objects from an old
13214 # archive will be linked into the output, leading to subtle bugs.
13215 if test "$solaris_use_stlport4" != yes; then
13216 postdeps_CXX='-library=Cstd -library=Crun'
13219 esac
13221 esac
13224 case " $postdeps_CXX " in
13225 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13226 esac
13227 compiler_lib_search_dirs_CXX=
13228 if test -n "${compiler_lib_search_path_CXX}"; then
13229 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13262 lt_prog_compiler_wl_CXX=
13263 lt_prog_compiler_pic_CXX=
13264 lt_prog_compiler_static_CXX=
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13269 # C++ specific cases for pic, static, wl, etc.
13270 if test "$GXX" = yes; then
13271 lt_prog_compiler_wl_CXX='-Wl,'
13272 lt_prog_compiler_static_CXX='-static'
13274 case $host_os in
13275 aix*)
13276 # All AIX code is PIC.
13277 if test "$host_cpu" = ia64; then
13278 # AIX 5 now supports IA64 processor
13279 lt_prog_compiler_static_CXX='-Bstatic'
13281 lt_prog_compiler_pic_CXX='-fPIC'
13284 amigaos*)
13285 case $host_cpu in
13286 powerpc)
13287 # see comment about AmigaOS4 .so support
13288 lt_prog_compiler_pic_CXX='-fPIC'
13290 m68k)
13291 # FIXME: we need at least 68020 code to build shared libraries, but
13292 # adding the `-m68020' flag to GCC prevents building anything better,
13293 # like `-m68040'.
13294 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13296 esac
13299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13300 # PIC is the default for these OSes.
13302 mingw* | cygwin* | os2* | pw32* | cegcc*)
13303 # This hack is so that the source file can tell whether it is being
13304 # built for inclusion in a dll (and should export symbols for example).
13305 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13306 # (--disable-auto-import) libraries
13307 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13309 darwin* | rhapsody*)
13310 # PIC is the default on this platform
13311 # Common symbols not allowed in MH_DYLIB files
13312 lt_prog_compiler_pic_CXX='-fno-common'
13314 *djgpp*)
13315 # DJGPP does not support shared libraries at all
13316 lt_prog_compiler_pic_CXX=
13318 haiku*)
13319 # PIC is the default for Haiku.
13320 # The "-static" flag exists, but is broken.
13321 lt_prog_compiler_static_CXX=
13323 interix[3-9]*)
13324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13325 # Instead, we relocate shared libraries at runtime.
13327 sysv4*MP*)
13328 if test -d /usr/nec; then
13329 lt_prog_compiler_pic_CXX=-Kconform_pic
13332 hpux*)
13333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13335 # sets the default TLS model and affects inlining.
13336 case $host_cpu in
13337 hppa*64*)
13340 lt_prog_compiler_pic_CXX='-fPIC'
13342 esac
13344 *qnx* | *nto*)
13345 # QNX uses GNU C++, but need to define -shared option too, otherwise
13346 # it will coredump.
13347 lt_prog_compiler_pic_CXX='-fPIC -shared'
13350 lt_prog_compiler_pic_CXX='-fPIC'
13352 esac
13353 else
13354 case $host_os in
13355 aix[4-9]*)
13356 # All AIX code is PIC.
13357 if test "$host_cpu" = ia64; then
13358 # AIX 5 now supports IA64 processor
13359 lt_prog_compiler_static_CXX='-Bstatic'
13360 else
13361 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13364 chorus*)
13365 case $cc_basename in
13366 cxch68*)
13367 # Green Hills C++ Compiler
13368 # _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"
13370 esac
13372 dgux*)
13373 case $cc_basename in
13374 ec++*)
13375 lt_prog_compiler_pic_CXX='-KPIC'
13377 ghcx*)
13378 # Green Hills C++ Compiler
13379 lt_prog_compiler_pic_CXX='-pic'
13383 esac
13385 freebsd* | dragonfly*)
13386 # FreeBSD uses GNU C++
13388 hpux9* | hpux10* | hpux11*)
13389 case $cc_basename in
13390 CC*)
13391 lt_prog_compiler_wl_CXX='-Wl,'
13392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13393 if test "$host_cpu" != ia64; then
13394 lt_prog_compiler_pic_CXX='+Z'
13397 aCC*)
13398 lt_prog_compiler_wl_CXX='-Wl,'
13399 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13400 case $host_cpu in
13401 hppa*64*|ia64*)
13402 # +Z the default
13405 lt_prog_compiler_pic_CXX='+Z'
13407 esac
13411 esac
13413 interix*)
13414 # This is c89, which is MS Visual C++ (no shared libs)
13415 # Anyone wants to do a port?
13417 irix5* | irix6* | nonstopux*)
13418 case $cc_basename in
13419 CC*)
13420 lt_prog_compiler_wl_CXX='-Wl,'
13421 lt_prog_compiler_static_CXX='-non_shared'
13422 # CC pic flag -KPIC is the default.
13426 esac
13428 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13429 case $cc_basename in
13430 KCC*)
13431 # KAI C++ Compiler
13432 lt_prog_compiler_wl_CXX='--backend -Wl,'
13433 lt_prog_compiler_pic_CXX='-fPIC'
13435 ecpc* )
13436 # old Intel C++ for x86_64 which still supported -KPIC.
13437 lt_prog_compiler_wl_CXX='-Wl,'
13438 lt_prog_compiler_pic_CXX='-KPIC'
13439 lt_prog_compiler_static_CXX='-static'
13441 icpc* )
13442 # Intel C++, used to be incompatible with GCC.
13443 # ICC 10 doesn't accept -KPIC any more.
13444 lt_prog_compiler_wl_CXX='-Wl,'
13445 lt_prog_compiler_pic_CXX='-fPIC'
13446 lt_prog_compiler_static_CXX='-static'
13448 pgCC* | pgcpp*)
13449 # Portland Group C++ compiler
13450 lt_prog_compiler_wl_CXX='-Wl,'
13451 lt_prog_compiler_pic_CXX='-fpic'
13452 lt_prog_compiler_static_CXX='-Bstatic'
13454 cxx*)
13455 # Compaq C++
13456 # Make sure the PIC flag is empty. It appears that all Alpha
13457 # Linux and Compaq Tru64 Unix objects are PIC.
13458 lt_prog_compiler_pic_CXX=
13459 lt_prog_compiler_static_CXX='-non_shared'
13461 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13462 # IBM XL 8.0, 9.0 on PPC and BlueGene
13463 lt_prog_compiler_wl_CXX='-Wl,'
13464 lt_prog_compiler_pic_CXX='-qpic'
13465 lt_prog_compiler_static_CXX='-qstaticlink'
13468 case `$CC -V 2>&1 | sed 5q` in
13469 *Sun\ C*)
13470 # Sun C++ 5.9
13471 lt_prog_compiler_pic_CXX='-KPIC'
13472 lt_prog_compiler_static_CXX='-Bstatic'
13473 lt_prog_compiler_wl_CXX='-Qoption ld '
13475 esac
13477 esac
13479 lynxos*)
13481 m88k*)
13483 mvs*)
13484 case $cc_basename in
13485 cxx*)
13486 lt_prog_compiler_pic_CXX='-W c,exportall'
13490 esac
13492 netbsd*)
13494 *qnx* | *nto*)
13495 # QNX uses GNU C++, but need to define -shared option too, otherwise
13496 # it will coredump.
13497 lt_prog_compiler_pic_CXX='-fPIC -shared'
13499 osf3* | osf4* | osf5*)
13500 case $cc_basename in
13501 KCC*)
13502 lt_prog_compiler_wl_CXX='--backend -Wl,'
13504 RCC*)
13505 # Rational C++ 2.4.1
13506 lt_prog_compiler_pic_CXX='-pic'
13508 cxx*)
13509 # Digital/Compaq C++
13510 lt_prog_compiler_wl_CXX='-Wl,'
13511 # Make sure the PIC flag is empty. It appears that all Alpha
13512 # Linux and Compaq Tru64 Unix objects are PIC.
13513 lt_prog_compiler_pic_CXX=
13514 lt_prog_compiler_static_CXX='-non_shared'
13518 esac
13520 psos*)
13522 solaris*)
13523 case $cc_basename in
13524 CC*)
13525 # Sun C++ 4.2, 5.x and Centerline C++
13526 lt_prog_compiler_pic_CXX='-KPIC'
13527 lt_prog_compiler_static_CXX='-Bstatic'
13528 lt_prog_compiler_wl_CXX='-Qoption ld '
13530 gcx*)
13531 # Green Hills C++ Compiler
13532 lt_prog_compiler_pic_CXX='-PIC'
13536 esac
13538 sunos4*)
13539 case $cc_basename in
13540 CC*)
13541 # Sun C++ 4.x
13542 lt_prog_compiler_pic_CXX='-pic'
13543 lt_prog_compiler_static_CXX='-Bstatic'
13545 lcc*)
13546 # Lucid
13547 lt_prog_compiler_pic_CXX='-pic'
13551 esac
13553 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13554 case $cc_basename in
13555 CC*)
13556 lt_prog_compiler_wl_CXX='-Wl,'
13557 lt_prog_compiler_pic_CXX='-KPIC'
13558 lt_prog_compiler_static_CXX='-Bstatic'
13560 esac
13562 tandem*)
13563 case $cc_basename in
13564 NCC*)
13565 # NonStop-UX NCC 3.20
13566 lt_prog_compiler_pic_CXX='-KPIC'
13570 esac
13572 vxworks*)
13575 lt_prog_compiler_can_build_shared_CXX=no
13577 esac
13580 case $host_os in
13581 # For platforms which do not support PIC, -DPIC is meaningless:
13582 *djgpp*)
13583 lt_prog_compiler_pic_CXX=
13586 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13588 esac
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13590 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13595 # Check to make sure the PIC flag actually works.
13597 if test -n "$lt_prog_compiler_pic_CXX"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13599 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13600 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 lt_cv_prog_compiler_pic_works_CXX=no
13604 ac_outfile=conftest.$ac_objext
13605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13606 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13607 # Insert the option either (1) after the last *FLAGS variable, or
13608 # (2) before a word containing "conftest.", or (3) at the end.
13609 # Note that $ac_compile itself does not contain backslashes and begins
13610 # with a dollar sign (not a hyphen), so the echo should work correctly.
13611 # The option is referenced via a variable to avoid confusing sed.
13612 lt_compile=`echo "$ac_compile" | $SED \
13613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13615 -e 's:$: $lt_compiler_flag:'`
13616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13617 (eval "$lt_compile" 2>conftest.err)
13618 ac_status=$?
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 if (exit $ac_status) && test -s "$ac_outfile"; then
13622 # The compiler can only warn and ignore the option if not recognized
13623 # So say no if there are warnings other than the usual output.
13624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13627 lt_cv_prog_compiler_pic_works_CXX=yes
13630 $RM conftest*
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13634 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13636 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13637 case $lt_prog_compiler_pic_CXX in
13638 "" | " "*) ;;
13639 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13640 esac
13641 else
13642 lt_prog_compiler_pic_CXX=
13643 lt_prog_compiler_can_build_shared_CXX=no
13651 # Check to make sure the static flag actually works.
13653 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13656 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 lt_cv_prog_compiler_static_works_CXX=no
13660 save_LDFLAGS="$LDFLAGS"
13661 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13664 # The linker can only warn and ignore the option if not recognized
13665 # So say no if there are warnings
13666 if test -s conftest.err; then
13667 # Append any errors to the config.log.
13668 cat conftest.err 1>&5
13669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13671 if diff conftest.exp conftest.er2 >/dev/null; then
13672 lt_cv_prog_compiler_static_works_CXX=yes
13674 else
13675 lt_cv_prog_compiler_static_works_CXX=yes
13678 $RM -r conftest*
13679 LDFLAGS="$save_LDFLAGS"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13683 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13685 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13687 else
13688 lt_prog_compiler_static_CXX=
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13696 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 lt_cv_prog_compiler_c_o_CXX=no
13700 $RM -r conftest 2>/dev/null
13701 mkdir conftest
13702 cd conftest
13703 mkdir out
13704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13706 lt_compiler_flag="-o out/conftest2.$ac_objext"
13707 # Insert the option either (1) after the last *FLAGS variable, or
13708 # (2) before a word containing "conftest.", or (3) at the end.
13709 # Note that $ac_compile itself does not contain backslashes and begins
13710 # with a dollar sign (not a hyphen), so the echo should work correctly.
13711 lt_compile=`echo "$ac_compile" | $SED \
13712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13714 -e 's:$: $lt_compiler_flag:'`
13715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13716 (eval "$lt_compile" 2>out/conftest.err)
13717 ac_status=$?
13718 cat out/conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13721 then
13722 # The compiler can only warn and ignore the option if not recognized
13723 # So say no if there are warnings
13724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13727 lt_cv_prog_compiler_c_o_CXX=yes
13730 chmod u+w . 2>&5
13731 $RM conftest*
13732 # SGI C++ compiler will create directory out/ii_files/ for
13733 # template instantiation
13734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13735 $RM out/* && rmdir out
13736 cd ..
13737 $RM -r conftest
13738 $RM conftest*
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13742 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13748 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 lt_cv_prog_compiler_c_o_CXX=no
13752 $RM -r conftest 2>/dev/null
13753 mkdir conftest
13754 cd conftest
13755 mkdir out
13756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13758 lt_compiler_flag="-o out/conftest2.$ac_objext"
13759 # Insert the option either (1) after the last *FLAGS variable, or
13760 # (2) before a word containing "conftest.", or (3) at the end.
13761 # Note that $ac_compile itself does not contain backslashes and begins
13762 # with a dollar sign (not a hyphen), so the echo should work correctly.
13763 lt_compile=`echo "$ac_compile" | $SED \
13764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13766 -e 's:$: $lt_compiler_flag:'`
13767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13768 (eval "$lt_compile" 2>out/conftest.err)
13769 ac_status=$?
13770 cat out/conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13773 then
13774 # The compiler can only warn and ignore the option if not recognized
13775 # So say no if there are warnings
13776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13779 lt_cv_prog_compiler_c_o_CXX=yes
13782 chmod u+w . 2>&5
13783 $RM conftest*
13784 # SGI C++ compiler will create directory out/ii_files/ for
13785 # template instantiation
13786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13787 $RM out/* && rmdir out
13788 cd ..
13789 $RM -r conftest
13790 $RM conftest*
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13794 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13799 hard_links="nottested"
13800 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13801 # do not overwrite the value of need_locks provided by the user
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13803 $as_echo_n "checking if we can lock with hard links... " >&6; }
13804 hard_links=yes
13805 $RM conftest*
13806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13807 touch conftest.a
13808 ln conftest.a conftest.b 2>&5 || hard_links=no
13809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13811 $as_echo "$hard_links" >&6; }
13812 if test "$hard_links" = no; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13815 need_locks=warn
13817 else
13818 need_locks=no
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13826 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13827 case $host_os in
13828 aix[4-9]*)
13829 # If we're using GNU nm, then we don't want the "-C" option.
13830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13831 # Also, AIX nm treats weak defined symbols like other global defined
13832 # symbols, whereas GNU nm marks them as "W".
13833 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13834 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'
13835 else
13836 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13839 pw32*)
13840 export_symbols_cmds_CXX="$ltdll_cmds"
13842 cygwin* | mingw* | cegcc*)
13843 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'
13846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13848 esac
13849 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13852 $as_echo "$ld_shlibs_CXX" >&6; }
13853 test "$ld_shlibs_CXX" = no && can_build_shared=no
13855 with_gnu_ld_CXX=$with_gnu_ld
13863 # Do we need to explicitly link libc?
13865 case "x$archive_cmds_need_lc_CXX" in
13866 x|xyes)
13867 # Assume -lc should be added
13868 archive_cmds_need_lc_CXX=yes
13870 if test "$enable_shared" = yes && test "$GCC" = yes; then
13871 case $archive_cmds_CXX in
13872 *'~'*)
13873 # FIXME: we may have to deal with multi-command sequences.
13875 '$CC '*)
13876 # Test whether the compiler implicitly links with -lc since on some
13877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13878 # to ld, don't add -lc before -lgcc.
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13881 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 $RM conftest*
13885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891 test $ac_status = 0; } 2>conftest.err; then
13892 soname=conftest
13893 lib=conftest
13894 libobjs=conftest.$ac_objext
13895 deplibs=
13896 wl=$lt_prog_compiler_wl_CXX
13897 pic_flag=$lt_prog_compiler_pic_CXX
13898 compiler_flags=-v
13899 linker_flags=-v
13900 verstring=
13901 output_objdir=.
13902 libname=conftest
13903 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13904 allow_undefined_flag_CXX=
13905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13906 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13907 ac_status=$?
13908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909 test $ac_status = 0; }
13910 then
13911 lt_cv_archive_cmds_need_lc_CXX=no
13912 else
13913 lt_cv_archive_cmds_need_lc_CXX=yes
13915 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13916 else
13917 cat conftest.err 1>&5
13919 $RM conftest*
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13923 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13924 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13926 esac
13929 esac
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13997 library_names_spec=
13998 libname_spec='lib$name'
13999 soname_spec=
14000 shrext_cmds=".so"
14001 postinstall_cmds=
14002 postuninstall_cmds=
14003 finish_cmds=
14004 finish_eval=
14005 shlibpath_var=
14006 shlibpath_overrides_runpath=unknown
14007 version_type=none
14008 dynamic_linker="$host_os ld.so"
14009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14010 need_lib_prefix=unknown
14011 hardcode_into_libs=no
14013 # when you set need_version to no, make sure it does not cause -set_version
14014 # flags to be left without arguments
14015 need_version=unknown
14017 case $host_os in
14018 aix3*)
14019 version_type=linux
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14021 shlibpath_var=LIBPATH
14023 # AIX 3 has no versioning support, so we append a major version to the name.
14024 soname_spec='${libname}${release}${shared_ext}$major'
14027 aix[4-9]*)
14028 version_type=linux
14029 need_lib_prefix=no
14030 need_version=no
14031 hardcode_into_libs=yes
14032 if test "$host_cpu" = ia64; then
14033 # AIX 5 supports IA64
14034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 else
14037 # With GCC up to 2.95.x, collect2 would create an import file
14038 # for dependence libraries. The import file would start with
14039 # the line `#! .'. This would cause the generated library to
14040 # depend on `.', always an invalid library. This was fixed in
14041 # development snapshots of GCC prior to 3.0.
14042 case $host_os in
14043 aix4 | aix4.[01] | aix4.[01].*)
14044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14045 echo ' yes '
14046 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14048 else
14049 can_build_shared=no
14052 esac
14053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14054 # soname into executable. Probably we can add versioning support to
14055 # collect2, so additional links can be useful in future.
14056 if test "$aix_use_runtimelinking" = yes; then
14057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14058 # instead of lib<name>.a to let people know that these are not
14059 # typical AIX shared libraries.
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14061 else
14062 # We preserve .a as extension for shared libraries through AIX4.2
14063 # and later when we are not doing run time linking.
14064 library_names_spec='${libname}${release}.a $libname.a'
14065 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LIBPATH
14071 amigaos*)
14072 case $host_cpu in
14073 powerpc)
14074 # Since July 2007 AmigaOS4 officially supports .so libraries.
14075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078 m68k)
14079 library_names_spec='$libname.ixlibrary $libname.a'
14080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14081 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'
14083 esac
14086 beos*)
14087 library_names_spec='${libname}${shared_ext}'
14088 dynamic_linker="$host_os ld.so"
14089 shlibpath_var=LIBRARY_PATH
14092 bsdi[45]*)
14093 version_type=linux
14094 need_version=no
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14098 shlibpath_var=LD_LIBRARY_PATH
14099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14101 # the default ld.so.conf also contains /usr/contrib/lib and
14102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14103 # libtool to hard-code these into programs
14106 cygwin* | mingw* | pw32* | cegcc*)
14107 version_type=windows
14108 shrext_cmds=".dll"
14109 need_version=no
14110 need_lib_prefix=no
14112 case $GCC,$host_os in
14113 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14114 library_names_spec='$libname.dll.a'
14115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14116 postinstall_cmds='base_file=`basename \${file}`~
14117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14118 dldir=$destdir/`dirname \$dlpath`~
14119 test -d \$dldir || mkdir -p \$dldir~
14120 $install_prog $dir/$dlname \$dldir/$dlname~
14121 chmod a+x \$dldir/$dlname~
14122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14123 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14126 dlpath=$dir/\$dldll~
14127 $RM \$dlpath'
14128 shlibpath_overrides_runpath=yes
14130 case $host_os in
14131 cygwin*)
14132 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14133 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14136 mingw* | cegcc*)
14137 # MinGW DLLs use traditional 'lib' prefix
14138 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140 pw32*)
14141 # pw32 DLLs use 'pw' prefix rather than 'lib'
14142 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14144 esac
14148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14150 esac
14151 dynamic_linker='Win32 ld.exe'
14152 # FIXME: first we should search . and the directory the executable is in
14153 shlibpath_var=PATH
14156 darwin* | rhapsody*)
14157 dynamic_linker="$host_os dyld"
14158 version_type=darwin
14159 need_lib_prefix=no
14160 need_version=no
14161 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14162 soname_spec='${libname}${release}${major}$shared_ext'
14163 shlibpath_overrides_runpath=yes
14164 shlibpath_var=DYLD_LIBRARY_PATH
14165 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14170 dgux*)
14171 version_type=linux
14172 need_lib_prefix=no
14173 need_version=no
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14175 soname_spec='${libname}${release}${shared_ext}$major'
14176 shlibpath_var=LD_LIBRARY_PATH
14179 freebsd* | dragonfly*)
14180 # DragonFly does not have aout. When/if they implement a new
14181 # versioning mechanism, adjust this.
14182 if test -x /usr/bin/objformat; then
14183 objformat=`/usr/bin/objformat`
14184 else
14185 case $host_os in
14186 freebsd[23].*) objformat=aout ;;
14187 *) objformat=elf ;;
14188 esac
14190 version_type=freebsd-$objformat
14191 case $version_type in
14192 freebsd-elf*)
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14194 need_version=no
14195 need_lib_prefix=no
14197 freebsd-*)
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14199 need_version=yes
14201 esac
14202 shlibpath_var=LD_LIBRARY_PATH
14203 case $host_os in
14204 freebsd2.*)
14205 shlibpath_overrides_runpath=yes
14207 freebsd3.[01]* | freebsdelf3.[01]*)
14208 shlibpath_overrides_runpath=yes
14209 hardcode_into_libs=yes
14211 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14212 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14213 shlibpath_overrides_runpath=no
14214 hardcode_into_libs=yes
14216 *) # from 4.6 on, and DragonFly
14217 shlibpath_overrides_runpath=yes
14218 hardcode_into_libs=yes
14220 esac
14223 gnu*)
14224 version_type=linux
14225 need_lib_prefix=no
14226 need_version=no
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 hardcode_into_libs=yes
14233 haiku*)
14234 version_type=linux
14235 need_lib_prefix=no
14236 need_version=no
14237 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
14241 shlibpath_overrides_runpath=yes
14242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14243 hardcode_into_libs=yes
14246 hpux9* | hpux10* | hpux11*)
14247 # Give a soname corresponding to the major version so that dld.sl refuses to
14248 # link against other versions.
14249 version_type=sunos
14250 need_lib_prefix=no
14251 need_version=no
14252 case $host_cpu in
14253 ia64*)
14254 shrext_cmds='.so'
14255 hardcode_into_libs=yes
14256 dynamic_linker="$host_os dld.so"
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 if test "X$HPUX_IA64_MODE" = X32; then
14262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14263 else
14264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14268 hppa*64*)
14269 shrext_cmds='.sl'
14270 hardcode_into_libs=yes
14271 dynamic_linker="$host_os dld.sl"
14272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14280 shrext_cmds='.sl'
14281 dynamic_linker="$host_os dld.sl"
14282 shlibpath_var=SHLIB_PATH
14283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14287 esac
14288 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14289 postinstall_cmds='chmod 555 $lib'
14290 # or fails outright, so override atomically:
14291 install_override_mode=555
14294 interix[3-9]*)
14295 version_type=linux
14296 need_lib_prefix=no
14297 need_version=no
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath=no
14303 hardcode_into_libs=yes
14306 irix5* | irix6* | nonstopux*)
14307 case $host_os in
14308 nonstopux*) version_type=nonstopux ;;
14310 if test "$lt_cv_prog_gnu_ld" = yes; then
14311 version_type=linux
14312 else
14313 version_type=irix
14314 fi ;;
14315 esac
14316 need_lib_prefix=no
14317 need_version=no
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14320 case $host_os in
14321 irix5* | nonstopux*)
14322 libsuff= shlibsuff=
14325 case $LD in # libtool.m4 will add one of these switches to LD
14326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14327 libsuff= shlibsuff= libmagic=32-bit;;
14328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14329 libsuff=32 shlibsuff=N32 libmagic=N32;;
14330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14332 *) libsuff= shlibsuff= libmagic=never-match;;
14333 esac
14335 esac
14336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14337 shlibpath_overrides_runpath=no
14338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14340 hardcode_into_libs=yes
14343 # No shared lib support for Linux oldld, aout, or coff.
14344 linux*oldld* | linux*aout* | linux*coff*)
14345 dynamic_linker=no
14348 # This must be Linux ELF.
14349 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14350 version_type=linux
14351 need_lib_prefix=no
14352 need_version=no
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 soname_spec='${libname}${release}${shared_ext}$major'
14355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14359 # Some binutils ld are patched to set DT_RUNPATH
14360 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 lt_cv_shlibpath_overrides_runpath=no
14364 save_LDFLAGS=$LDFLAGS
14365 save_libdir=$libdir
14366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14372 main ()
14376 return 0;
14378 _ACEOF
14379 if ac_fn_cxx_try_link "$LINENO"; then :
14380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14381 lt_cv_shlibpath_overrides_runpath=yes
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14386 LDFLAGS=$save_LDFLAGS
14387 libdir=$save_libdir
14391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14393 # This implies no fast_install, which is unacceptable.
14394 # Some rework will be needed to allow for fast_install
14395 # before this can be enabled.
14396 hardcode_into_libs=yes
14398 # Append ld.so.conf contents to the search path
14399 if test -f /etc/ld.so.conf; then
14400 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' ' '`
14401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14404 # We used to test for /lib/ld.so.1 and disable shared libraries on
14405 # powerpc, because MkLinux only supported shared libraries with the
14406 # GNU dynamic linker. Since this was broken with cross compilers,
14407 # most powerpc-linux boxes support dynamic linking these days and
14408 # people can always --disable-shared, the test was removed, and we
14409 # assume the GNU/Linux dynamic linker is in use.
14410 dynamic_linker='GNU/Linux ld.so'
14413 netbsd*)
14414 version_type=sunos
14415 need_lib_prefix=no
14416 need_version=no
14417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14420 dynamic_linker='NetBSD (a.out) ld.so'
14421 else
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 dynamic_linker='NetBSD ld.elf_so'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 shlibpath_overrides_runpath=yes
14428 hardcode_into_libs=yes
14431 newsos6)
14432 version_type=linux
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes
14438 *nto* | *qnx*)
14439 version_type=qnx
14440 need_lib_prefix=no
14441 need_version=no
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 shlibpath_var=LD_LIBRARY_PATH
14445 shlibpath_overrides_runpath=no
14446 hardcode_into_libs=yes
14447 dynamic_linker='ldqnx.so'
14450 openbsd*)
14451 version_type=sunos
14452 sys_lib_dlsearch_path_spec="/usr/lib"
14453 need_lib_prefix=no
14454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14455 case $host_os in
14456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14457 *) need_version=no ;;
14458 esac
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14463 case $host_os in
14464 openbsd2.[89] | openbsd2.[89].*)
14465 shlibpath_overrides_runpath=no
14468 shlibpath_overrides_runpath=yes
14470 esac
14471 else
14472 shlibpath_overrides_runpath=yes
14476 os2*)
14477 libname_spec='$name'
14478 shrext_cmds=".dll"
14479 need_lib_prefix=no
14480 library_names_spec='$libname${shared_ext} $libname.a'
14481 dynamic_linker='OS/2 ld.exe'
14482 shlibpath_var=LIBPATH
14485 osf3* | osf4* | osf5*)
14486 version_type=osf
14487 need_lib_prefix=no
14488 need_version=no
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14496 rdos*)
14497 dynamic_linker=no
14500 solaris*)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 shlibpath_overrides_runpath=yes
14508 hardcode_into_libs=yes
14509 # ldd complains unless libraries are executable
14510 postinstall_cmds='chmod +x $lib'
14513 sunos4*)
14514 version_type=sunos
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 if test "$with_gnu_ld" = yes; then
14520 need_lib_prefix=no
14522 need_version=yes
14525 sysv4 | sysv4.3*)
14526 version_type=linux
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 case $host_vendor in
14531 sni)
14532 shlibpath_overrides_runpath=no
14533 need_lib_prefix=no
14534 runpath_var=LD_RUN_PATH
14536 siemens)
14537 need_lib_prefix=no
14539 motorola)
14540 need_lib_prefix=no
14541 need_version=no
14542 shlibpath_overrides_runpath=no
14543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14545 esac
14548 sysv4*MP*)
14549 if test -d /usr/nec ;then
14550 version_type=linux
14551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14552 soname_spec='$libname${shared_ext}.$major'
14553 shlibpath_var=LD_LIBRARY_PATH
14557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14558 version_type=freebsd-elf
14559 need_lib_prefix=no
14560 need_version=no
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath=yes
14565 hardcode_into_libs=yes
14566 if test "$with_gnu_ld" = yes; then
14567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14568 else
14569 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14570 case $host_os in
14571 sco3.2v5*)
14572 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14574 esac
14576 sys_lib_dlsearch_path_spec='/usr/lib'
14579 tpf*)
14580 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14581 version_type=linux
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 shlibpath_overrides_runpath=no
14587 hardcode_into_libs=yes
14590 uts4*)
14591 version_type=linux
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 shlibpath_var=LD_LIBRARY_PATH
14598 dynamic_linker=no
14600 esac
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14602 $as_echo "$dynamic_linker" >&6; }
14603 test "$dynamic_linker" = no && can_build_shared=no
14605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14606 if test "$GCC" = yes; then
14607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14610 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14611 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14613 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14614 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14656 hardcode_action_CXX=
14657 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14658 test -n "$runpath_var_CXX" ||
14659 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14661 # We can hardcode non-existent directories.
14662 if test "$hardcode_direct_CXX" != no &&
14663 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14664 # have to relink, otherwise we might link with an installed library
14665 # when we should be linking with a yet-to-be-installed one
14666 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14667 test "$hardcode_minus_L_CXX" != no; then
14668 # Linking always hardcodes the temporary library directory.
14669 hardcode_action_CXX=relink
14670 else
14671 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14672 hardcode_action_CXX=immediate
14674 else
14675 # We cannot hardcode anything, or else we can only hardcode existing
14676 # directories.
14677 hardcode_action_CXX=unsupported
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14680 $as_echo "$hardcode_action_CXX" >&6; }
14682 if test "$hardcode_action_CXX" = relink ||
14683 test "$inherit_rpath_CXX" = yes; then
14684 # Fast installation is not supported
14685 enable_fast_install=no
14686 elif test "$shlibpath_overrides_runpath" = yes ||
14687 test "$enable_shared" = no; then
14688 # Fast installation is not necessary
14689 enable_fast_install=needless
14698 fi # test -n "$compiler"
14700 CC=$lt_save_CC
14701 LDCXX=$LD
14702 LD=$lt_save_LD
14703 GCC=$lt_save_GCC
14704 with_gnu_ld=$lt_save_with_gnu_ld
14705 lt_cv_path_LDCXX=$lt_cv_path_LD
14706 lt_cv_path_LD=$lt_save_path_LD
14707 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14708 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14709 fi # test "$_lt_caught_CXX_error" != yes
14711 ac_ext=c
14712 ac_cpp='$CPP $CPPFLAGS'
14713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729 ac_config_commands="$ac_config_commands libtool"
14734 # Only expand once:
14738 # Test for 64-bit build.
14739 # The cast to long int works around a bug in the HP C Compiler
14740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14742 # This bug is HP SR number 8606223364.
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14744 $as_echo_n "checking size of size_t... " >&6; }
14745 if test "${ac_cv_sizeof_size_t+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14750 else
14751 if test "$ac_cv_type_size_t" = yes; then
14752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14754 { as_fn_set_status 77
14755 as_fn_error "cannot compute sizeof (size_t)
14756 See \`config.log' for more details." "$LINENO" 5; }; }
14757 else
14758 ac_cv_sizeof_size_t=0
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14764 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14768 cat >>confdefs.h <<_ACEOF
14769 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14770 _ACEOF
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14776 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14777 # Check whether --enable-maintainer-mode was given.
14778 if test "${enable_maintainer_mode+set}" = set; then :
14779 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14780 else
14781 USE_MAINTAINER_MODE=no
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14785 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14786 if test $USE_MAINTAINER_MODE = yes; then
14787 MAINTAINER_MODE_TRUE=
14788 MAINTAINER_MODE_FALSE='#'
14789 else
14790 MAINTAINER_MODE_TRUE='#'
14791 MAINTAINER_MODE_FALSE=
14794 MAINT=$MAINTAINER_MODE_TRUE
14798 for ac_header in sys/mman.h
14799 do :
14800 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14801 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14802 cat >>confdefs.h <<_ACEOF
14803 #define HAVE_SYS_MMAN_H 1
14804 _ACEOF
14808 done
14810 for ac_func in mmap mkostemp
14811 do :
14812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14814 eval as_val=\$$as_ac_var
14815 if test "x$as_val" = x""yes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 _ACEOF
14821 done
14824 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14826 libffi_header_sys_mman_h=yes
14827 else
14828 libffi_header_sys_mman_h=no
14832 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14833 if test "x$ac_cv_func_mmap" = x""yes; then :
14834 libffi_func_mmap=yes
14835 else
14836 libffi_func_mmap=no
14839 if test "$libffi_header_sys_mman_h" != yes \
14840 || test "$libffi_func_mmap" != yes; then
14841 ac_cv_func_mmap_file=no
14842 ac_cv_func_mmap_dev_zero=no
14843 ac_cv_func_mmap_anon=no
14844 else
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14846 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14847 if test "${ac_cv_func_mmap_file+set}" = set; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 # Add a system to this blacklist if
14851 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14852 # memory area containing the same data that you'd get if you applied
14853 # read() to the same fd. The only system known to have a problem here
14854 # is VMS, where text files have record structure.
14855 case "$host_os" in
14856 vms* | ultrix*)
14857 ac_cv_func_mmap_file=no ;;
14859 ac_cv_func_mmap_file=yes;;
14860 esac
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14863 $as_echo "$ac_cv_func_mmap_file" >&6; }
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14865 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14866 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868 else
14869 # Add a system to this blacklist if it has mmap() but /dev/zero
14870 # does not exist, or if mmapping /dev/zero does not give anonymous
14871 # zeroed pages with both the following properties:
14872 # 1. If you map N consecutive pages in with one call, and then
14873 # unmap any subset of those pages, the pages that were not
14874 # explicitly unmapped remain accessible.
14875 # 2. If you map two adjacent blocks of memory and then unmap them
14876 # both at once, they must both go away.
14877 # Systems known to be in this category are Windows (all variants),
14878 # VMS, and Darwin.
14879 case "$host_os" in
14880 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
14881 ac_cv_func_mmap_dev_zero=no ;;
14883 ac_cv_func_mmap_dev_zero=yes;;
14884 esac
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14887 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
14889 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14891 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14892 if test "${ac_cv_decl_map_anon+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 #include <sys/mman.h>
14899 #include <unistd.h>
14901 #ifndef MAP_ANONYMOUS
14902 #define MAP_ANONYMOUS MAP_ANON
14903 #endif
14906 main ()
14908 int n = MAP_ANONYMOUS;
14910 return 0;
14912 _ACEOF
14913 if ac_fn_c_try_compile "$LINENO"; then :
14914 ac_cv_decl_map_anon=yes
14915 else
14916 ac_cv_decl_map_anon=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14921 $as_echo "$ac_cv_decl_map_anon" >&6; }
14923 if test $ac_cv_decl_map_anon = no; then
14924 ac_cv_func_mmap_anon=no
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14927 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14928 if test "${ac_cv_func_mmap_anon+set}" = set; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14932 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14933 # doesn't give anonymous zeroed pages with the same properties listed
14934 # above for use of /dev/zero.
14935 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14936 case "$host_os" in
14937 vms* | cygwin* | pe | mingw* | sco* | udk* )
14938 ac_cv_func_mmap_anon=no ;;
14940 ac_cv_func_mmap_anon=yes;;
14941 esac
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14944 $as_echo "$ac_cv_func_mmap_anon" >&6; }
14948 if test $ac_cv_func_mmap_file = yes; then
14950 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
14953 if test $ac_cv_func_mmap_dev_zero = yes; then
14955 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
14958 if test $ac_cv_func_mmap_anon = yes; then
14960 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
14965 if test -d $srcdir/testsuite; then
14966 TESTSUBDIR_TRUE=
14967 TESTSUBDIR_FALSE='#'
14968 else
14969 TESTSUBDIR_TRUE='#'
14970 TESTSUBDIR_FALSE=
14974 TARGETDIR="unknown"
14975 HAVE_LONG_DOUBLE_VARIANT=0
14977 . ${srcdir}/configure.host
14979 if test -n "${UNSUPPORTED}"; then
14980 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14987 $as_echo_n "checking for ANSI C header files... " >&6; }
14988 if test "${ac_cv_header_stdc+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14990 else
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <stdlib.h>
14994 #include <stdarg.h>
14995 #include <string.h>
14996 #include <float.h>
14999 main ()
15003 return 0;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 ac_cv_header_stdc=yes
15008 else
15009 ac_cv_header_stdc=no
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 if test $ac_cv_header_stdc = yes; then
15014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 #include <string.h>
15019 _ACEOF
15020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15021 $EGREP "memchr" >/dev/null 2>&1; then :
15023 else
15024 ac_cv_header_stdc=no
15026 rm -f conftest*
15030 if test $ac_cv_header_stdc = yes; then
15031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <stdlib.h>
15036 _ACEOF
15037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038 $EGREP "free" >/dev/null 2>&1; then :
15040 else
15041 ac_cv_header_stdc=no
15043 rm -f conftest*
15047 if test $ac_cv_header_stdc = yes; then
15048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15049 if test "$cross_compiling" = yes; then :
15051 else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include <ctype.h>
15055 #include <stdlib.h>
15056 #if ((' ' & 0x0FF) == 0x020)
15057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15059 #else
15060 # define ISLOWER(c) \
15061 (('a' <= (c) && (c) <= 'i') \
15062 || ('j' <= (c) && (c) <= 'r') \
15063 || ('s' <= (c) && (c) <= 'z'))
15064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15065 #endif
15067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15069 main ()
15071 int i;
15072 for (i = 0; i < 256; i++)
15073 if (XOR (islower (i), ISLOWER (i))
15074 || toupper (i) != TOUPPER (i))
15075 return 2;
15076 return 0;
15078 _ACEOF
15079 if ac_fn_c_try_run "$LINENO"; then :
15081 else
15082 ac_cv_header_stdc=no
15084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15085 conftest.$ac_objext conftest.beam conftest.$ac_ext
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15091 $as_echo "$ac_cv_header_stdc" >&6; }
15092 if test $ac_cv_header_stdc = yes; then
15094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15098 for ac_func in memcpy
15099 do :
15100 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15101 if test "x$ac_cv_func_memcpy" = x""yes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_MEMCPY 1
15104 _ACEOF
15107 done
15109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15110 # for constant arguments. Useless!
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15112 $as_echo_n "checking for working alloca.h... " >&6; }
15113 if test "${ac_cv_working_alloca_h+set}" = set; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <alloca.h>
15120 main ()
15122 char *p = (char *) alloca (2 * sizeof (int));
15123 if (p) return 0;
15125 return 0;
15127 _ACEOF
15128 if ac_fn_c_try_link "$LINENO"; then :
15129 ac_cv_working_alloca_h=yes
15130 else
15131 ac_cv_working_alloca_h=no
15133 rm -f core conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15137 $as_echo "$ac_cv_working_alloca_h" >&6; }
15138 if test $ac_cv_working_alloca_h = yes; then
15140 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15145 $as_echo_n "checking for alloca... " >&6; }
15146 if test "${ac_cv_func_alloca_works+set}" = set; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151 #ifdef __GNUC__
15152 # define alloca __builtin_alloca
15153 #else
15154 # ifdef _MSC_VER
15155 # include <malloc.h>
15156 # define alloca _alloca
15157 # else
15158 # ifdef HAVE_ALLOCA_H
15159 # include <alloca.h>
15160 # else
15161 # ifdef _AIX
15162 #pragma alloca
15163 # else
15164 # ifndef alloca /* predefined by HP cc +Olibcalls */
15165 char *alloca ();
15166 # endif
15167 # endif
15168 # endif
15169 # endif
15170 #endif
15173 main ()
15175 char *p = (char *) alloca (1);
15176 if (p) return 0;
15178 return 0;
15180 _ACEOF
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 ac_cv_func_alloca_works=yes
15183 else
15184 ac_cv_func_alloca_works=no
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15190 $as_echo "$ac_cv_func_alloca_works" >&6; }
15192 if test $ac_cv_func_alloca_works = yes; then
15194 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15196 else
15197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15198 # that cause trouble. Some versions do not even contain alloca or
15199 # contain a buggy version. If you still want to use their alloca,
15200 # use ar to extract alloca.o from them instead of compiling alloca.c.
15202 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15204 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15208 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15209 if test "${ac_cv_os_cray+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #if defined CRAY && ! defined CRAY2
15215 webecray
15216 #else
15217 wenotbecray
15218 #endif
15220 _ACEOF
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "webecray" >/dev/null 2>&1; then :
15223 ac_cv_os_cray=yes
15224 else
15225 ac_cv_os_cray=no
15227 rm -f conftest*
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15231 $as_echo "$ac_cv_os_cray" >&6; }
15232 if test $ac_cv_os_cray = yes; then
15233 for ac_func in _getb67 GETB67 getb67; do
15234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15236 eval as_val=\$$as_ac_var
15237 if test "x$as_val" = x""yes; then :
15239 cat >>confdefs.h <<_ACEOF
15240 #define CRAY_STACKSEG_END $ac_func
15241 _ACEOF
15243 break
15246 done
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15250 $as_echo_n "checking stack direction for C alloca... " >&6; }
15251 if test "${ac_cv_c_stack_direction+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 if test "$cross_compiling" = yes; then :
15255 ac_cv_c_stack_direction=0
15256 else
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 $ac_includes_default
15261 find_stack_direction ()
15263 static char *addr = 0;
15264 auto char dummy;
15265 if (addr == 0)
15267 addr = &dummy;
15268 return find_stack_direction ();
15270 else
15271 return (&dummy > addr) ? 1 : -1;
15275 main ()
15277 return find_stack_direction () < 0;
15279 _ACEOF
15280 if ac_fn_c_try_run "$LINENO"; then :
15281 ac_cv_c_stack_direction=1
15282 else
15283 ac_cv_c_stack_direction=-1
15285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15286 conftest.$ac_objext conftest.beam conftest.$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15291 $as_echo "$ac_cv_c_stack_direction" >&6; }
15292 cat >>confdefs.h <<_ACEOF
15293 #define STACK_DIRECTION $ac_cv_c_stack_direction
15294 _ACEOF
15300 # The cast to long int works around a bug in the HP C Compiler
15301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15303 # This bug is HP SR number 8606223364.
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15305 $as_echo_n "checking size of double... " >&6; }
15306 if test "${ac_cv_sizeof_double+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15311 else
15312 if test "$ac_cv_type_double" = yes; then
15313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15315 { as_fn_set_status 77
15316 as_fn_error "cannot compute sizeof (double)
15317 See \`config.log' for more details." "$LINENO" 5; }; }
15318 else
15319 ac_cv_sizeof_double=0
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15325 $as_echo "$ac_cv_sizeof_double" >&6; }
15329 cat >>confdefs.h <<_ACEOF
15330 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15331 _ACEOF
15334 # The cast to long int works around a bug in the HP C Compiler
15335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15337 # This bug is HP SR number 8606223364.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15339 $as_echo_n "checking size of long double... " >&6; }
15340 if test "${ac_cv_sizeof_long_double+set}" = set; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15345 else
15346 if test "$ac_cv_type_long_double" = yes; then
15347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15349 { as_fn_set_status 77
15350 as_fn_error "cannot compute sizeof (long double)
15351 See \`config.log' for more details." "$LINENO" 5; }; }
15352 else
15353 ac_cv_sizeof_long_double=0
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15359 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15363 cat >>confdefs.h <<_ACEOF
15364 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15365 _ACEOF
15369 # Also AC_SUBST this variable for ffi.h.
15370 if test -z "$HAVE_LONG_DOUBLE"; then
15371 HAVE_LONG_DOUBLE=0
15372 if test $ac_cv_sizeof_long_double != 0; then
15373 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15375 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15377 HAVE_LONG_DOUBLE=1
15378 else
15379 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15380 HAVE_LONG_DOUBLE=1
15382 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15392 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15393 if test "${ac_cv_c_bigendian+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 ac_cv_c_bigendian=unknown
15397 # See if we're dealing with a universal compiler.
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 #ifndef __APPLE_CC__
15401 not a universal capable compiler
15402 #endif
15403 typedef int dummy;
15405 _ACEOF
15406 if ac_fn_c_try_compile "$LINENO"; then :
15408 # Check for potential -arch flags. It is not universal unless
15409 # there are at least two -arch flags with different values.
15410 ac_arch=
15411 ac_prev=
15412 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15413 if test -n "$ac_prev"; then
15414 case $ac_word in
15415 i?86 | x86_64 | ppc | ppc64)
15416 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15417 ac_arch=$ac_word
15418 else
15419 ac_cv_c_bigendian=universal
15420 break
15423 esac
15424 ac_prev=
15425 elif test "x$ac_word" = "x-arch"; then
15426 ac_prev=arch
15428 done
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431 if test $ac_cv_c_bigendian = unknown; then
15432 # See if sys/param.h defines the BYTE_ORDER macro.
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <sys/types.h>
15436 #include <sys/param.h>
15439 main ()
15441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15443 && LITTLE_ENDIAN)
15444 bogus endian macros
15445 #endif
15448 return 0;
15450 _ACEOF
15451 if ac_fn_c_try_compile "$LINENO"; then :
15452 # It does; now see whether it defined to BIG_ENDIAN or not.
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <sys/types.h>
15456 #include <sys/param.h>
15459 main ()
15461 #if BYTE_ORDER != BIG_ENDIAN
15462 not big endian
15463 #endif
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_compile "$LINENO"; then :
15470 ac_cv_c_bigendian=yes
15471 else
15472 ac_cv_c_bigendian=no
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478 if test $ac_cv_c_bigendian = unknown; then
15479 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #include <limits.h>
15485 main ()
15487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15488 bogus endian macros
15489 #endif
15492 return 0;
15494 _ACEOF
15495 if ac_fn_c_try_compile "$LINENO"; then :
15496 # It does; now see whether it defined to _BIG_ENDIAN or not.
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 #include <limits.h>
15502 main ()
15504 #ifndef _BIG_ENDIAN
15505 not big endian
15506 #endif
15509 return 0;
15511 _ACEOF
15512 if ac_fn_c_try_compile "$LINENO"; then :
15513 ac_cv_c_bigendian=yes
15514 else
15515 ac_cv_c_bigendian=no
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521 if test $ac_cv_c_bigendian = unknown; then
15522 # Compile a test program.
15523 if test "$cross_compiling" = yes; then :
15524 # Try to guess by grepping values from an object file.
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15527 short int ascii_mm[] =
15528 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15529 short int ascii_ii[] =
15530 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15531 int use_ascii (int i) {
15532 return ascii_mm[i] + ascii_ii[i];
15534 short int ebcdic_ii[] =
15535 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15536 short int ebcdic_mm[] =
15537 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15538 int use_ebcdic (int i) {
15539 return ebcdic_mm[i] + ebcdic_ii[i];
15541 extern int foo;
15544 main ()
15546 return use_ascii (foo) == use_ebcdic (foo);
15548 return 0;
15550 _ACEOF
15551 if ac_fn_c_try_compile "$LINENO"; then :
15552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15553 ac_cv_c_bigendian=yes
15555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15556 if test "$ac_cv_c_bigendian" = unknown; then
15557 ac_cv_c_bigendian=no
15558 else
15559 # finding both strings is unlikely to happen, but who knows?
15560 ac_cv_c_bigendian=unknown
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 else
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 $ac_includes_default
15570 main ()
15573 /* Are we little or big endian? From Harbison&Steele. */
15574 union
15576 long int l;
15577 char c[sizeof (long int)];
15578 } u;
15579 u.l = 1;
15580 return u.c[sizeof (long int) - 1] == 1;
15583 return 0;
15585 _ACEOF
15586 if ac_fn_c_try_run "$LINENO"; then :
15587 ac_cv_c_bigendian=no
15588 else
15589 ac_cv_c_bigendian=yes
15591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15592 conftest.$ac_objext conftest.beam conftest.$ac_ext
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15598 $as_echo "$ac_cv_c_bigendian" >&6; }
15599 case $ac_cv_c_bigendian in #(
15600 yes)
15601 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15602 ;; #(
15604 ;; #(
15605 universal)
15607 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15609 ;; #(
15611 as_fn_error "unknown endianness
15612 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15613 esac
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15617 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15618 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15622 gcc_cv_as_cfi_pseudo_op=unknown
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 asm (".cfi_startproc\n\t.cfi_endproc");
15627 main ()
15631 return 0;
15633 _ACEOF
15634 if ac_fn_c_try_compile "$LINENO"; then :
15635 gcc_cv_as_cfi_pseudo_op=yes
15636 else
15637 gcc_cv_as_cfi_pseudo_op=no
15639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15643 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15644 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15646 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15651 case "$TARGET" in
15652 SPARC)
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15654 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15655 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15656 $as_echo_n "(cached) " >&6
15657 else
15659 save_CFLAGS="$CFLAGS"
15660 save_LDFLAGS="$LDFLAGS"
15661 CFLAGS="$CFLAGS -fpic"
15662 LDFLAGS="$LDFLAGS -shared"
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15667 main ()
15671 return 0;
15673 _ACEOF
15674 if ac_fn_c_try_link "$LINENO"; then :
15675 libffi_cv_as_sparc_ua_pcrel=yes
15676 else
15677 libffi_cv_as_sparc_ua_pcrel=no
15679 rm -f core conftest.err conftest.$ac_objext \
15680 conftest$ac_exeext conftest.$ac_ext
15681 CFLAGS="$save_CFLAGS"
15682 LDFLAGS="$save_LDFLAGS"
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15685 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15686 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15688 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15693 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15694 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15698 libffi_cv_as_register_pseudo_op=unknown
15699 # Check if we have .register
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15704 main ()
15706 asm (".register %g2, #scratch");
15708 return 0;
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"; then :
15712 libffi_cv_as_register_pseudo_op=yes
15713 else
15714 libffi_cv_as_register_pseudo_op=no
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15720 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15721 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15723 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15728 X86*)
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15730 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15731 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15732 $as_echo_n "(cached) " >&6
15733 else
15735 libffi_cv_as_x86_pcrel=no
15736 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15737 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15738 libffi_cv_as_x86_pcrel=yes
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15743 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15744 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15746 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15751 S390)
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15753 $as_echo_n "checking compiler uses zarch features... " >&6; }
15754 if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15756 else
15758 libffi_cv_as_s390_zarch=no
15759 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15760 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15761 if grep -q brasl conftest.s; then
15762 libffi_cv_as_s390_zarch=yes
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15768 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15769 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15771 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15775 esac
15777 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15778 # Check whether --enable-pax_emutramp was given.
15779 if test "${enable_pax_emutramp+set}" = set; then :
15780 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15782 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15788 FFI_EXEC_TRAMPOLINE_TABLE=0
15789 case "$target" in
15790 *arm*-apple-darwin* | aarch64-apple-darwin*)
15791 FFI_EXEC_TRAMPOLINE_TABLE=1
15793 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15796 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15798 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15801 esac
15802 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15803 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15804 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15805 else
15806 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15807 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
15812 if test x$TARGET = xX86_64; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15814 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
15815 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15819 cat > conftest1.s << EOF
15820 .text
15821 .globl foo
15822 foo:
15823 jmp bar
15824 .section .eh_frame,"a",@unwind
15825 bar:
15828 cat > conftest2.c << EOF
15829 extern void foo();
15830 int main(){foo();}
15833 libffi_cv_as_x86_64_unwind_section_type=no
15834 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15835 # since the compiler can support it and not the linker (ie old binutils)
15836 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
15837 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
15838 libffi_cv_as_x86_64_unwind_section_type=yes
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15843 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15844 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
15846 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15851 if test "x$GCC" = "xyes"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15853 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15854 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15858 libffi_cv_ro_eh_frame=no
15859 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15860 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
15861 objdump -h conftest.o > conftest.dump 2>&1
15862 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15863 if test "x$libffi_eh_frame_line" != "x"; then
15864 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
15865 sed -n $libffi_test_line conftest.dump > conftest.line
15866 if grep READONLY conftest.line > /dev/null; then
15867 libffi_cv_ro_eh_frame=yes
15871 rm -f conftest.*
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15875 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15876 if test "x$libffi_cv_ro_eh_frame" = xyes; then
15878 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15881 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15883 else
15885 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15890 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15891 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15892 $as_echo_n "(cached) " >&6
15893 else
15895 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15896 libffi_cv_hidden_visibility_attribute=no
15897 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; }; then
15903 if grep '\.hidden.*foo' conftest.s >/dev/null; then
15904 libffi_cv_hidden_visibility_attribute=yes
15907 rm -f conftest.*
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15911 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15912 if test $libffi_cv_hidden_visibility_attribute = yes; then
15914 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15925 TARGET_OBJ=
15926 for i in $SOURCES; do
15927 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15928 done
15934 # Check whether --enable-debug was given.
15935 if test "${enable_debug+set}" = set; then :
15936 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
15938 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
15943 if test "$enable_debug" = "yes"; then
15944 FFI_DEBUG_TRUE=
15945 FFI_DEBUG_FALSE='#'
15946 else
15947 FFI_DEBUG_TRUE='#'
15948 FFI_DEBUG_FALSE=
15952 # Check whether --enable-structs was given.
15953 if test "${enable_structs+set}" = set; then :
15954 enableval=$enable_structs; if test "$enable_structs" = "no"; then
15956 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15961 if test "$enable_debug" = "yes"; then
15962 FFI_DEBUG_TRUE=
15963 FFI_DEBUG_FALSE='#'
15964 else
15965 FFI_DEBUG_TRUE='#'
15966 FFI_DEBUG_FALSE=
15970 # Check whether --enable-raw-api was given.
15971 if test "${enable_raw_api+set}" = set; then :
15972 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15974 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15980 # Check whether --enable-purify-safety was given.
15981 if test "${enable_purify_safety+set}" = set; then :
15982 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15984 $as_echo "#define USING_PURIFY 1" >>confdefs.h
15990 if test -n "$with_cross_host" &&
15991 test x"$with_cross_host" != x"no"; then
15992 toolexecdir='$(exec_prefix)/$(target_alias)'
15993 toolexeclibdir='$(toolexecdir)/lib'
15994 else
15995 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
15996 toolexeclibdir='$(libdir)'
15998 multi_os_directory=`$CC -print-multi-os-directory`
15999 case $multi_os_directory in
16000 .) ;; # Avoid trailing /.
16001 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16002 esac
16006 if test "${multilib}" = "yes"; then
16007 multilib_arg="--enable-multilib"
16008 else
16009 multilib_arg=
16012 ac_config_commands="$ac_config_commands include"
16014 ac_config_commands="$ac_config_commands src"
16017 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16020 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16023 cat >confcache <<\_ACEOF
16024 # This file is a shell script that caches the results of configure
16025 # tests run on this system so they can be shared between configure
16026 # scripts and configure runs, see configure's option --config-cache.
16027 # It is not useful on other systems. If it contains results you don't
16028 # want to keep, you may remove or edit it.
16030 # config.status only pays attention to the cache file if you give it
16031 # the --recheck option to rerun configure.
16033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16035 # following values.
16037 _ACEOF
16039 # The following way of writing the cache mishandles newlines in values,
16040 # but we know of no workaround that is simple, portable, and efficient.
16041 # So, we kill variables containing newlines.
16042 # Ultrix sh set writes to stderr and can't be redirected directly,
16043 # and sets the high bit in the cache file unless we assign to the vars.
16045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16046 eval ac_val=\$$ac_var
16047 case $ac_val in #(
16048 *${as_nl}*)
16049 case $ac_var in #(
16050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16052 esac
16053 case $ac_var in #(
16054 _ | IFS | as_nl) ;; #(
16055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16056 *) { eval $ac_var=; unset $ac_var;} ;;
16057 esac ;;
16058 esac
16059 done
16061 (set) 2>&1 |
16062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16063 *${as_nl}ac_space=\ *)
16064 # `set' does not quote correctly, so add quotes: double-quote
16065 # substitution turns \\\\ into \\, and sed turns \\ into \.
16066 sed -n \
16067 "s/'/'\\\\''/g;
16068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16069 ;; #(
16071 # `set' quotes correctly as required by POSIX, so do not add quotes.
16072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16074 esac |
16075 sort
16077 sed '
16078 /^ac_cv_env_/b end
16079 t clear
16080 :clear
16081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16082 t end
16083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16084 :end' >>confcache
16085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16086 if test -w "$cache_file"; then
16087 test "x$cache_file" != "x/dev/null" &&
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16089 $as_echo "$as_me: updating cache $cache_file" >&6;}
16090 cat confcache >$cache_file
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16096 rm -f confcache
16098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16099 # Let make expand exec_prefix.
16100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16102 DEFS=-DHAVE_CONFIG_H
16104 ac_libobjs=
16105 ac_ltlibobjs=
16106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16107 # 1. Remove the extension, and $U if already installed.
16108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16111 # will be set to the directory where LIBOBJS objects are built.
16112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16114 done
16115 LIBOBJS=$ac_libobjs
16117 LTLIBOBJS=$ac_ltlibobjs
16120 if test -n "$EXEEXT"; then
16121 am__EXEEXT_TRUE=
16122 am__EXEEXT_FALSE='#'
16123 else
16124 am__EXEEXT_TRUE='#'
16125 am__EXEEXT_FALSE=
16128 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16129 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16132 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16133 as_fn_error "conditional \"GENINSRC\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16136 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16137 as_fn_error "conditional \"AMDEP\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16140 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16141 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16144 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16145 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16148 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16149 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16152 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16153 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16156 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16157 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
16158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16161 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16162 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16165 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16166 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16169 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16170 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16174 : ${CONFIG_STATUS=./config.status}
16175 ac_write_fail=0
16176 ac_clean_files_save=$ac_clean_files
16177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16180 as_write_fail=0
16181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16182 #! $SHELL
16183 # Generated by $as_me.
16184 # Run this file to recreate the current configuration.
16185 # Compiler output produced by configure, useful for debugging
16186 # configure, is in config.log if it exists.
16188 debug=false
16189 ac_cs_recheck=false
16190 ac_cs_silent=false
16192 SHELL=\${CONFIG_SHELL-$SHELL}
16193 export SHELL
16194 _ASEOF
16195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16196 ## -------------------- ##
16197 ## M4sh Initialization. ##
16198 ## -------------------- ##
16200 # Be more Bourne compatible
16201 DUALCASE=1; export DUALCASE # for MKS sh
16202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16203 emulate sh
16204 NULLCMD=:
16205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16206 # is contrary to our usage. Disable this feature.
16207 alias -g '${1+"$@"}'='"$@"'
16208 setopt NO_GLOB_SUBST
16209 else
16210 case `(set -o) 2>/dev/null` in #(
16211 *posix*) :
16212 set -o posix ;; #(
16213 *) :
16215 esac
16219 as_nl='
16221 export as_nl
16222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16226 # Prefer a ksh shell builtin over an external printf program on Solaris,
16227 # but without wasting forks for bash or zsh.
16228 if test -z "$BASH_VERSION$ZSH_VERSION" \
16229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16230 as_echo='print -r --'
16231 as_echo_n='print -rn --'
16232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16233 as_echo='printf %s\n'
16234 as_echo_n='printf %s'
16235 else
16236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16238 as_echo_n='/usr/ucb/echo -n'
16239 else
16240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16241 as_echo_n_body='eval
16242 arg=$1;
16243 case $arg in #(
16244 *"$as_nl"*)
16245 expr "X$arg" : "X\\(.*\\)$as_nl";
16246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16247 esac;
16248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16250 export as_echo_n_body
16251 as_echo_n='sh -c $as_echo_n_body as_echo'
16253 export as_echo_body
16254 as_echo='sh -c $as_echo_body as_echo'
16257 # The user is always right.
16258 if test "${PATH_SEPARATOR+set}" != set; then
16259 PATH_SEPARATOR=:
16260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16262 PATH_SEPARATOR=';'
16267 # IFS
16268 # We need space, tab and new line, in precisely that order. Quoting is
16269 # there to prevent editors from complaining about space-tab.
16270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16271 # splitting by setting IFS to empty value.)
16272 IFS=" "" $as_nl"
16274 # Find who we are. Look in the path if we contain no directory separator.
16275 case $0 in #((
16276 *[\\/]* ) as_myself=$0 ;;
16277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16278 for as_dir in $PATH
16280 IFS=$as_save_IFS
16281 test -z "$as_dir" && as_dir=.
16282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16283 done
16284 IFS=$as_save_IFS
16287 esac
16288 # We did not find ourselves, most probably we were run as `sh COMMAND'
16289 # in which case we are not to be found in the path.
16290 if test "x$as_myself" = x; then
16291 as_myself=$0
16293 if test ! -f "$as_myself"; then
16294 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16295 exit 1
16298 # Unset variables that we do not need and which cause bugs (e.g. in
16299 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16300 # suppresses any "Segmentation fault" message there. '((' could
16301 # trigger a bug in pdksh 5.2.14.
16302 for as_var in BASH_ENV ENV MAIL MAILPATH
16303 do eval test x\${$as_var+set} = xset \
16304 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16305 done
16306 PS1='$ '
16307 PS2='> '
16308 PS4='+ '
16310 # NLS nuisances.
16311 LC_ALL=C
16312 export LC_ALL
16313 LANGUAGE=C
16314 export LANGUAGE
16316 # CDPATH.
16317 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16320 # as_fn_error ERROR [LINENO LOG_FD]
16321 # ---------------------------------
16322 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16323 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16324 # script with status $?, using 1 if that was 0.
16325 as_fn_error ()
16327 as_status=$?; test $as_status -eq 0 && as_status=1
16328 if test "$3"; then
16329 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16330 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16332 $as_echo "$as_me: error: $1" >&2
16333 as_fn_exit $as_status
16334 } # as_fn_error
16337 # as_fn_set_status STATUS
16338 # -----------------------
16339 # Set $? to STATUS, without forking.
16340 as_fn_set_status ()
16342 return $1
16343 } # as_fn_set_status
16345 # as_fn_exit STATUS
16346 # -----------------
16347 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16348 as_fn_exit ()
16350 set +e
16351 as_fn_set_status $1
16352 exit $1
16353 } # as_fn_exit
16355 # as_fn_unset VAR
16356 # ---------------
16357 # Portably unset VAR.
16358 as_fn_unset ()
16360 { eval $1=; unset $1;}
16362 as_unset=as_fn_unset
16363 # as_fn_append VAR VALUE
16364 # ----------------------
16365 # Append the text in VALUE to the end of the definition contained in VAR. Take
16366 # advantage of any shell optimizations that allow amortized linear growth over
16367 # repeated appends, instead of the typical quadratic growth present in naive
16368 # implementations.
16369 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16370 eval 'as_fn_append ()
16372 eval $1+=\$2
16374 else
16375 as_fn_append ()
16377 eval $1=\$$1\$2
16379 fi # as_fn_append
16381 # as_fn_arith ARG...
16382 # ------------------
16383 # Perform arithmetic evaluation on the ARGs, and store the result in the
16384 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16385 # must be portable across $(()) and expr.
16386 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16387 eval 'as_fn_arith ()
16389 as_val=$(( $* ))
16391 else
16392 as_fn_arith ()
16394 as_val=`expr "$@" || test $? -eq 1`
16396 fi # as_fn_arith
16399 if expr a : '\(a\)' >/dev/null 2>&1 &&
16400 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16401 as_expr=expr
16402 else
16403 as_expr=false
16406 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16407 as_basename=basename
16408 else
16409 as_basename=false
16412 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16413 as_dirname=dirname
16414 else
16415 as_dirname=false
16418 as_me=`$as_basename -- "$0" ||
16419 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16420 X"$0" : 'X\(//\)$' \| \
16421 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16422 $as_echo X/"$0" |
16423 sed '/^.*\/\([^/][^/]*\)\/*$/{
16424 s//\1/
16427 /^X\/\(\/\/\)$/{
16428 s//\1/
16431 /^X\/\(\/\).*/{
16432 s//\1/
16435 s/.*/./; q'`
16437 # Avoid depending upon Character Ranges.
16438 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16439 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16440 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16441 as_cr_digits='0123456789'
16442 as_cr_alnum=$as_cr_Letters$as_cr_digits
16444 ECHO_C= ECHO_N= ECHO_T=
16445 case `echo -n x` in #(((((
16446 -n*)
16447 case `echo 'xy\c'` in
16448 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16449 xy) ECHO_C='\c';;
16450 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16451 ECHO_T=' ';;
16452 esac;;
16454 ECHO_N='-n';;
16455 esac
16457 rm -f conf$$ conf$$.exe conf$$.file
16458 if test -d conf$$.dir; then
16459 rm -f conf$$.dir/conf$$.file
16460 else
16461 rm -f conf$$.dir
16462 mkdir conf$$.dir 2>/dev/null
16464 if (echo >conf$$.file) 2>/dev/null; then
16465 if ln -s conf$$.file conf$$ 2>/dev/null; then
16466 as_ln_s='ln -s'
16467 # ... but there are two gotchas:
16468 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16469 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16470 # In both cases, we have to default to `cp -p'.
16471 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16472 as_ln_s='cp -p'
16473 elif ln conf$$.file conf$$ 2>/dev/null; then
16474 as_ln_s=ln
16475 else
16476 as_ln_s='cp -p'
16478 else
16479 as_ln_s='cp -p'
16481 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16482 rmdir conf$$.dir 2>/dev/null
16485 # as_fn_mkdir_p
16486 # -------------
16487 # Create "$as_dir" as a directory, including parents if necessary.
16488 as_fn_mkdir_p ()
16491 case $as_dir in #(
16492 -*) as_dir=./$as_dir;;
16493 esac
16494 test -d "$as_dir" || eval $as_mkdir_p || {
16495 as_dirs=
16496 while :; do
16497 case $as_dir in #(
16498 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16499 *) as_qdir=$as_dir;;
16500 esac
16501 as_dirs="'$as_qdir' $as_dirs"
16502 as_dir=`$as_dirname -- "$as_dir" ||
16503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16504 X"$as_dir" : 'X\(//\)[^/]' \| \
16505 X"$as_dir" : 'X\(//\)$' \| \
16506 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16507 $as_echo X"$as_dir" |
16508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16509 s//\1/
16512 /^X\(\/\/\)[^/].*/{
16513 s//\1/
16516 /^X\(\/\/\)$/{
16517 s//\1/
16520 /^X\(\/\).*/{
16521 s//\1/
16524 s/.*/./; q'`
16525 test -d "$as_dir" && break
16526 done
16527 test -z "$as_dirs" || eval "mkdir $as_dirs"
16528 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16531 } # as_fn_mkdir_p
16532 if mkdir -p . 2>/dev/null; then
16533 as_mkdir_p='mkdir -p "$as_dir"'
16534 else
16535 test -d ./-p && rmdir ./-p
16536 as_mkdir_p=false
16539 if test -x / >/dev/null 2>&1; then
16540 as_test_x='test -x'
16541 else
16542 if ls -dL / >/dev/null 2>&1; then
16543 as_ls_L_option=L
16544 else
16545 as_ls_L_option=
16547 as_test_x='
16548 eval sh -c '\''
16549 if test -d "$1"; then
16550 test -d "$1/.";
16551 else
16552 case $1 in #(
16553 -*)set "./$1";;
16554 esac;
16555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16556 ???[sx]*):;;*)false;;esac;fi
16557 '\'' sh
16560 as_executable_p=$as_test_x
16562 # Sed expression to map a string onto a valid CPP name.
16563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16565 # Sed expression to map a string onto a valid variable name.
16566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16569 exec 6>&1
16570 ## ----------------------------------- ##
16571 ## Main body of $CONFIG_STATUS script. ##
16572 ## ----------------------------------- ##
16573 _ASEOF
16574 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 # Save the log message, to keep $0 and so on meaningful, and to
16578 # report actual input values of CONFIG_FILES etc. instead of their
16579 # values after options handling.
16580 ac_log="
16581 This file was extended by libffi $as_me 3.99999, which was
16582 generated by GNU Autoconf 2.64. Invocation command line was
16584 CONFIG_FILES = $CONFIG_FILES
16585 CONFIG_HEADERS = $CONFIG_HEADERS
16586 CONFIG_LINKS = $CONFIG_LINKS
16587 CONFIG_COMMANDS = $CONFIG_COMMANDS
16588 $ $0 $@
16590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16593 _ACEOF
16595 case $ac_config_files in *"
16596 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16597 esac
16599 case $ac_config_headers in *"
16600 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16601 esac
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 # Files that config.status was made for.
16606 config_files="$ac_config_files"
16607 config_headers="$ac_config_headers"
16608 config_links="$ac_config_links"
16609 config_commands="$ac_config_commands"
16611 _ACEOF
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 ac_cs_usage="\
16615 \`$as_me' instantiates files and other configuration actions
16616 from templates according to the current configuration. Unless the files
16617 and actions are specified as TAGs, all are instantiated by default.
16619 Usage: $0 [OPTION]... [TAG]...
16621 -h, --help print this help, then exit
16622 -V, --version print version number and configuration settings, then exit
16623 -q, --quiet, --silent
16624 do not print progress messages
16625 -d, --debug don't remove temporary files
16626 --recheck update $as_me by reconfiguring in the same conditions
16627 --file=FILE[:TEMPLATE]
16628 instantiate the configuration file FILE
16629 --header=FILE[:TEMPLATE]
16630 instantiate the configuration header FILE
16632 Configuration files:
16633 $config_files
16635 Configuration headers:
16636 $config_headers
16638 Configuration links:
16639 $config_links
16641 Configuration commands:
16642 $config_commands
16644 Report bugs to <http://github.com/atgreen/libffi/issues>."
16646 _ACEOF
16647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16648 ac_cs_version="\\
16649 libffi config.status 3.99999
16650 configured by $0, generated by GNU Autoconf 2.64,
16651 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16653 Copyright (C) 2009 Free Software Foundation, Inc.
16654 This config.status script is free software; the Free Software Foundation
16655 gives unlimited permission to copy, distribute and modify it."
16657 ac_pwd='$ac_pwd'
16658 srcdir='$srcdir'
16659 INSTALL='$INSTALL'
16660 MKDIR_P='$MKDIR_P'
16661 AWK='$AWK'
16662 test -n "\$AWK" || AWK=awk
16663 _ACEOF
16665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16666 # The default lists apply if the user does not specify any file.
16667 ac_need_defaults=:
16668 while test $# != 0
16670 case $1 in
16671 --*=*)
16672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16674 ac_shift=:
16677 ac_option=$1
16678 ac_optarg=$2
16679 ac_shift=shift
16681 esac
16683 case $ac_option in
16684 # Handling of the options.
16685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16686 ac_cs_recheck=: ;;
16687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16688 $as_echo "$ac_cs_version"; exit ;;
16689 --debug | --debu | --deb | --de | --d | -d )
16690 debug=: ;;
16691 --file | --fil | --fi | --f )
16692 $ac_shift
16693 case $ac_optarg in
16694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16695 esac
16696 as_fn_append CONFIG_FILES " '$ac_optarg'"
16697 ac_need_defaults=false;;
16698 --header | --heade | --head | --hea )
16699 $ac_shift
16700 case $ac_optarg in
16701 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16702 esac
16703 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16704 ac_need_defaults=false;;
16705 --he | --h)
16706 # Conflict between --help and --header
16707 as_fn_error "ambiguous option: \`$1'
16708 Try \`$0 --help' for more information.";;
16709 --help | --hel | -h )
16710 $as_echo "$ac_cs_usage"; exit ;;
16711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16713 ac_cs_silent=: ;;
16715 # This is an error.
16716 -*) as_fn_error "unrecognized option: \`$1'
16717 Try \`$0 --help' for more information." ;;
16719 *) as_fn_append ac_config_targets " $1"
16720 ac_need_defaults=false ;;
16722 esac
16723 shift
16724 done
16726 ac_configure_extra_args=
16728 if $ac_cs_silent; then
16729 exec 6>/dev/null
16730 ac_configure_extra_args="$ac_configure_extra_args --silent"
16733 _ACEOF
16734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735 if \$ac_cs_recheck; then
16736 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16737 shift
16738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16739 CONFIG_SHELL='$SHELL'
16740 export CONFIG_SHELL
16741 exec "\$@"
16744 _ACEOF
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 exec 5>>config.log
16748 echo
16749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16750 ## Running $as_me. ##
16751 _ASBOX
16752 $as_echo "$ac_log"
16753 } >&5
16755 _ACEOF
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 # INIT-COMMANDS
16761 srcdir="$srcdir"
16762 host="$host"
16763 target="$target"
16764 with_multisubdir="$with_multisubdir"
16765 with_multisrctop="$with_multisrctop"
16766 with_target_subdir="$with_target_subdir"
16767 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16768 multi_basedir="$multi_basedir"
16769 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16770 CC="$CC"
16771 CXX="$CXX"
16772 GFORTRAN="$GFORTRAN"
16773 GCJ="$GCJ"
16774 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16777 # The HP-UX ksh and POSIX shell print the target directory to stdout
16778 # if CDPATH is set.
16779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16781 sed_quote_subst='$sed_quote_subst'
16782 double_quote_subst='$double_quote_subst'
16783 delay_variable_subst='$delay_variable_subst'
16784 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16785 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16786 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16787 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16788 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16789 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16790 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16791 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16812 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16813 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16814 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16815 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16816 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16817 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16818 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16819 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16820 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16821 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16822 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16823 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16824 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16825 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16826 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16827 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16828 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16829 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16831 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16832 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"`'
16833 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16834 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16835 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16836 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16837 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16838 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16839 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16840 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16841 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16842 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16843 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16844 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16845 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16846 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16847 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16848 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16849 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16850 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16851 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16852 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16853 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16854 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16855 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16856 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16857 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16858 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16859 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16860 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16861 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16862 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16863 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16864 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16865 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16866 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16867 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16868 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16869 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16870 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16871 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16872 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16873 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16874 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16875 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16876 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16877 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16878 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16879 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16880 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16881 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16882 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16883 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16884 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16885 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16886 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16887 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16888 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16889 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16890 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16891 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16892 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16893 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16894 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16895 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16896 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16897 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16898 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16899 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16900 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16901 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16902 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16903 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16904 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16905 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16906 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16907 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16908 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16909 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16910 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16911 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16912 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16913 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16914 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16915 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16916 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16917 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16918 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16919 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16920 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16921 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16922 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16923 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16924 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16925 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16926 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16927 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16928 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16929 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16930 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16931 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16932 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16933 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16934 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16935 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16936 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16937 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16938 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16939 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16940 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16941 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16942 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16943 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16944 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16945 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16946 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16947 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16948 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16949 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16950 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16951 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16952 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16953 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16954 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16955 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16956 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16957 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16958 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16960 LTCC='$LTCC'
16961 LTCFLAGS='$LTCFLAGS'
16962 compiler='$compiler_DEFAULT'
16964 # A function that is used when there is no print builtin or printf.
16965 func_fallback_echo ()
16967 eval 'cat <<_LTECHO_EOF
16969 _LTECHO_EOF'
16972 # Quote evaled strings.
16973 for var in SHELL \
16974 ECHO \
16975 SED \
16976 GREP \
16977 EGREP \
16978 FGREP \
16979 LD \
16980 NM \
16981 LN_S \
16982 lt_SP2NL \
16983 lt_NL2SP \
16984 reload_flag \
16985 OBJDUMP \
16986 deplibs_check_method \
16987 file_magic_cmd \
16988 AR \
16989 AR_FLAGS \
16990 STRIP \
16991 RANLIB \
16992 CC \
16993 CFLAGS \
16994 compiler \
16995 lt_cv_sys_global_symbol_pipe \
16996 lt_cv_sys_global_symbol_to_cdecl \
16997 lt_cv_sys_global_symbol_to_c_name_address \
16998 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16999 lt_prog_compiler_no_builtin_flag \
17000 lt_prog_compiler_wl \
17001 lt_prog_compiler_pic \
17002 lt_prog_compiler_static \
17003 lt_cv_prog_compiler_c_o \
17004 need_locks \
17005 DSYMUTIL \
17006 NMEDIT \
17007 LIPO \
17008 OTOOL \
17009 OTOOL64 \
17010 shrext_cmds \
17011 export_dynamic_flag_spec \
17012 whole_archive_flag_spec \
17013 compiler_needs_object \
17014 with_gnu_ld \
17015 allow_undefined_flag \
17016 no_undefined_flag \
17017 hardcode_libdir_flag_spec \
17018 hardcode_libdir_flag_spec_ld \
17019 hardcode_libdir_separator \
17020 fix_srcfile_path \
17021 exclude_expsyms \
17022 include_expsyms \
17023 file_list_spec \
17024 variables_saved_for_relink \
17025 libname_spec \
17026 library_names_spec \
17027 soname_spec \
17028 install_override_mode \
17029 finish_eval \
17030 old_striplib \
17031 striplib \
17032 compiler_lib_search_dirs \
17033 predep_objects \
17034 postdep_objects \
17035 predeps \
17036 postdeps \
17037 compiler_lib_search_path \
17038 LD_CXX \
17039 reload_flag_CXX \
17040 compiler_CXX \
17041 lt_prog_compiler_no_builtin_flag_CXX \
17042 lt_prog_compiler_wl_CXX \
17043 lt_prog_compiler_pic_CXX \
17044 lt_prog_compiler_static_CXX \
17045 lt_cv_prog_compiler_c_o_CXX \
17046 export_dynamic_flag_spec_CXX \
17047 whole_archive_flag_spec_CXX \
17048 compiler_needs_object_CXX \
17049 with_gnu_ld_CXX \
17050 allow_undefined_flag_CXX \
17051 no_undefined_flag_CXX \
17052 hardcode_libdir_flag_spec_CXX \
17053 hardcode_libdir_flag_spec_ld_CXX \
17054 hardcode_libdir_separator_CXX \
17055 fix_srcfile_path_CXX \
17056 exclude_expsyms_CXX \
17057 include_expsyms_CXX \
17058 file_list_spec_CXX \
17059 compiler_lib_search_dirs_CXX \
17060 predep_objects_CXX \
17061 postdep_objects_CXX \
17062 predeps_CXX \
17063 postdeps_CXX \
17064 compiler_lib_search_path_CXX; do
17065 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17066 *[\\\\\\\`\\"\\\$]*)
17067 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17070 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17072 esac
17073 done
17075 # Double-quote double-evaled strings.
17076 for var in reload_cmds \
17077 old_postinstall_cmds \
17078 old_postuninstall_cmds \
17079 old_archive_cmds \
17080 extract_expsyms_cmds \
17081 old_archive_from_new_cmds \
17082 old_archive_from_expsyms_cmds \
17083 archive_cmds \
17084 archive_expsym_cmds \
17085 module_cmds \
17086 module_expsym_cmds \
17087 export_symbols_cmds \
17088 prelink_cmds \
17089 postinstall_cmds \
17090 postuninstall_cmds \
17091 finish_cmds \
17092 sys_lib_search_path_spec \
17093 sys_lib_dlsearch_path_spec \
17094 reload_cmds_CXX \
17095 old_archive_cmds_CXX \
17096 old_archive_from_new_cmds_CXX \
17097 old_archive_from_expsyms_cmds_CXX \
17098 archive_cmds_CXX \
17099 archive_expsym_cmds_CXX \
17100 module_cmds_CXX \
17101 module_expsym_cmds_CXX \
17102 export_symbols_cmds_CXX \
17103 prelink_cmds_CXX; do
17104 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17105 *[\\\\\\\`\\"\\\$]*)
17106 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17109 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17111 esac
17112 done
17114 ac_aux_dir='$ac_aux_dir'
17115 xsi_shell='$xsi_shell'
17116 lt_shell_append='$lt_shell_append'
17118 # See if we are running on zsh, and set the options which allow our
17119 # commands through without removal of \ escapes INIT.
17120 if test -n "\${ZSH_VERSION+set}" ; then
17121 setopt NO_GLOB_SUBST
17125 PACKAGE='$PACKAGE'
17126 VERSION='$VERSION'
17127 TIMESTAMP='$TIMESTAMP'
17128 RM='$RM'
17129 ofile='$ofile'
17135 TARGETDIR="$TARGETDIR"
17137 _ACEOF
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17141 # Handling of arguments.
17142 for ac_config_target in $ac_config_targets
17144 case $ac_config_target in
17145 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17146 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17148 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17149 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17150 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17151 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17152 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17153 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17155 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17156 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17157 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17159 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17160 esac
17161 done
17164 # If the user did not use the arguments to specify the items to instantiate,
17165 # then the envvar interface is used. Set only those that are not.
17166 # We use the long form for the default assignment because of an extremely
17167 # bizarre bug on SunOS 4.1.3.
17168 if $ac_need_defaults; then
17169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17171 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17175 # Have a temporary directory for convenience. Make it in the build tree
17176 # simply because there is no reason against having it here, and in addition,
17177 # creating and moving files from /tmp can sometimes cause problems.
17178 # Hook for its removal unless debugging.
17179 # Note that there is a small window in which the directory will not be cleaned:
17180 # after its creation but before its name has been assigned to `$tmp'.
17181 $debug ||
17183 tmp=
17184 trap 'exit_status=$?
17185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17187 trap 'as_fn_exit 1' 1 2 13 15
17189 # Create a (secure) tmp directory for tmp files.
17192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17193 test -n "$tmp" && test -d "$tmp"
17194 } ||
17196 tmp=./conf$$-$RANDOM
17197 (umask 077 && mkdir "$tmp")
17198 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17200 # Set up the scripts for CONFIG_FILES section.
17201 # No need to generate them if there are no CONFIG_FILES.
17202 # This happens for instance with `./config.status config.h'.
17203 if test -n "$CONFIG_FILES"; then
17206 ac_cr=`echo X | tr X '\015'`
17207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17208 # But we know of no other shell where ac_cr would be empty at this
17209 # point, so we can use a bashism as a fallback.
17210 if test "x$ac_cr" = x; then
17211 eval ac_cr=\$\'\\r\'
17213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17215 ac_cs_awk_cr='\r'
17216 else
17217 ac_cs_awk_cr=$ac_cr
17220 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17221 _ACEOF
17225 echo "cat >conf$$subs.awk <<_ACEOF" &&
17226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17227 echo "_ACEOF"
17228 } >conf$$subs.sh ||
17229 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17230 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17231 ac_delim='%!_!# '
17232 for ac_last_try in false false false false false :; do
17233 . ./conf$$subs.sh ||
17234 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17237 if test $ac_delim_n = $ac_delim_num; then
17238 break
17239 elif $ac_last_try; then
17240 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17241 else
17242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17244 done
17245 rm -f conf$$subs.sh
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17249 _ACEOF
17250 sed -n '
17252 s/^/S["/; s/!.*/"]=/
17255 s/^[^!]*!//
17256 :repl
17257 t repl
17258 s/'"$ac_delim"'$//
17259 t delim
17262 s/\(.\{148\}\).*/\1/
17263 t more1
17264 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17267 b repl
17268 :more1
17269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17272 s/.\{148\}//
17273 t nl
17274 :delim
17276 s/\(.\{148\}\).*/\1/
17277 t more2
17278 s/["\\]/\\&/g; s/^/"/; s/$/"/
17281 :more2
17282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17285 s/.\{148\}//
17286 t delim
17287 ' <conf$$subs.awk | sed '
17288 /^[^""]/{
17290 s/\n//
17292 ' >>$CONFIG_STATUS || ac_write_fail=1
17293 rm -f conf$$subs.awk
17294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17295 _ACAWK
17296 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17297 for (key in S) S_is_set[key] = 1
17298 FS = "\a"
17302 line = $ 0
17303 nfields = split(line, field, "@")
17304 substed = 0
17305 len = length(field[1])
17306 for (i = 2; i < nfields; i++) {
17307 key = field[i]
17308 keylen = length(key)
17309 if (S_is_set[key]) {
17310 value = S[key]
17311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17312 len += length(value) + length(field[++i])
17313 substed = 1
17314 } else
17315 len += 1 + keylen
17318 print line
17321 _ACAWK
17322 _ACEOF
17323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17324 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17326 else
17328 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17329 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17330 _ACEOF
17332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17334 # trailing colons and then remove the whole line if VPATH becomes empty
17335 # (actually we leave an empty line to preserve line numbers).
17336 if test "x$srcdir" = x.; then
17337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17338 s/:*\$(srcdir):*/:/
17339 s/:*\${srcdir}:*/:/
17340 s/:*@srcdir@:*/:/
17341 s/^\([^=]*=[ ]*\):*/\1/
17342 s/:*$//
17343 s/^[^=]*=[ ]*$//
17347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348 fi # test -n "$CONFIG_FILES"
17350 # Set up the scripts for CONFIG_HEADERS section.
17351 # No need to generate them if there are no CONFIG_HEADERS.
17352 # This happens for instance with `./config.status Makefile'.
17353 if test -n "$CONFIG_HEADERS"; then
17354 cat >"$tmp/defines.awk" <<\_ACAWK ||
17355 BEGIN {
17356 _ACEOF
17358 # Transform confdefs.h into an awk script `defines.awk', embedded as
17359 # here-document in config.status, that substitutes the proper values into
17360 # config.h.in to produce config.h.
17362 # Create a delimiter string that does not exist in confdefs.h, to ease
17363 # handling of long lines.
17364 ac_delim='%!_!# '
17365 for ac_last_try in false false :; do
17366 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17367 if test -z "$ac_t"; then
17368 break
17369 elif $ac_last_try; then
17370 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17371 else
17372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17374 done
17376 # For the awk script, D is an array of macro values keyed by name,
17377 # likewise P contains macro parameters if any. Preserve backslash
17378 # newline sequences.
17380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17381 sed -n '
17382 s/.\{148\}/&'"$ac_delim"'/g
17383 t rset
17384 :rset
17385 s/^[ ]*#[ ]*define[ ][ ]*/ /
17386 t def
17388 :def
17389 s/\\$//
17390 t bsnl
17391 s/["\\]/\\&/g
17392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17393 D["\1"]=" \3"/p
17394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17396 :bsnl
17397 s/["\\]/\\&/g
17398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17399 D["\1"]=" \3\\\\\\n"\\/p
17400 t cont
17401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17402 t cont
17404 :cont
17406 s/.\{148\}/&'"$ac_delim"'/g
17407 t clear
17408 :clear
17409 s/\\$//
17410 t bsnlc
17411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17413 :bsnlc
17414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17415 b cont
17416 ' <confdefs.h | sed '
17417 s/'"$ac_delim"'/"\\\
17418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17421 for (key in D) D_is_set[key] = 1
17422 FS = "\a"
17424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17425 line = \$ 0
17426 split(line, arg, " ")
17427 if (arg[1] == "#") {
17428 defundef = arg[2]
17429 mac1 = arg[3]
17430 } else {
17431 defundef = substr(arg[1], 2)
17432 mac1 = arg[2]
17434 split(mac1, mac2, "(") #)
17435 macro = mac2[1]
17436 prefix = substr(line, 1, index(line, defundef) - 1)
17437 if (D_is_set[macro]) {
17438 # Preserve the white space surrounding the "#".
17439 print prefix "define", macro P[macro] D[macro]
17440 next
17441 } else {
17442 # Replace #undef with comments. This is necessary, for example,
17443 # in the case of _POSIX_SOURCE, which is predefined and required
17444 # on some systems where configure will not decide to define it.
17445 if (defundef == "undef") {
17446 print "/*", prefix defundef, macro, "*/"
17447 next
17451 { print }
17452 _ACAWK
17453 _ACEOF
17454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17455 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17456 fi # test -n "$CONFIG_HEADERS"
17459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17460 shift
17461 for ac_tag
17463 case $ac_tag in
17464 :[FHLC]) ac_mode=$ac_tag; continue;;
17465 esac
17466 case $ac_mode$ac_tag in
17467 :[FHL]*:*);;
17468 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17469 :[FH]-) ac_tag=-:-;;
17470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17471 esac
17472 ac_save_IFS=$IFS
17473 IFS=:
17474 set x $ac_tag
17475 IFS=$ac_save_IFS
17476 shift
17477 ac_file=$1
17478 shift
17480 case $ac_mode in
17481 :L) ac_source=$1;;
17482 :[FH])
17483 ac_file_inputs=
17484 for ac_f
17486 case $ac_f in
17487 -) ac_f="$tmp/stdin";;
17488 *) # Look for the file first in the build tree, then in the source tree
17489 # (if the path is not absolute). The absolute path cannot be DOS-style,
17490 # because $ac_f cannot contain `:'.
17491 test -f "$ac_f" ||
17492 case $ac_f in
17493 [\\/$]*) false;;
17494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17495 esac ||
17496 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17497 esac
17498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17499 as_fn_append ac_file_inputs " '$ac_f'"
17500 done
17502 # Let's still pretend it is `configure' which instantiates (i.e., don't
17503 # use $as_me), people would be surprised to read:
17504 # /* config.h. Generated by config.status. */
17505 configure_input='Generated from '`
17506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17507 `' by configure.'
17508 if test x"$ac_file" != x-; then
17509 configure_input="$ac_file. $configure_input"
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17511 $as_echo "$as_me: creating $ac_file" >&6;}
17513 # Neutralize special characters interpreted by sed in replacement strings.
17514 case $configure_input in #(
17515 *\&* | *\|* | *\\* )
17516 ac_sed_conf_input=`$as_echo "$configure_input" |
17517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17518 *) ac_sed_conf_input=$configure_input;;
17519 esac
17521 case $ac_tag in
17522 *:-:* | *:-) cat >"$tmp/stdin" \
17523 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17524 esac
17526 esac
17528 ac_dir=`$as_dirname -- "$ac_file" ||
17529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17530 X"$ac_file" : 'X\(//\)[^/]' \| \
17531 X"$ac_file" : 'X\(//\)$' \| \
17532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17533 $as_echo X"$ac_file" |
17534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17535 s//\1/
17538 /^X\(\/\/\)[^/].*/{
17539 s//\1/
17542 /^X\(\/\/\)$/{
17543 s//\1/
17546 /^X\(\/\).*/{
17547 s//\1/
17550 s/.*/./; q'`
17551 as_dir="$ac_dir"; as_fn_mkdir_p
17552 ac_builddir=.
17554 case "$ac_dir" in
17555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17558 # A ".." for each directory in $ac_dir_suffix.
17559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17560 case $ac_top_builddir_sub in
17561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17563 esac ;;
17564 esac
17565 ac_abs_top_builddir=$ac_pwd
17566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17567 # for backward compatibility:
17568 ac_top_builddir=$ac_top_build_prefix
17570 case $srcdir in
17571 .) # We are building in place.
17572 ac_srcdir=.
17573 ac_top_srcdir=$ac_top_builddir_sub
17574 ac_abs_top_srcdir=$ac_pwd ;;
17575 [\\/]* | ?:[\\/]* ) # Absolute name.
17576 ac_srcdir=$srcdir$ac_dir_suffix;
17577 ac_top_srcdir=$srcdir
17578 ac_abs_top_srcdir=$srcdir ;;
17579 *) # Relative name.
17580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17581 ac_top_srcdir=$ac_top_build_prefix$srcdir
17582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17583 esac
17584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17587 case $ac_mode in
17590 # CONFIG_FILE
17593 case $INSTALL in
17594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17596 esac
17597 ac_MKDIR_P=$MKDIR_P
17598 case $MKDIR_P in
17599 [\\/$]* | ?:[\\/]* ) ;;
17600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17601 esac
17602 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 # If the template does not know about datarootdir, expand it.
17606 # FIXME: This hack should be removed a few years after 2.60.
17607 ac_datarootdir_hack=; ac_datarootdir_seen=
17608 ac_sed_dataroot='
17609 /datarootdir/ {
17613 /@datadir@/p
17614 /@docdir@/p
17615 /@infodir@/p
17616 /@localedir@/p
17617 /@mandir@/p'
17618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17619 *datarootdir*) ac_datarootdir_seen=yes;;
17620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17623 _ACEOF
17624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17625 ac_datarootdir_hack='
17626 s&@datadir@&$datadir&g
17627 s&@docdir@&$docdir&g
17628 s&@infodir@&$infodir&g
17629 s&@localedir@&$localedir&g
17630 s&@mandir@&$mandir&g
17631 s&\\\${datarootdir}&$datarootdir&g' ;;
17632 esac
17633 _ACEOF
17635 # Neutralize VPATH when `$srcdir' = `.'.
17636 # Shell code in configure.ac might set extrasub.
17637 # FIXME: do we really want to maintain this feature?
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 ac_sed_extra="$ac_vpsub
17640 $extrasub
17641 _ACEOF
17642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17645 s|@configure_input@|$ac_sed_conf_input|;t t
17646 s&@top_builddir@&$ac_top_builddir_sub&;t t
17647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17648 s&@srcdir@&$ac_srcdir&;t t
17649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17650 s&@top_srcdir@&$ac_top_srcdir&;t t
17651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17652 s&@builddir@&$ac_builddir&;t t
17653 s&@abs_builddir@&$ac_abs_builddir&;t t
17654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17655 s&@INSTALL@&$ac_INSTALL&;t t
17656 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17657 $ac_datarootdir_hack
17659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17660 || as_fn_error "could not create $ac_file" "$LINENO" 5
17662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17666 which seems to be undefined. Please make sure it is defined." >&5
17667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17668 which seems to be undefined. Please make sure it is defined." >&2;}
17670 rm -f "$tmp/stdin"
17671 case $ac_file in
17672 -) cat "$tmp/out" && rm -f "$tmp/out";;
17673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17674 esac \
17675 || as_fn_error "could not create $ac_file" "$LINENO" 5
17679 # CONFIG_HEADER
17681 if test x"$ac_file" != x-; then
17683 $as_echo "/* $configure_input */" \
17684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17685 } >"$tmp/config.h" \
17686 || as_fn_error "could not create $ac_file" "$LINENO" 5
17687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17690 else
17691 rm -f "$ac_file"
17692 mv "$tmp/config.h" "$ac_file" \
17693 || as_fn_error "could not create $ac_file" "$LINENO" 5
17695 else
17696 $as_echo "/* $configure_input */" \
17697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17698 || as_fn_error "could not create -" "$LINENO" 5
17700 # Compute "$ac_file"'s index in $config_headers.
17701 _am_arg="$ac_file"
17702 _am_stamp_count=1
17703 for _am_header in $config_headers :; do
17704 case $_am_header in
17705 $_am_arg | $_am_arg:* )
17706 break ;;
17708 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17709 esac
17710 done
17711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713 X"$_am_arg" : 'X\(//\)[^/]' \| \
17714 X"$_am_arg" : 'X\(//\)$' \| \
17715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17716 $as_echo X"$_am_arg" |
17717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17718 s//\1/
17721 /^X\(\/\/\)[^/].*/{
17722 s//\1/
17725 /^X\(\/\/\)$/{
17726 s//\1/
17729 /^X\(\/\).*/{
17730 s//\1/
17733 s/.*/./; q'`/stamp-h$_am_stamp_count
17737 # CONFIG_LINK
17740 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17742 else
17743 # Prefer the file from the source tree if names are identical.
17744 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17745 ac_source=$srcdir/$ac_source
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17749 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17751 if test ! -r "$ac_source"; then
17752 as_fn_error "$ac_source: file not found" "$LINENO" 5
17754 rm -f "$ac_file"
17756 # Try a relative symlink, then a hard link, then a copy.
17757 case $srcdir in
17758 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17759 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17760 esac
17761 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17762 ln "$ac_source" "$ac_file" 2>/dev/null ||
17763 cp -p "$ac_source" "$ac_file" ||
17764 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17768 $as_echo "$as_me: executing $ac_file commands" >&6;}
17770 esac
17773 case $ac_file$ac_mode in
17774 "default-1":C)
17775 # Only add multilib support code if we just rebuilt the top-level
17776 # Makefile.
17777 case " $CONFIG_FILES " in
17778 *" Makefile "*)
17779 ac_file=Makefile . ${multi_basedir}/config-ml.in
17781 esac ;;
17782 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17783 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17784 # are listed without --file. Let's play safe and only enable the eval
17785 # if we detect the quoting.
17786 case $CONFIG_FILES in
17787 *\'*) eval set x "$CONFIG_FILES" ;;
17788 *) set x $CONFIG_FILES ;;
17789 esac
17790 shift
17791 for mf
17793 # Strip MF so we end up with the name of the file.
17794 mf=`echo "$mf" | sed -e 's/:.*$//'`
17795 # Check whether this is an Automake generated Makefile or not.
17796 # We used to match only the files named `Makefile.in', but
17797 # some people rename them; so instead we look at the file content.
17798 # Grep'ing the first line is not enough: some people post-process
17799 # each Makefile.in and add a new line on top of each file to say so.
17800 # Grep'ing the whole file is not good either: AIX grep has a line
17801 # limit of 2048, but all sed's we know have understand at least 4000.
17802 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17803 dirpart=`$as_dirname -- "$mf" ||
17804 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805 X"$mf" : 'X\(//\)[^/]' \| \
17806 X"$mf" : 'X\(//\)$' \| \
17807 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17808 $as_echo X"$mf" |
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17810 s//\1/
17813 /^X\(\/\/\)[^/].*/{
17814 s//\1/
17817 /^X\(\/\/\)$/{
17818 s//\1/
17821 /^X\(\/\).*/{
17822 s//\1/
17825 s/.*/./; q'`
17826 else
17827 continue
17829 # Extract the definition of DEPDIR, am__include, and am__quote
17830 # from the Makefile without running `make'.
17831 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17832 test -z "$DEPDIR" && continue
17833 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17834 test -z "am__include" && continue
17835 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17836 # When using ansi2knr, U may be empty or an underscore; expand it
17837 U=`sed -n 's/^U = //p' < "$mf"`
17838 # Find all dependency output files, they are included files with
17839 # $(DEPDIR) in their names. We invoke sed twice because it is the
17840 # simplest approach to changing $(DEPDIR) to its actual value in the
17841 # expansion.
17842 for file in `sed -n "
17843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17845 # Make sure the directory exists.
17846 test -f "$dirpart/$file" && continue
17847 fdir=`$as_dirname -- "$file" ||
17848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$file" : 'X\(//\)[^/]' \| \
17850 X"$file" : 'X\(//\)$' \| \
17851 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17852 $as_echo X"$file" |
17853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17854 s//\1/
17857 /^X\(\/\/\)[^/].*/{
17858 s//\1/
17861 /^X\(\/\/\)$/{
17862 s//\1/
17865 /^X\(\/\).*/{
17866 s//\1/
17869 s/.*/./; q'`
17870 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17871 # echo "creating $dirpart/$file"
17872 echo '# dummy' > "$dirpart/$file"
17873 done
17874 done
17877 "libtool":C)
17879 # See if we are running on zsh, and set the options which allow our
17880 # commands through without removal of \ escapes.
17881 if test -n "${ZSH_VERSION+set}" ; then
17882 setopt NO_GLOB_SUBST
17885 cfgfile="${ofile}T"
17886 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17887 $RM "$cfgfile"
17889 cat <<_LT_EOF >> "$cfgfile"
17890 #! $SHELL
17892 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17893 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17895 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17897 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17898 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17899 # Written by Gordon Matzigkeit, 1996
17901 # This file is part of GNU Libtool.
17903 # GNU Libtool is free software; you can redistribute it and/or
17904 # modify it under the terms of the GNU General Public License as
17905 # published by the Free Software Foundation; either version 2 of
17906 # the License, or (at your option) any later version.
17908 # As a special exception to the GNU General Public License,
17909 # if you distribute this file as part of a program or library that
17910 # is built using GNU Libtool, you may include this file under the
17911 # same distribution terms that you use for the rest of that program.
17913 # GNU Libtool is distributed in the hope that it will be useful,
17914 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17915 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17916 # GNU General Public License for more details.
17918 # You should have received a copy of the GNU General Public License
17919 # along with GNU Libtool; see the file COPYING. If not, a copy
17920 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17921 # obtained by writing to the Free Software Foundation, Inc.,
17922 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17925 # The names of the tagged configurations supported by this script.
17926 available_tags="CXX "
17928 # ### BEGIN LIBTOOL CONFIG
17930 # Which release of libtool.m4 was used?
17931 macro_version=$macro_version
17932 macro_revision=$macro_revision
17934 # Whether or not to build shared libraries.
17935 build_libtool_libs=$enable_shared
17937 # Whether or not to build static libraries.
17938 build_old_libs=$enable_static
17940 # What type of objects to build.
17941 pic_mode=$pic_mode
17943 # Whether or not to optimize for fast installation.
17944 fast_install=$enable_fast_install
17946 # Shell to use when invoking shell scripts.
17947 SHELL=$lt_SHELL
17949 # An echo program that protects backslashes.
17950 ECHO=$lt_ECHO
17952 # The host system.
17953 host_alias=$host_alias
17954 host=$host
17955 host_os=$host_os
17957 # The build system.
17958 build_alias=$build_alias
17959 build=$build
17960 build_os=$build_os
17962 # A sed program that does not truncate output.
17963 SED=$lt_SED
17965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17966 Xsed="\$SED -e 1s/^X//"
17968 # A grep program that handles long lines.
17969 GREP=$lt_GREP
17971 # An ERE matcher.
17972 EGREP=$lt_EGREP
17974 # A literal string matcher.
17975 FGREP=$lt_FGREP
17977 # A BSD- or MS-compatible name lister.
17978 NM=$lt_NM
17980 # Whether we need soft or hard links.
17981 LN_S=$lt_LN_S
17983 # What is the maximum length of a command?
17984 max_cmd_len=$max_cmd_len
17986 # Object file suffix (normally "o").
17987 objext=$ac_objext
17989 # Executable file suffix (normally "").
17990 exeext=$exeext
17992 # whether the shell understands "unset".
17993 lt_unset=$lt_unset
17995 # turn spaces into newlines.
17996 SP2NL=$lt_lt_SP2NL
17998 # turn newlines into spaces.
17999 NL2SP=$lt_lt_NL2SP
18001 # An object symbol dumper.
18002 OBJDUMP=$lt_OBJDUMP
18004 # Method to check whether dependent libraries are shared objects.
18005 deplibs_check_method=$lt_deplibs_check_method
18007 # Command to use when deplibs_check_method == "file_magic".
18008 file_magic_cmd=$lt_file_magic_cmd
18010 # The archiver.
18011 AR=$lt_AR
18012 AR_FLAGS=$lt_AR_FLAGS
18014 # A symbol stripping program.
18015 STRIP=$lt_STRIP
18017 # Commands used to install an old-style archive.
18018 RANLIB=$lt_RANLIB
18019 old_postinstall_cmds=$lt_old_postinstall_cmds
18020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18022 # Whether to use a lock for old archive extraction.
18023 lock_old_archive_extraction=$lock_old_archive_extraction
18025 # A C compiler.
18026 LTCC=$lt_CC
18028 # LTCC compiler flags.
18029 LTCFLAGS=$lt_CFLAGS
18031 # Take the output of nm and produce a listing of raw symbols and C names.
18032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18034 # Transform the output of nm in a proper C declaration.
18035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18037 # Transform the output of nm in a C name address pair.
18038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18040 # Transform the output of nm in a C name address pair when lib prefix is needed.
18041 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18043 # The name of the directory that contains temporary libtool files.
18044 objdir=$objdir
18046 # Used to examine libraries when file_magic_cmd begins with "file".
18047 MAGIC_CMD=$MAGIC_CMD
18049 # Must we lock files when doing compilation?
18050 need_locks=$lt_need_locks
18052 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18053 DSYMUTIL=$lt_DSYMUTIL
18055 # Tool to change global to local symbols on Mac OS X.
18056 NMEDIT=$lt_NMEDIT
18058 # Tool to manipulate fat objects and archives on Mac OS X.
18059 LIPO=$lt_LIPO
18061 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18062 OTOOL=$lt_OTOOL
18064 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18065 OTOOL64=$lt_OTOOL64
18067 # Old archive suffix (normally "a").
18068 libext=$libext
18070 # Shared library suffix (normally ".so").
18071 shrext_cmds=$lt_shrext_cmds
18073 # The commands to extract the exported symbol list from a shared archive.
18074 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18076 # Variables whose values should be saved in libtool wrapper scripts and
18077 # restored at link time.
18078 variables_saved_for_relink=$lt_variables_saved_for_relink
18080 # Do we need the "lib" prefix for modules?
18081 need_lib_prefix=$need_lib_prefix
18083 # Do we need a version for libraries?
18084 need_version=$need_version
18086 # Library versioning type.
18087 version_type=$version_type
18089 # Shared library runtime path variable.
18090 runpath_var=$runpath_var
18092 # Shared library path variable.
18093 shlibpath_var=$shlibpath_var
18095 # Is shlibpath searched before the hard-coded library search path?
18096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18098 # Format of library name prefix.
18099 libname_spec=$lt_libname_spec
18101 # List of archive names. First name is the real one, the rest are links.
18102 # The last name is the one that the linker finds with -lNAME
18103 library_names_spec=$lt_library_names_spec
18105 # The coded name of the library, if different from the real name.
18106 soname_spec=$lt_soname_spec
18108 # Permission mode override for installation of shared libraries.
18109 install_override_mode=$lt_install_override_mode
18111 # Command to use after installation of a shared archive.
18112 postinstall_cmds=$lt_postinstall_cmds
18114 # Command to use after uninstallation of a shared archive.
18115 postuninstall_cmds=$lt_postuninstall_cmds
18117 # Commands used to finish a libtool library installation in a directory.
18118 finish_cmds=$lt_finish_cmds
18120 # As "finish_cmds", except a single script fragment to be evaled but
18121 # not shown.
18122 finish_eval=$lt_finish_eval
18124 # Whether we should hardcode library paths into libraries.
18125 hardcode_into_libs=$hardcode_into_libs
18127 # Compile-time system search path for libraries.
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18130 # Run-time system search path for libraries.
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18133 # Whether dlopen is supported.
18134 dlopen_support=$enable_dlopen
18136 # Whether dlopen of programs is supported.
18137 dlopen_self=$enable_dlopen_self
18139 # Whether dlopen of statically linked programs is supported.
18140 dlopen_self_static=$enable_dlopen_self_static
18142 # Commands to strip libraries.
18143 old_striplib=$lt_old_striplib
18144 striplib=$lt_striplib
18147 # The linker used to build libraries.
18148 LD=$lt_LD
18150 # How to create reloadable object files.
18151 reload_flag=$lt_reload_flag
18152 reload_cmds=$lt_reload_cmds
18154 # Commands used to build an old-style archive.
18155 old_archive_cmds=$lt_old_archive_cmds
18157 # A language specific compiler.
18158 CC=$lt_compiler
18160 # Is the compiler the GNU compiler?
18161 with_gcc=$GCC
18163 # Compiler flag to turn off builtin functions.
18164 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18166 # How to pass a linker flag through the compiler.
18167 wl=$lt_lt_prog_compiler_wl
18169 # Additional compiler flags for building library objects.
18170 pic_flag=$lt_lt_prog_compiler_pic
18172 # Compiler flag to prevent dynamic linking.
18173 link_static_flag=$lt_lt_prog_compiler_static
18175 # Does compiler simultaneously support -c and -o options?
18176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18178 # Whether or not to add -lc for building shared libraries.
18179 build_libtool_need_lc=$archive_cmds_need_lc
18181 # Whether or not to disallow shared libs when runtime libs are static.
18182 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18184 # Compiler flag to allow reflexive dlopens.
18185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18187 # Compiler flag to generate shared objects directly from archives.
18188 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18190 # Whether the compiler copes with passing no objects directly.
18191 compiler_needs_object=$lt_compiler_needs_object
18193 # Create an old-style archive from a shared archive.
18194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18196 # Create a temporary old-style archive to link instead of a shared archive.
18197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18199 # Commands used to build a shared archive.
18200 archive_cmds=$lt_archive_cmds
18201 archive_expsym_cmds=$lt_archive_expsym_cmds
18203 # Commands used to build a loadable module if different from building
18204 # a shared archive.
18205 module_cmds=$lt_module_cmds
18206 module_expsym_cmds=$lt_module_expsym_cmds
18208 # Whether we are building with GNU ld or not.
18209 with_gnu_ld=$lt_with_gnu_ld
18211 # Flag that allows shared libraries with undefined symbols to be built.
18212 allow_undefined_flag=$lt_allow_undefined_flag
18214 # Flag that enforces no undefined symbols.
18215 no_undefined_flag=$lt_no_undefined_flag
18217 # Flag to hardcode \$libdir into a binary during linking.
18218 # This must work even if \$libdir does not exist
18219 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18221 # If ld is used when linking, flag to hardcode \$libdir into a binary
18222 # during linking. This must work even if \$libdir does not exist.
18223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18225 # Whether we need a single "-rpath" flag with a separated argument.
18226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18229 # DIR into the resulting binary.
18230 hardcode_direct=$hardcode_direct
18232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18233 # DIR into the resulting binary and the resulting library dependency is
18234 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18235 # library is relocated.
18236 hardcode_direct_absolute=$hardcode_direct_absolute
18238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18239 # into the resulting binary.
18240 hardcode_minus_L=$hardcode_minus_L
18242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18243 # into the resulting binary.
18244 hardcode_shlibpath_var=$hardcode_shlibpath_var
18246 # Set to "yes" if building a shared library automatically hardcodes DIR
18247 # into the library and all subsequent libraries and executables linked
18248 # against it.
18249 hardcode_automatic=$hardcode_automatic
18251 # Set to yes if linker adds runtime paths of dependent libraries
18252 # to runtime path list.
18253 inherit_rpath=$inherit_rpath
18255 # Whether libtool must link a program against all its dependency libraries.
18256 link_all_deplibs=$link_all_deplibs
18258 # Fix the shell variable \$srcfile for the compiler.
18259 fix_srcfile_path=$lt_fix_srcfile_path
18261 # Set to "yes" if exported symbols are required.
18262 always_export_symbols=$always_export_symbols
18264 # The commands to list exported symbols.
18265 export_symbols_cmds=$lt_export_symbols_cmds
18267 # Symbols that should not be listed in the preloaded symbols.
18268 exclude_expsyms=$lt_exclude_expsyms
18270 # Symbols that must always be exported.
18271 include_expsyms=$lt_include_expsyms
18273 # Commands necessary for linking programs (against libraries) with templates.
18274 prelink_cmds=$lt_prelink_cmds
18276 # Specify filename containing input files.
18277 file_list_spec=$lt_file_list_spec
18279 # How to hardcode a shared library path into an executable.
18280 hardcode_action=$hardcode_action
18282 # The directories searched by this compiler when creating a shared library.
18283 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18285 # Dependencies to place before and after the objects being linked to
18286 # create a shared library.
18287 predep_objects=$lt_predep_objects
18288 postdep_objects=$lt_postdep_objects
18289 predeps=$lt_predeps
18290 postdeps=$lt_postdeps
18292 # The library search path used internally by the compiler when linking
18293 # a shared library.
18294 compiler_lib_search_path=$lt_compiler_lib_search_path
18296 # ### END LIBTOOL CONFIG
18298 _LT_EOF
18300 case $host_os in
18301 aix3*)
18302 cat <<\_LT_EOF >> "$cfgfile"
18303 # AIX sometimes has problems with the GCC collect2 program. For some
18304 # reason, if we set the COLLECT_NAMES environment variable, the problems
18305 # vanish in a puff of smoke.
18306 if test "X${COLLECT_NAMES+set}" != Xset; then
18307 COLLECT_NAMES=
18308 export COLLECT_NAMES
18310 _LT_EOF
18312 esac
18315 ltmain="$ac_aux_dir/ltmain.sh"
18318 # We use sed instead of cat because bash on DJGPP gets confused if
18319 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18320 # text mode, it properly converts lines to CR/LF. This bash problem
18321 # is reportedly fixed, but why not run on old versions too?
18322 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18323 || (rm -f "$cfgfile"; exit 1)
18325 case $xsi_shell in
18326 yes)
18327 cat << \_LT_EOF >> "$cfgfile"
18329 # func_dirname file append nondir_replacement
18330 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18331 # otherwise set result to NONDIR_REPLACEMENT.
18332 func_dirname ()
18334 case ${1} in
18335 */*) func_dirname_result="${1%/*}${2}" ;;
18336 * ) func_dirname_result="${3}" ;;
18337 esac
18340 # func_basename file
18341 func_basename ()
18343 func_basename_result="${1##*/}"
18346 # func_dirname_and_basename file append nondir_replacement
18347 # perform func_basename and func_dirname in a single function
18348 # call:
18349 # dirname: Compute the dirname of FILE. If nonempty,
18350 # add APPEND to the result, otherwise set result
18351 # to NONDIR_REPLACEMENT.
18352 # value returned in "$func_dirname_result"
18353 # basename: Compute filename of FILE.
18354 # value retuned in "$func_basename_result"
18355 # Implementation must be kept synchronized with func_dirname
18356 # and func_basename. For efficiency, we do not delegate to
18357 # those functions but instead duplicate the functionality here.
18358 func_dirname_and_basename ()
18360 case ${1} in
18361 */*) func_dirname_result="${1%/*}${2}" ;;
18362 * ) func_dirname_result="${3}" ;;
18363 esac
18364 func_basename_result="${1##*/}"
18367 # func_stripname prefix suffix name
18368 # strip PREFIX and SUFFIX off of NAME.
18369 # PREFIX and SUFFIX must not contain globbing or regex special
18370 # characters, hashes, percent signs, but SUFFIX may contain a leading
18371 # dot (in which case that matches only a dot).
18372 func_stripname ()
18374 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18375 # positional parameters, so assign one to ordinary parameter first.
18376 func_stripname_result=${3}
18377 func_stripname_result=${func_stripname_result#"${1}"}
18378 func_stripname_result=${func_stripname_result%"${2}"}
18381 # func_opt_split
18382 func_opt_split ()
18384 func_opt_split_opt=${1%%=*}
18385 func_opt_split_arg=${1#*=}
18388 # func_lo2o object
18389 func_lo2o ()
18391 case ${1} in
18392 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18393 *) func_lo2o_result=${1} ;;
18394 esac
18397 # func_xform libobj-or-source
18398 func_xform ()
18400 func_xform_result=${1%.*}.lo
18403 # func_arith arithmetic-term...
18404 func_arith ()
18406 func_arith_result=$(( $* ))
18409 # func_len string
18410 # STRING may not start with a hyphen.
18411 func_len ()
18413 func_len_result=${#1}
18416 _LT_EOF
18418 *) # Bourne compatible functions.
18419 cat << \_LT_EOF >> "$cfgfile"
18421 # func_dirname file append nondir_replacement
18422 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18423 # otherwise set result to NONDIR_REPLACEMENT.
18424 func_dirname ()
18426 # Extract subdirectory from the argument.
18427 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18428 if test "X$func_dirname_result" = "X${1}"; then
18429 func_dirname_result="${3}"
18430 else
18431 func_dirname_result="$func_dirname_result${2}"
18435 # func_basename file
18436 func_basename ()
18438 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18442 # func_stripname prefix suffix name
18443 # strip PREFIX and SUFFIX off of NAME.
18444 # PREFIX and SUFFIX must not contain globbing or regex special
18445 # characters, hashes, percent signs, but SUFFIX may contain a leading
18446 # dot (in which case that matches only a dot).
18447 # func_strip_suffix prefix name
18448 func_stripname ()
18450 case ${2} in
18451 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18452 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18453 esac
18456 # sed scripts:
18457 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18458 my_sed_long_arg='1s/^-[^=]*=//'
18460 # func_opt_split
18461 func_opt_split ()
18463 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18464 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18467 # func_lo2o object
18468 func_lo2o ()
18470 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18473 # func_xform libobj-or-source
18474 func_xform ()
18476 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18479 # func_arith arithmetic-term...
18480 func_arith ()
18482 func_arith_result=`expr "$@"`
18485 # func_len string
18486 # STRING may not start with a hyphen.
18487 func_len ()
18489 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18492 _LT_EOF
18493 esac
18495 case $lt_shell_append in
18496 yes)
18497 cat << \_LT_EOF >> "$cfgfile"
18499 # func_append var value
18500 # Append VALUE to the end of shell variable VAR.
18501 func_append ()
18503 eval "$1+=\$2"
18505 _LT_EOF
18508 cat << \_LT_EOF >> "$cfgfile"
18510 # func_append var value
18511 # Append VALUE to the end of shell variable VAR.
18512 func_append ()
18514 eval "$1=\$$1\$2"
18517 _LT_EOF
18519 esac
18522 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18523 || (rm -f "$cfgfile"; exit 1)
18525 mv -f "$cfgfile" "$ofile" ||
18526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18527 chmod +x "$ofile"
18530 cat <<_LT_EOF >> "$ofile"
18532 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18534 # The linker used to build libraries.
18535 LD=$lt_LD_CXX
18537 # How to create reloadable object files.
18538 reload_flag=$lt_reload_flag_CXX
18539 reload_cmds=$lt_reload_cmds_CXX
18541 # Commands used to build an old-style archive.
18542 old_archive_cmds=$lt_old_archive_cmds_CXX
18544 # A language specific compiler.
18545 CC=$lt_compiler_CXX
18547 # Is the compiler the GNU compiler?
18548 with_gcc=$GCC_CXX
18550 # Compiler flag to turn off builtin functions.
18551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18553 # How to pass a linker flag through the compiler.
18554 wl=$lt_lt_prog_compiler_wl_CXX
18556 # Additional compiler flags for building library objects.
18557 pic_flag=$lt_lt_prog_compiler_pic_CXX
18559 # Compiler flag to prevent dynamic linking.
18560 link_static_flag=$lt_lt_prog_compiler_static_CXX
18562 # Does compiler simultaneously support -c and -o options?
18563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18565 # Whether or not to add -lc for building shared libraries.
18566 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18568 # Whether or not to disallow shared libs when runtime libs are static.
18569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18571 # Compiler flag to allow reflexive dlopens.
18572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18574 # Compiler flag to generate shared objects directly from archives.
18575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18577 # Whether the compiler copes with passing no objects directly.
18578 compiler_needs_object=$lt_compiler_needs_object_CXX
18580 # Create an old-style archive from a shared archive.
18581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18583 # Create a temporary old-style archive to link instead of a shared archive.
18584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18586 # Commands used to build a shared archive.
18587 archive_cmds=$lt_archive_cmds_CXX
18588 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18590 # Commands used to build a loadable module if different from building
18591 # a shared archive.
18592 module_cmds=$lt_module_cmds_CXX
18593 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18595 # Whether we are building with GNU ld or not.
18596 with_gnu_ld=$lt_with_gnu_ld_CXX
18598 # Flag that allows shared libraries with undefined symbols to be built.
18599 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18601 # Flag that enforces no undefined symbols.
18602 no_undefined_flag=$lt_no_undefined_flag_CXX
18604 # Flag to hardcode \$libdir into a binary during linking.
18605 # This must work even if \$libdir does not exist
18606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18608 # If ld is used when linking, flag to hardcode \$libdir into a binary
18609 # during linking. This must work even if \$libdir does not exist.
18610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18612 # Whether we need a single "-rpath" flag with a separated argument.
18613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18616 # DIR into the resulting binary.
18617 hardcode_direct=$hardcode_direct_CXX
18619 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18620 # DIR into the resulting binary and the resulting library dependency is
18621 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18622 # library is relocated.
18623 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18626 # into the resulting binary.
18627 hardcode_minus_L=$hardcode_minus_L_CXX
18629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18630 # into the resulting binary.
18631 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18633 # Set to "yes" if building a shared library automatically hardcodes DIR
18634 # into the library and all subsequent libraries and executables linked
18635 # against it.
18636 hardcode_automatic=$hardcode_automatic_CXX
18638 # Set to yes if linker adds runtime paths of dependent libraries
18639 # to runtime path list.
18640 inherit_rpath=$inherit_rpath_CXX
18642 # Whether libtool must link a program against all its dependency libraries.
18643 link_all_deplibs=$link_all_deplibs_CXX
18645 # Fix the shell variable \$srcfile for the compiler.
18646 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18648 # Set to "yes" if exported symbols are required.
18649 always_export_symbols=$always_export_symbols_CXX
18651 # The commands to list exported symbols.
18652 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18654 # Symbols that should not be listed in the preloaded symbols.
18655 exclude_expsyms=$lt_exclude_expsyms_CXX
18657 # Symbols that must always be exported.
18658 include_expsyms=$lt_include_expsyms_CXX
18660 # Commands necessary for linking programs (against libraries) with templates.
18661 prelink_cmds=$lt_prelink_cmds_CXX
18663 # Specify filename containing input files.
18664 file_list_spec=$lt_file_list_spec_CXX
18666 # How to hardcode a shared library path into an executable.
18667 hardcode_action=$hardcode_action_CXX
18669 # The directories searched by this compiler when creating a shared library.
18670 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18672 # Dependencies to place before and after the objects being linked to
18673 # create a shared library.
18674 predep_objects=$lt_predep_objects_CXX
18675 postdep_objects=$lt_postdep_objects_CXX
18676 predeps=$lt_predeps_CXX
18677 postdeps=$lt_postdeps_CXX
18679 # The library search path used internally by the compiler when linking
18680 # a shared library.
18681 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18683 # ### END LIBTOOL TAG CONFIG: CXX
18684 _LT_EOF
18687 "include":C) test -d include || mkdir include ;;
18688 "src":C)
18689 test -d src || mkdir src
18690 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
18693 esac
18694 done # for ac_tag
18697 as_fn_exit 0
18698 _ACEOF
18699 ac_clean_files=$ac_clean_files_save
18701 test $ac_write_fail = 0 ||
18702 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18705 # configure is writing to config.log, and then calls config.status.
18706 # config.status does its own redirection, appending to config.log.
18707 # Unfortunately, on DOS this fails, as config.log is still kept open
18708 # by configure, so config.status won't be able to write to it; its
18709 # output is simply discarded. So we exec the FD to /dev/null,
18710 # effectively closing config.log, so it can be properly (re)opened and
18711 # appended to by config.status. When coming back to configure, we
18712 # need to make the FD available again.
18713 if test "$no_create" != yes; then
18714 ac_cs_success=:
18715 ac_config_status_args=
18716 test "$silent" = yes &&
18717 ac_config_status_args="$ac_config_status_args --quiet"
18718 exec 5>/dev/null
18719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18720 exec 5>>config.log
18721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18722 # would make configure fail if this is the last instruction.
18723 $ac_cs_success || as_fn_exit $?
18725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}