gcc/testsuite/
[official-gcc.git] / libffi / configure
blobefb62cdeabd2736ff9f51852ec59454ad209b25d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.11.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
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://gcc.gnu.org/bugs.html about your system,
241 $0: 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.0.11'
563 PACKAGE_STRING='libffi 3.0.11'
564 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
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 TARGETDIR
612 TARGET
613 FFI_EXEC_TRAMPOLINE_TABLE
614 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
615 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
616 HAVE_LONG_DOUBLE_VARIANT
617 HAVE_LONG_DOUBLE
618 ALLOCA
619 TILE_FALSE
620 TILE_TRUE
621 PA64_HPUX_FALSE
622 PA64_HPUX_TRUE
623 PA_HPUX_FALSE
624 PA_HPUX_TRUE
625 PA_LINUX_FALSE
626 PA_LINUX_TRUE
627 SH64_FALSE
628 SH64_TRUE
629 SH_FALSE
630 SH_TRUE
631 X86_64_FALSE
632 X86_64_TRUE
633 S390_FALSE
634 S390_TRUE
635 FRV_FALSE
636 FRV_TRUE
637 LIBFFI_CRIS_FALSE
638 LIBFFI_CRIS_TRUE
639 AVR32_FALSE
640 AVR32_TRUE
641 ARM_FALSE
642 ARM_TRUE
643 AARCH64_FALSE
644 AARCH64_TRUE
645 POWERPC_FREEBSD_FALSE
646 POWERPC_FREEBSD_TRUE
647 POWERPC_DARWIN_FALSE
648 POWERPC_DARWIN_TRUE
649 POWERPC_AIX_FALSE
650 POWERPC_AIX_TRUE
651 POWERPC_FALSE
652 POWERPC_TRUE
653 M68K_FALSE
654 M68K_TRUE
655 M32R_FALSE
656 M32R_TRUE
657 IA64_FALSE
658 IA64_TRUE
659 ALPHA_FALSE
660 ALPHA_TRUE
661 X86_DARWIN_FALSE
662 X86_DARWIN_TRUE
663 X86_WIN64_FALSE
664 X86_WIN64_TRUE
665 X86_WIN32_FALSE
666 X86_WIN32_TRUE
667 X86_FREEBSD_FALSE
668 X86_FREEBSD_TRUE
669 X86_FALSE
670 X86_TRUE
671 SPARC_FALSE
672 SPARC_TRUE
673 BFIN_FALSE
674 BFIN_TRUE
675 MIPS_FALSE
676 MIPS_TRUE
677 AM_LTLDFLAGS
678 AM_RUNTESTFLAGS
679 TESTSUBDIR_FALSE
680 TESTSUBDIR_TRUE
681 MAINT
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 RANLIB
692 OBJDUMP
693 LN_S
695 ac_ct_DUMPBIN
696 DUMPBIN
698 FGREP
699 EGREP
700 GREP
702 LIBTOOL
703 am__fastdepCCAS_FALSE
704 am__fastdepCCAS_TRUE
705 CCASDEPMODE
706 CCASFLAGS
707 CCAS
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 GENINSRC_FALSE
725 GENINSRC_TRUE
726 BUILD_INFO_FALSE
727 BUILD_INFO_TRUE
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_os
752 target_vendor
753 target_cpu
754 target
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 multi_basedir
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_multilib
806 enable_generated_files_in_srcdir
807 enable_dependency_tracking
808 enable_shared
809 enable_static
810 with_pic
811 enable_fast_install
812 with_gnu_ld
813 enable_libtool_lock
814 enable_maintainer_mode
815 enable_pax_emutramp
816 enable_debug
817 enable_structs
818 enable_raw_api
819 enable_purify_safety
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CCAS
825 CCASFLAGS
827 CPPFLAGS'
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information."
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 esac
1235 done
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1424 cat <<\_ACEOF
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 --target=TARGET configure for building compilers for TARGET [HOST]
1435 _ACEOF
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1441 esac
1442 cat <<\_ACEOF
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-multilib build many library versions (default)
1449 --enable-generated-files-in-srcdir
1450 put copies of generated files in source dir intended
1451 for creating source tarballs for users without
1452 texinfo bison or flex
1453 --disable-dependency-tracking speeds up one-time build
1454 --enable-dependency-tracking do not reject slow dependency extractors
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-maintainer-mode enable make rules and dependencies not useful
1461 (and sometimes confusing) to the casual installer
1462 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1463 --enable-debug debugging mode
1464 --disable-structs omit code for struct support
1465 --disable-raw-api make the raw api unavailable
1466 --enable-purify-safety purify-safe mode
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-pic try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1483 CCAS assembler compiler command (defaults to CC)
1484 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1485 CPP C preprocessor
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to <http://gcc.gnu.org/bugs.html>.
1491 _ACEOF
1492 ac_status=$?
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 continue
1501 ac_builddir=.
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1519 case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552 cat <<\_ACEOF
1553 libffi configure 3.0.11
1554 generated by GNU Autoconf 2.64
1556 Copyright (C) 2009 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560 exit
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1598 ac_retval=1
1600 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 return $ac_retval
1603 } # ac_fn_c_try_compile
1605 # ac_fn_c_try_link LINENO
1606 # -----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_link ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext conftest$ac_exeext
1612 if { { ac_try="$ac_link"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_link") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest$ac_exeext && {
1631 test "$cross_compiling" = yes ||
1632 $as_test_x conftest$ac_exeext
1633 }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1639 ac_retval=1
1641 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643 # interfere with the next link command; also delete a directory that is
1644 # left behind by Apple's compiler. We do this before executing the actions.
1645 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 return $ac_retval
1649 } # ac_fn_c_try_link
1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists and can be compiled using the include files in
1654 # INCLUDES, setting the cache variable VAR accordingly.
1655 ac_fn_c_check_header_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1662 else
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 eval "$3=yes"
1670 else
1671 eval "$3=no"
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680 } # ac_fn_c_check_header_compile
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } >/dev/null && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=1
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1717 } # ac_fn_c_try_cpp
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=$ac_status
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1759 } # ac_fn_c_try_run
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776 #define $2 innocuous_$2
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (); below.
1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781 <limits.h> exists even on freestanding compilers. */
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1789 #undef $2
1791 /* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1806 main ()
1808 return $2 ();
1810 return 0;
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext \
1819 conftest$ac_exeext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_func
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1840 $as_echo_n "(cached) " >&6
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846 # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_header_compiler=yes
1856 else
1857 ac_header_compiler=no
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871 ac_header_preproc=yes
1872 else
1873 ac_header_preproc=no
1875 rm -f conftest.err conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1879 # So? What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881 yes:no: )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 no:yes:* )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 ( cat <<\_ASBOX
1899 ## ------------------------------------------- ##
1900 ## Report this to http://gcc.gnu.org/bugs.html ##
1901 ## ------------------------------------------- ##
1902 _ASBOX
1903 ) | sed "s/^/$as_me: WARNING: /" >&2
1905 esac
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 eval "$3=\$ac_header_compiler"
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_check_header_mongrel
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1925 # computed
1926 ac_fn_c_compute_int ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 main ()
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1938 test_array [0] = 0
1941 return 0;
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_lo=0 ac_mid=0
1946 while :; do
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 main ()
1953 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1954 test_array [0] = 0
1957 return 0;
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_hi=$ac_mid; break
1962 else
1963 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1964 if test $ac_lo -le $ac_mid; then
1965 ac_lo= ac_hi=
1966 break
1968 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 done
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 main ()
1979 static int test_array [1 - 2 * !(($2) < 0)];
1980 test_array [0] = 0
1983 return 0;
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 ac_hi=-1 ac_mid=-1
1988 while :; do
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996 test_array [0] = 0
1999 return 0;
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_lo=$ac_mid; break
2004 else
2005 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2006 if test $ac_mid -le $ac_hi; then
2007 ac_lo= ac_hi=
2008 break
2010 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 done
2014 else
2015 ac_lo= ac_hi=
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 # Binary search between lo and hi bounds.
2021 while test "x$ac_lo" != "x$ac_hi"; do
2022 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=$ac_mid
2038 else
2039 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 case $ac_lo in #((
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045 '') ac_retval=1 ;;
2046 esac
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2053 #include <stdio.h>
2054 #include <stdlib.h>
2056 main ()
2059 FILE *f = fopen ("conftest.val", "w");
2060 if (! f)
2061 return 1;
2062 if (($2) < 0)
2064 long int i = longval ();
2065 if (i != ($2))
2066 return 1;
2067 fprintf (f, "%ld", i);
2069 else
2071 unsigned long int i = ulongval ();
2072 if (i != ($2))
2073 return 1;
2074 fprintf (f, "%lu", i);
2076 /* Do not output a trailing newline, as this causes \r\n confusion
2077 on some platforms. */
2078 return ferror (f) || fclose (f) != 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_run "$LINENO"; then :
2085 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086 else
2087 ac_retval=1
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090 conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f conftest.val
2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 return $ac_retval
2097 } # ac_fn_c_compute_int
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by libffi $as_me 3.0.11, which was
2103 generated by GNU Autoconf 2.64. Invocation command line was
2105 $ $0 $@
2107 _ACEOF
2108 exec 5>>config.log
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 _ASUNAME
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141 IFS=$as_save_IFS
2143 } >&5
2145 cat >&5 <<_ACEOF
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2152 _ACEOF
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2166 for ac_arg
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2195 as_fn_append ac_configure_args " '$ac_arg'"
2197 esac
2198 done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2211 echo
2213 cat <<\_ASBOX
2214 ## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##
2217 _ASBOX
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 esac |
2247 sort
2249 echo
2251 cat <<\_ASBOX
2252 ## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##
2255 _ASBOX
2256 echo
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
2267 if test -n "$ac_subst_files"; then
2268 cat <<\_ASBOX
2269 ## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##
2272 _ASBOX
2273 echo
2274 for ac_var in $ac_subst_files
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2285 if test -s confdefs.h; then
2286 cat <<\_ASBOX
2287 ## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##
2290 _ASBOX
2291 echo
2292 cat confdefs.h
2293 echo
2295 test "$ac_signal" != 0 &&
2296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
2298 } >&5
2299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 exit $exit_status
2303 for ac_signal in 1 2 13 15; do
2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2311 $as_echo "/* confdefs.h */" > confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345 ac_site_file1=$CONFIG_SITE
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file"
2362 done
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special
2366 # files actually), so we avoid doing that.
2367 if test -f "$cache_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2381 # Check that the precious variables saved in the cache have kept the same
2382 # value.
2383 ac_cache_corrupted=false
2384 for ac_var in $ac_precious_vars; do
2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386 eval ac_new_set=\$ac_env_${ac_var}_set
2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388 eval ac_new_val=\$ac_env_${ac_var}_value
2389 case $ac_old_set,$ac_new_set in
2390 set,)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,set)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,);;
2400 if test "x$ac_old_val" != "x$ac_new_val"; then
2401 # differences in whitespace do not lead to failure.
2402 ac_old_val_w=`echo x $ac_old_val`
2403 ac_new_val_w=`echo x $ac_new_val`
2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407 ac_cache_corrupted=:
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411 eval $ac_var=\$ac_old_val
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 fi;;
2418 esac
2419 # Pass precious variables to config.status.
2420 if test "$ac_new_set" = set; then
2421 case $ac_new_val in
2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 *) ac_arg=$ac_var=$ac_new_val ;;
2424 esac
2425 case " $ac_configure_args " in
2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 esac
2430 done
2431 if $ac_cache_corrupted; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 ## -------------------- ##
2439 ## Main body of script. ##
2440 ## -------------------- ##
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 ac_config_headers="$ac_config_headers fficonfig.h"
2455 # Default to --enable-multilib
2456 # Check whether --enable-multilib was given.
2457 if test "${enable_multilib+set}" = set; then :
2458 enableval=$enable_multilib; case "$enableval" in
2459 yes) multilib=yes ;;
2460 no) multilib=no ;;
2461 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2462 esac
2463 else
2464 multilib=yes
2468 # We may get other options which we leave undocumented:
2469 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2470 # See config-ml.in if you want the gory details.
2472 if test "$srcdir" = "."; then
2473 if test "$with_target_subdir" != "."; then
2474 multi_basedir="$srcdir/$with_multisrctop../.."
2475 else
2476 multi_basedir="$srcdir/$with_multisrctop.."
2478 else
2479 multi_basedir="$srcdir/.."
2483 # Even if the default multilib is not a cross compilation,
2484 # it may be that some of the other multilibs are.
2485 if test $cross_compiling = no && test $multilib = yes \
2486 && test "x${with_multisubdir}" != x ; then
2487 cross_compiling=maybe
2490 ac_config_commands="$ac_config_commands default-1"
2493 ac_aux_dir=
2494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2495 for ac_t in install-sh install.sh shtool; do
2496 if test -f "$ac_dir/$ac_t"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/$ac_t -c"
2499 break 2
2501 done
2502 done
2503 if test -z "$ac_aux_dir"; then
2504 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2516 # Make sure we can run config.sub.
2517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2521 $as_echo_n "checking build system type... " >&6; }
2522 if test "${ac_cv_build+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 ac_build_alias=$build_alias
2526 test "x$ac_build_alias" = x &&
2527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2528 test "x$ac_build_alias" = x &&
2529 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2530 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2531 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2535 $as_echo "$ac_cv_build" >&6; }
2536 case $ac_cv_build in
2537 *-*-*) ;;
2538 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2539 esac
2540 build=$ac_cv_build
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_build
2543 shift
2544 build_cpu=$1
2545 build_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 build_os=$*
2550 IFS=$ac_save_IFS
2551 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2555 $as_echo_n "checking host system type... " >&6; }
2556 if test "${ac_cv_host+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test "x$host_alias" = x; then
2560 ac_cv_host=$ac_cv_build
2561 else
2562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2563 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2568 $as_echo "$ac_cv_host" >&6; }
2569 case $ac_cv_host in
2570 *-*-*) ;;
2571 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2572 esac
2573 host=$ac_cv_host
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_host
2576 shift
2577 host_cpu=$1
2578 host_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 host_os=$*
2583 IFS=$ac_save_IFS
2584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2588 $as_echo_n "checking target system type... " >&6; }
2589 if test "${ac_cv_target+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test "x$target_alias" = x; then
2593 ac_cv_target=$ac_cv_host
2594 else
2595 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2596 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2601 $as_echo "$ac_cv_target" >&6; }
2602 case $ac_cv_target in
2603 *-*-*) ;;
2604 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2605 esac
2606 target=$ac_cv_target
2607 ac_save_IFS=$IFS; IFS='-'
2608 set x $ac_cv_target
2609 shift
2610 target_cpu=$1
2611 target_vendor=$2
2612 shift; shift
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2615 target_os=$*
2616 IFS=$ac_save_IFS
2617 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2620 # The aliases save the names the user supplied, while $host etc.
2621 # will get canonicalized.
2622 test -n "$target_alias" &&
2623 test "$program_prefix$program_suffix$program_transform_name" = \
2624 NONENONEs,x,x, &&
2625 program_prefix=${target_alias}-
2627 target_alias=${target_alias-$host_alias}
2629 . ${srcdir}/configure.host
2631 am__api_version='1.11'
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2639 # AIX /bin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if test "${ac_cv_path_install+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 # Account for people who put trailing slashes in PATH elements.
2659 case $as_dir/ in #((
2660 ./ | .// | /[cC]/* | \
2661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663 /usr/ucb/* ) ;;
2665 # OSF1 and SCO ODT 3.0 have their own names for install.
2666 # Don't use installbsd from OSF since it installs stuff as root
2667 # by default.
2668 for ac_prog in ginstall scoinst install; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2671 if test $ac_prog = install &&
2672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673 # AIX install. It has an incompatible calling convention.
2675 elif test $ac_prog = install &&
2676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677 # program-specific install script used by HP pwplus--don't use.
2679 else
2680 rm -rf conftest.one conftest.two conftest.dir
2681 echo one > conftest.one
2682 echo two > conftest.two
2683 mkdir conftest.dir
2684 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685 test -s conftest.one && test -s conftest.two &&
2686 test -s conftest.dir/conftest.one &&
2687 test -s conftest.dir/conftest.two
2688 then
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
2694 done
2695 done
2697 esac
2699 done
2700 IFS=$as_save_IFS
2702 rm -rf conftest.one conftest.two conftest.dir
2705 if test "${ac_cv_path_install+set}" = set; then
2706 INSTALL=$ac_cv_path_install
2707 else
2708 # As a last resort, use the slow shell script. Don't cache a
2709 # value for INSTALL within a source directory, because that will
2710 # break other packages using the cache if that directory is
2711 # removed, or if the value is a relative name.
2712 INSTALL=$ac_install_sh
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716 $as_echo "$INSTALL" >&6; }
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727 $as_echo_n "checking whether build environment is sane... " >&6; }
2728 # Just in case
2729 sleep 1
2730 echo timestamp > conftest.file
2731 # Reject unsafe characters in $srcdir or the absolute working directory
2732 # name. Accept space and tab only in the latter.
2733 am_lf='
2735 case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2738 esac
2739 case $srcdir in
2740 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2741 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2742 esac
2744 # Do `set' in a subshell so we don't clobber the current shell's
2745 # arguments. Must try -L first in case configure is actually a
2746 # symlink; some systems play weird games with the mod time of symlinks
2747 # (eg FreeBSD returns the mod time of the symlink's containing
2748 # directory).
2749 if (
2750 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751 if test "$*" = "X"; then
2752 # -L didn't work.
2753 set X `ls -t "$srcdir/configure" conftest.file`
2755 rm -f conftest.file
2756 if test "$*" != "X $srcdir/configure conftest.file" \
2757 && test "$*" != "X conftest.file $srcdir/configure"; then
2759 # If neither matched, then we have a broken ls. This can happen
2760 # if, for instance, CONFIG_SHELL is bash and it inherits a
2761 # broken ls alias from the environment. This has actually
2762 # happened. Such a system could not be considered "sane".
2763 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2764 alias in your environment" "$LINENO" 5
2767 test "$2" = conftest.file
2769 then
2770 # Ok.
2772 else
2773 as_fn_error "newly created file is older than distributed files!
2774 Check your system clock" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777 $as_echo "yes" >&6; }
2778 test "$program_prefix" != NONE &&
2779 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2780 # Use a double $ so make ignores it.
2781 test "$program_suffix" != NONE &&
2782 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2783 # Double any \ or $.
2784 # By default was `s,x,x', remove it if useless.
2785 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2786 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2788 # expand $ac_aux_dir to an absolute path
2789 am_aux_dir=`cd $ac_aux_dir && pwd`
2791 if test x"${MISSING+set}" != xset; then
2792 case $am_aux_dir in
2793 *\ * | *\ *)
2794 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2796 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2797 esac
2799 # Use eval to expand $SHELL
2800 if eval "$MISSING --run true"; then
2801 am_missing_run="$MISSING --run "
2802 else
2803 am_missing_run=
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2805 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2808 if test x"${install_sh}" != xset; then
2809 case $am_aux_dir in
2810 *\ * | *\ *)
2811 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813 install_sh="\${SHELL} $am_aux_dir/install-sh"
2814 esac
2817 # Installed binaries are usually stripped using `strip' when the user
2818 # run `make install-strip'. However `strip' might not be the right
2819 # tool to use in cross-compilation environments, therefore Automake
2820 # will honor the `STRIP' environment variable to overrule this program.
2821 if test "$cross_compiling" != no; then
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}strip; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_STRIP+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test -n "$STRIP"; then
2831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2844 done
2845 done
2846 IFS=$as_save_IFS
2850 STRIP=$ac_cv_prog_STRIP
2851 if test -n "$STRIP"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2853 $as_echo "$STRIP" >&6; }
2854 else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2861 if test -z "$ac_cv_prog_STRIP"; then
2862 ac_ct_STRIP=$STRIP
2863 # Extract the first word of "strip", so it can be a program name with args.
2864 set dummy strip; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$ac_ct_STRIP"; then
2871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_STRIP="strip"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2884 done
2885 done
2886 IFS=$as_save_IFS
2890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2891 if test -n "$ac_ct_STRIP"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2893 $as_echo "$ac_ct_STRIP" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2899 if test "x$ac_ct_STRIP" = x; then
2900 STRIP=":"
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908 STRIP=$ac_ct_STRIP
2910 else
2911 STRIP="$ac_cv_prog_STRIP"
2915 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2918 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2919 if test -z "$MKDIR_P"; then
2920 if test "${ac_cv_path_mkdir+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_prog in mkdir gmkdir; do
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2931 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2932 'mkdir (GNU coreutils) '* | \
2933 'mkdir (coreutils) '* | \
2934 'mkdir (fileutils) '4.1*)
2935 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2936 break 3;;
2937 esac
2938 done
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 if test "${ac_cv_path_mkdir+set}" = set; then
2946 MKDIR_P="$ac_cv_path_mkdir -p"
2947 else
2948 # As a last resort, use the slow shell script. Don't cache a
2949 # value for MKDIR_P within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the value is a relative name.
2952 test -d ./--version && rmdir ./--version
2953 MKDIR_P="$ac_install_sh -d"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2957 $as_echo "$MKDIR_P" >&6; }
2959 mkdir_p="$MKDIR_P"
2960 case $mkdir_p in
2961 [\\/$]* | ?:[\\/]*) ;;
2962 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2963 esac
2965 for ac_prog in gawk mawk nawk awk
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_AWK+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$AWK"; then
2975 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_AWK="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 AWK=$ac_cv_prog_AWK
2995 if test -n "$AWK"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2997 $as_echo "$AWK" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$AWK" && break
3005 done
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3008 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009 set x ${MAKE-make}
3010 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3011 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 cat >conftest.make <<\_ACEOF
3015 SHELL = /bin/sh
3016 all:
3017 @echo '@@@%%%=$(MAKE)=@@@%%%'
3018 _ACEOF
3019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3020 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021 *@@@%%%=?*=@@@%%%*)
3022 eval ac_cv_prog_make_${ac_make}_set=yes;;
3024 eval ac_cv_prog_make_${ac_make}_set=no;;
3025 esac
3026 rm -f conftest.make
3028 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 SET_MAKE=
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 SET_MAKE="MAKE=${MAKE-make}"
3038 rm -rf .tst 2>/dev/null
3039 mkdir .tst 2>/dev/null
3040 if test -d .tst; then
3041 am__leading_dot=.
3042 else
3043 am__leading_dot=_
3045 rmdir .tst 2>/dev/null
3047 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3049 # is not polluted with repeated "-I."
3050 am__isrc=' -I$(srcdir)'
3051 # test to see if srcdir already configured
3052 if test -f $srcdir/config.status; then
3053 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3057 # test whether we have cygpath
3058 if test -z "$CYGPATH_W"; then
3059 if (cygpath --version) >/dev/null 2>/dev/null; then
3060 CYGPATH_W='cygpath -w'
3061 else
3062 CYGPATH_W=echo
3067 # Define the identity of the package.
3068 PACKAGE='libffi'
3069 VERSION='3.0.11'
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE "$PACKAGE"
3074 _ACEOF
3077 cat >>confdefs.h <<_ACEOF
3078 #define VERSION "$VERSION"
3079 _ACEOF
3081 # Some tools Automake needs.
3083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3097 # We need awk for the "check" target. The system "awk" is bad on
3098 # some platforms.
3099 # Always define AMTAR for backward compatibility.
3101 AMTAR=${AMTAR-"${am_missing_run}tar"}
3103 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3110 # See if makeinfo has been installed and is modern enough
3111 # that we can use it.
3113 # Extract the first word of "makeinfo", so it can be a program name with args.
3114 set dummy makeinfo; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$MAKEINFO"; then
3121 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_MAKEINFO="makeinfo"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3134 done
3135 done
3136 IFS=$as_save_IFS
3140 MAKEINFO=$ac_cv_prog_MAKEINFO
3141 if test -n "$MAKEINFO"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3143 $as_echo "$MAKEINFO" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 if test -n "$MAKEINFO"; then
3151 # Found it, now check the version.
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3153 $as_echo_n "checking for modern makeinfo... " >&6; }
3154 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3158 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3160 case $ac_prog_version in
3161 '') gcc_cv_prog_makeinfo_modern=no;;
3162 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3163 *) gcc_cv_prog_makeinfo_modern=no;;
3164 esac
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3168 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3169 else
3170 gcc_cv_prog_makeinfo_modern=no
3172 if test $gcc_cv_prog_makeinfo_modern = no; then
3173 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3176 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3177 BUILD_INFO_TRUE=
3178 BUILD_INFO_FALSE='#'
3179 else
3180 BUILD_INFO_TRUE='#'
3181 BUILD_INFO_FALSE=
3185 # We would like our source tree to be readonly. However when releases or
3186 # pre-releases are generated, the flex/bison generated files as well as the
3187 # various formats of manuals need to be included along with the rest of the
3188 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3189 # just that.
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3191 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3192 # Check whether --enable-generated-files-in-srcdir was given.
3193 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3194 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3195 yes) enable_generated_files_in_srcdir=yes ;;
3196 no) enable_generated_files_in_srcdir=no ;;
3197 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3198 esac
3199 else
3200 enable_generated_files_in_srcdir=no
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3204 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3205 if test "$enable_generated_files_in_srcdir" = yes; then
3206 GENINSRC_TRUE=
3207 GENINSRC_FALSE='#'
3208 else
3209 GENINSRC_TRUE='#'
3210 GENINSRC_FALSE=
3214 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3215 # We must force CC to /not/ be precious variables; otherwise
3216 # the wrong, non-multilib-adjusted value will be used in multilibs.
3217 # As a side effect, we have to subst CFLAGS ourselves.
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if test "${ac_cv_prog_CC+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3248 done
3249 done
3250 IFS=$as_save_IFS
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3265 if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_ac_ct_CC="gcc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3288 done
3289 done
3290 IFS=$as_save_IFS
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 CC=$ac_ct_CC
3314 else
3315 CC="$ac_cv_prog_CC"
3318 if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if test "${ac_cv_prog_CC+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3341 done
3342 done
3343 IFS=$as_save_IFS
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3359 if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361 set dummy cc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 ac_prog_rejected=no
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3380 continue
3382 ac_cv_prog_CC="cc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3388 IFS=$as_save_IFS
3390 if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3393 shift
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3398 shift
3399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3440 done
3441 done
3442 IFS=$as_save_IFS
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$CC" && break
3457 done
3459 if test -z "$CC"; then
3460 ac_ct_CC=$CC
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_ac_ct_CC="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3484 done
3485 done
3486 IFS=$as_save_IFS
3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491 if test -n "$ac_ct_CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493 $as_echo "$ac_ct_CC" >&6; }
3494 else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$ac_ct_CC" && break
3501 done
3503 if test "x$ac_ct_CC" = x; then
3504 CC=""
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512 CC=$ac_ct_CC
3519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "no acceptable C compiler found in \$PATH
3522 See \`config.log' for more details." "$LINENO" 5; }
3524 # Provide some information about the compiler.
3525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526 set X $ac_compile
3527 ac_compiler=$2
3528 for ac_option in --version -v -V -qversion; do
3529 { { ac_try="$ac_compiler $ac_option >&5"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 ac_status=$?
3538 if test -s conftest.err; then
3539 sed '10a\
3540 ... rest of stderr output deleted ...
3541 10q' conftest.err >conftest.er1
3542 cat conftest.er1 >&5
3543 rm -f conftest.er1 conftest.err
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3547 done
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3557 return 0;
3559 _ACEOF
3560 ac_clean_files_save=$ac_clean_files
3561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3562 # Try to create an executable without -o first, disregard a.out.
3563 # It will help us diagnose broken compilers, and finding out an intuition
3564 # of exeext.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566 $as_echo_n "checking for C compiler default output file name... " >&6; }
3567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569 # The possible output files:
3570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572 ac_rmfiles=
3573 for ac_file in $ac_files
3575 case $ac_file in
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578 esac
3579 done
3580 rm -f $ac_rmfiles
3582 if { { ac_try="$ac_link_default"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link_default") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3596 # so that the user can short-circuit this test for compilers unknown to
3597 # Autoconf.
3598 for ac_file in $ac_files ''
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3604 [ab].out )
3605 # We found the default executable, but exeext='' is most
3606 # certainly right.
3607 break;;
3608 *.* )
3609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610 then :; else
3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 # We set ac_cv_exeext here because the later test for it is not
3614 # safe: cross compilers may not add the suffix if given an `-o'
3615 # argument, so we may need to know it at that point already.
3616 # Even if this section looks crufty: it has the advantage of
3617 # actually working.
3618 break;;
3620 break;;
3621 esac
3622 done
3623 test "$ac_cv_exeext" = no && ac_cv_exeext=
3625 else
3626 ac_file=''
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3629 $as_echo "$ac_file" >&6; }
3630 if test -z "$ac_file"; then :
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 { as_fn_set_status 77
3637 as_fn_error "C compiler cannot create executables
3638 See \`config.log' for more details." "$LINENO" 5; }; }
3640 ac_exeext=$ac_cv_exeext
3642 # Check that the compiler produces executables we can run. If not, either
3643 # the compiler is broken, or we cross compile.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645 $as_echo_n "checking whether the C compiler works... " >&6; }
3646 # If not cross compiling, check that we can run a simple program.
3647 if test "$cross_compiling" != yes; then
3648 if { ac_try='./$ac_file'
3649 { { case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_try") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; }; then
3659 cross_compiling=no
3660 else
3661 if test "$cross_compiling" = maybe; then
3662 cross_compiling=yes
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot run C compiled programs.
3667 If you meant to cross compile, use \`--host'.
3668 See \`config.log' for more details." "$LINENO" 5; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3675 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3676 ac_clean_files=$ac_clean_files_save
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680 $as_echo_n "checking whether we are cross compiling... " >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682 $as_echo "$cross_compiling" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3685 $as_echo_n "checking for suffix of executables... " >&6; }
3686 if { { ac_try="$ac_link"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_link") 2>&5
3694 ac_status=$?
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3699 # work properly (i.e., refer to `conftest.exe'), while it won't with
3700 # `rm'.
3701 for ac_file in conftest.exe conftest conftest.*; do
3702 test -f "$ac_file" || continue
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 break;;
3707 * ) break;;
3708 esac
3709 done
3710 else
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_error "cannot compute suffix of executables: cannot compile and link
3714 See \`config.log' for more details." "$LINENO" 5; }
3716 rm -f conftest$ac_cv_exeext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718 $as_echo "$ac_cv_exeext" >&6; }
3720 rm -f conftest.$ac_ext
3721 EXEEXT=$ac_cv_exeext
3722 ac_exeext=$EXEEXT
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3724 $as_echo_n "checking for suffix of object files... " >&6; }
3725 if test "${ac_cv_objext+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3732 main ()
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.o conftest.obj
3740 if { { ac_try="$ac_compile"
3741 case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_compile") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 for ac_file in conftest.o conftest.obj conftest.*; do
3752 test -f "$ac_file" || continue;
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756 break;;
3757 esac
3758 done
3759 else
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error "cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details." "$LINENO" 5; }
3768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3771 $as_echo "$ac_cv_objext" >&6; }
3772 OBJEXT=$ac_cv_objext
3773 ac_objext=$OBJEXT
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3776 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3783 main ()
3785 #ifndef __GNUC__
3786 choke me
3787 #endif
3790 return 0;
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_compiler_gnu=yes
3795 else
3796 ac_compiler_gnu=no
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3804 if test $ac_compiler_gnu = yes; then
3805 GCC=yes
3806 else
3807 GCC=
3809 ac_test_CFLAGS=${CFLAGS+set}
3810 ac_save_CFLAGS=$CFLAGS
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3813 if test "${ac_cv_prog_cc_g+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_save_c_werror_flag=$ac_c_werror_flag
3817 ac_c_werror_flag=yes
3818 ac_cv_prog_cc_g=no
3819 CFLAGS="-g"
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_g=yes
3833 else
3834 CFLAGS=""
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 if ac_fn_c_try_compile "$LINENO"; then :
3848 else
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_c_werror_flag=$ac_save_c_werror_flag
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3873 $as_echo "$ac_cv_prog_cc_g" >&6; }
3874 if test "$ac_test_CFLAGS" = set; then
3875 CFLAGS=$ac_save_CFLAGS
3876 elif test $ac_cv_prog_cc_g = yes; then
3877 if test "$GCC" = yes; then
3878 CFLAGS="-g -O2"
3879 else
3880 CFLAGS="-g"
3882 else
3883 if test "$GCC" = yes; then
3884 CFLAGS="-O2"
3885 else
3886 CFLAGS=
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 ac_cv_prog_cc_c89=no
3895 ac_save_CC=$CC
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898 #include <stdarg.h>
3899 #include <stdio.h>
3900 #include <sys/types.h>
3901 #include <sys/stat.h>
3902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3903 struct buf { int x; };
3904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905 static char *e (p, i)
3906 char **p;
3907 int i;
3909 return p[i];
3911 static char *f (char * (*g) (char **, int), char **p, ...)
3913 char *s;
3914 va_list v;
3915 va_start (v,p);
3916 s = g (p, va_arg (v,int));
3917 va_end (v);
3918 return s;
3921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3922 function prototypes and stuff, but not '\xHH' hex character constants.
3923 These don't provoke an error unfortunately, instead are silently treated
3924 as 'x'. The following induces an error, until -std is added to get
3925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3926 array size at least. It's necessary to write '\x00'==0 to get something
3927 that's true only with -std. */
3928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931 inside strings and character constants. */
3932 #define FOO(x) 'x'
3933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3935 int test (int i, double x);
3936 struct s1 {int (*f) (int a);};
3937 struct s2 {int (*f) (double a);};
3938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939 int argc;
3940 char **argv;
3942 main ()
3944 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3946 return 0;
3948 _ACEOF
3949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3952 CC="$ac_save_CC $ac_arg"
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_cv_prog_cc_c89=$ac_arg
3956 rm -f core conftest.err conftest.$ac_objext
3957 test "x$ac_cv_prog_cc_c89" != "xno" && break
3958 done
3959 rm -f conftest.$ac_ext
3960 CC=$ac_save_CC
3963 # AC_CACHE_VAL
3964 case "x$ac_cv_prog_cc_c89" in
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967 $as_echo "none needed" >&6; } ;;
3968 xno)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 $as_echo "unsupported" >&6; } ;;
3972 CC="$CC $ac_cv_prog_cc_c89"
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975 esac
3976 if test "x$ac_cv_prog_cc_c89" != xno; then :
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 DEPDIR="${am__leading_dot}deps"
3987 ac_config_commands="$ac_config_commands depfiles"
3990 am_make=${MAKE-make}
3991 cat > confinc << 'END'
3992 am__doit:
3993 @echo this is the am__doit target
3994 .PHONY: am__doit
3996 # If we don't find an include directive, just comment out the code.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3999 am__include="#"
4000 am__quote=
4001 _am_result=none
4002 # First try GNU make style include.
4003 echo "include confinc" > confmf
4004 # Ignore all kinds of additional output from `make'.
4005 case `$am_make -s -f confmf 2> /dev/null` in #(
4006 *the\ am__doit\ target*)
4007 am__include=include
4008 am__quote=
4009 _am_result=GNU
4011 esac
4012 # Now try BSD make style include.
4013 if test "$am__include" = "#"; then
4014 echo '.include "confinc"' > confmf
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4017 am__include=.include
4018 am__quote="\""
4019 _am_result=BSD
4021 esac
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4026 $as_echo "$_am_result" >&6; }
4027 rm -f confinc confmf
4029 # Check whether --enable-dependency-tracking was given.
4030 if test "${enable_dependency_tracking+set}" = set; then :
4031 enableval=$enable_dependency_tracking;
4034 if test "x$enable_dependency_tracking" != xno; then
4035 am_depcomp="$ac_aux_dir/depcomp"
4036 AMDEPBACKSLASH='\'
4038 if test "x$enable_dependency_tracking" != xno; then
4039 AMDEP_TRUE=
4040 AMDEP_FALSE='#'
4041 else
4042 AMDEP_TRUE='#'
4043 AMDEP_FALSE=
4048 depcc="$CC" am_compiler_list=
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4051 $as_echo_n "checking dependency style of $depcc... " >&6; }
4052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4056 # We make a subdir and do the tests there. Otherwise we can end up
4057 # making bogus files that we don't know about and never remove. For
4058 # instance it was reported that on HP-UX the gcc test will end up
4059 # making a dummy file named `D' -- because `-MD' means `put the output
4060 # in D'.
4061 mkdir conftest.dir
4062 # Copy depcomp to subdir because otherwise we won't find it if we're
4063 # using a relative directory.
4064 cp "$am_depcomp" conftest.dir
4065 cd conftest.dir
4066 # We will build objects and dependencies in a subdirectory because
4067 # it helps to detect inapplicable dependency modes. For instance
4068 # both Tru64's cc and ICC support -MD to output dependencies as a
4069 # side effect of compilation, but ICC will put the dependencies in
4070 # the current directory while Tru64 will put them in the object
4071 # directory.
4072 mkdir sub
4074 am_cv_CC_dependencies_compiler_type=none
4075 if test "$am_compiler_list" = ""; then
4076 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078 am__universal=false
4079 case " $depcc " in #(
4080 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4081 esac
4083 for depmode in $am_compiler_list; do
4084 # Setup a source with many dependencies, because some compilers
4085 # like to wrap large dependency lists on column 80 (with \), and
4086 # we should not choose a depcomp mode which is confused by this.
4088 # We need to recreate these files for each test, as the compiler may
4089 # overwrite some of them when testing with obscure command lines.
4090 # This happens at least with the AIX C compiler.
4091 : > sub/conftest.c
4092 for i in 1 2 3 4 5 6; do
4093 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4094 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4095 # Solaris 8's {/usr,}/bin/sh.
4096 touch sub/conftst$i.h
4097 done
4098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4101 # mode. It turns out that the SunPro C++ compiler does not properly
4102 # handle `-M -o', and we need to detect this. Also, some Intel
4103 # versions had trouble with output in subdirs
4104 am__obj=sub/conftest.${OBJEXT-o}
4105 am__minus_obj="-o $am__obj"
4106 case $depmode in
4107 gcc)
4108 # This depmode causes a compiler race in universal mode.
4109 test "$am__universal" = false || continue
4111 nosideeffect)
4112 # after this tag, mechanisms are not by side-effect, so they'll
4113 # only be used when explicitly requested
4114 if test "x$enable_dependency_tracking" = xyes; then
4115 continue
4116 else
4117 break
4120 msvisualcpp | msvcmsys)
4121 # This compiler won't grok `-c -o', but also, the minuso test has
4122 # not run yet. These depmodes are late enough in the game, and
4123 # so weak that their functioning should not be impacted.
4124 am__obj=conftest.${OBJEXT-o}
4125 am__minus_obj=
4127 none) break ;;
4128 esac
4129 if depmode=$depmode \
4130 source=sub/conftest.c object=$am__obj \
4131 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4132 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4133 >/dev/null 2>conftest.err &&
4134 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4135 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4136 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4137 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4138 # icc doesn't choke on unknown options, it will just issue warnings
4139 # or remarks (even with -Werror). So we grep stderr for any message
4140 # that says an option was ignored or not supported.
4141 # When given -MP, icc 7.0 and 7.1 complain thusly:
4142 # icc: Command line warning: ignoring option '-M'; no argument required
4143 # The diagnosis changed in icc 8.0:
4144 # icc: Command line remark: option '-MP' not supported
4145 if (grep 'ignoring option' conftest.err ||
4146 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4147 am_cv_CC_dependencies_compiler_type=$depmode
4148 break
4151 done
4153 cd ..
4154 rm -rf conftest.dir
4155 else
4156 am_cv_CC_dependencies_compiler_type=none
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4161 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4162 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4165 test "x$enable_dependency_tracking" != xno \
4166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4167 am__fastdepCC_TRUE=
4168 am__fastdepCC_FALSE='#'
4169 else
4170 am__fastdepCC_TRUE='#'
4171 am__fastdepCC_FALSE=
4179 # By default we simply use the C compiler to build assembly code.
4181 test "${CCAS+set}" = set || CCAS=$CC
4182 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4186 depcc="$CCAS" am_compiler_list=
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4189 $as_echo_n "checking dependency style of $depcc... " >&6; }
4190 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4194 # We make a subdir and do the tests there. Otherwise we can end up
4195 # making bogus files that we don't know about and never remove. For
4196 # instance it was reported that on HP-UX the gcc test will end up
4197 # making a dummy file named `D' -- because `-MD' means `put the output
4198 # in D'.
4199 mkdir conftest.dir
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4203 cd conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4209 # directory.
4210 mkdir sub
4212 am_cv_CCAS_dependencies_compiler_type=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216 am__universal=false
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4227 : > sub/conftest.c
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231 # Solaris 8's {/usr,}/bin/sh.
4232 touch sub/conftst$i.h
4233 done
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle `-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4242 case $depmode in
4243 gcc)
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4247 nosideeffect)
4248 # after this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested
4250 if test "x$enable_dependency_tracking" = xyes; then
4251 continue
4252 else
4253 break
4256 msvisualcpp | msvcmsys)
4257 # This compiler won't grok `-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4261 am__minus_obj=
4263 none) break ;;
4264 esac
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CCAS_dependencies_compiler_type=$depmode
4284 break
4287 done
4289 cd ..
4290 rm -rf conftest.dir
4291 else
4292 am_cv_CCAS_dependencies_compiler_type=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4298 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4303 am__fastdepCCAS_TRUE=
4304 am__fastdepCCAS_FALSE='#'
4305 else
4306 am__fastdepCCAS_TRUE='#'
4307 am__fastdepCCAS_FALSE=
4311 if test "x$CC" != xcc; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4313 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4316 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4318 set dummy $CC; ac_cc=`$as_echo "$2" |
4319 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4320 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4327 main ()
4331 return 0;
4333 _ACEOF
4334 # Make sure it works both with $CC and with simple cc.
4335 # We do the test twice because some compilers refuse to overwrite an
4336 # existing .o file with -o, though they will create one.
4337 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338 rm -f conftest2.*
4339 if { { case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_try") 2>&5
4346 ac_status=$?
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; } &&
4349 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4358 test $ac_status = 0; };
4359 then
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4361 if test "x$CC" != xcc; then
4362 # Test first that cc exists at all.
4363 if { ac_try='cc -c conftest.$ac_ext >&5'
4364 { { case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4369 $as_echo "$ac_try_echo"; } >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4373 test $ac_status = 0; }; }; then
4374 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4375 rm -f conftest2.*
4376 if { { case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$ac_try") 2>&5
4383 ac_status=$?
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; } &&
4386 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_try") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; };
4396 then
4397 # cc works too.
4399 else
4400 # cc exists but doesn't like -o.
4401 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4405 else
4406 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4408 rm -f core conftest*
4411 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4413 $as_echo "yes" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4418 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4422 # FIXME: we rely on the cache variable name because
4423 # there is no other way.
4424 set dummy $CC
4425 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4426 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4427 if test "$am_t" != yes; then
4428 # Losing compiler, so override with the script.
4429 # FIXME: It is wrong to rewrite CC.
4430 # But if we don't then we get into trouble of one sort or another.
4431 # A longer-term fix would be to have automake use am__CC in this case,
4432 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433 CC="$am_aux_dir/compile $CC"
4437 case `pwd` in
4438 *\ * | *\ *)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4440 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4441 esac
4445 macro_version='2.2.7a'
4446 macro_revision='1.3134'
4460 ltmain="$ac_aux_dir/ltmain.sh"
4462 # Backslashify metacharacters that are still active within
4463 # double-quoted strings.
4464 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4466 # Same as above, but do not quote variable references.
4467 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4469 # Sed substitution to delay expansion of an escaped shell variable in a
4470 # double_quote_subst'ed string.
4471 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4473 # Sed substitution to delay expansion of an escaped single quote.
4474 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4476 # Sed substitution to avoid accidental globbing in evaled expressions
4477 no_glob_subst='s/\*/\\\*/g'
4479 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4484 $as_echo_n "checking how to print strings... " >&6; }
4485 # Test print first, because it will be a builtin if present.
4486 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4487 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4488 ECHO='print -r --'
4489 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4490 ECHO='printf %s\n'
4491 else
4492 # Use this function as a fallback that always works.
4493 func_fallback_echo ()
4495 eval 'cat <<_LTECHO_EOF
4497 _LTECHO_EOF'
4499 ECHO='func_fallback_echo'
4502 # func_echo_all arg...
4503 # Invoke $ECHO with all args, space-separated.
4504 func_echo_all ()
4506 $ECHO ""
4509 case "$ECHO" in
4510 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4511 $as_echo "printf" >&6; } ;;
4512 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4513 $as_echo "print -r" >&6; } ;;
4514 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4515 $as_echo "cat" >&6; } ;;
4516 esac
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if test "${ac_cv_path_SED+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4537 for ac_i in 1 2 3 4 5 6 7; do
4538 ac_script="$ac_script$as_nl$ac_script"
4539 done
4540 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4541 { ac_script=; unset ac_script;}
4542 if test -z "$SED"; then
4543 ac_path_SED_found=false
4544 # Loop through the user's path and test for each of PROGNAME-LIST
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_prog in sed gsed; do
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4553 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4554 # Check for GNU ac_path_SED and select it if it is found.
4555 # Check for GNU $ac_path_SED
4556 case `"$ac_path_SED" --version 2>&1` in
4557 *GNU*)
4558 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4560 ac_count=0
4561 $as_echo_n 0123456789 >"conftest.in"
4562 while :
4564 cat "conftest.in" "conftest.in" >"conftest.tmp"
4565 mv "conftest.tmp" "conftest.in"
4566 cp "conftest.in" "conftest.nl"
4567 $as_echo '' >> "conftest.nl"
4568 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570 as_fn_arith $ac_count + 1 && ac_count=$as_val
4571 if test $ac_count -gt ${ac_path_SED_max-0}; then
4572 # Best one so far, save it but keep looking for a better one
4573 ac_cv_path_SED="$ac_path_SED"
4574 ac_path_SED_max=$ac_count
4576 # 10*(2^10) chars as input seems more than enough
4577 test $ac_count -gt 10 && break
4578 done
4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4582 $ac_path_SED_found && break 3
4583 done
4584 done
4585 done
4586 IFS=$as_save_IFS
4587 if test -z "$ac_cv_path_SED"; then
4588 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4590 else
4591 ac_cv_path_SED=$SED
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4596 $as_echo "$ac_cv_path_SED" >&6; }
4597 SED="$ac_cv_path_SED"
4598 rm -f conftest.sed
4600 test -z "$SED" && SED=sed
4601 Xsed="$SED -e 1s/^X//"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if test "${ac_cv_path_GREP+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$GREP"; then
4619 ac_path_GREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in grep ggrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631 # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636 ac_count=0
4637 $as_echo_n 0123456789 >"conftest.in"
4638 while :
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'GREP' >> "conftest.nl"
4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_GREP="$ac_path_GREP"
4650 ac_path_GREP_max=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4654 done
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4658 $ac_path_GREP_found && break 3
4659 done
4660 done
4661 done
4662 IFS=$as_save_IFS
4663 if test -z "$ac_cv_path_GREP"; then
4664 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666 else
4667 ac_cv_path_GREP=$GREP
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if test "${ac_cv_path_EGREP+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682 then ac_cv_path_EGREP="$GREP -E"
4683 else
4684 if test -z "$EGREP"; then
4685 ac_path_EGREP_found=false
4686 # Loop through the user's path and test for each of PROGNAME-LIST
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_prog in egrep; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697 # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702 ac_count=0
4703 $as_echo_n 0123456789 >"conftest.in"
4704 while :
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 $as_echo 'EGREP' >> "conftest.nl"
4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_EGREP="$ac_path_EGREP"
4716 ac_path_EGREP_max=$ac_count
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4720 done
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4724 $ac_path_EGREP_found && break 3
4725 done
4726 done
4727 done
4728 IFS=$as_save_IFS
4729 if test -z "$ac_cv_path_EGREP"; then
4730 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732 else
4733 ac_cv_path_EGREP=$EGREP
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4744 $as_echo_n "checking for fgrep... " >&6; }
4745 if test "${ac_cv_path_FGREP+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4749 then ac_cv_path_FGREP="$GREP -F"
4750 else
4751 if test -z "$FGREP"; then
4752 ac_path_FGREP_found=false
4753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_prog in fgrep; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763 # Check for GNU ac_path_FGREP and select it if it is found.
4764 # Check for GNU $ac_path_FGREP
4765 case `"$ac_path_FGREP" --version 2>&1` in
4766 *GNU*)
4767 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4769 ac_count=0
4770 $as_echo_n 0123456789 >"conftest.in"
4771 while :
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 $as_echo 'FGREP' >> "conftest.nl"
4777 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_FGREP="$ac_path_FGREP"
4783 ac_path_FGREP_max=$ac_count
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4791 $ac_path_FGREP_found && break 3
4792 done
4793 done
4794 done
4795 IFS=$as_save_IFS
4796 if test -z "$ac_cv_path_FGREP"; then
4797 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799 else
4800 ac_cv_path_FGREP=$FGREP
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4806 $as_echo "$ac_cv_path_FGREP" >&6; }
4807 FGREP="$ac_cv_path_FGREP"
4810 test -z "$GREP" && GREP=grep
4830 # Check whether --with-gnu-ld was given.
4831 if test "${with_gnu_ld+set}" = set; then :
4832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4833 else
4834 with_gnu_ld=no
4837 ac_prog=ld
4838 if test "$GCC" = yes; then
4839 # Check if gcc -print-prog-name=ld gives a path.
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4841 $as_echo_n "checking for ld used by $CC... " >&6; }
4842 case $host in
4843 *-*-mingw*)
4844 # gcc leaves a trailing carriage return which upsets mingw
4845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4848 esac
4849 case $ac_prog in
4850 # Accept absolute paths.
4851 [\\/]* | ?:[\\/]*)
4852 re_direlt='/[^/][^/]*/\.\./'
4853 # Canonicalize the pathname of ld
4854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4857 done
4858 test -z "$LD" && LD="$ac_prog"
4861 # If it fails, then pretend we aren't using GCC.
4862 ac_prog=ld
4865 # If it is relative, then search for the first ld in PATH.
4866 with_gnu_ld=unknown
4868 esac
4869 elif test "$with_gnu_ld" = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4871 $as_echo_n "checking for GNU ld... " >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4874 $as_echo_n "checking for non-GNU ld... " >&6; }
4876 if test "${lt_cv_path_LD+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -z "$LD"; then
4880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4881 for ac_dir in $PATH; do
4882 IFS="$lt_save_ifs"
4883 test -z "$ac_dir" && ac_dir=.
4884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4885 lt_cv_path_LD="$ac_dir/$ac_prog"
4886 # Check to see if the program is GNU ld. I'd rather use --version,
4887 # but apparently some variants of GNU ld only accept -v.
4888 # Break only if it was the GNU/non-GNU ld that we prefer.
4889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4890 *GNU* | *'with BFD'*)
4891 test "$with_gnu_ld" != no && break
4894 test "$with_gnu_ld" != yes && break
4896 esac
4898 done
4899 IFS="$lt_save_ifs"
4900 else
4901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4905 LD="$lt_cv_path_LD"
4906 if test -n "$LD"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4908 $as_echo "$LD" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4913 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4916 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4920 case `$LD -v 2>&1 </dev/null` in
4921 *GNU* | *'with BFD'*)
4922 lt_cv_prog_gnu_ld=yes
4925 lt_cv_prog_gnu_ld=no
4927 esac
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4931 with_gnu_ld=$lt_cv_prog_gnu_ld
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4942 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4943 if test "${lt_cv_path_NM+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$NM"; then
4947 # Let the user override the test.
4948 lt_cv_path_NM="$NM"
4949 else
4950 lt_nm_to_check="${ac_tool_prefix}nm"
4951 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4952 lt_nm_to_check="$lt_nm_to_check nm"
4954 for lt_tmp_nm in $lt_nm_to_check; do
4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4957 IFS="$lt_save_ifs"
4958 test -z "$ac_dir" && ac_dir=.
4959 tmp_nm="$ac_dir/$lt_tmp_nm"
4960 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4961 # Check to see if the nm accepts a BSD-compat flag.
4962 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4963 # nm: unknown option "B" ignored
4964 # Tru64's nm complains that /dev/null is an invalid object file
4965 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4966 */dev/null* | *'Invalid file or object type'*)
4967 lt_cv_path_NM="$tmp_nm -B"
4968 break
4971 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4972 */dev/null*)
4973 lt_cv_path_NM="$tmp_nm -p"
4974 break
4977 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4978 continue # so that we can try to find one that supports BSD flags
4980 esac
4982 esac
4984 done
4985 IFS="$lt_save_ifs"
4986 done
4987 : ${lt_cv_path_NM=no}
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4991 $as_echo "$lt_cv_path_NM" >&6; }
4992 if test "$lt_cv_path_NM" != "no"; then
4993 NM="$lt_cv_path_NM"
4994 else
4995 # Didn't find any BSD compatible name lister, look for dumpbin.
4996 if test -n "$DUMPBIN"; then :
4997 # Let the user override the test.
4998 else
4999 if test -n "$ac_tool_prefix"; then
5000 for ac_prog in dumpbin "link -dump"
5002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$DUMPBIN"; then
5010 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5011 else
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_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 DUMPBIN=$ac_cv_prog_DUMPBIN
5030 if test -n "$DUMPBIN"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5032 $as_echo "$DUMPBIN" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 test -n "$DUMPBIN" && break
5040 done
5042 if test -z "$DUMPBIN"; then
5043 ac_ct_DUMPBIN=$DUMPBIN
5044 for ac_prog in dumpbin "link -dump"
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$ac_ct_DUMPBIN"; then
5054 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5074 if test -n "$ac_ct_DUMPBIN"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5076 $as_echo "$ac_ct_DUMPBIN" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 test -n "$ac_ct_DUMPBIN" && break
5084 done
5086 if test "x$ac_ct_DUMPBIN" = x; then
5087 DUMPBIN=":"
5088 else
5089 case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 DUMPBIN=$ac_ct_DUMPBIN
5099 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5100 *COFF*)
5101 DUMPBIN="$DUMPBIN -symbols"
5104 DUMPBIN=:
5106 esac
5109 if test "$DUMPBIN" != ":"; then
5110 NM="$DUMPBIN"
5113 test -z "$NM" && NM=nm
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5122 if test "${lt_cv_nm_interface+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 lt_cv_nm_interface="BSD nm"
5126 echo "int some_variable = 0;" > conftest.$ac_ext
5127 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5128 (eval "$ac_compile" 2>conftest.err)
5129 cat conftest.err >&5
5130 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5132 cat conftest.err >&5
5133 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5134 cat conftest.out >&5
5135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5136 lt_cv_nm_interface="MS dumpbin"
5138 rm -f conftest*
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5141 $as_echo "$lt_cv_nm_interface" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5144 $as_echo_n "checking whether ln -s works... " >&6; }
5145 LN_S=$as_ln_s
5146 if test "$LN_S" = "ln -s"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5151 $as_echo "no, using $LN_S" >&6; }
5154 # find the maximum length of command line arguments
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5156 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5157 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5161 teststring="ABCD"
5163 case $build_os in
5164 msdosdjgpp*)
5165 # On DJGPP, this test can blow up pretty badly due to problems in libc
5166 # (any single argument exceeding 2000 bytes causes a buffer overrun
5167 # during glob expansion). Even if it were fixed, the result of this
5168 # check would be larger than it should be.
5169 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5172 gnu*)
5173 # Under GNU Hurd, this test is not required because there is
5174 # no limit to the length of command line arguments.
5175 # Libtool will interpret -1 as no limit whatsoever
5176 lt_cv_sys_max_cmd_len=-1;
5179 cygwin* | mingw* | cegcc*)
5180 # On Win9x/ME, this test blows up -- it succeeds, but takes
5181 # about 5 minutes as the teststring grows exponentially.
5182 # Worse, since 9x/ME are not pre-emptively multitasking,
5183 # you end up with a "frozen" computer, even though with patience
5184 # the test eventually succeeds (with a max line length of 256k).
5185 # Instead, let's just punt: use the minimum linelength reported by
5186 # all of the supported platforms: 8192 (on NT/2K/XP).
5187 lt_cv_sys_max_cmd_len=8192;
5190 mint*)
5191 # On MiNT this can take a long time and run out of memory.
5192 lt_cv_sys_max_cmd_len=8192;
5195 amigaos*)
5196 # On AmigaOS with pdksh, this test takes hours, literally.
5197 # So we just punt and use a minimum line length of 8192.
5198 lt_cv_sys_max_cmd_len=8192;
5201 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5202 # This has been around since 386BSD, at least. Likely further.
5203 if test -x /sbin/sysctl; then
5204 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5205 elif test -x /usr/sbin/sysctl; then
5206 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5207 else
5208 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5210 # And add a safety zone
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5215 interix*)
5216 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5217 lt_cv_sys_max_cmd_len=196608
5220 osf*)
5221 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5222 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5223 # nice to cause kernel panics so lets avoid the loop below.
5224 # First set a reasonable default.
5225 lt_cv_sys_max_cmd_len=16384
5227 if test -x /sbin/sysconfig; then
5228 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5229 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5230 esac
5233 sco3.2v5*)
5234 lt_cv_sys_max_cmd_len=102400
5236 sysv5* | sco5v6* | sysv4.2uw2*)
5237 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5238 if test -n "$kargmax"; then
5239 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5240 else
5241 lt_cv_sys_max_cmd_len=32768
5245 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5246 if test -n "$lt_cv_sys_max_cmd_len"; then
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5249 else
5250 # Make teststring a little bigger before we do anything with it.
5251 # a 1K string should be a reasonable start.
5252 for i in 1 2 3 4 5 6 7 8 ; do
5253 teststring=$teststring$teststring
5254 done
5255 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5256 # If test is not a shell built-in, we'll probably end up computing a
5257 # maximum length that is only half of the actual maximum length, but
5258 # we can't tell.
5259 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5260 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5261 test $i != 17 # 1/2 MB should be enough
5263 i=`expr $i + 1`
5264 teststring=$teststring$teststring
5265 done
5266 # Only check the string length outside the loop.
5267 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5268 teststring=
5269 # Add a significant safety factor because C++ compilers can tack on
5270 # massive amounts of additional arguments before passing them to the
5271 # linker. It appears as though 1/2 is a usable value.
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5275 esac
5279 if test -n $lt_cv_sys_max_cmd_len ; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5281 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5284 $as_echo "none" >&6; }
5286 max_cmd_len=$lt_cv_sys_max_cmd_len
5293 : ${CP="cp -f"}
5294 : ${MV="mv -f"}
5295 : ${RM="rm -f"}
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5298 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5299 # Try some XSI features
5300 xsi_shell=no
5301 ( _lt_dummy="a/b/c"
5302 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5303 = c,a/b,, \
5304 && eval 'test $(( 1 + 1 )) -eq 2 \
5305 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5306 && xsi_shell=yes
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5308 $as_echo "$xsi_shell" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5312 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5313 lt_shell_append=no
5314 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5315 >/dev/null 2>&1 \
5316 && lt_shell_append=yes
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5318 $as_echo "$lt_shell_append" >&6; }
5321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5322 lt_unset=unset
5323 else
5324 lt_unset=false
5331 # test EBCDIC or ASCII
5332 case `echo X|tr X '\101'` in
5333 A) # ASCII based system
5334 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5335 lt_SP2NL='tr \040 \012'
5336 lt_NL2SP='tr \015\012 \040\040'
5338 *) # EBCDIC based system
5339 lt_SP2NL='tr \100 \n'
5340 lt_NL2SP='tr \r\n \100\100'
5342 esac
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5353 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5354 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 lt_cv_ld_reload_flag='-r'
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5360 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5361 reload_flag=$lt_cv_ld_reload_flag
5362 case $reload_flag in
5363 "" | " "*) ;;
5364 *) reload_flag=" $reload_flag" ;;
5365 esac
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 case $host_os in
5368 darwin*)
5369 if test "$GCC" = yes; then
5370 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5371 else
5372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5375 esac
5385 if test -n "$ac_tool_prefix"; then
5386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$OBJDUMP"; then
5394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 OBJDUMP=$ac_cv_prog_OBJDUMP
5414 if test -n "$OBJDUMP"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5416 $as_echo "$OBJDUMP" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5424 if test -z "$ac_cv_prog_OBJDUMP"; then
5425 ac_ct_OBJDUMP=$OBJDUMP
5426 # Extract the first word of "objdump", so it can be a program name with args.
5427 set dummy objdump; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$ac_ct_OBJDUMP"; then
5434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5447 done
5448 done
5449 IFS=$as_save_IFS
5453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5454 if test -n "$ac_ct_OBJDUMP"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5456 $as_echo "$ac_ct_OBJDUMP" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5462 if test "x$ac_ct_OBJDUMP" = x; then
5463 OBJDUMP="false"
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 OBJDUMP=$ac_ct_OBJDUMP
5473 else
5474 OBJDUMP="$ac_cv_prog_OBJDUMP"
5477 test -z "$OBJDUMP" && OBJDUMP=objdump
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5488 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5489 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 lt_cv_file_magic_cmd='$MAGIC_CMD'
5493 lt_cv_file_magic_test_file=
5494 lt_cv_deplibs_check_method='unknown'
5495 # Need to set the preceding variable on all platforms that support
5496 # interlibrary dependencies.
5497 # 'none' -- dependencies not supported.
5498 # `unknown' -- same as none, but documents that we really don't know.
5499 # 'pass_all' -- all dependencies passed with no checks.
5500 # 'test_compile' -- check by making test program.
5501 # 'file_magic [[regex]]' -- check by looking for files in library path
5502 # which responds to the $file_magic_cmd with a given extended regex.
5503 # If you have `file' or equivalent on your system and you're not sure
5504 # whether `pass_all' will *always* work, you probably want this one.
5506 case $host_os in
5507 aix[4-9]*)
5508 lt_cv_deplibs_check_method=pass_all
5511 beos*)
5512 lt_cv_deplibs_check_method=pass_all
5515 bsdi[45]*)
5516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5517 lt_cv_file_magic_cmd='/usr/bin/file -L'
5518 lt_cv_file_magic_test_file=/shlib/libc.so
5521 cygwin*)
5522 # func_win32_libid is a shell function defined in ltmain.sh
5523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5524 lt_cv_file_magic_cmd='func_win32_libid'
5527 mingw* | pw32*)
5528 # Base MSYS/MinGW do not provide the 'file' command needed by
5529 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5530 # unless we find 'file', for example because we are cross-compiling.
5531 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5532 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534 lt_cv_file_magic_cmd='func_win32_libid'
5535 else
5536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5537 lt_cv_file_magic_cmd='$OBJDUMP -f'
5541 cegcc*)
5542 # use the weaker test based on 'objdump'. See mingw*.
5543 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5544 lt_cv_file_magic_cmd='$OBJDUMP -f'
5547 darwin* | rhapsody*)
5548 lt_cv_deplibs_check_method=pass_all
5551 freebsd* | dragonfly*)
5552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5553 case $host_cpu in
5554 i*86 )
5555 # Not sure whether the presence of OpenBSD here was a mistake.
5556 # Let's accept both of them until this is cleared up.
5557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5561 esac
5562 else
5563 lt_cv_deplibs_check_method=pass_all
5567 gnu*)
5568 lt_cv_deplibs_check_method=pass_all
5571 haiku*)
5572 lt_cv_deplibs_check_method=pass_all
5575 hpux10.20* | hpux11*)
5576 lt_cv_file_magic_cmd=/usr/bin/file
5577 case $host_cpu in
5578 ia64*)
5579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5582 hppa*64*)
5583 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]'
5584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5590 esac
5593 interix[3-9]*)
5594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5598 irix5* | irix6* | nonstopux*)
5599 case $LD in
5600 *-32|*"-32 ") libmagic=32-bit;;
5601 *-n32|*"-n32 ") libmagic=N32;;
5602 *-64|*"-64 ") libmagic=64-bit;;
5603 *) libmagic=never-match;;
5604 esac
5605 lt_cv_deplibs_check_method=pass_all
5608 # This must be Linux ELF.
5609 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5610 lt_cv_deplibs_check_method=pass_all
5613 netbsd*)
5614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5616 else
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5621 newos6*)
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5623 lt_cv_file_magic_cmd=/usr/bin/file
5624 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5627 *nto* | *qnx*)
5628 lt_cv_deplibs_check_method=pass_all
5631 openbsd*)
5632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5634 else
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639 osf3* | osf4* | osf5*)
5640 lt_cv_deplibs_check_method=pass_all
5643 rdos*)
5644 lt_cv_deplibs_check_method=pass_all
5647 solaris*)
5648 lt_cv_deplibs_check_method=pass_all
5651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5652 lt_cv_deplibs_check_method=pass_all
5655 sysv4 | sysv4.3*)
5656 case $host_vendor in
5657 motorola)
5658 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]'
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5661 ncr)
5662 lt_cv_deplibs_check_method=pass_all
5664 sequent)
5665 lt_cv_file_magic_cmd='/bin/file'
5666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5668 sni)
5669 lt_cv_file_magic_cmd='/bin/file'
5670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671 lt_cv_file_magic_test_file=/lib/libc.so
5673 siemens)
5674 lt_cv_deplibs_check_method=pass_all
5677 lt_cv_deplibs_check_method=pass_all
5679 esac
5682 tpf*)
5683 lt_cv_deplibs_check_method=pass_all
5685 esac
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5689 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5690 file_magic_cmd=$lt_cv_file_magic_cmd
5691 deplibs_check_method=$lt_cv_deplibs_check_method
5692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}ar; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if test "${ac_cv_prog_AR+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$AR"; then
5714 ac_cv_prog_AR="$AR" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_AR="${ac_tool_prefix}ar"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5729 IFS=$as_save_IFS
5733 AR=$ac_cv_prog_AR
5734 if test -n "$AR"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5736 $as_echo "$AR" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5744 if test -z "$ac_cv_prog_AR"; then
5745 ac_ct_AR=$AR
5746 # Extract the first word of "ar", so it can be a program name with args.
5747 set dummy ar; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$ac_ct_AR"; then
5754 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_ac_ct_AR="ar"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5769 IFS=$as_save_IFS
5773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5774 if test -n "$ac_ct_AR"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5776 $as_echo "$ac_ct_AR" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5782 if test "x$ac_ct_AR" = x; then
5783 AR="false"
5784 else
5785 case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791 AR=$ac_ct_AR
5793 else
5794 AR="$ac_cv_prog_AR"
5797 test -z "$AR" && AR=ar
5798 test -z "$AR_FLAGS" && AR_FLAGS=cru
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}strip; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_STRIP+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$STRIP"; then
5819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 STRIP=$ac_cv_prog_STRIP
5839 if test -n "$STRIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5841 $as_echo "$STRIP" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_STRIP"; then
5850 ac_ct_STRIP=$STRIP
5851 # Extract the first word of "strip", so it can be a program name with args.
5852 set dummy strip; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_STRIP"; then
5859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_STRIP="strip"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5879 if test -n "$ac_ct_STRIP"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5881 $as_echo "$ac_ct_STRIP" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_STRIP" = x; then
5888 STRIP=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 STRIP=$ac_ct_STRIP
5898 else
5899 STRIP="$ac_cv_prog_STRIP"
5902 test -z "$STRIP" && STRIP=:
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test -n "$RANLIB"; then
5918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5931 done
5932 done
5933 IFS=$as_save_IFS
5937 RANLIB=$ac_cv_prog_RANLIB
5938 if test -n "$RANLIB"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5940 $as_echo "$RANLIB" >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$ac_cv_prog_RANLIB"; then
5949 ac_ct_RANLIB=$RANLIB
5950 # Extract the first word of "ranlib", so it can be a program name with args.
5951 set dummy ranlib; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_RANLIB"; then
5958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_RANLIB="ranlib"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5971 done
5972 done
5973 IFS=$as_save_IFS
5977 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5978 if test -n "$ac_ct_RANLIB"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5980 $as_echo "$ac_ct_RANLIB" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 if test "x$ac_ct_RANLIB" = x; then
5987 RANLIB=":"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 RANLIB=$ac_ct_RANLIB
5997 else
5998 RANLIB="$ac_cv_prog_RANLIB"
6001 test -z "$RANLIB" && RANLIB=:
6008 # Determine commands to create old-style static archives.
6009 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6010 old_postinstall_cmds='chmod 644 $oldlib'
6011 old_postuninstall_cmds=
6013 if test -n "$RANLIB"; then
6014 case $host_os in
6015 openbsd*)
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6021 esac
6022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6025 case $host_os in
6026 darwin*)
6027 lock_old_archive_extraction=yes ;;
6029 lock_old_archive_extraction=no ;;
6030 esac
6070 # If no C compiler was specified, use CC.
6071 LTCC=${LTCC-"$CC"}
6073 # If no C compiler flags were specified, use CFLAGS.
6074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6076 # Allow CC to be a program name with arguments.
6077 compiler=$CC
6080 # Check for command to grab the raw symbol name followed by C symbol from nm.
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6082 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6083 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6087 # These are sane defaults that work on at least a few old systems.
6088 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6090 # Character class describing NM global symbol codes.
6091 symcode='[BCDEGRST]'
6093 # Regexp to match symbols that can be accessed directly from C.
6094 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6096 # Define system-specific variables.
6097 case $host_os in
6098 aix*)
6099 symcode='[BCDT]'
6101 cygwin* | mingw* | pw32* | cegcc*)
6102 symcode='[ABCDGISTW]'
6104 hpux*)
6105 if test "$host_cpu" = ia64; then
6106 symcode='[ABCDEGRST]'
6109 irix* | nonstopux*)
6110 symcode='[BCDEGRST]'
6112 osf*)
6113 symcode='[BCDEGQRST]'
6115 solaris*)
6116 symcode='[BDRT]'
6118 sco3.2v5*)
6119 symcode='[DT]'
6121 sysv4.2uw2*)
6122 symcode='[DT]'
6124 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6125 symcode='[ABDT]'
6127 sysv4)
6128 symcode='[DFNSTU]'
6130 esac
6132 # If we're using GNU nm, then use its standard symbol codes.
6133 case `$NM -V 2>&1` in
6134 *GNU* | *'with BFD'*)
6135 symcode='[ABCDGIRSTW]' ;;
6136 esac
6138 # Transform an extracted symbol line into a proper C declaration.
6139 # Some systems (esp. on ia64) link data and code symbols differently,
6140 # so use this general approach.
6141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6143 # Transform an extracted symbol line into symbol name and symbol address
6144 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6145 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'"
6147 # Handle CRLF in mingw tool chain
6148 opt_cr=
6149 case $build_os in
6150 mingw*)
6151 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6153 esac
6155 # Try without a prefix underscore, then with it.
6156 for ac_symprfx in "" "_"; do
6158 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6159 symxfrm="\\1 $ac_symprfx\\2 \\2"
6161 # Write the raw and C identifiers.
6162 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6163 # Fake it for dumpbin and say T for any non-static function
6164 # and D for any global variable.
6165 # Also find C++ and __fastcall symbols from MSVC++,
6166 # which start with @ or ?.
6167 lt_cv_sys_global_symbol_pipe="$AWK '"\
6168 " {last_section=section; section=\$ 3};"\
6169 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6170 " \$ 0!~/External *\|/{next};"\
6171 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6172 " {if(hide[section]) next};"\
6173 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6174 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6175 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6176 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6177 " ' prfx=^$ac_symprfx"
6178 else
6179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6182 # Check to see that the pipe works correctly.
6183 pipe_works=no
6185 rm -f conftest*
6186 cat > conftest.$ac_ext <<_LT_EOF
6187 #ifdef __cplusplus
6188 extern "C" {
6189 #endif
6190 char nm_test_var;
6191 void nm_test_func(void);
6192 void nm_test_func(void){}
6193 #ifdef __cplusplus
6195 #endif
6196 int main(){nm_test_var='a';nm_test_func();return(0);}
6197 _LT_EOF
6199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6200 (eval $ac_compile) 2>&5
6201 ac_status=$?
6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203 test $ac_status = 0; }; then
6204 # Now try to grab the symbols.
6205 nlist=conftest.nm
6206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6207 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; } && test -s "$nlist"; then
6211 # Try sorting and uniquifying the output.
6212 if sort "$nlist" | uniq > "$nlist"T; then
6213 mv -f "$nlist"T "$nlist"
6214 else
6215 rm -f "$nlist"T
6218 # Make sure that we snagged all the symbols we need.
6219 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6220 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6221 cat <<_LT_EOF > conftest.$ac_ext
6222 #ifdef __cplusplus
6223 extern "C" {
6224 #endif
6226 _LT_EOF
6227 # Now generate the symbol file.
6228 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6230 cat <<_LT_EOF >> conftest.$ac_ext
6232 /* The mapping between symbol names and symbols. */
6233 const struct {
6234 const char *name;
6235 void *address;
6237 lt__PROGRAM__LTX_preloaded_symbols[] =
6239 { "@PROGRAM@", (void *) 0 },
6240 _LT_EOF
6241 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6242 cat <<\_LT_EOF >> conftest.$ac_ext
6243 {0, (void *) 0}
6246 /* This works around a problem in FreeBSD linker */
6247 #ifdef FREEBSD_WORKAROUND
6248 static const void *lt_preloaded_setup() {
6249 return lt__PROGRAM__LTX_preloaded_symbols;
6251 #endif
6253 #ifdef __cplusplus
6255 #endif
6256 _LT_EOF
6257 # Now try linking the two files.
6258 mv conftest.$ac_objext conftstm.$ac_objext
6259 lt_save_LIBS="$LIBS"
6260 lt_save_CFLAGS="$CFLAGS"
6261 LIBS="conftstm.$ac_objext"
6262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6264 (eval $ac_link) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6268 pipe_works=yes
6270 LIBS="$lt_save_LIBS"
6271 CFLAGS="$lt_save_CFLAGS"
6272 else
6273 echo "cannot find nm_test_func in $nlist" >&5
6275 else
6276 echo "cannot find nm_test_var in $nlist" >&5
6278 else
6279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6281 else
6282 echo "$progname: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 rm -rf conftest* conftst*
6287 # Do not use the global_symbol_pipe unless it works.
6288 if test "$pipe_works" = yes; then
6289 break
6290 else
6291 lt_cv_sys_global_symbol_pipe=
6293 done
6297 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6298 lt_cv_sys_global_symbol_to_cdecl=
6300 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6302 $as_echo "failed" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6305 $as_echo "ok" >&6; }
6330 # Check whether --enable-libtool-lock was given.
6331 if test "${enable_libtool_lock+set}" = set; then :
6332 enableval=$enable_libtool_lock;
6335 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6337 # Some flags need to be propagated to the compiler or linker for good
6338 # libtool support.
6339 case $host in
6340 ia64-*-hpux*)
6341 # Find out which ABI we are using.
6342 echo 'int i;' > conftest.$ac_ext
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 (eval $ac_compile) 2>&5
6345 ac_status=$?
6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }; then
6348 case `/usr/bin/file conftest.$ac_objext` in
6349 *ELF-32*)
6350 HPUX_IA64_MODE="32"
6352 *ELF-64*)
6353 HPUX_IA64_MODE="64"
6355 esac
6357 rm -rf conftest*
6359 *-*-irix6*)
6360 # Find out which ABI we are using.
6361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6363 (eval $ac_compile) 2>&5
6364 ac_status=$?
6365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6366 test $ac_status = 0; }; then
6367 if test "$lt_cv_prog_gnu_ld" = yes; then
6368 case `/usr/bin/file conftest.$ac_objext` in
6369 *32-bit*)
6370 LD="${LD-ld} -melf32bsmip"
6372 *N32*)
6373 LD="${LD-ld} -melf32bmipn32"
6375 *64-bit*)
6376 LD="${LD-ld} -melf64bmip"
6378 esac
6379 else
6380 case `/usr/bin/file conftest.$ac_objext` in
6381 *32-bit*)
6382 LD="${LD-ld} -32"
6384 *N32*)
6385 LD="${LD-ld} -n32"
6387 *64-bit*)
6388 LD="${LD-ld} -64"
6390 esac
6393 rm -rf conftest*
6396 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6397 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6398 # Find out which ABI we are using.
6399 echo 'int i;' > conftest.$ac_ext
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 case `/usr/bin/file conftest.o` in
6406 *32-bit*)
6407 case $host in
6408 x86_64-*kfreebsd*-gnu)
6409 LD="${LD-ld} -m elf_i386_fbsd"
6411 x86_64-*linux*)
6412 case `/usr/bin/file conftest.o` in
6413 *x86-64*)
6414 LD="${LD-ld} -m elf32_x86_64"
6417 LD="${LD-ld} -m elf_i386"
6419 esac
6421 powerpc64le-*linux*)
6422 LD="${LD-ld} -m elf32lppclinux"
6424 powerpc64-*linux*)
6425 LD="${LD-ld} -m elf32ppclinux"
6427 s390x-*linux*)
6428 LD="${LD-ld} -m elf_s390"
6430 sparc64-*linux*)
6431 LD="${LD-ld} -m elf32_sparc"
6433 esac
6435 *64-bit*)
6436 case $host in
6437 x86_64-*kfreebsd*-gnu)
6438 LD="${LD-ld} -m elf_x86_64_fbsd"
6440 x86_64-*linux*)
6441 LD="${LD-ld} -m elf_x86_64"
6443 powerpcle-*linux*)
6444 LD="${LD-ld} -m elf64lppc"
6446 powerpc-*linux*)
6447 LD="${LD-ld} -m elf64ppc"
6449 s390*-*linux*|s390*-*tpf*)
6450 LD="${LD-ld} -m elf64_s390"
6452 sparc*-*linux*)
6453 LD="${LD-ld} -m elf64_sparc"
6455 esac
6457 esac
6459 rm -rf conftest*
6462 *-*-sco3.2v5*)
6463 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6464 SAVE_CFLAGS="$CFLAGS"
6465 CFLAGS="$CFLAGS -belf"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6467 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6468 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 ac_ext=c
6472 ac_cpp='$CPP $CPPFLAGS'
6473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6481 main ()
6485 return 0;
6487 _ACEOF
6488 if ac_fn_c_try_link "$LINENO"; then :
6489 lt_cv_cc_needs_belf=yes
6490 else
6491 lt_cv_cc_needs_belf=no
6493 rm -f core conftest.err conftest.$ac_objext \
6494 conftest$ac_exeext conftest.$ac_ext
6495 ac_ext=c
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6503 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6506 CFLAGS="$SAVE_CFLAGS"
6509 sparc*-*solaris*)
6510 # Find out which ABI we are using.
6511 echo 'int i;' > conftest.$ac_ext
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 case `/usr/bin/file conftest.o` in
6518 *64-bit*)
6519 case $lt_cv_prog_gnu_ld in
6520 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6522 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6523 LD="${LD-ld} -64"
6526 esac
6528 esac
6530 rm -rf conftest*
6532 esac
6534 need_locks="$enable_libtool_lock"
6537 case $host_os in
6538 rhapsody* | darwin*)
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -n "$DSYMUTIL"; then
6548 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6561 done
6562 done
6563 IFS=$as_save_IFS
6567 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6568 if test -n "$DSYMUTIL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6570 $as_echo "$DSYMUTIL" >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6578 if test -z "$ac_cv_prog_DSYMUTIL"; then
6579 ac_ct_DSYMUTIL=$DSYMUTIL
6580 # Extract the first word of "dsymutil", so it can be a program name with args.
6581 set dummy dsymutil; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test -n "$ac_ct_DSYMUTIL"; then
6588 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6601 done
6602 done
6603 IFS=$as_save_IFS
6607 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6610 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6611 else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6616 if test "x$ac_ct_DSYMUTIL" = x; then
6617 DSYMUTIL=":"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625 DSYMUTIL=$ac_ct_DSYMUTIL
6627 else
6628 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$NMEDIT"; then
6640 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6653 done
6654 done
6655 IFS=$as_save_IFS
6659 NMEDIT=$ac_cv_prog_NMEDIT
6660 if test -n "$NMEDIT"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6662 $as_echo "$NMEDIT" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6670 if test -z "$ac_cv_prog_NMEDIT"; then
6671 ac_ct_NMEDIT=$NMEDIT
6672 # Extract the first word of "nmedit", so it can be a program name with args.
6673 set dummy nmedit; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6678 else
6679 if test -n "$ac_ct_NMEDIT"; then
6680 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6693 done
6694 done
6695 IFS=$as_save_IFS
6699 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6700 if test -n "$ac_ct_NMEDIT"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6702 $as_echo "$ac_ct_NMEDIT" >&6; }
6703 else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6708 if test "x$ac_ct_NMEDIT" = x; then
6709 NMEDIT=":"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712 yes:)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715 ac_tool_warned=yes ;;
6716 esac
6717 NMEDIT=$ac_ct_NMEDIT
6719 else
6720 NMEDIT="$ac_cv_prog_NMEDIT"
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if test "${ac_cv_prog_LIPO+set}" = set; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 if test -n "$LIPO"; then
6732 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6747 IFS=$as_save_IFS
6751 LIPO=$ac_cv_prog_LIPO
6752 if test -n "$LIPO"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6754 $as_echo "$LIPO" >&6; }
6755 else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_LIPO"; then
6763 ac_ct_LIPO=$LIPO
6764 # Extract the first word of "lipo", so it can be a program name with args.
6765 set dummy lipo; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 if test -n "$ac_ct_LIPO"; then
6772 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_LIPO="lipo"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6791 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6792 if test -n "$ac_ct_LIPO"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6794 $as_echo "$ac_ct_LIPO" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_LIPO" = x; then
6801 LIPO=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804 yes:)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6808 esac
6809 LIPO=$ac_ct_LIPO
6811 else
6812 LIPO="$ac_cv_prog_LIPO"
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}otool; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$OTOOL"; then
6824 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6843 OTOOL=$ac_cv_prog_OTOOL
6844 if test -n "$OTOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6846 $as_echo "$OTOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6854 if test -z "$ac_cv_prog_OTOOL"; then
6855 ac_ct_OTOOL=$OTOOL
6856 # Extract the first word of "otool", so it can be a program name with args.
6857 set dummy otool; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_OTOOL"; then
6864 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_OTOOL="otool"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6883 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6884 if test -n "$ac_ct_OTOOL"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6886 $as_echo "$ac_ct_OTOOL" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6892 if test "x$ac_ct_OTOOL" = x; then
6893 OTOOL=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 OTOOL=$ac_ct_OTOOL
6903 else
6904 OTOOL="$ac_cv_prog_OTOOL"
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$OTOOL64"; then
6916 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 OTOOL64=$ac_cv_prog_OTOOL64
6936 if test -n "$OTOOL64"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6938 $as_echo "$OTOOL64" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6946 if test -z "$ac_cv_prog_OTOOL64"; then
6947 ac_ct_OTOOL64=$OTOOL64
6948 # Extract the first word of "otool64", so it can be a program name with args.
6949 set dummy otool64; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_OTOOL64"; then
6956 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_OTOOL64="otool64"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6975 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6976 if test -n "$ac_ct_OTOOL64"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6978 $as_echo "$ac_ct_OTOOL64" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6984 if test "x$ac_ct_OTOOL64" = x; then
6985 OTOOL64=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 OTOOL64=$ac_ct_OTOOL64
6995 else
6996 OTOOL64="$ac_cv_prog_OTOOL64"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7026 $as_echo_n "checking for -single_module linker flag... " >&6; }
7027 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 lt_cv_apple_cc_single_mod=no
7031 if test -z "${LT_MULTI_MODULE}"; then
7032 # By default we will add the -single_module flag. You can override
7033 # by either setting the environment variable LT_MULTI_MODULE
7034 # non-empty at configure time, or by adding -multi_module to the
7035 # link flags.
7036 rm -rf libconftest.dylib*
7037 echo "int foo(void){return 1;}" > conftest.c
7038 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7039 -dynamiclib -Wl,-single_module conftest.c" >&5
7040 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7041 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7042 _lt_result=$?
7043 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7044 lt_cv_apple_cc_single_mod=yes
7045 else
7046 cat conftest.err >&5
7048 rm -rf libconftest.dylib*
7049 rm -f conftest.*
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7053 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7055 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7056 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 lt_cv_ld_exported_symbols_list=no
7060 save_LDFLAGS=$LDFLAGS
7061 echo "_main" > conftest.sym
7062 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7067 main ()
7071 return 0;
7073 _ACEOF
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 lt_cv_ld_exported_symbols_list=yes
7076 else
7077 lt_cv_ld_exported_symbols_list=no
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 LDFLAGS="$save_LDFLAGS"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7085 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7087 $as_echo_n "checking for -force_load linker flag... " >&6; }
7088 if test "${lt_cv_ld_force_load+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 lt_cv_ld_force_load=no
7092 cat > conftest.c << _LT_EOF
7093 int forced_loaded() { return 2;}
7094 _LT_EOF
7095 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7096 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7097 echo "$AR cru libconftest.a conftest.o" >&5
7098 $AR cru libconftest.a conftest.o 2>&5
7099 cat > conftest.c << _LT_EOF
7100 int main() { return 0;}
7101 _LT_EOF
7102 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7103 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7104 _lt_result=$?
7105 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7106 lt_cv_ld_force_load=yes
7107 else
7108 cat conftest.err >&5
7110 rm -f conftest.err libconftest.a conftest conftest.c
7111 rm -rf conftest.dSYM
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7115 $as_echo "$lt_cv_ld_force_load" >&6; }
7116 case $host_os in
7117 rhapsody* | darwin1.[012])
7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7119 darwin1.*)
7120 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7121 darwin*) # darwin 5.x on
7122 # if running on 10.5 or later, the deployment target defaults
7123 # to the OS version, if on x86, and 10.4, the deployment
7124 # target defaults to 10.4. Don't you love it?
7125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7126 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7128 10.[012]*)
7129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7130 10.*)
7131 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7132 esac
7134 esac
7135 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7136 _lt_dar_single_mod='$single_module'
7138 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7139 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7140 else
7141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7143 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7144 _lt_dsymutil='~$DSYMUTIL $lib || :'
7145 else
7146 _lt_dsymutil=
7149 esac
7151 ac_ext=c
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7157 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7158 # On Suns, sometimes $CPP names a directory.
7159 if test -n "$CPP" && test -d "$CPP"; then
7160 CPP=
7162 if test -z "$CPP"; then
7163 if test "${ac_cv_prog_CPP+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 # Double quotes because CPP needs to be expanded
7167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7169 ac_preproc_ok=false
7170 for ac_c_preproc_warn_flag in '' yes
7172 # Use a header file that comes with gcc, so configuring glibc
7173 # with a fresh cross-compiler works.
7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7175 # <limits.h> exists even on freestanding compilers.
7176 # On the NeXT, cc -E runs the code through the compiler's parser,
7177 # not just through cpp. "Syntax error" is here to catch this case.
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 #ifdef __STDC__
7181 # include <limits.h>
7182 #else
7183 # include <assert.h>
7184 #endif
7185 Syntax error
7186 _ACEOF
7187 if ac_fn_c_try_cpp "$LINENO"; then :
7189 else
7190 # Broken: fails on valid input.
7191 continue
7193 rm -f conftest.err conftest.$ac_ext
7195 # OK, works on sane cases. Now check whether nonexistent headers
7196 # can be detected and how.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <ac_nonexistent.h>
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"; then :
7202 # Broken: success on invalid input.
7203 continue
7204 else
7205 # Passes both tests.
7206 ac_preproc_ok=:
7207 break
7209 rm -f conftest.err conftest.$ac_ext
7211 done
7212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7213 rm -f conftest.err conftest.$ac_ext
7214 if $ac_preproc_ok; then :
7215 break
7218 done
7219 ac_cv_prog_CPP=$CPP
7222 CPP=$ac_cv_prog_CPP
7223 else
7224 ac_cv_prog_CPP=$CPP
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7227 $as_echo "$CPP" >&6; }
7228 ac_preproc_ok=false
7229 for ac_c_preproc_warn_flag in '' yes
7231 # Use a header file that comes with gcc, so configuring glibc
7232 # with a fresh cross-compiler works.
7233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7234 # <limits.h> exists even on freestanding compilers.
7235 # On the NeXT, cc -E runs the code through the compiler's parser,
7236 # not just through cpp. "Syntax error" is here to catch this case.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 #ifdef __STDC__
7240 # include <limits.h>
7241 #else
7242 # include <assert.h>
7243 #endif
7244 Syntax error
7245 _ACEOF
7246 if ac_fn_c_try_cpp "$LINENO"; then :
7248 else
7249 # Broken: fails on valid input.
7250 continue
7252 rm -f conftest.err conftest.$ac_ext
7254 # OK, works on sane cases. Now check whether nonexistent headers
7255 # can be detected and how.
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <ac_nonexistent.h>
7259 _ACEOF
7260 if ac_fn_c_try_cpp "$LINENO"; then :
7261 # Broken: success on invalid input.
7262 continue
7263 else
7264 # Passes both tests.
7265 ac_preproc_ok=:
7266 break
7268 rm -f conftest.err conftest.$ac_ext
7270 done
7271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7272 rm -f conftest.err conftest.$ac_ext
7273 if $ac_preproc_ok; then :
7275 else
7276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7278 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7279 See \`config.log' for more details." "$LINENO" 5; }
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7290 $as_echo_n "checking for ANSI C header files... " >&6; }
7291 if test "${ac_cv_header_stdc+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #include <stdlib.h>
7297 #include <stdarg.h>
7298 #include <string.h>
7299 #include <float.h>
7302 main ()
7306 return 0;
7308 _ACEOF
7309 if ac_fn_c_try_compile "$LINENO"; then :
7310 ac_cv_header_stdc=yes
7311 else
7312 ac_cv_header_stdc=no
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 if test $ac_cv_header_stdc = yes; then
7317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <string.h>
7322 _ACEOF
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "memchr" >/dev/null 2>&1; then :
7326 else
7327 ac_cv_header_stdc=no
7329 rm -f conftest*
7333 if test $ac_cv_header_stdc = yes; then
7334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <stdlib.h>
7339 _ACEOF
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 $EGREP "free" >/dev/null 2>&1; then :
7343 else
7344 ac_cv_header_stdc=no
7346 rm -f conftest*
7350 if test $ac_cv_header_stdc = yes; then
7351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7352 if test "$cross_compiling" = yes; then :
7354 else
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 #include <ctype.h>
7358 #include <stdlib.h>
7359 #if ((' ' & 0x0FF) == 0x020)
7360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7362 #else
7363 # define ISLOWER(c) \
7364 (('a' <= (c) && (c) <= 'i') \
7365 || ('j' <= (c) && (c) <= 'r') \
7366 || ('s' <= (c) && (c) <= 'z'))
7367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7368 #endif
7370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7372 main ()
7374 int i;
7375 for (i = 0; i < 256; i++)
7376 if (XOR (islower (i), ISLOWER (i))
7377 || toupper (i) != TOUPPER (i))
7378 return 2;
7379 return 0;
7381 _ACEOF
7382 if ac_fn_c_try_run "$LINENO"; then :
7384 else
7385 ac_cv_header_stdc=no
7387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7388 conftest.$ac_objext conftest.beam conftest.$ac_ext
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7394 $as_echo "$ac_cv_header_stdc" >&6; }
7395 if test $ac_cv_header_stdc = yes; then
7397 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7403 inttypes.h stdint.h unistd.h
7404 do :
7405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7406 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7408 eval as_val=\$$as_ac_Header
7409 if test "x$as_val" = x""yes; then :
7410 cat >>confdefs.h <<_ACEOF
7411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 _ACEOF
7416 done
7419 for ac_header in dlfcn.h
7420 do :
7421 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7423 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_DLFCN_H 1
7426 _ACEOF
7430 done
7436 # Set options
7440 enable_dlopen=no
7443 enable_win32_dll=no
7446 # Check whether --enable-shared was given.
7447 if test "${enable_shared+set}" = set; then :
7448 enableval=$enable_shared; p=${PACKAGE-default}
7449 case $enableval in
7450 yes) enable_shared=yes ;;
7451 no) enable_shared=no ;;
7453 enable_shared=no
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456 for pkg in $enableval; do
7457 IFS="$lt_save_ifs"
7458 if test "X$pkg" = "X$p"; then
7459 enable_shared=yes
7461 done
7462 IFS="$lt_save_ifs"
7464 esac
7465 else
7466 enable_shared=yes
7477 # Check whether --enable-static was given.
7478 if test "${enable_static+set}" = set; then :
7479 enableval=$enable_static; p=${PACKAGE-default}
7480 case $enableval in
7481 yes) enable_static=yes ;;
7482 no) enable_static=no ;;
7484 enable_static=no
7485 # Look at the argument we got. We use all the common list separators.
7486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487 for pkg in $enableval; do
7488 IFS="$lt_save_ifs"
7489 if test "X$pkg" = "X$p"; then
7490 enable_static=yes
7492 done
7493 IFS="$lt_save_ifs"
7495 esac
7496 else
7497 enable_static=yes
7509 # Check whether --with-pic was given.
7510 if test "${with_pic+set}" = set; then :
7511 withval=$with_pic; pic_mode="$withval"
7512 else
7513 pic_mode=default
7517 test -z "$pic_mode" && pic_mode=default
7525 # Check whether --enable-fast-install was given.
7526 if test "${enable_fast_install+set}" = set; then :
7527 enableval=$enable_fast_install; p=${PACKAGE-default}
7528 case $enableval in
7529 yes) enable_fast_install=yes ;;
7530 no) enable_fast_install=no ;;
7532 enable_fast_install=no
7533 # Look at the argument we got. We use all the common list separators.
7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7535 for pkg in $enableval; do
7536 IFS="$lt_save_ifs"
7537 if test "X$pkg" = "X$p"; then
7538 enable_fast_install=yes
7540 done
7541 IFS="$lt_save_ifs"
7543 esac
7544 else
7545 enable_fast_install=yes
7558 # This can be used to rebuild libtool when needed
7559 LIBTOOL_DEPS="$ltmain"
7561 # Always use our own libtool.
7562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7589 test -z "$LN_S" && LN_S="ln -s"
7604 if test -n "${ZSH_VERSION+set}" ; then
7605 setopt NO_GLOB_SUBST
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7609 $as_echo_n "checking for objdir... " >&6; }
7610 if test "${lt_cv_objdir+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 rm -f .libs 2>/dev/null
7614 mkdir .libs 2>/dev/null
7615 if test -d .libs; then
7616 lt_cv_objdir=.libs
7617 else
7618 # MS-DOS does not allow filenames that begin with a dot.
7619 lt_cv_objdir=_libs
7621 rmdir .libs 2>/dev/null
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7624 $as_echo "$lt_cv_objdir" >&6; }
7625 objdir=$lt_cv_objdir
7631 cat >>confdefs.h <<_ACEOF
7632 #define LT_OBJDIR "$lt_cv_objdir/"
7633 _ACEOF
7638 case $host_os in
7639 aix3*)
7640 # AIX sometimes has problems with the GCC collect2 program. For some
7641 # reason, if we set the COLLECT_NAMES environment variable, the problems
7642 # vanish in a puff of smoke.
7643 if test "X${COLLECT_NAMES+set}" != Xset; then
7644 COLLECT_NAMES=
7645 export COLLECT_NAMES
7648 esac
7650 # Global variables:
7651 ofile=libtool
7652 can_build_shared=yes
7654 # All known linkers require a `.a' archive for static linking (except MSVC,
7655 # which needs '.lib').
7656 libext=a
7658 with_gnu_ld="$lt_cv_prog_gnu_ld"
7660 old_CC="$CC"
7661 old_CFLAGS="$CFLAGS"
7663 # Set sane defaults for various variables
7664 test -z "$CC" && CC=cc
7665 test -z "$LTCC" && LTCC=$CC
7666 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7667 test -z "$LD" && LD=ld
7668 test -z "$ac_objext" && ac_objext=o
7670 for cc_temp in $compiler""; do
7671 case $cc_temp in
7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7674 \-*) ;;
7675 *) break;;
7676 esac
7677 done
7678 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7681 # Only perform the check for file, if the check method requires it
7682 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7683 case $deplibs_check_method in
7684 file_magic*)
7685 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7687 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 case $MAGIC_CMD in
7692 [\\/*] | ?:[\\/]*)
7693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7696 lt_save_MAGIC_CMD="$MAGIC_CMD"
7697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699 for ac_dir in $ac_dummy; do
7700 IFS="$lt_save_ifs"
7701 test -z "$ac_dir" && ac_dir=.
7702 if test -f $ac_dir/${ac_tool_prefix}file; then
7703 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7704 if test -n "$file_magic_test_file"; then
7705 case $deplibs_check_method in
7706 "file_magic "*)
7707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710 $EGREP "$file_magic_regex" > /dev/null; then
7712 else
7713 cat <<_LT_EOF 1>&2
7715 *** Warning: the command libtool uses to detect shared libraries,
7716 *** $file_magic_cmd, produces output that libtool cannot recognize.
7717 *** The result is that libtool may fail to recognize shared libraries
7718 *** as such. This will affect the creation of libtool libraries that
7719 *** depend on shared libraries, but programs linked with such libtool
7720 *** libraries will work regardless of this problem. Nevertheless, you
7721 *** may want to report the problem to your system manager and/or to
7722 *** bug-libtool@gnu.org
7724 _LT_EOF
7725 fi ;;
7726 esac
7728 break
7730 done
7731 IFS="$lt_save_ifs"
7732 MAGIC_CMD="$lt_save_MAGIC_CMD"
7734 esac
7737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738 if test -n "$MAGIC_CMD"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7740 $as_echo "$MAGIC_CMD" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7750 if test -z "$lt_cv_path_MAGIC_CMD"; then
7751 if test -n "$ac_tool_prefix"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7753 $as_echo_n "checking for file... " >&6; }
7754 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 case $MAGIC_CMD in
7758 [\\/*] | ?:[\\/]*)
7759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7762 lt_save_MAGIC_CMD="$MAGIC_CMD"
7763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7765 for ac_dir in $ac_dummy; do
7766 IFS="$lt_save_ifs"
7767 test -z "$ac_dir" && ac_dir=.
7768 if test -f $ac_dir/file; then
7769 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7770 if test -n "$file_magic_test_file"; then
7771 case $deplibs_check_method in
7772 "file_magic "*)
7773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7776 $EGREP "$file_magic_regex" > /dev/null; then
7778 else
7779 cat <<_LT_EOF 1>&2
7781 *** Warning: the command libtool uses to detect shared libraries,
7782 *** $file_magic_cmd, produces output that libtool cannot recognize.
7783 *** The result is that libtool may fail to recognize shared libraries
7784 *** as such. This will affect the creation of libtool libraries that
7785 *** depend on shared libraries, but programs linked with such libtool
7786 *** libraries will work regardless of this problem. Nevertheless, you
7787 *** may want to report the problem to your system manager and/or to
7788 *** bug-libtool@gnu.org
7790 _LT_EOF
7791 fi ;;
7792 esac
7794 break
7796 done
7797 IFS="$lt_save_ifs"
7798 MAGIC_CMD="$lt_save_MAGIC_CMD"
7800 esac
7803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804 if test -n "$MAGIC_CMD"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7806 $as_echo "$MAGIC_CMD" >&6; }
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7813 else
7814 MAGIC_CMD=:
7820 esac
7822 # Use C for the default configuration in the libtool script
7824 lt_save_CC="$CC"
7825 ac_ext=c
7826 ac_cpp='$CPP $CPPFLAGS'
7827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832 # Source file extension for C test sources.
7833 ac_ext=c
7835 # Object file extension for compiled C test sources.
7836 objext=o
7837 objext=$objext
7839 # Code to be used in simple compile tests
7840 lt_simple_compile_test_code="int some_variable = 0;"
7842 # Code to be used in simple link tests
7843 lt_simple_link_test_code='int main(){return(0);}'
7851 # If no C compiler was specified, use CC.
7852 LTCC=${LTCC-"$CC"}
7854 # If no C compiler flags were specified, use CFLAGS.
7855 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7857 # Allow CC to be a program name with arguments.
7858 compiler=$CC
7860 # Save the default compiler, since it gets overwritten when the other
7861 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7862 compiler_DEFAULT=$CC
7864 # save warnings/boilerplate of simple test code
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868 _lt_compiler_boilerplate=`cat conftest.err`
7869 $RM conftest*
7871 ac_outfile=conftest.$ac_objext
7872 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7874 _lt_linker_boilerplate=`cat conftest.err`
7875 $RM -r conftest*
7878 ## CAVEAT EMPTOR:
7879 ## There is no encapsulation within the following macros, do not change
7880 ## the running order or otherwise move them around unless you know exactly
7881 ## what you are doing...
7882 if test -n "$compiler"; then
7884 lt_prog_compiler_no_builtin_flag=
7886 if test "$GCC" = yes; then
7887 case $cc_basename in
7888 nvcc*)
7889 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7891 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7892 esac
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7895 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 lt_cv_prog_compiler_rtti_exceptions=no
7900 ac_outfile=conftest.$ac_objext
7901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902 lt_compiler_flag="-fno-rtti -fno-exceptions"
7903 # Insert the option either (1) after the last *FLAGS variable, or
7904 # (2) before a word containing "conftest.", or (3) at the end.
7905 # Note that $ac_compile itself does not contain backslashes and begins
7906 # with a dollar sign (not a hyphen), so the echo should work correctly.
7907 # The option is referenced via a variable to avoid confusing sed.
7908 lt_compile=`echo "$ac_compile" | $SED \
7909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911 -e 's:$: $lt_compiler_flag:'`
7912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7913 (eval "$lt_compile" 2>conftest.err)
7914 ac_status=$?
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 if (exit $ac_status) && test -s "$ac_outfile"; then
7918 # The compiler can only warn and ignore the option if not recognized
7919 # So say no if there are warnings other than the usual output.
7920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7923 lt_cv_prog_compiler_rtti_exceptions=yes
7926 $RM conftest*
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7930 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7932 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7933 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7934 else
7945 lt_prog_compiler_wl=
7946 lt_prog_compiler_pic=
7947 lt_prog_compiler_static=
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7952 if test "$GCC" = yes; then
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_static='-static'
7956 case $host_os in
7957 aix*)
7958 # All AIX code is PIC.
7959 if test "$host_cpu" = ia64; then
7960 # AIX 5 now supports IA64 processor
7961 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_pic='-fPIC'
7966 amigaos*)
7967 case $host_cpu in
7968 powerpc)
7969 # see comment about AmigaOS4 .so support
7970 lt_prog_compiler_pic='-fPIC'
7972 m68k)
7973 # FIXME: we need at least 68020 code to build shared libraries, but
7974 # adding the `-m68020' flag to GCC prevents building anything better,
7975 # like `-m68040'.
7976 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978 esac
7981 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7982 # PIC is the default for these OSes.
7985 mingw* | cygwin* | pw32* | os2* | cegcc*)
7986 # This hack is so that the source file can tell whether it is being
7987 # built for inclusion in a dll (and should export symbols for example).
7988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7989 # (--disable-auto-import) libraries
7990 lt_prog_compiler_pic='-DDLL_EXPORT'
7993 darwin* | rhapsody*)
7994 # PIC is the default on this platform
7995 # Common symbols not allowed in MH_DYLIB files
7996 lt_prog_compiler_pic='-fno-common'
7999 haiku*)
8000 # PIC is the default for Haiku.
8001 # The "-static" flag exists, but is broken.
8002 lt_prog_compiler_static=
8005 hpux*)
8006 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8007 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8008 # sets the default TLS model and affects inlining.
8009 case $host_cpu in
8010 hppa*64*)
8011 # +Z the default
8014 lt_prog_compiler_pic='-fPIC'
8016 esac
8019 interix[3-9]*)
8020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8021 # Instead, we relocate shared libraries at runtime.
8024 msdosdjgpp*)
8025 # Just because we use GCC doesn't mean we suddenly get shared libraries
8026 # on systems that don't support them.
8027 lt_prog_compiler_can_build_shared=no
8028 enable_shared=no
8031 *nto* | *qnx*)
8032 # QNX uses GNU C++, but need to define -shared option too, otherwise
8033 # it will coredump.
8034 lt_prog_compiler_pic='-fPIC -shared'
8037 sysv4*MP*)
8038 if test -d /usr/nec; then
8039 lt_prog_compiler_pic=-Kconform_pic
8044 lt_prog_compiler_pic='-fPIC'
8046 esac
8048 case $cc_basename in
8049 nvcc*) # Cuda Compiler Driver 2.2
8050 lt_prog_compiler_wl='-Xlinker '
8051 lt_prog_compiler_pic='-Xcompiler -fPIC'
8053 esac
8054 else
8055 # PORTME Check for flag to pass linker flags through the system compiler.
8056 case $host_os in
8057 aix*)
8058 lt_prog_compiler_wl='-Wl,'
8059 if test "$host_cpu" = ia64; then
8060 # AIX 5 now supports IA64 processor
8061 lt_prog_compiler_static='-Bstatic'
8062 else
8063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8067 mingw* | cygwin* | pw32* | os2* | cegcc*)
8068 # This hack is so that the source file can tell whether it is being
8069 # built for inclusion in a dll (and should export symbols for example).
8070 lt_prog_compiler_pic='-DDLL_EXPORT'
8073 hpux9* | hpux10* | hpux11*)
8074 lt_prog_compiler_wl='-Wl,'
8075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8076 # not for PA HP-UX.
8077 case $host_cpu in
8078 hppa*64*|ia64*)
8079 # +Z the default
8082 lt_prog_compiler_pic='+Z'
8084 esac
8085 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8086 lt_prog_compiler_static='${wl}-a ${wl}archive'
8089 irix5* | irix6* | nonstopux*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # PIC (with -KPIC) is the default.
8092 lt_prog_compiler_static='-non_shared'
8095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8096 case $cc_basename in
8097 # old Intel for x86_64 which still supported -KPIC.
8098 ecc*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-static'
8103 # icc used to be incompatible with GCC.
8104 # ICC 10 doesn't accept -KPIC any more.
8105 icc* | ifort*)
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_pic='-fPIC'
8108 lt_prog_compiler_static='-static'
8110 # Lahey Fortran 8.1.
8111 lf95*)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='--shared'
8114 lt_prog_compiler_static='--static'
8116 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8117 # Portland Group compilers (*not* the Pentium gcc compiler,
8118 # which looks to be a dead project)
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-fpic'
8121 lt_prog_compiler_static='-Bstatic'
8123 ccc*)
8124 lt_prog_compiler_wl='-Wl,'
8125 # All Alpha code is PIC.
8126 lt_prog_compiler_static='-non_shared'
8128 xl* | bgxl* | bgf* | mpixl*)
8129 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-qpic'
8132 lt_prog_compiler_static='-qstaticlink'
8135 case `$CC -V 2>&1 | sed 5q` in
8136 *Sun\ F* | *Sun*Fortran*)
8137 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 lt_prog_compiler_wl=''
8142 *Sun\ C*)
8143 # Sun C 5.9
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 lt_prog_compiler_wl='-Wl,'
8148 esac
8150 esac
8153 newsos6)
8154 lt_prog_compiler_pic='-KPIC'
8155 lt_prog_compiler_static='-Bstatic'
8158 *nto* | *qnx*)
8159 # QNX uses GNU C++, but need to define -shared option too, otherwise
8160 # it will coredump.
8161 lt_prog_compiler_pic='-fPIC -shared'
8164 osf3* | osf4* | osf5*)
8165 lt_prog_compiler_wl='-Wl,'
8166 # All OSF/1 code is PIC.
8167 lt_prog_compiler_static='-non_shared'
8170 rdos*)
8171 lt_prog_compiler_static='-non_shared'
8174 solaris*)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 case $cc_basename in
8178 f77* | f90* | f95*)
8179 lt_prog_compiler_wl='-Qoption ld ';;
8181 lt_prog_compiler_wl='-Wl,';;
8182 esac
8185 sunos4*)
8186 lt_prog_compiler_wl='-Qoption ld '
8187 lt_prog_compiler_pic='-PIC'
8188 lt_prog_compiler_static='-Bstatic'
8191 sysv4 | sysv4.2uw2* | sysv4.3*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-KPIC'
8194 lt_prog_compiler_static='-Bstatic'
8197 sysv4*MP*)
8198 if test -d /usr/nec ;then
8199 lt_prog_compiler_pic='-Kconform_pic'
8200 lt_prog_compiler_static='-Bstatic'
8204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
8210 unicos*)
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_can_build_shared=no
8215 uts4*)
8216 lt_prog_compiler_pic='-pic'
8217 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_can_build_shared=no
8223 esac
8226 case $host_os in
8227 # For platforms which do not support PIC, -DPIC is meaningless:
8228 *djgpp*)
8229 lt_prog_compiler_pic=
8232 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8234 esac
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8236 $as_echo "$lt_prog_compiler_pic" >&6; }
8244 # Check to make sure the PIC flag actually works.
8246 if test -n "$lt_prog_compiler_pic"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8248 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8249 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 lt_cv_prog_compiler_pic_works=no
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 # The option is referenced via a variable to avoid confusing sed.
8261 lt_compile=`echo "$ac_compile" | $SED \
8262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8264 -e 's:$: $lt_compiler_flag:'`
8265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8266 (eval "$lt_compile" 2>conftest.err)
8267 ac_status=$?
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 if (exit $ac_status) && test -s "$ac_outfile"; then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings other than the usual output.
8273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_pic_works=yes
8279 $RM conftest*
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8283 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8285 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8286 case $lt_prog_compiler_pic in
8287 "" | " "*) ;;
8288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8289 esac
8290 else
8291 lt_prog_compiler_pic=
8292 lt_prog_compiler_can_build_shared=no
8303 # Check to make sure the static flag actually works.
8305 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8307 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8308 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 lt_cv_prog_compiler_static_works=no
8312 save_LDFLAGS="$LDFLAGS"
8313 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8316 # The linker can only warn and ignore the option if not recognized
8317 # So say no if there are warnings
8318 if test -s conftest.err; then
8319 # Append any errors to the config.log.
8320 cat conftest.err 1>&5
8321 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323 if diff conftest.exp conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_static_works=yes
8326 else
8327 lt_cv_prog_compiler_static_works=yes
8330 $RM -r conftest*
8331 LDFLAGS="$save_LDFLAGS"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8335 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8337 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8339 else
8340 lt_prog_compiler_static=
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8351 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 lt_cv_prog_compiler_c_o=no
8355 $RM -r conftest 2>/dev/null
8356 mkdir conftest
8357 cd conftest
8358 mkdir out
8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361 lt_compiler_flag="-o out/conftest2.$ac_objext"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 lt_compile=`echo "$ac_compile" | $SED \
8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8369 -e 's:$: $lt_compiler_flag:'`
8370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8371 (eval "$lt_compile" 2>out/conftest.err)
8372 ac_status=$?
8373 cat out/conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8376 then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_c_o=yes
8385 chmod u+w . 2>&5
8386 $RM conftest*
8387 # SGI C++ compiler will create directory out/ii_files/ for
8388 # template instantiation
8389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8390 $RM out/* && rmdir out
8391 cd ..
8392 $RM -r conftest
8393 $RM conftest*
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8397 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 lt_cv_prog_compiler_c_o=no
8410 $RM -r conftest 2>/dev/null
8411 mkdir conftest
8412 cd conftest
8413 mkdir out
8414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416 lt_compiler_flag="-o out/conftest2.$ac_objext"
8417 # Insert the option either (1) after the last *FLAGS variable, or
8418 # (2) before a word containing "conftest.", or (3) at the end.
8419 # Note that $ac_compile itself does not contain backslashes and begins
8420 # with a dollar sign (not a hyphen), so the echo should work correctly.
8421 lt_compile=`echo "$ac_compile" | $SED \
8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8424 -e 's:$: $lt_compiler_flag:'`
8425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8426 (eval "$lt_compile" 2>out/conftest.err)
8427 ac_status=$?
8428 cat out/conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8431 then
8432 # The compiler can only warn and ignore the option if not recognized
8433 # So say no if there are warnings
8434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8437 lt_cv_prog_compiler_c_o=yes
8440 chmod u+w . 2>&5
8441 $RM conftest*
8442 # SGI C++ compiler will create directory out/ii_files/ for
8443 # template instantiation
8444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8445 $RM out/* && rmdir out
8446 cd ..
8447 $RM -r conftest
8448 $RM conftest*
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8452 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8457 hard_links="nottested"
8458 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8459 # do not overwrite the value of need_locks provided by the user
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8461 $as_echo_n "checking if we can lock with hard links... " >&6; }
8462 hard_links=yes
8463 $RM conftest*
8464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465 touch conftest.a
8466 ln conftest.a conftest.b 2>&5 || hard_links=no
8467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8469 $as_echo "$hard_links" >&6; }
8470 if test "$hard_links" = no; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8472 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8473 need_locks=warn
8475 else
8476 need_locks=no
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8485 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8487 runpath_var=
8488 allow_undefined_flag=
8489 always_export_symbols=no
8490 archive_cmds=
8491 archive_expsym_cmds=
8492 compiler_needs_object=no
8493 enable_shared_with_static_runtimes=no
8494 export_dynamic_flag_spec=
8495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8496 hardcode_automatic=no
8497 hardcode_direct=no
8498 hardcode_direct_absolute=no
8499 hardcode_libdir_flag_spec=
8500 hardcode_libdir_flag_spec_ld=
8501 hardcode_libdir_separator=
8502 hardcode_minus_L=no
8503 hardcode_shlibpath_var=unsupported
8504 inherit_rpath=no
8505 link_all_deplibs=unknown
8506 module_cmds=
8507 module_expsym_cmds=
8508 old_archive_from_new_cmds=
8509 old_archive_from_expsyms_cmds=
8510 thread_safe_flag_spec=
8511 whole_archive_flag_spec=
8512 # include_expsyms should be a list of space-separated symbols to be *always*
8513 # included in the symbol list
8514 include_expsyms=
8515 # exclude_expsyms can be an extended regexp of symbols to exclude
8516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8518 # as well as any symbol that contains `d'.
8519 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8521 # platforms (ab)use it in PIC code, but their linkers get confused if
8522 # the symbol is explicitly referenced. Since portable code cannot
8523 # rely on this symbol name, it's probably fine to never include it in
8524 # preloaded symbol tables.
8525 # Exclude shared library initialization/finalization symbols.
8526 extract_expsyms_cmds=
8528 case $host_os in
8529 cygwin* | mingw* | pw32* | cegcc*)
8530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8531 # When not using gcc, we currently assume that we are using
8532 # Microsoft Visual C++.
8533 if test "$GCC" != yes; then
8534 with_gnu_ld=no
8537 interix*)
8538 # we just hope/assume this is gcc and not c89 (= MSVC++)
8539 with_gnu_ld=yes
8541 openbsd*)
8542 with_gnu_ld=no
8544 esac
8546 ld_shlibs=yes
8548 # On some targets, GNU ld is compatible enough with the native linker
8549 # that we're better off using the native interface for both.
8550 lt_use_gnu_ld_interface=no
8551 if test "$with_gnu_ld" = yes; then
8552 case $host_os in
8553 aix*)
8554 # The AIX port of GNU ld has always aspired to compatibility
8555 # with the native linker. However, as the warning in the GNU ld
8556 # block says, versions before 2.19.5* couldn't really create working
8557 # shared libraries, regardless of the interface used.
8558 case `$LD -v 2>&1` in
8559 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8560 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8561 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8563 lt_use_gnu_ld_interface=yes
8565 esac
8568 lt_use_gnu_ld_interface=yes
8570 esac
8573 if test "$lt_use_gnu_ld_interface" = yes; then
8574 # If archive_cmds runs LD, not CC, wlarc should be empty
8575 wlarc='${wl}'
8577 # Set some defaults for GNU ld with shared library support. These
8578 # are reset later if shared libraries are not supported. Putting them
8579 # here allows them to be overridden if necessary.
8580 runpath_var=LD_RUN_PATH
8581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582 export_dynamic_flag_spec='${wl}--export-dynamic'
8583 # ancient GNU ld didn't support --whole-archive et. al.
8584 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8585 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8586 else
8587 whole_archive_flag_spec=
8589 supports_anon_versioning=no
8590 case `$LD -v 2>&1` in
8591 *GNU\ gold*) supports_anon_versioning=yes ;;
8592 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8593 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8594 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8595 *\ 2.11.*) ;; # other 2.11 versions
8596 *) supports_anon_versioning=yes ;;
8597 esac
8599 # See if GNU ld supports shared libraries.
8600 case $host_os in
8601 aix[3-9]*)
8602 # On AIX/PPC, the GNU linker is very broken
8603 if test "$host_cpu" != ia64; then
8604 ld_shlibs=no
8605 cat <<_LT_EOF 1>&2
8607 *** Warning: the GNU linker, at least up to release 2.19, is reported
8608 *** to be unable to reliably create shared libraries on AIX.
8609 *** Therefore, libtool is disabling shared libraries support. If you
8610 *** really care for shared libraries, you may want to install binutils
8611 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8612 *** You will then need to restart the configuration process.
8614 _LT_EOF
8618 amigaos*)
8619 case $host_cpu in
8620 powerpc)
8621 # see comment about AmigaOS4 .so support
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 archive_expsym_cmds=''
8625 m68k)
8626 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)'
8627 hardcode_libdir_flag_spec='-L$libdir'
8628 hardcode_minus_L=yes
8630 esac
8633 beos*)
8634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8635 allow_undefined_flag=unsupported
8636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8637 # support --undefined. This deserves some investigation. FIXME
8638 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639 else
8640 ld_shlibs=no
8644 cygwin* | mingw* | pw32* | cegcc*)
8645 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8646 # as there is no search path for DLLs.
8647 hardcode_libdir_flag_spec='-L$libdir'
8648 export_dynamic_flag_spec='${wl}--export-all-symbols'
8649 allow_undefined_flag=unsupported
8650 always_export_symbols=no
8651 enable_shared_with_static_runtimes=yes
8652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 # If the export-symbols file already is a .def file (1st line
8657 # is EXPORTS), use it as is; otherwise, prepend...
8658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8659 cp $export_symbols $output_objdir/$soname.def;
8660 else
8661 echo EXPORTS > $output_objdir/$soname.def;
8662 cat $export_symbols >> $output_objdir/$soname.def;
8664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8665 else
8666 ld_shlibs=no
8670 haiku*)
8671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 link_all_deplibs=yes
8675 interix[3-9]*)
8676 hardcode_direct=no
8677 hardcode_shlibpath_var=no
8678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679 export_dynamic_flag_spec='${wl}-E'
8680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8681 # Instead, shared libraries are loaded at an image base (0x10000000 by
8682 # default) and relocated if they conflict, which is a slow very memory
8683 # consuming and fragmenting process. To avoid this, we pick a random,
8684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8686 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8687 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'
8690 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8691 tmp_diet=no
8692 if test "$host_os" = linux-dietlibc; then
8693 case $cc_basename in
8694 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8695 esac
8697 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8698 && test "$tmp_diet" = no
8699 then
8700 tmp_addflag=
8701 tmp_sharedflag='-shared'
8702 case $cc_basename,$host_cpu in
8703 pgcc*) # Portland Group C compiler
8704 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'
8705 tmp_addflag=' $pic_flag'
8707 pgf77* | pgf90* | pgf95* | pgfortran*)
8708 # Portland Group f77 and f90 compilers
8709 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'
8710 tmp_addflag=' $pic_flag -Mnomain' ;;
8711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8712 tmp_addflag=' -i_dynamic' ;;
8713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8714 tmp_addflag=' -i_dynamic -nofor_main' ;;
8715 ifc* | ifort*) # Intel Fortran compiler
8716 tmp_addflag=' -nofor_main' ;;
8717 lf95*) # Lahey Fortran 8.1
8718 whole_archive_flag_spec=
8719 tmp_sharedflag='--shared' ;;
8720 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8721 tmp_sharedflag='-qmkshrobj'
8722 tmp_addflag= ;;
8723 nvcc*) # Cuda Compiler Driver 2.2
8724 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'
8725 compiler_needs_object=yes
8727 esac
8728 case `$CC -V 2>&1 | sed 5q` in
8729 *Sun\ C*) # Sun C 5.9
8730 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'
8731 compiler_needs_object=yes
8732 tmp_sharedflag='-G' ;;
8733 *Sun\ F*) # Sun Fortran 8.3
8734 tmp_sharedflag='-G' ;;
8735 esac
8736 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8738 if test "x$supports_anon_versioning" = xyes; then
8739 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8741 echo "local: *; };" >> $output_objdir/$libname.ver~
8742 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8745 case $cc_basename in
8746 xlf* | bgf* | bgxlf* | mpixlf*)
8747 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8748 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8749 hardcode_libdir_flag_spec=
8750 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8751 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8752 if test "x$supports_anon_versioning" = xyes; then
8753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8755 echo "local: *; };" >> $output_objdir/$libname.ver~
8756 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8759 esac
8760 else
8761 ld_shlibs=no
8765 netbsd*)
8766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8768 wlarc=
8769 else
8770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775 solaris*)
8776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8777 ld_shlibs=no
8778 cat <<_LT_EOF 1>&2
8780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8781 *** create shared libraries on Solaris systems. Therefore, libtool
8782 *** is disabling shared libraries support. We urge you to upgrade GNU
8783 *** binutils to release 2.9.1 or newer. Another option is to modify
8784 *** your PATH or compiler configuration so that the native linker is
8785 *** used, and then restart.
8787 _LT_EOF
8788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8791 else
8792 ld_shlibs=no
8796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8797 case `$LD -v 2>&1` in
8798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8799 ld_shlibs=no
8800 cat <<_LT_EOF 1>&2
8802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8803 *** reliably create shared libraries on SCO systems. Therefore, libtool
8804 *** is disabling shared libraries support. We urge you to upgrade GNU
8805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8806 *** your PATH or compiler configuration so that the native linker is
8807 *** used, and then restart.
8809 _LT_EOF
8812 # For security reasons, it is highly recommended that you always
8813 # use absolute paths for naming shared libraries, and exclude the
8814 # DT_RUNPATH tag from executables and libraries. But doing so
8815 # requires that you compile everything twice, which is a pain.
8816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820 else
8821 ld_shlibs=no
8824 esac
8827 sunos4*)
8828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8829 wlarc=
8830 hardcode_direct=yes
8831 hardcode_shlibpath_var=no
8835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8838 else
8839 ld_shlibs=no
8842 esac
8844 if test "$ld_shlibs" = no; then
8845 runpath_var=
8846 hardcode_libdir_flag_spec=
8847 export_dynamic_flag_spec=
8848 whole_archive_flag_spec=
8850 else
8851 # PORTME fill in a description of your system's linker (not GNU ld)
8852 case $host_os in
8853 aix3*)
8854 allow_undefined_flag=unsupported
8855 always_export_symbols=yes
8856 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'
8857 # Note: this linker hardcodes the directories in LIBPATH if there
8858 # are no directories specified by -L.
8859 hardcode_minus_L=yes
8860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8861 # Neither direct hardcoding nor static linking is supported with a
8862 # broken collect2.
8863 hardcode_direct=unsupported
8867 aix[4-9]*)
8868 if test "$host_cpu" = ia64; then
8869 # On IA64, the linker does run time linking by default, so we don't
8870 # have to do anything special.
8871 aix_use_runtimelinking=no
8872 exp_sym_flag='-Bexport'
8873 no_entry_flag=""
8874 else
8875 # If we're using GNU nm, then we don't want the "-C" option.
8876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8877 # Also, AIX nm treats weak defined symbols like other global
8878 # defined symbols, whereas GNU nm marks them as "W".
8879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8880 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'
8881 else
8882 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'
8884 aix_use_runtimelinking=no
8886 # Test if we are trying to use run time linking or normal
8887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8888 # need to do runtime linking.
8889 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8890 for ld_flag in $LDFLAGS; do
8891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8892 aix_use_runtimelinking=yes
8893 break
8895 done
8897 esac
8899 exp_sym_flag='-bexport'
8900 no_entry_flag='-bnoentry'
8903 # When large executables or shared objects are built, AIX ld can
8904 # have problems creating the table of contents. If linking a library
8905 # or program results in "error TOC overflow" add -mminimal-toc to
8906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8909 archive_cmds=''
8910 hardcode_direct=yes
8911 hardcode_direct_absolute=yes
8912 hardcode_libdir_separator=':'
8913 link_all_deplibs=yes
8914 file_list_spec='${wl}-f,'
8916 if test "$GCC" = yes; then
8917 case $host_os in aix4.[012]|aix4.[012].*)
8918 # We only want to do this on AIX 4.2 and lower, the check
8919 # below for broken collect2 doesn't work under 4.3+
8920 collect2name=`${CC} -print-prog-name=collect2`
8921 if test -f "$collect2name" &&
8922 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8923 then
8924 # We have reworked collect2
8926 else
8927 # We have old collect2
8928 hardcode_direct=unsupported
8929 # It fails to find uninstalled libraries when the uninstalled
8930 # path is not listed in the libpath. Setting hardcode_minus_L
8931 # to unsupported forces relinking
8932 hardcode_minus_L=yes
8933 hardcode_libdir_flag_spec='-L$libdir'
8934 hardcode_libdir_separator=
8937 esac
8938 shared_flag='-shared'
8939 if test "$aix_use_runtimelinking" = yes; then
8940 shared_flag="$shared_flag "'${wl}-G'
8942 else
8943 # not using gcc
8944 if test "$host_cpu" = ia64; then
8945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8946 # chokes on -Wl,-G. The following line is correct:
8947 shared_flag='-G'
8948 else
8949 if test "$aix_use_runtimelinking" = yes; then
8950 shared_flag='${wl}-G'
8951 else
8952 shared_flag='${wl}-bM:SRE'
8957 export_dynamic_flag_spec='${wl}-bexpall'
8958 # It seems that -bexpall does not export symbols beginning with
8959 # underscore (_), so it is better to generate a list of symbols to export.
8960 always_export_symbols=yes
8961 if test "$aix_use_runtimelinking" = yes; then
8962 # Warning - without using the other runtime loading flags (-brtl),
8963 # -berok will link without error, but may produce a broken library.
8964 allow_undefined_flag='-berok'
8965 # Determine the default libpath from the value encoded in an
8966 # empty executable.
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8971 main ()
8975 return 0;
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8980 lt_aix_libpath_sed='
8981 /Import File Strings/,/^$/ {
8982 /^0/ {
8983 s/^0 *\(.*\)$/\1/
8987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 # Check for a 64-bit object if we didn't find anything.
8989 if test -z "$aix_libpath"; then
8990 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998 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"
8999 else
9000 if test "$host_cpu" = ia64; then
9001 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9002 allow_undefined_flag="-z nodefs"
9003 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"
9004 else
9005 # Determine the default libpath from the value encoded in an
9006 # empty executable.
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9011 main ()
9015 return 0;
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"; then :
9020 lt_aix_libpath_sed='
9021 /Import File Strings/,/^$/ {
9022 /^0/ {
9023 s/^0 *\(.*\)$/\1/
9027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 # Check for a 64-bit object if we didn't find anything.
9029 if test -z "$aix_libpath"; then
9030 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9037 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9038 # Warning - without using the other run time loading flags,
9039 # -berok will link without error, but may produce a broken library.
9040 no_undefined_flag=' ${wl}-bernotok'
9041 allow_undefined_flag=' ${wl}-berok'
9042 if test "$with_gnu_ld" = yes; then
9043 # We only use this code for GNU lds that support --whole-archive.
9044 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9045 else
9046 # Exported symbols can be pulled into shared objects from archives
9047 whole_archive_flag_spec='$convenience'
9049 archive_cmds_need_lc=yes
9050 # This is similar to how AIX traditionally builds its shared libraries.
9051 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'
9056 amigaos*)
9057 case $host_cpu in
9058 powerpc)
9059 # see comment about AmigaOS4 .so support
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds=''
9063 m68k)
9064 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)'
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_minus_L=yes
9068 esac
9071 bsdi[45]*)
9072 export_dynamic_flag_spec=-rdynamic
9075 cygwin* | mingw* | pw32* | cegcc*)
9076 # When not using gcc, we currently assume that we are using
9077 # Microsoft Visual C++.
9078 # hardcode_libdir_flag_spec is actually meaningless, as there is
9079 # no search path for DLLs.
9080 hardcode_libdir_flag_spec=' '
9081 allow_undefined_flag=unsupported
9082 # Tell ltmain to make .lib files, not .a files.
9083 libext=lib
9084 # Tell ltmain to make .dll files, not .so files.
9085 shrext_cmds=".dll"
9086 # FIXME: Setting linknames here is a bad hack.
9087 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9088 # The linker will automatically build a .lib file if we build a DLL.
9089 old_archive_from_new_cmds='true'
9090 # FIXME: Should let the user specify the lib program.
9091 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9092 fix_srcfile_path='`cygpath -w "$srcfile"`'
9093 enable_shared_with_static_runtimes=yes
9096 darwin* | rhapsody*)
9099 archive_cmds_need_lc=no
9100 hardcode_direct=no
9101 hardcode_automatic=yes
9102 hardcode_shlibpath_var=unsupported
9103 if test "$lt_cv_ld_force_load" = "yes"; then
9104 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\"`'
9105 else
9106 whole_archive_flag_spec=''
9108 link_all_deplibs=yes
9109 allow_undefined_flag="$_lt_dar_allow_undefined"
9110 case $cc_basename in
9111 ifort*) _lt_dar_can_shared=yes ;;
9112 *) _lt_dar_can_shared=$GCC ;;
9113 esac
9114 if test "$_lt_dar_can_shared" = "yes"; then
9115 output_verbose_link_cmd=func_echo_all
9116 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9117 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9118 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}"
9119 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}"
9121 else
9122 ld_shlibs=no
9127 dgux*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9133 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134 # support. Future versions do this automatically, but an explicit c++rt0.o
9135 # does not break anything, and helps significantly (at the cost of a little
9136 # extra space).
9137 freebsd2.2*)
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139 hardcode_libdir_flag_spec='-R$libdir'
9140 hardcode_direct=yes
9141 hardcode_shlibpath_var=no
9144 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9145 freebsd2.*)
9146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147 hardcode_direct=yes
9148 hardcode_minus_L=yes
9149 hardcode_shlibpath_var=no
9152 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153 freebsd* | dragonfly*)
9154 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155 hardcode_libdir_flag_spec='-R$libdir'
9156 hardcode_direct=yes
9157 hardcode_shlibpath_var=no
9160 hpux9*)
9161 if test "$GCC" = yes; then
9162 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'
9163 else
9164 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'
9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator=:
9168 hardcode_direct=yes
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L=yes
9173 export_dynamic_flag_spec='${wl}-E'
9176 hpux10*)
9177 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9178 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179 else
9180 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9182 if test "$with_gnu_ld" = no; then
9183 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184 hardcode_libdir_flag_spec_ld='+b $libdir'
9185 hardcode_libdir_separator=:
9186 hardcode_direct=yes
9187 hardcode_direct_absolute=yes
9188 export_dynamic_flag_spec='${wl}-E'
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L=yes
9195 hpux11*)
9196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9197 case $host_cpu in
9198 hppa*64*)
9199 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 ia64*)
9202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9207 esac
9208 else
9209 case $host_cpu in
9210 hppa*64*)
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 ia64*)
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9218 # Older versions of the 11.00 compiler do not understand -b yet
9219 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9221 $as_echo_n "checking if $CC understands -b... " >&6; }
9222 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 lt_cv_prog_compiler__b=no
9226 save_LDFLAGS="$LDFLAGS"
9227 LDFLAGS="$LDFLAGS -b"
9228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9230 # The linker can only warn and ignore the option if not recognized
9231 # So say no if there are warnings
9232 if test -s conftest.err; then
9233 # Append any errors to the config.log.
9234 cat conftest.err 1>&5
9235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9237 if diff conftest.exp conftest.er2 >/dev/null; then
9238 lt_cv_prog_compiler__b=yes
9240 else
9241 lt_cv_prog_compiler__b=yes
9244 $RM -r conftest*
9245 LDFLAGS="$save_LDFLAGS"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9249 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9251 if test x"$lt_cv_prog_compiler__b" = xyes; then
9252 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9253 else
9254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9258 esac
9260 if test "$with_gnu_ld" = no; then
9261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9262 hardcode_libdir_separator=:
9264 case $host_cpu in
9265 hppa*64*|ia64*)
9266 hardcode_direct=no
9267 hardcode_shlibpath_var=no
9270 hardcode_direct=yes
9271 hardcode_direct_absolute=yes
9272 export_dynamic_flag_spec='${wl}-E'
9274 # hardcode_minus_L: Not really in the search PATH,
9275 # but as the default location of the library.
9276 hardcode_minus_L=yes
9278 esac
9282 irix5* | irix6* | nonstopux*)
9283 if test "$GCC" = yes; then
9284 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'
9285 # Try to use the -exported_symbol ld option, if it does not
9286 # work, assume that -exports_file does not work either and
9287 # implicitly export all symbols.
9288 save_LDFLAGS="$LDFLAGS"
9289 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 int foo(void) {}
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 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'
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 LDFLAGS="$save_LDFLAGS"
9301 else
9302 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'
9303 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'
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 inherit_rpath=yes
9309 link_all_deplibs=yes
9312 netbsd*)
9313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9315 else
9316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9318 hardcode_libdir_flag_spec='-R$libdir'
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9323 newsos6)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=yes
9326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327 hardcode_libdir_separator=:
9328 hardcode_shlibpath_var=no
9331 *nto* | *qnx*)
9334 openbsd*)
9335 if test -f /usr/libexec/ld.so; then
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9338 hardcode_direct_absolute=yes
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 export_dynamic_flag_spec='${wl}-E'
9344 else
9345 case $host_os in
9346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-R$libdir'
9351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9354 esac
9356 else
9357 ld_shlibs=no
9361 os2*)
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 allow_undefined_flag=unsupported
9365 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'
9366 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9369 osf3*)
9370 if test "$GCC" = yes; then
9371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372 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'
9373 else
9374 allow_undefined_flag=' -expect_unresolved \*'
9375 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'
9377 archive_cmds_need_lc='no'
9378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379 hardcode_libdir_separator=:
9382 osf4* | osf5*) # as osf3* with the addition of -msym flag
9383 if test "$GCC" = yes; then
9384 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9385 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'
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 else
9388 allow_undefined_flag=' -expect_unresolved \*'
9389 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'
9390 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~
9391 $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'
9393 # Both c and cxx compiler support -rpath directly
9394 hardcode_libdir_flag_spec='-rpath $libdir'
9396 archive_cmds_need_lc='no'
9397 hardcode_libdir_separator=:
9400 solaris*)
9401 no_undefined_flag=' -z defs'
9402 if test "$GCC" = yes; then
9403 wlarc='${wl}'
9404 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9407 else
9408 case `$CC -V 2>&1` in
9409 *"Compilers 5.0"*)
9410 wlarc=''
9411 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9416 wlarc='${wl}'
9417 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9419 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9421 esac
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 hardcode_shlibpath_var=no
9425 case $host_os in
9426 solaris2.[0-5] | solaris2.[0-5].*) ;;
9428 # The compiler driver will combine and reorder linker options,
9429 # but understands `-z linker_flag'. GCC discards it without `$wl',
9430 # but is careful enough not to reorder.
9431 # Supported since Solaris 2.6 (maybe 2.5.1?)
9432 if test "$GCC" = yes; then
9433 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9434 else
9435 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9438 esac
9439 link_all_deplibs=yes
9442 sunos4*)
9443 if test "x$host_vendor" = xsequent; then
9444 # Use $CC to link under sequent, because it throws in some extra .o
9445 # files that make .init and .fini sections work.
9446 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_libdir_flag_spec='-L$libdir'
9451 hardcode_direct=yes
9452 hardcode_minus_L=yes
9453 hardcode_shlibpath_var=no
9456 sysv4)
9457 case $host_vendor in
9458 sni)
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_direct=yes # is this really true???
9462 siemens)
9463 ## LD is ld it makes a PLAMLIB
9464 ## CC just makes a GrossModule.
9465 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9466 reload_cmds='$CC -r -o $output$reload_objs'
9467 hardcode_direct=no
9469 motorola)
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9473 esac
9474 runpath_var='LD_RUN_PATH'
9475 hardcode_shlibpath_var=no
9478 sysv4.3*)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_shlibpath_var=no
9481 export_dynamic_flag_spec='-Bexport'
9484 sysv4*MP*)
9485 if test -d /usr/nec; then
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_shlibpath_var=no
9488 runpath_var=LD_RUN_PATH
9489 hardcode_runpath_var=yes
9490 ld_shlibs=yes
9494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9495 no_undefined_flag='${wl}-z,text'
9496 archive_cmds_need_lc=no
9497 hardcode_shlibpath_var=no
9498 runpath_var='LD_RUN_PATH'
9500 if test "$GCC" = yes; then
9501 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 else
9504 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 sysv5* | sco3.2v5* | sco5v6*)
9510 # Note: We can NOT use -z defs as we might desire, because we do not
9511 # link with -lc, and that would cause any symbols used from libc to
9512 # always be unresolved, which means just about no library would
9513 # ever link correctly. If we're not using GNU ld we use -z text
9514 # though, which does catch some bad symbols but isn't as heavy-handed
9515 # as -z defs.
9516 no_undefined_flag='${wl}-z,text'
9517 allow_undefined_flag='${wl}-z,nodefs'
9518 archive_cmds_need_lc=no
9519 hardcode_shlibpath_var=no
9520 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9521 hardcode_libdir_separator=':'
9522 link_all_deplibs=yes
9523 export_dynamic_flag_spec='${wl}-Bexport'
9524 runpath_var='LD_RUN_PATH'
9526 if test "$GCC" = yes; then
9527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 else
9530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 uts4*)
9536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_shlibpath_var=no
9542 ld_shlibs=no
9544 esac
9546 if test x$host_vendor = xsni; then
9547 case $host in
9548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9549 export_dynamic_flag_spec='${wl}-Blargedynsym'
9551 esac
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9556 $as_echo "$ld_shlibs" >&6; }
9557 test "$ld_shlibs" = no && can_build_shared=no
9559 with_gnu_ld=$with_gnu_ld
9576 # Do we need to explicitly link libc?
9578 case "x$archive_cmds_need_lc" in
9579 x|xyes)
9580 # Assume -lc should be added
9581 archive_cmds_need_lc=yes
9583 if test "$enable_shared" = yes && test "$GCC" = yes; then
9584 case $archive_cmds in
9585 *'~'*)
9586 # FIXME: we may have to deal with multi-command sequences.
9588 '$CC '*)
9589 # Test whether the compiler implicitly links with -lc since on some
9590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9591 # to ld, don't add -lc before -lgcc.
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9593 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9594 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 $RM conftest*
9598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9601 (eval $ac_compile) 2>&5
9602 ac_status=$?
9603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604 test $ac_status = 0; } 2>conftest.err; then
9605 soname=conftest
9606 lib=conftest
9607 libobjs=conftest.$ac_objext
9608 deplibs=
9609 wl=$lt_prog_compiler_wl
9610 pic_flag=$lt_prog_compiler_pic
9611 compiler_flags=-v
9612 linker_flags=-v
9613 verstring=
9614 output_objdir=.
9615 libname=conftest
9616 lt_save_allow_undefined_flag=$allow_undefined_flag
9617 allow_undefined_flag=
9618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9619 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9620 ac_status=$?
9621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9622 test $ac_status = 0; }
9623 then
9624 lt_cv_archive_cmds_need_lc=no
9625 else
9626 lt_cv_archive_cmds_need_lc=yes
9628 allow_undefined_flag=$lt_save_allow_undefined_flag
9629 else
9630 cat conftest.err 1>&5
9632 $RM conftest*
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9636 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9637 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9639 esac
9642 esac
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9803 if test "$GCC" = yes; then
9804 case $host_os in
9805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806 *) lt_awk_arg="/^libraries:/" ;;
9807 esac
9808 case $host_os in
9809 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810 *) lt_sed_strip_eq="s,=/,/,g" ;;
9811 esac
9812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813 case $lt_search_path_spec in
9814 *\;*)
9815 # if the path contains ";" then we assume it to be the separator
9816 # otherwise default to the standard path separator (i.e. ":") - it is
9817 # assumed that no part of a normal pathname contains ";" but that should
9818 # okay in the real world where ";" in dirpaths is itself problematic.
9819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9822 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9824 esac
9825 # Ok, now we have the path, separated by spaces, we can step through it
9826 # and add multilib dir if necessary.
9827 lt_tmp_lt_search_path_spec=
9828 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829 for lt_sys_path in $lt_search_path_spec; do
9830 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832 else
9833 test -d "$lt_sys_path" && \
9834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9836 done
9837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9838 BEGIN {RS=" "; FS="/|\n";} {
9839 lt_foo="";
9840 lt_count=0;
9841 for (lt_i = NF; lt_i > 0; lt_i--) {
9842 if ($lt_i != "" && $lt_i != ".") {
9843 if ($lt_i == "..") {
9844 lt_count++;
9845 } else {
9846 if (lt_count == 0) {
9847 lt_foo="/" $lt_i lt_foo;
9848 } else {
9849 lt_count--;
9854 if (lt_foo != "") { lt_freq[lt_foo]++; }
9855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9857 # AWK program above erroneously prepends '/' to C:/dos/paths
9858 # for these hosts.
9859 case $host_os in
9860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862 esac
9863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9864 else
9865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9867 library_names_spec=
9868 libname_spec='lib$name'
9869 soname_spec=
9870 shrext_cmds=".so"
9871 postinstall_cmds=
9872 postuninstall_cmds=
9873 finish_cmds=
9874 finish_eval=
9875 shlibpath_var=
9876 shlibpath_overrides_runpath=unknown
9877 version_type=none
9878 dynamic_linker="$host_os ld.so"
9879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9880 need_lib_prefix=unknown
9881 hardcode_into_libs=no
9883 # when you set need_version to no, make sure it does not cause -set_version
9884 # flags to be left without arguments
9885 need_version=unknown
9887 case $host_os in
9888 aix3*)
9889 version_type=linux
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891 shlibpath_var=LIBPATH
9893 # AIX 3 has no versioning support, so we append a major version to the name.
9894 soname_spec='${libname}${release}${shared_ext}$major'
9897 aix[4-9]*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 hardcode_into_libs=yes
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 supports IA64
9904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 else
9907 # With GCC up to 2.95.x, collect2 would create an import file
9908 # for dependence libraries. The import file would start with
9909 # the line `#! .'. This would cause the generated library to
9910 # depend on `.', always an invalid library. This was fixed in
9911 # development snapshots of GCC prior to 3.0.
9912 case $host_os in
9913 aix4 | aix4.[01] | aix4.[01].*)
9914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915 echo ' yes '
9916 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9918 else
9919 can_build_shared=no
9922 esac
9923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924 # soname into executable. Probably we can add versioning support to
9925 # collect2, so additional links can be useful in future.
9926 if test "$aix_use_runtimelinking" = yes; then
9927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928 # instead of lib<name>.a to let people know that these are not
9929 # typical AIX shared libraries.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 else
9932 # We preserve .a as extension for shared libraries through AIX4.2
9933 # and later when we are not doing run time linking.
9934 library_names_spec='${libname}${release}.a $libname.a'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9937 shlibpath_var=LIBPATH
9941 amigaos*)
9942 case $host_cpu in
9943 powerpc)
9944 # Since July 2007 AmigaOS4 officially supports .so libraries.
9945 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 m68k)
9949 library_names_spec='$libname.ixlibrary $libname.a'
9950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9951 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'
9953 esac
9956 beos*)
9957 library_names_spec='${libname}${shared_ext}'
9958 dynamic_linker="$host_os ld.so"
9959 shlibpath_var=LIBRARY_PATH
9962 bsdi[45]*)
9963 version_type=linux
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971 # the default ld.so.conf also contains /usr/contrib/lib and
9972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973 # libtool to hard-code these into programs
9976 cygwin* | mingw* | pw32* | cegcc*)
9977 version_type=windows
9978 shrext_cmds=".dll"
9979 need_version=no
9980 need_lib_prefix=no
9982 case $GCC,$host_os in
9983 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9984 library_names_spec='$libname.dll.a'
9985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986 postinstall_cmds='base_file=`basename \${file}`~
9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9988 dldir=$destdir/`dirname \$dlpath`~
9989 test -d \$dldir || mkdir -p \$dldir~
9990 $install_prog $dir/$dlname \$dldir/$dlname~
9991 chmod a+x \$dldir/$dlname~
9992 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9993 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9996 dlpath=$dir/\$dldll~
9997 $RM \$dlpath'
9998 shlibpath_overrides_runpath=yes
10000 case $host_os in
10001 cygwin*)
10002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10007 mingw* | cegcc*)
10008 # MinGW DLLs use traditional 'lib' prefix
10009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011 pw32*)
10012 # pw32 DLLs use 'pw' prefix rather than 'lib'
10013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10015 esac
10019 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10021 esac
10022 dynamic_linker='Win32 ld.exe'
10023 # FIXME: first we should search . and the directory the executable is in
10024 shlibpath_var=PATH
10027 darwin* | rhapsody*)
10028 dynamic_linker="$host_os dyld"
10029 version_type=darwin
10030 need_lib_prefix=no
10031 need_version=no
10032 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10033 soname_spec='${libname}${release}${major}$shared_ext'
10034 shlibpath_overrides_runpath=yes
10035 shlibpath_var=DYLD_LIBRARY_PATH
10036 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10038 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10039 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10042 dgux*)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10051 freebsd* | dragonfly*)
10052 # DragonFly does not have aout. When/if they implement a new
10053 # versioning mechanism, adjust this.
10054 if test -x /usr/bin/objformat; then
10055 objformat=`/usr/bin/objformat`
10056 else
10057 case $host_os in
10058 freebsd[23].*) objformat=aout ;;
10059 *) objformat=elf ;;
10060 esac
10062 version_type=freebsd-$objformat
10063 case $version_type in
10064 freebsd-elf*)
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10066 need_version=no
10067 need_lib_prefix=no
10069 freebsd-*)
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10071 need_version=yes
10073 esac
10074 shlibpath_var=LD_LIBRARY_PATH
10075 case $host_os in
10076 freebsd2.*)
10077 shlibpath_overrides_runpath=yes
10079 freebsd3.[01]* | freebsdelf3.[01]*)
10080 shlibpath_overrides_runpath=yes
10081 hardcode_into_libs=yes
10083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10088 *) # from 4.6 on, and DragonFly
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10092 esac
10095 gnu*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10100 soname_spec='${libname}${release}${shared_ext}$major'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 hardcode_into_libs=yes
10105 haiku*)
10106 version_type=linux
10107 need_lib_prefix=no
10108 need_version=no
10109 dynamic_linker="$host_os runtime_loader"
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LIBRARY_PATH
10113 shlibpath_overrides_runpath=yes
10114 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10115 hardcode_into_libs=yes
10118 hpux9* | hpux10* | hpux11*)
10119 # Give a soname corresponding to the major version so that dld.sl refuses to
10120 # link against other versions.
10121 version_type=sunos
10122 need_lib_prefix=no
10123 need_version=no
10124 case $host_cpu in
10125 ia64*)
10126 shrext_cmds='.so'
10127 hardcode_into_libs=yes
10128 dynamic_linker="$host_os dld.so"
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 if test "X$HPUX_IA64_MODE" = X32; then
10134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10135 else
10136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10140 hppa*64*)
10141 shrext_cmds='.sl'
10142 hardcode_into_libs=yes
10143 dynamic_linker="$host_os dld.sl"
10144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10152 shrext_cmds='.sl'
10153 dynamic_linker="$host_os dld.sl"
10154 shlibpath_var=SHLIB_PATH
10155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10159 esac
10160 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10161 postinstall_cmds='chmod 555 $lib'
10162 # or fails outright, so override atomically:
10163 install_override_mode=555
10166 interix[3-9]*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10178 irix5* | irix6* | nonstopux*)
10179 case $host_os in
10180 nonstopux*) version_type=nonstopux ;;
10182 if test "$lt_cv_prog_gnu_ld" = yes; then
10183 version_type=linux
10184 else
10185 version_type=irix
10186 fi ;;
10187 esac
10188 need_lib_prefix=no
10189 need_version=no
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10192 case $host_os in
10193 irix5* | nonstopux*)
10194 libsuff= shlibsuff=
10197 case $LD in # libtool.m4 will add one of these switches to LD
10198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10199 libsuff= shlibsuff= libmagic=32-bit;;
10200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10201 libsuff=32 shlibsuff=N32 libmagic=N32;;
10202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10204 *) libsuff= shlibsuff= libmagic=never-match;;
10205 esac
10207 esac
10208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10209 shlibpath_overrides_runpath=no
10210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10212 hardcode_into_libs=yes
10215 # No shared lib support for Linux oldld, aout, or coff.
10216 linux*oldld* | linux*aout* | linux*coff*)
10217 dynamic_linker=no
10220 # This must be Linux ELF.
10221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10222 version_type=linux
10223 need_lib_prefix=no
10224 need_version=no
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10231 # Some binutils ld are patched to set DT_RUNPATH
10232 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 lt_cv_shlibpath_overrides_runpath=no
10236 save_LDFLAGS=$LDFLAGS
10237 save_libdir=$libdir
10238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10244 main ()
10248 return 0;
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10253 lt_cv_shlibpath_overrides_runpath=yes
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LDFLAGS=$save_LDFLAGS
10259 libdir=$save_libdir
10263 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10265 # This implies no fast_install, which is unacceptable.
10266 # Some rework will be needed to allow for fast_install
10267 # before this can be enabled.
10268 hardcode_into_libs=yes
10270 # Append ld.so.conf contents to the search path
10271 if test -f /etc/ld.so.conf; then
10272 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' ' '`
10273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10276 # We used to test for /lib/ld.so.1 and disable shared libraries on
10277 # powerpc, because MkLinux only supported shared libraries with the
10278 # GNU dynamic linker. Since this was broken with cross compilers,
10279 # most powerpc-linux boxes support dynamic linking these days and
10280 # people can always --disable-shared, the test was removed, and we
10281 # assume the GNU/Linux dynamic linker is in use.
10282 dynamic_linker='GNU/Linux ld.so'
10285 netbsd*)
10286 version_type=sunos
10287 need_lib_prefix=no
10288 need_version=no
10289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292 dynamic_linker='NetBSD (a.out) ld.so'
10293 else
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 dynamic_linker='NetBSD ld.elf_so'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=yes
10300 hardcode_into_libs=yes
10303 newsos6)
10304 version_type=linux
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10310 *nto* | *qnx*)
10311 version_type=qnx
10312 need_lib_prefix=no
10313 need_version=no
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=no
10318 hardcode_into_libs=yes
10319 dynamic_linker='ldqnx.so'
10322 openbsd*)
10323 version_type=sunos
10324 sys_lib_dlsearch_path_spec="/usr/lib"
10325 need_lib_prefix=no
10326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10327 case $host_os in
10328 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10329 *) need_version=no ;;
10330 esac
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335 case $host_os in
10336 openbsd2.[89] | openbsd2.[89].*)
10337 shlibpath_overrides_runpath=no
10340 shlibpath_overrides_runpath=yes
10342 esac
10343 else
10344 shlibpath_overrides_runpath=yes
10348 os2*)
10349 libname_spec='$name'
10350 shrext_cmds=".dll"
10351 need_lib_prefix=no
10352 library_names_spec='$libname${shared_ext} $libname.a'
10353 dynamic_linker='OS/2 ld.exe'
10354 shlibpath_var=LIBPATH
10357 osf3* | osf4* | osf5*)
10358 version_type=osf
10359 need_lib_prefix=no
10360 need_version=no
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10368 rdos*)
10369 dynamic_linker=no
10372 solaris*)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 # ldd complains unless libraries are executable
10382 postinstall_cmds='chmod +x $lib'
10385 sunos4*)
10386 version_type=sunos
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=yes
10391 if test "$with_gnu_ld" = yes; then
10392 need_lib_prefix=no
10394 need_version=yes
10397 sysv4 | sysv4.3*)
10398 version_type=linux
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 case $host_vendor in
10403 sni)
10404 shlibpath_overrides_runpath=no
10405 need_lib_prefix=no
10406 runpath_var=LD_RUN_PATH
10408 siemens)
10409 need_lib_prefix=no
10411 motorola)
10412 need_lib_prefix=no
10413 need_version=no
10414 shlibpath_overrides_runpath=no
10415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10417 esac
10420 sysv4*MP*)
10421 if test -d /usr/nec ;then
10422 version_type=linux
10423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10424 soname_spec='$libname${shared_ext}.$major'
10425 shlibpath_var=LD_LIBRARY_PATH
10429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10430 version_type=freebsd-elf
10431 need_lib_prefix=no
10432 need_version=no
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 shlibpath_var=LD_LIBRARY_PATH
10436 shlibpath_overrides_runpath=yes
10437 hardcode_into_libs=yes
10438 if test "$with_gnu_ld" = yes; then
10439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10440 else
10441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10442 case $host_os in
10443 sco3.2v5*)
10444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10446 esac
10448 sys_lib_dlsearch_path_spec='/usr/lib'
10451 tpf*)
10452 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10453 version_type=linux
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10462 uts4*)
10463 version_type=linux
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10470 dynamic_linker=no
10472 esac
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10474 $as_echo "$dynamic_linker" >&6; }
10475 test "$dynamic_linker" = no && can_build_shared=no
10477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10478 if test "$GCC" = yes; then
10479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10482 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10483 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10486 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10582 hardcode_action=
10583 if test -n "$hardcode_libdir_flag_spec" ||
10584 test -n "$runpath_var" ||
10585 test "X$hardcode_automatic" = "Xyes" ; then
10587 # We can hardcode non-existent directories.
10588 if test "$hardcode_direct" != no &&
10589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10590 # have to relink, otherwise we might link with an installed library
10591 # when we should be linking with a yet-to-be-installed one
10592 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10593 test "$hardcode_minus_L" != no; then
10594 # Linking always hardcodes the temporary library directory.
10595 hardcode_action=relink
10596 else
10597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10598 hardcode_action=immediate
10600 else
10601 # We cannot hardcode anything, or else we can only hardcode existing
10602 # directories.
10603 hardcode_action=unsupported
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10606 $as_echo "$hardcode_action" >&6; }
10608 if test "$hardcode_action" = relink ||
10609 test "$inherit_rpath" = yes; then
10610 # Fast installation is not supported
10611 enable_fast_install=no
10612 elif test "$shlibpath_overrides_runpath" = yes ||
10613 test "$enable_shared" = no; then
10614 # Fast installation is not necessary
10615 enable_fast_install=needless
10623 if test "x$enable_dlopen" != xyes; then
10624 enable_dlopen=unknown
10625 enable_dlopen_self=unknown
10626 enable_dlopen_self_static=unknown
10627 else
10628 lt_cv_dlopen=no
10629 lt_cv_dlopen_libs=
10631 case $host_os in
10632 beos*)
10633 lt_cv_dlopen="load_add_on"
10634 lt_cv_dlopen_libs=
10635 lt_cv_dlopen_self=yes
10638 mingw* | pw32* | cegcc*)
10639 lt_cv_dlopen="LoadLibrary"
10640 lt_cv_dlopen_libs=
10643 cygwin*)
10644 lt_cv_dlopen="dlopen"
10645 lt_cv_dlopen_libs=
10648 darwin*)
10649 # if libdl is installed we need to link against it
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-ldl $LIBS"
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char dlopen ();
10668 main ()
10670 return dlopen ();
10672 return 0;
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 ac_cv_lib_dl_dlopen=yes
10677 else
10678 ac_cv_lib_dl_dlopen=no
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 LIBS=$ac_check_lib_save_LIBS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10685 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10686 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10688 else
10690 lt_cv_dlopen="dyld"
10691 lt_cv_dlopen_libs=
10692 lt_cv_dlopen_self=yes
10699 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10700 if test "x$ac_cv_func_shl_load" = x""yes; then :
10701 lt_cv_dlopen="shl_load"
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10704 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10705 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-ldld $LIBS"
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char shl_load ();
10721 main ()
10723 return shl_load ();
10725 return 0;
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"; then :
10729 ac_cv_lib_dld_shl_load=yes
10730 else
10731 ac_cv_lib_dld_shl_load=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10738 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10739 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10740 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10741 else
10742 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10743 if test "x$ac_cv_func_dlopen" = x""yes; then :
10744 lt_cv_dlopen="dlopen"
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10747 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10748 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-ldl $LIBS"
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10756 /* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
10759 #ifdef __cplusplus
10760 extern "C"
10761 #endif
10762 char dlopen ();
10764 main ()
10766 return dlopen ();
10768 return 0;
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10772 ac_cv_lib_dl_dlopen=yes
10773 else
10774 ac_cv_lib_dl_dlopen=no
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10781 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10782 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10786 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-lsvld $LIBS"
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char dlopen ();
10803 main ()
10805 return dlopen ();
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_lib_svld_dlopen=yes
10812 else
10813 ac_cv_lib_svld_dlopen=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10820 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10821 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10825 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldld $LIBS"
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char dld_link ();
10842 main ()
10844 return dld_link ();
10846 return 0;
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850 ac_cv_lib_dld_dld_link=yes
10851 else
10852 ac_cv_lib_dld_dld_link=no
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10859 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10860 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10861 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10880 esac
10882 if test "x$lt_cv_dlopen" != xno; then
10883 enable_dlopen=yes
10884 else
10885 enable_dlopen=no
10888 case $lt_cv_dlopen in
10889 dlopen)
10890 save_CPPFLAGS="$CPPFLAGS"
10891 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10893 save_LDFLAGS="$LDFLAGS"
10894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10896 save_LIBS="$LIBS"
10897 LIBS="$lt_cv_dlopen_libs $LIBS"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10900 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10901 if test "${lt_cv_dlopen_self+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 if test "$cross_compiling" = yes; then :
10905 lt_cv_dlopen_self=cross
10906 else
10907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908 lt_status=$lt_dlunknown
10909 cat > conftest.$ac_ext <<_LT_EOF
10910 #line 10910 "configure"
10911 #include "confdefs.h"
10913 #if HAVE_DLFCN_H
10914 #include <dlfcn.h>
10915 #endif
10917 #include <stdio.h>
10919 #ifdef RTLD_GLOBAL
10920 # define LT_DLGLOBAL RTLD_GLOBAL
10921 #else
10922 # ifdef DL_GLOBAL
10923 # define LT_DLGLOBAL DL_GLOBAL
10924 # else
10925 # define LT_DLGLOBAL 0
10926 # endif
10927 #endif
10929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930 find out it does not work in some platform. */
10931 #ifndef LT_DLLAZY_OR_NOW
10932 # ifdef RTLD_LAZY
10933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10934 # else
10935 # ifdef DL_LAZY
10936 # define LT_DLLAZY_OR_NOW DL_LAZY
10937 # else
10938 # ifdef RTLD_NOW
10939 # define LT_DLLAZY_OR_NOW RTLD_NOW
10940 # else
10941 # ifdef DL_NOW
10942 # define LT_DLLAZY_OR_NOW DL_NOW
10943 # else
10944 # define LT_DLLAZY_OR_NOW 0
10945 # endif
10946 # endif
10947 # endif
10948 # endif
10949 #endif
10951 /* When -fvisbility=hidden is used, assume the code has been annotated
10952 correspondingly for the symbols needed. */
10953 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10954 void fnord () __attribute__((visibility("default")));
10955 #endif
10957 void fnord () { int i=42; }
10958 int main ()
10960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10961 int status = $lt_dlunknown;
10963 if (self)
10965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10966 else
10968 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10969 else puts (dlerror ());
10971 /* dlclose (self); */
10973 else
10974 puts (dlerror ());
10976 return status;
10978 _LT_EOF
10979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10983 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10984 (./conftest; exit; ) >&5 2>/dev/null
10985 lt_status=$?
10986 case x$lt_status in
10987 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10988 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10989 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10990 esac
10991 else :
10992 # compilation failed
10993 lt_cv_dlopen_self=no
10996 rm -fr conftest*
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11001 $as_echo "$lt_cv_dlopen_self" >&6; }
11003 if test "x$lt_cv_dlopen_self" = xyes; then
11004 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11006 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11007 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 if test "$cross_compiling" = yes; then :
11011 lt_cv_dlopen_self_static=cross
11012 else
11013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11014 lt_status=$lt_dlunknown
11015 cat > conftest.$ac_ext <<_LT_EOF
11016 #line 11016 "configure"
11017 #include "confdefs.h"
11019 #if HAVE_DLFCN_H
11020 #include <dlfcn.h>
11021 #endif
11023 #include <stdio.h>
11025 #ifdef RTLD_GLOBAL
11026 # define LT_DLGLOBAL RTLD_GLOBAL
11027 #else
11028 # ifdef DL_GLOBAL
11029 # define LT_DLGLOBAL DL_GLOBAL
11030 # else
11031 # define LT_DLGLOBAL 0
11032 # endif
11033 #endif
11035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11036 find out it does not work in some platform. */
11037 #ifndef LT_DLLAZY_OR_NOW
11038 # ifdef RTLD_LAZY
11039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11040 # else
11041 # ifdef DL_LAZY
11042 # define LT_DLLAZY_OR_NOW DL_LAZY
11043 # else
11044 # ifdef RTLD_NOW
11045 # define LT_DLLAZY_OR_NOW RTLD_NOW
11046 # else
11047 # ifdef DL_NOW
11048 # define LT_DLLAZY_OR_NOW DL_NOW
11049 # else
11050 # define LT_DLLAZY_OR_NOW 0
11051 # endif
11052 # endif
11053 # endif
11054 # endif
11055 #endif
11057 /* When -fvisbility=hidden is used, assume the code has been annotated
11058 correspondingly for the symbols needed. */
11059 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11060 void fnord () __attribute__((visibility("default")));
11061 #endif
11063 void fnord () { int i=42; }
11064 int main ()
11066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11067 int status = $lt_dlunknown;
11069 if (self)
11071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11072 else
11074 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11075 else puts (dlerror ());
11077 /* dlclose (self); */
11079 else
11080 puts (dlerror ());
11082 return status;
11084 _LT_EOF
11085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11086 (eval $ac_link) 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11090 (./conftest; exit; ) >&5 2>/dev/null
11091 lt_status=$?
11092 case x$lt_status in
11093 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11094 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11095 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11096 esac
11097 else :
11098 # compilation failed
11099 lt_cv_dlopen_self_static=no
11102 rm -fr conftest*
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11107 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11110 CPPFLAGS="$save_CPPFLAGS"
11111 LDFLAGS="$save_LDFLAGS"
11112 LIBS="$save_LIBS"
11114 esac
11116 case $lt_cv_dlopen_self in
11117 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11118 *) enable_dlopen_self=unknown ;;
11119 esac
11121 case $lt_cv_dlopen_self_static in
11122 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11123 *) enable_dlopen_self_static=unknown ;;
11124 esac
11143 striplib=
11144 old_striplib=
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11146 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11147 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11148 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11149 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152 else
11153 # FIXME - insert some real tests, host_os isn't really good enough
11154 case $host_os in
11155 darwin*)
11156 if test -n "$STRIP" ; then
11157 striplib="$STRIP -x"
11158 old_striplib="$STRIP -S"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160 $as_echo "yes" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11170 esac
11184 # Report which library types will actually be built
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11186 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11188 $as_echo "$can_build_shared" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11191 $as_echo_n "checking whether to build shared libraries... " >&6; }
11192 test "$can_build_shared" = "no" && enable_shared=no
11194 # On AIX, shared libraries and static libraries use the same namespace, and
11195 # are all built from PIC.
11196 case $host_os in
11197 aix3*)
11198 test "$enable_shared" = yes && enable_static=no
11199 if test -n "$RANLIB"; then
11200 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11201 postinstall_cmds='$RANLIB $lib'
11205 aix[4-9]*)
11206 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11207 test "$enable_shared" = yes && enable_static=no
11210 esac
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11212 $as_echo "$enable_shared" >&6; }
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11215 $as_echo_n "checking whether to build static libraries... " >&6; }
11216 # Make sure either enable_shared or enable_static is yes.
11217 test "$enable_shared" = yes || enable_static=yes
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11219 $as_echo "$enable_static" >&6; }
11225 ac_ext=c
11226 ac_cpp='$CPP $CPPFLAGS'
11227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231 CC="$lt_save_CC"
11245 ac_config_commands="$ac_config_commands libtool"
11250 # Only expand once:
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11256 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11257 # Check whether --enable-maintainer-mode was given.
11258 if test "${enable_maintainer_mode+set}" = set; then :
11259 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11260 else
11261 USE_MAINTAINER_MODE=no
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11265 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11266 if test $USE_MAINTAINER_MODE = yes; then
11267 MAINTAINER_MODE_TRUE=
11268 MAINTAINER_MODE_FALSE='#'
11269 else
11270 MAINTAINER_MODE_TRUE='#'
11271 MAINTAINER_MODE_FALSE=
11274 MAINT=$MAINTAINER_MODE_TRUE
11278 for ac_header in sys/mman.h
11279 do :
11280 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11281 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11282 cat >>confdefs.h <<_ACEOF
11283 #define HAVE_SYS_MMAN_H 1
11284 _ACEOF
11288 done
11290 for ac_func in mmap
11291 do :
11292 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11293 if test "x$ac_cv_func_mmap" = x""yes; then :
11294 cat >>confdefs.h <<_ACEOF
11295 #define HAVE_MMAP 1
11296 _ACEOF
11299 done
11302 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11303 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11304 libffi_header_sys_mman_h=yes
11305 else
11306 libffi_header_sys_mman_h=no
11310 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11311 if test "x$ac_cv_func_mmap" = x""yes; then :
11312 libffi_func_mmap=yes
11313 else
11314 libffi_func_mmap=no
11317 if test "$libffi_header_sys_mman_h" != yes \
11318 || test "$libffi_func_mmap" != yes; then
11319 ac_cv_func_mmap_file=no
11320 ac_cv_func_mmap_dev_zero=no
11321 ac_cv_func_mmap_anon=no
11322 else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11324 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11325 if test "${ac_cv_func_mmap_file+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 # Add a system to this blacklist if
11329 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11330 # memory area containing the same data that you'd get if you applied
11331 # read() to the same fd. The only system known to have a problem here
11332 # is VMS, where text files have record structure.
11333 case "$host_os" in
11334 vms* | ultrix*)
11335 ac_cv_func_mmap_file=no ;;
11337 ac_cv_func_mmap_file=yes;;
11338 esac
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11341 $as_echo "$ac_cv_func_mmap_file" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11343 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11344 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 # Add a system to this blacklist if it has mmap() but /dev/zero
11348 # does not exist, or if mmapping /dev/zero does not give anonymous
11349 # zeroed pages with both the following properties:
11350 # 1. If you map N consecutive pages in with one call, and then
11351 # unmap any subset of those pages, the pages that were not
11352 # explicitly unmapped remain accessible.
11353 # 2. If you map two adjacent blocks of memory and then unmap them
11354 # both at once, they must both go away.
11355 # Systems known to be in this category are Windows (all variants),
11356 # VMS, and Darwin.
11357 case "$host_os" in
11358 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11359 ac_cv_func_mmap_dev_zero=no ;;
11361 ac_cv_func_mmap_dev_zero=yes;;
11362 esac
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11365 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11367 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11369 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11370 if test "${ac_cv_decl_map_anon+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375 #include <sys/types.h>
11376 #include <sys/mman.h>
11377 #include <unistd.h>
11379 #ifndef MAP_ANONYMOUS
11380 #define MAP_ANONYMOUS MAP_ANON
11381 #endif
11384 main ()
11386 int n = MAP_ANONYMOUS;
11388 return 0;
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"; then :
11392 ac_cv_decl_map_anon=yes
11393 else
11394 ac_cv_decl_map_anon=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11399 $as_echo "$ac_cv_decl_map_anon" >&6; }
11401 if test $ac_cv_decl_map_anon = no; then
11402 ac_cv_func_mmap_anon=no
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11405 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11406 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11410 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11411 # doesn't give anonymous zeroed pages with the same properties listed
11412 # above for use of /dev/zero.
11413 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11414 case "$host_os" in
11415 vms* | cygwin* | pe | mingw* | sco* | udk* )
11416 ac_cv_func_mmap_anon=no ;;
11418 ac_cv_func_mmap_anon=yes;;
11419 esac
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11422 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11426 if test $ac_cv_func_mmap_file = yes; then
11428 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11431 if test $ac_cv_func_mmap_dev_zero = yes; then
11433 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11436 if test $ac_cv_func_mmap_anon = yes; then
11438 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11443 if test -d $srcdir/testsuite; then
11444 TESTSUBDIR_TRUE=
11445 TESTSUBDIR_FALSE='#'
11446 else
11447 TESTSUBDIR_TRUE='#'
11448 TESTSUBDIR_FALSE=
11452 TARGETDIR="unknown"
11453 HAVE_LONG_DOUBLE_VARIANT=0
11454 case "$host" in
11455 aarch64*-*-*)
11456 TARGET=AARCH64; TARGETDIR=aarch64
11459 alpha*-*-*)
11460 TARGET=ALPHA; TARGETDIR=alpha;
11461 # Support 128-bit long double, changeable via command-line switch.
11462 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11465 arm*-*-*)
11466 TARGET=ARM; TARGETDIR=arm
11469 amd64-*-freebsd* | amd64-*-openbsd*)
11470 TARGET=X86_64; TARGETDIR=x86
11473 amd64-*-freebsd*)
11474 TARGET=X86_64; TARGETDIR=x86
11477 avr32*-*-*)
11478 TARGET=AVR32; TARGETDIR=avr32
11481 bfin*)
11482 TARGET=BFIN; TARGETDIR=bfin
11485 cris-*-*)
11486 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11489 frv-*-*)
11490 TARGET=FRV; TARGETDIR=frv
11493 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
11494 TARGET=PA_LINUX; TARGETDIR=pa
11496 hppa*64-*-hpux*)
11497 TARGET=PA64_HPUX; TARGETDIR=pa
11499 hppa*-*-hpux*)
11500 TARGET=PA_HPUX; TARGETDIR=pa
11503 i?86-*-freebsd* | i?86-*-openbsd*)
11504 TARGET=X86_FREEBSD; TARGETDIR=x86
11506 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
11507 TARGET=X86_WIN32; TARGETDIR=x86
11508 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11509 # We must also check with_cross_host to decide if this is a native
11510 # or cross-build and select where to install dlls appropriately.
11511 if test -n "$with_cross_host" &&
11512 test x"$with_cross_host" != x"no"; then
11513 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11514 else
11515 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11518 i?86-*-darwin*)
11519 TARGET=X86_DARWIN; TARGETDIR=x86
11521 i?86-*-solaris2.1[0-9]*)
11522 TARGET=X86_64; TARGETDIR=x86
11524 i?86-*-*)
11525 TARGET=X86_64; TARGETDIR=x86
11528 ia64*-*-*)
11529 TARGET=IA64; TARGETDIR=ia64
11532 m32r*-*-*)
11533 TARGET=M32R; TARGETDIR=m32r
11536 m68k-*-*)
11537 TARGET=M68K; TARGETDIR=m68k
11540 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11541 TARGET=MIPS; TARGETDIR=mips
11543 mips*-*-linux* | mips*-*-openbsd*)
11544 # Support 128-bit long double for NewABI.
11545 HAVE_LONG_DOUBLE='defined(__mips64)'
11546 TARGET=MIPS; TARGETDIR=mips
11549 powerpc*-*-linux* | powerpc-*-sysv*)
11550 TARGET=POWERPC; TARGETDIR=powerpc
11551 HAVE_LONG_DOUBLE_VARIANT=1
11553 powerpc-*-amigaos*)
11554 TARGET=POWERPC; TARGETDIR=powerpc
11556 powerpc-*-beos*)
11557 TARGET=POWERPC; TARGETDIR=powerpc
11559 powerpc-*-darwin* | powerpc64-*-darwin*)
11560 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11562 powerpc-*-aix* | rs6000-*-aix*)
11563 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11565 powerpc-*-freebsd* | powerpc-*-openbsd*)
11566 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11567 HAVE_LONG_DOUBLE_VARIANT=1
11569 powerpc64-*-freebsd*)
11570 TARGET=POWERPC; TARGETDIR=powerpc
11572 powerpc*-*-rtems*)
11573 TARGET=POWERPC; TARGETDIR=powerpc
11576 s390-*-* | s390x-*-*)
11577 TARGET=S390; TARGETDIR=s390
11580 sh-*-* | sh[34]*-*-*)
11581 TARGET=SH; TARGETDIR=sh
11583 sh64-*-* | sh5*-*-*)
11584 TARGET=SH64; TARGETDIR=sh64
11587 sparc*-*-*)
11588 TARGET=SPARC; TARGETDIR=sparc
11591 tile*-*)
11592 TARGET=TILE; TARGETDIR=tile
11595 x86_64-*-darwin*)
11596 TARGET=X86_DARWIN; TARGETDIR=x86
11599 x86_64-*-cygwin* | x86_64-*-mingw*)
11600 TARGET=X86_WIN64; TARGETDIR=x86
11601 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11602 # We must also check with_cross_host to decide if this is a native
11603 # or cross-build and select where to install dlls appropriately.
11604 if test -n "$with_cross_host" &&
11605 test x"$with_cross_host" != x"no"; then
11606 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11607 else
11608 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11612 x86_64-*-*)
11613 TARGET=X86_64; TARGETDIR=x86
11615 esac
11620 if test $TARGETDIR = unknown; then
11621 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11624 if test x$TARGET = xMIPS; then
11625 MIPS_TRUE=
11626 MIPS_FALSE='#'
11627 else
11628 MIPS_TRUE='#'
11629 MIPS_FALSE=
11632 if test x$TARGET = xBFIN; then
11633 BFIN_TRUE=
11634 BFIN_FALSE='#'
11635 else
11636 BFIN_TRUE='#'
11637 BFIN_FALSE=
11640 if test x$TARGET = xSPARC; then
11641 SPARC_TRUE=
11642 SPARC_FALSE='#'
11643 else
11644 SPARC_TRUE='#'
11645 SPARC_FALSE=
11648 if test x$TARGET = xX86; then
11649 X86_TRUE=
11650 X86_FALSE='#'
11651 else
11652 X86_TRUE='#'
11653 X86_FALSE=
11656 if test x$TARGET = xX86_FREEBSD; then
11657 X86_FREEBSD_TRUE=
11658 X86_FREEBSD_FALSE='#'
11659 else
11660 X86_FREEBSD_TRUE='#'
11661 X86_FREEBSD_FALSE=
11664 if test x$TARGET = xX86_WIN32; then
11665 X86_WIN32_TRUE=
11666 X86_WIN32_FALSE='#'
11667 else
11668 X86_WIN32_TRUE='#'
11669 X86_WIN32_FALSE=
11672 if test x$TARGET = xX86_WIN64; then
11673 X86_WIN64_TRUE=
11674 X86_WIN64_FALSE='#'
11675 else
11676 X86_WIN64_TRUE='#'
11677 X86_WIN64_FALSE=
11680 if test x$TARGET = xX86_DARWIN; then
11681 X86_DARWIN_TRUE=
11682 X86_DARWIN_FALSE='#'
11683 else
11684 X86_DARWIN_TRUE='#'
11685 X86_DARWIN_FALSE=
11688 if test x$TARGET = xALPHA; then
11689 ALPHA_TRUE=
11690 ALPHA_FALSE='#'
11691 else
11692 ALPHA_TRUE='#'
11693 ALPHA_FALSE=
11696 if test x$TARGET = xIA64; then
11697 IA64_TRUE=
11698 IA64_FALSE='#'
11699 else
11700 IA64_TRUE='#'
11701 IA64_FALSE=
11704 if test x$TARGET = xM32R; then
11705 M32R_TRUE=
11706 M32R_FALSE='#'
11707 else
11708 M32R_TRUE='#'
11709 M32R_FALSE=
11712 if test x$TARGET = xM68K; then
11713 M68K_TRUE=
11714 M68K_FALSE='#'
11715 else
11716 M68K_TRUE='#'
11717 M68K_FALSE=
11720 if test x$TARGET = xPOWERPC; then
11721 POWERPC_TRUE=
11722 POWERPC_FALSE='#'
11723 else
11724 POWERPC_TRUE='#'
11725 POWERPC_FALSE=
11728 if test x$TARGET = xPOWERPC_AIX; then
11729 POWERPC_AIX_TRUE=
11730 POWERPC_AIX_FALSE='#'
11731 else
11732 POWERPC_AIX_TRUE='#'
11733 POWERPC_AIX_FALSE=
11736 if test x$TARGET = xPOWERPC_DARWIN; then
11737 POWERPC_DARWIN_TRUE=
11738 POWERPC_DARWIN_FALSE='#'
11739 else
11740 POWERPC_DARWIN_TRUE='#'
11741 POWERPC_DARWIN_FALSE=
11744 if test x$TARGET = xPOWERPC_FREEBSD; then
11745 POWERPC_FREEBSD_TRUE=
11746 POWERPC_FREEBSD_FALSE='#'
11747 else
11748 POWERPC_FREEBSD_TRUE='#'
11749 POWERPC_FREEBSD_FALSE=
11752 if test x$TARGET = xAARCH64; then
11753 AARCH64_TRUE=
11754 AARCH64_FALSE='#'
11755 else
11756 AARCH64_TRUE='#'
11757 AARCH64_FALSE=
11760 if test x$TARGET = xARM; then
11761 ARM_TRUE=
11762 ARM_FALSE='#'
11763 else
11764 ARM_TRUE='#'
11765 ARM_FALSE=
11768 if test x$TARGET = xAVR32; then
11769 AVR32_TRUE=
11770 AVR32_FALSE='#'
11771 else
11772 AVR32_TRUE='#'
11773 AVR32_FALSE=
11776 if test x$TARGET = xLIBFFI_CRIS; then
11777 LIBFFI_CRIS_TRUE=
11778 LIBFFI_CRIS_FALSE='#'
11779 else
11780 LIBFFI_CRIS_TRUE='#'
11781 LIBFFI_CRIS_FALSE=
11784 if test x$TARGET = xFRV; then
11785 FRV_TRUE=
11786 FRV_FALSE='#'
11787 else
11788 FRV_TRUE='#'
11789 FRV_FALSE=
11792 if test x$TARGET = xS390; then
11793 S390_TRUE=
11794 S390_FALSE='#'
11795 else
11796 S390_TRUE='#'
11797 S390_FALSE=
11800 if test x$TARGET = xX86_64; then
11801 X86_64_TRUE=
11802 X86_64_FALSE='#'
11803 else
11804 X86_64_TRUE='#'
11805 X86_64_FALSE=
11808 if test x$TARGET = xSH; then
11809 SH_TRUE=
11810 SH_FALSE='#'
11811 else
11812 SH_TRUE='#'
11813 SH_FALSE=
11816 if test x$TARGET = xSH64; then
11817 SH64_TRUE=
11818 SH64_FALSE='#'
11819 else
11820 SH64_TRUE='#'
11821 SH64_FALSE=
11824 if test x$TARGET = xPA_LINUX; then
11825 PA_LINUX_TRUE=
11826 PA_LINUX_FALSE='#'
11827 else
11828 PA_LINUX_TRUE='#'
11829 PA_LINUX_FALSE=
11832 if test x$TARGET = xPA_HPUX; then
11833 PA_HPUX_TRUE=
11834 PA_HPUX_FALSE='#'
11835 else
11836 PA_HPUX_TRUE='#'
11837 PA_HPUX_FALSE=
11840 if test x$TARGET = xPA64_HPUX; then
11841 PA64_HPUX_TRUE=
11842 PA64_HPUX_FALSE='#'
11843 else
11844 PA64_HPUX_TRUE='#'
11845 PA64_HPUX_FALSE=
11848 if test x$TARGET = xTILE; then
11849 TILE_TRUE=
11850 TILE_FALSE='#'
11851 else
11852 TILE_TRUE='#'
11853 TILE_FALSE=
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11858 $as_echo_n "checking for ANSI C header files... " >&6; }
11859 if test "${ac_cv_header_stdc+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <stdlib.h>
11865 #include <stdarg.h>
11866 #include <string.h>
11867 #include <float.h>
11870 main ()
11874 return 0;
11876 _ACEOF
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878 ac_cv_header_stdc=yes
11879 else
11880 ac_cv_header_stdc=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 if test $ac_cv_header_stdc = yes; then
11885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 #include <string.h>
11890 _ACEOF
11891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11892 $EGREP "memchr" >/dev/null 2>&1; then :
11894 else
11895 ac_cv_header_stdc=no
11897 rm -f conftest*
11901 if test $ac_cv_header_stdc = yes; then
11902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 #include <stdlib.h>
11907 _ACEOF
11908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909 $EGREP "free" >/dev/null 2>&1; then :
11911 else
11912 ac_cv_header_stdc=no
11914 rm -f conftest*
11918 if test $ac_cv_header_stdc = yes; then
11919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11920 if test "$cross_compiling" = yes; then :
11922 else
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include <ctype.h>
11926 #include <stdlib.h>
11927 #if ((' ' & 0x0FF) == 0x020)
11928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11930 #else
11931 # define ISLOWER(c) \
11932 (('a' <= (c) && (c) <= 'i') \
11933 || ('j' <= (c) && (c) <= 'r') \
11934 || ('s' <= (c) && (c) <= 'z'))
11935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11936 #endif
11938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11940 main ()
11942 int i;
11943 for (i = 0; i < 256; i++)
11944 if (XOR (islower (i), ISLOWER (i))
11945 || toupper (i) != TOUPPER (i))
11946 return 2;
11947 return 0;
11949 _ACEOF
11950 if ac_fn_c_try_run "$LINENO"; then :
11952 else
11953 ac_cv_header_stdc=no
11955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11956 conftest.$ac_objext conftest.beam conftest.$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11962 $as_echo "$ac_cv_header_stdc" >&6; }
11963 if test $ac_cv_header_stdc = yes; then
11965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11969 for ac_func in memcpy
11970 do :
11971 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11972 if test "x$ac_cv_func_memcpy" = x""yes; then :
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_MEMCPY 1
11975 _ACEOF
11978 done
11980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11981 # for constant arguments. Useless!
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11983 $as_echo_n "checking for working alloca.h... " >&6; }
11984 if test "${ac_cv_working_alloca_h+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include <alloca.h>
11991 main ()
11993 char *p = (char *) alloca (2 * sizeof (int));
11994 if (p) return 0;
11996 return 0;
11998 _ACEOF
11999 if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_working_alloca_h=yes
12001 else
12002 ac_cv_working_alloca_h=no
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12008 $as_echo "$ac_cv_working_alloca_h" >&6; }
12009 if test $ac_cv_working_alloca_h = yes; then
12011 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12016 $as_echo_n "checking for alloca... " >&6; }
12017 if test "${ac_cv_func_alloca_works+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 #ifdef __GNUC__
12023 # define alloca __builtin_alloca
12024 #else
12025 # ifdef _MSC_VER
12026 # include <malloc.h>
12027 # define alloca _alloca
12028 # else
12029 # ifdef HAVE_ALLOCA_H
12030 # include <alloca.h>
12031 # else
12032 # ifdef _AIX
12033 #pragma alloca
12034 # else
12035 # ifndef alloca /* predefined by HP cc +Olibcalls */
12036 char *alloca ();
12037 # endif
12038 # endif
12039 # endif
12040 # endif
12041 #endif
12044 main ()
12046 char *p = (char *) alloca (1);
12047 if (p) return 0;
12049 return 0;
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_func_alloca_works=yes
12054 else
12055 ac_cv_func_alloca_works=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12061 $as_echo "$ac_cv_func_alloca_works" >&6; }
12063 if test $ac_cv_func_alloca_works = yes; then
12065 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12067 else
12068 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12069 # that cause trouble. Some versions do not even contain alloca or
12070 # contain a buggy version. If you still want to use their alloca,
12071 # use ar to extract alloca.o from them instead of compiling alloca.c.
12073 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12075 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12079 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12080 if test "${ac_cv_os_cray+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #if defined CRAY && ! defined CRAY2
12086 webecray
12087 #else
12088 wenotbecray
12089 #endif
12091 _ACEOF
12092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12093 $EGREP "webecray" >/dev/null 2>&1; then :
12094 ac_cv_os_cray=yes
12095 else
12096 ac_cv_os_cray=no
12098 rm -f conftest*
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12102 $as_echo "$ac_cv_os_cray" >&6; }
12103 if test $ac_cv_os_cray = yes; then
12104 for ac_func in _getb67 GETB67 getb67; do
12105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12107 eval as_val=\$$as_ac_var
12108 if test "x$as_val" = x""yes; then :
12110 cat >>confdefs.h <<_ACEOF
12111 #define CRAY_STACKSEG_END $ac_func
12112 _ACEOF
12114 break
12117 done
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12121 $as_echo_n "checking stack direction for C alloca... " >&6; }
12122 if test "${ac_cv_c_stack_direction+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 if test "$cross_compiling" = yes; then :
12126 ac_cv_c_stack_direction=0
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 $ac_includes_default
12132 find_stack_direction ()
12134 static char *addr = 0;
12135 auto char dummy;
12136 if (addr == 0)
12138 addr = &dummy;
12139 return find_stack_direction ();
12141 else
12142 return (&dummy > addr) ? 1 : -1;
12146 main ()
12148 return find_stack_direction () < 0;
12150 _ACEOF
12151 if ac_fn_c_try_run "$LINENO"; then :
12152 ac_cv_c_stack_direction=1
12153 else
12154 ac_cv_c_stack_direction=-1
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12157 conftest.$ac_objext conftest.beam conftest.$ac_ext
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12162 $as_echo "$ac_cv_c_stack_direction" >&6; }
12163 cat >>confdefs.h <<_ACEOF
12164 #define STACK_DIRECTION $ac_cv_c_stack_direction
12165 _ACEOF
12171 # The cast to long int works around a bug in the HP C Compiler
12172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12174 # This bug is HP SR number 8606223364.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12176 $as_echo_n "checking size of double... " >&6; }
12177 if test "${ac_cv_sizeof_double+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12182 else
12183 if test "$ac_cv_type_double" = yes; then
12184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12186 { as_fn_set_status 77
12187 as_fn_error "cannot compute sizeof (double)
12188 See \`config.log' for more details." "$LINENO" 5; }; }
12189 else
12190 ac_cv_sizeof_double=0
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12196 $as_echo "$ac_cv_sizeof_double" >&6; }
12200 cat >>confdefs.h <<_ACEOF
12201 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12202 _ACEOF
12205 # The cast to long int works around a bug in the HP C Compiler
12206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12208 # This bug is HP SR number 8606223364.
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12210 $as_echo_n "checking size of long double... " >&6; }
12211 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12216 else
12217 if test "$ac_cv_type_long_double" = yes; then
12218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12220 { as_fn_set_status 77
12221 as_fn_error "cannot compute sizeof (long double)
12222 See \`config.log' for more details." "$LINENO" 5; }; }
12223 else
12224 ac_cv_sizeof_long_double=0
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12230 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12234 cat >>confdefs.h <<_ACEOF
12235 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12236 _ACEOF
12240 # Also AC_SUBST this variable for ffi.h.
12241 if test -z "$HAVE_LONG_DOUBLE"; then
12242 HAVE_LONG_DOUBLE=0
12243 if test $ac_cv_sizeof_long_double != 0; then
12244 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
12246 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
12248 HAVE_LONG_DOUBLE=1
12249 else
12250 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12251 HAVE_LONG_DOUBLE=1
12253 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12263 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12264 if test "${ac_cv_c_bigendian+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 ac_cv_c_bigendian=unknown
12268 # See if we're dealing with a universal compiler.
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 #ifndef __APPLE_CC__
12272 not a universal capable compiler
12273 #endif
12274 typedef int dummy;
12276 _ACEOF
12277 if ac_fn_c_try_compile "$LINENO"; then :
12279 # Check for potential -arch flags. It is not universal unless
12280 # there are at least two -arch flags with different values.
12281 ac_arch=
12282 ac_prev=
12283 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12284 if test -n "$ac_prev"; then
12285 case $ac_word in
12286 i?86 | x86_64 | ppc | ppc64)
12287 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12288 ac_arch=$ac_word
12289 else
12290 ac_cv_c_bigendian=universal
12291 break
12294 esac
12295 ac_prev=
12296 elif test "x$ac_word" = "x-arch"; then
12297 ac_prev=arch
12299 done
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 if test $ac_cv_c_bigendian = unknown; then
12303 # See if sys/param.h defines the BYTE_ORDER macro.
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306 #include <sys/types.h>
12307 #include <sys/param.h>
12310 main ()
12312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12313 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12314 && LITTLE_ENDIAN)
12315 bogus endian macros
12316 #endif
12319 return 0;
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 # It does; now see whether it defined to BIG_ENDIAN or not.
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #include <sys/types.h>
12327 #include <sys/param.h>
12330 main ()
12332 #if BYTE_ORDER != BIG_ENDIAN
12333 not big endian
12334 #endif
12337 return 0;
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 ac_cv_c_bigendian=yes
12342 else
12343 ac_cv_c_bigendian=no
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 if test $ac_cv_c_bigendian = unknown; then
12350 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 #include <limits.h>
12356 main ()
12358 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12359 bogus endian macros
12360 #endif
12363 return 0;
12365 _ACEOF
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 # It does; now see whether it defined to _BIG_ENDIAN or not.
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370 #include <limits.h>
12373 main ()
12375 #ifndef _BIG_ENDIAN
12376 not big endian
12377 #endif
12380 return 0;
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 ac_cv_c_bigendian=yes
12385 else
12386 ac_cv_c_bigendian=no
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 if test $ac_cv_c_bigendian = unknown; then
12393 # Compile a test program.
12394 if test "$cross_compiling" = yes; then :
12395 # Try to guess by grepping values from an object file.
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 short int ascii_mm[] =
12399 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12400 short int ascii_ii[] =
12401 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12402 int use_ascii (int i) {
12403 return ascii_mm[i] + ascii_ii[i];
12405 short int ebcdic_ii[] =
12406 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12407 short int ebcdic_mm[] =
12408 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12409 int use_ebcdic (int i) {
12410 return ebcdic_mm[i] + ebcdic_ii[i];
12412 extern int foo;
12415 main ()
12417 return use_ascii (foo) == use_ebcdic (foo);
12419 return 0;
12421 _ACEOF
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12424 ac_cv_c_bigendian=yes
12426 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12427 if test "$ac_cv_c_bigendian" = unknown; then
12428 ac_cv_c_bigendian=no
12429 else
12430 # finding both strings is unlikely to happen, but who knows?
12431 ac_cv_c_bigendian=unknown
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439 $ac_includes_default
12441 main ()
12444 /* Are we little or big endian? From Harbison&Steele. */
12445 union
12447 long int l;
12448 char c[sizeof (long int)];
12449 } u;
12450 u.l = 1;
12451 return u.c[sizeof (long int) - 1] == 1;
12454 return 0;
12456 _ACEOF
12457 if ac_fn_c_try_run "$LINENO"; then :
12458 ac_cv_c_bigendian=no
12459 else
12460 ac_cv_c_bigendian=yes
12462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12463 conftest.$ac_objext conftest.beam conftest.$ac_ext
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12469 $as_echo "$ac_cv_c_bigendian" >&6; }
12470 case $ac_cv_c_bigendian in #(
12471 yes)
12472 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12473 ;; #(
12475 ;; #(
12476 universal)
12478 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12480 ;; #(
12482 as_fn_error "unknown endianness
12483 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12484 esac
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12488 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12489 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12493 gcc_cv_as_cfi_pseudo_op=unknown
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12496 asm (".cfi_startproc\n\t.cfi_endproc");
12498 main ()
12502 return 0;
12504 _ACEOF
12505 if ac_fn_c_try_compile "$LINENO"; then :
12506 gcc_cv_as_cfi_pseudo_op=yes
12507 else
12508 gcc_cv_as_cfi_pseudo_op=no
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12514 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12515 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12517 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12522 if test x$TARGET = xSPARC; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12524 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12525 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12529 save_CFLAGS="$CFLAGS"
12530 save_LDFLAGS="$LDFLAGS"
12531 CFLAGS="$CFLAGS -fpic"
12532 LDFLAGS="$LDFLAGS -shared"
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12537 main ()
12541 return 0;
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 libffi_cv_as_sparc_ua_pcrel=yes
12546 else
12547 libffi_cv_as_sparc_ua_pcrel=no
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 CFLAGS="$save_CFLAGS"
12552 LDFLAGS="$save_LDFLAGS"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12555 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12556 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12558 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12563 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12564 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12568 libffi_cv_as_register_pseudo_op=unknown
12569 # Check if we have .register
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572 asm (".register %g2, #scratch");
12574 main ()
12578 return 0;
12580 _ACEOF
12581 if ac_fn_c_try_compile "$LINENO"; then :
12582 libffi_cv_as_register_pseudo_op=yes
12583 else
12584 libffi_cv_as_register_pseudo_op=no
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12590 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12591 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12593 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12598 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12600 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12601 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12605 libffi_cv_as_x86_pcrel=yes
12606 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12607 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12608 libffi_cv_as_x86_pcrel=no
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12613 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12614 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12616 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12621 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12622 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12626 libffi_cv_as_ascii_pseudo_op=unknown
12627 # Check if we have .ascii
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 asm (".ascii \\"string\\"");
12632 main ()
12636 return 0;
12638 _ACEOF
12639 if ac_fn_c_try_compile "$LINENO"; then :
12640 libffi_cv_as_ascii_pseudo_op=yes
12641 else
12642 libffi_cv_as_ascii_pseudo_op=no
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12648 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12649 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12651 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12656 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12657 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12661 libffi_cv_as_string_pseudo_op=unknown
12662 # Check if we have .string
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 asm (".string \\"string\\"");
12667 main ()
12671 return 0;
12673 _ACEOF
12674 if ac_fn_c_try_compile "$LINENO"; then :
12675 libffi_cv_as_string_pseudo_op=yes
12676 else
12677 libffi_cv_as_string_pseudo_op=no
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12683 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12684 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12686 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12691 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12692 # Check whether --enable-pax_emutramp was given.
12693 if test "${enable_pax_emutramp+set}" = set; then :
12694 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12696 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12702 FFI_EXEC_TRAMPOLINE_TABLE=0
12703 case "$target" in
12704 *arm*-apple-darwin*)
12705 FFI_EXEC_TRAMPOLINE_TABLE=1
12707 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12710 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
12712 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12715 esac
12716 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12717 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12718 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12719 else
12720 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12721 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12726 if test x$TARGET = xX86_64; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12728 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12729 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12733 libffi_cv_as_x86_64_unwind_section_type=yes
12734 echo '.section .eh_frame,"a",@unwind' > conftest.s
12735 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12736 libffi_cv_as_x86_64_unwind_section_type=no
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12741 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12742 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12744 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12749 if test "x$GCC" = "xyes"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12751 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12752 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12756 libffi_cv_ro_eh_frame=no
12757 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12758 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12759 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12760 libffi_cv_ro_eh_frame=yes
12761 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12762 | grep -v '#write' > /dev/null; then
12763 libffi_cv_ro_eh_frame=yes
12766 rm -f conftest.*
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12770 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12771 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12773 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12776 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12778 else
12780 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12785 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12786 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12790 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
12791 libffi_cv_hidden_visibility_attribute=no
12792 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12797 test $ac_status = 0; }; }; then
12798 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12799 libffi_cv_hidden_visibility_attribute=yes
12802 rm -f conftest.*
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12806 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12807 if test $libffi_cv_hidden_visibility_attribute = yes; then
12809 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12821 # Check whether --enable-debug was given.
12822 if test "${enable_debug+set}" = set; then :
12823 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12825 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12830 if test "$enable_debug" = "yes"; then
12831 FFI_DEBUG_TRUE=
12832 FFI_DEBUG_FALSE='#'
12833 else
12834 FFI_DEBUG_TRUE='#'
12835 FFI_DEBUG_FALSE=
12839 # Check whether --enable-structs was given.
12840 if test "${enable_structs+set}" = set; then :
12841 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12843 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12849 # Check whether --enable-raw-api was given.
12850 if test "${enable_raw_api+set}" = set; then :
12851 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12853 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12859 # Check whether --enable-purify-safety was given.
12860 if test "${enable_purify_safety+set}" = set; then :
12861 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12863 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12869 if test -n "$with_cross_host" &&
12870 test x"$with_cross_host" != x"no"; then
12871 toolexecdir='$(exec_prefix)/$(target_alias)'
12872 toolexeclibdir='$(toolexecdir)/lib'
12873 else
12874 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12875 toolexeclibdir='$(libdir)'
12877 multi_os_directory=`$CC -print-multi-os-directory`
12878 case $multi_os_directory in
12879 .) ;; # Avoid trailing /.
12880 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12881 esac
12885 if test "${multilib}" = "yes"; then
12886 multilib_arg="--enable-multilib"
12887 else
12888 multilib_arg=
12891 ac_config_commands="$ac_config_commands include"
12893 ac_config_commands="$ac_config_commands src"
12896 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12899 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12902 cat >confcache <<\_ACEOF
12903 # This file is a shell script that caches the results of configure
12904 # tests run on this system so they can be shared between configure
12905 # scripts and configure runs, see configure's option --config-cache.
12906 # It is not useful on other systems. If it contains results you don't
12907 # want to keep, you may remove or edit it.
12909 # config.status only pays attention to the cache file if you give it
12910 # the --recheck option to rerun configure.
12912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12914 # following values.
12916 _ACEOF
12918 # The following way of writing the cache mishandles newlines in values,
12919 # but we know of no workaround that is simple, portable, and efficient.
12920 # So, we kill variables containing newlines.
12921 # Ultrix sh set writes to stderr and can't be redirected directly,
12922 # and sets the high bit in the cache file unless we assign to the vars.
12924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12925 eval ac_val=\$$ac_var
12926 case $ac_val in #(
12927 *${as_nl}*)
12928 case $ac_var in #(
12929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12931 esac
12932 case $ac_var in #(
12933 _ | IFS | as_nl) ;; #(
12934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12935 *) { eval $ac_var=; unset $ac_var;} ;;
12936 esac ;;
12937 esac
12938 done
12940 (set) 2>&1 |
12941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12942 *${as_nl}ac_space=\ *)
12943 # `set' does not quote correctly, so add quotes: double-quote
12944 # substitution turns \\\\ into \\, and sed turns \\ into \.
12945 sed -n \
12946 "s/'/'\\\\''/g;
12947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12948 ;; #(
12950 # `set' quotes correctly as required by POSIX, so do not add quotes.
12951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12953 esac |
12954 sort
12956 sed '
12957 /^ac_cv_env_/b end
12958 t clear
12959 :clear
12960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12961 t end
12962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12963 :end' >>confcache
12964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12965 if test -w "$cache_file"; then
12966 test "x$cache_file" != "x/dev/null" &&
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12968 $as_echo "$as_me: updating cache $cache_file" >&6;}
12969 cat confcache >$cache_file
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12972 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12975 rm -f confcache
12977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12978 # Let make expand exec_prefix.
12979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12981 DEFS=-DHAVE_CONFIG_H
12983 ac_libobjs=
12984 ac_ltlibobjs=
12985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12986 # 1. Remove the extension, and $U if already installed.
12987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12990 # will be set to the directory where LIBOBJS objects are built.
12991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12993 done
12994 LIBOBJS=$ac_libobjs
12996 LTLIBOBJS=$ac_ltlibobjs
12999 if test -n "$EXEEXT"; then
13000 am__EXEEXT_TRUE=
13001 am__EXEEXT_FALSE='#'
13002 else
13003 am__EXEEXT_TRUE='#'
13004 am__EXEEXT_FALSE=
13007 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13008 as_fn_error "conditional \"BUILD_INFO\" was never defined.
13009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13011 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13012 as_fn_error "conditional \"GENINSRC\" was never defined.
13013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13016 as_fn_error "conditional \"AMDEP\" was never defined.
13017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13019 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13020 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13023 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13024 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13027 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13028 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13031 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13032 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
13033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13035 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13036 as_fn_error "conditional \"MIPS\" was never defined.
13037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13039 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13040 as_fn_error "conditional \"BFIN\" was never defined.
13041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13044 as_fn_error "conditional \"SPARC\" was never defined.
13045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13047 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13048 as_fn_error "conditional \"X86\" was never defined.
13049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13051 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13052 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
13053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13055 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13056 as_fn_error "conditional \"X86_WIN32\" was never defined.
13057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13059 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13060 as_fn_error "conditional \"X86_WIN64\" was never defined.
13061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13063 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13064 as_fn_error "conditional \"X86_DARWIN\" was never defined.
13065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13067 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13068 as_fn_error "conditional \"ALPHA\" was never defined.
13069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13071 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13072 as_fn_error "conditional \"IA64\" was never defined.
13073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13075 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13076 as_fn_error "conditional \"M32R\" was never defined.
13077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13079 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13080 as_fn_error "conditional \"M68K\" was never defined.
13081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13083 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13084 as_fn_error "conditional \"POWERPC\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13087 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13088 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
13089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13091 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13092 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
13093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13095 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13096 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
13097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13099 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
13100 as_fn_error "conditional \"AARCH64\" was never defined.
13101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13103 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13104 as_fn_error "conditional \"ARM\" was never defined.
13105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13108 as_fn_error "conditional \"AVR32\" was never defined.
13109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13112 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
13113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13116 as_fn_error "conditional \"FRV\" was never defined.
13117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13120 as_fn_error "conditional \"S390\" was never defined.
13121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13124 as_fn_error "conditional \"X86_64\" was never defined.
13125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13128 as_fn_error "conditional \"SH\" was never defined.
13129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13131 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13132 as_fn_error "conditional \"SH64\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13135 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13136 as_fn_error "conditional \"PA_LINUX\" was never defined.
13137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13139 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13140 as_fn_error "conditional \"PA_HPUX\" was never defined.
13141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13143 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13144 as_fn_error "conditional \"PA64_HPUX\" was never defined.
13145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13147 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13148 as_fn_error "conditional \"TILE\" was never defined.
13149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13152 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13153 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13156 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13157 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13161 : ${CONFIG_STATUS=./config.status}
13162 ac_write_fail=0
13163 ac_clean_files_save=$ac_clean_files
13164 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13166 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13167 as_write_fail=0
13168 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13169 #! $SHELL
13170 # Generated by $as_me.
13171 # Run this file to recreate the current configuration.
13172 # Compiler output produced by configure, useful for debugging
13173 # configure, is in config.log if it exists.
13175 debug=false
13176 ac_cs_recheck=false
13177 ac_cs_silent=false
13179 SHELL=\${CONFIG_SHELL-$SHELL}
13180 export SHELL
13181 _ASEOF
13182 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13183 ## -------------------- ##
13184 ## M4sh Initialization. ##
13185 ## -------------------- ##
13187 # Be more Bourne compatible
13188 DUALCASE=1; export DUALCASE # for MKS sh
13189 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13190 emulate sh
13191 NULLCMD=:
13192 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13193 # is contrary to our usage. Disable this feature.
13194 alias -g '${1+"$@"}'='"$@"'
13195 setopt NO_GLOB_SUBST
13196 else
13197 case `(set -o) 2>/dev/null` in #(
13198 *posix*) :
13199 set -o posix ;; #(
13200 *) :
13202 esac
13206 as_nl='
13208 export as_nl
13209 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13210 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13213 # Prefer a ksh shell builtin over an external printf program on Solaris,
13214 # but without wasting forks for bash or zsh.
13215 if test -z "$BASH_VERSION$ZSH_VERSION" \
13216 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13217 as_echo='print -r --'
13218 as_echo_n='print -rn --'
13219 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13220 as_echo='printf %s\n'
13221 as_echo_n='printf %s'
13222 else
13223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13225 as_echo_n='/usr/ucb/echo -n'
13226 else
13227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13228 as_echo_n_body='eval
13229 arg=$1;
13230 case $arg in #(
13231 *"$as_nl"*)
13232 expr "X$arg" : "X\\(.*\\)$as_nl";
13233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13234 esac;
13235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13237 export as_echo_n_body
13238 as_echo_n='sh -c $as_echo_n_body as_echo'
13240 export as_echo_body
13241 as_echo='sh -c $as_echo_body as_echo'
13244 # The user is always right.
13245 if test "${PATH_SEPARATOR+set}" != set; then
13246 PATH_SEPARATOR=:
13247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13249 PATH_SEPARATOR=';'
13254 # IFS
13255 # We need space, tab and new line, in precisely that order. Quoting is
13256 # there to prevent editors from complaining about space-tab.
13257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13258 # splitting by setting IFS to empty value.)
13259 IFS=" "" $as_nl"
13261 # Find who we are. Look in the path if we contain no directory separator.
13262 case $0 in #((
13263 *[\\/]* ) as_myself=$0 ;;
13264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13267 IFS=$as_save_IFS
13268 test -z "$as_dir" && as_dir=.
13269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13270 done
13271 IFS=$as_save_IFS
13274 esac
13275 # We did not find ourselves, most probably we were run as `sh COMMAND'
13276 # in which case we are not to be found in the path.
13277 if test "x$as_myself" = x; then
13278 as_myself=$0
13280 if test ! -f "$as_myself"; then
13281 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13282 exit 1
13285 # Unset variables that we do not need and which cause bugs (e.g. in
13286 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13287 # suppresses any "Segmentation fault" message there. '((' could
13288 # trigger a bug in pdksh 5.2.14.
13289 for as_var in BASH_ENV ENV MAIL MAILPATH
13290 do eval test x\${$as_var+set} = xset \
13291 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13292 done
13293 PS1='$ '
13294 PS2='> '
13295 PS4='+ '
13297 # NLS nuisances.
13298 LC_ALL=C
13299 export LC_ALL
13300 LANGUAGE=C
13301 export LANGUAGE
13303 # CDPATH.
13304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13307 # as_fn_error ERROR [LINENO LOG_FD]
13308 # ---------------------------------
13309 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13310 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13311 # script with status $?, using 1 if that was 0.
13312 as_fn_error ()
13314 as_status=$?; test $as_status -eq 0 && as_status=1
13315 if test "$3"; then
13316 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13317 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13319 $as_echo "$as_me: error: $1" >&2
13320 as_fn_exit $as_status
13321 } # as_fn_error
13324 # as_fn_set_status STATUS
13325 # -----------------------
13326 # Set $? to STATUS, without forking.
13327 as_fn_set_status ()
13329 return $1
13330 } # as_fn_set_status
13332 # as_fn_exit STATUS
13333 # -----------------
13334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13335 as_fn_exit ()
13337 set +e
13338 as_fn_set_status $1
13339 exit $1
13340 } # as_fn_exit
13342 # as_fn_unset VAR
13343 # ---------------
13344 # Portably unset VAR.
13345 as_fn_unset ()
13347 { eval $1=; unset $1;}
13349 as_unset=as_fn_unset
13350 # as_fn_append VAR VALUE
13351 # ----------------------
13352 # Append the text in VALUE to the end of the definition contained in VAR. Take
13353 # advantage of any shell optimizations that allow amortized linear growth over
13354 # repeated appends, instead of the typical quadratic growth present in naive
13355 # implementations.
13356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13357 eval 'as_fn_append ()
13359 eval $1+=\$2
13361 else
13362 as_fn_append ()
13364 eval $1=\$$1\$2
13366 fi # as_fn_append
13368 # as_fn_arith ARG...
13369 # ------------------
13370 # Perform arithmetic evaluation on the ARGs, and store the result in the
13371 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13372 # must be portable across $(()) and expr.
13373 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13374 eval 'as_fn_arith ()
13376 as_val=$(( $* ))
13378 else
13379 as_fn_arith ()
13381 as_val=`expr "$@" || test $? -eq 1`
13383 fi # as_fn_arith
13386 if expr a : '\(a\)' >/dev/null 2>&1 &&
13387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13388 as_expr=expr
13389 else
13390 as_expr=false
13393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13394 as_basename=basename
13395 else
13396 as_basename=false
13399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13400 as_dirname=dirname
13401 else
13402 as_dirname=false
13405 as_me=`$as_basename -- "$0" ||
13406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13407 X"$0" : 'X\(//\)$' \| \
13408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13409 $as_echo X/"$0" |
13410 sed '/^.*\/\([^/][^/]*\)\/*$/{
13411 s//\1/
13414 /^X\/\(\/\/\)$/{
13415 s//\1/
13418 /^X\/\(\/\).*/{
13419 s//\1/
13422 s/.*/./; q'`
13424 # Avoid depending upon Character Ranges.
13425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13428 as_cr_digits='0123456789'
13429 as_cr_alnum=$as_cr_Letters$as_cr_digits
13431 ECHO_C= ECHO_N= ECHO_T=
13432 case `echo -n x` in #(((((
13433 -n*)
13434 case `echo 'xy\c'` in
13435 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13436 xy) ECHO_C='\c';;
13437 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13438 ECHO_T=' ';;
13439 esac;;
13441 ECHO_N='-n';;
13442 esac
13444 rm -f conf$$ conf$$.exe conf$$.file
13445 if test -d conf$$.dir; then
13446 rm -f conf$$.dir/conf$$.file
13447 else
13448 rm -f conf$$.dir
13449 mkdir conf$$.dir 2>/dev/null
13451 if (echo >conf$$.file) 2>/dev/null; then
13452 if ln -s conf$$.file conf$$ 2>/dev/null; then
13453 as_ln_s='ln -s'
13454 # ... but there are two gotchas:
13455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13457 # In both cases, we have to default to `cp -p'.
13458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13459 as_ln_s='cp -p'
13460 elif ln conf$$.file conf$$ 2>/dev/null; then
13461 as_ln_s=ln
13462 else
13463 as_ln_s='cp -p'
13465 else
13466 as_ln_s='cp -p'
13468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13469 rmdir conf$$.dir 2>/dev/null
13472 # as_fn_mkdir_p
13473 # -------------
13474 # Create "$as_dir" as a directory, including parents if necessary.
13475 as_fn_mkdir_p ()
13478 case $as_dir in #(
13479 -*) as_dir=./$as_dir;;
13480 esac
13481 test -d "$as_dir" || eval $as_mkdir_p || {
13482 as_dirs=
13483 while :; do
13484 case $as_dir in #(
13485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13486 *) as_qdir=$as_dir;;
13487 esac
13488 as_dirs="'$as_qdir' $as_dirs"
13489 as_dir=`$as_dirname -- "$as_dir" ||
13490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13491 X"$as_dir" : 'X\(//\)[^/]' \| \
13492 X"$as_dir" : 'X\(//\)$' \| \
13493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13494 $as_echo X"$as_dir" |
13495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13496 s//\1/
13499 /^X\(\/\/\)[^/].*/{
13500 s//\1/
13503 /^X\(\/\/\)$/{
13504 s//\1/
13507 /^X\(\/\).*/{
13508 s//\1/
13511 s/.*/./; q'`
13512 test -d "$as_dir" && break
13513 done
13514 test -z "$as_dirs" || eval "mkdir $as_dirs"
13515 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13518 } # as_fn_mkdir_p
13519 if mkdir -p . 2>/dev/null; then
13520 as_mkdir_p='mkdir -p "$as_dir"'
13521 else
13522 test -d ./-p && rmdir ./-p
13523 as_mkdir_p=false
13526 if test -x / >/dev/null 2>&1; then
13527 as_test_x='test -x'
13528 else
13529 if ls -dL / >/dev/null 2>&1; then
13530 as_ls_L_option=L
13531 else
13532 as_ls_L_option=
13534 as_test_x='
13535 eval sh -c '\''
13536 if test -d "$1"; then
13537 test -d "$1/.";
13538 else
13539 case $1 in #(
13540 -*)set "./$1";;
13541 esac;
13542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13543 ???[sx]*):;;*)false;;esac;fi
13544 '\'' sh
13547 as_executable_p=$as_test_x
13549 # Sed expression to map a string onto a valid CPP name.
13550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13552 # Sed expression to map a string onto a valid variable name.
13553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13556 exec 6>&1
13557 ## ----------------------------------- ##
13558 ## Main body of $CONFIG_STATUS script. ##
13559 ## ----------------------------------- ##
13560 _ASEOF
13561 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13564 # Save the log message, to keep $0 and so on meaningful, and to
13565 # report actual input values of CONFIG_FILES etc. instead of their
13566 # values after options handling.
13567 ac_log="
13568 This file was extended by libffi $as_me 3.0.11, which was
13569 generated by GNU Autoconf 2.64. Invocation command line was
13571 CONFIG_FILES = $CONFIG_FILES
13572 CONFIG_HEADERS = $CONFIG_HEADERS
13573 CONFIG_LINKS = $CONFIG_LINKS
13574 CONFIG_COMMANDS = $CONFIG_COMMANDS
13575 $ $0 $@
13577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13580 _ACEOF
13582 case $ac_config_files in *"
13583 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13584 esac
13586 case $ac_config_headers in *"
13587 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13588 esac
13591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13592 # Files that config.status was made for.
13593 config_files="$ac_config_files"
13594 config_headers="$ac_config_headers"
13595 config_links="$ac_config_links"
13596 config_commands="$ac_config_commands"
13598 _ACEOF
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 ac_cs_usage="\
13602 \`$as_me' instantiates files and other configuration actions
13603 from templates according to the current configuration. Unless the files
13604 and actions are specified as TAGs, all are instantiated by default.
13606 Usage: $0 [OPTION]... [TAG]...
13608 -h, --help print this help, then exit
13609 -V, --version print version number and configuration settings, then exit
13610 -q, --quiet, --silent
13611 do not print progress messages
13612 -d, --debug don't remove temporary files
13613 --recheck update $as_me by reconfiguring in the same conditions
13614 --file=FILE[:TEMPLATE]
13615 instantiate the configuration file FILE
13616 --header=FILE[:TEMPLATE]
13617 instantiate the configuration header FILE
13619 Configuration files:
13620 $config_files
13622 Configuration headers:
13623 $config_headers
13625 Configuration links:
13626 $config_links
13628 Configuration commands:
13629 $config_commands
13631 Report bugs to <http://gcc.gnu.org/bugs.html>."
13633 _ACEOF
13634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13635 ac_cs_version="\\
13636 libffi config.status 3.0.11
13637 configured by $0, generated by GNU Autoconf 2.64,
13638 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13640 Copyright (C) 2009 Free Software Foundation, Inc.
13641 This config.status script is free software; the Free Software Foundation
13642 gives unlimited permission to copy, distribute and modify it."
13644 ac_pwd='$ac_pwd'
13645 srcdir='$srcdir'
13646 INSTALL='$INSTALL'
13647 MKDIR_P='$MKDIR_P'
13648 AWK='$AWK'
13649 test -n "\$AWK" || AWK=awk
13650 _ACEOF
13652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653 # The default lists apply if the user does not specify any file.
13654 ac_need_defaults=:
13655 while test $# != 0
13657 case $1 in
13658 --*=*)
13659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13661 ac_shift=:
13664 ac_option=$1
13665 ac_optarg=$2
13666 ac_shift=shift
13668 esac
13670 case $ac_option in
13671 # Handling of the options.
13672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13673 ac_cs_recheck=: ;;
13674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13675 $as_echo "$ac_cs_version"; exit ;;
13676 --debug | --debu | --deb | --de | --d | -d )
13677 debug=: ;;
13678 --file | --fil | --fi | --f )
13679 $ac_shift
13680 case $ac_optarg in
13681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13682 esac
13683 as_fn_append CONFIG_FILES " '$ac_optarg'"
13684 ac_need_defaults=false;;
13685 --header | --heade | --head | --hea )
13686 $ac_shift
13687 case $ac_optarg in
13688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13689 esac
13690 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13691 ac_need_defaults=false;;
13692 --he | --h)
13693 # Conflict between --help and --header
13694 as_fn_error "ambiguous option: \`$1'
13695 Try \`$0 --help' for more information.";;
13696 --help | --hel | -h )
13697 $as_echo "$ac_cs_usage"; exit ;;
13698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13699 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13700 ac_cs_silent=: ;;
13702 # This is an error.
13703 -*) as_fn_error "unrecognized option: \`$1'
13704 Try \`$0 --help' for more information." ;;
13706 *) as_fn_append ac_config_targets " $1"
13707 ac_need_defaults=false ;;
13709 esac
13710 shift
13711 done
13713 ac_configure_extra_args=
13715 if $ac_cs_silent; then
13716 exec 6>/dev/null
13717 ac_configure_extra_args="$ac_configure_extra_args --silent"
13720 _ACEOF
13721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13722 if \$ac_cs_recheck; then
13723 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13724 shift
13725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13726 CONFIG_SHELL='$SHELL'
13727 export CONFIG_SHELL
13728 exec "\$@"
13731 _ACEOF
13732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13733 exec 5>>config.log
13735 echo
13736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13737 ## Running $as_me. ##
13738 _ASBOX
13739 $as_echo "$ac_log"
13740 } >&5
13742 _ACEOF
13743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745 # INIT-COMMANDS
13748 srcdir="$srcdir"
13749 host="$host"
13750 target="$target"
13751 with_multisubdir="$with_multisubdir"
13752 with_multisrctop="$with_multisrctop"
13753 with_target_subdir="$with_target_subdir"
13754 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13755 multi_basedir="$multi_basedir"
13756 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13757 CC="$CC"
13758 CXX="$CXX"
13759 GFORTRAN="$GFORTRAN"
13760 GCJ="$GCJ"
13761 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13764 # The HP-UX ksh and POSIX shell print the target directory to stdout
13765 # if CDPATH is set.
13766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13768 sed_quote_subst='$sed_quote_subst'
13769 double_quote_subst='$double_quote_subst'
13770 delay_variable_subst='$delay_variable_subst'
13771 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13772 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13773 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13774 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13775 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13776 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13777 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13778 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13779 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13780 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13781 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13782 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13783 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13784 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13785 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13786 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13787 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13788 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13789 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13790 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13791 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13792 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13793 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13794 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13795 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13796 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13797 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13798 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13799 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13800 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13801 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13802 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13803 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13804 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13805 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13806 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13807 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13808 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13809 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13810 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13811 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13812 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13813 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13814 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13815 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13816 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13817 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13818 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13819 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"`'
13820 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13821 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13822 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13823 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13824 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13825 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13826 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13827 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13828 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13829 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13830 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13831 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13832 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13833 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13834 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13835 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13836 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13837 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13838 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13839 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13840 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13841 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13842 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13843 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13844 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13845 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13846 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13847 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13848 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13849 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13850 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13851 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13852 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13853 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13854 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13855 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13856 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13857 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13858 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13859 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13860 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13861 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13862 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13863 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13864 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13865 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13866 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13867 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13868 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13869 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13870 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13871 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13872 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13873 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13874 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13875 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13876 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13877 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13878 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13879 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13880 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13881 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13882 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13883 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13884 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13885 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13886 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13887 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13888 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13889 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13890 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13892 LTCC='$LTCC'
13893 LTCFLAGS='$LTCFLAGS'
13894 compiler='$compiler_DEFAULT'
13896 # A function that is used when there is no print builtin or printf.
13897 func_fallback_echo ()
13899 eval 'cat <<_LTECHO_EOF
13901 _LTECHO_EOF'
13904 # Quote evaled strings.
13905 for var in SHELL \
13906 ECHO \
13907 SED \
13908 GREP \
13909 EGREP \
13910 FGREP \
13911 LD \
13912 NM \
13913 LN_S \
13914 lt_SP2NL \
13915 lt_NL2SP \
13916 reload_flag \
13917 OBJDUMP \
13918 deplibs_check_method \
13919 file_magic_cmd \
13920 AR \
13921 AR_FLAGS \
13922 STRIP \
13923 RANLIB \
13924 CC \
13925 CFLAGS \
13926 compiler \
13927 lt_cv_sys_global_symbol_pipe \
13928 lt_cv_sys_global_symbol_to_cdecl \
13929 lt_cv_sys_global_symbol_to_c_name_address \
13930 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13931 lt_prog_compiler_no_builtin_flag \
13932 lt_prog_compiler_wl \
13933 lt_prog_compiler_pic \
13934 lt_prog_compiler_static \
13935 lt_cv_prog_compiler_c_o \
13936 need_locks \
13937 DSYMUTIL \
13938 NMEDIT \
13939 LIPO \
13940 OTOOL \
13941 OTOOL64 \
13942 shrext_cmds \
13943 export_dynamic_flag_spec \
13944 whole_archive_flag_spec \
13945 compiler_needs_object \
13946 with_gnu_ld \
13947 allow_undefined_flag \
13948 no_undefined_flag \
13949 hardcode_libdir_flag_spec \
13950 hardcode_libdir_flag_spec_ld \
13951 hardcode_libdir_separator \
13952 fix_srcfile_path \
13953 exclude_expsyms \
13954 include_expsyms \
13955 file_list_spec \
13956 variables_saved_for_relink \
13957 libname_spec \
13958 library_names_spec \
13959 soname_spec \
13960 install_override_mode \
13961 finish_eval \
13962 old_striplib \
13963 striplib; do
13964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13965 *[\\\\\\\`\\"\\\$]*)
13966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13971 esac
13972 done
13974 # Double-quote double-evaled strings.
13975 for var in reload_cmds \
13976 old_postinstall_cmds \
13977 old_postuninstall_cmds \
13978 old_archive_cmds \
13979 extract_expsyms_cmds \
13980 old_archive_from_new_cmds \
13981 old_archive_from_expsyms_cmds \
13982 archive_cmds \
13983 archive_expsym_cmds \
13984 module_cmds \
13985 module_expsym_cmds \
13986 export_symbols_cmds \
13987 prelink_cmds \
13988 postinstall_cmds \
13989 postuninstall_cmds \
13990 finish_cmds \
13991 sys_lib_search_path_spec \
13992 sys_lib_dlsearch_path_spec; do
13993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13994 *[\\\\\\\`\\"\\\$]*)
13995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14000 esac
14001 done
14003 ac_aux_dir='$ac_aux_dir'
14004 xsi_shell='$xsi_shell'
14005 lt_shell_append='$lt_shell_append'
14007 # See if we are running on zsh, and set the options which allow our
14008 # commands through without removal of \ escapes INIT.
14009 if test -n "\${ZSH_VERSION+set}" ; then
14010 setopt NO_GLOB_SUBST
14014 PACKAGE='$PACKAGE'
14015 VERSION='$VERSION'
14016 TIMESTAMP='$TIMESTAMP'
14017 RM='$RM'
14018 ofile='$ofile'
14022 TARGETDIR="$TARGETDIR"
14024 _ACEOF
14026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14028 # Handling of arguments.
14029 for ac_config_target in $ac_config_targets
14031 case $ac_config_target in
14032 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14033 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14034 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14035 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14036 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14037 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14038 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14039 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14040 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14042 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14043 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14045 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14046 esac
14047 done
14050 # If the user did not use the arguments to specify the items to instantiate,
14051 # then the envvar interface is used. Set only those that are not.
14052 # We use the long form for the default assignment because of an extremely
14053 # bizarre bug on SunOS 4.1.3.
14054 if $ac_need_defaults; then
14055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14057 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14061 # Have a temporary directory for convenience. Make it in the build tree
14062 # simply because there is no reason against having it here, and in addition,
14063 # creating and moving files from /tmp can sometimes cause problems.
14064 # Hook for its removal unless debugging.
14065 # Note that there is a small window in which the directory will not be cleaned:
14066 # after its creation but before its name has been assigned to `$tmp'.
14067 $debug ||
14069 tmp=
14070 trap 'exit_status=$?
14071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14073 trap 'as_fn_exit 1' 1 2 13 15
14075 # Create a (secure) tmp directory for tmp files.
14078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14079 test -n "$tmp" && test -d "$tmp"
14080 } ||
14082 tmp=./conf$$-$RANDOM
14083 (umask 077 && mkdir "$tmp")
14084 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14086 # Set up the scripts for CONFIG_FILES section.
14087 # No need to generate them if there are no CONFIG_FILES.
14088 # This happens for instance with `./config.status config.h'.
14089 if test -n "$CONFIG_FILES"; then
14092 ac_cr=`echo X | tr X '\015'`
14093 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14094 # But we know of no other shell where ac_cr would be empty at this
14095 # point, so we can use a bashism as a fallback.
14096 if test "x$ac_cr" = x; then
14097 eval ac_cr=\$\'\\r\'
14099 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14100 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14101 ac_cs_awk_cr='\r'
14102 else
14103 ac_cs_awk_cr=$ac_cr
14106 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14107 _ACEOF
14111 echo "cat >conf$$subs.awk <<_ACEOF" &&
14112 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14113 echo "_ACEOF"
14114 } >conf$$subs.sh ||
14115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14116 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14117 ac_delim='%!_!# '
14118 for ac_last_try in false false false false false :; do
14119 . ./conf$$subs.sh ||
14120 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14122 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14123 if test $ac_delim_n = $ac_delim_num; then
14124 break
14125 elif $ac_last_try; then
14126 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14127 else
14128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14130 done
14131 rm -f conf$$subs.sh
14133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14135 _ACEOF
14136 sed -n '
14138 s/^/S["/; s/!.*/"]=/
14141 s/^[^!]*!//
14142 :repl
14143 t repl
14144 s/'"$ac_delim"'$//
14145 t delim
14148 s/\(.\{148\}\).*/\1/
14149 t more1
14150 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14153 b repl
14154 :more1
14155 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14158 s/.\{148\}//
14159 t nl
14160 :delim
14162 s/\(.\{148\}\).*/\1/
14163 t more2
14164 s/["\\]/\\&/g; s/^/"/; s/$/"/
14167 :more2
14168 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14171 s/.\{148\}//
14172 t delim
14173 ' <conf$$subs.awk | sed '
14174 /^[^""]/{
14176 s/\n//
14178 ' >>$CONFIG_STATUS || ac_write_fail=1
14179 rm -f conf$$subs.awk
14180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14181 _ACAWK
14182 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14183 for (key in S) S_is_set[key] = 1
14184 FS = "\a"
14188 line = $ 0
14189 nfields = split(line, field, "@")
14190 substed = 0
14191 len = length(field[1])
14192 for (i = 2; i < nfields; i++) {
14193 key = field[i]
14194 keylen = length(key)
14195 if (S_is_set[key]) {
14196 value = S[key]
14197 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14198 len += length(value) + length(field[++i])
14199 substed = 1
14200 } else
14201 len += 1 + keylen
14204 print line
14207 _ACAWK
14208 _ACEOF
14209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14210 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14211 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14212 else
14214 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14215 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14216 _ACEOF
14218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14220 # trailing colons and then remove the whole line if VPATH becomes empty
14221 # (actually we leave an empty line to preserve line numbers).
14222 if test "x$srcdir" = x.; then
14223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14224 s/:*\$(srcdir):*/:/
14225 s/:*\${srcdir}:*/:/
14226 s/:*@srcdir@:*/:/
14227 s/^\([^=]*=[ ]*\):*/\1/
14228 s/:*$//
14229 s/^[^=]*=[ ]*$//
14233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234 fi # test -n "$CONFIG_FILES"
14236 # Set up the scripts for CONFIG_HEADERS section.
14237 # No need to generate them if there are no CONFIG_HEADERS.
14238 # This happens for instance with `./config.status Makefile'.
14239 if test -n "$CONFIG_HEADERS"; then
14240 cat >"$tmp/defines.awk" <<\_ACAWK ||
14241 BEGIN {
14242 _ACEOF
14244 # Transform confdefs.h into an awk script `defines.awk', embedded as
14245 # here-document in config.status, that substitutes the proper values into
14246 # config.h.in to produce config.h.
14248 # Create a delimiter string that does not exist in confdefs.h, to ease
14249 # handling of long lines.
14250 ac_delim='%!_!# '
14251 for ac_last_try in false false :; do
14252 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14253 if test -z "$ac_t"; then
14254 break
14255 elif $ac_last_try; then
14256 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14257 else
14258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14260 done
14262 # For the awk script, D is an array of macro values keyed by name,
14263 # likewise P contains macro parameters if any. Preserve backslash
14264 # newline sequences.
14266 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14267 sed -n '
14268 s/.\{148\}/&'"$ac_delim"'/g
14269 t rset
14270 :rset
14271 s/^[ ]*#[ ]*define[ ][ ]*/ /
14272 t def
14274 :def
14275 s/\\$//
14276 t bsnl
14277 s/["\\]/\\&/g
14278 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14279 D["\1"]=" \3"/p
14280 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14282 :bsnl
14283 s/["\\]/\\&/g
14284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14285 D["\1"]=" \3\\\\\\n"\\/p
14286 t cont
14287 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14288 t cont
14290 :cont
14292 s/.\{148\}/&'"$ac_delim"'/g
14293 t clear
14294 :clear
14295 s/\\$//
14296 t bsnlc
14297 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14299 :bsnlc
14300 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14301 b cont
14302 ' <confdefs.h | sed '
14303 s/'"$ac_delim"'/"\\\
14304 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 for (key in D) D_is_set[key] = 1
14308 FS = "\a"
14310 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14311 line = \$ 0
14312 split(line, arg, " ")
14313 if (arg[1] == "#") {
14314 defundef = arg[2]
14315 mac1 = arg[3]
14316 } else {
14317 defundef = substr(arg[1], 2)
14318 mac1 = arg[2]
14320 split(mac1, mac2, "(") #)
14321 macro = mac2[1]
14322 prefix = substr(line, 1, index(line, defundef) - 1)
14323 if (D_is_set[macro]) {
14324 # Preserve the white space surrounding the "#".
14325 print prefix "define", macro P[macro] D[macro]
14326 next
14327 } else {
14328 # Replace #undef with comments. This is necessary, for example,
14329 # in the case of _POSIX_SOURCE, which is predefined and required
14330 # on some systems where configure will not decide to define it.
14331 if (defundef == "undef") {
14332 print "/*", prefix defundef, macro, "*/"
14333 next
14337 { print }
14338 _ACAWK
14339 _ACEOF
14340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14341 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14342 fi # test -n "$CONFIG_HEADERS"
14345 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14346 shift
14347 for ac_tag
14349 case $ac_tag in
14350 :[FHLC]) ac_mode=$ac_tag; continue;;
14351 esac
14352 case $ac_mode$ac_tag in
14353 :[FHL]*:*);;
14354 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14355 :[FH]-) ac_tag=-:-;;
14356 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14357 esac
14358 ac_save_IFS=$IFS
14359 IFS=:
14360 set x $ac_tag
14361 IFS=$ac_save_IFS
14362 shift
14363 ac_file=$1
14364 shift
14366 case $ac_mode in
14367 :L) ac_source=$1;;
14368 :[FH])
14369 ac_file_inputs=
14370 for ac_f
14372 case $ac_f in
14373 -) ac_f="$tmp/stdin";;
14374 *) # Look for the file first in the build tree, then in the source tree
14375 # (if the path is not absolute). The absolute path cannot be DOS-style,
14376 # because $ac_f cannot contain `:'.
14377 test -f "$ac_f" ||
14378 case $ac_f in
14379 [\\/$]*) false;;
14380 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14381 esac ||
14382 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14383 esac
14384 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14385 as_fn_append ac_file_inputs " '$ac_f'"
14386 done
14388 # Let's still pretend it is `configure' which instantiates (i.e., don't
14389 # use $as_me), people would be surprised to read:
14390 # /* config.h. Generated by config.status. */
14391 configure_input='Generated from '`
14392 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14393 `' by configure.'
14394 if test x"$ac_file" != x-; then
14395 configure_input="$ac_file. $configure_input"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14397 $as_echo "$as_me: creating $ac_file" >&6;}
14399 # Neutralize special characters interpreted by sed in replacement strings.
14400 case $configure_input in #(
14401 *\&* | *\|* | *\\* )
14402 ac_sed_conf_input=`$as_echo "$configure_input" |
14403 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14404 *) ac_sed_conf_input=$configure_input;;
14405 esac
14407 case $ac_tag in
14408 *:-:* | *:-) cat >"$tmp/stdin" \
14409 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14410 esac
14412 esac
14414 ac_dir=`$as_dirname -- "$ac_file" ||
14415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14416 X"$ac_file" : 'X\(//\)[^/]' \| \
14417 X"$ac_file" : 'X\(//\)$' \| \
14418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14419 $as_echo X"$ac_file" |
14420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14421 s//\1/
14424 /^X\(\/\/\)[^/].*/{
14425 s//\1/
14428 /^X\(\/\/\)$/{
14429 s//\1/
14432 /^X\(\/\).*/{
14433 s//\1/
14436 s/.*/./; q'`
14437 as_dir="$ac_dir"; as_fn_mkdir_p
14438 ac_builddir=.
14440 case "$ac_dir" in
14441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14444 # A ".." for each directory in $ac_dir_suffix.
14445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14446 case $ac_top_builddir_sub in
14447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14449 esac ;;
14450 esac
14451 ac_abs_top_builddir=$ac_pwd
14452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14453 # for backward compatibility:
14454 ac_top_builddir=$ac_top_build_prefix
14456 case $srcdir in
14457 .) # We are building in place.
14458 ac_srcdir=.
14459 ac_top_srcdir=$ac_top_builddir_sub
14460 ac_abs_top_srcdir=$ac_pwd ;;
14461 [\\/]* | ?:[\\/]* ) # Absolute name.
14462 ac_srcdir=$srcdir$ac_dir_suffix;
14463 ac_top_srcdir=$srcdir
14464 ac_abs_top_srcdir=$srcdir ;;
14465 *) # Relative name.
14466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14467 ac_top_srcdir=$ac_top_build_prefix$srcdir
14468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14469 esac
14470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14473 case $ac_mode in
14476 # CONFIG_FILE
14479 case $INSTALL in
14480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14482 esac
14483 ac_MKDIR_P=$MKDIR_P
14484 case $MKDIR_P in
14485 [\\/$]* | ?:[\\/]* ) ;;
14486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14487 esac
14488 _ACEOF
14490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14491 # If the template does not know about datarootdir, expand it.
14492 # FIXME: This hack should be removed a few years after 2.60.
14493 ac_datarootdir_hack=; ac_datarootdir_seen=
14494 ac_sed_dataroot='
14495 /datarootdir/ {
14499 /@datadir@/p
14500 /@docdir@/p
14501 /@infodir@/p
14502 /@localedir@/p
14503 /@mandir@/p'
14504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14505 *datarootdir*) ac_datarootdir_seen=yes;;
14506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14509 _ACEOF
14510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14511 ac_datarootdir_hack='
14512 s&@datadir@&$datadir&g
14513 s&@docdir@&$docdir&g
14514 s&@infodir@&$infodir&g
14515 s&@localedir@&$localedir&g
14516 s&@mandir@&$mandir&g
14517 s&\\\${datarootdir}&$datarootdir&g' ;;
14518 esac
14519 _ACEOF
14521 # Neutralize VPATH when `$srcdir' = `.'.
14522 # Shell code in configure.ac might set extrasub.
14523 # FIXME: do we really want to maintain this feature?
14524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14525 ac_sed_extra="$ac_vpsub
14526 $extrasub
14527 _ACEOF
14528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14531 s|@configure_input@|$ac_sed_conf_input|;t t
14532 s&@top_builddir@&$ac_top_builddir_sub&;t t
14533 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14534 s&@srcdir@&$ac_srcdir&;t t
14535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14536 s&@top_srcdir@&$ac_top_srcdir&;t t
14537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14538 s&@builddir@&$ac_builddir&;t t
14539 s&@abs_builddir@&$ac_abs_builddir&;t t
14540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14541 s&@INSTALL@&$ac_INSTALL&;t t
14542 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14543 $ac_datarootdir_hack
14545 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14546 || as_fn_error "could not create $ac_file" "$LINENO" 5
14548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14552 which seems to be undefined. Please make sure it is defined." >&5
14553 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14554 which seems to be undefined. Please make sure it is defined." >&2;}
14556 rm -f "$tmp/stdin"
14557 case $ac_file in
14558 -) cat "$tmp/out" && rm -f "$tmp/out";;
14559 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14560 esac \
14561 || as_fn_error "could not create $ac_file" "$LINENO" 5
14565 # CONFIG_HEADER
14567 if test x"$ac_file" != x-; then
14569 $as_echo "/* $configure_input */" \
14570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14571 } >"$tmp/config.h" \
14572 || as_fn_error "could not create $ac_file" "$LINENO" 5
14573 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14575 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14576 else
14577 rm -f "$ac_file"
14578 mv "$tmp/config.h" "$ac_file" \
14579 || as_fn_error "could not create $ac_file" "$LINENO" 5
14581 else
14582 $as_echo "/* $configure_input */" \
14583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14584 || as_fn_error "could not create -" "$LINENO" 5
14586 # Compute "$ac_file"'s index in $config_headers.
14587 _am_arg="$ac_file"
14588 _am_stamp_count=1
14589 for _am_header in $config_headers :; do
14590 case $_am_header in
14591 $_am_arg | $_am_arg:* )
14592 break ;;
14594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14595 esac
14596 done
14597 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14598 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599 X"$_am_arg" : 'X\(//\)[^/]' \| \
14600 X"$_am_arg" : 'X\(//\)$' \| \
14601 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14602 $as_echo X"$_am_arg" |
14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604 s//\1/
14607 /^X\(\/\/\)[^/].*/{
14608 s//\1/
14611 /^X\(\/\/\)$/{
14612 s//\1/
14615 /^X\(\/\).*/{
14616 s//\1/
14619 s/.*/./; q'`/stamp-h$_am_stamp_count
14623 # CONFIG_LINK
14626 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14628 else
14629 # Prefer the file from the source tree if names are identical.
14630 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14631 ac_source=$srcdir/$ac_source
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14635 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14637 if test ! -r "$ac_source"; then
14638 as_fn_error "$ac_source: file not found" "$LINENO" 5
14640 rm -f "$ac_file"
14642 # Try a relative symlink, then a hard link, then a copy.
14643 case $srcdir in
14644 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14645 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14646 esac
14647 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14648 ln "$ac_source" "$ac_file" 2>/dev/null ||
14649 cp -p "$ac_source" "$ac_file" ||
14650 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14654 $as_echo "$as_me: executing $ac_file commands" >&6;}
14656 esac
14659 case $ac_file$ac_mode in
14660 "default-1":C)
14661 # Only add multilib support code if we just rebuilt the top-level
14662 # Makefile.
14663 case " $CONFIG_FILES " in
14664 *" Makefile "*)
14665 ac_file=Makefile . ${multi_basedir}/config-ml.in
14667 esac ;;
14668 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14669 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14670 # are listed without --file. Let's play safe and only enable the eval
14671 # if we detect the quoting.
14672 case $CONFIG_FILES in
14673 *\'*) eval set x "$CONFIG_FILES" ;;
14674 *) set x $CONFIG_FILES ;;
14675 esac
14676 shift
14677 for mf
14679 # Strip MF so we end up with the name of the file.
14680 mf=`echo "$mf" | sed -e 's/:.*$//'`
14681 # Check whether this is an Automake generated Makefile or not.
14682 # We used to match only the files named `Makefile.in', but
14683 # some people rename them; so instead we look at the file content.
14684 # Grep'ing the first line is not enough: some people post-process
14685 # each Makefile.in and add a new line on top of each file to say so.
14686 # Grep'ing the whole file is not good either: AIX grep has a line
14687 # limit of 2048, but all sed's we know have understand at least 4000.
14688 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14689 dirpart=`$as_dirname -- "$mf" ||
14690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691 X"$mf" : 'X\(//\)[^/]' \| \
14692 X"$mf" : 'X\(//\)$' \| \
14693 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14694 $as_echo X"$mf" |
14695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14696 s//\1/
14699 /^X\(\/\/\)[^/].*/{
14700 s//\1/
14703 /^X\(\/\/\)$/{
14704 s//\1/
14707 /^X\(\/\).*/{
14708 s//\1/
14711 s/.*/./; q'`
14712 else
14713 continue
14715 # Extract the definition of DEPDIR, am__include, and am__quote
14716 # from the Makefile without running `make'.
14717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14718 test -z "$DEPDIR" && continue
14719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14720 test -z "am__include" && continue
14721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14722 # When using ansi2knr, U may be empty or an underscore; expand it
14723 U=`sed -n 's/^U = //p' < "$mf"`
14724 # Find all dependency output files, they are included files with
14725 # $(DEPDIR) in their names. We invoke sed twice because it is the
14726 # simplest approach to changing $(DEPDIR) to its actual value in the
14727 # expansion.
14728 for file in `sed -n "
14729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14731 # Make sure the directory exists.
14732 test -f "$dirpart/$file" && continue
14733 fdir=`$as_dirname -- "$file" ||
14734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14735 X"$file" : 'X\(//\)[^/]' \| \
14736 X"$file" : 'X\(//\)$' \| \
14737 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14738 $as_echo X"$file" |
14739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14740 s//\1/
14743 /^X\(\/\/\)[^/].*/{
14744 s//\1/
14747 /^X\(\/\/\)$/{
14748 s//\1/
14751 /^X\(\/\).*/{
14752 s//\1/
14755 s/.*/./; q'`
14756 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14757 # echo "creating $dirpart/$file"
14758 echo '# dummy' > "$dirpart/$file"
14759 done
14760 done
14763 "libtool":C)
14765 # See if we are running on zsh, and set the options which allow our
14766 # commands through without removal of \ escapes.
14767 if test -n "${ZSH_VERSION+set}" ; then
14768 setopt NO_GLOB_SUBST
14771 cfgfile="${ofile}T"
14772 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14773 $RM "$cfgfile"
14775 cat <<_LT_EOF >> "$cfgfile"
14776 #! $SHELL
14778 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14779 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14781 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14783 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14784 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14785 # Written by Gordon Matzigkeit, 1996
14787 # This file is part of GNU Libtool.
14789 # GNU Libtool is free software; you can redistribute it and/or
14790 # modify it under the terms of the GNU General Public License as
14791 # published by the Free Software Foundation; either version 2 of
14792 # the License, or (at your option) any later version.
14794 # As a special exception to the GNU General Public License,
14795 # if you distribute this file as part of a program or library that
14796 # is built using GNU Libtool, you may include this file under the
14797 # same distribution terms that you use for the rest of that program.
14799 # GNU Libtool is distributed in the hope that it will be useful,
14800 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14802 # GNU General Public License for more details.
14804 # You should have received a copy of the GNU General Public License
14805 # along with GNU Libtool; see the file COPYING. If not, a copy
14806 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14807 # obtained by writing to the Free Software Foundation, Inc.,
14808 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14811 # The names of the tagged configurations supported by this script.
14812 available_tags=""
14814 # ### BEGIN LIBTOOL CONFIG
14816 # Which release of libtool.m4 was used?
14817 macro_version=$macro_version
14818 macro_revision=$macro_revision
14820 # Whether or not to build shared libraries.
14821 build_libtool_libs=$enable_shared
14823 # Whether or not to build static libraries.
14824 build_old_libs=$enable_static
14826 # What type of objects to build.
14827 pic_mode=$pic_mode
14829 # Whether or not to optimize for fast installation.
14830 fast_install=$enable_fast_install
14832 # Shell to use when invoking shell scripts.
14833 SHELL=$lt_SHELL
14835 # An echo program that protects backslashes.
14836 ECHO=$lt_ECHO
14838 # The host system.
14839 host_alias=$host_alias
14840 host=$host
14841 host_os=$host_os
14843 # The build system.
14844 build_alias=$build_alias
14845 build=$build
14846 build_os=$build_os
14848 # A sed program that does not truncate output.
14849 SED=$lt_SED
14851 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14852 Xsed="\$SED -e 1s/^X//"
14854 # A grep program that handles long lines.
14855 GREP=$lt_GREP
14857 # An ERE matcher.
14858 EGREP=$lt_EGREP
14860 # A literal string matcher.
14861 FGREP=$lt_FGREP
14863 # A BSD- or MS-compatible name lister.
14864 NM=$lt_NM
14866 # Whether we need soft or hard links.
14867 LN_S=$lt_LN_S
14869 # What is the maximum length of a command?
14870 max_cmd_len=$max_cmd_len
14872 # Object file suffix (normally "o").
14873 objext=$ac_objext
14875 # Executable file suffix (normally "").
14876 exeext=$exeext
14878 # whether the shell understands "unset".
14879 lt_unset=$lt_unset
14881 # turn spaces into newlines.
14882 SP2NL=$lt_lt_SP2NL
14884 # turn newlines into spaces.
14885 NL2SP=$lt_lt_NL2SP
14887 # An object symbol dumper.
14888 OBJDUMP=$lt_OBJDUMP
14890 # Method to check whether dependent libraries are shared objects.
14891 deplibs_check_method=$lt_deplibs_check_method
14893 # Command to use when deplibs_check_method == "file_magic".
14894 file_magic_cmd=$lt_file_magic_cmd
14896 # The archiver.
14897 AR=$lt_AR
14898 AR_FLAGS=$lt_AR_FLAGS
14900 # A symbol stripping program.
14901 STRIP=$lt_STRIP
14903 # Commands used to install an old-style archive.
14904 RANLIB=$lt_RANLIB
14905 old_postinstall_cmds=$lt_old_postinstall_cmds
14906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14908 # Whether to use a lock for old archive extraction.
14909 lock_old_archive_extraction=$lock_old_archive_extraction
14911 # A C compiler.
14912 LTCC=$lt_CC
14914 # LTCC compiler flags.
14915 LTCFLAGS=$lt_CFLAGS
14917 # Take the output of nm and produce a listing of raw symbols and C names.
14918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14920 # Transform the output of nm in a proper C declaration.
14921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14923 # Transform the output of nm in a C name address pair.
14924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14926 # Transform the output of nm in a C name address pair when lib prefix is needed.
14927 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14929 # The name of the directory that contains temporary libtool files.
14930 objdir=$objdir
14932 # Used to examine libraries when file_magic_cmd begins with "file".
14933 MAGIC_CMD=$MAGIC_CMD
14935 # Must we lock files when doing compilation?
14936 need_locks=$lt_need_locks
14938 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14939 DSYMUTIL=$lt_DSYMUTIL
14941 # Tool to change global to local symbols on Mac OS X.
14942 NMEDIT=$lt_NMEDIT
14944 # Tool to manipulate fat objects and archives on Mac OS X.
14945 LIPO=$lt_LIPO
14947 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14948 OTOOL=$lt_OTOOL
14950 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14951 OTOOL64=$lt_OTOOL64
14953 # Old archive suffix (normally "a").
14954 libext=$libext
14956 # Shared library suffix (normally ".so").
14957 shrext_cmds=$lt_shrext_cmds
14959 # The commands to extract the exported symbol list from a shared archive.
14960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14962 # Variables whose values should be saved in libtool wrapper scripts and
14963 # restored at link time.
14964 variables_saved_for_relink=$lt_variables_saved_for_relink
14966 # Do we need the "lib" prefix for modules?
14967 need_lib_prefix=$need_lib_prefix
14969 # Do we need a version for libraries?
14970 need_version=$need_version
14972 # Library versioning type.
14973 version_type=$version_type
14975 # Shared library runtime path variable.
14976 runpath_var=$runpath_var
14978 # Shared library path variable.
14979 shlibpath_var=$shlibpath_var
14981 # Is shlibpath searched before the hard-coded library search path?
14982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14984 # Format of library name prefix.
14985 libname_spec=$lt_libname_spec
14987 # List of archive names. First name is the real one, the rest are links.
14988 # The last name is the one that the linker finds with -lNAME
14989 library_names_spec=$lt_library_names_spec
14991 # The coded name of the library, if different from the real name.
14992 soname_spec=$lt_soname_spec
14994 # Permission mode override for installation of shared libraries.
14995 install_override_mode=$lt_install_override_mode
14997 # Command to use after installation of a shared archive.
14998 postinstall_cmds=$lt_postinstall_cmds
15000 # Command to use after uninstallation of a shared archive.
15001 postuninstall_cmds=$lt_postuninstall_cmds
15003 # Commands used to finish a libtool library installation in a directory.
15004 finish_cmds=$lt_finish_cmds
15006 # As "finish_cmds", except a single script fragment to be evaled but
15007 # not shown.
15008 finish_eval=$lt_finish_eval
15010 # Whether we should hardcode library paths into libraries.
15011 hardcode_into_libs=$hardcode_into_libs
15013 # Compile-time system search path for libraries.
15014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15016 # Run-time system search path for libraries.
15017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15019 # Whether dlopen is supported.
15020 dlopen_support=$enable_dlopen
15022 # Whether dlopen of programs is supported.
15023 dlopen_self=$enable_dlopen_self
15025 # Whether dlopen of statically linked programs is supported.
15026 dlopen_self_static=$enable_dlopen_self_static
15028 # Commands to strip libraries.
15029 old_striplib=$lt_old_striplib
15030 striplib=$lt_striplib
15033 # The linker used to build libraries.
15034 LD=$lt_LD
15036 # How to create reloadable object files.
15037 reload_flag=$lt_reload_flag
15038 reload_cmds=$lt_reload_cmds
15040 # Commands used to build an old-style archive.
15041 old_archive_cmds=$lt_old_archive_cmds
15043 # A language specific compiler.
15044 CC=$lt_compiler
15046 # Is the compiler the GNU compiler?
15047 with_gcc=$GCC
15049 # Compiler flag to turn off builtin functions.
15050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15052 # How to pass a linker flag through the compiler.
15053 wl=$lt_lt_prog_compiler_wl
15055 # Additional compiler flags for building library objects.
15056 pic_flag=$lt_lt_prog_compiler_pic
15058 # Compiler flag to prevent dynamic linking.
15059 link_static_flag=$lt_lt_prog_compiler_static
15061 # Does compiler simultaneously support -c and -o options?
15062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15064 # Whether or not to add -lc for building shared libraries.
15065 build_libtool_need_lc=$archive_cmds_need_lc
15067 # Whether or not to disallow shared libs when runtime libs are static.
15068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15070 # Compiler flag to allow reflexive dlopens.
15071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15073 # Compiler flag to generate shared objects directly from archives.
15074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15076 # Whether the compiler copes with passing no objects directly.
15077 compiler_needs_object=$lt_compiler_needs_object
15079 # Create an old-style archive from a shared archive.
15080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15082 # Create a temporary old-style archive to link instead of a shared archive.
15083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15085 # Commands used to build a shared archive.
15086 archive_cmds=$lt_archive_cmds
15087 archive_expsym_cmds=$lt_archive_expsym_cmds
15089 # Commands used to build a loadable module if different from building
15090 # a shared archive.
15091 module_cmds=$lt_module_cmds
15092 module_expsym_cmds=$lt_module_expsym_cmds
15094 # Whether we are building with GNU ld or not.
15095 with_gnu_ld=$lt_with_gnu_ld
15097 # Flag that allows shared libraries with undefined symbols to be built.
15098 allow_undefined_flag=$lt_allow_undefined_flag
15100 # Flag that enforces no undefined symbols.
15101 no_undefined_flag=$lt_no_undefined_flag
15103 # Flag to hardcode \$libdir into a binary during linking.
15104 # This must work even if \$libdir does not exist
15105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15107 # If ld is used when linking, flag to hardcode \$libdir into a binary
15108 # during linking. This must work even if \$libdir does not exist.
15109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15111 # Whether we need a single "-rpath" flag with a separated argument.
15112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15115 # DIR into the resulting binary.
15116 hardcode_direct=$hardcode_direct
15118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15119 # DIR into the resulting binary and the resulting library dependency is
15120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15121 # library is relocated.
15122 hardcode_direct_absolute=$hardcode_direct_absolute
15124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15125 # into the resulting binary.
15126 hardcode_minus_L=$hardcode_minus_L
15128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15129 # into the resulting binary.
15130 hardcode_shlibpath_var=$hardcode_shlibpath_var
15132 # Set to "yes" if building a shared library automatically hardcodes DIR
15133 # into the library and all subsequent libraries and executables linked
15134 # against it.
15135 hardcode_automatic=$hardcode_automatic
15137 # Set to yes if linker adds runtime paths of dependent libraries
15138 # to runtime path list.
15139 inherit_rpath=$inherit_rpath
15141 # Whether libtool must link a program against all its dependency libraries.
15142 link_all_deplibs=$link_all_deplibs
15144 # Fix the shell variable \$srcfile for the compiler.
15145 fix_srcfile_path=$lt_fix_srcfile_path
15147 # Set to "yes" if exported symbols are required.
15148 always_export_symbols=$always_export_symbols
15150 # The commands to list exported symbols.
15151 export_symbols_cmds=$lt_export_symbols_cmds
15153 # Symbols that should not be listed in the preloaded symbols.
15154 exclude_expsyms=$lt_exclude_expsyms
15156 # Symbols that must always be exported.
15157 include_expsyms=$lt_include_expsyms
15159 # Commands necessary for linking programs (against libraries) with templates.
15160 prelink_cmds=$lt_prelink_cmds
15162 # Specify filename containing input files.
15163 file_list_spec=$lt_file_list_spec
15165 # How to hardcode a shared library path into an executable.
15166 hardcode_action=$hardcode_action
15168 # ### END LIBTOOL CONFIG
15170 _LT_EOF
15172 case $host_os in
15173 aix3*)
15174 cat <<\_LT_EOF >> "$cfgfile"
15175 # AIX sometimes has problems with the GCC collect2 program. For some
15176 # reason, if we set the COLLECT_NAMES environment variable, the problems
15177 # vanish in a puff of smoke.
15178 if test "X${COLLECT_NAMES+set}" != Xset; then
15179 COLLECT_NAMES=
15180 export COLLECT_NAMES
15182 _LT_EOF
15184 esac
15187 ltmain="$ac_aux_dir/ltmain.sh"
15190 # We use sed instead of cat because bash on DJGPP gets confused if
15191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15192 # text mode, it properly converts lines to CR/LF. This bash problem
15193 # is reportedly fixed, but why not run on old versions too?
15194 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15195 || (rm -f "$cfgfile"; exit 1)
15197 case $xsi_shell in
15198 yes)
15199 cat << \_LT_EOF >> "$cfgfile"
15201 # func_dirname file append nondir_replacement
15202 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15203 # otherwise set result to NONDIR_REPLACEMENT.
15204 func_dirname ()
15206 case ${1} in
15207 */*) func_dirname_result="${1%/*}${2}" ;;
15208 * ) func_dirname_result="${3}" ;;
15209 esac
15212 # func_basename file
15213 func_basename ()
15215 func_basename_result="${1##*/}"
15218 # func_dirname_and_basename file append nondir_replacement
15219 # perform func_basename and func_dirname in a single function
15220 # call:
15221 # dirname: Compute the dirname of FILE. If nonempty,
15222 # add APPEND to the result, otherwise set result
15223 # to NONDIR_REPLACEMENT.
15224 # value returned in "$func_dirname_result"
15225 # basename: Compute filename of FILE.
15226 # value retuned in "$func_basename_result"
15227 # Implementation must be kept synchronized with func_dirname
15228 # and func_basename. For efficiency, we do not delegate to
15229 # those functions but instead duplicate the functionality here.
15230 func_dirname_and_basename ()
15232 case ${1} in
15233 */*) func_dirname_result="${1%/*}${2}" ;;
15234 * ) func_dirname_result="${3}" ;;
15235 esac
15236 func_basename_result="${1##*/}"
15239 # func_stripname prefix suffix name
15240 # strip PREFIX and SUFFIX off of NAME.
15241 # PREFIX and SUFFIX must not contain globbing or regex special
15242 # characters, hashes, percent signs, but SUFFIX may contain a leading
15243 # dot (in which case that matches only a dot).
15244 func_stripname ()
15246 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15247 # positional parameters, so assign one to ordinary parameter first.
15248 func_stripname_result=${3}
15249 func_stripname_result=${func_stripname_result#"${1}"}
15250 func_stripname_result=${func_stripname_result%"${2}"}
15253 # func_opt_split
15254 func_opt_split ()
15256 func_opt_split_opt=${1%%=*}
15257 func_opt_split_arg=${1#*=}
15260 # func_lo2o object
15261 func_lo2o ()
15263 case ${1} in
15264 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15265 *) func_lo2o_result=${1} ;;
15266 esac
15269 # func_xform libobj-or-source
15270 func_xform ()
15272 func_xform_result=${1%.*}.lo
15275 # func_arith arithmetic-term...
15276 func_arith ()
15278 func_arith_result=$(( $* ))
15281 # func_len string
15282 # STRING may not start with a hyphen.
15283 func_len ()
15285 func_len_result=${#1}
15288 _LT_EOF
15290 *) # Bourne compatible functions.
15291 cat << \_LT_EOF >> "$cfgfile"
15293 # func_dirname file append nondir_replacement
15294 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15295 # otherwise set result to NONDIR_REPLACEMENT.
15296 func_dirname ()
15298 # Extract subdirectory from the argument.
15299 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15300 if test "X$func_dirname_result" = "X${1}"; then
15301 func_dirname_result="${3}"
15302 else
15303 func_dirname_result="$func_dirname_result${2}"
15307 # func_basename file
15308 func_basename ()
15310 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15314 # func_stripname prefix suffix name
15315 # strip PREFIX and SUFFIX off of NAME.
15316 # PREFIX and SUFFIX must not contain globbing or regex special
15317 # characters, hashes, percent signs, but SUFFIX may contain a leading
15318 # dot (in which case that matches only a dot).
15319 # func_strip_suffix prefix name
15320 func_stripname ()
15322 case ${2} in
15323 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15324 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15325 esac
15328 # sed scripts:
15329 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15330 my_sed_long_arg='1s/^-[^=]*=//'
15332 # func_opt_split
15333 func_opt_split ()
15335 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15336 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15339 # func_lo2o object
15340 func_lo2o ()
15342 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15345 # func_xform libobj-or-source
15346 func_xform ()
15348 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15351 # func_arith arithmetic-term...
15352 func_arith ()
15354 func_arith_result=`expr "$@"`
15357 # func_len string
15358 # STRING may not start with a hyphen.
15359 func_len ()
15361 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15364 _LT_EOF
15365 esac
15367 case $lt_shell_append in
15368 yes)
15369 cat << \_LT_EOF >> "$cfgfile"
15371 # func_append var value
15372 # Append VALUE to the end of shell variable VAR.
15373 func_append ()
15375 eval "$1+=\$2"
15377 _LT_EOF
15380 cat << \_LT_EOF >> "$cfgfile"
15382 # func_append var value
15383 # Append VALUE to the end of shell variable VAR.
15384 func_append ()
15386 eval "$1=\$$1\$2"
15389 _LT_EOF
15391 esac
15394 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15395 || (rm -f "$cfgfile"; exit 1)
15397 mv -f "$cfgfile" "$ofile" ||
15398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15399 chmod +x "$ofile"
15402 "include":C) test -d include || mkdir include ;;
15403 "src":C)
15404 test -d src || mkdir src
15405 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15408 esac
15409 done # for ac_tag
15412 as_fn_exit 0
15413 _ACEOF
15414 ac_clean_files=$ac_clean_files_save
15416 test $ac_write_fail = 0 ||
15417 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15420 # configure is writing to config.log, and then calls config.status.
15421 # config.status does its own redirection, appending to config.log.
15422 # Unfortunately, on DOS this fails, as config.log is still kept open
15423 # by configure, so config.status won't be able to write to it; its
15424 # output is simply discarded. So we exec the FD to /dev/null,
15425 # effectively closing config.log, so it can be properly (re)opened and
15426 # appended to by config.status. When coming back to configure, we
15427 # need to make the FD available again.
15428 if test "$no_create" != yes; then
15429 ac_cs_success=:
15430 ac_config_status_args=
15431 test "$silent" = yes &&
15432 ac_config_status_args="$ac_config_status_args --quiet"
15433 exec 5>/dev/null
15434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15435 exec 5>>config.log
15436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15437 # would make configure fail if this is the last instruction.
15438 $ac_cs_success || as_fn_exit $?
15440 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15442 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}