Skip gcc.dg/analyzer/pr94688.c on hppa*64*-*-*
[official-gcc.git] / libffi / configure
blobf82a45b13bcb698631e4d9fbd8a661fa3f50cdcc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.4.2.
5 # Report bugs to <http://github.com/libffi/libffi/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/libffi/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.4.2'
594 PACKAGE_STRING='libffi 3.4.2'
595 PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
596 PACKAGE_URL=''
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 BUILD_DOCS_FALSE
655 BUILD_DOCS_TRUE
656 FFI_EXEC_TRAMPOLINE_TABLE
657 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659 HAVE_LONG_DOUBLE_VARIANT
660 HAVE_LONG_DOUBLE
661 ALLOCA
662 AM_LTLDFLAGS
663 AM_RUNTESTFLAGS
664 TESTSUBDIR_FALSE
665 TESTSUBDIR_TRUE
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 SYSROOT_CFLAGS_FOR_TARGET
670 READELF
671 ENABLE_DARWIN_AT_RPATH_FALSE
672 ENABLE_DARWIN_AT_RPATH_TRUE
673 CXXCPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 RANLIB
682 OBJDUMP
683 LN_S
685 ac_ct_DUMPBIN
686 DUMPBIN
688 FGREP
689 EGREP
690 GREP
692 LIBTOOL
693 am__fastdepCCAS_FALSE
694 am__fastdepCCAS_TRUE
695 CCASDEPMODE
696 CCASFLAGS
697 CCAS
698 CET_FLAGS
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 ac_ct_CXX
703 CXXFLAGS
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 GENINSRC_FALSE
723 GENINSRC_TRUE
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
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_silent_rules
807 enable_generated_files_in_srcdir
808 enable_dependency_tracking
809 enable_cet
810 enable_shared
811 enable_static
812 with_pic
813 enable_fast_install
814 with_gnu_ld
815 enable_libtool_lock
816 enable_darwin_at_rpath
817 enable_maintainer_mode
818 enable_pax_emutramp
819 enable_debug
820 enable_structs
821 enable_raw_api
822 enable_exec_static_tramp
823 enable_purify_safety
824 with_toolexeclibdir
825 enable_symvers
826 with_gcc_major_version_only
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CCAS
832 CCASFLAGS
834 CPPFLAGS
835 CXXCPP'
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
886 ac_prev=
887 ac_dashdash=
888 for ac_option
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 esac
1244 done
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of libffi 3.4.2:";;
1448 esac
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-multilib build many library versions (default)
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-generated-files-in-srcdir
1459 put copies of generated files in source dir intended
1460 for creating source tarballs for users without
1461 texinfo bison or flex
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --enable-cet enable Intel CET in target libraries [default=auto]
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-darwin-at-rpath
1473 install libraries with @rpath/library-name, requires
1474 rpaths to be added to executables
1475 --enable-maintainer-mode
1476 enable make rules and dependencies not useful (and
1477 sometimes confusing) to the casual installer
1478 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1479 --enable-debug debugging mode
1480 --disable-structs omit code for struct support
1481 --disable-raw-api make the raw api unavailable
1482 --enable-exec-static-tramp enable use of static exec trampolines
1483 --enable-purify-safety purify-safe mode
1484 --enable-symvers=STYLE enables symbol versioning of the shared library
1485 [default=yes]
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-toolexeclibdir=DIR
1494 install libraries built with a cross compiler within
1496 --with-gcc-major-version-only
1497 use only GCC major number in filesystem paths
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
1509 CCAS assembler compiler command (defaults to CC)
1510 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1511 CPP C preprocessor
1512 CXXCPP C++ preprocessor
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1517 Report bugs to <http://github.com/libffi/libffi/issues>.
1518 _ACEOF
1519 ac_status=$?
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 libffi configure 3.4.2
1581 generated by GNU Autoconf 2.69
1583 Copyright (C) 2012 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=1
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1630 } # ac_fn_c_try_compile
1632 # ac_fn_cxx_try_compile LINENO
1633 # ----------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_cxx_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_cxx_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735 else
1736 eval "$3=no"
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 } # ac_fn_c_check_header_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_cpp ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_cpp
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1788 ac_fn_c_try_run ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=$ac_status
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_run
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1854 #undef $2
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1871 main ()
1873 return $2 ();
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_cxx_try_cpp LINENO
1894 # ------------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_cxx_try_cpp
1930 # ac_fn_cxx_try_link LINENO
1931 # -------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_cxx_try_link
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if test "$cross_compiling" = yes; then
1985 # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0;
1994 return test_array [0];
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_lo=0 ac_mid=0
2002 while :; do
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 main ()
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010 test_array [0] = 0;
2011 return test_array [0];
2014 return 0;
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid; break
2019 else
2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021 if test $ac_lo -le $ac_mid; then
2022 ac_lo= ac_hi=
2023 break
2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 done
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) < 0)];
2037 test_array [0] = 0;
2038 return test_array [0];
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_hi=-1 ac_mid=-1
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2054 test_array [0] = 0;
2055 return test_array [0];
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_lo=$ac_mid; break
2063 else
2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2065 if test $ac_mid -le $ac_hi; then
2066 ac_lo= ac_hi=
2067 break
2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 else
2074 ac_lo= ac_hi=
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 # Binary search between lo and hi bounds.
2080 while test "x$ac_lo" != "x$ac_hi"; do
2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0;
2090 return test_array [0];
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=$ac_mid
2098 else
2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 case $ac_lo in #((
2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105 '') ac_retval=1 ;;
2106 esac
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 static long int longval () { return $2; }
2112 static unsigned long int ulongval () { return $2; }
2113 #include <stdio.h>
2114 #include <stdlib.h>
2116 main ()
2119 FILE *f = fopen ("conftest.val", "w");
2120 if (! f)
2121 return 1;
2122 if (($2) < 0)
2124 long int i = longval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%ld", i);
2129 else
2131 unsigned long int i = ulongval ();
2132 if (i != ($2))
2133 return 1;
2134 fprintf (f, "%lu", i);
2136 /* Do not output a trailing newline, as this causes \r\n confusion
2137 on some platforms. */
2138 return ferror (f) || fclose (f) != 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_run "$LINENO"; then :
2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2146 else
2147 ac_retval=1
2149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2150 conftest.$ac_objext conftest.beam conftest.$ac_ext
2151 rm -f conftest.val
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 as_fn_set_status $ac_retval
2157 } # ac_fn_c_compute_int
2159 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160 # -------------------------------------------------------
2161 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162 # the include files in INCLUDES and setting the cache variable VAR
2163 # accordingly.
2164 ac_fn_c_check_header_mongrel ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if eval \${$3+:} false; then :
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 else
2177 # Is the header compilable?
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179 $as_echo_n "checking $2 usability... " >&6; }
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2183 #include <$2>
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_header_compiler=yes
2187 else
2188 ac_header_compiler=no
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192 $as_echo "$ac_header_compiler" >&6; }
2194 # Is the header present?
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196 $as_echo_n "checking $2 presence... " >&6; }
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 #include <$2>
2200 _ACEOF
2201 if ac_fn_c_try_cpp "$LINENO"; then :
2202 ac_header_preproc=yes
2203 else
2204 ac_header_preproc=no
2206 rm -f conftest.err conftest.i conftest.$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208 $as_echo "$ac_header_preproc" >&6; }
2210 # So? What about this header?
2211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2212 yes:no: )
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2218 no:yes:* )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2222 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2226 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229 ( $as_echo "## ----------------------------------------------------- ##
2230 ## Report this to http://github.com/libffi/libffi/issues ##
2231 ## ----------------------------------------------------- ##"
2232 ) | sed "s/^/$as_me: WARNING: /" >&2
2234 esac
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 eval "$3=\$ac_header_compiler"
2242 eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } # ac_fn_c_check_header_mongrel
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof ($2))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2280 main ()
2282 if (sizeof (($2)))
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2290 else
2291 eval "$3=yes"
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 } # ac_fn_c_check_type
2303 cat >config.log <<_ACEOF
2304 This file contains any messages produced by compilers while
2305 running configure, to aid debugging if configure makes a mistake.
2307 It was created by libffi $as_me 3.4.2, which was
2308 generated by GNU Autoconf 2.69. Invocation command line was
2310 $ $0 $@
2312 _ACEOF
2313 exec 5>>config.log
2315 cat <<_ASUNAME
2316 ## --------- ##
2317 ## Platform. ##
2318 ## --------- ##
2320 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2326 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2329 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2337 _ASUNAME
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346 IFS=$as_save_IFS
2348 } >&5
2350 cat >&5 <<_ACEOF
2353 ## ----------- ##
2354 ## Core tests. ##
2355 ## ----------- ##
2357 _ACEOF
2360 # Keep a trace of the command line.
2361 # Strip out --no-create and --no-recursion so they do not pile up.
2362 # Strip out --silent because we don't want to record it for future runs.
2363 # Also quote any args containing shell meta-characters.
2364 # Make two passes to allow for proper duplicate-argument suppression.
2365 ac_configure_args=
2366 ac_configure_args0=
2367 ac_configure_args1=
2368 ac_must_keep_next=false
2369 for ac_pass in 1 2
2371 for ac_arg
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2400 as_fn_append ac_configure_args " '$ac_arg'"
2402 esac
2403 done
2404 done
2405 { ac_configure_args0=; unset ac_configure_args0;}
2406 { ac_configure_args1=; unset ac_configure_args1;}
2408 # When interrupted or exit'd, cleanup temporary files, and complete
2409 # config.log. We remove comments because anyway the quotes in there
2410 # would cause problems or look ugly.
2411 # WARNING: Use '\'' to represent an apostrophe within the trap.
2412 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413 trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2416 echo
2418 $as_echo "## ---------------- ##
2419 ## Cache variables. ##
2420 ## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 esac |
2450 sort
2452 echo
2454 $as_echo "## ----------------- ##
2455 ## Output variables. ##
2456 ## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470 ## File substitutions. ##
2471 ## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486 ## confdefs.h. ##
2487 ## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2500 for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502 done
2503 ac_signal=0
2505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2506 rm -f -r conftest* confdefs.h
2508 $as_echo "/* confdefs.h */" > confdefs.h
2510 # Predefined preprocessor variables.
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_NAME "$PACKAGE_NAME"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_STRING "$PACKAGE_STRING"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_URL "$PACKAGE_URL"
2534 _ACEOF
2537 # Let the site file select an alternate cache file if it wants to.
2538 # Prefer an explicitly selected file to automatically selected ones.
2539 ac_site_file1=NONE
2540 ac_site_file2=NONE
2541 if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548 elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
2551 else
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
2555 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error $? "failed to load site script $ac_site_file
2566 See \`config.log' for more details" "$LINENO" 5; }
2568 done
2570 if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575 $as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583 $as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
2587 # Check that the precious variables saved in the cache have kept the same
2588 # value.
2589 ac_cache_corrupted=false
2590 for ac_var in $ac_precious_vars; do
2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592 eval ac_new_set=\$ac_env_${ac_var}_set
2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594 eval ac_new_val=\$ac_env_${ac_var}_value
2595 case $ac_old_set,$ac_new_set in
2596 set,)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,set)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,);;
2606 if test "x$ac_old_val" != "x$ac_new_val"; then
2607 # differences in whitespace do not lead to failure.
2608 ac_old_val_w=`echo x $ac_old_val`
2609 ac_new_val_w=`echo x $ac_new_val`
2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613 ac_cache_corrupted=:
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617 eval $ac_var=\$ac_old_val
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2620 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2622 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2623 fi;;
2624 esac
2625 # Pass precious variables to config.status.
2626 if test "$ac_new_set" = set; then
2627 case $ac_new_val in
2628 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629 *) ac_arg=$ac_var=$ac_new_val ;;
2630 esac
2631 case " $ac_configure_args " in
2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634 esac
2636 done
2637 if $ac_cache_corrupted; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2642 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 ## -------------------- ##
2645 ## Main body of script. ##
2646 ## -------------------- ##
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 ac_config_headers="$ac_config_headers fficonfig.h"
2661 # Default to --enable-multilib
2662 # Check whether --enable-multilib was given.
2663 if test "${enable_multilib+set}" = set; then :
2664 enableval=$enable_multilib; case "$enableval" in
2665 yes) multilib=yes ;;
2666 no) multilib=no ;;
2667 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2668 esac
2669 else
2670 multilib=yes
2674 # We may get other options which we leave undocumented:
2675 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2676 # See config-ml.in if you want the gory details.
2678 if test "$srcdir" = "."; then
2679 if test "$with_target_subdir" != "."; then
2680 multi_basedir="$srcdir/$with_multisrctop../.."
2681 else
2682 multi_basedir="$srcdir/$with_multisrctop.."
2684 else
2685 multi_basedir="$srcdir/.."
2689 # Even if the default multilib is not a cross compilation,
2690 # it may be that some of the other multilibs are.
2691 if test $cross_compiling = no && test $multilib = yes \
2692 && test "x${with_multisubdir}" != x ; then
2693 cross_compiling=maybe
2696 ac_config_commands="$ac_config_commands default-1"
2699 ac_aux_dir=
2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2701 if test -f "$ac_dir/install-sh"; then
2702 ac_aux_dir=$ac_dir
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2704 break
2705 elif test -f "$ac_dir/install.sh"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2708 break
2709 elif test -f "$ac_dir/shtool"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2712 break
2714 done
2715 if test -z "$ac_aux_dir"; then
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2719 # These three variables are undocumented and unsupported,
2720 # and are intended to be withdrawn in a future Autoconf release.
2721 # They can cause serious problems if a builder's source tree is in a directory
2722 # whose full name contains unusual characters.
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2728 # Make sure we can run config.sub.
2729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2733 $as_echo_n "checking build system type... " >&6; }
2734 if ${ac_cv_build+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 ac_build_alias=$build_alias
2738 test "x$ac_build_alias" = x &&
2739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2740 test "x$ac_build_alias" = x &&
2741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2747 $as_echo "$ac_cv_build" >&6; }
2748 case $ac_cv_build in
2749 *-*-*) ;;
2750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2751 esac
2752 build=$ac_cv_build
2753 ac_save_IFS=$IFS; IFS='-'
2754 set x $ac_cv_build
2755 shift
2756 build_cpu=$1
2757 build_vendor=$2
2758 shift; shift
2759 # Remember, the first character of IFS is used to create $*,
2760 # except with old shells:
2761 build_os=$*
2762 IFS=$ac_save_IFS
2763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2767 $as_echo_n "checking host system type... " >&6; }
2768 if ${ac_cv_host+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test "x$host_alias" = x; then
2772 ac_cv_host=$ac_cv_build
2773 else
2774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2780 $as_echo "$ac_cv_host" >&6; }
2781 case $ac_cv_host in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2784 esac
2785 host=$ac_cv_host
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_host
2788 shift
2789 host_cpu=$1
2790 host_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 host_os=$*
2795 IFS=$ac_save_IFS
2796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2800 $as_echo_n "checking target system type... " >&6; }
2801 if ${ac_cv_target+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test "x$target_alias" = x; then
2805 ac_cv_target=$ac_cv_host
2806 else
2807 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2813 $as_echo "$ac_cv_target" >&6; }
2814 case $ac_cv_target in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2817 esac
2818 target=$ac_cv_target
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_target
2821 shift
2822 target_cpu=$1
2823 target_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 target_os=$*
2828 IFS=$ac_save_IFS
2829 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2832 # The aliases save the names the user supplied, while $host etc.
2833 # will get canonicalized.
2834 test -n "$target_alias" &&
2835 test "$program_prefix$program_suffix$program_transform_name" = \
2836 NONENONEs,x,x, &&
2837 program_prefix=${target_alias}-
2839 target_alias=${target_alias-$host_alias}
2841 am__api_version='1.15'
2843 # Find a good install program. We prefer a C program (faster),
2844 # so one script is as good as another. But avoid the broken or
2845 # incompatible versions:
2846 # SysV /etc/install, /usr/sbin/install
2847 # SunOS /usr/etc/install
2848 # IRIX /sbin/install
2849 # AIX /bin/install
2850 # AmigaOS /C/install, which installs bootblocks on floppy discs
2851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854 # OS/2's system install, which has a completely different semantic
2855 # ./install, which can be erroneously created by make from ./install.sh.
2856 # Reject install programs that cannot install multiple files.
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2858 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2859 if test -z "$INSTALL"; then
2860 if ${ac_cv_path_install+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 # Account for people who put trailing slashes in PATH elements.
2869 case $as_dir/ in #((
2870 ./ | .// | /[cC]/* | \
2871 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2872 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2873 /usr/ucb/* ) ;;
2875 # OSF1 and SCO ODT 3.0 have their own names for install.
2876 # Don't use installbsd from OSF since it installs stuff as root
2877 # by default.
2878 for ac_prog in ginstall scoinst install; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2881 if test $ac_prog = install &&
2882 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883 # AIX install. It has an incompatible calling convention.
2885 elif test $ac_prog = install &&
2886 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2887 # program-specific install script used by HP pwplus--don't use.
2889 else
2890 rm -rf conftest.one conftest.two conftest.dir
2891 echo one > conftest.one
2892 echo two > conftest.two
2893 mkdir conftest.dir
2894 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2895 test -s conftest.one && test -s conftest.two &&
2896 test -s conftest.dir/conftest.one &&
2897 test -s conftest.dir/conftest.two
2898 then
2899 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2900 break 3
2904 done
2905 done
2907 esac
2909 done
2910 IFS=$as_save_IFS
2912 rm -rf conftest.one conftest.two conftest.dir
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL=$ac_cv_path_install
2917 else
2918 # As a last resort, use the slow shell script. Don't cache a
2919 # value for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the value is a relative name.
2922 INSTALL=$ac_install_sh
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2926 $as_echo "$INSTALL" >&6; }
2928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929 # It thinks the first close brace ends the variable substitution.
2930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2937 $as_echo_n "checking whether build environment is sane... " >&6; }
2938 # Reject unsafe characters in $srcdir or the absolute working directory
2939 # name. Accept space and tab only in the latter.
2940 am_lf='
2942 case `pwd` in
2943 *[\\\"\#\$\&\'\`$am_lf]*)
2944 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2945 esac
2946 case $srcdir in
2947 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2948 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2949 esac
2951 # Do 'set' in a subshell so we don't clobber the current shell's
2952 # arguments. Must try -L first in case configure is actually a
2953 # symlink; some systems play weird games with the mod time of symlinks
2954 # (eg FreeBSD returns the mod time of the symlink's containing
2955 # directory).
2956 if (
2957 am_has_slept=no
2958 for am_try in 1 2; do
2959 echo "timestamp, slept: $am_has_slept" > conftest.file
2960 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2961 if test "$*" = "X"; then
2962 # -L didn't work.
2963 set X `ls -t "$srcdir/configure" conftest.file`
2965 if test "$*" != "X $srcdir/configure conftest.file" \
2966 && test "$*" != "X conftest.file $srcdir/configure"; then
2968 # If neither matched, then we have a broken ls. This can happen
2969 # if, for instance, CONFIG_SHELL is bash and it inherits a
2970 # broken ls alias from the environment. This has actually
2971 # happened. Such a system could not be considered "sane".
2972 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2973 alias in your environment" "$LINENO" 5
2975 if test "$2" = conftest.file || test $am_try -eq 2; then
2976 break
2978 # Just in case.
2979 sleep 1
2980 am_has_slept=yes
2981 done
2982 test "$2" = conftest.file
2984 then
2985 # Ok.
2987 else
2988 as_fn_error $? "newly created file is older than distributed files!
2989 Check your system clock" "$LINENO" 5
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992 $as_echo "yes" >&6; }
2993 # If we didn't sleep, we still need to ensure time stamps of config.status and
2994 # generated files are strictly newer.
2995 am_sleep_pid=
2996 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2997 ( sleep 1 ) &
2998 am_sleep_pid=$!
3001 rm -f conftest.file
3003 test "$program_prefix" != NONE &&
3004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005 # Use a double $ so make ignores it.
3006 test "$program_suffix" != NONE &&
3007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008 # Double any \ or $.
3009 # By default was `s,x,x', remove it if useless.
3010 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3013 # Expand $ac_aux_dir to an absolute path.
3014 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3016 if test x"${MISSING+set}" != xset; then
3017 case $am_aux_dir in
3018 *\ * | *\ *)
3019 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3021 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3022 esac
3024 # Use eval to expand $SHELL
3025 if eval "$MISSING --is-lightweight"; then
3026 am_missing_run="$MISSING "
3027 else
3028 am_missing_run=
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3030 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3033 if test x"${install_sh+set}" != xset; then
3034 case $am_aux_dir in
3035 *\ * | *\ *)
3036 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3038 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 esac
3042 # Installed binaries are usually stripped using 'strip' when the user
3043 # run "make install-strip". However 'strip' might not be the right
3044 # tool to use in cross-compilation environments, therefore Automake
3045 # will honor the 'STRIP' environment variable to overrule this program.
3046 if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3075 STRIP=$ac_cv_prog_STRIP
3076 if test -n "$STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078 $as_echo "$STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_STRIP"; then
3087 ac_ct_STRIP=$STRIP
3088 # Extract the first word of "strip", so it can be a program name with args.
3089 set dummy strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116 if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118 $as_echo "$ac_ct_STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_STRIP" = x; then
3125 STRIP=":"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 STRIP=$ac_ct_STRIP
3135 else
3136 STRIP="$ac_cv_prog_STRIP"
3140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3143 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3144 if test -z "$MKDIR_P"; then
3145 if ${ac_cv_path_mkdir+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_prog in mkdir gmkdir; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3156 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3157 'mkdir (GNU coreutils) '* | \
3158 'mkdir (coreutils) '* | \
3159 'mkdir (fileutils) '4.1*)
3160 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3161 break 3;;
3162 esac
3163 done
3164 done
3165 done
3166 IFS=$as_save_IFS
3170 test -d ./--version && rmdir ./--version
3171 if test "${ac_cv_path_mkdir+set}" = set; then
3172 MKDIR_P="$ac_cv_path_mkdir -p"
3173 else
3174 # As a last resort, use the slow shell script. Don't cache a
3175 # value for MKDIR_P within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the value is a relative name.
3178 MKDIR_P="$ac_install_sh -d"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3182 $as_echo "$MKDIR_P" >&6; }
3184 for ac_prog in gawk mawk nawk awk
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_AWK+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$AWK"; then
3194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_AWK="$ac_prog"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3213 AWK=$ac_cv_prog_AWK
3214 if test -n "$AWK"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3216 $as_echo "$AWK" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3223 test -n "$AWK" && break
3224 done
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3227 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3228 set x ${MAKE-make}
3229 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3230 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 cat >conftest.make <<\_ACEOF
3234 SHELL = /bin/sh
3235 all:
3236 @echo '@@@%%%=$(MAKE)=@@@%%%'
3237 _ACEOF
3238 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3239 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3240 *@@@%%%=?*=@@@%%%*)
3241 eval ac_cv_prog_make_${ac_make}_set=yes;;
3243 eval ac_cv_prog_make_${ac_make}_set=no;;
3244 esac
3245 rm -f conftest.make
3247 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250 SET_MAKE=
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 SET_MAKE="MAKE=${MAKE-make}"
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260 am__leading_dot=.
3261 else
3262 am__leading_dot=_
3264 rmdir .tst 2>/dev/null
3266 # Check whether --enable-silent-rules was given.
3267 if test "${enable_silent_rules+set}" = set; then :
3268 enableval=$enable_silent_rules;
3271 case $enable_silent_rules in # (((
3272 yes) AM_DEFAULT_VERBOSITY=0;;
3273 no) AM_DEFAULT_VERBOSITY=1;;
3274 *) AM_DEFAULT_VERBOSITY=1;;
3275 esac
3276 am_make=${MAKE-make}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279 if ${am_cv_make_support_nested_variables+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if $as_echo 'TRUE=$(BAR$(V))
3283 BAR0=false
3284 BAR1=true
3286 am__doit:
3287 @$(TRUE)
3288 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289 am_cv_make_support_nested_variables=yes
3290 else
3291 am_cv_make_support_nested_variables=no
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3296 if test $am_cv_make_support_nested_variables = yes; then
3297 AM_V='$(V)'
3298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299 else
3300 AM_V=$AM_DEFAULT_VERBOSITY
3301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3303 AM_BACKSLASH='\'
3305 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3306 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3307 # is not polluted with repeated "-I."
3308 am__isrc=' -I$(srcdir)'
3309 # test to see if srcdir already configured
3310 if test -f $srcdir/config.status; then
3311 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3315 # test whether we have cygpath
3316 if test -z "$CYGPATH_W"; then
3317 if (cygpath --version) >/dev/null 2>/dev/null; then
3318 CYGPATH_W='cygpath -w'
3319 else
3320 CYGPATH_W=echo
3325 # Define the identity of the package.
3326 PACKAGE='libffi'
3327 VERSION='3.4.2'
3330 cat >>confdefs.h <<_ACEOF
3331 #define PACKAGE "$PACKAGE"
3332 _ACEOF
3335 cat >>confdefs.h <<_ACEOF
3336 #define VERSION "$VERSION"
3337 _ACEOF
3339 # Some tools Automake needs.
3341 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3344 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3347 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3350 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3353 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3355 # For better backward compatibility. To be removed once Automake 1.9.x
3356 # dies out for good. For more background, see:
3357 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3358 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3359 mkdir_p='$(MKDIR_P)'
3361 # We need awk for the "check" target (and possibly the TAP driver). The
3362 # system "awk" is bad on some platforms.
3363 # Always define AMTAR for backward compatibility. Yes, it's still used
3364 # in the wild :-( We should find a proper way to deprecate it ...
3365 AMTAR='$${TAR-tar}'
3368 # We'll loop over all known methods to create a tar archive until one works.
3369 _am_tools='gnutar pax cpio none'
3371 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3378 # POSIX will say in a future version that running "rm -f" with no argument
3379 # is OK; and we want to be able to make that assumption in our Makefile
3380 # recipes. So use an aggressive probe to check that the usage we want is
3381 # actually supported "in the wild" to an acceptable degree.
3382 # See automake bug#10828.
3383 # To make any issue more visible, cause the running configure to be aborted
3384 # by default if the 'rm' program in use doesn't match our expectations; the
3385 # user can still override this though.
3386 if rm -f && rm -fr && rm -rf; then : OK; else
3387 cat >&2 <<'END'
3388 Oops!
3390 Your 'rm' program seems unable to run without file operands specified
3391 on the command line, even when the '-f' option is present. This is contrary
3392 to the behaviour of most rm programs out there, and not conforming with
3393 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3395 Please tell bug-automake@gnu.org about your system, including the value
3396 of your $PATH and any error possibly output before this message. This
3397 can help us improve future automake versions.
3400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3401 echo 'Configuration will proceed anyway, since you have set the' >&2
3402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3403 echo >&2
3404 else
3405 cat >&2 <<'END'
3406 Aborting the configuration process, to ensure you take notice of the issue.
3408 You can download and install GNU coreutils to get an 'rm' implementation
3409 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3411 If you want to complete the configuration process using your problematic
3412 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3413 to "yes", and re-run configure.
3416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3421 # We would like our source tree to be readonly. However when releases or
3422 # pre-releases are generated, the flex/bison generated files as well as the
3423 # various formats of manuals need to be included along with the rest of the
3424 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3425 # just that.
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3427 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3428 # Check whether --enable-generated-files-in-srcdir was given.
3429 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3430 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3431 yes) enable_generated_files_in_srcdir=yes ;;
3432 no) enable_generated_files_in_srcdir=no ;;
3433 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3434 esac
3435 else
3436 enable_generated_files_in_srcdir=no
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3440 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3441 if test "$enable_generated_files_in_srcdir" = yes; then
3442 GENINSRC_TRUE=
3443 GENINSRC_FALSE='#'
3444 else
3445 GENINSRC_TRUE='#'
3446 GENINSRC_FALSE=
3450 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3451 # We must force CC to /not/ be precious variables; otherwise
3452 # the wrong, non-multilib-adjusted value will be used in multilibs.
3453 # As a side effect, we have to subst CFLAGS ourselves.
3454 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3455 # defaults of its own if none are provided.
3459 save_CFLAGS=$CFLAGS
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 if test -n "$ac_tool_prefix"; then
3466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3504 if test -z "$ac_cv_prog_CC"; then
3505 ac_ct_CC=$CC
3506 # Extract the first word of "gcc", so it can be a program name with args.
3507 set dummy gcc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_ac_ct_CC="gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536 $as_echo "$ac_ct_CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3542 if test "x$ac_ct_CC" = x; then
3543 CC=""
3544 else
3545 case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551 CC=$ac_ct_CC
3553 else
3554 CC="$ac_cv_prog_CC"
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3598 if test -z "$CC"; then
3599 # Extract the first word of "cc", so it can be a program name with args.
3600 set dummy cc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if ${ac_cv_prog_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 ac_prog_rejected=no
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618 ac_prog_rejected=yes
3619 continue
3621 ac_cv_prog_CC="cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3629 if test $ac_prog_rejected = yes; then
3630 # We found a bogon in the path, so make sure we never use it.
3631 set dummy $ac_cv_prog_CC
3632 shift
3633 if test $# != 0; then
3634 # We chose a different compiler from the bogus one.
3635 # However, it has the same basename, so the bogon will be chosen
3636 # first if we set CC to just the basename; use the full file name.
3637 shift
3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3654 if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3681 IFS=$as_save_IFS
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$CC" && break
3696 done
3698 if test -z "$CC"; then
3699 ac_ct_CC=$CC
3700 for ac_prog in cl.exe
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3725 IFS=$as_save_IFS
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732 $as_echo "$ac_ct_CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3739 test -n "$ac_ct_CC" && break
3740 done
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 CC=$ac_ct_CC
3758 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "no acceptable C compiler found in \$PATH
3761 See \`config.log' for more details" "$LINENO" 5; }
3763 # Provide some information about the compiler.
3764 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3765 set X $ac_compile
3766 ac_compiler=$2
3767 for ac_option in --version -v -V -qversion; do
3768 { { ac_try="$ac_compiler $ac_option >&5"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3776 ac_status=$?
3777 if test -s conftest.err; then
3778 sed '10a\
3779 ... rest of stderr output deleted ...
3780 10q' conftest.err >conftest.er1
3781 cat conftest.er1 >&5
3783 rm -f conftest.er1 conftest.err
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }
3786 done
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 ac_clean_files_save=$ac_clean_files
3800 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3801 # Try to create an executable without -o first, disregard a.out.
3802 # It will help us diagnose broken compilers, and finding out an intuition
3803 # of exeext.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805 $as_echo_n "checking whether the C compiler works... " >&6; }
3806 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808 # The possible output files:
3809 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3811 ac_rmfiles=
3812 for ac_file in $ac_files
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3817 esac
3818 done
3819 rm -f $ac_rmfiles
3821 if { { ac_try="$ac_link_default"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link_default") 2>&5
3829 ac_status=$?
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3835 # so that the user can short-circuit this test for compilers unknown to
3836 # Autoconf.
3837 for ac_file in $ac_files ''
3839 test -f "$ac_file" || continue
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3843 [ab].out )
3844 # We found the default executable, but exeext='' is most
3845 # certainly right.
3846 break;;
3847 *.* )
3848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3849 then :; else
3850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3852 # We set ac_cv_exeext here because the later test for it is not
3853 # safe: cross compilers may not add the suffix if given an `-o'
3854 # argument, so we may need to know it at that point already.
3855 # Even if this section looks crufty: it has the advantage of
3856 # actually working.
3857 break;;
3859 break;;
3860 esac
3861 done
3862 test "$ac_cv_exeext" = no && ac_cv_exeext=
3864 else
3865 ac_file=''
3867 if test -z "$ac_file"; then :
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875 as_fn_error 77 "C compiler cannot create executables
3876 See \`config.log' for more details" "$LINENO" 5; }
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3882 $as_echo_n "checking for C compiler default output file name... " >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884 $as_echo "$ac_file" >&6; }
3885 ac_exeext=$ac_cv_exeext
3887 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3890 $as_echo_n "checking for suffix of executables... " >&6; }
3891 if { { ac_try="$ac_link"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3903 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3904 # work properly (i.e., refer to `conftest.exe'), while it won't with
3905 # `rm'.
3906 for ac_file in conftest.exe conftest conftest.*; do
3907 test -f "$ac_file" || continue
3908 case $ac_file in
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911 break;;
3912 * ) break;;
3913 esac
3914 done
3915 else
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3919 See \`config.log' for more details" "$LINENO" 5; }
3921 rm -f conftest conftest$ac_cv_exeext
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3923 $as_echo "$ac_cv_exeext" >&6; }
3925 rm -f conftest.$ac_ext
3926 EXEEXT=$ac_cv_exeext
3927 ac_exeext=$EXEEXT
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <stdio.h>
3932 main ()
3934 FILE *f = fopen ("conftest.out", "w");
3935 return ferror (f) || fclose (f) != 0;
3938 return 0;
3940 _ACEOF
3941 ac_clean_files="$ac_clean_files conftest.out"
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945 $as_echo_n "checking whether we are cross compiling... " >&6; }
3946 if test "$cross_compiling" != yes; then
3947 { { ac_try="$ac_link"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_link") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }
3958 if { ac_try='./conftest$ac_cv_exeext'
3959 { { case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_try") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; }; then
3969 cross_compiling=no
3970 else
3971 if test "$cross_compiling" = maybe; then
3972 cross_compiling=yes
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "cannot run C compiled programs.
3977 If you meant to cross compile, use \`--host'.
3978 See \`config.log' for more details" "$LINENO" 5; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3983 $as_echo "$cross_compiling" >&6; }
3985 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3986 ac_clean_files=$ac_clean_files_save
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 $as_echo_n "checking for suffix of object files... " >&6; }
3989 if ${ac_cv_objext+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 for ac_file in conftest.o conftest.obj conftest.*; do
4016 test -f "$ac_file" || continue;
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020 break;;
4021 esac
4022 done
4023 else
4024 $as_echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot compute suffix of object files: cannot compile
4030 See \`config.log' for more details" "$LINENO" 5; }
4032 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035 $as_echo "$ac_cv_objext" >&6; }
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$OBJEXT
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4039 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4040 if ${ac_cv_c_compiler_gnu+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 main ()
4049 #ifndef __GNUC__
4050 choke me
4051 #endif
4054 return 0;
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_compiler_gnu=yes
4059 else
4060 ac_compiler_gnu=no
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4068 if test $ac_compiler_gnu = yes; then
4069 GCC=yes
4070 else
4071 GCC=
4073 ac_test_CFLAGS=${CFLAGS+set}
4074 ac_save_CFLAGS=$CFLAGS
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4076 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4077 if ${ac_cv_prog_cc_g+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 ac_save_c_werror_flag=$ac_c_werror_flag
4081 ac_c_werror_flag=yes
4082 ac_cv_prog_cc_g=no
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main ()
4092 return 0;
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
4097 else
4098 CFLAGS=""
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 main ()
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4112 else
4113 ac_c_werror_flag=$ac_save_c_werror_flag
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 main ()
4123 return 0;
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4137 $as_echo "$ac_cv_prog_cc_g" >&6; }
4138 if test "$ac_test_CFLAGS" = set; then
4139 CFLAGS=$ac_save_CFLAGS
4140 elif test $ac_cv_prog_cc_g = yes; then
4141 if test "$GCC" = yes; then
4142 CFLAGS="-g -O2"
4143 else
4144 CFLAGS="-g"
4146 else
4147 if test "$GCC" = yes; then
4148 CFLAGS="-O2"
4149 else
4150 CFLAGS=
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4154 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4155 if ${ac_cv_prog_cc_c89+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_cv_prog_cc_c89=no
4159 ac_save_CC=$CC
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdarg.h>
4163 #include <stdio.h>
4164 struct stat;
4165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4166 struct buf { int x; };
4167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4168 static char *e (p, i)
4169 char **p;
4170 int i;
4172 return p[i];
4174 static char *f (char * (*g) (char **, int), char **p, ...)
4176 char *s;
4177 va_list v;
4178 va_start (v,p);
4179 s = g (p, va_arg (v,int));
4180 va_end (v);
4181 return s;
4184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4185 function prototypes and stuff, but not '\xHH' hex character constants.
4186 These don't provoke an error unfortunately, instead are silently treated
4187 as 'x'. The following induces an error, until -std is added to get
4188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4189 array size at least. It's necessary to write '\x00'==0 to get something
4190 that's true only with -std. */
4191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4194 inside strings and character constants. */
4195 #define FOO(x) 'x'
4196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198 int test (int i, double x);
4199 struct s1 {int (*f) (int a);};
4200 struct s2 {int (*f) (double a);};
4201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 int argc;
4203 char **argv;
4205 main ()
4207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 return 0;
4211 _ACEOF
4212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 CC="$ac_save_CC $ac_arg"
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_c89=$ac_arg
4219 rm -f core conftest.err conftest.$ac_objext
4220 test "x$ac_cv_prog_cc_c89" != "xno" && break
4221 done
4222 rm -f conftest.$ac_ext
4223 CC=$ac_save_CC
4226 # AC_CACHE_VAL
4227 case "x$ac_cv_prog_cc_c89" in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230 $as_echo "none needed" >&6; } ;;
4231 xno)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 $as_echo "unsupported" >&6; } ;;
4235 CC="$CC $ac_cv_prog_cc_c89"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4238 esac
4239 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4255 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4256 if ${am_cv_prog_cc_c_o+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4263 main ()
4267 return 0;
4269 _ACEOF
4270 # Make sure it works both with $CC and with simple cc.
4271 # Following AC_PROG_CC_C_O, we do the test twice because some
4272 # compilers refuse to overwrite an existing .o file with -o,
4273 # though they will create one.
4274 am_cv_prog_cc_c_o=yes
4275 for am_i in 1 2; do
4276 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4277 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } \
4281 && test -f conftest2.$ac_objext; then
4282 : OK
4283 else
4284 am_cv_prog_cc_c_o=no
4285 break
4287 done
4288 rm -f core conftest*
4289 unset am_i
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4292 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4293 if test "$am_cv_prog_cc_c_o" != yes; then
4294 # Losing compiler, so override with the script.
4295 # FIXME: It is wrong to rewrite CC.
4296 # But if we don't then we get into trouble of one sort or another.
4297 # A longer-term fix would be to have automake use am__CC in this case,
4298 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4299 CC="$am_aux_dir/compile $CC"
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 DEPDIR="${am__leading_dot}deps"
4309 ac_config_commands="$ac_config_commands depfiles"
4312 am_make=${MAKE-make}
4313 cat > confinc << 'END'
4314 am__doit:
4315 @echo this is the am__doit target
4316 .PHONY: am__doit
4318 # If we don't find an include directive, just comment out the code.
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4321 am__include="#"
4322 am__quote=
4323 _am_result=none
4324 # First try GNU make style include.
4325 echo "include confinc" > confmf
4326 # Ignore all kinds of additional output from 'make'.
4327 case `$am_make -s -f confmf 2> /dev/null` in #(
4328 *the\ am__doit\ target*)
4329 am__include=include
4330 am__quote=
4331 _am_result=GNU
4333 esac
4334 # Now try BSD make style include.
4335 if test "$am__include" = "#"; then
4336 echo '.include "confinc"' > confmf
4337 case `$am_make -s -f confmf 2> /dev/null` in #(
4338 *the\ am__doit\ target*)
4339 am__include=.include
4340 am__quote="\""
4341 _am_result=BSD
4343 esac
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4348 $as_echo "$_am_result" >&6; }
4349 rm -f confinc confmf
4351 # Check whether --enable-dependency-tracking was given.
4352 if test "${enable_dependency_tracking+set}" = set; then :
4353 enableval=$enable_dependency_tracking;
4356 if test "x$enable_dependency_tracking" != xno; then
4357 am_depcomp="$ac_aux_dir/depcomp"
4358 AMDEPBACKSLASH='\'
4359 am__nodep='_no'
4361 if test "x$enable_dependency_tracking" != xno; then
4362 AMDEP_TRUE=
4363 AMDEP_FALSE='#'
4364 else
4365 AMDEP_TRUE='#'
4366 AMDEP_FALSE=
4371 depcc="$CC" am_compiler_list=
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4374 $as_echo_n "checking dependency style of $depcc... " >&6; }
4375 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4379 # We make a subdir and do the tests there. Otherwise we can end up
4380 # making bogus files that we don't know about and never remove. For
4381 # instance it was reported that on HP-UX the gcc test will end up
4382 # making a dummy file named 'D' -- because '-MD' means "put the output
4383 # in D".
4384 rm -rf conftest.dir
4385 mkdir conftest.dir
4386 # Copy depcomp to subdir because otherwise we won't find it if we're
4387 # using a relative directory.
4388 cp "$am_depcomp" conftest.dir
4389 cd conftest.dir
4390 # We will build objects and dependencies in a subdirectory because
4391 # it helps to detect inapplicable dependency modes. For instance
4392 # both Tru64's cc and ICC support -MD to output dependencies as a
4393 # side effect of compilation, but ICC will put the dependencies in
4394 # the current directory while Tru64 will put them in the object
4395 # directory.
4396 mkdir sub
4398 am_cv_CC_dependencies_compiler_type=none
4399 if test "$am_compiler_list" = ""; then
4400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4402 am__universal=false
4403 case " $depcc " in #(
4404 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4405 esac
4407 for depmode in $am_compiler_list; do
4408 # Setup a source with many dependencies, because some compilers
4409 # like to wrap large dependency lists on column 80 (with \), and
4410 # we should not choose a depcomp mode which is confused by this.
4412 # We need to recreate these files for each test, as the compiler may
4413 # overwrite some of them when testing with obscure command lines.
4414 # This happens at least with the AIX C compiler.
4415 : > sub/conftest.c
4416 for i in 1 2 3 4 5 6; do
4417 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4418 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4419 # Solaris 10 /bin/sh.
4420 echo '/* dummy */' > sub/conftst$i.h
4421 done
4422 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4424 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4425 # mode. It turns out that the SunPro C++ compiler does not properly
4426 # handle '-M -o', and we need to detect this. Also, some Intel
4427 # versions had trouble with output in subdirs.
4428 am__obj=sub/conftest.${OBJEXT-o}
4429 am__minus_obj="-o $am__obj"
4430 case $depmode in
4431 gcc)
4432 # This depmode causes a compiler race in universal mode.
4433 test "$am__universal" = false || continue
4435 nosideeffect)
4436 # After this tag, mechanisms are not by side-effect, so they'll
4437 # only be used when explicitly requested.
4438 if test "x$enable_dependency_tracking" = xyes; then
4439 continue
4440 else
4441 break
4444 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4445 # This compiler won't grok '-c -o', but also, the minuso test has
4446 # not run yet. These depmodes are late enough in the game, and
4447 # so weak that their functioning should not be impacted.
4448 am__obj=conftest.${OBJEXT-o}
4449 am__minus_obj=
4451 none) break ;;
4452 esac
4453 if depmode=$depmode \
4454 source=sub/conftest.c object=$am__obj \
4455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4456 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4457 >/dev/null 2>conftest.err &&
4458 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4460 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4462 # icc doesn't choke on unknown options, it will just issue warnings
4463 # or remarks (even with -Werror). So we grep stderr for any message
4464 # that says an option was ignored or not supported.
4465 # When given -MP, icc 7.0 and 7.1 complain thusly:
4466 # icc: Command line warning: ignoring option '-M'; no argument required
4467 # The diagnosis changed in icc 8.0:
4468 # icc: Command line remark: option '-MP' not supported
4469 if (grep 'ignoring option' conftest.err ||
4470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4471 am_cv_CC_dependencies_compiler_type=$depmode
4472 break
4475 done
4477 cd ..
4478 rm -rf conftest.dir
4479 else
4480 am_cv_CC_dependencies_compiler_type=none
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4485 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4489 test "x$enable_dependency_tracking" != xno \
4490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4491 am__fastdepCC_TRUE=
4492 am__fastdepCC_FALSE='#'
4493 else
4494 am__fastdepCC_TRUE='#'
4495 am__fastdepCC_FALSE=
4499 ac_ext=cpp
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_CXX+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$CXX" && break
4549 done
4551 if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$ac_ct_CXX" && break
4593 done
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CXX=$ac_ct_CXX
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612 set X $ac_compile
4613 ac_compiler=$2
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4630 rm -f conftest.er1 conftest.err
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 done
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4651 return 0;
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656 else
4657 ac_compiler_gnu=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if ${ac_cv_prog_cxx_g+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4685 main ()
4689 return 0;
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4709 else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4716 main ()
4720 return 0;
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4743 else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756 depcc="$CXX" am_compiler_list=
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4759 $as_echo_n "checking dependency style of $depcc... " >&6; }
4760 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named 'D' -- because '-MD' means "put the output
4768 # in D".
4769 rm -rf conftest.dir
4770 mkdir conftest.dir
4771 # Copy depcomp to subdir because otherwise we won't find it if we're
4772 # using a relative directory.
4773 cp "$am_depcomp" conftest.dir
4774 cd conftest.dir
4775 # We will build objects and dependencies in a subdirectory because
4776 # it helps to detect inapplicable dependency modes. For instance
4777 # both Tru64's cc and ICC support -MD to output dependencies as a
4778 # side effect of compilation, but ICC will put the dependencies in
4779 # the current directory while Tru64 will put them in the object
4780 # directory.
4781 mkdir sub
4783 am_cv_CXX_dependencies_compiler_type=none
4784 if test "$am_compiler_list" = ""; then
4785 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787 am__universal=false
4788 case " $depcc " in #(
4789 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4790 esac
4792 for depmode in $am_compiler_list; do
4793 # Setup a source with many dependencies, because some compilers
4794 # like to wrap large dependency lists on column 80 (with \), and
4795 # we should not choose a depcomp mode which is confused by this.
4797 # We need to recreate these files for each test, as the compiler may
4798 # overwrite some of them when testing with obscure command lines.
4799 # This happens at least with the AIX C compiler.
4800 : > sub/conftest.c
4801 for i in 1 2 3 4 5 6; do
4802 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4803 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4804 # Solaris 10 /bin/sh.
4805 echo '/* dummy */' > sub/conftst$i.h
4806 done
4807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4809 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4810 # mode. It turns out that the SunPro C++ compiler does not properly
4811 # handle '-M -o', and we need to detect this. Also, some Intel
4812 # versions had trouble with output in subdirs.
4813 am__obj=sub/conftest.${OBJEXT-o}
4814 am__minus_obj="-o $am__obj"
4815 case $depmode in
4816 gcc)
4817 # This depmode causes a compiler race in universal mode.
4818 test "$am__universal" = false || continue
4820 nosideeffect)
4821 # After this tag, mechanisms are not by side-effect, so they'll
4822 # only be used when explicitly requested.
4823 if test "x$enable_dependency_tracking" = xyes; then
4824 continue
4825 else
4826 break
4829 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4830 # This compiler won't grok '-c -o', but also, the minuso test has
4831 # not run yet. These depmodes are late enough in the game, and
4832 # so weak that their functioning should not be impacted.
4833 am__obj=conftest.${OBJEXT-o}
4834 am__minus_obj=
4836 none) break ;;
4837 esac
4838 if depmode=$depmode \
4839 source=sub/conftest.c object=$am__obj \
4840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4842 >/dev/null 2>conftest.err &&
4843 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4845 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4846 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4847 # icc doesn't choke on unknown options, it will just issue warnings
4848 # or remarks (even with -Werror). So we grep stderr for any message
4849 # that says an option was ignored or not supported.
4850 # When given -MP, icc 7.0 and 7.1 complain thusly:
4851 # icc: Command line warning: ignoring option '-M'; no argument required
4852 # The diagnosis changed in icc 8.0:
4853 # icc: Command line remark: option '-MP' not supported
4854 if (grep 'ignoring option' conftest.err ||
4855 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4856 am_cv_CXX_dependencies_compiler_type=$depmode
4857 break
4860 done
4862 cd ..
4863 rm -rf conftest.dir
4864 else
4865 am_cv_CXX_dependencies_compiler_type=none
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4870 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4871 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4874 test "x$enable_dependency_tracking" != xno \
4875 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4876 am__fastdepCXX_TRUE=
4877 am__fastdepCXX_FALSE='#'
4878 else
4879 am__fastdepCXX_TRUE='#'
4880 am__fastdepCXX_FALSE=
4884 CFLAGS=$save_CFLAGS
4890 # Add CET specific flags if CET is enabled
4892 # Check whether --enable-cet was given.
4893 if test "${enable_cet+set}" = set; then :
4894 enableval=$enable_cet;
4895 case "$enableval" in
4896 yes|no|auto) ;;
4897 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4898 esac
4900 else
4901 enable_cet=auto
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4906 $as_echo_n "checking for CET support... " >&6; }
4908 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4909 case "$host" in
4910 i[34567]86-*-linux* | x86_64-*-linux*)
4911 case "$enable_cet" in
4912 auto)
4913 # Check if target supports multi-byte NOPs
4914 # and if compiler and assembler support CET insn.
4915 cet_save_CFLAGS="$CFLAGS"
4916 CFLAGS="$CFLAGS -fcf-protection"
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4921 main ()
4924 #if !defined(__SSE2__)
4925 #error target does not support multi-byte NOPs
4926 #else
4927 asm ("setssbsy");
4928 #endif
4931 return 0;
4933 _ACEOF
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 enable_cet=yes
4936 else
4937 enable_cet=no
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 CFLAGS="$cet_save_CFLAGS"
4942 yes)
4943 # Check if assembler supports CET.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4948 main ()
4950 asm ("setssbsy");
4952 return 0;
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"; then :
4957 else
4958 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 esac
4965 enable_cet=no
4967 esac
4968 if test x$enable_cet = xyes; then
4969 CET_FLAGS="-fcf-protection -mshstk"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971 $as_echo "yes" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4979 # By default we simply use the C compiler to build assembly code.
4981 test "${CCAS+set}" = set || CCAS=$CC
4982 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4986 depcc="$CCAS" am_compiler_list=
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989 $as_echo_n "checking dependency style of $depcc... " >&6; }
4990 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4994 # We make a subdir and do the tests there. Otherwise we can end up
4995 # making bogus files that we don't know about and never remove. For
4996 # instance it was reported that on HP-UX the gcc test will end up
4997 # making a dummy file named 'D' -- because '-MD' means "put the output
4998 # in D".
4999 rm -rf conftest.dir
5000 mkdir conftest.dir
5001 # Copy depcomp to subdir because otherwise we won't find it if we're
5002 # using a relative directory.
5003 cp "$am_depcomp" conftest.dir
5004 cd conftest.dir
5005 # We will build objects and dependencies in a subdirectory because
5006 # it helps to detect inapplicable dependency modes. For instance
5007 # both Tru64's cc and ICC support -MD to output dependencies as a
5008 # side effect of compilation, but ICC will put the dependencies in
5009 # the current directory while Tru64 will put them in the object
5010 # directory.
5011 mkdir sub
5013 am_cv_CCAS_dependencies_compiler_type=none
5014 if test "$am_compiler_list" = ""; then
5015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5017 am__universal=false
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5032 # Solaris 10 /bin/sh.
5033 echo '/* dummy */' > sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5037 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle '-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs.
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5048 nosideeffect)
5049 # After this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested.
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok '-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CCAS_dependencies_compiler_type=$depmode
5085 break
5088 done
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CCAS_dependencies_compiler_type=none
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5099 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCCAS_TRUE=
5105 am__fastdepCCAS_FALSE='#'
5106 else
5107 am__fastdepCCAS_TRUE='#'
5108 am__fastdepCCAS_FALSE=
5113 case `pwd` in
5114 *\ * | *\ *)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5116 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5117 esac
5121 macro_version='2.2.7a'
5122 macro_revision='1.3134'
5136 ltmain="$ac_aux_dir/ltmain.sh"
5138 # Backslashify metacharacters that are still active within
5139 # double-quoted strings.
5140 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5142 # Same as above, but do not quote variable references.
5143 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5145 # Sed substitution to delay expansion of an escaped shell variable in a
5146 # double_quote_subst'ed string.
5147 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5149 # Sed substitution to delay expansion of an escaped single quote.
5150 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5152 # Sed substitution to avoid accidental globbing in evaled expressions
5153 no_glob_subst='s/\*/\\\*/g'
5155 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5160 $as_echo_n "checking how to print strings... " >&6; }
5161 # Test print first, because it will be a builtin if present.
5162 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5164 ECHO='print -r --'
5165 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5166 ECHO='printf %s\n'
5167 else
5168 # Use this function as a fallback that always works.
5169 func_fallback_echo ()
5171 eval 'cat <<_LTECHO_EOF
5173 _LTECHO_EOF'
5175 ECHO='func_fallback_echo'
5178 # func_echo_all arg...
5179 # Invoke $ECHO with all args, space-separated.
5180 func_echo_all ()
5182 $ECHO ""
5185 case "$ECHO" in
5186 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5187 $as_echo "printf" >&6; } ;;
5188 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5189 $as_echo "print -r" >&6; } ;;
5190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5191 $as_echo "cat" >&6; } ;;
5192 esac
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5208 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5209 if ${ac_cv_path_SED+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5213 for ac_i in 1 2 3 4 5 6 7; do
5214 ac_script="$ac_script$as_nl$ac_script"
5215 done
5216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5217 { ac_script=; unset ac_script;}
5218 if test -z "$SED"; then
5219 ac_path_SED_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in sed gsed; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5229 as_fn_executable_p "$ac_path_SED" || continue
5230 # Check for GNU ac_path_SED and select it if it is found.
5231 # Check for GNU $ac_path_SED
5232 case `"$ac_path_SED" --version 2>&1` in
5233 *GNU*)
5234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo '' >> "conftest.nl"
5244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_SED_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_SED="$ac_path_SED"
5250 ac_path_SED_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5258 $ac_path_SED_found && break 3
5259 done
5260 done
5261 done
5262 IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_SED"; then
5264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5266 else
5267 ac_cv_path_SED=$SED
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5272 $as_echo "$ac_cv_path_SED" >&6; }
5273 SED="$ac_cv_path_SED"
5274 rm -f conftest.sed
5276 test -z "$SED" && SED=sed
5277 Xsed="$SED -e 1s/^X//"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5290 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5291 if ${ac_cv_path_GREP+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -z "$GREP"; then
5295 ac_path_GREP_found=false
5296 # Loop through the user's path and test for each of PROGNAME-LIST
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_prog in grep ggrep; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5305 as_fn_executable_p "$ac_path_GREP" || continue
5306 # Check for GNU ac_path_GREP and select it if it is found.
5307 # Check for GNU $ac_path_GREP
5308 case `"$ac_path_GREP" --version 2>&1` in
5309 *GNU*)
5310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5312 ac_count=0
5313 $as_echo_n 0123456789 >"conftest.in"
5314 while :
5316 cat "conftest.in" "conftest.in" >"conftest.tmp"
5317 mv "conftest.tmp" "conftest.in"
5318 cp "conftest.in" "conftest.nl"
5319 $as_echo 'GREP' >> "conftest.nl"
5320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322 as_fn_arith $ac_count + 1 && ac_count=$as_val
5323 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5324 # Best one so far, save it but keep looking for a better one
5325 ac_cv_path_GREP="$ac_path_GREP"
5326 ac_path_GREP_max=$ac_count
5328 # 10*(2^10) chars as input seems more than enough
5329 test $ac_count -gt 10 && break
5330 done
5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332 esac
5334 $ac_path_GREP_found && break 3
5335 done
5336 done
5337 done
5338 IFS=$as_save_IFS
5339 if test -z "$ac_cv_path_GREP"; then
5340 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342 else
5343 ac_cv_path_GREP=$GREP
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5348 $as_echo "$ac_cv_path_GREP" >&6; }
5349 GREP="$ac_cv_path_GREP"
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5353 $as_echo_n "checking for egrep... " >&6; }
5354 if ${ac_cv_path_EGREP+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5358 then ac_cv_path_EGREP="$GREP -E"
5359 else
5360 if test -z "$EGREP"; then
5361 ac_path_EGREP_found=false
5362 # Loop through the user's path and test for each of PROGNAME-LIST
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_prog in egrep; do
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5371 as_fn_executable_p "$ac_path_EGREP" || continue
5372 # Check for GNU ac_path_EGREP and select it if it is found.
5373 # Check for GNU $ac_path_EGREP
5374 case `"$ac_path_EGREP" --version 2>&1` in
5375 *GNU*)
5376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5378 ac_count=0
5379 $as_echo_n 0123456789 >"conftest.in"
5380 while :
5382 cat "conftest.in" "conftest.in" >"conftest.tmp"
5383 mv "conftest.tmp" "conftest.in"
5384 cp "conftest.in" "conftest.nl"
5385 $as_echo 'EGREP' >> "conftest.nl"
5386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5388 as_fn_arith $ac_count + 1 && ac_count=$as_val
5389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5390 # Best one so far, save it but keep looking for a better one
5391 ac_cv_path_EGREP="$ac_path_EGREP"
5392 ac_path_EGREP_max=$ac_count
5394 # 10*(2^10) chars as input seems more than enough
5395 test $ac_count -gt 10 && break
5396 done
5397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5398 esac
5400 $ac_path_EGREP_found && break 3
5401 done
5402 done
5403 done
5404 IFS=$as_save_IFS
5405 if test -z "$ac_cv_path_EGREP"; then
5406 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408 else
5409 ac_cv_path_EGREP=$EGREP
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5415 $as_echo "$ac_cv_path_EGREP" >&6; }
5416 EGREP="$ac_cv_path_EGREP"
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5420 $as_echo_n "checking for fgrep... " >&6; }
5421 if ${ac_cv_path_FGREP+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5425 then ac_cv_path_FGREP="$GREP -F"
5426 else
5427 if test -z "$FGREP"; then
5428 ac_path_FGREP_found=false
5429 # Loop through the user's path and test for each of PROGNAME-LIST
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_prog in fgrep; do
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5438 as_fn_executable_p "$ac_path_FGREP" || continue
5439 # Check for GNU ac_path_FGREP and select it if it is found.
5440 # Check for GNU $ac_path_FGREP
5441 case `"$ac_path_FGREP" --version 2>&1` in
5442 *GNU*)
5443 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5445 ac_count=0
5446 $as_echo_n 0123456789 >"conftest.in"
5447 while :
5449 cat "conftest.in" "conftest.in" >"conftest.tmp"
5450 mv "conftest.tmp" "conftest.in"
5451 cp "conftest.in" "conftest.nl"
5452 $as_echo 'FGREP' >> "conftest.nl"
5453 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5455 as_fn_arith $ac_count + 1 && ac_count=$as_val
5456 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5457 # Best one so far, save it but keep looking for a better one
5458 ac_cv_path_FGREP="$ac_path_FGREP"
5459 ac_path_FGREP_max=$ac_count
5461 # 10*(2^10) chars as input seems more than enough
5462 test $ac_count -gt 10 && break
5463 done
5464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5465 esac
5467 $ac_path_FGREP_found && break 3
5468 done
5469 done
5470 done
5471 IFS=$as_save_IFS
5472 if test -z "$ac_cv_path_FGREP"; then
5473 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5475 else
5476 ac_cv_path_FGREP=$FGREP
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5482 $as_echo "$ac_cv_path_FGREP" >&6; }
5483 FGREP="$ac_cv_path_FGREP"
5486 test -z "$GREP" && GREP=grep
5506 # Check whether --with-gnu-ld was given.
5507 if test "${with_gnu_ld+set}" = set; then :
5508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5509 else
5510 with_gnu_ld=no
5513 ac_prog=ld
5514 if test "$GCC" = yes; then
5515 # Check if gcc -print-prog-name=ld gives a path.
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5517 $as_echo_n "checking for ld used by $CC... " >&6; }
5518 case $host in
5519 *-*-mingw*)
5520 # gcc leaves a trailing carriage return which upsets mingw
5521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5524 esac
5525 case $ac_prog in
5526 # Accept absolute paths.
5527 [\\/]* | ?:[\\/]*)
5528 re_direlt='/[^/][^/]*/\.\./'
5529 # Canonicalize the pathname of ld
5530 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5531 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5532 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5533 done
5534 test -z "$LD" && LD="$ac_prog"
5537 # If it fails, then pretend we aren't using GCC.
5538 ac_prog=ld
5541 # If it is relative, then search for the first ld in PATH.
5542 with_gnu_ld=unknown
5544 esac
5545 elif test "$with_gnu_ld" = yes; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5547 $as_echo_n "checking for GNU ld... " >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5550 $as_echo_n "checking for non-GNU ld... " >&6; }
5552 if ${lt_cv_path_LD+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -z "$LD"; then
5556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5557 for ac_dir in $PATH; do
5558 IFS="$lt_save_ifs"
5559 test -z "$ac_dir" && ac_dir=.
5560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5561 lt_cv_path_LD="$ac_dir/$ac_prog"
5562 # Check to see if the program is GNU ld. I'd rather use --version,
5563 # but apparently some variants of GNU ld only accept -v.
5564 # Break only if it was the GNU/non-GNU ld that we prefer.
5565 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567 test "$with_gnu_ld" != no && break
5570 test "$with_gnu_ld" != yes && break
5572 esac
5574 done
5575 IFS="$lt_save_ifs"
5576 else
5577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5581 LD="$lt_cv_path_LD"
5582 if test -n "$LD"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5584 $as_echo "$LD" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5589 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5592 if ${lt_cv_prog_gnu_ld+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5596 case `$LD -v 2>&1 </dev/null` in
5597 *GNU* | *'with BFD'*)
5598 lt_cv_prog_gnu_ld=yes
5601 lt_cv_prog_gnu_ld=no
5603 esac
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5607 with_gnu_ld=$lt_cv_prog_gnu_ld
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5618 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5619 if ${lt_cv_path_NM+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$NM"; then
5623 # Let the user override the nm to test.
5624 lt_nm_to_check="$NM"
5625 else
5626 lt_nm_to_check="${ac_tool_prefix}nm"
5627 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5628 lt_nm_to_check="$lt_nm_to_check nm"
5631 for lt_tmp_nm in "$lt_nm_to_check"; do
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634 IFS="$lt_save_ifs"
5635 test -z "$ac_dir" && ac_dir=.
5636 # Strip out any user-provided options from the nm to test twice,
5637 # the first time to test to see if nm (rather than its options) has
5638 # an explicit path, the second time to yield a file which can be
5639 # nm'ed itself.
5640 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5641 case "$tmp_nm_path" in
5642 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5643 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5644 esac
5645 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5646 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5647 # Check to see if the nm accepts a BSD-compat flag.
5648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649 # nm: unknown option "B" ignored
5650 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5651 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5652 break
5655 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5656 *$tmp_nm*)
5657 lt_cv_path_NM="$tmp_nm -p"
5658 break
5661 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5662 continue # so that we can try to find one that supports BSD flags
5664 esac
5666 esac
5668 done
5669 IFS="$lt_save_ifs"
5670 done
5671 : ${lt_cv_path_NM=no}
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5674 $as_echo "$lt_cv_path_NM" >&6; }
5675 if test "$lt_cv_path_NM" != "no"; then
5676 NM="$lt_cv_path_NM"
5677 else
5678 # Didn't find any BSD compatible name lister, look for dumpbin.
5679 if test -n "$DUMPBIN"; then :
5680 # Let the user override the test.
5681 else
5682 if test -n "$ac_tool_prefix"; then
5683 for ac_prog in dumpbin "link -dump"
5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_DUMPBIN+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$DUMPBIN"; then
5693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5708 IFS=$as_save_IFS
5712 DUMPBIN=$ac_cv_prog_DUMPBIN
5713 if test -n "$DUMPBIN"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5715 $as_echo "$DUMPBIN" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 test -n "$DUMPBIN" && break
5723 done
5725 if test -z "$DUMPBIN"; then
5726 ac_ct_DUMPBIN=$DUMPBIN
5727 for ac_prog in dumpbin "link -dump"
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -n "$ac_ct_DUMPBIN"; then
5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5750 done
5751 done
5752 IFS=$as_save_IFS
5756 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5757 if test -n "$ac_ct_DUMPBIN"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5759 $as_echo "$ac_ct_DUMPBIN" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5766 test -n "$ac_ct_DUMPBIN" && break
5767 done
5769 if test "x$ac_ct_DUMPBIN" = x; then
5770 DUMPBIN=":"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778 DUMPBIN=$ac_ct_DUMPBIN
5782 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5783 *COFF*)
5784 DUMPBIN="$DUMPBIN -symbols"
5787 DUMPBIN=:
5789 esac
5792 if test "$DUMPBIN" != ":"; then
5793 NM="$DUMPBIN"
5796 test -z "$NM" && NM=nm
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5804 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5805 if ${lt_cv_nm_interface+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 lt_cv_nm_interface="BSD nm"
5809 echo "int some_variable = 0;" > conftest.$ac_ext
5810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5811 (eval "$ac_compile" 2>conftest.err)
5812 cat conftest.err >&5
5813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5815 cat conftest.err >&5
5816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5817 cat conftest.out >&5
5818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5819 lt_cv_nm_interface="MS dumpbin"
5821 rm -f conftest*
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5824 $as_echo "$lt_cv_nm_interface" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5827 $as_echo_n "checking whether ln -s works... " >&6; }
5828 LN_S=$as_ln_s
5829 if test "$LN_S" = "ln -s"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5834 $as_echo "no, using $LN_S" >&6; }
5837 # find the maximum length of command line arguments
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5839 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5840 if ${lt_cv_sys_max_cmd_len+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5844 teststring="ABCD"
5846 case $build_os in
5847 msdosdjgpp*)
5848 # On DJGPP, this test can blow up pretty badly due to problems in libc
5849 # (any single argument exceeding 2000 bytes causes a buffer overrun
5850 # during glob expansion). Even if it were fixed, the result of this
5851 # check would be larger than it should be.
5852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5855 gnu*)
5856 # Under GNU Hurd, this test is not required because there is
5857 # no limit to the length of command line arguments.
5858 # Libtool will interpret -1 as no limit whatsoever
5859 lt_cv_sys_max_cmd_len=-1;
5862 cygwin* | mingw* | cegcc*)
5863 # On Win9x/ME, this test blows up -- it succeeds, but takes
5864 # about 5 minutes as the teststring grows exponentially.
5865 # Worse, since 9x/ME are not pre-emptively multitasking,
5866 # you end up with a "frozen" computer, even though with patience
5867 # the test eventually succeeds (with a max line length of 256k).
5868 # Instead, let's just punt: use the minimum linelength reported by
5869 # all of the supported platforms: 8192 (on NT/2K/XP).
5870 lt_cv_sys_max_cmd_len=8192;
5873 mint*)
5874 # On MiNT this can take a long time and run out of memory.
5875 lt_cv_sys_max_cmd_len=8192;
5878 amigaos*)
5879 # On AmigaOS with pdksh, this test takes hours, literally.
5880 # So we just punt and use a minimum line length of 8192.
5881 lt_cv_sys_max_cmd_len=8192;
5884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5885 # This has been around since 386BSD, at least. Likely further.
5886 if test -x /sbin/sysctl; then
5887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5888 elif test -x /usr/sbin/sysctl; then
5889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5890 else
5891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5893 # And add a safety zone
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898 interix*)
5899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5900 lt_cv_sys_max_cmd_len=196608
5903 osf*)
5904 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5905 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5906 # nice to cause kernel panics so lets avoid the loop below.
5907 # First set a reasonable default.
5908 lt_cv_sys_max_cmd_len=16384
5910 if test -x /sbin/sysconfig; then
5911 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5912 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5913 esac
5916 sco3.2v5*)
5917 lt_cv_sys_max_cmd_len=102400
5919 sysv5* | sco5v6* | sysv4.2uw2*)
5920 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5921 if test -n "$kargmax"; then
5922 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5923 else
5924 lt_cv_sys_max_cmd_len=32768
5928 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5929 if test -n "$lt_cv_sys_max_cmd_len"; then
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932 else
5933 # Make teststring a little bigger before we do anything with it.
5934 # a 1K string should be a reasonable start.
5935 for i in 1 2 3 4 5 6 7 8 ; do
5936 teststring=$teststring$teststring
5937 done
5938 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5939 # If test is not a shell built-in, we'll probably end up computing a
5940 # maximum length that is only half of the actual maximum length, but
5941 # we can't tell.
5942 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5943 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5944 test $i != 17 # 1/2 MB should be enough
5946 i=`expr $i + 1`
5947 teststring=$teststring$teststring
5948 done
5949 # Only check the string length outside the loop.
5950 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5951 teststring=
5952 # Add a significant safety factor because C++ compilers can tack on
5953 # massive amounts of additional arguments before passing them to the
5954 # linker. It appears as though 1/2 is a usable value.
5955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5958 esac
5962 if test -n $lt_cv_sys_max_cmd_len ; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5964 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5967 $as_echo "none" >&6; }
5969 max_cmd_len=$lt_cv_sys_max_cmd_len
5976 : ${CP="cp -f"}
5977 : ${MV="mv -f"}
5978 : ${RM="rm -f"}
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5981 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5982 # Try some XSI features
5983 xsi_shell=no
5984 ( _lt_dummy="a/b/c"
5985 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5986 = c,a/b,, \
5987 && eval 'test $(( 1 + 1 )) -eq 2 \
5988 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5989 && xsi_shell=yes
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5991 $as_echo "$xsi_shell" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5995 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5996 lt_shell_append=no
5997 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5998 >/dev/null 2>&1 \
5999 && lt_shell_append=yes
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6001 $as_echo "$lt_shell_append" >&6; }
6004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6005 lt_unset=unset
6006 else
6007 lt_unset=false
6014 # test EBCDIC or ASCII
6015 case `echo X|tr X '\101'` in
6016 A) # ASCII based system
6017 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6018 lt_SP2NL='tr \040 \012'
6019 lt_NL2SP='tr \015\012 \040\040'
6021 *) # EBCDIC based system
6022 lt_SP2NL='tr \100 \n'
6023 lt_NL2SP='tr \r\n \100\100'
6025 esac
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6036 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6037 if ${lt_cv_ld_reload_flag+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 lt_cv_ld_reload_flag='-r'
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6043 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6044 reload_flag=$lt_cv_ld_reload_flag
6045 case $reload_flag in
6046 "" | " "*) ;;
6047 *) reload_flag=" $reload_flag" ;;
6048 esac
6049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6050 case $host_os in
6051 darwin*)
6052 if test "$GCC" = yes; then
6053 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6054 else
6055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6058 esac
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_OBJDUMP+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$OBJDUMP"; then
6077 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 OBJDUMP=$ac_cv_prog_OBJDUMP
6097 if test -n "$OBJDUMP"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6099 $as_echo "$OBJDUMP" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6107 if test -z "$ac_cv_prog_OBJDUMP"; then
6108 ac_ct_OBJDUMP=$OBJDUMP
6109 # Extract the first word of "objdump", so it can be a program name with args.
6110 set dummy objdump; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$ac_ct_OBJDUMP"; then
6117 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6132 IFS=$as_save_IFS
6136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6137 if test -n "$ac_ct_OBJDUMP"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6139 $as_echo "$ac_ct_OBJDUMP" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6145 if test "x$ac_ct_OBJDUMP" = x; then
6146 OBJDUMP="false"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154 OBJDUMP=$ac_ct_OBJDUMP
6156 else
6157 OBJDUMP="$ac_cv_prog_OBJDUMP"
6160 test -z "$OBJDUMP" && OBJDUMP=objdump
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6171 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6172 if ${lt_cv_deplibs_check_method+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 lt_cv_file_magic_cmd='$MAGIC_CMD'
6176 lt_cv_file_magic_test_file=
6177 lt_cv_deplibs_check_method='unknown'
6178 # Need to set the preceding variable on all platforms that support
6179 # interlibrary dependencies.
6180 # 'none' -- dependencies not supported.
6181 # `unknown' -- same as none, but documents that we really don't know.
6182 # 'pass_all' -- all dependencies passed with no checks.
6183 # 'test_compile' -- check by making test program.
6184 # 'file_magic [[regex]]' -- check by looking for files in library path
6185 # which responds to the $file_magic_cmd with a given extended regex.
6186 # If you have `file' or equivalent on your system and you're not sure
6187 # whether `pass_all' will *always* work, you probably want this one.
6189 case $host_os in
6190 aix[4-9]*)
6191 lt_cv_deplibs_check_method=pass_all
6194 beos*)
6195 lt_cv_deplibs_check_method=pass_all
6198 bsdi[45]*)
6199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6200 lt_cv_file_magic_cmd='/usr/bin/file -L'
6201 lt_cv_file_magic_test_file=/shlib/libc.so
6204 cygwin*)
6205 # func_win32_libid is a shell function defined in ltmain.sh
6206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207 lt_cv_file_magic_cmd='func_win32_libid'
6210 mingw* | pw32*)
6211 # Base MSYS/MinGW do not provide the 'file' command needed by
6212 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6213 # unless we find 'file', for example because we are cross-compiling.
6214 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6215 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6217 lt_cv_file_magic_cmd='func_win32_libid'
6218 else
6219 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6220 lt_cv_file_magic_cmd='$OBJDUMP -f'
6224 cegcc*)
6225 # use the weaker test based on 'objdump'. See mingw*.
6226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6227 lt_cv_file_magic_cmd='$OBJDUMP -f'
6230 darwin* | rhapsody*)
6231 lt_cv_deplibs_check_method=pass_all
6234 freebsd* | dragonfly*)
6235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236 case $host_cpu in
6237 i*86 )
6238 # Not sure whether the presence of OpenBSD here was a mistake.
6239 # Let's accept both of them until this is cleared up.
6240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6241 lt_cv_file_magic_cmd=/usr/bin/file
6242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6244 esac
6245 else
6246 lt_cv_deplibs_check_method=pass_all
6250 gnu*)
6251 lt_cv_deplibs_check_method=pass_all
6254 haiku*)
6255 lt_cv_deplibs_check_method=pass_all
6258 hpux10.20* | hpux11*)
6259 lt_cv_file_magic_cmd=/usr/bin/file
6260 case $host_cpu in
6261 ia64*)
6262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6265 hppa*64*)
6266 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]'
6267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6271 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6273 esac
6276 interix[3-9]*)
6277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6281 irix5* | irix6* | nonstopux*)
6282 case $LD in
6283 *-32|*"-32 ") libmagic=32-bit;;
6284 *-n32|*"-n32 ") libmagic=N32;;
6285 *-64|*"-64 ") libmagic=64-bit;;
6286 *) libmagic=never-match;;
6287 esac
6288 lt_cv_deplibs_check_method=pass_all
6291 # This must be Linux ELF.
6292 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6293 lt_cv_deplibs_check_method=pass_all
6296 netbsd*)
6297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6299 else
6300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6304 newos6*)
6305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6310 *nto* | *qnx*)
6311 lt_cv_deplibs_check_method=pass_all
6314 openbsd*)
6315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6317 else
6318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6322 osf3* | osf4* | osf5*)
6323 lt_cv_deplibs_check_method=pass_all
6326 rdos*)
6327 lt_cv_deplibs_check_method=pass_all
6330 solaris*)
6331 lt_cv_deplibs_check_method=pass_all
6334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6335 lt_cv_deplibs_check_method=pass_all
6338 sysv4 | sysv4.3*)
6339 case $host_vendor in
6340 motorola)
6341 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]'
6342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6344 ncr)
6345 lt_cv_deplibs_check_method=pass_all
6347 sequent)
6348 lt_cv_file_magic_cmd='/bin/file'
6349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6351 sni)
6352 lt_cv_file_magic_cmd='/bin/file'
6353 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6354 lt_cv_file_magic_test_file=/lib/libc.so
6356 siemens)
6357 lt_cv_deplibs_check_method=pass_all
6360 lt_cv_deplibs_check_method=pass_all
6362 esac
6365 tpf*)
6366 lt_cv_deplibs_check_method=pass_all
6368 vxworks*)
6369 # Assume VxWorks cross toolchains are built on Linux, possibly
6370 # as canadian for Windows hosts.
6371 lt_cv_deplibs_check_method=pass_all
6373 esac
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6378 file_magic_cmd=$lt_cv_file_magic_cmd
6379 deplibs_check_method=$lt_cv_deplibs_check_method
6380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6393 plugin_option=
6394 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6395 for plugin in $plugin_names; do
6396 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6397 if test x$plugin_so = x$plugin; then
6398 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6400 if test x$plugin_so != x$plugin; then
6401 plugin_option="--plugin $plugin_so"
6402 break
6404 done
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}ar; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_AR+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$AR"; then
6415 ac_cv_prog_AR="$AR" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_AR="${ac_tool_prefix}ar"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6430 IFS=$as_save_IFS
6434 AR=$ac_cv_prog_AR
6435 if test -n "$AR"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6437 $as_echo "$AR" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_AR"; then
6446 ac_ct_AR=$AR
6447 # Extract the first word of "ar", so it can be a program name with args.
6448 set dummy ar; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_AR"; then
6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_ac_ct_AR="ar"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6475 if test -n "$ac_ct_AR"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6477 $as_echo "$ac_ct_AR" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_AR" = x; then
6484 AR="false"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 AR=$ac_ct_AR
6494 else
6495 AR="$ac_cv_prog_AR"
6498 test -z "$AR" && AR=ar
6499 if test -n "$plugin_option"; then
6500 if $AR --help 2>&1 | grep -q "\--plugin"; then
6501 touch conftest.c
6502 $AR $plugin_option rc conftest.a conftest.c
6503 if test "$?" != 0; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6505 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6506 else
6507 AR="$AR $plugin_option"
6509 rm -f conftest.*
6512 test -z "$AR_FLAGS" && AR_FLAGS=cru
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}strip; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_STRIP+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -n "$STRIP"; then
6533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6546 done
6547 done
6548 IFS=$as_save_IFS
6552 STRIP=$ac_cv_prog_STRIP
6553 if test -n "$STRIP"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6555 $as_echo "$STRIP" >&6; }
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6563 if test -z "$ac_cv_prog_STRIP"; then
6564 ac_ct_STRIP=$STRIP
6565 # Extract the first word of "strip", so it can be a program name with args.
6566 set dummy strip; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 if test -n "$ac_ct_STRIP"; then
6573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_ac_ct_STRIP="strip"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6586 done
6587 done
6588 IFS=$as_save_IFS
6592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6593 if test -n "$ac_ct_STRIP"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6595 $as_echo "$ac_ct_STRIP" >&6; }
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6601 if test "x$ac_ct_STRIP" = x; then
6602 STRIP=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610 STRIP=$ac_ct_STRIP
6612 else
6613 STRIP="$ac_cv_prog_STRIP"
6616 test -z "$STRIP" && STRIP=:
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_RANLIB+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 if test -n "$RANLIB"; then
6632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6645 done
6646 done
6647 IFS=$as_save_IFS
6651 RANLIB=$ac_cv_prog_RANLIB
6652 if test -n "$RANLIB"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6654 $as_echo "$RANLIB" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_RANLIB"; then
6663 ac_ct_RANLIB=$RANLIB
6664 # Extract the first word of "ranlib", so it can be a program name with args.
6665 set dummy ranlib; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$ac_ct_RANLIB"; then
6672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_RANLIB="ranlib"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6685 done
6686 done
6687 IFS=$as_save_IFS
6691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6692 if test -n "$ac_ct_RANLIB"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6694 $as_echo "$ac_ct_RANLIB" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_RANLIB" = x; then
6701 RANLIB=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709 RANLIB=$ac_ct_RANLIB
6711 else
6712 RANLIB="$ac_cv_prog_RANLIB"
6715 test -z "$RANLIB" && RANLIB=:
6716 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6717 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6718 RANLIB="$RANLIB $plugin_option"
6727 # Determine commands to create old-style static archives.
6728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6729 old_postinstall_cmds='chmod 644 $oldlib'
6730 old_postuninstall_cmds=
6732 if test -n "$RANLIB"; then
6733 case $host_os in
6734 openbsd*)
6735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6738 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6740 esac
6741 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6744 case $host_os in
6745 darwin*)
6746 lock_old_archive_extraction=yes ;;
6748 lock_old_archive_extraction=no ;;
6749 esac
6789 # If no C compiler was specified, use CC.
6790 LTCC=${LTCC-"$CC"}
6792 # If no C compiler flags were specified, use CFLAGS.
6793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6795 # Allow CC to be a program name with arguments.
6796 compiler=$CC
6799 # Check for command to grab the raw symbol name followed by C symbol from nm.
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6801 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6802 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6806 # These are sane defaults that work on at least a few old systems.
6807 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6809 # Character class describing NM global symbol codes.
6810 symcode='[BCDEGRST]'
6812 # Regexp to match symbols that can be accessed directly from C.
6813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6815 # Define system-specific variables.
6816 case $host_os in
6817 aix*)
6818 symcode='[BCDT]'
6820 cygwin* | mingw* | pw32* | cegcc*)
6821 symcode='[ABCDGISTW]'
6823 hpux*)
6824 if test "$host_cpu" = ia64; then
6825 symcode='[ABCDEGRST]'
6828 irix* | nonstopux*)
6829 symcode='[BCDEGRST]'
6831 osf*)
6832 symcode='[BCDEGQRST]'
6834 solaris*)
6835 symcode='[BCDRT]'
6837 sco3.2v5*)
6838 symcode='[DT]'
6840 sysv4.2uw2*)
6841 symcode='[DT]'
6843 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6844 symcode='[ABDT]'
6846 sysv4)
6847 symcode='[DFNSTU]'
6849 esac
6851 # If we're using GNU nm, then use its standard symbol codes.
6852 case `$NM -V 2>&1` in
6853 *GNU* | *'with BFD'*)
6854 symcode='[ABCDGIRSTW]' ;;
6855 esac
6857 # Transform an extracted symbol line into a proper C declaration.
6858 # Some systems (esp. on ia64) link data and code symbols differently,
6859 # so use this general approach.
6860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6862 # Transform an extracted symbol line into symbol name and symbol address
6863 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6864 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'"
6866 # Handle CRLF in mingw tool chain
6867 opt_cr=
6868 case $build_os in
6869 mingw*)
6870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6872 esac
6874 # Try without a prefix underscore, then with it.
6875 for ac_symprfx in "" "_"; do
6877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6878 symxfrm="\\1 $ac_symprfx\\2 \\2"
6880 # Write the raw and C identifiers.
6881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6882 # Fake it for dumpbin and say T for any non-static function
6883 # and D for any global variable.
6884 # Also find C++ and __fastcall symbols from MSVC++,
6885 # which start with @ or ?.
6886 lt_cv_sys_global_symbol_pipe="$AWK '"\
6887 " {last_section=section; section=\$ 3};"\
6888 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6889 " \$ 0!~/External *\|/{next};"\
6890 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6891 " {if(hide[section]) next};"\
6892 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6893 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6894 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6895 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6896 " ' prfx=^$ac_symprfx"
6897 else
6898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6901 # Check to see that the pipe works correctly.
6902 pipe_works=no
6904 rm -f conftest*
6905 cat > conftest.$ac_ext <<_LT_EOF
6906 #ifdef __cplusplus
6907 extern "C" {
6908 #endif
6909 char nm_test_var;
6910 void nm_test_func(void);
6911 void nm_test_func(void){}
6912 #ifdef __cplusplus
6914 #endif
6915 int main(){nm_test_var='a';nm_test_func();return(0);}
6916 _LT_EOF
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 # Now try to grab the symbols.
6924 nlist=conftest.nm
6925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6926 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6927 ac_status=$?
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929 test $ac_status = 0; } && test -s "$nlist"; then
6930 # Try sorting and uniquifying the output.
6931 if sort "$nlist" | uniq > "$nlist"T; then
6932 mv -f "$nlist"T "$nlist"
6933 else
6934 rm -f "$nlist"T
6937 # Make sure that we snagged all the symbols we need.
6938 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6939 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6940 cat <<_LT_EOF > conftest.$ac_ext
6941 #ifdef __cplusplus
6942 extern "C" {
6943 #endif
6945 _LT_EOF
6946 # Now generate the symbol file.
6947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6949 cat <<_LT_EOF >> conftest.$ac_ext
6951 /* The mapping between symbol names and symbols. */
6952 const struct {
6953 const char *name;
6954 void *address;
6956 lt__PROGRAM__LTX_preloaded_symbols[] =
6958 { "@PROGRAM@", (void *) 0 },
6959 _LT_EOF
6960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6961 cat <<\_LT_EOF >> conftest.$ac_ext
6962 {0, (void *) 0}
6965 /* This works around a problem in FreeBSD linker */
6966 #ifdef FREEBSD_WORKAROUND
6967 static const void *lt_preloaded_setup() {
6968 return lt__PROGRAM__LTX_preloaded_symbols;
6970 #endif
6972 #ifdef __cplusplus
6974 #endif
6975 _LT_EOF
6976 # Now try linking the two files.
6977 mv conftest.$ac_objext conftstm.$ac_objext
6978 lt_save_LIBS="$LIBS"
6979 lt_save_CFLAGS="$CFLAGS"
6980 LIBS="conftstm.$ac_objext"
6981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6983 (eval $ac_link) 2>&5
6984 ac_status=$?
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6987 pipe_works=yes
6989 LIBS="$lt_save_LIBS"
6990 CFLAGS="$lt_save_CFLAGS"
6991 else
6992 echo "cannot find nm_test_func in $nlist" >&5
6994 else
6995 echo "cannot find nm_test_var in $nlist" >&5
6997 else
6998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000 else
7001 echo "$progname: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7004 rm -rf conftest* conftst*
7006 # Do not use the global_symbol_pipe unless it works.
7007 if test "$pipe_works" = yes; then
7008 break
7009 else
7010 lt_cv_sys_global_symbol_pipe=
7012 done
7016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017 lt_cv_sys_global_symbol_to_cdecl=
7019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7021 $as_echo "failed" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7024 $as_echo "ok" >&6; }
7048 # Check whether --enable-libtool-lock was given.
7049 if test "${enable_libtool_lock+set}" = set; then :
7050 enableval=$enable_libtool_lock;
7053 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7055 # Some flags need to be propagated to the compiler or linker for good
7056 # libtool support.
7057 case $host in
7058 ia64-*-hpux*)
7059 # Find out which ABI we are using.
7060 echo 'int i;' > conftest.$ac_ext
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 case `/usr/bin/file conftest.$ac_objext` in
7067 *ELF-32*)
7068 HPUX_IA64_MODE="32"
7070 *ELF-64*)
7071 HPUX_IA64_MODE="64"
7073 esac
7075 rm -rf conftest*
7077 *-*-irix6*)
7078 # Find out which ABI we are using.
7079 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 if test "$lt_cv_prog_gnu_ld" = yes; then
7086 case `/usr/bin/file conftest.$ac_objext` in
7087 *32-bit*)
7088 LD="${LD-ld} -melf32bsmip"
7090 *N32*)
7091 LD="${LD-ld} -melf32bmipn32"
7093 *64-bit*)
7094 LD="${LD-ld} -melf64bmip"
7096 esac
7097 else
7098 case `/usr/bin/file conftest.$ac_objext` in
7099 *32-bit*)
7100 LD="${LD-ld} -32"
7102 *N32*)
7103 LD="${LD-ld} -n32"
7105 *64-bit*)
7106 LD="${LD-ld} -64"
7108 esac
7111 rm -rf conftest*
7114 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7115 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7116 # Find out which ABI we are using.
7117 echo 'int i;' > conftest.$ac_ext
7118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119 (eval $ac_compile) 2>&5
7120 ac_status=$?
7121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122 test $ac_status = 0; }; then
7123 case `/usr/bin/file conftest.o` in
7124 *32-bit*)
7125 case $host in
7126 x86_64-*kfreebsd*-gnu)
7127 LD="${LD-ld} -m elf_i386_fbsd"
7129 x86_64-*linux*)
7130 case `/usr/bin/file conftest.o` in
7131 *x86-64*)
7132 LD="${LD-ld} -m elf32_x86_64"
7135 LD="${LD-ld} -m elf_i386"
7137 esac
7139 powerpc64le-*linux*)
7140 LD="${LD-ld} -m elf32lppclinux"
7142 powerpc64-*linux*)
7143 LD="${LD-ld} -m elf32ppclinux"
7145 s390x-*linux*)
7146 LD="${LD-ld} -m elf_s390"
7148 sparc64-*linux*)
7149 LD="${LD-ld} -m elf32_sparc"
7151 esac
7153 *64-bit*)
7154 case $host in
7155 x86_64-*kfreebsd*-gnu)
7156 LD="${LD-ld} -m elf_x86_64_fbsd"
7158 x86_64-*linux*)
7159 LD="${LD-ld} -m elf_x86_64"
7161 powerpcle-*linux*)
7162 LD="${LD-ld} -m elf64lppc"
7164 powerpc-*linux*)
7165 LD="${LD-ld} -m elf64ppc"
7167 s390*-*linux*|s390*-*tpf*)
7168 LD="${LD-ld} -m elf64_s390"
7170 sparc*-*linux*)
7171 LD="${LD-ld} -m elf64_sparc"
7173 esac
7175 esac
7177 rm -rf conftest*
7180 *-*-sco3.2v5*)
7181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7182 SAVE_CFLAGS="$CFLAGS"
7183 CFLAGS="$CFLAGS -belf"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7185 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7186 if ${lt_cv_cc_needs_belf+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 ac_ext=c
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7199 main ()
7203 return 0;
7205 _ACEOF
7206 if ac_fn_c_try_link "$LINENO"; then :
7207 lt_cv_cc_needs_belf=yes
7208 else
7209 lt_cv_cc_needs_belf=no
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 ac_ext=c
7214 ac_cpp='$CPP $CPPFLAGS'
7215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7221 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7224 CFLAGS="$SAVE_CFLAGS"
7227 sparc*-*solaris*)
7228 # Find out which ABI we are using.
7229 echo 'int i;' > conftest.$ac_ext
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 case `/usr/bin/file conftest.o` in
7236 *64-bit*)
7237 case $lt_cv_prog_gnu_ld in
7238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7241 LD="${LD-ld} -64"
7244 esac
7246 esac
7248 rm -rf conftest*
7250 esac
7252 need_locks="$enable_libtool_lock"
7255 case $host_os in
7256 rhapsody* | darwin*)
7257 if test -n "$ac_tool_prefix"; then
7258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$DSYMUTIL"; then
7266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7279 done
7280 done
7281 IFS=$as_save_IFS
7285 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7286 if test -n "$DSYMUTIL"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7288 $as_echo "$DSYMUTIL" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7296 if test -z "$ac_cv_prog_DSYMUTIL"; then
7297 ac_ct_DSYMUTIL=$DSYMUTIL
7298 # Extract the first word of "dsymutil", so it can be a program name with args.
7299 set dummy dsymutil; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$ac_ct_DSYMUTIL"; then
7306 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7321 IFS=$as_save_IFS
7325 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7326 if test -n "$ac_ct_DSYMUTIL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7328 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7334 if test "x$ac_ct_DSYMUTIL" = x; then
7335 DSYMUTIL=":"
7336 else
7337 case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343 DSYMUTIL=$ac_ct_DSYMUTIL
7345 else
7346 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7349 if test -n "$ac_tool_prefix"; then
7350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_NMEDIT+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$NMEDIT"; then
7358 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7371 done
7372 done
7373 IFS=$as_save_IFS
7377 NMEDIT=$ac_cv_prog_NMEDIT
7378 if test -n "$NMEDIT"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7380 $as_echo "$NMEDIT" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7388 if test -z "$ac_cv_prog_NMEDIT"; then
7389 ac_ct_NMEDIT=$NMEDIT
7390 # Extract the first word of "nmedit", so it can be a program name with args.
7391 set dummy nmedit; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$ac_ct_NMEDIT"; then
7398 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7411 done
7412 done
7413 IFS=$as_save_IFS
7417 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7418 if test -n "$ac_ct_NMEDIT"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7420 $as_echo "$ac_ct_NMEDIT" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 if test "x$ac_ct_NMEDIT" = x; then
7427 NMEDIT=":"
7428 else
7429 case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435 NMEDIT=$ac_ct_NMEDIT
7437 else
7438 NMEDIT="$ac_cv_prog_NMEDIT"
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_LIPO+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$LIPO"; then
7450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 LIPO=$ac_cv_prog_LIPO
7470 if test -n "$LIPO"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7472 $as_echo "$LIPO" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7480 if test -z "$ac_cv_prog_LIPO"; then
7481 ac_ct_LIPO=$LIPO
7482 # Extract the first word of "lipo", so it can be a program name with args.
7483 set dummy lipo; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$ac_ct_LIPO"; then
7490 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_LIPO="lipo"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7503 done
7504 done
7505 IFS=$as_save_IFS
7509 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7510 if test -n "$ac_ct_LIPO"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7512 $as_echo "$ac_ct_LIPO" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 if test "x$ac_ct_LIPO" = x; then
7519 LIPO=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 LIPO=$ac_ct_LIPO
7529 else
7530 LIPO="$ac_cv_prog_LIPO"
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}otool; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_OTOOL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$OTOOL"; then
7542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7555 done
7556 done
7557 IFS=$as_save_IFS
7561 OTOOL=$ac_cv_prog_OTOOL
7562 if test -n "$OTOOL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7564 $as_echo "$OTOOL" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7572 if test -z "$ac_cv_prog_OTOOL"; then
7573 ac_ct_OTOOL=$OTOOL
7574 # Extract the first word of "otool", so it can be a program name with args.
7575 set dummy otool; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$ac_ct_OTOOL"; then
7582 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_ac_ct_OTOOL="otool"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7601 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7602 if test -n "$ac_ct_OTOOL"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7604 $as_echo "$ac_ct_OTOOL" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7610 if test "x$ac_ct_OTOOL" = x; then
7611 OTOOL=":"
7612 else
7613 case $cross_compiling:$ac_tool_warned in
7614 yes:)
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7618 esac
7619 OTOOL=$ac_ct_OTOOL
7621 else
7622 OTOOL="$ac_cv_prog_OTOOL"
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7627 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_OTOOL64+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$OTOOL64"; then
7634 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7647 done
7648 done
7649 IFS=$as_save_IFS
7653 OTOOL64=$ac_cv_prog_OTOOL64
7654 if test -n "$OTOOL64"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7656 $as_echo "$OTOOL64" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7664 if test -z "$ac_cv_prog_OTOOL64"; then
7665 ac_ct_OTOOL64=$OTOOL64
7666 # Extract the first word of "otool64", so it can be a program name with args.
7667 set dummy otool64; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$ac_ct_OTOOL64"; then
7674 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_ac_ct_OTOOL64="otool64"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7687 done
7688 done
7689 IFS=$as_save_IFS
7693 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7694 if test -n "$ac_ct_OTOOL64"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7696 $as_echo "$ac_ct_OTOOL64" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7702 if test "x$ac_ct_OTOOL64" = x; then
7703 OTOOL64=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706 yes:)
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7710 esac
7711 OTOOL64=$ac_ct_OTOOL64
7713 else
7714 OTOOL64="$ac_cv_prog_OTOOL64"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7744 $as_echo_n "checking for -single_module linker flag... " >&6; }
7745 if ${lt_cv_apple_cc_single_mod+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 lt_cv_apple_cc_single_mod=no
7749 if test -z "${LT_MULTI_MODULE}"; then
7750 # By default we will add the -single_module flag. You can override
7751 # by either setting the environment variable LT_MULTI_MODULE
7752 # non-empty at configure time, or by adding -multi_module to the
7753 # link flags.
7754 rm -rf libconftest.dylib*
7755 echo "int foo(void){return 1;}" > conftest.c
7756 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7757 -dynamiclib -Wl,-single_module conftest.c" >&5
7758 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7759 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7760 _lt_result=$?
7761 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7762 lt_cv_apple_cc_single_mod=yes
7763 else
7764 cat conftest.err >&5
7766 rm -rf libconftest.dylib*
7767 rm -f conftest.*
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7771 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7773 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7774 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 lt_cv_ld_exported_symbols_list=no
7778 save_LDFLAGS=$LDFLAGS
7779 echo "_main" > conftest.sym
7780 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7785 main ()
7789 return 0;
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"; then :
7793 lt_cv_ld_exported_symbols_list=yes
7794 else
7795 lt_cv_ld_exported_symbols_list=no
7797 rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 LDFLAGS="$save_LDFLAGS"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7803 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7805 $as_echo_n "checking for -force_load linker flag... " >&6; }
7806 if ${lt_cv_ld_force_load+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 lt_cv_ld_force_load=no
7810 cat > conftest.c << _LT_EOF
7811 int forced_loaded() { return 2;}
7812 _LT_EOF
7813 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7814 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7815 echo "$AR cru libconftest.a conftest.o" >&5
7816 $AR cru libconftest.a conftest.o 2>&5
7817 cat > conftest.c << _LT_EOF
7818 int main() { return 0;}
7819 _LT_EOF
7820 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7821 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7822 _lt_result=$?
7823 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7824 lt_cv_ld_force_load=yes
7825 else
7826 cat conftest.err >&5
7828 rm -f conftest.err libconftest.a conftest conftest.c
7829 rm -rf conftest.dSYM
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7833 $as_echo "$lt_cv_ld_force_load" >&6; }
7834 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7835 # build without first building modern cctools / linker.
7836 case $host_cpu-$host_os in
7837 *-rhapsody* | *-darwin1.[012])
7838 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7839 *-darwin1.*)
7840 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7841 *-darwin*)
7842 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7843 # deployment target is forced to an earlier version.
7844 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7845 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
7847 10.[012][,.]*)
7848 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7852 esac
7854 esac
7855 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7856 _lt_dar_single_mod='$single_module'
7858 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7859 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7860 else
7861 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7863 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7864 _lt_dsymutil='~$DSYMUTIL $lib || :'
7865 else
7866 _lt_dsymutil=
7869 esac
7871 ac_ext=c
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7877 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7878 # On Suns, sometimes $CPP names a directory.
7879 if test -n "$CPP" && test -d "$CPP"; then
7880 CPP=
7882 if test -z "$CPP"; then
7883 if ${ac_cv_prog_CPP+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 # Double quotes because CPP needs to be expanded
7887 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7889 ac_preproc_ok=false
7890 for ac_c_preproc_warn_flag in '' yes
7892 # Use a header file that comes with gcc, so configuring glibc
7893 # with a fresh cross-compiler works.
7894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7895 # <limits.h> exists even on freestanding compilers.
7896 # On the NeXT, cc -E runs the code through the compiler's parser,
7897 # not just through cpp. "Syntax error" is here to catch this case.
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 #ifdef __STDC__
7901 # include <limits.h>
7902 #else
7903 # include <assert.h>
7904 #endif
7905 Syntax error
7906 _ACEOF
7907 if ac_fn_c_try_cpp "$LINENO"; then :
7909 else
7910 # Broken: fails on valid input.
7911 continue
7913 rm -f conftest.err conftest.i conftest.$ac_ext
7915 # OK, works on sane cases. Now check whether nonexistent headers
7916 # can be detected and how.
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <ac_nonexistent.h>
7920 _ACEOF
7921 if ac_fn_c_try_cpp "$LINENO"; then :
7922 # Broken: success on invalid input.
7923 continue
7924 else
7925 # Passes both tests.
7926 ac_preproc_ok=:
7927 break
7929 rm -f conftest.err conftest.i conftest.$ac_ext
7931 done
7932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7933 rm -f conftest.i conftest.err conftest.$ac_ext
7934 if $ac_preproc_ok; then :
7935 break
7938 done
7939 ac_cv_prog_CPP=$CPP
7942 CPP=$ac_cv_prog_CPP
7943 else
7944 ac_cv_prog_CPP=$CPP
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7947 $as_echo "$CPP" >&6; }
7948 ac_preproc_ok=false
7949 for ac_c_preproc_warn_flag in '' yes
7951 # Use a header file that comes with gcc, so configuring glibc
7952 # with a fresh cross-compiler works.
7953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 # <limits.h> exists even on freestanding compilers.
7955 # On the NeXT, cc -E runs the code through the compiler's parser,
7956 # not just through cpp. "Syntax error" is here to catch this case.
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #ifdef __STDC__
7960 # include <limits.h>
7961 #else
7962 # include <assert.h>
7963 #endif
7964 Syntax error
7965 _ACEOF
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7968 else
7969 # Broken: fails on valid input.
7970 continue
7972 rm -f conftest.err conftest.i conftest.$ac_ext
7974 # OK, works on sane cases. Now check whether nonexistent headers
7975 # can be detected and how.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #include <ac_nonexistent.h>
7979 _ACEOF
7980 if ac_fn_c_try_cpp "$LINENO"; then :
7981 # Broken: success on invalid input.
7982 continue
7983 else
7984 # Passes both tests.
7985 ac_preproc_ok=:
7986 break
7988 rm -f conftest.err conftest.i conftest.$ac_ext
7990 done
7991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7992 rm -f conftest.i conftest.err conftest.$ac_ext
7993 if $ac_preproc_ok; then :
7995 else
7996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7998 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7999 See \`config.log' for more details" "$LINENO" 5; }
8002 ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8010 $as_echo_n "checking for ANSI C header files... " >&6; }
8011 if ${ac_cv_header_stdc+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #include <stdlib.h>
8017 #include <stdarg.h>
8018 #include <string.h>
8019 #include <float.h>
8022 main ()
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_header_stdc=yes
8031 else
8032 ac_cv_header_stdc=no
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 if test $ac_cv_header_stdc = yes; then
8037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <string.h>
8042 _ACEOF
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "memchr" >/dev/null 2>&1; then :
8046 else
8047 ac_cv_header_stdc=no
8049 rm -f conftest*
8053 if test $ac_cv_header_stdc = yes; then
8054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <stdlib.h>
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "free" >/dev/null 2>&1; then :
8063 else
8064 ac_cv_header_stdc=no
8066 rm -f conftest*
8070 if test $ac_cv_header_stdc = yes; then
8071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8072 if test "$cross_compiling" = yes; then :
8074 else
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <ctype.h>
8078 #include <stdlib.h>
8079 #if ((' ' & 0x0FF) == 0x020)
8080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082 #else
8083 # define ISLOWER(c) \
8084 (('a' <= (c) && (c) <= 'i') \
8085 || ('j' <= (c) && (c) <= 'r') \
8086 || ('s' <= (c) && (c) <= 'z'))
8087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8088 #endif
8090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8092 main ()
8094 int i;
8095 for (i = 0; i < 256; i++)
8096 if (XOR (islower (i), ISLOWER (i))
8097 || toupper (i) != TOUPPER (i))
8098 return 2;
8099 return 0;
8101 _ACEOF
8102 if ac_fn_c_try_run "$LINENO"; then :
8104 else
8105 ac_cv_header_stdc=no
8107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108 conftest.$ac_objext conftest.beam conftest.$ac_ext
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8114 $as_echo "$ac_cv_header_stdc" >&6; }
8115 if test $ac_cv_header_stdc = yes; then
8117 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8122 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8123 inttypes.h stdint.h unistd.h
8124 do :
8125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8129 cat >>confdefs.h <<_ACEOF
8130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8131 _ACEOF
8135 done
8138 for ac_header in dlfcn.h
8139 do :
8140 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8142 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DLFCN_H 1
8145 _ACEOF
8149 done
8156 # Set options
8160 enable_dlopen=no
8163 enable_win32_dll=no
8166 # Check whether --enable-shared was given.
8167 if test "${enable_shared+set}" = set; then :
8168 enableval=$enable_shared; p=${PACKAGE-default}
8169 case $enableval in
8170 yes) enable_shared=yes ;;
8171 no) enable_shared=no ;;
8173 enable_shared=no
8174 # Look at the argument we got. We use all the common list separators.
8175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176 for pkg in $enableval; do
8177 IFS="$lt_save_ifs"
8178 if test "X$pkg" = "X$p"; then
8179 enable_shared=yes
8181 done
8182 IFS="$lt_save_ifs"
8184 esac
8185 else
8186 enable_shared=yes
8197 # Check whether --enable-static was given.
8198 if test "${enable_static+set}" = set; then :
8199 enableval=$enable_static; p=${PACKAGE-default}
8200 case $enableval in
8201 yes) enable_static=yes ;;
8202 no) enable_static=no ;;
8204 enable_static=no
8205 # Look at the argument we got. We use all the common list separators.
8206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8207 for pkg in $enableval; do
8208 IFS="$lt_save_ifs"
8209 if test "X$pkg" = "X$p"; then
8210 enable_static=yes
8212 done
8213 IFS="$lt_save_ifs"
8215 esac
8216 else
8217 enable_static=yes
8229 # Check whether --with-pic was given.
8230 if test "${with_pic+set}" = set; then :
8231 withval=$with_pic; pic_mode="$withval"
8232 else
8233 pic_mode=default
8237 test -z "$pic_mode" && pic_mode=default
8245 # Check whether --enable-fast-install was given.
8246 if test "${enable_fast_install+set}" = set; then :
8247 enableval=$enable_fast_install; p=${PACKAGE-default}
8248 case $enableval in
8249 yes) enable_fast_install=yes ;;
8250 no) enable_fast_install=no ;;
8252 enable_fast_install=no
8253 # Look at the argument we got. We use all the common list separators.
8254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8255 for pkg in $enableval; do
8256 IFS="$lt_save_ifs"
8257 if test "X$pkg" = "X$p"; then
8258 enable_fast_install=yes
8260 done
8261 IFS="$lt_save_ifs"
8263 esac
8264 else
8265 enable_fast_install=yes
8278 # This can be used to rebuild libtool when needed
8279 LIBTOOL_DEPS="$ltmain"
8281 # Always use our own libtool.
8282 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8309 test -z "$LN_S" && LN_S="ln -s"
8324 if test -n "${ZSH_VERSION+set}" ; then
8325 setopt NO_GLOB_SUBST
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329 $as_echo_n "checking for objdir... " >&6; }
8330 if ${lt_cv_objdir+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 rm -f .libs 2>/dev/null
8334 mkdir .libs 2>/dev/null
8335 if test -d .libs; then
8336 lt_cv_objdir=.libs
8337 else
8338 # MS-DOS does not allow filenames that begin with a dot.
8339 lt_cv_objdir=_libs
8341 rmdir .libs 2>/dev/null
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344 $as_echo "$lt_cv_objdir" >&6; }
8345 objdir=$lt_cv_objdir
8351 cat >>confdefs.h <<_ACEOF
8352 #define LT_OBJDIR "$lt_cv_objdir/"
8353 _ACEOF
8358 case $host_os in
8359 aix3*)
8360 # AIX sometimes has problems with the GCC collect2 program. For some
8361 # reason, if we set the COLLECT_NAMES environment variable, the problems
8362 # vanish in a puff of smoke.
8363 if test "X${COLLECT_NAMES+set}" != Xset; then
8364 COLLECT_NAMES=
8365 export COLLECT_NAMES
8368 esac
8370 # Global variables:
8371 ofile=libtool
8372 can_build_shared=yes
8374 # All known linkers require a `.a' archive for static linking (except MSVC,
8375 # which needs '.lib').
8376 libext=a
8378 with_gnu_ld="$lt_cv_prog_gnu_ld"
8380 old_CC="$CC"
8381 old_CFLAGS="$CFLAGS"
8383 # Set sane defaults for various variables
8384 test -z "$CC" && CC=cc
8385 test -z "$LTCC" && LTCC=$CC
8386 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8387 test -z "$LD" && LD=ld
8388 test -z "$ac_objext" && ac_objext=o
8390 for cc_temp in $compiler""; do
8391 case $cc_temp in
8392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394 \-*) ;;
8395 *) break;;
8396 esac
8397 done
8398 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8401 # Only perform the check for file, if the check method requires it
8402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8403 case $deplibs_check_method in
8404 file_magic*)
8405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8407 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8408 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 case $MAGIC_CMD in
8412 [\\/*] | ?:[\\/]*)
8413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8416 lt_save_MAGIC_CMD="$MAGIC_CMD"
8417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419 for ac_dir in $ac_dummy; do
8420 IFS="$lt_save_ifs"
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/${ac_tool_prefix}file; then
8423 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424 if test -n "$file_magic_test_file"; then
8425 case $deplibs_check_method in
8426 "file_magic "*)
8427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430 $EGREP "$file_magic_regex" > /dev/null; then
8432 else
8433 cat <<_LT_EOF 1>&2
8435 *** Warning: the command libtool uses to detect shared libraries,
8436 *** $file_magic_cmd, produces output that libtool cannot recognize.
8437 *** The result is that libtool may fail to recognize shared libraries
8438 *** as such. This will affect the creation of libtool libraries that
8439 *** depend on shared libraries, but programs linked with such libtool
8440 *** libraries will work regardless of this problem. Nevertheless, you
8441 *** may want to report the problem to your system manager and/or to
8442 *** bug-libtool@gnu.org
8444 _LT_EOF
8445 fi ;;
8446 esac
8448 break
8450 done
8451 IFS="$lt_save_ifs"
8452 MAGIC_CMD="$lt_save_MAGIC_CMD"
8454 esac
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if test -n "$MAGIC_CMD"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8460 $as_echo "$MAGIC_CMD" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8470 if test -z "$lt_cv_path_MAGIC_CMD"; then
8471 if test -n "$ac_tool_prefix"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8473 $as_echo_n "checking for file... " >&6; }
8474 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 case $MAGIC_CMD in
8478 [\\/*] | ?:[\\/]*)
8479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8482 lt_save_MAGIC_CMD="$MAGIC_CMD"
8483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8485 for ac_dir in $ac_dummy; do
8486 IFS="$lt_save_ifs"
8487 test -z "$ac_dir" && ac_dir=.
8488 if test -f $ac_dir/file; then
8489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8490 if test -n "$file_magic_test_file"; then
8491 case $deplibs_check_method in
8492 "file_magic "*)
8493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8496 $EGREP "$file_magic_regex" > /dev/null; then
8498 else
8499 cat <<_LT_EOF 1>&2
8501 *** Warning: the command libtool uses to detect shared libraries,
8502 *** $file_magic_cmd, produces output that libtool cannot recognize.
8503 *** The result is that libtool may fail to recognize shared libraries
8504 *** as such. This will affect the creation of libtool libraries that
8505 *** depend on shared libraries, but programs linked with such libtool
8506 *** libraries will work regardless of this problem. Nevertheless, you
8507 *** may want to report the problem to your system manager and/or to
8508 *** bug-libtool@gnu.org
8510 _LT_EOF
8511 fi ;;
8512 esac
8514 break
8516 done
8517 IFS="$lt_save_ifs"
8518 MAGIC_CMD="$lt_save_MAGIC_CMD"
8520 esac
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if test -n "$MAGIC_CMD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8526 $as_echo "$MAGIC_CMD" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8533 else
8534 MAGIC_CMD=:
8540 esac
8542 # Use C for the default configuration in the libtool script
8544 lt_save_CC="$CC"
8545 ac_ext=c
8546 ac_cpp='$CPP $CPPFLAGS'
8547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8552 # Source file extension for C test sources.
8553 ac_ext=c
8555 # Object file extension for compiled C test sources.
8556 objext=o
8557 objext=$objext
8559 # Code to be used in simple compile tests
8560 lt_simple_compile_test_code="int some_variable = 0;"
8562 # Code to be used in simple link tests
8563 lt_simple_link_test_code='int main(){return(0);}'
8571 # If no C compiler was specified, use CC.
8572 LTCC=${LTCC-"$CC"}
8574 # If no C compiler flags were specified, use CFLAGS.
8575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8577 # Allow CC to be a program name with arguments.
8578 compiler=$CC
8580 # Save the default compiler, since it gets overwritten when the other
8581 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8582 compiler_DEFAULT=$CC
8584 # save warnings/boilerplate of simple test code
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8588 _lt_compiler_boilerplate=`cat conftest.err`
8589 $RM conftest*
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594 _lt_linker_boilerplate=`cat conftest.err`
8595 $RM -r conftest*
8598 ## CAVEAT EMPTOR:
8599 ## There is no encapsulation within the following macros, do not change
8600 ## the running order or otherwise move them around unless you know exactly
8601 ## what you are doing...
8602 if test -n "$compiler"; then
8604 lt_prog_compiler_no_builtin_flag=
8606 if test "$GCC" = yes; then
8607 case $cc_basename in
8608 nvcc*)
8609 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8611 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8612 esac
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8615 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8616 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 lt_cv_prog_compiler_rtti_exceptions=no
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622 lt_compiler_flag="-fno-rtti -fno-exceptions"
8623 # Insert the option either (1) after the last *FLAGS variable, or
8624 # (2) before a word containing "conftest.", or (3) at the end.
8625 # Note that $ac_compile itself does not contain backslashes and begins
8626 # with a dollar sign (not a hyphen), so the echo should work correctly.
8627 # The option is referenced via a variable to avoid confusing sed.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>conftest.err)
8634 ac_status=$?
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s "$ac_outfile"; then
8638 # The compiler can only warn and ignore the option if not recognized
8639 # So say no if there are warnings other than the usual output.
8640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler_rtti_exceptions=yes
8646 $RM conftest*
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8650 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8654 else
8665 lt_prog_compiler_wl=
8666 lt_prog_compiler_pic=
8667 lt_prog_compiler_static=
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8670 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8672 if test "$GCC" = yes; then
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_static='-static'
8676 case $host_os in
8677 aix*)
8678 # All AIX code is PIC.
8679 if test "$host_cpu" = ia64; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static='-Bstatic'
8683 lt_prog_compiler_pic='-fPIC'
8686 amigaos*)
8687 case $host_cpu in
8688 powerpc)
8689 # see comment about AmigaOS4 .so support
8690 lt_prog_compiler_pic='-fPIC'
8692 m68k)
8693 # FIXME: we need at least 68020 code to build shared libraries, but
8694 # adding the `-m68020' flag to GCC prevents building anything better,
8695 # like `-m68040'.
8696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8698 esac
8701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8702 # PIC is the default for these OSes.
8705 mingw* | cygwin* | pw32* | os2* | cegcc*)
8706 # This hack is so that the source file can tell whether it is being
8707 # built for inclusion in a dll (and should export symbols for example).
8708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8709 # (--disable-auto-import) libraries
8710 lt_prog_compiler_pic='-DDLL_EXPORT'
8713 darwin* | rhapsody*)
8714 # PIC is the default on this platform
8715 # Common symbols not allowed in MH_DYLIB files
8716 lt_prog_compiler_pic='-fno-common'
8719 haiku*)
8720 # PIC is the default for Haiku.
8721 # The "-static" flag exists, but is broken.
8722 lt_prog_compiler_static=
8725 hpux*)
8726 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8727 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8728 # sets the default TLS model and affects inlining.
8729 case $host_cpu in
8730 hppa*64*)
8731 # +Z the default
8734 lt_prog_compiler_pic='-fPIC'
8736 esac
8739 interix[3-9]*)
8740 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8741 # Instead, we relocate shared libraries at runtime.
8744 msdosdjgpp*)
8745 # Just because we use GCC doesn't mean we suddenly get shared libraries
8746 # on systems that don't support them.
8747 lt_prog_compiler_can_build_shared=no
8748 enable_shared=no
8751 *nto* | *qnx*)
8752 # QNX uses GNU C++, but need to define -shared option too, otherwise
8753 # it will coredump.
8754 lt_prog_compiler_pic='-fPIC -shared'
8757 sysv4*MP*)
8758 if test -d /usr/nec; then
8759 lt_prog_compiler_pic=-Kconform_pic
8764 lt_prog_compiler_pic='-fPIC'
8766 esac
8768 case $cc_basename in
8769 nvcc*) # Cuda Compiler Driver 2.2
8770 lt_prog_compiler_wl='-Xlinker '
8771 lt_prog_compiler_pic='-Xcompiler -fPIC'
8773 esac
8774 else
8775 # PORTME Check for flag to pass linker flags through the system compiler.
8776 case $host_os in
8777 aix*)
8778 lt_prog_compiler_wl='-Wl,'
8779 if test "$host_cpu" = ia64; then
8780 # AIX 5 now supports IA64 processor
8781 lt_prog_compiler_static='-Bstatic'
8782 else
8783 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8787 mingw* | cygwin* | pw32* | os2* | cegcc*)
8788 # This hack is so that the source file can tell whether it is being
8789 # built for inclusion in a dll (and should export symbols for example).
8790 lt_prog_compiler_pic='-DDLL_EXPORT'
8793 hpux9* | hpux10* | hpux11*)
8794 lt_prog_compiler_wl='-Wl,'
8795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8796 # not for PA HP-UX.
8797 case $host_cpu in
8798 hppa*64*|ia64*)
8799 # +Z the default
8802 lt_prog_compiler_pic='+Z'
8804 esac
8805 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806 lt_prog_compiler_static='${wl}-a ${wl}archive'
8809 irix5* | irix6* | nonstopux*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # PIC (with -KPIC) is the default.
8812 lt_prog_compiler_static='-non_shared'
8815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8816 case $cc_basename in
8817 # old Intel for x86_64 which still supported -KPIC.
8818 ecc*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-static'
8823 # icc used to be incompatible with GCC.
8824 # ICC 10 doesn't accept -KPIC any more.
8825 icc* | ifort*)
8826 lt_prog_compiler_wl='-Wl,'
8827 lt_prog_compiler_pic='-fPIC'
8828 lt_prog_compiler_static='-static'
8830 # Lahey Fortran 8.1.
8831 lf95*)
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='--shared'
8834 lt_prog_compiler_static='--static'
8836 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8837 # Portland Group compilers (*not* the Pentium gcc compiler,
8838 # which looks to be a dead project)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fpic'
8841 lt_prog_compiler_static='-Bstatic'
8843 ccc*)
8844 lt_prog_compiler_wl='-Wl,'
8845 # All Alpha code is PIC.
8846 lt_prog_compiler_static='-non_shared'
8848 xl* | bgxl* | bgf* | mpixl*)
8849 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-qpic'
8852 lt_prog_compiler_static='-qstaticlink'
8855 case `$CC -V 2>&1 | sed 5q` in
8856 *Sun\ F* | *Sun*Fortran*)
8857 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 lt_prog_compiler_wl=''
8862 *Sun\ C*)
8863 # Sun C 5.9
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_wl='-Wl,'
8868 esac
8870 esac
8873 newsos6)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8878 *nto* | *qnx*)
8879 # QNX uses GNU C++, but need to define -shared option too, otherwise
8880 # it will coredump.
8881 lt_prog_compiler_pic='-fPIC -shared'
8884 osf3* | osf4* | osf5*)
8885 lt_prog_compiler_wl='-Wl,'
8886 # All OSF/1 code is PIC.
8887 lt_prog_compiler_static='-non_shared'
8890 rdos*)
8891 lt_prog_compiler_static='-non_shared'
8894 solaris*)
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 case $cc_basename in
8898 f77* | f90* | f95*)
8899 lt_prog_compiler_wl='-Qoption ld ';;
8901 lt_prog_compiler_wl='-Wl,';;
8902 esac
8905 sunos4*)
8906 lt_prog_compiler_wl='-Qoption ld '
8907 lt_prog_compiler_pic='-PIC'
8908 lt_prog_compiler_static='-Bstatic'
8911 sysv4 | sysv4.2uw2* | sysv4.3*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8917 sysv4*MP*)
8918 if test -d /usr/nec ;then
8919 lt_prog_compiler_pic='-Kconform_pic'
8920 lt_prog_compiler_static='-Bstatic'
8924 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8930 unicos*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_can_build_shared=no
8935 uts4*)
8936 lt_prog_compiler_pic='-pic'
8937 lt_prog_compiler_static='-Bstatic'
8941 lt_prog_compiler_can_build_shared=no
8943 esac
8946 case $host_os in
8947 # For platforms which do not support PIC, -DPIC is meaningless:
8948 *djgpp*)
8949 lt_prog_compiler_pic=
8952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8954 esac
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8956 $as_echo "$lt_prog_compiler_pic" >&6; }
8964 # Check to make sure the PIC flag actually works.
8966 if test -n "$lt_prog_compiler_pic"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8968 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8969 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 lt_cv_prog_compiler_pic_works=no
8973 ac_outfile=conftest.$ac_objext
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8976 # Insert the option either (1) after the last *FLAGS variable, or
8977 # (2) before a word containing "conftest.", or (3) at the end.
8978 # Note that $ac_compile itself does not contain backslashes and begins
8979 # with a dollar sign (not a hyphen), so the echo should work correctly.
8980 # The option is referenced via a variable to avoid confusing sed.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>conftest.err)
8987 ac_status=$?
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s "$ac_outfile"; then
8991 # The compiler can only warn and ignore the option if not recognized
8992 # So say no if there are warnings other than the usual output.
8993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler_pic_works=yes
8999 $RM conftest*
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9003 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9005 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9006 case $lt_prog_compiler_pic in
9007 "" | " "*) ;;
9008 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9009 esac
9010 else
9011 lt_prog_compiler_pic=
9012 lt_prog_compiler_can_build_shared=no
9023 # Check to make sure the static flag actually works.
9025 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9027 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9028 if ${lt_cv_prog_compiler_static_works+:} false; then :
9029 $as_echo_n "(cached) " >&6
9030 else
9031 lt_cv_prog_compiler_static_works=no
9032 save_LDFLAGS="$LDFLAGS"
9033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9036 # The linker can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 if test -s conftest.err; then
9039 # Append any errors to the config.log.
9040 cat conftest.err 1>&5
9041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043 if diff conftest.exp conftest.er2 >/dev/null; then
9044 lt_cv_prog_compiler_static_works=yes
9046 else
9047 lt_cv_prog_compiler_static_works=yes
9050 $RM -r conftest*
9051 LDFLAGS="$save_LDFLAGS"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9055 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9057 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9059 else
9060 lt_prog_compiler_static=
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9071 if ${lt_cv_prog_compiler_c_o+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 lt_cv_prog_compiler_c_o=no
9075 $RM -r conftest 2>/dev/null
9076 mkdir conftest
9077 cd conftest
9078 mkdir out
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="-o out/conftest2.$ac_objext"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>out/conftest.err)
9092 ac_status=$?
9093 cat out/conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9096 then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_c_o=yes
9105 chmod u+w . 2>&5
9106 $RM conftest*
9107 # SGI C++ compiler will create directory out/ii_files/ for
9108 # template instantiation
9109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9110 $RM out/* && rmdir out
9111 cd ..
9112 $RM -r conftest
9113 $RM conftest*
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9125 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9126 if ${lt_cv_prog_compiler_c_o+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 lt_cv_prog_compiler_c_o=no
9130 $RM -r conftest 2>/dev/null
9131 mkdir conftest
9132 cd conftest
9133 mkdir out
9134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136 lt_compiler_flag="-o out/conftest2.$ac_objext"
9137 # Insert the option either (1) after the last *FLAGS variable, or
9138 # (2) before a word containing "conftest.", or (3) at the end.
9139 # Note that $ac_compile itself does not contain backslashes and begins
9140 # with a dollar sign (not a hyphen), so the echo should work correctly.
9141 lt_compile=`echo "$ac_compile" | $SED \
9142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144 -e 's:$: $lt_compiler_flag:'`
9145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146 (eval "$lt_compile" 2>out/conftest.err)
9147 ac_status=$?
9148 cat out/conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9151 then
9152 # The compiler can only warn and ignore the option if not recognized
9153 # So say no if there are warnings
9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_c_o=yes
9160 chmod u+w . 2>&5
9161 $RM conftest*
9162 # SGI C++ compiler will create directory out/ii_files/ for
9163 # template instantiation
9164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9165 $RM out/* && rmdir out
9166 cd ..
9167 $RM -r conftest
9168 $RM conftest*
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9172 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9177 hard_links="nottested"
9178 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9179 # do not overwrite the value of need_locks provided by the user
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9181 $as_echo_n "checking if we can lock with hard links... " >&6; }
9182 hard_links=yes
9183 $RM conftest*
9184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9185 touch conftest.a
9186 ln conftest.a conftest.b 2>&5 || hard_links=no
9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9189 $as_echo "$hard_links" >&6; }
9190 if test "$hard_links" = no; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9192 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9193 need_locks=warn
9195 else
9196 need_locks=no
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9205 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9207 runpath_var=
9208 allow_undefined_flag=
9209 always_export_symbols=no
9210 archive_cmds=
9211 archive_expsym_cmds=
9212 compiler_needs_object=no
9213 enable_shared_with_static_runtimes=no
9214 export_dynamic_flag_spec=
9215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9216 hardcode_automatic=no
9217 hardcode_direct=no
9218 hardcode_direct_absolute=no
9219 hardcode_libdir_flag_spec=
9220 hardcode_libdir_flag_spec_ld=
9221 hardcode_libdir_separator=
9222 hardcode_minus_L=no
9223 hardcode_shlibpath_var=unsupported
9224 inherit_rpath=no
9225 link_all_deplibs=unknown
9226 module_cmds=
9227 module_expsym_cmds=
9228 old_archive_from_new_cmds=
9229 old_archive_from_expsyms_cmds=
9230 thread_safe_flag_spec=
9231 whole_archive_flag_spec=
9232 # include_expsyms should be a list of space-separated symbols to be *always*
9233 # included in the symbol list
9234 include_expsyms=
9235 # exclude_expsyms can be an extended regexp of symbols to exclude
9236 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9237 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9238 # as well as any symbol that contains `d'.
9239 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9240 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9241 # platforms (ab)use it in PIC code, but their linkers get confused if
9242 # the symbol is explicitly referenced. Since portable code cannot
9243 # rely on this symbol name, it's probably fine to never include it in
9244 # preloaded symbol tables.
9245 # Exclude shared library initialization/finalization symbols.
9246 extract_expsyms_cmds=
9248 case $host_os in
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9251 # When not using gcc, we currently assume that we are using
9252 # Microsoft Visual C++.
9253 if test "$GCC" != yes; then
9254 with_gnu_ld=no
9257 interix*)
9258 # we just hope/assume this is gcc and not c89 (= MSVC++)
9259 with_gnu_ld=yes
9261 openbsd*)
9262 with_gnu_ld=no
9264 esac
9266 ld_shlibs=yes
9268 # On some targets, GNU ld is compatible enough with the native linker
9269 # that we're better off using the native interface for both.
9270 lt_use_gnu_ld_interface=no
9271 if test "$with_gnu_ld" = yes; then
9272 case $host_os in
9273 aix*)
9274 # The AIX port of GNU ld has always aspired to compatibility
9275 # with the native linker. However, as the warning in the GNU ld
9276 # block says, versions before 2.19.5* couldn't really create working
9277 # shared libraries, regardless of the interface used.
9278 case `$LD -v 2>&1` in
9279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9283 lt_use_gnu_ld_interface=yes
9285 esac
9288 lt_use_gnu_ld_interface=yes
9290 esac
9293 if test "$lt_use_gnu_ld_interface" = yes; then
9294 # If archive_cmds runs LD, not CC, wlarc should be empty
9295 wlarc='${wl}'
9297 # Set some defaults for GNU ld with shared library support. These
9298 # are reset later if shared libraries are not supported. Putting them
9299 # here allows them to be overridden if necessary.
9300 runpath_var=LD_RUN_PATH
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 export_dynamic_flag_spec='${wl}--export-dynamic'
9303 # ancient GNU ld didn't support --whole-archive et. al.
9304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9306 else
9307 whole_archive_flag_spec=
9309 supports_anon_versioning=no
9310 case `$LD -v 2>&1` in
9311 *GNU\ gold*) supports_anon_versioning=yes ;;
9312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9315 *\ 2.11.*) ;; # other 2.11 versions
9316 *) supports_anon_versioning=yes ;;
9317 esac
9319 # See if GNU ld supports shared libraries.
9320 case $host_os in
9321 aix[3-9]*)
9322 # On AIX/PPC, the GNU linker is very broken
9323 if test "$host_cpu" != ia64; then
9324 ld_shlibs=no
9325 cat <<_LT_EOF 1>&2
9327 *** Warning: the GNU linker, at least up to release 2.19, is reported
9328 *** to be unable to reliably create shared libraries on AIX.
9329 *** Therefore, libtool is disabling shared libraries support. If you
9330 *** really care for shared libraries, you may want to install binutils
9331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9332 *** You will then need to restart the configuration process.
9334 _LT_EOF
9338 amigaos*)
9339 case $host_cpu in
9340 powerpc)
9341 # see comment about AmigaOS4 .so support
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds=''
9345 m68k)
9346 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)'
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 hardcode_minus_L=yes
9350 esac
9353 beos*)
9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 allow_undefined_flag=unsupported
9356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9357 # support --undefined. This deserves some investigation. FIXME
9358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 else
9360 ld_shlibs=no
9364 cygwin* | mingw* | pw32* | cegcc*)
9365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9366 # as there is no search path for DLLs.
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 export_dynamic_flag_spec='${wl}--export-all-symbols'
9369 allow_undefined_flag=unsupported
9370 always_export_symbols=no
9371 enable_shared_with_static_runtimes=yes
9372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 # If the export-symbols file already is a .def file (1st line
9377 # is EXPORTS), use it as is; otherwise, prepend...
9378 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9379 cp $export_symbols $output_objdir/$soname.def;
9380 else
9381 echo EXPORTS > $output_objdir/$soname.def;
9382 cat $export_symbols >> $output_objdir/$soname.def;
9384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 else
9386 ld_shlibs=no
9390 haiku*)
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392 link_all_deplibs=yes
9395 interix[3-9]*)
9396 hardcode_direct=no
9397 hardcode_shlibpath_var=no
9398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9399 export_dynamic_flag_spec='${wl}-E'
9400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9401 # Instead, shared libraries are loaded at an image base (0x10000000 by
9402 # default) and relocated if they conflict, which is a slow very memory
9403 # consuming and fragmenting process. To avoid this, we pick a random,
9404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9407 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'
9410 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9411 tmp_diet=no
9412 if test "$host_os" = linux-dietlibc; then
9413 case $cc_basename in
9414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9415 esac
9417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9418 && test "$tmp_diet" = no
9419 then
9420 tmp_addflag=' $pic_flag'
9421 tmp_sharedflag='-shared'
9422 case $cc_basename,$host_cpu in
9423 pgcc*) # Portland Group C compiler
9424 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'
9425 tmp_addflag=' $pic_flag'
9427 pgf77* | pgf90* | pgf95* | pgfortran*)
9428 # Portland Group f77 and f90 compilers
9429 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'
9430 tmp_addflag=' $pic_flag -Mnomain' ;;
9431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9432 tmp_addflag=' -i_dynamic' ;;
9433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9434 tmp_addflag=' -i_dynamic -nofor_main' ;;
9435 ifc* | ifort*) # Intel Fortran compiler
9436 tmp_addflag=' -nofor_main' ;;
9437 lf95*) # Lahey Fortran 8.1
9438 whole_archive_flag_spec=
9439 tmp_sharedflag='--shared' ;;
9440 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9441 tmp_sharedflag='-qmkshrobj'
9442 tmp_addflag= ;;
9443 nvcc*) # Cuda Compiler Driver 2.2
9444 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'
9445 compiler_needs_object=yes
9447 esac
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ C*) # Sun C 5.9
9450 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'
9451 compiler_needs_object=yes
9452 tmp_sharedflag='-G' ;;
9453 *Sun\ F*) # Sun Fortran 8.3
9454 tmp_sharedflag='-G' ;;
9455 esac
9456 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9458 if test "x$supports_anon_versioning" = xyes; then
9459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461 echo "local: *; };" >> $output_objdir/$libname.ver~
9462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9465 case $cc_basename in
9466 xlf* | bgf* | bgxlf* | mpixlf*)
9467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9469 hardcode_libdir_flag_spec=
9470 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9471 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9472 if test "x$supports_anon_versioning" = xyes; then
9473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9475 echo "local: *; };" >> $output_objdir/$libname.ver~
9476 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9479 esac
9480 else
9481 ld_shlibs=no
9485 netbsd*)
9486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9488 wlarc=
9489 else
9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495 solaris*)
9496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9497 ld_shlibs=no
9498 cat <<_LT_EOF 1>&2
9500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9501 *** create shared libraries on Solaris systems. Therefore, libtool
9502 *** is disabling shared libraries support. We urge you to upgrade GNU
9503 *** binutils to release 2.9.1 or newer. Another option is to modify
9504 *** your PATH or compiler configuration so that the native linker is
9505 *** used, and then restart.
9507 _LT_EOF
9508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9511 else
9512 ld_shlibs=no
9516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9517 case `$LD -v 2>&1` in
9518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9519 ld_shlibs=no
9520 cat <<_LT_EOF 1>&2
9522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9523 *** reliably create shared libraries on SCO systems. Therefore, libtool
9524 *** is disabling shared libraries support. We urge you to upgrade GNU
9525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9526 *** your PATH or compiler configuration so that the native linker is
9527 *** used, and then restart.
9529 _LT_EOF
9532 # For security reasons, it is highly recommended that you always
9533 # use absolute paths for naming shared libraries, and exclude the
9534 # DT_RUNPATH tag from executables and libraries. But doing so
9535 # requires that you compile everything twice, which is a pain.
9536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540 else
9541 ld_shlibs=no
9544 esac
9547 sunos4*)
9548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9549 wlarc=
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
9555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558 else
9559 ld_shlibs=no
9562 esac
9564 if test "$ld_shlibs" = no; then
9565 runpath_var=
9566 hardcode_libdir_flag_spec=
9567 export_dynamic_flag_spec=
9568 whole_archive_flag_spec=
9570 else
9571 # PORTME fill in a description of your system's linker (not GNU ld)
9572 case $host_os in
9573 aix3*)
9574 allow_undefined_flag=unsupported
9575 always_export_symbols=yes
9576 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'
9577 # Note: this linker hardcodes the directories in LIBPATH if there
9578 # are no directories specified by -L.
9579 hardcode_minus_L=yes
9580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9581 # Neither direct hardcoding nor static linking is supported with a
9582 # broken collect2.
9583 hardcode_direct=unsupported
9587 aix[4-9]*)
9588 if test "$host_cpu" = ia64; then
9589 # On IA64, the linker does run time linking by default, so we don't
9590 # have to do anything special.
9591 aix_use_runtimelinking=no
9592 exp_sym_flag='-Bexport'
9593 no_entry_flag=""
9594 else
9595 # If we're using GNU nm, then we don't want the "-C" option.
9596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9597 # Also, AIX nm treats weak defined symbols like other global
9598 # defined symbols, whereas GNU nm marks them as "W".
9599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9600 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'
9601 else
9602 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9604 aix_use_runtimelinking=no
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9610 for ld_flag in $LDFLAGS; do
9611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9612 aix_use_runtimelinking=yes
9613 break
9615 done
9617 esac
9619 exp_sym_flag='-bexport'
9620 no_entry_flag='-bnoentry'
9623 # When large executables or shared objects are built, AIX ld can
9624 # have problems creating the table of contents. If linking a library
9625 # or program results in "error TOC overflow" add -mminimal-toc to
9626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9629 archive_cmds=''
9630 hardcode_direct=yes
9631 hardcode_direct_absolute=yes
9632 hardcode_libdir_separator=':'
9633 link_all_deplibs=yes
9634 file_list_spec='${wl}-f,'
9636 if test "$GCC" = yes; then
9637 case $host_os in aix4.[012]|aix4.[012].*)
9638 # We only want to do this on AIX 4.2 and lower, the check
9639 # below for broken collect2 doesn't work under 4.3+
9640 collect2name=`${CC} -print-prog-name=collect2`
9641 if test -f "$collect2name" &&
9642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9643 then
9644 # We have reworked collect2
9646 else
9647 # We have old collect2
9648 hardcode_direct=unsupported
9649 # It fails to find uninstalled libraries when the uninstalled
9650 # path is not listed in the libpath. Setting hardcode_minus_L
9651 # to unsupported forces relinking
9652 hardcode_minus_L=yes
9653 hardcode_libdir_flag_spec='-L$libdir'
9654 hardcode_libdir_separator=
9657 esac
9658 shared_flag='-shared'
9659 if test "$aix_use_runtimelinking" = yes; then
9660 shared_flag="$shared_flag "'${wl}-G'
9662 else
9663 # not using gcc
9664 if test "$host_cpu" = ia64; then
9665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9666 # chokes on -Wl,-G. The following line is correct:
9667 shared_flag='-G'
9668 else
9669 if test "$aix_use_runtimelinking" = yes; then
9670 shared_flag='${wl}-G'
9671 else
9672 shared_flag='${wl}-bM:SRE'
9677 export_dynamic_flag_spec='${wl}-bexpall'
9678 # It seems that -bexpall does not export symbols beginning with
9679 # underscore (_), so it is better to generate a list of symbols to export.
9680 always_export_symbols=yes
9681 if test "$aix_use_runtimelinking" = yes; then
9682 # Warning - without using the other runtime loading flags (-brtl),
9683 # -berok will link without error, but may produce a broken library.
9684 allow_undefined_flag='-berok'
9685 # Determine the default libpath from the value encoded in an
9686 # empty executable.
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9691 main ()
9695 return 0;
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9700 lt_aix_libpath_sed='
9701 /Import File Strings/,/^$/ {
9702 /^0/ {
9703 s/^0 *\(.*\)$/\1/
9707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 # Check for a 64-bit object if we didn't find anything.
9709 if test -z "$aix_libpath"; then
9710 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 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"
9719 else
9720 if test "$host_cpu" = ia64; then
9721 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9722 allow_undefined_flag="-z nodefs"
9723 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"
9724 else
9725 # Determine the default libpath from the value encoded in an
9726 # empty executable.
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9731 main ()
9735 return 0;
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9740 lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9742 /^0/ {
9743 s/^0 *\(.*\)$/\1/
9747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$aix_libpath"; then
9750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9757 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758 # Warning - without using the other run time loading flags,
9759 # -berok will link without error, but may produce a broken library.
9760 no_undefined_flag=' ${wl}-bernotok'
9761 allow_undefined_flag=' ${wl}-berok'
9762 if test "$with_gnu_ld" = yes; then
9763 # We only use this code for GNU lds that support --whole-archive.
9764 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9765 else
9766 # Exported symbols can be pulled into shared objects from archives
9767 whole_archive_flag_spec='$convenience'
9769 archive_cmds_need_lc=yes
9770 # This is similar to how AIX traditionally builds its shared libraries.
9771 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'
9776 amigaos*)
9777 case $host_cpu in
9778 powerpc)
9779 # see comment about AmigaOS4 .so support
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 archive_expsym_cmds=''
9783 m68k)
9784 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)'
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_minus_L=yes
9788 esac
9791 bsdi[45]*)
9792 export_dynamic_flag_spec=-rdynamic
9795 cygwin* | mingw* | pw32* | cegcc*)
9796 # When not using gcc, we currently assume that we are using
9797 # Microsoft Visual C++.
9798 # hardcode_libdir_flag_spec is actually meaningless, as there is
9799 # no search path for DLLs.
9800 hardcode_libdir_flag_spec=' '
9801 allow_undefined_flag=unsupported
9802 # Tell ltmain to make .lib files, not .a files.
9803 libext=lib
9804 # Tell ltmain to make .dll files, not .so files.
9805 shrext_cmds=".dll"
9806 # FIXME: Setting linknames here is a bad hack.
9807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9808 # The linker will automatically build a .lib file if we build a DLL.
9809 old_archive_from_new_cmds='true'
9810 # FIXME: Should let the user specify the lib program.
9811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9812 fix_srcfile_path='`cygpath -w "$srcfile"`'
9813 enable_shared_with_static_runtimes=yes
9816 darwin* | rhapsody*)
9820 # Publish an arg to allow the user to select that Darwin host (and target)
9821 # libraries should be given install-names like @rpath/libfoo.dylib. This
9822 # requires that the user of the library then adds an 'rpath' to the DSO that
9823 # needs access.
9824 # NOTE: there are defaults below, for systems that support rpaths. The person
9825 # configuring can override the defaults for any system version that supports
9826 # them - they are, however, forced off for system versions without support.
9827 # Check whether --enable-darwin-at-rpath was given.
9828 if test "${enable_darwin_at_rpath+set}" = set; then :
9829 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9830 # This is not supported before macOS 10.5 / Darwin9.
9831 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9832 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9834 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9835 enable_darwin_at_rpath=no
9837 esac
9839 else
9840 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9841 # As above, before 10.5 / Darwin9 this does not work.
9842 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9843 enable_darwin_at_rpath=no
9846 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9847 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9848 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9849 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9851 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9852 enable_darwin_at_rpath=yes
9854 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9855 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9857 esac
9862 archive_cmds_need_lc=no
9863 hardcode_direct=no
9864 hardcode_automatic=yes
9865 hardcode_shlibpath_var=unsupported
9866 if test "$lt_cv_ld_force_load" = "yes"; then
9867 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\"`'
9868 else
9869 whole_archive_flag_spec=''
9871 link_all_deplibs=yes
9872 allow_undefined_flag="$_lt_dar_allow_undefined"
9873 case $cc_basename in
9874 ifort*) _lt_dar_can_shared=yes ;;
9875 *) _lt_dar_can_shared=$GCC ;;
9876 esac
9877 if test "$_lt_dar_can_shared" = "yes"; then
9878 output_verbose_link_cmd=func_echo_all
9879 _lt_install_name='\$rpath/\$soname'
9880 if test "x$enable_darwin_at_rpath" = "xyes"; then
9881 _lt_install_name='@rpath/\$soname'
9883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9885 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9886 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}"
9888 else
9889 ld_shlibs=no
9894 dgux*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_shlibpath_var=no
9900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9901 # support. Future versions do this automatically, but an explicit c++rt0.o
9902 # does not break anything, and helps significantly (at the cost of a little
9903 # extra space).
9904 freebsd2.2*)
9905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9906 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_direct=yes
9908 hardcode_shlibpath_var=no
9911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9912 freebsd2.*)
9913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_direct=yes
9915 hardcode_minus_L=yes
9916 hardcode_shlibpath_var=no
9919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9920 freebsd* | dragonfly*)
9921 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9922 hardcode_libdir_flag_spec='-R$libdir'
9923 hardcode_direct=yes
9924 hardcode_shlibpath_var=no
9927 hpux9*)
9928 if test "$GCC" = yes; then
9929 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'
9930 else
9931 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'
9933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 hardcode_direct=yes
9937 # hardcode_minus_L: Not really in the search PATH,
9938 # but as the default location of the library.
9939 hardcode_minus_L=yes
9940 export_dynamic_flag_spec='${wl}-E'
9943 hpux10*)
9944 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946 else
9947 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9949 if test "$with_gnu_ld" = no; then
9950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9951 hardcode_libdir_flag_spec_ld='+b $libdir'
9952 hardcode_libdir_separator=:
9953 hardcode_direct=yes
9954 hardcode_direct_absolute=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 # hardcode_minus_L: Not really in the search PATH,
9957 # but as the default location of the library.
9958 hardcode_minus_L=yes
9962 hpux11*)
9963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9964 case $host_cpu in
9965 hppa*64*)
9966 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9968 ia64*)
9969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9974 esac
9975 else
9976 case $host_cpu in
9977 hppa*64*)
9978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9980 ia64*)
9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9985 # Older versions of the 11.00 compiler do not understand -b yet
9986 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9988 $as_echo_n "checking if $CC understands -b... " >&6; }
9989 if ${lt_cv_prog_compiler__b+:} false; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 lt_cv_prog_compiler__b=no
9993 save_LDFLAGS="$LDFLAGS"
9994 LDFLAGS="$LDFLAGS -b"
9995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9997 # The linker can only warn and ignore the option if not recognized
9998 # So say no if there are warnings
9999 if test -s conftest.err; then
10000 # Append any errors to the config.log.
10001 cat conftest.err 1>&5
10002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10004 if diff conftest.exp conftest.er2 >/dev/null; then
10005 lt_cv_prog_compiler__b=yes
10007 else
10008 lt_cv_prog_compiler__b=yes
10011 $RM -r conftest*
10012 LDFLAGS="$save_LDFLAGS"
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10016 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10018 if test x"$lt_cv_prog_compiler__b" = xyes; then
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10025 esac
10027 if test "$with_gnu_ld" = no; then
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10031 case $host_cpu in
10032 hppa*64*|ia64*)
10033 hardcode_direct=no
10034 hardcode_shlibpath_var=no
10037 hardcode_direct=yes
10038 hardcode_direct_absolute=yes
10039 export_dynamic_flag_spec='${wl}-E'
10041 # hardcode_minus_L: Not really in the search PATH,
10042 # but as the default location of the library.
10043 hardcode_minus_L=yes
10045 esac
10049 irix5* | irix6* | nonstopux*)
10050 if test "$GCC" = yes; then
10051 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'
10052 # Try to use the -exported_symbol ld option, if it does not
10053 # work, assume that -exports_file does not work either and
10054 # implicitly export all symbols.
10055 save_LDFLAGS="$LDFLAGS"
10056 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int foo(void) {}
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 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'
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LDFLAGS="$save_LDFLAGS"
10068 else
10069 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'
10070 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'
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 hardcode_libdir_separator=:
10075 inherit_rpath=yes
10076 link_all_deplibs=yes
10079 netbsd*)
10080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10082 else
10083 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_direct=yes
10087 hardcode_shlibpath_var=no
10090 newsos6)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 hardcode_shlibpath_var=no
10098 *nto* | *qnx*)
10101 openbsd*)
10102 if test -f /usr/libexec/ld.so; then
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 hardcode_direct_absolute=yes
10106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110 export_dynamic_flag_spec='${wl}-E'
10111 else
10112 case $host_os in
10113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-R$libdir'
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121 esac
10123 else
10124 ld_shlibs=no
10128 os2*)
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_minus_L=yes
10131 allow_undefined_flag=unsupported
10132 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'
10133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10136 osf3*)
10137 if test "$GCC" = yes; then
10138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10140 else
10141 allow_undefined_flag=' -expect_unresolved \*'
10142 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'
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10149 osf4* | osf5*) # as osf3* with the addition of -msym flag
10150 if test "$GCC" = yes; then
10151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152 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'
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 else
10155 allow_undefined_flag=' -expect_unresolved \*'
10156 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'
10157 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~
10158 $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'
10160 # Both c and cxx compiler support -rpath directly
10161 hardcode_libdir_flag_spec='-rpath $libdir'
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_separator=:
10167 solaris*)
10168 no_undefined_flag=' -z defs'
10169 if test "$GCC" = yes; then
10170 wlarc='${wl}'
10171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10174 else
10175 case `$CC -V 2>&1` in
10176 *"Compilers 5.0"*)
10177 wlarc=''
10178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10183 wlarc='${wl}'
10184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10188 esac
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_shlibpath_var=no
10192 case $host_os in
10193 solaris2.[0-5] | solaris2.[0-5].*) ;;
10195 # The compiler driver will combine and reorder linker options,
10196 # but understands `-z linker_flag'. GCC discards it without `$wl',
10197 # but is careful enough not to reorder.
10198 # Supported since Solaris 2.6 (maybe 2.5.1?)
10199 if test "$GCC" = yes; then
10200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10201 else
10202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10205 esac
10206 link_all_deplibs=yes
10209 sunos4*)
10210 if test "x$host_vendor" = xsequent; then
10211 # Use $CC to link under sequent, because it throws in some extra .o
10212 # files that make .init and .fini sections work.
10213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10214 else
10215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_direct=yes
10219 hardcode_minus_L=yes
10220 hardcode_shlibpath_var=no
10223 sysv4)
10224 case $host_vendor in
10225 sni)
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_direct=yes # is this really true???
10229 siemens)
10230 ## LD is ld it makes a PLAMLIB
10231 ## CC just makes a GrossModule.
10232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10233 reload_cmds='$CC -r -o $output$reload_objs'
10234 hardcode_direct=no
10236 motorola)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10240 esac
10241 runpath_var='LD_RUN_PATH'
10242 hardcode_shlibpath_var=no
10245 sysv4.3*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 export_dynamic_flag_spec='-Bexport'
10251 sysv4*MP*)
10252 if test -d /usr/nec; then
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_shlibpath_var=no
10255 runpath_var=LD_RUN_PATH
10256 hardcode_runpath_var=yes
10257 ld_shlibs=yes
10261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10262 no_undefined_flag='${wl}-z,text'
10263 archive_cmds_need_lc=no
10264 hardcode_shlibpath_var=no
10265 runpath_var='LD_RUN_PATH'
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 sysv5* | sco3.2v5* | sco5v6*)
10277 # Note: We can NOT use -z defs as we might desire, because we do not
10278 # link with -lc, and that would cause any symbols used from libc to
10279 # always be unresolved, which means just about no library would
10280 # ever link correctly. If we're not using GNU ld we use -z text
10281 # though, which does catch some bad symbols but isn't as heavy-handed
10282 # as -z defs.
10283 no_undefined_flag='${wl}-z,text'
10284 allow_undefined_flag='${wl}-z,nodefs'
10285 archive_cmds_need_lc=no
10286 hardcode_shlibpath_var=no
10287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10288 hardcode_libdir_separator=':'
10289 link_all_deplibs=yes
10290 export_dynamic_flag_spec='${wl}-Bexport'
10291 runpath_var='LD_RUN_PATH'
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 else
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 uts4*)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_shlibpath_var=no
10309 ld_shlibs=no
10311 esac
10313 if test x$host_vendor = xsni; then
10314 case $host in
10315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10316 export_dynamic_flag_spec='${wl}-Blargedynsym'
10318 esac
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10323 $as_echo "$ld_shlibs" >&6; }
10324 test "$ld_shlibs" = no && can_build_shared=no
10326 with_gnu_ld=$with_gnu_ld
10343 # Do we need to explicitly link libc?
10345 case "x$archive_cmds_need_lc" in
10346 x|xyes)
10347 # Assume -lc should be added
10348 archive_cmds_need_lc=yes
10350 if test "$enable_shared" = yes && test "$GCC" = yes; then
10351 case $archive_cmds in
10352 *'~'*)
10353 # FIXME: we may have to deal with multi-command sequences.
10355 '$CC '*)
10356 # Test whether the compiler implicitly links with -lc since on some
10357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10358 # to ld, don't add -lc before -lgcc.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 $RM conftest*
10365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10368 (eval $ac_compile) 2>&5
10369 ac_status=$?
10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371 test $ac_status = 0; } 2>conftest.err; then
10372 soname=conftest
10373 lib=conftest
10374 libobjs=conftest.$ac_objext
10375 deplibs=
10376 wl=$lt_prog_compiler_wl
10377 pic_flag=$lt_prog_compiler_pic
10378 compiler_flags=-v
10379 linker_flags=-v
10380 verstring=
10381 output_objdir=.
10382 libname=conftest
10383 lt_save_allow_undefined_flag=$allow_undefined_flag
10384 allow_undefined_flag=
10385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387 ac_status=$?
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }
10390 then
10391 lt_cv_archive_cmds_need_lc=no
10392 else
10393 lt_cv_archive_cmds_need_lc=yes
10395 allow_undefined_flag=$lt_save_allow_undefined_flag
10396 else
10397 cat conftest.err 1>&5
10399 $RM conftest*
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10406 esac
10409 esac
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10568 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10570 if test "$GCC" = yes; then
10571 case $host_os in
10572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10573 *) lt_awk_arg="/^libraries:/" ;;
10574 esac
10575 case $host_os in
10576 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10577 *) lt_sed_strip_eq="s,=/,/,g" ;;
10578 esac
10579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10580 case $lt_search_path_spec in
10581 *\;*)
10582 # if the path contains ";" then we assume it to be the separator
10583 # otherwise default to the standard path separator (i.e. ":") - it is
10584 # assumed that no part of a normal pathname contains ";" but that should
10585 # okay in the real world where ";" in dirpaths is itself problematic.
10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10589 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10591 esac
10592 # Ok, now we have the path, separated by spaces, we can step through it
10593 # and add multilib dir if necessary.
10594 lt_tmp_lt_search_path_spec=
10595 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10596 for lt_sys_path in $lt_search_path_spec; do
10597 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10599 else
10600 test -d "$lt_sys_path" && \
10601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10603 done
10604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10605 BEGIN {RS=" "; FS="/|\n";} {
10606 lt_foo="";
10607 lt_count=0;
10608 for (lt_i = NF; lt_i > 0; lt_i--) {
10609 if ($lt_i != "" && $lt_i != ".") {
10610 if ($lt_i == "..") {
10611 lt_count++;
10612 } else {
10613 if (lt_count == 0) {
10614 lt_foo="/" $lt_i lt_foo;
10615 } else {
10616 lt_count--;
10621 if (lt_foo != "") { lt_freq[lt_foo]++; }
10622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10624 # AWK program above erroneously prepends '/' to C:/dos/paths
10625 # for these hosts.
10626 case $host_os in
10627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10628 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10629 esac
10630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10631 else
10632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10634 library_names_spec=
10635 libname_spec='lib$name'
10636 soname_spec=
10637 shrext_cmds=".so"
10638 postinstall_cmds=
10639 postuninstall_cmds=
10640 finish_cmds=
10641 finish_eval=
10642 shlibpath_var=
10643 shlibpath_overrides_runpath=unknown
10644 version_type=none
10645 dynamic_linker="$host_os ld.so"
10646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10647 need_lib_prefix=unknown
10648 hardcode_into_libs=no
10650 # when you set need_version to no, make sure it does not cause -set_version
10651 # flags to be left without arguments
10652 need_version=unknown
10654 case $host_os in
10655 aix3*)
10656 version_type=linux
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10658 shlibpath_var=LIBPATH
10660 # AIX 3 has no versioning support, so we append a major version to the name.
10661 soname_spec='${libname}${release}${shared_ext}$major'
10664 aix[4-9]*)
10665 version_type=linux
10666 need_lib_prefix=no
10667 need_version=no
10668 hardcode_into_libs=yes
10669 if test "$host_cpu" = ia64; then
10670 # AIX 5 supports IA64
10671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 else
10674 # With GCC up to 2.95.x, collect2 would create an import file
10675 # for dependence libraries. The import file would start with
10676 # the line `#! .'. This would cause the generated library to
10677 # depend on `.', always an invalid library. This was fixed in
10678 # development snapshots of GCC prior to 3.0.
10679 case $host_os in
10680 aix4 | aix4.[01] | aix4.[01].*)
10681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10682 echo ' yes '
10683 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10685 else
10686 can_build_shared=no
10689 esac
10690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10691 # soname into executable. Probably we can add versioning support to
10692 # collect2, so additional links can be useful in future.
10693 if test "$aix_use_runtimelinking" = yes; then
10694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10695 # instead of lib<name>.a to let people know that these are not
10696 # typical AIX shared libraries.
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 else
10699 # We preserve .a as extension for shared libraries through AIX4.2
10700 # and later when we are not doing run time linking.
10701 library_names_spec='${libname}${release}.a $libname.a'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LIBPATH
10708 amigaos*)
10709 case $host_cpu in
10710 powerpc)
10711 # Since July 2007 AmigaOS4 officially supports .so libraries.
10712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 m68k)
10716 library_names_spec='$libname.ixlibrary $libname.a'
10717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10718 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'
10720 esac
10723 beos*)
10724 library_names_spec='${libname}${shared_ext}'
10725 dynamic_linker="$host_os ld.so"
10726 shlibpath_var=LIBRARY_PATH
10729 bsdi[45]*)
10730 version_type=linux
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10738 # the default ld.so.conf also contains /usr/contrib/lib and
10739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10740 # libtool to hard-code these into programs
10743 cygwin* | mingw* | pw32* | cegcc*)
10744 version_type=windows
10745 shrext_cmds=".dll"
10746 need_version=no
10747 need_lib_prefix=no
10749 case $GCC,$host_os in
10750 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10751 library_names_spec='$libname.dll.a'
10752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10753 postinstall_cmds='base_file=`basename \${file}`~
10754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10755 dldir=$destdir/`dirname \$dlpath`~
10756 test -d \$dldir || mkdir -p \$dldir~
10757 $install_prog $dir/$dlname \$dldir/$dlname~
10758 chmod a+x \$dldir/$dlname~
10759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10763 dlpath=$dir/\$dldll~
10764 $RM \$dlpath'
10765 shlibpath_overrides_runpath=yes
10767 case $host_os in
10768 cygwin*)
10769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10774 mingw* | cegcc*)
10775 # MinGW DLLs use traditional 'lib' prefix
10776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 pw32*)
10779 # pw32 DLLs use 'pw' prefix rather than 'lib'
10780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10782 esac
10786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10788 esac
10789 dynamic_linker='Win32 ld.exe'
10790 # FIXME: first we should search . and the directory the executable is in
10791 shlibpath_var=PATH
10794 darwin* | rhapsody*)
10795 dynamic_linker="$host_os dyld"
10796 version_type=darwin
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10800 soname_spec='${libname}${release}${major}$shared_ext'
10801 shlibpath_overrides_runpath=yes
10802 shlibpath_var=DYLD_LIBRARY_PATH
10803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10809 dgux*)
10810 version_type=linux
10811 need_lib_prefix=no
10812 need_version=no
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10818 freebsd* | dragonfly*)
10819 # DragonFly does not have aout. When/if they implement a new
10820 # versioning mechanism, adjust this.
10821 if test -x /usr/bin/objformat; then
10822 objformat=`/usr/bin/objformat`
10823 else
10824 case $host_os in
10825 freebsd[23].*) objformat=aout ;;
10826 *) objformat=elf ;;
10827 esac
10829 version_type=freebsd-$objformat
10830 case $version_type in
10831 freebsd-elf*)
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 need_version=no
10834 need_lib_prefix=no
10836 freebsd-*)
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10838 need_version=yes
10840 esac
10841 shlibpath_var=LD_LIBRARY_PATH
10842 case $host_os in
10843 freebsd2.*)
10844 shlibpath_overrides_runpath=yes
10846 freebsd3.[01]* | freebsdelf3.[01]*)
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10855 *) # from 4.6 on, and DragonFly
10856 shlibpath_overrides_runpath=yes
10857 hardcode_into_libs=yes
10859 esac
10862 haiku*)
10863 version_type=linux
10864 need_lib_prefix=no
10865 need_version=no
10866 dynamic_linker="$host_os runtime_loader"
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10872 hardcode_into_libs=yes
10875 hpux9* | hpux10* | hpux11*)
10876 # Give a soname corresponding to the major version so that dld.sl refuses to
10877 # link against other versions.
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 case $host_cpu in
10882 ia64*)
10883 shrext_cmds='.so'
10884 hardcode_into_libs=yes
10885 dynamic_linker="$host_os dld.so"
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 if test "X$HPUX_IA64_MODE" = X32; then
10891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10892 else
10893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 hppa*64*)
10898 shrext_cmds='.sl'
10899 hardcode_into_libs=yes
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10909 shrext_cmds='.sl'
10910 dynamic_linker="$host_os dld.sl"
10911 shlibpath_var=SHLIB_PATH
10912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10916 esac
10917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10918 postinstall_cmds='chmod 555 $lib'
10919 # or fails outright, so override atomically:
10920 install_override_mode=555
10923 interix[3-9]*)
10924 version_type=linux
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=no
10932 hardcode_into_libs=yes
10935 irix5* | irix6* | nonstopux*)
10936 case $host_os in
10937 nonstopux*) version_type=nonstopux ;;
10939 if test "$lt_cv_prog_gnu_ld" = yes; then
10940 version_type=linux
10941 else
10942 version_type=irix
10943 fi ;;
10944 esac
10945 need_lib_prefix=no
10946 need_version=no
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 case $host_os in
10950 irix5* | nonstopux*)
10951 libsuff= shlibsuff=
10954 case $LD in # libtool.m4 will add one of these switches to LD
10955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10956 libsuff= shlibsuff= libmagic=32-bit;;
10957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10958 libsuff=32 shlibsuff=N32 libmagic=N32;;
10959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10961 *) libsuff= shlibsuff= libmagic=never-match;;
10962 esac
10964 esac
10965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10966 shlibpath_overrides_runpath=no
10967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10969 hardcode_into_libs=yes
10972 # No shared lib support for Linux oldld, aout, or coff.
10973 linux*oldld* | linux*aout* | linux*coff*)
10974 dynamic_linker=no
10977 # This must be Linux ELF.
10979 # uclinux* changes (here and below) have been submitted to the libtool
10980 # project, but have not yet been accepted: they are GCC-local changes
10981 # for the time being. (See
10982 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10993 # Some binutils ld are patched to set DT_RUNPATH
10994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 lt_cv_shlibpath_overrides_runpath=no
10998 save_LDFLAGS=$LDFLAGS
10999 save_libdir=$libdir
11000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11006 main ()
11010 return 0;
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11015 lt_cv_shlibpath_overrides_runpath=yes
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LDFLAGS=$save_LDFLAGS
11021 libdir=$save_libdir
11025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11027 # This implies no fast_install, which is unacceptable.
11028 # Some rework will be needed to allow for fast_install
11029 # before this can be enabled.
11030 hardcode_into_libs=yes
11032 # Append ld.so.conf contents to the search path
11033 if test -f /etc/ld.so.conf; then
11034 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' ' '`
11035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11038 # We used to test for /lib/ld.so.1 and disable shared libraries on
11039 # powerpc, because MkLinux only supported shared libraries with the
11040 # GNU dynamic linker. Since this was broken with cross compilers,
11041 # most powerpc-linux boxes support dynamic linking these days and
11042 # people can always --disable-shared, the test was removed, and we
11043 # assume the GNU/Linux dynamic linker is in use.
11044 dynamic_linker='GNU/Linux ld.so'
11047 netbsd*)
11048 version_type=sunos
11049 need_lib_prefix=no
11050 need_version=no
11051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054 dynamic_linker='NetBSD (a.out) ld.so'
11055 else
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 dynamic_linker='NetBSD ld.elf_so'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11065 newsos6)
11066 version_type=linux
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11072 *nto* | *qnx*)
11073 version_type=qnx
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 hardcode_into_libs=yes
11081 dynamic_linker='ldqnx.so'
11084 openbsd*)
11085 version_type=sunos
11086 sys_lib_dlsearch_path_spec="/usr/lib"
11087 need_lib_prefix=no
11088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11089 case $host_os in
11090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11091 *) need_version=no ;;
11092 esac
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11097 case $host_os in
11098 openbsd2.[89] | openbsd2.[89].*)
11099 shlibpath_overrides_runpath=no
11102 shlibpath_overrides_runpath=yes
11104 esac
11105 else
11106 shlibpath_overrides_runpath=yes
11110 os2*)
11111 libname_spec='$name'
11112 shrext_cmds=".dll"
11113 need_lib_prefix=no
11114 library_names_spec='$libname${shared_ext} $libname.a'
11115 dynamic_linker='OS/2 ld.exe'
11116 shlibpath_var=LIBPATH
11119 osf3* | osf4* | osf5*)
11120 version_type=osf
11121 need_lib_prefix=no
11122 need_version=no
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11130 rdos*)
11131 dynamic_linker=no
11134 solaris*)
11135 version_type=linux
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 # ldd complains unless libraries are executable
11144 postinstall_cmds='chmod +x $lib'
11147 sunos4*)
11148 version_type=sunos
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 if test "$with_gnu_ld" = yes; then
11154 need_lib_prefix=no
11156 need_version=yes
11159 sysv4 | sysv4.3*)
11160 version_type=linux
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 case $host_vendor in
11165 sni)
11166 shlibpath_overrides_runpath=no
11167 need_lib_prefix=no
11168 runpath_var=LD_RUN_PATH
11170 siemens)
11171 need_lib_prefix=no
11173 motorola)
11174 need_lib_prefix=no
11175 need_version=no
11176 shlibpath_overrides_runpath=no
11177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11179 esac
11182 sysv4*MP*)
11183 if test -d /usr/nec ;then
11184 version_type=linux
11185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11186 soname_spec='$libname${shared_ext}.$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11192 version_type=freebsd-elf
11193 need_lib_prefix=no
11194 need_version=no
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 hardcode_into_libs=yes
11200 if test "$with_gnu_ld" = yes; then
11201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202 else
11203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11204 case $host_os in
11205 sco3.2v5*)
11206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11208 esac
11210 sys_lib_dlsearch_path_spec='/usr/lib'
11213 tpf*)
11214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=no
11221 hardcode_into_libs=yes
11224 uts4*)
11225 version_type=linux
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11231 # Shared libraries for VwWorks, >= 7 only at this stage
11232 # and (fpic) still incompatible with "large" code models
11233 # in a few configurations. Only for RTP mode in any case,
11234 # and upon explicit request at configure time.
11235 vxworks7*)
11236 dynamic_linker=no
11237 case ${with_multisubdir}-${enable_shared} in
11238 *large*)
11240 *mrtp*-yes)
11241 version_type=linux
11242 need_lib_prefix=no
11243 need_version=no
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 dynamic_linker="$host_os module_loader"
11248 esac
11251 dynamic_linker=no
11253 esac
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11255 $as_echo "$dynamic_linker" >&6; }
11256 test "$dynamic_linker" = no && can_build_shared=no
11258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11259 if test "$GCC" = yes; then
11260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11266 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11267 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11362 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11363 hardcode_action=
11364 if test -n "$hardcode_libdir_flag_spec" ||
11365 test -n "$runpath_var" ||
11366 test "X$hardcode_automatic" = "Xyes" ; then
11368 # We can hardcode non-existent directories.
11369 if test "$hardcode_direct" != no &&
11370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11371 # have to relink, otherwise we might link with an installed library
11372 # when we should be linking with a yet-to-be-installed one
11373 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11374 test "$hardcode_minus_L" != no; then
11375 # Linking always hardcodes the temporary library directory.
11376 hardcode_action=relink
11377 else
11378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11379 hardcode_action=immediate
11381 else
11382 # We cannot hardcode anything, or else we can only hardcode existing
11383 # directories.
11384 hardcode_action=unsupported
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11387 $as_echo "$hardcode_action" >&6; }
11389 if test "$hardcode_action" = relink ||
11390 test "$inherit_rpath" = yes; then
11391 # Fast installation is not supported
11392 enable_fast_install=no
11393 elif test "$shlibpath_overrides_runpath" = yes ||
11394 test "$enable_shared" = no; then
11395 # Fast installation is not necessary
11396 enable_fast_install=needless
11404 if test "x$enable_dlopen" != xyes; then
11405 enable_dlopen=unknown
11406 enable_dlopen_self=unknown
11407 enable_dlopen_self_static=unknown
11408 else
11409 lt_cv_dlopen=no
11410 lt_cv_dlopen_libs=
11412 case $host_os in
11413 beos*)
11414 lt_cv_dlopen="load_add_on"
11415 lt_cv_dlopen_libs=
11416 lt_cv_dlopen_self=yes
11419 mingw* | pw32* | cegcc*)
11420 lt_cv_dlopen="LoadLibrary"
11421 lt_cv_dlopen_libs=
11424 cygwin*)
11425 lt_cv_dlopen="dlopen"
11426 lt_cv_dlopen_libs=
11429 darwin*)
11430 # if libdl is installed we need to link against it
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11432 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11433 if ${ac_cv_lib_dl_dlopen+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-ldl $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char dlopen ();
11449 main ()
11451 return dlopen ();
11453 return 0;
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_dl_dlopen=yes
11458 else
11459 ac_cv_lib_dl_dlopen=no
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11466 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11467 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11469 else
11471 lt_cv_dlopen="dyld"
11472 lt_cv_dlopen_libs=
11473 lt_cv_dlopen_self=yes
11480 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11481 if test "x$ac_cv_func_shl_load" = xyes; then :
11482 lt_cv_dlopen="shl_load"
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11485 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11486 if ${ac_cv_lib_dld_shl_load+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldld $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char shl_load ();
11502 main ()
11504 return shl_load ();
11506 return 0;
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_lib_dld_shl_load=yes
11511 else
11512 ac_cv_lib_dld_shl_load=no
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11519 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11520 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11521 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11522 else
11523 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11524 if test "x$ac_cv_func_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen"
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11529 if ${ac_cv_lib_dl_dlopen+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 ac_check_lib_save_LIBS=$LIBS
11533 LIBS="-ldl $LIBS"
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11537 /* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540 #ifdef __cplusplus
11541 extern "C"
11542 #endif
11543 char dlopen ();
11545 main ()
11547 return dlopen ();
11549 return 0;
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_dl_dlopen=yes
11554 else
11555 ac_cv_lib_dl_dlopen=no
11557 rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11563 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11567 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11568 if ${ac_cv_lib_svld_dlopen+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-lsvld $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dlopen ();
11584 main ()
11586 return dlopen ();
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_svld_dlopen=yes
11593 else
11594 ac_cv_lib_svld_dlopen=no
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11601 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11602 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11606 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11607 if ${ac_cv_lib_dld_dld_link+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-ldld $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dld_link ();
11623 main ()
11625 return dld_link ();
11627 return 0;
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_dld_dld_link=yes
11632 else
11633 ac_cv_lib_dld_dld_link=no
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11640 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11641 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11642 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11661 esac
11663 if test "x$lt_cv_dlopen" != xno; then
11664 enable_dlopen=yes
11665 else
11666 enable_dlopen=no
11669 case $lt_cv_dlopen in
11670 dlopen)
11671 save_CPPFLAGS="$CPPFLAGS"
11672 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11674 save_LDFLAGS="$LDFLAGS"
11675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11677 save_LIBS="$LIBS"
11678 LIBS="$lt_cv_dlopen_libs $LIBS"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11681 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11682 if ${lt_cv_dlopen_self+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test "$cross_compiling" = yes; then :
11686 lt_cv_dlopen_self=cross
11687 else
11688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11689 lt_status=$lt_dlunknown
11690 cat > conftest.$ac_ext <<_LT_EOF
11691 #line 11691 "configure"
11692 #include "confdefs.h"
11694 #if HAVE_DLFCN_H
11695 #include <dlfcn.h>
11696 #endif
11698 #include <stdio.h>
11700 #ifdef RTLD_GLOBAL
11701 # define LT_DLGLOBAL RTLD_GLOBAL
11702 #else
11703 # ifdef DL_GLOBAL
11704 # define LT_DLGLOBAL DL_GLOBAL
11705 # else
11706 # define LT_DLGLOBAL 0
11707 # endif
11708 #endif
11710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11711 find out it does not work in some platform. */
11712 #ifndef LT_DLLAZY_OR_NOW
11713 # ifdef RTLD_LAZY
11714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11715 # else
11716 # ifdef DL_LAZY
11717 # define LT_DLLAZY_OR_NOW DL_LAZY
11718 # else
11719 # ifdef RTLD_NOW
11720 # define LT_DLLAZY_OR_NOW RTLD_NOW
11721 # else
11722 # ifdef DL_NOW
11723 # define LT_DLLAZY_OR_NOW DL_NOW
11724 # else
11725 # define LT_DLLAZY_OR_NOW 0
11726 # endif
11727 # endif
11728 # endif
11729 # endif
11730 #endif
11732 /* When -fvisbility=hidden is used, assume the code has been annotated
11733 correspondingly for the symbols needed. */
11734 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11735 void fnord () __attribute__((visibility("default")));
11736 #endif
11738 void fnord () { int i=42; }
11739 int main ()
11741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11742 int status = $lt_dlunknown;
11744 if (self)
11746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11747 else
11749 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11750 else puts (dlerror ());
11752 /* dlclose (self); */
11754 else
11755 puts (dlerror ());
11757 return status;
11759 _LT_EOF
11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11761 (eval $ac_link) 2>&5
11762 ac_status=$?
11763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11764 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11765 (./conftest; exit; ) >&5 2>/dev/null
11766 lt_status=$?
11767 case x$lt_status in
11768 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11769 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11770 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11771 esac
11772 else :
11773 # compilation failed
11774 lt_cv_dlopen_self=no
11777 rm -fr conftest*
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11782 $as_echo "$lt_cv_dlopen_self" >&6; }
11784 if test "x$lt_cv_dlopen_self" = xyes; then
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11787 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11788 if ${lt_cv_dlopen_self_static+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 if test "$cross_compiling" = yes; then :
11792 lt_cv_dlopen_self_static=cross
11793 else
11794 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11795 lt_status=$lt_dlunknown
11796 cat > conftest.$ac_ext <<_LT_EOF
11797 #line 11797 "configure"
11798 #include "confdefs.h"
11800 #if HAVE_DLFCN_H
11801 #include <dlfcn.h>
11802 #endif
11804 #include <stdio.h>
11806 #ifdef RTLD_GLOBAL
11807 # define LT_DLGLOBAL RTLD_GLOBAL
11808 #else
11809 # ifdef DL_GLOBAL
11810 # define LT_DLGLOBAL DL_GLOBAL
11811 # else
11812 # define LT_DLGLOBAL 0
11813 # endif
11814 #endif
11816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11817 find out it does not work in some platform. */
11818 #ifndef LT_DLLAZY_OR_NOW
11819 # ifdef RTLD_LAZY
11820 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11821 # else
11822 # ifdef DL_LAZY
11823 # define LT_DLLAZY_OR_NOW DL_LAZY
11824 # else
11825 # ifdef RTLD_NOW
11826 # define LT_DLLAZY_OR_NOW RTLD_NOW
11827 # else
11828 # ifdef DL_NOW
11829 # define LT_DLLAZY_OR_NOW DL_NOW
11830 # else
11831 # define LT_DLLAZY_OR_NOW 0
11832 # endif
11833 # endif
11834 # endif
11835 # endif
11836 #endif
11838 /* When -fvisbility=hidden is used, assume the code has been annotated
11839 correspondingly for the symbols needed. */
11840 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11841 void fnord () __attribute__((visibility("default")));
11842 #endif
11844 void fnord () { int i=42; }
11845 int main ()
11847 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11848 int status = $lt_dlunknown;
11850 if (self)
11852 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11853 else
11855 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 else puts (dlerror ());
11858 /* dlclose (self); */
11860 else
11861 puts (dlerror ());
11863 return status;
11865 _LT_EOF
11866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11867 (eval $ac_link) 2>&5
11868 ac_status=$?
11869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11871 (./conftest; exit; ) >&5 2>/dev/null
11872 lt_status=$?
11873 case x$lt_status in
11874 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11875 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11876 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11877 esac
11878 else :
11879 # compilation failed
11880 lt_cv_dlopen_self_static=no
11883 rm -fr conftest*
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11888 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11891 CPPFLAGS="$save_CPPFLAGS"
11892 LDFLAGS="$save_LDFLAGS"
11893 LIBS="$save_LIBS"
11895 esac
11897 case $lt_cv_dlopen_self in
11898 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11899 *) enable_dlopen_self=unknown ;;
11900 esac
11902 case $lt_cv_dlopen_self_static in
11903 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11904 *) enable_dlopen_self_static=unknown ;;
11905 esac
11924 striplib=
11925 old_striplib=
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11927 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11928 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11929 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11930 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932 $as_echo "yes" >&6; }
11933 else
11934 # FIXME - insert some real tests, host_os isn't really good enough
11935 case $host_os in
11936 darwin*)
11937 if test -n "$STRIP" ; then
11938 striplib="$STRIP -x"
11939 old_striplib="$STRIP -S"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11951 esac
11965 # Report which library types will actually be built
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11967 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11969 $as_echo "$can_build_shared" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11972 $as_echo_n "checking whether to build shared libraries... " >&6; }
11973 test "$can_build_shared" = "no" && enable_shared=no
11975 # On AIX, shared libraries and static libraries use the same namespace, and
11976 # are all built from PIC.
11977 case $host_os in
11978 aix3*)
11979 test "$enable_shared" = yes && enable_static=no
11980 if test -n "$RANLIB"; then
11981 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11982 postinstall_cmds='$RANLIB $lib'
11986 aix[4-9]*)
11987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11988 test "$enable_shared" = yes && enable_static=no
11991 esac
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11993 $as_echo "$enable_shared" >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11996 $as_echo_n "checking whether to build static libraries... " >&6; }
11997 # Make sure either enable_shared or enable_static is yes.
11998 test "$enable_shared" = yes || enable_static=yes
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12000 $as_echo "$enable_static" >&6; }
12006 ac_ext=c
12007 ac_cpp='$CPP $CPPFLAGS'
12008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12012 CC="$lt_save_CC"
12014 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12015 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12016 (test "X$CXX" != "Xg++"))) ; then
12017 ac_ext=cpp
12018 ac_cpp='$CXXCPP $CPPFLAGS'
12019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12023 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12024 if test -z "$CXXCPP"; then
12025 if ${ac_cv_prog_CXXCPP+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 # Double quotes because CXXCPP needs to be expanded
12029 for CXXCPP in "$CXX -E" "/lib/cpp"
12031 ac_preproc_ok=false
12032 for ac_cxx_preproc_warn_flag in '' yes
12034 # Use a header file that comes with gcc, so configuring glibc
12035 # with a fresh cross-compiler works.
12036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 # <limits.h> exists even on freestanding compilers.
12038 # On the NeXT, cc -E runs the code through the compiler's parser,
12039 # not just through cpp. "Syntax error" is here to catch this case.
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042 #ifdef __STDC__
12043 # include <limits.h>
12044 #else
12045 # include <assert.h>
12046 #endif
12047 Syntax error
12048 _ACEOF
12049 if ac_fn_cxx_try_cpp "$LINENO"; then :
12051 else
12052 # Broken: fails on valid input.
12053 continue
12055 rm -f conftest.err conftest.i conftest.$ac_ext
12057 # OK, works on sane cases. Now check whether nonexistent headers
12058 # can be detected and how.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <ac_nonexistent.h>
12062 _ACEOF
12063 if ac_fn_cxx_try_cpp "$LINENO"; then :
12064 # Broken: success on invalid input.
12065 continue
12066 else
12067 # Passes both tests.
12068 ac_preproc_ok=:
12069 break
12071 rm -f conftest.err conftest.i conftest.$ac_ext
12073 done
12074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12075 rm -f conftest.i conftest.err conftest.$ac_ext
12076 if $ac_preproc_ok; then :
12077 break
12080 done
12081 ac_cv_prog_CXXCPP=$CXXCPP
12084 CXXCPP=$ac_cv_prog_CXXCPP
12085 else
12086 ac_cv_prog_CXXCPP=$CXXCPP
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12089 $as_echo "$CXXCPP" >&6; }
12090 ac_preproc_ok=false
12091 for ac_cxx_preproc_warn_flag in '' yes
12093 # Use a header file that comes with gcc, so configuring glibc
12094 # with a fresh cross-compiler works.
12095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 # <limits.h> exists even on freestanding compilers.
12097 # On the NeXT, cc -E runs the code through the compiler's parser,
12098 # not just through cpp. "Syntax error" is here to catch this case.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12106 Syntax error
12107 _ACEOF
12108 if ac_fn_cxx_try_cpp "$LINENO"; then :
12110 else
12111 # Broken: fails on valid input.
12112 continue
12114 rm -f conftest.err conftest.i conftest.$ac_ext
12116 # OK, works on sane cases. Now check whether nonexistent headers
12117 # can be detected and how.
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 #include <ac_nonexistent.h>
12121 _ACEOF
12122 if ac_fn_cxx_try_cpp "$LINENO"; then :
12123 # Broken: success on invalid input.
12124 continue
12125 else
12126 # Passes both tests.
12127 ac_preproc_ok=:
12128 break
12130 rm -f conftest.err conftest.i conftest.$ac_ext
12132 done
12133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134 rm -f conftest.i conftest.err conftest.$ac_ext
12135 if $ac_preproc_ok; then :
12137 else
12138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12140 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12141 See \`config.log' for more details" "$LINENO" 5; }
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150 else
12151 _lt_caught_CXX_error=yes
12154 ac_ext=cpp
12155 ac_cpp='$CXXCPP $CPPFLAGS'
12156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12160 archive_cmds_need_lc_CXX=no
12161 allow_undefined_flag_CXX=
12162 always_export_symbols_CXX=no
12163 archive_expsym_cmds_CXX=
12164 compiler_needs_object_CXX=no
12165 export_dynamic_flag_spec_CXX=
12166 hardcode_direct_CXX=no
12167 hardcode_direct_absolute_CXX=no
12168 hardcode_libdir_flag_spec_CXX=
12169 hardcode_libdir_flag_spec_ld_CXX=
12170 hardcode_libdir_separator_CXX=
12171 hardcode_minus_L_CXX=no
12172 hardcode_shlibpath_var_CXX=unsupported
12173 hardcode_automatic_CXX=no
12174 inherit_rpath_CXX=no
12175 module_cmds_CXX=
12176 module_expsym_cmds_CXX=
12177 link_all_deplibs_CXX=unknown
12178 old_archive_cmds_CXX=$old_archive_cmds
12179 reload_flag_CXX=$reload_flag
12180 reload_cmds_CXX=$reload_cmds
12181 no_undefined_flag_CXX=
12182 whole_archive_flag_spec_CXX=
12183 enable_shared_with_static_runtimes_CXX=no
12185 # Source file extension for C++ test sources.
12186 ac_ext=cpp
12188 # Object file extension for compiled C++ test sources.
12189 objext=o
12190 objext_CXX=$objext
12192 # No sense in running all these tests if we already determined that
12193 # the CXX compiler isn't working. Some variables (like enable_shared)
12194 # are currently assumed to apply to all compilers on this platform,
12195 # and will be corrupted by setting them based on a non-working compiler.
12196 if test "$_lt_caught_CXX_error" != yes; then
12197 # Code to be used in simple compile tests
12198 lt_simple_compile_test_code="int some_variable = 0;"
12200 # Code to be used in simple link tests
12201 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12210 # If no C compiler was specified, use CC.
12211 LTCC=${LTCC-"$CC"}
12213 # If no C compiler flags were specified, use CFLAGS.
12214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12216 # Allow CC to be a program name with arguments.
12217 compiler=$CC
12220 # save warnings/boilerplate of simple test code
12221 ac_outfile=conftest.$ac_objext
12222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12224 _lt_compiler_boilerplate=`cat conftest.err`
12225 $RM conftest*
12227 ac_outfile=conftest.$ac_objext
12228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230 _lt_linker_boilerplate=`cat conftest.err`
12231 $RM -r conftest*
12234 # Allow CC to be a program name with arguments.
12235 lt_save_CC=$CC
12236 lt_save_LD=$LD
12237 lt_save_GCC=$GCC
12238 GCC=$GXX
12239 lt_save_with_gnu_ld=$with_gnu_ld
12240 lt_save_path_LD=$lt_cv_path_LD
12241 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12242 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12243 else
12244 $as_unset lt_cv_prog_gnu_ld
12246 if test -n "${lt_cv_path_LDCXX+set}"; then
12247 lt_cv_path_LD=$lt_cv_path_LDCXX
12248 else
12249 $as_unset lt_cv_path_LD
12251 test -z "${LDCXX+set}" || LD=$LDCXX
12252 CC=${CXX-"c++"}
12253 compiler=$CC
12254 compiler_CXX=$CC
12255 for cc_temp in $compiler""; do
12256 case $cc_temp in
12257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12259 \-*) ;;
12260 *) break;;
12261 esac
12262 done
12263 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12266 if test -n "$compiler"; then
12267 # We don't want -fno-exception when compiling C++ code, so set the
12268 # no_builtin_flag separately
12269 if test "$GXX" = yes; then
12270 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12271 else
12272 lt_prog_compiler_no_builtin_flag_CXX=
12275 if test "$GXX" = yes; then
12276 # Set up default GNU C++ configuration
12280 # Check whether --with-gnu-ld was given.
12281 if test "${with_gnu_ld+set}" = set; then :
12282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12283 else
12284 with_gnu_ld=no
12287 ac_prog=ld
12288 if test "$GCC" = yes; then
12289 # Check if gcc -print-prog-name=ld gives a path.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12291 $as_echo_n "checking for ld used by $CC... " >&6; }
12292 case $host in
12293 *-*-mingw*)
12294 # gcc leaves a trailing carriage return which upsets mingw
12295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12298 esac
12299 case $ac_prog in
12300 # Accept absolute paths.
12301 [\\/]* | ?:[\\/]*)
12302 re_direlt='/[^/][^/]*/\.\./'
12303 # Canonicalize the pathname of ld
12304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12307 done
12308 test -z "$LD" && LD="$ac_prog"
12311 # If it fails, then pretend we aren't using GCC.
12312 ac_prog=ld
12315 # If it is relative, then search for the first ld in PATH.
12316 with_gnu_ld=unknown
12318 esac
12319 elif test "$with_gnu_ld" = yes; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12321 $as_echo_n "checking for GNU ld... " >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12324 $as_echo_n "checking for non-GNU ld... " >&6; }
12326 if ${lt_cv_path_LD+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test -z "$LD"; then
12330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12331 for ac_dir in $PATH; do
12332 IFS="$lt_save_ifs"
12333 test -z "$ac_dir" && ac_dir=.
12334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12335 lt_cv_path_LD="$ac_dir/$ac_prog"
12336 # Check to see if the program is GNU ld. I'd rather use --version,
12337 # but apparently some variants of GNU ld only accept -v.
12338 # Break only if it was the GNU/non-GNU ld that we prefer.
12339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12340 *GNU* | *'with BFD'*)
12341 test "$with_gnu_ld" != no && break
12344 test "$with_gnu_ld" != yes && break
12346 esac
12348 done
12349 IFS="$lt_save_ifs"
12350 else
12351 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12355 LD="$lt_cv_path_LD"
12356 if test -n "$LD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12358 $as_echo "$LD" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12363 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12366 if ${lt_cv_prog_gnu_ld+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12370 case `$LD -v 2>&1 </dev/null` in
12371 *GNU* | *'with BFD'*)
12372 lt_cv_prog_gnu_ld=yes
12375 lt_cv_prog_gnu_ld=no
12377 esac
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12381 with_gnu_ld=$lt_cv_prog_gnu_ld
12389 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12390 # archiving commands below assume that GNU ld is being used.
12391 if test "$with_gnu_ld" = yes; then
12392 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12398 # If archive_cmds runs LD, not CC, wlarc should be empty
12399 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12400 # investigate it a little bit more. (MM)
12401 wlarc='${wl}'
12403 # ancient GNU ld didn't support --whole-archive et. al.
12404 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12405 $GREP 'no-whole-archive' > /dev/null; then
12406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12407 else
12408 whole_archive_flag_spec_CXX=
12410 else
12411 with_gnu_ld=no
12412 wlarc=
12414 # A generic and very simple default shared library creation
12415 # command for GNU C++ for the case where it uses the native
12416 # linker, instead of GNU ld. If possible, this setting should
12417 # overridden to take advantage of the native linker features on
12418 # the platform it is being used on.
12419 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12422 # Commands to make compiler produce verbose output that lists
12423 # what "hidden" libraries, object files and flags are used when
12424 # linking a shared library.
12425 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12427 else
12428 GXX=no
12429 with_gnu_ld=no
12430 wlarc=
12433 # PORTME: fill in a description of your system's C++ link characteristics
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12435 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12436 ld_shlibs_CXX=yes
12437 case $host_os in
12438 aix3*)
12439 # FIXME: insert proper C++ library support
12440 ld_shlibs_CXX=no
12442 aix[4-9]*)
12443 if test "$host_cpu" = ia64; then
12444 # On IA64, the linker does run time linking by default, so we don't
12445 # have to do anything special.
12446 aix_use_runtimelinking=no
12447 exp_sym_flag='-Bexport'
12448 no_entry_flag=""
12449 else
12450 aix_use_runtimelinking=no
12452 # Test if we are trying to use run time linking or normal
12453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12454 # need to do runtime linking.
12455 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12456 for ld_flag in $LDFLAGS; do
12457 case $ld_flag in
12458 *-brtl*)
12459 aix_use_runtimelinking=yes
12460 break
12462 esac
12463 done
12465 esac
12467 exp_sym_flag='-bexport'
12468 no_entry_flag='-bnoentry'
12471 # When large executables or shared objects are built, AIX ld can
12472 # have problems creating the table of contents. If linking a library
12473 # or program results in "error TOC overflow" add -mminimal-toc to
12474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12477 archive_cmds_CXX=''
12478 hardcode_direct_CXX=yes
12479 hardcode_direct_absolute_CXX=yes
12480 hardcode_libdir_separator_CXX=':'
12481 link_all_deplibs_CXX=yes
12482 file_list_spec_CXX='${wl}-f,'
12484 if test "$GXX" = yes; then
12485 case $host_os in aix4.[012]|aix4.[012].*)
12486 # We only want to do this on AIX 4.2 and lower, the check
12487 # below for broken collect2 doesn't work under 4.3+
12488 collect2name=`${CC} -print-prog-name=collect2`
12489 if test -f "$collect2name" &&
12490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12491 then
12492 # We have reworked collect2
12494 else
12495 # We have old collect2
12496 hardcode_direct_CXX=unsupported
12497 # It fails to find uninstalled libraries when the uninstalled
12498 # path is not listed in the libpath. Setting hardcode_minus_L
12499 # to unsupported forces relinking
12500 hardcode_minus_L_CXX=yes
12501 hardcode_libdir_flag_spec_CXX='-L$libdir'
12502 hardcode_libdir_separator_CXX=
12504 esac
12505 shared_flag='-shared'
12506 if test "$aix_use_runtimelinking" = yes; then
12507 shared_flag="$shared_flag "'${wl}-G'
12509 else
12510 # not using gcc
12511 if test "$host_cpu" = ia64; then
12512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12513 # chokes on -Wl,-G. The following line is correct:
12514 shared_flag='-G'
12515 else
12516 if test "$aix_use_runtimelinking" = yes; then
12517 shared_flag='${wl}-G'
12518 else
12519 shared_flag='${wl}-bM:SRE'
12524 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12525 # It seems that -bexpall does not export symbols beginning with
12526 # underscore (_), so it is better to generate a list of symbols to
12527 # export.
12528 always_export_symbols_CXX=yes
12529 if test "$aix_use_runtimelinking" = yes; then
12530 # Warning - without using the other runtime loading flags (-brtl),
12531 # -berok will link without error, but may produce a broken library.
12532 allow_undefined_flag_CXX='-berok'
12533 # Determine the default libpath from the value encoded in an empty
12534 # executable.
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12539 main ()
12543 return 0;
12545 _ACEOF
12546 if ac_fn_cxx_try_link "$LINENO"; then :
12548 lt_aix_libpath_sed='
12549 /Import File Strings/,/^$/ {
12550 /^0/ {
12551 s/^0 *\(.*\)$/\1/
12555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12556 # Check for a 64-bit object if we didn't find anything.
12557 if test -z "$aix_libpath"; then
12558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12567 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12568 else
12569 if test "$host_cpu" = ia64; then
12570 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12571 allow_undefined_flag_CXX="-z nodefs"
12572 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12573 else
12574 # Determine the default libpath from the value encoded in an
12575 # empty executable.
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12580 main ()
12584 return 0;
12586 _ACEOF
12587 if ac_fn_cxx_try_link "$LINENO"; then :
12589 lt_aix_libpath_sed='
12590 /Import File Strings/,/^$/ {
12591 /^0/ {
12592 s/^0 *\(.*\)$/\1/
12596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 # Check for a 64-bit object if we didn't find anything.
12598 if test -z "$aix_libpath"; then
12599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12606 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12607 # Warning - without using the other run time loading flags,
12608 # -berok will link without error, but may produce a broken library.
12609 no_undefined_flag_CXX=' ${wl}-bernotok'
12610 allow_undefined_flag_CXX=' ${wl}-berok'
12611 if test "$with_gnu_ld" = yes; then
12612 # We only use this code for GNU lds that support --whole-archive.
12613 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12614 else
12615 # Exported symbols can be pulled into shared objects from archives
12616 whole_archive_flag_spec_CXX='$convenience'
12618 archive_cmds_need_lc_CXX=yes
12619 # This is similar to how AIX traditionally builds its shared
12620 # libraries.
12621 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12626 beos*)
12627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12628 allow_undefined_flag_CXX=unsupported
12629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12630 # support --undefined. This deserves some investigation. FIXME
12631 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12632 else
12633 ld_shlibs_CXX=no
12637 chorus*)
12638 case $cc_basename in
12640 # FIXME: insert proper C++ library support
12641 ld_shlibs_CXX=no
12643 esac
12646 cygwin* | mingw* | pw32* | cegcc*)
12647 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12648 # as there is no search path for DLLs.
12649 hardcode_libdir_flag_spec_CXX='-L$libdir'
12650 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12651 allow_undefined_flag_CXX=unsupported
12652 always_export_symbols_CXX=no
12653 enable_shared_with_static_runtimes_CXX=yes
12655 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12656 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12657 # If the export-symbols file already is a .def file (1st line
12658 # is EXPORTS), use it as is; otherwise, prepend...
12659 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12660 cp $export_symbols $output_objdir/$soname.def;
12661 else
12662 echo EXPORTS > $output_objdir/$soname.def;
12663 cat $export_symbols >> $output_objdir/$soname.def;
12665 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12666 else
12667 ld_shlibs_CXX=no
12670 darwin* | rhapsody*)
12674 # Publish an arg to allow the user to select that Darwin host (and target)
12675 # libraries should be given install-names like @rpath/libfoo.dylib. This
12676 # requires that the user of the library then adds an 'rpath' to the DSO that
12677 # needs access.
12678 # NOTE: there are defaults below, for systems that support rpaths. The person
12679 # configuring can override the defaults for any system version that supports
12680 # them - they are, however, forced off for system versions without support.
12681 # Check whether --enable-darwin-at-rpath was given.
12682 if test "${enable_darwin_at_rpath+set}" = set; then :
12683 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12684 # This is not supported before macOS 10.5 / Darwin9.
12685 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12686 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12688 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12689 enable_darwin_at_rpath=no
12691 esac
12693 else
12694 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12695 # As above, before 10.5 / Darwin9 this does not work.
12696 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12697 enable_darwin_at_rpath=no
12700 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12701 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12702 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12703 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12705 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12706 enable_darwin_at_rpath=yes
12708 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12709 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12711 esac
12716 archive_cmds_need_lc_CXX=no
12717 hardcode_direct_CXX=no
12718 hardcode_automatic_CXX=yes
12719 hardcode_shlibpath_var_CXX=unsupported
12720 if test "$lt_cv_ld_force_load" = "yes"; then
12721 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12722 else
12723 whole_archive_flag_spec_CXX=''
12725 link_all_deplibs_CXX=yes
12726 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12727 case $cc_basename in
12728 ifort*) _lt_dar_can_shared=yes ;;
12729 *) _lt_dar_can_shared=$GCC ;;
12730 esac
12731 if test "$_lt_dar_can_shared" = "yes"; then
12732 output_verbose_link_cmd=func_echo_all
12733 _lt_install_name='\$rpath/\$soname'
12734 if test "x$enable_darwin_at_rpath" = "xyes"; then
12735 _lt_install_name='@rpath/\$soname'
12737 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
12738 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12739 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
12740 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12741 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12742 _lt_install_name='\$rpath/\$soname'
12743 if test "x$enable_darwin_at_rpath" = "xyes"; then
12744 _lt_install_name='@rpath/\$soname'
12746 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
12747 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12750 else
12751 ld_shlibs_CXX=no
12756 dgux*)
12757 case $cc_basename in
12758 ec++*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12762 ghcx*)
12763 # Green Hills C++ Compiler
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12771 esac
12774 freebsd2.*)
12775 # C++ shared libraries reported to be fairly broken before
12776 # switch to ELF
12777 ld_shlibs_CXX=no
12780 freebsd-elf*)
12781 archive_cmds_need_lc_CXX=no
12784 freebsd* | dragonfly*)
12785 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12786 # conventions
12787 ld_shlibs_CXX=yes
12790 gnu*)
12793 haiku*)
12794 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 link_all_deplibs_CXX=yes
12798 hpux9*)
12799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12800 hardcode_libdir_separator_CXX=:
12801 export_dynamic_flag_spec_CXX='${wl}-E'
12802 hardcode_direct_CXX=yes
12803 hardcode_minus_L_CXX=yes # Not in the search PATH,
12804 # but as the default
12805 # location of the library.
12807 case $cc_basename in
12808 CC*)
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12812 aCC*)
12813 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12814 # Commands to make compiler produce verbose output that lists
12815 # what "hidden" libraries, object files and flags are used when
12816 # linking a shared library.
12818 # There doesn't appear to be a way to prevent this compiler from
12819 # explicitly linking system object files so we need to strip them
12820 # from the output so that they don't get included in the library
12821 # dependencies.
12822 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12825 if test "$GXX" = yes; then
12826 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12827 else
12828 # FIXME: insert proper C++ library support
12829 ld_shlibs_CXX=no
12832 esac
12835 hpux10*|hpux11*)
12836 if test $with_gnu_ld = no; then
12837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator_CXX=:
12840 case $host_cpu in
12841 hppa*64*|ia64*)
12844 export_dynamic_flag_spec_CXX='${wl}-E'
12846 esac
12848 case $host_cpu in
12849 hppa*64*|ia64*)
12850 hardcode_direct_CXX=no
12851 hardcode_shlibpath_var_CXX=no
12854 hardcode_direct_CXX=yes
12855 hardcode_direct_absolute_CXX=yes
12856 hardcode_minus_L_CXX=yes # Not in the search PATH,
12857 # but as the default
12858 # location of the library.
12860 esac
12862 case $cc_basename in
12863 CC*)
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12867 aCC*)
12868 case $host_cpu in
12869 hppa*64*)
12870 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872 ia64*)
12873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12878 esac
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12883 # There doesn't appear to be a way to prevent this compiler from
12884 # explicitly linking system object files so we need to strip them
12885 # from the output so that they don't get included in the library
12886 # dependencies.
12887 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12890 if test "$GXX" = yes; then
12891 if test $with_gnu_ld = no; then
12892 case $host_cpu in
12893 hppa*64*)
12894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12896 ia64*)
12897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902 esac
12904 else
12905 # FIXME: insert proper C++ library support
12906 ld_shlibs_CXX=no
12909 esac
12912 interix[3-9]*)
12913 hardcode_direct_CXX=no
12914 hardcode_shlibpath_var_CXX=no
12915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12916 export_dynamic_flag_spec_CXX='${wl}-E'
12917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12918 # Instead, shared libraries are loaded at an image base (0x10000000 by
12919 # default) and relocated if they conflict, which is a slow very memory
12920 # consuming and fragmenting process. To avoid this, we pick a random,
12921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12923 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12924 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12926 irix5* | irix6*)
12927 case $cc_basename in
12928 CC*)
12929 # SGI C++
12930 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12932 # Archives containing C++ object files must be created using
12933 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12934 # necessary to make sure instantiated templates are included
12935 # in the archive.
12936 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12939 if test "$GXX" = yes; then
12940 if test "$with_gnu_ld" = no; then
12941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12942 else
12943 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12946 link_all_deplibs_CXX=yes
12948 esac
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12950 hardcode_libdir_separator_CXX=:
12951 inherit_rpath_CXX=yes
12954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12955 case $cc_basename in
12956 KCC*)
12957 # Kuck and Associates, Inc. (KAI) C++ Compiler
12959 # KCC will only create a shared library if the output file
12960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12961 # to its proper name (with version) after linking.
12962 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12963 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12964 # Commands to make compiler produce verbose output that lists
12965 # what "hidden" libraries, object files and flags are used when
12966 # linking a shared library.
12968 # There doesn't appear to be a way to prevent this compiler from
12969 # explicitly linking system object files so we need to strip them
12970 # from the output so that they don't get included in the library
12971 # dependencies.
12972 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12977 # Archives containing C++ object files must be created using
12978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12981 icpc* | ecpc* )
12982 # Intel C++
12983 with_gnu_ld=yes
12984 # version 8.0 and above of icpc choke on multiply defined symbols
12985 # if we add $predep_objects and $postdep_objects, however 7.1 and
12986 # earlier do not add the objects themselves.
12987 case `$CC -V 2>&1` in
12988 *"Version 7."*)
12989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12992 *) # Version 8.0 or newer
12993 tmp_idyn=
12994 case $host_cpu in
12995 ia64*) tmp_idyn=' -i_dynamic';;
12996 esac
12997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13000 esac
13001 archive_cmds_need_lc_CXX=no
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13006 pgCC* | pgcpp*)
13007 # Portland Group C++ compiler
13008 case `$CC -V` in
13009 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13010 prelink_cmds_CXX='tpldir=Template.dir~
13011 rm -rf $tpldir~
13012 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13013 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13014 old_archive_cmds_CXX='tpldir=Template.dir~
13015 rm -rf $tpldir~
13016 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13017 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13018 $RANLIB $oldlib'
13019 archive_cmds_CXX='tpldir=Template.dir~
13020 rm -rf $tpldir~
13021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13023 archive_expsym_cmds_CXX='tpldir=Template.dir~
13024 rm -rf $tpldir~
13025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13026 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13028 *) # Version 6 and above use weak symbols
13029 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13030 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13032 esac
13034 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13036 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13038 cxx*)
13039 # Compaq C++
13040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13043 runpath_var=LD_RUN_PATH
13044 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13045 hardcode_libdir_separator_CXX=:
13047 # Commands to make compiler produce verbose output that lists
13048 # what "hidden" libraries, object files and flags are used when
13049 # linking a shared library.
13051 # There doesn't appear to be a way to prevent this compiler from
13052 # explicitly linking system object files so we need to strip them
13053 # from the output so that they don't get included in the library
13054 # dependencies.
13055 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13057 xl* | mpixl* | bgxl*)
13058 # IBM XL 8.0 on PPC, with GNU ld
13059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13061 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 if test "x$supports_anon_versioning" = xyes; then
13063 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13065 echo "local: *; };" >> $output_objdir/$libname.ver~
13066 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13070 case `$CC -V 2>&1 | sed 5q` in
13071 *Sun\ C*)
13072 # Sun C++ 5.9
13073 no_undefined_flag_CXX=' -zdefs'
13074 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13075 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13076 hardcode_libdir_flag_spec_CXX='-R$libdir'
13077 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13078 compiler_needs_object_CXX=yes
13080 # Not sure whether something based on
13081 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13082 # would be better.
13083 output_verbose_link_cmd='func_echo_all'
13085 # Archives containing C++ object files must be created using
13086 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13087 # necessary to make sure instantiated templates are included
13088 # in the archive.
13089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13091 esac
13093 esac
13096 lynxos*)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13101 m88k*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13106 mvs*)
13107 case $cc_basename in
13108 cxx*)
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13113 # FIXME: insert proper C++ library support
13114 ld_shlibs_CXX=no
13116 esac
13119 netbsd*)
13120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13122 wlarc=
13123 hardcode_libdir_flag_spec_CXX='-R$libdir'
13124 hardcode_direct_CXX=yes
13125 hardcode_shlibpath_var_CXX=no
13127 # Workaround some broken pre-1.5 toolchains
13128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13131 *nto* | *qnx*)
13132 ld_shlibs_CXX=yes
13135 openbsd2*)
13136 # C++ shared libraries are fairly broken
13137 ld_shlibs_CXX=no
13140 openbsd*)
13141 if test -f /usr/libexec/ld.so; then
13142 hardcode_direct_CXX=yes
13143 hardcode_shlibpath_var_CXX=no
13144 hardcode_direct_absolute_CXX=yes
13145 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13148 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13149 export_dynamic_flag_spec_CXX='${wl}-E'
13150 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13152 output_verbose_link_cmd=func_echo_all
13153 else
13154 ld_shlibs_CXX=no
13158 osf3* | osf4* | osf5*)
13159 case $cc_basename in
13160 KCC*)
13161 # Kuck and Associates, Inc. (KAI) C++ Compiler
13163 # KCC will only create a shared library if the output file
13164 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13165 # to its proper name (with version) after linking.
13166 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13168 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13169 hardcode_libdir_separator_CXX=:
13171 # Archives containing C++ object files must be created using
13172 # the KAI C++ compiler.
13173 case $host in
13174 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13175 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13176 esac
13178 RCC*)
13179 # Rational C++ 2.4.1
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13183 cxx*)
13184 case $host in
13185 osf3*)
13186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13187 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13191 allow_undefined_flag_CXX=' -expect_unresolved \*'
13192 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13194 echo "-hidden">> $lib.exp~
13195 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13196 $RM $lib.exp'
13197 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13199 esac
13201 hardcode_libdir_separator_CXX=:
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13207 # There doesn't appear to be a way to prevent this compiler from
13208 # explicitly linking system object files so we need to strip them
13209 # from the output so that they don't get included in the library
13210 # dependencies.
13211 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13216 case $host in
13217 osf3*)
13218 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13221 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13223 esac
13225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13226 hardcode_libdir_separator_CXX=:
13228 # Commands to make compiler produce verbose output that lists
13229 # what "hidden" libraries, object files and flags are used when
13230 # linking a shared library.
13231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13233 else
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13238 esac
13241 psos*)
13242 # FIXME: insert proper C++ library support
13243 ld_shlibs_CXX=no
13246 sunos4*)
13247 case $cc_basename in
13248 CC*)
13249 # Sun C++ 4.x
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13253 lcc*)
13254 # Lucid
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13259 # FIXME: insert proper C++ library support
13260 ld_shlibs_CXX=no
13262 esac
13265 solaris*)
13266 case $cc_basename in
13267 CC*)
13268 # Sun C++ 4.2, 5.x and Centerline C++
13269 archive_cmds_need_lc_CXX=yes
13270 no_undefined_flag_CXX=' -zdefs'
13271 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13273 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13275 hardcode_libdir_flag_spec_CXX='-R$libdir'
13276 hardcode_shlibpath_var_CXX=no
13277 case $host_os in
13278 solaris2.[0-5] | solaris2.[0-5].*) ;;
13280 # The compiler driver will combine and reorder linker options,
13281 # but understands `-z linker_flag'.
13282 # Supported since Solaris 2.6 (maybe 2.5.1?)
13283 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13285 esac
13286 link_all_deplibs_CXX=yes
13288 output_verbose_link_cmd='func_echo_all'
13290 # Archives containing C++ object files must be created using
13291 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13292 # necessary to make sure instantiated templates are included
13293 # in the archive.
13294 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13296 gcx*)
13297 # Green Hills C++ Compiler
13298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13300 # The C++ compiler must be used to create the archive.
13301 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13304 # GNU C++ compiler with Solaris linker
13305 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13306 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13307 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13308 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13309 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13310 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13312 # Commands to make compiler produce verbose output that lists
13313 # what "hidden" libraries, object files and flags are used when
13314 # linking a shared library.
13315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13316 else
13317 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13318 # platform.
13319 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13320 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13321 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13323 # Commands to make compiler produce verbose output that lists
13324 # what "hidden" libraries, object files and flags are used when
13325 # linking a shared library.
13326 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13329 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13330 case $host_os in
13331 solaris2.[0-5] | solaris2.[0-5].*) ;;
13333 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13335 esac
13338 esac
13341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13342 no_undefined_flag_CXX='${wl}-z,text'
13343 archive_cmds_need_lc_CXX=no
13344 hardcode_shlibpath_var_CXX=no
13345 runpath_var='LD_RUN_PATH'
13347 case $cc_basename in
13348 CC*)
13349 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 esac
13359 sysv5* | sco3.2v5* | sco5v6*)
13360 # Note: We can NOT use -z defs as we might desire, because we do not
13361 # link with -lc, and that would cause any symbols used from libc to
13362 # always be unresolved, which means just about no library would
13363 # ever link correctly. If we're not using GNU ld we use -z text
13364 # though, which does catch some bad symbols but isn't as heavy-handed
13365 # as -z defs.
13366 no_undefined_flag_CXX='${wl}-z,text'
13367 allow_undefined_flag_CXX='${wl}-z,nodefs'
13368 archive_cmds_need_lc_CXX=no
13369 hardcode_shlibpath_var_CXX=no
13370 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13371 hardcode_libdir_separator_CXX=':'
13372 link_all_deplibs_CXX=yes
13373 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13374 runpath_var='LD_RUN_PATH'
13376 case $cc_basename in
13377 CC*)
13378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13381 '"$old_archive_cmds_CXX"
13382 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13383 '"$reload_cmds_CXX"
13386 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 esac
13392 tandem*)
13393 case $cc_basename in
13394 NCC*)
13395 # NonStop-UX NCC 3.20
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13403 esac
13406 vxworks*)
13407 # For VxWorks ports, we assume the use of a GNU linker with
13408 # standard elf conventions.
13409 ld_shlibs_CXX=yes
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13416 esac
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13419 $as_echo "$ld_shlibs_CXX" >&6; }
13420 test "$ld_shlibs_CXX" = no && can_build_shared=no
13422 GCC_CXX="$GXX"
13423 LD_CXX="$LD"
13425 ## CAVEAT EMPTOR:
13426 ## There is no encapsulation within the following macros, do not change
13427 ## the running order or otherwise move them around unless you know exactly
13428 ## what you are doing...
13429 # Dependencies to place before and after the object being linked:
13430 predep_objects_CXX=
13431 postdep_objects_CXX=
13432 predeps_CXX=
13433 postdeps_CXX=
13434 compiler_lib_search_path_CXX=
13436 cat > conftest.$ac_ext <<_LT_EOF
13437 class Foo
13439 public:
13440 Foo (void) { a = 0; }
13441 private:
13442 int a;
13444 _LT_EOF
13446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13447 (eval $ac_compile) 2>&5
13448 ac_status=$?
13449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450 test $ac_status = 0; }; then
13451 # Parse the compiler output and extract the necessary
13452 # objects, libraries and library flags.
13454 # Sentinel used to keep track of whether or not we are before
13455 # the conftest object file.
13456 pre_test_object_deps_done=no
13458 for p in `eval "$output_verbose_link_cmd"`; do
13459 case $p in
13461 -L* | -R* | -l*)
13462 # Some compilers place space between "-{L,R}" and the path.
13463 # Remove the space.
13464 if test $p = "-L" ||
13465 test $p = "-R"; then
13466 prev=$p
13467 continue
13468 else
13469 prev=
13472 if test "$pre_test_object_deps_done" = no; then
13473 case $p in
13474 -L* | -R*)
13475 # Internal compiler library paths should come after those
13476 # provided the user. The postdeps already come after the
13477 # user supplied libs so there is no need to process them.
13478 if test -z "$compiler_lib_search_path_CXX"; then
13479 compiler_lib_search_path_CXX="${prev}${p}"
13480 else
13481 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13484 # The "-l" case would never come before the object being
13485 # linked, so don't bother handling this case.
13486 esac
13487 else
13488 if test -z "$postdeps_CXX"; then
13489 postdeps_CXX="${prev}${p}"
13490 else
13491 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13496 *.$objext)
13497 # This assumes that the test object file only shows up
13498 # once in the compiler output.
13499 if test "$p" = "conftest.$objext"; then
13500 pre_test_object_deps_done=yes
13501 continue
13504 if test "$pre_test_object_deps_done" = no; then
13505 if test -z "$predep_objects_CXX"; then
13506 predep_objects_CXX="$p"
13507 else
13508 predep_objects_CXX="$predep_objects_CXX $p"
13510 else
13511 if test -z "$postdep_objects_CXX"; then
13512 postdep_objects_CXX="$p"
13513 else
13514 postdep_objects_CXX="$postdep_objects_CXX $p"
13519 *) ;; # Ignore the rest.
13521 esac
13522 done
13524 # Clean up.
13525 rm -f a.out a.exe
13526 else
13527 echo "libtool.m4: error: problem compiling CXX test program"
13530 $RM -f confest.$objext
13532 # PORTME: override above test on systems where it is broken
13533 case $host_os in
13534 interix[3-9]*)
13535 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13536 # hack all around it, let's just trust "g++" to DTRT.
13537 predep_objects_CXX=
13538 postdep_objects_CXX=
13539 postdeps_CXX=
13542 linux*)
13543 case `$CC -V 2>&1 | sed 5q` in
13544 *Sun\ C*)
13545 # Sun C++ 5.9
13547 # The more standards-conforming stlport4 library is
13548 # incompatible with the Cstd library. Avoid specifying
13549 # it if it's in CXXFLAGS. Ignore libCrun as
13550 # -library=stlport4 depends on it.
13551 case " $CXX $CXXFLAGS " in
13552 *" -library=stlport4 "*)
13553 solaris_use_stlport4=yes
13555 esac
13557 if test "$solaris_use_stlport4" != yes; then
13558 postdeps_CXX='-library=Cstd -library=Crun'
13561 esac
13564 solaris*)
13565 case $cc_basename in
13566 CC*)
13567 # The more standards-conforming stlport4 library is
13568 # incompatible with the Cstd library. Avoid specifying
13569 # it if it's in CXXFLAGS. Ignore libCrun as
13570 # -library=stlport4 depends on it.
13571 case " $CXX $CXXFLAGS " in
13572 *" -library=stlport4 "*)
13573 solaris_use_stlport4=yes
13575 esac
13577 # Adding this requires a known-good setup of shared libraries for
13578 # Sun compiler versions before 5.6, else PIC objects from an old
13579 # archive will be linked into the output, leading to subtle bugs.
13580 if test "$solaris_use_stlport4" != yes; then
13581 postdeps_CXX='-library=Cstd -library=Crun'
13584 esac
13586 esac
13589 case " $postdeps_CXX " in
13590 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13591 esac
13592 compiler_lib_search_dirs_CXX=
13593 if test -n "${compiler_lib_search_path_CXX}"; then
13594 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13627 lt_prog_compiler_wl_CXX=
13628 lt_prog_compiler_pic_CXX=
13629 lt_prog_compiler_static_CXX=
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13632 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13634 # C++ specific cases for pic, static, wl, etc.
13635 if test "$GXX" = yes; then
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 lt_prog_compiler_static_CXX='-static'
13639 case $host_os in
13640 aix*)
13641 # All AIX code is PIC.
13642 if test "$host_cpu" = ia64; then
13643 # AIX 5 now supports IA64 processor
13644 lt_prog_compiler_static_CXX='-Bstatic'
13646 lt_prog_compiler_pic_CXX='-fPIC'
13649 amigaos*)
13650 case $host_cpu in
13651 powerpc)
13652 # see comment about AmigaOS4 .so support
13653 lt_prog_compiler_pic_CXX='-fPIC'
13655 m68k)
13656 # FIXME: we need at least 68020 code to build shared libraries, but
13657 # adding the `-m68020' flag to GCC prevents building anything better,
13658 # like `-m68040'.
13659 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13661 esac
13664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13665 # PIC is the default for these OSes.
13667 mingw* | cygwin* | os2* | pw32* | cegcc*)
13668 # This hack is so that the source file can tell whether it is being
13669 # built for inclusion in a dll (and should export symbols for example).
13670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13671 # (--disable-auto-import) libraries
13672 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13674 darwin* | rhapsody*)
13675 # PIC is the default on this platform
13676 # Common symbols not allowed in MH_DYLIB files
13677 lt_prog_compiler_pic_CXX='-fno-common'
13679 *djgpp*)
13680 # DJGPP does not support shared libraries at all
13681 lt_prog_compiler_pic_CXX=
13683 haiku*)
13684 # PIC is the default for Haiku.
13685 # The "-static" flag exists, but is broken.
13686 lt_prog_compiler_static_CXX=
13688 interix[3-9]*)
13689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13690 # Instead, we relocate shared libraries at runtime.
13692 sysv4*MP*)
13693 if test -d /usr/nec; then
13694 lt_prog_compiler_pic_CXX=-Kconform_pic
13697 hpux*)
13698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13700 # sets the default TLS model and affects inlining.
13701 case $host_cpu in
13702 hppa*64*)
13705 lt_prog_compiler_pic_CXX='-fPIC'
13707 esac
13709 *qnx* | *nto*)
13710 # QNX uses GNU C++, but need to define -shared option too, otherwise
13711 # it will coredump.
13712 lt_prog_compiler_pic_CXX='-fPIC -shared'
13715 lt_prog_compiler_pic_CXX='-fPIC'
13717 esac
13718 else
13719 case $host_os in
13720 aix[4-9]*)
13721 # All AIX code is PIC.
13722 if test "$host_cpu" = ia64; then
13723 # AIX 5 now supports IA64 processor
13724 lt_prog_compiler_static_CXX='-Bstatic'
13725 else
13726 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13729 chorus*)
13730 case $cc_basename in
13731 cxch68*)
13732 # Green Hills C++ Compiler
13733 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13735 esac
13737 dgux*)
13738 case $cc_basename in
13739 ec++*)
13740 lt_prog_compiler_pic_CXX='-KPIC'
13742 ghcx*)
13743 # Green Hills C++ Compiler
13744 lt_prog_compiler_pic_CXX='-pic'
13748 esac
13750 freebsd* | dragonfly*)
13751 # FreeBSD uses GNU C++
13753 hpux9* | hpux10* | hpux11*)
13754 case $cc_basename in
13755 CC*)
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13758 if test "$host_cpu" != ia64; then
13759 lt_prog_compiler_pic_CXX='+Z'
13762 aCC*)
13763 lt_prog_compiler_wl_CXX='-Wl,'
13764 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13765 case $host_cpu in
13766 hppa*64*|ia64*)
13767 # +Z the default
13770 lt_prog_compiler_pic_CXX='+Z'
13772 esac
13776 esac
13778 interix*)
13779 # This is c89, which is MS Visual C++ (no shared libs)
13780 # Anyone wants to do a port?
13782 irix5* | irix6* | nonstopux*)
13783 case $cc_basename in
13784 CC*)
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_static_CXX='-non_shared'
13787 # CC pic flag -KPIC is the default.
13791 esac
13793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13794 case $cc_basename in
13795 KCC*)
13796 # KAI C++ Compiler
13797 lt_prog_compiler_wl_CXX='--backend -Wl,'
13798 lt_prog_compiler_pic_CXX='-fPIC'
13800 ecpc* )
13801 # old Intel C++ for x86_64 which still supported -KPIC.
13802 lt_prog_compiler_wl_CXX='-Wl,'
13803 lt_prog_compiler_pic_CXX='-KPIC'
13804 lt_prog_compiler_static_CXX='-static'
13806 icpc* )
13807 # Intel C++, used to be incompatible with GCC.
13808 # ICC 10 doesn't accept -KPIC any more.
13809 lt_prog_compiler_wl_CXX='-Wl,'
13810 lt_prog_compiler_pic_CXX='-fPIC'
13811 lt_prog_compiler_static_CXX='-static'
13813 pgCC* | pgcpp*)
13814 # Portland Group C++ compiler
13815 lt_prog_compiler_wl_CXX='-Wl,'
13816 lt_prog_compiler_pic_CXX='-fpic'
13817 lt_prog_compiler_static_CXX='-Bstatic'
13819 cxx*)
13820 # Compaq C++
13821 # Make sure the PIC flag is empty. It appears that all Alpha
13822 # Linux and Compaq Tru64 Unix objects are PIC.
13823 lt_prog_compiler_pic_CXX=
13824 lt_prog_compiler_static_CXX='-non_shared'
13826 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13827 # IBM XL 8.0, 9.0 on PPC and BlueGene
13828 lt_prog_compiler_wl_CXX='-Wl,'
13829 lt_prog_compiler_pic_CXX='-qpic'
13830 lt_prog_compiler_static_CXX='-qstaticlink'
13833 case `$CC -V 2>&1 | sed 5q` in
13834 *Sun\ C*)
13835 # Sun C++ 5.9
13836 lt_prog_compiler_pic_CXX='-KPIC'
13837 lt_prog_compiler_static_CXX='-Bstatic'
13838 lt_prog_compiler_wl_CXX='-Qoption ld '
13840 esac
13842 esac
13844 lynxos*)
13846 m88k*)
13848 mvs*)
13849 case $cc_basename in
13850 cxx*)
13851 lt_prog_compiler_pic_CXX='-W c,exportall'
13855 esac
13857 netbsd*)
13859 *qnx* | *nto*)
13860 # QNX uses GNU C++, but need to define -shared option too, otherwise
13861 # it will coredump.
13862 lt_prog_compiler_pic_CXX='-fPIC -shared'
13864 osf3* | osf4* | osf5*)
13865 case $cc_basename in
13866 KCC*)
13867 lt_prog_compiler_wl_CXX='--backend -Wl,'
13869 RCC*)
13870 # Rational C++ 2.4.1
13871 lt_prog_compiler_pic_CXX='-pic'
13873 cxx*)
13874 # Digital/Compaq C++
13875 lt_prog_compiler_wl_CXX='-Wl,'
13876 # Make sure the PIC flag is empty. It appears that all Alpha
13877 # Linux and Compaq Tru64 Unix objects are PIC.
13878 lt_prog_compiler_pic_CXX=
13879 lt_prog_compiler_static_CXX='-non_shared'
13883 esac
13885 psos*)
13887 solaris*)
13888 case $cc_basename in
13889 CC*)
13890 # Sun C++ 4.2, 5.x and Centerline C++
13891 lt_prog_compiler_pic_CXX='-KPIC'
13892 lt_prog_compiler_static_CXX='-Bstatic'
13893 lt_prog_compiler_wl_CXX='-Qoption ld '
13895 gcx*)
13896 # Green Hills C++ Compiler
13897 lt_prog_compiler_pic_CXX='-PIC'
13901 esac
13903 sunos4*)
13904 case $cc_basename in
13905 CC*)
13906 # Sun C++ 4.x
13907 lt_prog_compiler_pic_CXX='-pic'
13908 lt_prog_compiler_static_CXX='-Bstatic'
13910 lcc*)
13911 # Lucid
13912 lt_prog_compiler_pic_CXX='-pic'
13916 esac
13918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13919 case $cc_basename in
13920 CC*)
13921 lt_prog_compiler_wl_CXX='-Wl,'
13922 lt_prog_compiler_pic_CXX='-KPIC'
13923 lt_prog_compiler_static_CXX='-Bstatic'
13925 esac
13927 tandem*)
13928 case $cc_basename in
13929 NCC*)
13930 # NonStop-UX NCC 3.20
13931 lt_prog_compiler_pic_CXX='-KPIC'
13935 esac
13937 vxworks*)
13940 lt_prog_compiler_can_build_shared_CXX=no
13942 esac
13945 case $host_os in
13946 # For platforms which do not support PIC, -DPIC is meaningless:
13947 *djgpp*)
13948 lt_prog_compiler_pic_CXX=
13951 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13953 esac
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13955 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13960 # Check to make sure the PIC flag actually works.
13962 if test -n "$lt_prog_compiler_pic_CXX"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13965 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 lt_cv_prog_compiler_pic_works_CXX=no
13969 ac_outfile=conftest.$ac_objext
13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13971 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13972 # Insert the option either (1) after the last *FLAGS variable, or
13973 # (2) before a word containing "conftest.", or (3) at the end.
13974 # Note that $ac_compile itself does not contain backslashes and begins
13975 # with a dollar sign (not a hyphen), so the echo should work correctly.
13976 # The option is referenced via a variable to avoid confusing sed.
13977 lt_compile=`echo "$ac_compile" | $SED \
13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13980 -e 's:$: $lt_compiler_flag:'`
13981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13982 (eval "$lt_compile" 2>conftest.err)
13983 ac_status=$?
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 if (exit $ac_status) && test -s "$ac_outfile"; then
13987 # The compiler can only warn and ignore the option if not recognized
13988 # So say no if there are warnings other than the usual output.
13989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13992 lt_cv_prog_compiler_pic_works_CXX=yes
13995 $RM conftest*
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13999 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14001 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14002 case $lt_prog_compiler_pic_CXX in
14003 "" | " "*) ;;
14004 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14005 esac
14006 else
14007 lt_prog_compiler_pic_CXX=
14008 lt_prog_compiler_can_build_shared_CXX=no
14016 # Check to make sure the static flag actually works.
14018 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14021 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_static_works_CXX=no
14025 save_LDFLAGS="$LDFLAGS"
14026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14029 # The linker can only warn and ignore the option if not recognized
14030 # So say no if there are warnings
14031 if test -s conftest.err; then
14032 # Append any errors to the config.log.
14033 cat conftest.err 1>&5
14034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14036 if diff conftest.exp conftest.er2 >/dev/null; then
14037 lt_cv_prog_compiler_static_works_CXX=yes
14039 else
14040 lt_cv_prog_compiler_static_works_CXX=yes
14043 $RM -r conftest*
14044 LDFLAGS="$save_LDFLAGS"
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14048 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14050 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14052 else
14053 lt_prog_compiler_static_CXX=
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14061 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 lt_cv_prog_compiler_c_o_CXX=no
14065 $RM -r conftest 2>/dev/null
14066 mkdir conftest
14067 cd conftest
14068 mkdir out
14069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14071 lt_compiler_flag="-o out/conftest2.$ac_objext"
14072 # Insert the option either (1) after the last *FLAGS variable, or
14073 # (2) before a word containing "conftest.", or (3) at the end.
14074 # Note that $ac_compile itself does not contain backslashes and begins
14075 # with a dollar sign (not a hyphen), so the echo should work correctly.
14076 lt_compile=`echo "$ac_compile" | $SED \
14077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079 -e 's:$: $lt_compiler_flag:'`
14080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14081 (eval "$lt_compile" 2>out/conftest.err)
14082 ac_status=$?
14083 cat out/conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086 then
14087 # The compiler can only warn and ignore the option if not recognized
14088 # So say no if there are warnings
14089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14092 lt_cv_prog_compiler_c_o_CXX=yes
14095 chmod u+w . 2>&5
14096 $RM conftest*
14097 # SGI C++ compiler will create directory out/ii_files/ for
14098 # template instantiation
14099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14100 $RM out/* && rmdir out
14101 cd ..
14102 $RM -r conftest
14103 $RM conftest*
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14107 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14113 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 lt_cv_prog_compiler_c_o_CXX=no
14117 $RM -r conftest 2>/dev/null
14118 mkdir conftest
14119 cd conftest
14120 mkdir out
14121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14123 lt_compiler_flag="-o out/conftest2.$ac_objext"
14124 # Insert the option either (1) after the last *FLAGS variable, or
14125 # (2) before a word containing "conftest.", or (3) at the end.
14126 # Note that $ac_compile itself does not contain backslashes and begins
14127 # with a dollar sign (not a hyphen), so the echo should work correctly.
14128 lt_compile=`echo "$ac_compile" | $SED \
14129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14131 -e 's:$: $lt_compiler_flag:'`
14132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14133 (eval "$lt_compile" 2>out/conftest.err)
14134 ac_status=$?
14135 cat out/conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14138 then
14139 # The compiler can only warn and ignore the option if not recognized
14140 # So say no if there are warnings
14141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14144 lt_cv_prog_compiler_c_o_CXX=yes
14147 chmod u+w . 2>&5
14148 $RM conftest*
14149 # SGI C++ compiler will create directory out/ii_files/ for
14150 # template instantiation
14151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14152 $RM out/* && rmdir out
14153 cd ..
14154 $RM -r conftest
14155 $RM conftest*
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14159 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14164 hard_links="nottested"
14165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14166 # do not overwrite the value of need_locks provided by the user
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14168 $as_echo_n "checking if we can lock with hard links... " >&6; }
14169 hard_links=yes
14170 $RM conftest*
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172 touch conftest.a
14173 ln conftest.a conftest.b 2>&5 || hard_links=no
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14176 $as_echo "$hard_links" >&6; }
14177 if test "$hard_links" = no; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14180 need_locks=warn
14182 else
14183 need_locks=no
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 case $host_os in
14193 aix[4-9]*)
14194 # If we're using GNU nm, then we don't want the "-C" option.
14195 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14196 # Also, AIX nm treats weak defined symbols like other global defined
14197 # symbols, whereas GNU nm marks them as "W".
14198 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14199 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14200 else
14201 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14204 pw32*)
14205 export_symbols_cmds_CXX="$ltdll_cmds"
14207 cygwin* | mingw* | cegcc*)
14208 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14211 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14213 esac
14214 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14217 $as_echo "$ld_shlibs_CXX" >&6; }
14218 test "$ld_shlibs_CXX" = no && can_build_shared=no
14220 with_gnu_ld_CXX=$with_gnu_ld
14228 # Do we need to explicitly link libc?
14230 case "x$archive_cmds_need_lc_CXX" in
14231 x|xyes)
14232 # Assume -lc should be added
14233 archive_cmds_need_lc_CXX=yes
14235 if test "$enable_shared" = yes && test "$GCC" = yes; then
14236 case $archive_cmds_CXX in
14237 *'~'*)
14238 # FIXME: we may have to deal with multi-command sequences.
14240 '$CC '*)
14241 # Test whether the compiler implicitly links with -lc since on some
14242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14243 # to ld, don't add -lc before -lgcc.
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14246 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 $RM conftest*
14250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14253 (eval $ac_compile) 2>&5
14254 ac_status=$?
14255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256 test $ac_status = 0; } 2>conftest.err; then
14257 soname=conftest
14258 lib=conftest
14259 libobjs=conftest.$ac_objext
14260 deplibs=
14261 wl=$lt_prog_compiler_wl_CXX
14262 pic_flag=$lt_prog_compiler_pic_CXX
14263 compiler_flags=-v
14264 linker_flags=-v
14265 verstring=
14266 output_objdir=.
14267 libname=conftest
14268 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14269 allow_undefined_flag_CXX=
14270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14271 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14272 ac_status=$?
14273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14274 test $ac_status = 0; }
14275 then
14276 lt_cv_archive_cmds_need_lc_CXX=no
14277 else
14278 lt_cv_archive_cmds_need_lc_CXX=yes
14280 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14281 else
14282 cat conftest.err 1>&5
14284 $RM conftest*
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14288 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14289 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14291 esac
14294 esac
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14360 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14362 library_names_spec=
14363 libname_spec='lib$name'
14364 soname_spec=
14365 shrext_cmds=".so"
14366 postinstall_cmds=
14367 postuninstall_cmds=
14368 finish_cmds=
14369 finish_eval=
14370 shlibpath_var=
14371 shlibpath_overrides_runpath=unknown
14372 version_type=none
14373 dynamic_linker="$host_os ld.so"
14374 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14375 need_lib_prefix=unknown
14376 hardcode_into_libs=no
14378 # when you set need_version to no, make sure it does not cause -set_version
14379 # flags to be left without arguments
14380 need_version=unknown
14382 case $host_os in
14383 aix3*)
14384 version_type=linux
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14386 shlibpath_var=LIBPATH
14388 # AIX 3 has no versioning support, so we append a major version to the name.
14389 soname_spec='${libname}${release}${shared_ext}$major'
14392 aix[4-9]*)
14393 version_type=linux
14394 need_lib_prefix=no
14395 need_version=no
14396 hardcode_into_libs=yes
14397 if test "$host_cpu" = ia64; then
14398 # AIX 5 supports IA64
14399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 else
14402 # With GCC up to 2.95.x, collect2 would create an import file
14403 # for dependence libraries. The import file would start with
14404 # the line `#! .'. This would cause the generated library to
14405 # depend on `.', always an invalid library. This was fixed in
14406 # development snapshots of GCC prior to 3.0.
14407 case $host_os in
14408 aix4 | aix4.[01] | aix4.[01].*)
14409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14410 echo ' yes '
14411 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14413 else
14414 can_build_shared=no
14417 esac
14418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14419 # soname into executable. Probably we can add versioning support to
14420 # collect2, so additional links can be useful in future.
14421 if test "$aix_use_runtimelinking" = yes; then
14422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14423 # instead of lib<name>.a to let people know that these are not
14424 # typical AIX shared libraries.
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 else
14427 # We preserve .a as extension for shared libraries through AIX4.2
14428 # and later when we are not doing run time linking.
14429 library_names_spec='${libname}${release}.a $libname.a'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LIBPATH
14436 amigaos*)
14437 case $host_cpu in
14438 powerpc)
14439 # Since July 2007 AmigaOS4 officially supports .so libraries.
14440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443 m68k)
14444 library_names_spec='$libname.ixlibrary $libname.a'
14445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14446 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'
14448 esac
14451 beos*)
14452 library_names_spec='${libname}${shared_ext}'
14453 dynamic_linker="$host_os ld.so"
14454 shlibpath_var=LIBRARY_PATH
14457 bsdi[45]*)
14458 version_type=linux
14459 need_version=no
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14466 # the default ld.so.conf also contains /usr/contrib/lib and
14467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14468 # libtool to hard-code these into programs
14471 cygwin* | mingw* | pw32* | cegcc*)
14472 version_type=windows
14473 shrext_cmds=".dll"
14474 need_version=no
14475 need_lib_prefix=no
14477 case $GCC,$host_os in
14478 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14479 library_names_spec='$libname.dll.a'
14480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14481 postinstall_cmds='base_file=`basename \${file}`~
14482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14483 dldir=$destdir/`dirname \$dlpath`~
14484 test -d \$dldir || mkdir -p \$dldir~
14485 $install_prog $dir/$dlname \$dldir/$dlname~
14486 chmod a+x \$dldir/$dlname~
14487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14491 dlpath=$dir/\$dldll~
14492 $RM \$dlpath'
14493 shlibpath_overrides_runpath=yes
14495 case $host_os in
14496 cygwin*)
14497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501 mingw* | cegcc*)
14502 # MinGW DLLs use traditional 'lib' prefix
14503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14505 pw32*)
14506 # pw32 DLLs use 'pw' prefix rather than 'lib'
14507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509 esac
14513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14515 esac
14516 dynamic_linker='Win32 ld.exe'
14517 # FIXME: first we should search . and the directory the executable is in
14518 shlibpath_var=PATH
14521 darwin* | rhapsody*)
14522 dynamic_linker="$host_os dyld"
14523 version_type=darwin
14524 need_lib_prefix=no
14525 need_version=no
14526 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14527 soname_spec='${libname}${release}${major}$shared_ext'
14528 shlibpath_overrides_runpath=yes
14529 shlibpath_var=DYLD_LIBRARY_PATH
14530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14535 dgux*)
14536 version_type=linux
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14544 freebsd* | dragonfly*)
14545 # DragonFly does not have aout. When/if they implement a new
14546 # versioning mechanism, adjust this.
14547 if test -x /usr/bin/objformat; then
14548 objformat=`/usr/bin/objformat`
14549 else
14550 case $host_os in
14551 freebsd[23].*) objformat=aout ;;
14552 *) objformat=elf ;;
14553 esac
14555 version_type=freebsd-$objformat
14556 case $version_type in
14557 freebsd-elf*)
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14559 need_version=no
14560 need_lib_prefix=no
14562 freebsd-*)
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14564 need_version=yes
14566 esac
14567 shlibpath_var=LD_LIBRARY_PATH
14568 case $host_os in
14569 freebsd2.*)
14570 shlibpath_overrides_runpath=yes
14572 freebsd3.[01]* | freebsdelf3.[01]*)
14573 shlibpath_overrides_runpath=yes
14574 hardcode_into_libs=yes
14576 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14577 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14578 shlibpath_overrides_runpath=no
14579 hardcode_into_libs=yes
14581 *) # from 4.6 on, and DragonFly
14582 shlibpath_overrides_runpath=yes
14583 hardcode_into_libs=yes
14585 esac
14588 haiku*)
14589 version_type=linux
14590 need_lib_prefix=no
14591 need_version=no
14592 dynamic_linker="$host_os runtime_loader"
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 shlibpath_var=LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14598 hardcode_into_libs=yes
14601 hpux9* | hpux10* | hpux11*)
14602 # Give a soname corresponding to the major version so that dld.sl refuses to
14603 # link against other versions.
14604 version_type=sunos
14605 need_lib_prefix=no
14606 need_version=no
14607 case $host_cpu in
14608 ia64*)
14609 shrext_cmds='.so'
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.so"
14612 shlibpath_var=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 if test "X$HPUX_IA64_MODE" = X32; then
14617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14618 else
14619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623 hppa*64*)
14624 shrext_cmds='.sl'
14625 hardcode_into_libs=yes
14626 dynamic_linker="$host_os dld.sl"
14627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14635 shrext_cmds='.sl'
14636 dynamic_linker="$host_os dld.sl"
14637 shlibpath_var=SHLIB_PATH
14638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14642 esac
14643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14644 postinstall_cmds='chmod 555 $lib'
14645 # or fails outright, so override atomically:
14646 install_override_mode=555
14649 interix[3-9]*)
14650 version_type=linux
14651 need_lib_prefix=no
14652 need_version=no
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 shlibpath_overrides_runpath=no
14658 hardcode_into_libs=yes
14661 irix5* | irix6* | nonstopux*)
14662 case $host_os in
14663 nonstopux*) version_type=nonstopux ;;
14665 if test "$lt_cv_prog_gnu_ld" = yes; then
14666 version_type=linux
14667 else
14668 version_type=irix
14669 fi ;;
14670 esac
14671 need_lib_prefix=no
14672 need_version=no
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14675 case $host_os in
14676 irix5* | nonstopux*)
14677 libsuff= shlibsuff=
14680 case $LD in # libtool.m4 will add one of these switches to LD
14681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14682 libsuff= shlibsuff= libmagic=32-bit;;
14683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14684 libsuff=32 shlibsuff=N32 libmagic=N32;;
14685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14687 *) libsuff= shlibsuff= libmagic=never-match;;
14688 esac
14690 esac
14691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14692 shlibpath_overrides_runpath=no
14693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14695 hardcode_into_libs=yes
14698 # No shared lib support for Linux oldld, aout, or coff.
14699 linux*oldld* | linux*aout* | linux*coff*)
14700 dynamic_linker=no
14703 # This must be Linux ELF.
14705 # uclinux* changes (here and below) have been submitted to the libtool
14706 # project, but have not yet been accepted: they are GCC-local changes
14707 # for the time being. (See
14708 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14709 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14710 version_type=linux
14711 need_lib_prefix=no
14712 need_version=no
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714 soname_spec='${libname}${release}${shared_ext}$major'
14715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=no
14719 # Some binutils ld are patched to set DT_RUNPATH
14720 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 lt_cv_shlibpath_overrides_runpath=no
14724 save_LDFLAGS=$LDFLAGS
14725 save_libdir=$libdir
14726 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14727 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14732 main ()
14736 return 0;
14738 _ACEOF
14739 if ac_fn_cxx_try_link "$LINENO"; then :
14740 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14741 lt_cv_shlibpath_overrides_runpath=yes
14744 rm -f core conftest.err conftest.$ac_objext \
14745 conftest$ac_exeext conftest.$ac_ext
14746 LDFLAGS=$save_LDFLAGS
14747 libdir=$save_libdir
14751 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs=yes
14758 # Append ld.so.conf contents to the search path
14759 if test -f /etc/ld.so.conf; then
14760 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' ' '`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14773 netbsd*)
14774 version_type=sunos
14775 need_lib_prefix=no
14776 need_version=no
14777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14780 dynamic_linker='NetBSD (a.out) ld.so'
14781 else
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 dynamic_linker='NetBSD ld.elf_so'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 hardcode_into_libs=yes
14791 newsos6)
14792 version_type=linux
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
14798 *nto* | *qnx*)
14799 version_type=qnx
14800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=no
14806 hardcode_into_libs=yes
14807 dynamic_linker='ldqnx.so'
14810 openbsd*)
14811 version_type=sunos
14812 sys_lib_dlsearch_path_spec="/usr/lib"
14813 need_lib_prefix=no
14814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14815 case $host_os in
14816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14817 *) need_version=no ;;
14818 esac
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14823 case $host_os in
14824 openbsd2.[89] | openbsd2.[89].*)
14825 shlibpath_overrides_runpath=no
14828 shlibpath_overrides_runpath=yes
14830 esac
14831 else
14832 shlibpath_overrides_runpath=yes
14836 os2*)
14837 libname_spec='$name'
14838 shrext_cmds=".dll"
14839 need_lib_prefix=no
14840 library_names_spec='$libname${shared_ext} $libname.a'
14841 dynamic_linker='OS/2 ld.exe'
14842 shlibpath_var=LIBPATH
14845 osf3* | osf4* | osf5*)
14846 version_type=osf
14847 need_lib_prefix=no
14848 need_version=no
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14856 rdos*)
14857 dynamic_linker=no
14860 solaris*)
14861 version_type=linux
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14868 hardcode_into_libs=yes
14869 # ldd complains unless libraries are executable
14870 postinstall_cmds='chmod +x $lib'
14873 sunos4*)
14874 version_type=sunos
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14876 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 if test "$with_gnu_ld" = yes; then
14880 need_lib_prefix=no
14882 need_version=yes
14885 sysv4 | sysv4.3*)
14886 version_type=linux
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 case $host_vendor in
14891 sni)
14892 shlibpath_overrides_runpath=no
14893 need_lib_prefix=no
14894 runpath_var=LD_RUN_PATH
14896 siemens)
14897 need_lib_prefix=no
14899 motorola)
14900 need_lib_prefix=no
14901 need_version=no
14902 shlibpath_overrides_runpath=no
14903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14905 esac
14908 sysv4*MP*)
14909 if test -d /usr/nec ;then
14910 version_type=linux
14911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14912 soname_spec='$libname${shared_ext}.$major'
14913 shlibpath_var=LD_LIBRARY_PATH
14917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14918 version_type=freebsd-elf
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 hardcode_into_libs=yes
14926 if test "$with_gnu_ld" = yes; then
14927 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14928 else
14929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14930 case $host_os in
14931 sco3.2v5*)
14932 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14934 esac
14936 sys_lib_dlsearch_path_spec='/usr/lib'
14939 tpf*)
14940 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=no
14947 hardcode_into_libs=yes
14950 uts4*)
14951 version_type=linux
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14957 # Shared libraries for VwWorks, >= 7 only at this stage
14958 # and (fpic) still incompatible with "large" code models
14959 # in a few configurations. Only for RTP mode in any case,
14960 # and upon explicit request at configure time.
14961 vxworks7*)
14962 dynamic_linker=no
14963 case ${with_multisubdir}-${enable_shared} in
14964 *large*)
14966 *mrtp*-yes)
14967 version_type=linux
14968 need_lib_prefix=no
14969 need_version=no
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 dynamic_linker="$host_os module_loader"
14974 esac
14977 dynamic_linker=no
14979 esac
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14981 $as_echo "$dynamic_linker" >&6; }
14982 test "$dynamic_linker" = no && can_build_shared=no
14984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14985 if test "$GCC" = yes; then
14986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14990 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14993 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15035 hardcode_action_CXX=
15036 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15037 test -n "$runpath_var_CXX" ||
15038 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15040 # We can hardcode non-existent directories.
15041 if test "$hardcode_direct_CXX" != no &&
15042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15043 # have to relink, otherwise we might link with an installed library
15044 # when we should be linking with a yet-to-be-installed one
15045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15046 test "$hardcode_minus_L_CXX" != no; then
15047 # Linking always hardcodes the temporary library directory.
15048 hardcode_action_CXX=relink
15049 else
15050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15051 hardcode_action_CXX=immediate
15053 else
15054 # We cannot hardcode anything, or else we can only hardcode existing
15055 # directories.
15056 hardcode_action_CXX=unsupported
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15059 $as_echo "$hardcode_action_CXX" >&6; }
15061 if test "$hardcode_action_CXX" = relink ||
15062 test "$inherit_rpath_CXX" = yes; then
15063 # Fast installation is not supported
15064 enable_fast_install=no
15065 elif test "$shlibpath_overrides_runpath" = yes ||
15066 test "$enable_shared" = no; then
15067 # Fast installation is not necessary
15068 enable_fast_install=needless
15077 fi # test -n "$compiler"
15079 CC=$lt_save_CC
15080 LDCXX=$LD
15081 LD=$lt_save_LD
15082 GCC=$lt_save_GCC
15083 with_gnu_ld=$lt_save_with_gnu_ld
15084 lt_cv_path_LDCXX=$lt_cv_path_LD
15085 lt_cv_path_LD=$lt_save_path_LD
15086 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15087 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15088 fi # test "$_lt_caught_CXX_error" != yes
15090 ac_ext=c
15091 ac_cpp='$CPP $CPPFLAGS'
15092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15108 ac_config_commands="$ac_config_commands libtool"
15113 # Only expand once:
15116 if test x$enable_darwin_at_rpath = xyes; then
15117 ENABLE_DARWIN_AT_RPATH_TRUE=
15118 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15119 else
15120 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15121 ENABLE_DARWIN_AT_RPATH_FALSE=
15125 if test -n "$ac_tool_prefix"; then
15126 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
15127 set dummy ${ac_tool_prefix}readelf; ac_word=$2
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15129 $as_echo_n "checking for $ac_word... " >&6; }
15130 if ${ac_cv_prog_READELF+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 if test -n "$READELF"; then
15134 ac_cv_prog_READELF="$READELF" # Let the user override the test.
15135 else
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 for as_dir in $PATH
15139 IFS=$as_save_IFS
15140 test -z "$as_dir" && as_dir=.
15141 for ac_exec_ext in '' $ac_executable_extensions; do
15142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15143 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
15144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 break 2
15147 done
15148 done
15149 IFS=$as_save_IFS
15153 READELF=$ac_cv_prog_READELF
15154 if test -n "$READELF"; then
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
15156 $as_echo "$READELF" >&6; }
15157 else
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15159 $as_echo "no" >&6; }
15164 if test -z "$ac_cv_prog_READELF"; then
15165 ac_ct_READELF=$READELF
15166 # Extract the first word of "readelf", so it can be a program name with args.
15167 set dummy readelf; ac_word=$2
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15169 $as_echo_n "checking for $ac_word... " >&6; }
15170 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 if test -n "$ac_ct_READELF"; then
15174 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
15175 else
15176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177 for as_dir in $PATH
15179 IFS=$as_save_IFS
15180 test -z "$as_dir" && as_dir=.
15181 for ac_exec_ext in '' $ac_executable_extensions; do
15182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15183 ac_cv_prog_ac_ct_READELF="readelf"
15184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15185 break 2
15187 done
15188 done
15189 IFS=$as_save_IFS
15193 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
15194 if test -n "$ac_ct_READELF"; then
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15196 $as_echo "$ac_ct_READELF" >&6; }
15197 else
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15199 $as_echo "no" >&6; }
15202 if test "x$ac_ct_READELF" = x; then
15203 READELF=""
15204 else
15205 case $cross_compiling:$ac_tool_warned in
15206 yes:)
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15209 ac_tool_warned=yes ;;
15210 esac
15211 READELF=$ac_ct_READELF
15213 else
15214 READELF="$ac_cv_prog_READELF"
15218 # Test for 64-bit build.
15219 # The cast to long int works around a bug in the HP C Compiler
15220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15222 # This bug is HP SR number 8606223364.
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15224 $as_echo_n "checking size of size_t... " >&6; }
15225 if ${ac_cv_sizeof_size_t+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15230 else
15231 if test "$ac_cv_type_size_t" = yes; then
15232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15234 as_fn_error 77 "cannot compute sizeof (size_t)
15235 See \`config.log' for more details" "$LINENO" 5; }
15236 else
15237 ac_cv_sizeof_size_t=0
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15243 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15247 cat >>confdefs.h <<_ACEOF
15248 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15249 _ACEOF
15255 cat > local.exp <<EOF
15256 set SYSROOT_CFLAGS_FOR_TARGET "$SYSROOT_CFLAGS_FOR_TARGET"
15257 set compiler_vendor "$ax_cv_c_compiler_vendor"
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15262 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15263 # Check whether --enable-maintainer-mode was given.
15264 if test "${enable_maintainer_mode+set}" = set; then :
15265 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15266 else
15267 USE_MAINTAINER_MODE=no
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15271 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15272 if test $USE_MAINTAINER_MODE = yes; then
15273 MAINTAINER_MODE_TRUE=
15274 MAINTAINER_MODE_FALSE='#'
15275 else
15276 MAINTAINER_MODE_TRUE='#'
15277 MAINTAINER_MODE_FALSE=
15280 MAINT=$MAINTAINER_MODE_TRUE
15284 for ac_header in sys/memfd.h
15285 do :
15286 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15287 if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define HAVE_SYS_MEMFD_H 1
15290 _ACEOF
15294 done
15296 for ac_func in memfd_create
15297 do :
15298 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15299 if test "x$ac_cv_func_memfd_create" = xyes; then :
15300 cat >>confdefs.h <<_ACEOF
15301 #define HAVE_MEMFD_CREATE 1
15302 _ACEOF
15305 done
15308 for ac_header in sys/mman.h
15309 do :
15310 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15311 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15312 cat >>confdefs.h <<_ACEOF
15313 #define HAVE_SYS_MMAN_H 1
15314 _ACEOF
15318 done
15320 for ac_func in mmap mkostemp mkstemp
15321 do :
15322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15325 cat >>confdefs.h <<_ACEOF
15326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15327 _ACEOF
15330 done
15333 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15334 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15335 libffi_header_sys_mman_h=yes
15336 else
15337 libffi_header_sys_mman_h=no
15341 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15342 if test "x$ac_cv_func_mmap" = xyes; then :
15343 libffi_func_mmap=yes
15344 else
15345 libffi_func_mmap=no
15348 if test "$libffi_header_sys_mman_h" != yes \
15349 || test "$libffi_func_mmap" != yes; then
15350 ac_cv_func_mmap_file=no
15351 ac_cv_func_mmap_dev_zero=no
15352 ac_cv_func_mmap_anon=no
15353 else
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15355 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15356 if ${ac_cv_func_mmap_file+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 # Add a system to this blacklist if
15360 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15361 # memory area containing the same data that you'd get if you applied
15362 # read() to the same fd. The only system known to have a problem here
15363 # is VMS, where text files have record structure.
15364 case "$host_os" in
15365 vms* | ultrix*)
15366 ac_cv_func_mmap_file=no ;;
15368 ac_cv_func_mmap_file=yes;;
15369 esac
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15372 $as_echo "$ac_cv_func_mmap_file" >&6; }
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15374 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15375 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 # Add a system to this blacklist if it has mmap() but /dev/zero
15379 # does not exist, or if mmapping /dev/zero does not give anonymous
15380 # zeroed pages with both the following properties:
15381 # 1. If you map N consecutive pages in with one call, and then
15382 # unmap any subset of those pages, the pages that were not
15383 # explicitly unmapped remain accessible.
15384 # 2. If you map two adjacent blocks of memory and then unmap them
15385 # both at once, they must both go away.
15386 # Systems known to be in this category are Windows (all variants),
15387 # VMS, and Darwin.
15388 case "$host_os" in
15389 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15390 ac_cv_func_mmap_dev_zero=no ;;
15392 ac_cv_func_mmap_dev_zero=yes;;
15393 esac
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15396 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15398 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15400 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15401 if ${ac_cv_decl_map_anon+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 #include <sys/types.h>
15407 #include <sys/mman.h>
15408 #include <unistd.h>
15410 #ifndef MAP_ANONYMOUS
15411 #define MAP_ANONYMOUS MAP_ANON
15412 #endif
15415 main ()
15417 int n = MAP_ANONYMOUS;
15419 return 0;
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 ac_cv_decl_map_anon=yes
15424 else
15425 ac_cv_decl_map_anon=no
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15430 $as_echo "$ac_cv_decl_map_anon" >&6; }
15432 if test $ac_cv_decl_map_anon = no; then
15433 ac_cv_func_mmap_anon=no
15434 else
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15436 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15437 if ${ac_cv_func_mmap_anon+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15440 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15441 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15442 # doesn't give anonymous zeroed pages with the same properties listed
15443 # above for use of /dev/zero.
15444 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15445 case "$host_os" in
15446 vms* | cygwin* | pe | mingw* | sco* | udk* )
15447 ac_cv_func_mmap_anon=no ;;
15449 ac_cv_func_mmap_anon=yes;;
15450 esac
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15453 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15457 if test $ac_cv_func_mmap_file = yes; then
15459 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15462 if test $ac_cv_func_mmap_dev_zero = yes; then
15464 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15467 if test $ac_cv_func_mmap_anon = yes; then
15469 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15474 if test -d $srcdir/testsuite; then
15475 TESTSUBDIR_TRUE=
15476 TESTSUBDIR_FALSE='#'
15477 else
15478 TESTSUBDIR_TRUE='#'
15479 TESTSUBDIR_FALSE=
15483 TARGETDIR="unknown"
15484 HAVE_LONG_DOUBLE_VARIANT=0
15486 . ${srcdir}/configure.host
15488 if test -n "${UNSUPPORTED}"; then
15489 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15496 $as_echo_n "checking for ANSI C header files... " >&6; }
15497 if ${ac_cv_header_stdc+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 #include <stdlib.h>
15503 #include <stdarg.h>
15504 #include <string.h>
15505 #include <float.h>
15508 main ()
15512 return 0;
15514 _ACEOF
15515 if ac_fn_c_try_compile "$LINENO"; then :
15516 ac_cv_header_stdc=yes
15517 else
15518 ac_cv_header_stdc=no
15520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 if test $ac_cv_header_stdc = yes; then
15523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <string.h>
15528 _ACEOF
15529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15530 $EGREP "memchr" >/dev/null 2>&1; then :
15532 else
15533 ac_cv_header_stdc=no
15535 rm -f conftest*
15539 if test $ac_cv_header_stdc = yes; then
15540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 #include <stdlib.h>
15545 _ACEOF
15546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547 $EGREP "free" >/dev/null 2>&1; then :
15549 else
15550 ac_cv_header_stdc=no
15552 rm -f conftest*
15556 if test $ac_cv_header_stdc = yes; then
15557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15558 if test "$cross_compiling" = yes; then :
15560 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <ctype.h>
15564 #include <stdlib.h>
15565 #if ((' ' & 0x0FF) == 0x020)
15566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15568 #else
15569 # define ISLOWER(c) \
15570 (('a' <= (c) && (c) <= 'i') \
15571 || ('j' <= (c) && (c) <= 'r') \
15572 || ('s' <= (c) && (c) <= 'z'))
15573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15574 #endif
15576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15578 main ()
15580 int i;
15581 for (i = 0; i < 256; i++)
15582 if (XOR (islower (i), ISLOWER (i))
15583 || toupper (i) != TOUPPER (i))
15584 return 2;
15585 return 0;
15587 _ACEOF
15588 if ac_fn_c_try_run "$LINENO"; then :
15590 else
15591 ac_cv_header_stdc=no
15593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15594 conftest.$ac_objext conftest.beam conftest.$ac_ext
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15600 $as_echo "$ac_cv_header_stdc" >&6; }
15601 if test $ac_cv_header_stdc = yes; then
15603 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15607 for ac_func in memcpy
15608 do :
15609 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15610 if test "x$ac_cv_func_memcpy" = xyes; then :
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_MEMCPY 1
15613 _ACEOF
15616 done
15618 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15619 if test "x$ac_cv_type_size_t" = xyes; then :
15621 else
15623 cat >>confdefs.h <<_ACEOF
15624 #define size_t unsigned int
15625 _ACEOF
15629 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15630 # for constant arguments. Useless!
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15632 $as_echo_n "checking for working alloca.h... " >&6; }
15633 if ${ac_cv_working_alloca_h+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #include <alloca.h>
15640 main ()
15642 char *p = (char *) alloca (2 * sizeof (int));
15643 if (p) return 0;
15645 return 0;
15647 _ACEOF
15648 if ac_fn_c_try_link "$LINENO"; then :
15649 ac_cv_working_alloca_h=yes
15650 else
15651 ac_cv_working_alloca_h=no
15653 rm -f core conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15657 $as_echo "$ac_cv_working_alloca_h" >&6; }
15658 if test $ac_cv_working_alloca_h = yes; then
15660 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15665 $as_echo_n "checking for alloca... " >&6; }
15666 if ${ac_cv_func_alloca_works+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668 else
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #ifdef __GNUC__
15672 # define alloca __builtin_alloca
15673 #else
15674 # ifdef _MSC_VER
15675 # include <malloc.h>
15676 # define alloca _alloca
15677 # else
15678 # ifdef HAVE_ALLOCA_H
15679 # include <alloca.h>
15680 # else
15681 # ifdef _AIX
15682 #pragma alloca
15683 # else
15684 # ifndef alloca /* predefined by HP cc +Olibcalls */
15685 void *alloca (size_t);
15686 # endif
15687 # endif
15688 # endif
15689 # endif
15690 #endif
15693 main ()
15695 char *p = (char *) alloca (1);
15696 if (p) return 0;
15698 return 0;
15700 _ACEOF
15701 if ac_fn_c_try_link "$LINENO"; then :
15702 ac_cv_func_alloca_works=yes
15703 else
15704 ac_cv_func_alloca_works=no
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15710 $as_echo "$ac_cv_func_alloca_works" >&6; }
15712 if test $ac_cv_func_alloca_works = yes; then
15714 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15716 else
15717 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15718 # that cause trouble. Some versions do not even contain alloca or
15719 # contain a buggy version. If you still want to use their alloca,
15720 # use ar to extract alloca.o from them instead of compiling alloca.c.
15722 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15724 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15728 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15729 if ${ac_cv_os_cray+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 #if defined CRAY && ! defined CRAY2
15735 webecray
15736 #else
15737 wenotbecray
15738 #endif
15740 _ACEOF
15741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15742 $EGREP "webecray" >/dev/null 2>&1; then :
15743 ac_cv_os_cray=yes
15744 else
15745 ac_cv_os_cray=no
15747 rm -f conftest*
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15751 $as_echo "$ac_cv_os_cray" >&6; }
15752 if test $ac_cv_os_cray = yes; then
15753 for ac_func in _getb67 GETB67 getb67; do
15754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15756 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15758 cat >>confdefs.h <<_ACEOF
15759 #define CRAY_STACKSEG_END $ac_func
15760 _ACEOF
15762 break
15765 done
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15769 $as_echo_n "checking stack direction for C alloca... " >&6; }
15770 if ${ac_cv_c_stack_direction+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 if test "$cross_compiling" = yes; then :
15774 ac_cv_c_stack_direction=0
15775 else
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 $ac_includes_default
15780 find_stack_direction (int *addr, int depth)
15782 int dir, dummy = 0;
15783 if (! addr)
15784 addr = &dummy;
15785 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15786 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15787 return dir + dummy;
15791 main (int argc, char **argv)
15793 return find_stack_direction (0, argc + !argv + 20) < 0;
15795 _ACEOF
15796 if ac_fn_c_try_run "$LINENO"; then :
15797 ac_cv_c_stack_direction=1
15798 else
15799 ac_cv_c_stack_direction=-1
15801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15802 conftest.$ac_objext conftest.beam conftest.$ac_ext
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15807 $as_echo "$ac_cv_c_stack_direction" >&6; }
15808 cat >>confdefs.h <<_ACEOF
15809 #define STACK_DIRECTION $ac_cv_c_stack_direction
15810 _ACEOF
15816 # The cast to long int works around a bug in the HP C Compiler
15817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15819 # This bug is HP SR number 8606223364.
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15821 $as_echo_n "checking size of double... " >&6; }
15822 if ${ac_cv_sizeof_double+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15827 else
15828 if test "$ac_cv_type_double" = yes; then
15829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15831 as_fn_error 77 "cannot compute sizeof (double)
15832 See \`config.log' for more details" "$LINENO" 5; }
15833 else
15834 ac_cv_sizeof_double=0
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15840 $as_echo "$ac_cv_sizeof_double" >&6; }
15844 cat >>confdefs.h <<_ACEOF
15845 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15846 _ACEOF
15849 # The cast to long int works around a bug in the HP C Compiler
15850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15852 # This bug is HP SR number 8606223364.
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15854 $as_echo_n "checking size of long double... " >&6; }
15855 if ${ac_cv_sizeof_long_double+:} false; then :
15856 $as_echo_n "(cached) " >&6
15857 else
15858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15860 else
15861 if test "$ac_cv_type_long_double" = yes; then
15862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15864 as_fn_error 77 "cannot compute sizeof (long double)
15865 See \`config.log' for more details" "$LINENO" 5; }
15866 else
15867 ac_cv_sizeof_long_double=0
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15873 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15877 cat >>confdefs.h <<_ACEOF
15878 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15879 _ACEOF
15883 # Also AC_SUBST this variable for ffi.h.
15884 if test -z "$HAVE_LONG_DOUBLE"; then
15885 HAVE_LONG_DOUBLE=0
15886 if test $ac_cv_sizeof_long_double != 0; then
15887 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15889 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15891 HAVE_LONG_DOUBLE=1
15892 else
15893 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15894 HAVE_LONG_DOUBLE=1
15896 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15906 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15907 if ${ac_cv_c_bigendian+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 ac_cv_c_bigendian=unknown
15911 # See if we're dealing with a universal compiler.
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 #ifndef __APPLE_CC__
15915 not a universal capable compiler
15916 #endif
15917 typedef int dummy;
15919 _ACEOF
15920 if ac_fn_c_try_compile "$LINENO"; then :
15922 # Check for potential -arch flags. It is not universal unless
15923 # there are at least two -arch flags with different values.
15924 ac_arch=
15925 ac_prev=
15926 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15927 if test -n "$ac_prev"; then
15928 case $ac_word in
15929 i?86 | x86_64 | ppc | ppc64)
15930 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15931 ac_arch=$ac_word
15932 else
15933 ac_cv_c_bigendian=universal
15934 break
15937 esac
15938 ac_prev=
15939 elif test "x$ac_word" = "x-arch"; then
15940 ac_prev=arch
15942 done
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 if test $ac_cv_c_bigendian = unknown; then
15946 # See if sys/param.h defines the BYTE_ORDER macro.
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 #include <sys/types.h>
15950 #include <sys/param.h>
15953 main ()
15955 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15956 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15957 && LITTLE_ENDIAN)
15958 bogus endian macros
15959 #endif
15962 return 0;
15964 _ACEOF
15965 if ac_fn_c_try_compile "$LINENO"; then :
15966 # It does; now see whether it defined to BIG_ENDIAN or not.
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <sys/types.h>
15970 #include <sys/param.h>
15973 main ()
15975 #if BYTE_ORDER != BIG_ENDIAN
15976 not big endian
15977 #endif
15980 return 0;
15982 _ACEOF
15983 if ac_fn_c_try_compile "$LINENO"; then :
15984 ac_cv_c_bigendian=yes
15985 else
15986 ac_cv_c_bigendian=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 if test $ac_cv_c_bigendian = unknown; then
15993 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 #include <limits.h>
15999 main ()
16001 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16002 bogus endian macros
16003 #endif
16006 return 0;
16008 _ACEOF
16009 if ac_fn_c_try_compile "$LINENO"; then :
16010 # It does; now see whether it defined to _BIG_ENDIAN or not.
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 #include <limits.h>
16016 main ()
16018 #ifndef _BIG_ENDIAN
16019 not big endian
16020 #endif
16023 return 0;
16025 _ACEOF
16026 if ac_fn_c_try_compile "$LINENO"; then :
16027 ac_cv_c_bigendian=yes
16028 else
16029 ac_cv_c_bigendian=no
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 if test $ac_cv_c_bigendian = unknown; then
16036 # Compile a test program.
16037 if test "$cross_compiling" = yes; then :
16038 # Try to guess by grepping values from an object file.
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 short int ascii_mm[] =
16042 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16043 short int ascii_ii[] =
16044 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16045 int use_ascii (int i) {
16046 return ascii_mm[i] + ascii_ii[i];
16048 short int ebcdic_ii[] =
16049 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16050 short int ebcdic_mm[] =
16051 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16052 int use_ebcdic (int i) {
16053 return ebcdic_mm[i] + ebcdic_ii[i];
16055 extern int foo;
16058 main ()
16060 return use_ascii (foo) == use_ebcdic (foo);
16062 return 0;
16064 _ACEOF
16065 if ac_fn_c_try_compile "$LINENO"; then :
16066 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16067 ac_cv_c_bigendian=yes
16069 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16070 if test "$ac_cv_c_bigendian" = unknown; then
16071 ac_cv_c_bigendian=no
16072 else
16073 # finding both strings is unlikely to happen, but who knows?
16074 ac_cv_c_bigendian=unknown
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 $ac_includes_default
16084 main ()
16087 /* Are we little or big endian? From Harbison&Steele. */
16088 union
16090 long int l;
16091 char c[sizeof (long int)];
16092 } u;
16093 u.l = 1;
16094 return u.c[sizeof (long int) - 1] == 1;
16097 return 0;
16099 _ACEOF
16100 if ac_fn_c_try_run "$LINENO"; then :
16101 ac_cv_c_bigendian=no
16102 else
16103 ac_cv_c_bigendian=yes
16105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16106 conftest.$ac_objext conftest.beam conftest.$ac_ext
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16112 $as_echo "$ac_cv_c_bigendian" >&6; }
16113 case $ac_cv_c_bigendian in #(
16114 yes)
16115 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16116 ;; #(
16118 ;; #(
16119 universal)
16121 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16123 ;; #(
16125 as_fn_error $? "unknown endianness
16126 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16127 esac
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16131 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16132 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134 else
16136 gcc_cv_as_cfi_pseudo_op=unknown
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16139 asm (".cfi_startproc\n\t.cfi_endproc");
16141 main ()
16145 return 0;
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"; then :
16149 gcc_cv_as_cfi_pseudo_op=yes
16150 else
16151 gcc_cv_as_cfi_pseudo_op=no
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16157 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16158 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16160 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16165 case "$TARGET" in
16166 SPARC)
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
16168 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
16169 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
16170 $as_echo_n "(cached) " >&6
16171 else
16173 save_CFLAGS="$CFLAGS"
16174 save_LDFLAGS="$LDFLAGS"
16175 CFLAGS="$CFLAGS -fpic"
16176 LDFLAGS="$LDFLAGS -shared"
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
16181 main ()
16185 return 0;
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189 libffi_cv_as_sparc_ua_pcrel=yes
16190 else
16191 libffi_cv_as_sparc_ua_pcrel=no
16193 rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 CFLAGS="$save_CFLAGS"
16196 LDFLAGS="$save_LDFLAGS"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
16199 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
16200 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
16202 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
16207 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
16208 if ${libffi_cv_as_register_pseudo_op+:} false; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16212 libffi_cv_as_register_pseudo_op=unknown
16213 # Check if we have .register
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16218 main ()
16220 asm (".register %g2, #scratch");
16222 return 0;
16224 _ACEOF
16225 if ac_fn_c_try_compile "$LINENO"; then :
16226 libffi_cv_as_register_pseudo_op=yes
16227 else
16228 libffi_cv_as_register_pseudo_op=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
16234 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
16235 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
16237 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
16242 X86*)
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16244 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
16245 if ${libffi_cv_as_x86_pcrel+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16249 libffi_cv_as_x86_pcrel=no
16250 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16251 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
16252 libffi_cv_as_x86_pcrel=yes
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
16257 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
16258 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
16260 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16265 S390)
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
16267 $as_echo_n "checking compiler uses zarch features... " >&6; }
16268 if ${libffi_cv_as_s390_zarch+:} false; then :
16269 $as_echo_n "(cached) " >&6
16270 else
16272 libffi_cv_as_s390_zarch=no
16273 echo 'void foo(void) { bar(); bar(); }' > conftest.c
16274 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
16275 if grep -q brasl conftest.s; then
16276 libffi_cv_as_s390_zarch=yes
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
16282 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
16283 if test "x$libffi_cv_as_s390_zarch" = xyes; then
16285 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16289 esac
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16292 $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16293 if ${libffi_cv_as_ptrauth+:} false; then :
16294 $as_echo_n "(cached) " >&6
16295 else
16297 libffi_cv_as_ptrauth=unknown
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16302 main ()
16305 #ifdef __clang__
16306 # if __has_feature(ptrauth_calls)
16307 # define HAVE_PTRAUTH 1
16308 # endif
16309 #endif
16311 #ifndef HAVE_PTRAUTH
16312 # error Pointer authentication not supported
16313 #endif
16316 return 0;
16318 _ACEOF
16319 if ac_fn_c_try_compile "$LINENO"; then :
16320 libffi_cv_as_ptrauth=yes
16321 else
16322 libffi_cv_as_ptrauth=no
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16328 $as_echo "$libffi_cv_as_ptrauth" >&6; }
16329 if test "x$libffi_cv_as_ptrauth" = xyes; then
16331 $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16335 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16336 # Check whether --enable-pax_emutramp was given.
16337 if test "${enable_pax_emutramp+set}" = set; then :
16338 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16340 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16346 FFI_EXEC_TRAMPOLINE_TABLE=0
16347 case "$target" in
16348 *arm*-apple-* | aarch64-apple-*)
16349 FFI_EXEC_TRAMPOLINE_TABLE=1
16351 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16354 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16356 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16359 esac
16360 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16361 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16362 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16363 else
16364 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16365 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16370 if test x$TARGET = xX86_64; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16372 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16373 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16377 cat > conftest1.s << EOF
16378 .text
16379 .globl foo
16380 foo:
16381 jmp bar
16382 .section .eh_frame,"a",@unwind
16383 bar:
16386 cat > conftest2.c << EOF
16387 extern void foo();
16388 int main(){foo();}
16391 libffi_cv_as_x86_64_unwind_section_type=no
16392 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16393 # since the compiler can support it and not the linker (ie old binutils)
16394 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16395 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16396 libffi_cv_as_x86_64_unwind_section_type=yes
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16401 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16402 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16404 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16409 if test "x$GCC" = "xyes"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16411 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16412 if ${libffi_cv_ro_eh_frame+:} false; then :
16413 $as_echo_n "(cached) " >&6
16414 else
16416 libffi_cv_ro_eh_frame=yes
16417 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16418 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16419 if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16420 libffi_cv_ro_eh_frame=no
16423 rm -f conftest.*
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16427 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16428 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16430 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16433 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16435 else
16437 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16442 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16443 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16447 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16448 libffi_cv_hidden_visibility_attribute=no
16449 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16454 test $ac_status = 0; }; }; then
16455 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16456 libffi_cv_hidden_visibility_attribute=yes
16459 rm -f conftest.*
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16463 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16464 if test $libffi_cv_hidden_visibility_attribute = yes; then
16466 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16471 # See if makeinfo has been installed and is modern enough
16472 # that we can use it.
16474 # Extract the first word of "makeinfo", so it can be a program name with args.
16475 set dummy makeinfo; ac_word=$2
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16477 $as_echo_n "checking for $ac_word... " >&6; }
16478 if ${ac_cv_prog_MAKEINFO+:} false; then :
16479 $as_echo_n "(cached) " >&6
16480 else
16481 if test -n "$MAKEINFO"; then
16482 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16483 else
16484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16485 for as_dir in $PATH
16487 IFS=$as_save_IFS
16488 test -z "$as_dir" && as_dir=.
16489 for ac_exec_ext in '' $ac_executable_extensions; do
16490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16491 ac_cv_prog_MAKEINFO="makeinfo"
16492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16493 break 2
16495 done
16496 done
16497 IFS=$as_save_IFS
16501 MAKEINFO=$ac_cv_prog_MAKEINFO
16502 if test -n "$MAKEINFO"; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16504 $as_echo "$MAKEINFO" >&6; }
16505 else
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16511 if test -n "$MAKEINFO"; then
16512 # Found it, now check the version.
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16514 $as_echo_n "checking for modern makeinfo... " >&6; }
16515 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16519 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16521 case $ac_prog_version in
16522 '') gcc_cv_prog_makeinfo_modern=no;;
16523 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
16524 *) gcc_cv_prog_makeinfo_modern=no;;
16525 esac
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16529 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16530 else
16531 gcc_cv_prog_makeinfo_modern=no
16533 if test $gcc_cv_prog_makeinfo_modern = no; then
16534 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16537 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16538 BUILD_DOCS_TRUE=
16539 BUILD_DOCS_FALSE='#'
16540 else
16541 BUILD_DOCS_TRUE='#'
16542 BUILD_DOCS_FALSE=
16552 TARGET_OBJ=
16553 for i in $SOURCES; do
16554 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16555 done
16561 # Check whether --enable-debug was given.
16562 if test "${enable_debug+set}" = set; then :
16563 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16565 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16570 if test "$enable_debug" = "yes"; then
16571 FFI_DEBUG_TRUE=
16572 FFI_DEBUG_FALSE='#'
16573 else
16574 FFI_DEBUG_TRUE='#'
16575 FFI_DEBUG_FALSE=
16579 # Check whether --enable-structs was given.
16580 if test "${enable_structs+set}" = set; then :
16581 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16583 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16588 if test "$enable_debug" = "yes"; then
16589 FFI_DEBUG_TRUE=
16590 FFI_DEBUG_FALSE='#'
16591 else
16592 FFI_DEBUG_TRUE='#'
16593 FFI_DEBUG_FALSE=
16597 # Check whether --enable-raw-api was given.
16598 if test "${enable_raw_api+set}" = set; then :
16599 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16601 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16607 # Check whether --enable-exec-static-tramp was given.
16608 if test "${enable_exec_static_tramp+set}" = set; then :
16609 enableval=$enable_exec_static_tramp;
16613 if test "$enable_exec_static_tramp" = yes; then
16614 case "$target" in
16615 *-cygwin*)
16617 *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16619 $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16622 esac
16625 # Check whether --enable-purify-safety was given.
16626 if test "${enable_purify_safety+set}" = set; then :
16627 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16629 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16636 # Check whether --with-toolexeclibdir was given.
16637 if test "${with_toolexeclibdir+set}" = set; then :
16638 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16642 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16644 esac
16645 else
16646 with_toolexeclibdir=no
16651 if test -n "$with_cross_host" &&
16652 test x"$with_cross_host" != x"no"; then
16653 toolexecdir='$(exec_prefix)/$(target_alias)'
16654 case ${with_toolexeclibdir} in
16656 toolexeclibdir='$(toolexecdir)/lib'
16659 toolexeclibdir=${with_toolexeclibdir}
16661 esac
16662 else
16663 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16664 toolexeclibdir='$(libdir)'
16666 multi_os_directory=`$CC -print-multi-os-directory`
16667 case $multi_os_directory in
16668 .) ;; # Avoid trailing /.
16669 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16670 esac
16674 if test "${multilib}" = "yes"; then
16675 multilib_arg="--enable-multilib"
16676 else
16677 multilib_arg=
16680 # Check linker support.
16683 # Check whether --with-gnu-ld was given.
16684 if test "${with_gnu_ld+set}" = set; then :
16685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16686 else
16687 with_gnu_ld=no
16690 ac_prog=ld
16691 if test "$GCC" = yes; then
16692 # Check if gcc -print-prog-name=ld gives a path.
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16694 $as_echo_n "checking for ld used by $CC... " >&6; }
16695 case $host in
16696 *-*-mingw*)
16697 # gcc leaves a trailing carriage return which upsets mingw
16698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16701 esac
16702 case $ac_prog in
16703 # Accept absolute paths.
16704 [\\/]* | ?:[\\/]*)
16705 re_direlt='/[^/][^/]*/\.\./'
16706 # Canonicalize the pathname of ld
16707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16710 done
16711 test -z "$LD" && LD="$ac_prog"
16714 # If it fails, then pretend we aren't using GCC.
16715 ac_prog=ld
16718 # If it is relative, then search for the first ld in PATH.
16719 with_gnu_ld=unknown
16721 esac
16722 elif test "$with_gnu_ld" = yes; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16724 $as_echo_n "checking for GNU ld... " >&6; }
16725 else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16727 $as_echo_n "checking for non-GNU ld... " >&6; }
16729 if ${lt_cv_path_LD+:} false; then :
16730 $as_echo_n "(cached) " >&6
16731 else
16732 if test -z "$LD"; then
16733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16734 for ac_dir in $PATH; do
16735 IFS="$lt_save_ifs"
16736 test -z "$ac_dir" && ac_dir=.
16737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16738 lt_cv_path_LD="$ac_dir/$ac_prog"
16739 # Check to see if the program is GNU ld. I'd rather use --version,
16740 # but apparently some variants of GNU ld only accept -v.
16741 # Break only if it was the GNU/non-GNU ld that we prefer.
16742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16743 *GNU* | *'with BFD'*)
16744 test "$with_gnu_ld" != no && break
16747 test "$with_gnu_ld" != yes && break
16749 esac
16751 done
16752 IFS="$lt_save_ifs"
16753 else
16754 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16758 LD="$lt_cv_path_LD"
16759 if test -n "$LD"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16761 $as_echo "$LD" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16766 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16768 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16769 if ${lt_cv_prog_gnu_ld+:} false; then :
16770 $as_echo_n "(cached) " >&6
16771 else
16772 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16773 case `$LD -v 2>&1 </dev/null` in
16774 *GNU* | *'with BFD'*)
16775 lt_cv_prog_gnu_ld=yes
16778 lt_cv_prog_gnu_ld=no
16780 esac
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16783 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16784 with_gnu_ld=$lt_cv_prog_gnu_ld
16792 # If we're not using GNU ld, then there's no point in even trying these
16793 # tests. Check for that first. We should have already tested for gld
16794 # by now (in libtool), but require it now just to be safe...
16795 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16796 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16800 # The name set by libtool depends on the version of libtool. Shame on us
16801 # for depending on an impl detail, but c'est la vie. Older versions used
16802 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16803 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16804 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16805 # set (hence we're using an older libtool), then set it.
16806 if test x${with_gnu_ld+set} != xset; then
16807 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16808 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16809 with_gnu_ld=no
16810 else
16811 with_gnu_ld=$ac_cv_prog_gnu_ld
16815 # Start by getting the version number. I think the libtool test already
16816 # does some of this, but throws away the result.
16817 libat_ld_is_gold=no
16818 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16819 libat_ld_is_gold=yes
16821 libat_ld_is_lld=no
16822 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16823 libat_ld_is_lld=yes
16826 ldver=`$LD --version 2>/dev/null |
16827 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16829 libat_gnu_ld_version=`echo $ldver | \
16830 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16832 # Set --gc-sections.
16833 if test "$with_gnu_ld" = "notbroken"; then
16834 # GNU ld it is! Joy and bunny rabbits!
16836 # All these tests are for C++; save the language and the compiler flags.
16837 # Need to do this so that g++ won't try to link in libstdc++
16838 ac_test_CFLAGS="${CFLAGS+set}"
16839 ac_save_CFLAGS="$CFLAGS"
16840 CFLAGS='-x c++ -Wl,--gc-sections'
16842 # Check for -Wl,--gc-sections
16843 # XXX This test is broken at the moment, as symbols required for linking
16844 # are now in libsupc++ (not built yet). In addition, this test has
16845 # cored on solaris in the past. In addition, --gc-sections doesn't
16846 # really work at the moment (keeps on discarding used sections, first
16847 # .eh_frame and now some of the glibc sections for iconv).
16848 # Bzzzzt. Thanks for playing, maybe next time.
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16850 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16851 if test "$cross_compiling" = yes; then :
16852 ac_sectionLDflags=yes
16853 else
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16857 int main(void)
16859 try { throw 1; }
16860 catch (...) { };
16861 return 0;
16864 _ACEOF
16865 if ac_fn_c_try_run "$LINENO"; then :
16866 ac_sectionLDflags=yes
16867 else
16868 ac_sectionLDflags=no
16870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16871 conftest.$ac_objext conftest.beam conftest.$ac_ext
16874 if test "$ac_test_CFLAGS" = set; then
16875 CFLAGS="$ac_save_CFLAGS"
16876 else
16877 # this is the suspicious part
16878 CFLAGS=''
16880 if test "$ac_sectionLDflags" = "yes"; then
16881 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16884 $as_echo "$ac_sectionLDflags" >&6; }
16887 # Set linker optimization flags.
16888 if test x"$with_gnu_ld" = x"yes"; then
16889 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16897 # Check whether --enable-symvers was given.
16898 if test "${enable_symvers+set}" = set; then :
16899 enableval=$enable_symvers;
16900 case "$enableval" in
16901 yes|no|gnu*|sun) ;;
16902 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16903 esac
16905 else
16906 enable_symvers=yes
16911 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16912 # don't know enough about $LD to do tricks...
16915 # Turn a 'yes' into a suitable default.
16916 if test x$enable_symvers = xyes ; then
16917 # FIXME The following test is too strict, in theory.
16918 if test $enable_shared = no || test "x$LD" = x; then
16919 enable_symvers=no
16920 else
16921 if test $with_gnu_ld = yes ; then
16922 enable_symvers=gnu
16923 else
16924 case ${target_os} in
16925 # Sun symbol versioning exists since Solaris 2.5.
16926 solaris2.[5-9]* | solaris2.1[0-9]*)
16927 enable_symvers=sun ;;
16929 enable_symvers=no ;;
16930 esac
16935 # Check if 'sun' was requested on non-Solaris 2 platforms.
16936 if test x$enable_symvers = xsun ; then
16937 case ${target_os} in
16938 solaris2*)
16939 # All fine.
16942 # Unlikely to work.
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16944 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16946 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16948 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16949 enable_symvers=no
16951 esac
16954 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16955 if test $enable_symvers != no; then
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16957 $as_echo_n "checking for shared libgcc... " >&6; }
16958 ac_save_CFLAGS="$CFLAGS"
16959 CFLAGS=' -lgcc_s'
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961 /* end confdefs.h. */
16964 main ()
16966 return 0;
16968 return 0;
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 libat_shared_libgcc=yes
16973 else
16974 libat_shared_libgcc=no
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 CFLAGS="$ac_save_CFLAGS"
16979 if test $libat_shared_libgcc = no; then
16980 cat > conftest.c <<EOF
16981 int main (void) { return 0; }
16983 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16984 -shared -shared-libgcc -o conftest.so \
16985 conftest.c -v 2>&1 >/dev/null \
16986 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16987 rm -f conftest.c conftest.so
16988 if test x${libat_libgcc_s_suffix+set} = xset; then
16989 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16994 main ()
16996 return 0;
16998 return 0;
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 libat_shared_libgcc=yes
17004 rm -f core conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17006 CFLAGS="$ac_save_CFLAGS"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
17010 $as_echo "$libat_shared_libgcc" >&6; }
17013 # For GNU ld, we need at least this version. The format is described in
17014 # LIBFFI_CHECK_LINKER_FEATURES above.
17015 libat_min_gnu_ld_version=21400
17016 # XXXXXXXXXXX libat_gnu_ld_version=21390
17018 # Check to see if unspecified "yes" value can win, given results above.
17019 # Change "yes" into either "no" or a style name.
17020 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
17021 if test $with_gnu_ld = yes; then
17022 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
17023 enable_symvers=gnu
17024 elif test $libat_ld_is_gold = yes ; then
17025 enable_symvers=gnu
17026 elif test $libat_ld_is_lld = yes ; then
17027 enable_symvers=gnu
17028 else
17029 # The right tools, the right setup, but too old. Fallbacks?
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
17031 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17033 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17035 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
17037 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
17038 if test $libat_gnu_ld_version -ge 21200 ; then
17039 # Globbing fix is present, proper block support is not.
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17041 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17042 enable_symvers=no
17043 else
17044 # 2.11 or older.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17046 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17047 enable_symvers=no
17050 elif test $enable_symvers = sun; then
17051 : All interesting versions of Sun ld support sun style symbol versioning.
17052 else
17053 # just fail for now
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17055 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17057 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17059 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17061 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17062 enable_symvers=no
17065 if test $enable_symvers = gnu; then
17067 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17071 if test $enable_symvers != no; then
17072 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
17073 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
17074 else
17075 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
17076 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
17079 if test $enable_symvers = gnu; then
17080 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17081 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17082 else
17083 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17084 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17087 if test $enable_symvers = sun; then
17088 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17089 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17090 else
17091 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17092 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17096 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17099 # Determine what GCC version number to use in filesystem paths.
17101 get_gcc_base_ver="cat"
17103 # Check whether --with-gcc-major-version-only was given.
17104 if test "${with_gcc_major_version_only+set}" = set; then :
17105 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17106 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17114 ac_config_commands="$ac_config_commands include"
17116 ac_config_commands="$ac_config_commands src"
17119 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
17122 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
17125 cat >confcache <<\_ACEOF
17126 # This file is a shell script that caches the results of configure
17127 # tests run on this system so they can be shared between configure
17128 # scripts and configure runs, see configure's option --config-cache.
17129 # It is not useful on other systems. If it contains results you don't
17130 # want to keep, you may remove or edit it.
17132 # config.status only pays attention to the cache file if you give it
17133 # the --recheck option to rerun configure.
17135 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17136 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17137 # following values.
17139 _ACEOF
17141 # The following way of writing the cache mishandles newlines in values,
17142 # but we know of no workaround that is simple, portable, and efficient.
17143 # So, we kill variables containing newlines.
17144 # Ultrix sh set writes to stderr and can't be redirected directly,
17145 # and sets the high bit in the cache file unless we assign to the vars.
17147 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17148 eval ac_val=\$$ac_var
17149 case $ac_val in #(
17150 *${as_nl}*)
17151 case $ac_var in #(
17152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17154 esac
17155 case $ac_var in #(
17156 _ | IFS | as_nl) ;; #(
17157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17158 *) { eval $ac_var=; unset $ac_var;} ;;
17159 esac ;;
17160 esac
17161 done
17163 (set) 2>&1 |
17164 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17165 *${as_nl}ac_space=\ *)
17166 # `set' does not quote correctly, so add quotes: double-quote
17167 # substitution turns \\\\ into \\, and sed turns \\ into \.
17168 sed -n \
17169 "s/'/'\\\\''/g;
17170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17171 ;; #(
17173 # `set' quotes correctly as required by POSIX, so do not add quotes.
17174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17176 esac |
17177 sort
17179 sed '
17180 /^ac_cv_env_/b end
17181 t clear
17182 :clear
17183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17184 t end
17185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17186 :end' >>confcache
17187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17188 if test -w "$cache_file"; then
17189 if test "x$cache_file" != "x/dev/null"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17191 $as_echo "$as_me: updating cache $cache_file" >&6;}
17192 if test ! -f "$cache_file" || test -h "$cache_file"; then
17193 cat confcache >"$cache_file"
17194 else
17195 case $cache_file in #(
17196 */* | ?:*)
17197 mv -f confcache "$cache_file"$$ &&
17198 mv -f "$cache_file"$$ "$cache_file" ;; #(
17200 mv -f confcache "$cache_file" ;;
17201 esac
17204 else
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17209 rm -f confcache
17211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17212 # Let make expand exec_prefix.
17213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17215 DEFS=-DHAVE_CONFIG_H
17217 ac_libobjs=
17218 ac_ltlibobjs=
17220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17221 # 1. Remove the extension, and $U if already installed.
17222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17223 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17225 # will be set to the directory where LIBOBJS objects are built.
17226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17228 done
17229 LIBOBJS=$ac_libobjs
17231 LTLIBOBJS=$ac_ltlibobjs
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17235 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17236 if test -n "$am_sleep_pid"; then
17237 # Hide warnings about reused PIDs.
17238 wait $am_sleep_pid 2>/dev/null
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17241 $as_echo "done" >&6; }
17242 if test -n "$EXEEXT"; then
17243 am__EXEEXT_TRUE=
17244 am__EXEEXT_FALSE='#'
17245 else
17246 am__EXEEXT_TRUE='#'
17247 am__EXEEXT_FALSE=
17250 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17251 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17254 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17255 as_fn_error $? "conditional \"AMDEP\" was never defined.
17256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17259 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17262 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17263 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17266 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17267 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17270 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
17271 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
17272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17274 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17275 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17278 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17279 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
17280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17283 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
17284 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
17285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17287 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17288 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17291 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17292 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17295 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17296 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17299 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17300 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17303 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17304 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17307 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17308 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 : "${CONFIG_STATUS=./config.status}"
17313 ac_write_fail=0
17314 ac_clean_files_save=$ac_clean_files
17315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17318 as_write_fail=0
17319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17320 #! $SHELL
17321 # Generated by $as_me.
17322 # Run this file to recreate the current configuration.
17323 # Compiler output produced by configure, useful for debugging
17324 # configure, is in config.log if it exists.
17326 debug=false
17327 ac_cs_recheck=false
17328 ac_cs_silent=false
17330 SHELL=\${CONFIG_SHELL-$SHELL}
17331 export SHELL
17332 _ASEOF
17333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17334 ## -------------------- ##
17335 ## M4sh Initialization. ##
17336 ## -------------------- ##
17338 # Be more Bourne compatible
17339 DUALCASE=1; export DUALCASE # for MKS sh
17340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17341 emulate sh
17342 NULLCMD=:
17343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17344 # is contrary to our usage. Disable this feature.
17345 alias -g '${1+"$@"}'='"$@"'
17346 setopt NO_GLOB_SUBST
17347 else
17348 case `(set -o) 2>/dev/null` in #(
17349 *posix*) :
17350 set -o posix ;; #(
17351 *) :
17353 esac
17357 as_nl='
17359 export as_nl
17360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17364 # Prefer a ksh shell builtin over an external printf program on Solaris,
17365 # but without wasting forks for bash or zsh.
17366 if test -z "$BASH_VERSION$ZSH_VERSION" \
17367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17368 as_echo='print -r --'
17369 as_echo_n='print -rn --'
17370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17371 as_echo='printf %s\n'
17372 as_echo_n='printf %s'
17373 else
17374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17375 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17376 as_echo_n='/usr/ucb/echo -n'
17377 else
17378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17379 as_echo_n_body='eval
17380 arg=$1;
17381 case $arg in #(
17382 *"$as_nl"*)
17383 expr "X$arg" : "X\\(.*\\)$as_nl";
17384 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17385 esac;
17386 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17388 export as_echo_n_body
17389 as_echo_n='sh -c $as_echo_n_body as_echo'
17391 export as_echo_body
17392 as_echo='sh -c $as_echo_body as_echo'
17395 # The user is always right.
17396 if test "${PATH_SEPARATOR+set}" != set; then
17397 PATH_SEPARATOR=:
17398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17399 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17400 PATH_SEPARATOR=';'
17405 # IFS
17406 # We need space, tab and new line, in precisely that order. Quoting is
17407 # there to prevent editors from complaining about space-tab.
17408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17409 # splitting by setting IFS to empty value.)
17410 IFS=" "" $as_nl"
17412 # Find who we are. Look in the path if we contain no directory separator.
17413 as_myself=
17414 case $0 in #((
17415 *[\\/]* ) as_myself=$0 ;;
17416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17417 for as_dir in $PATH
17419 IFS=$as_save_IFS
17420 test -z "$as_dir" && as_dir=.
17421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17422 done
17423 IFS=$as_save_IFS
17426 esac
17427 # We did not find ourselves, most probably we were run as `sh COMMAND'
17428 # in which case we are not to be found in the path.
17429 if test "x$as_myself" = x; then
17430 as_myself=$0
17432 if test ! -f "$as_myself"; then
17433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17434 exit 1
17437 # Unset variables that we do not need and which cause bugs (e.g. in
17438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17439 # suppresses any "Segmentation fault" message there. '((' could
17440 # trigger a bug in pdksh 5.2.14.
17441 for as_var in BASH_ENV ENV MAIL MAILPATH
17442 do eval test x\${$as_var+set} = xset \
17443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17444 done
17445 PS1='$ '
17446 PS2='> '
17447 PS4='+ '
17449 # NLS nuisances.
17450 LC_ALL=C
17451 export LC_ALL
17452 LANGUAGE=C
17453 export LANGUAGE
17455 # CDPATH.
17456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17460 # ----------------------------------------
17461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17463 # script with STATUS, using 1 if that was 0.
17464 as_fn_error ()
17466 as_status=$1; test $as_status -eq 0 && as_status=1
17467 if test "$4"; then
17468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17471 $as_echo "$as_me: error: $2" >&2
17472 as_fn_exit $as_status
17473 } # as_fn_error
17476 # as_fn_set_status STATUS
17477 # -----------------------
17478 # Set $? to STATUS, without forking.
17479 as_fn_set_status ()
17481 return $1
17482 } # as_fn_set_status
17484 # as_fn_exit STATUS
17485 # -----------------
17486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17487 as_fn_exit ()
17489 set +e
17490 as_fn_set_status $1
17491 exit $1
17492 } # as_fn_exit
17494 # as_fn_unset VAR
17495 # ---------------
17496 # Portably unset VAR.
17497 as_fn_unset ()
17499 { eval $1=; unset $1;}
17501 as_unset=as_fn_unset
17502 # as_fn_append VAR VALUE
17503 # ----------------------
17504 # Append the text in VALUE to the end of the definition contained in VAR. Take
17505 # advantage of any shell optimizations that allow amortized linear growth over
17506 # repeated appends, instead of the typical quadratic growth present in naive
17507 # implementations.
17508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17509 eval 'as_fn_append ()
17511 eval $1+=\$2
17513 else
17514 as_fn_append ()
17516 eval $1=\$$1\$2
17518 fi # as_fn_append
17520 # as_fn_arith ARG...
17521 # ------------------
17522 # Perform arithmetic evaluation on the ARGs, and store the result in the
17523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17524 # must be portable across $(()) and expr.
17525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17526 eval 'as_fn_arith ()
17528 as_val=$(( $* ))
17530 else
17531 as_fn_arith ()
17533 as_val=`expr "$@" || test $? -eq 1`
17535 fi # as_fn_arith
17538 if expr a : '\(a\)' >/dev/null 2>&1 &&
17539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17540 as_expr=expr
17541 else
17542 as_expr=false
17545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17546 as_basename=basename
17547 else
17548 as_basename=false
17551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17552 as_dirname=dirname
17553 else
17554 as_dirname=false
17557 as_me=`$as_basename -- "$0" ||
17558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17559 X"$0" : 'X\(//\)$' \| \
17560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17561 $as_echo X/"$0" |
17562 sed '/^.*\/\([^/][^/]*\)\/*$/{
17563 s//\1/
17566 /^X\/\(\/\/\)$/{
17567 s//\1/
17570 /^X\/\(\/\).*/{
17571 s//\1/
17574 s/.*/./; q'`
17576 # Avoid depending upon Character Ranges.
17577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17580 as_cr_digits='0123456789'
17581 as_cr_alnum=$as_cr_Letters$as_cr_digits
17583 ECHO_C= ECHO_N= ECHO_T=
17584 case `echo -n x` in #(((((
17585 -n*)
17586 case `echo 'xy\c'` in
17587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17588 xy) ECHO_C='\c';;
17589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17590 ECHO_T=' ';;
17591 esac;;
17593 ECHO_N='-n';;
17594 esac
17596 rm -f conf$$ conf$$.exe conf$$.file
17597 if test -d conf$$.dir; then
17598 rm -f conf$$.dir/conf$$.file
17599 else
17600 rm -f conf$$.dir
17601 mkdir conf$$.dir 2>/dev/null
17603 if (echo >conf$$.file) 2>/dev/null; then
17604 if ln -s conf$$.file conf$$ 2>/dev/null; then
17605 as_ln_s='ln -s'
17606 # ... but there are two gotchas:
17607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17609 # In both cases, we have to default to `cp -pR'.
17610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17611 as_ln_s='cp -pR'
17612 elif ln conf$$.file conf$$ 2>/dev/null; then
17613 as_ln_s=ln
17614 else
17615 as_ln_s='cp -pR'
17617 else
17618 as_ln_s='cp -pR'
17620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17621 rmdir conf$$.dir 2>/dev/null
17624 # as_fn_mkdir_p
17625 # -------------
17626 # Create "$as_dir" as a directory, including parents if necessary.
17627 as_fn_mkdir_p ()
17630 case $as_dir in #(
17631 -*) as_dir=./$as_dir;;
17632 esac
17633 test -d "$as_dir" || eval $as_mkdir_p || {
17634 as_dirs=
17635 while :; do
17636 case $as_dir in #(
17637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17638 *) as_qdir=$as_dir;;
17639 esac
17640 as_dirs="'$as_qdir' $as_dirs"
17641 as_dir=`$as_dirname -- "$as_dir" ||
17642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17643 X"$as_dir" : 'X\(//\)[^/]' \| \
17644 X"$as_dir" : 'X\(//\)$' \| \
17645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17646 $as_echo X"$as_dir" |
17647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17648 s//\1/
17651 /^X\(\/\/\)[^/].*/{
17652 s//\1/
17655 /^X\(\/\/\)$/{
17656 s//\1/
17659 /^X\(\/\).*/{
17660 s//\1/
17663 s/.*/./; q'`
17664 test -d "$as_dir" && break
17665 done
17666 test -z "$as_dirs" || eval "mkdir $as_dirs"
17667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17670 } # as_fn_mkdir_p
17671 if mkdir -p . 2>/dev/null; then
17672 as_mkdir_p='mkdir -p "$as_dir"'
17673 else
17674 test -d ./-p && rmdir ./-p
17675 as_mkdir_p=false
17679 # as_fn_executable_p FILE
17680 # -----------------------
17681 # Test if FILE is an executable regular file.
17682 as_fn_executable_p ()
17684 test -f "$1" && test -x "$1"
17685 } # as_fn_executable_p
17686 as_test_x='test -x'
17687 as_executable_p=as_fn_executable_p
17689 # Sed expression to map a string onto a valid CPP name.
17690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17692 # Sed expression to map a string onto a valid variable name.
17693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17696 exec 6>&1
17697 ## ----------------------------------- ##
17698 ## Main body of $CONFIG_STATUS script. ##
17699 ## ----------------------------------- ##
17700 _ASEOF
17701 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17704 # Save the log message, to keep $0 and so on meaningful, and to
17705 # report actual input values of CONFIG_FILES etc. instead of their
17706 # values after options handling.
17707 ac_log="
17708 This file was extended by libffi $as_me 3.4.2, which was
17709 generated by GNU Autoconf 2.69. Invocation command line was
17711 CONFIG_FILES = $CONFIG_FILES
17712 CONFIG_HEADERS = $CONFIG_HEADERS
17713 CONFIG_LINKS = $CONFIG_LINKS
17714 CONFIG_COMMANDS = $CONFIG_COMMANDS
17715 $ $0 $@
17717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17720 _ACEOF
17722 case $ac_config_files in *"
17723 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17724 esac
17726 case $ac_config_headers in *"
17727 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17728 esac
17731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17732 # Files that config.status was made for.
17733 config_files="$ac_config_files"
17734 config_headers="$ac_config_headers"
17735 config_links="$ac_config_links"
17736 config_commands="$ac_config_commands"
17738 _ACEOF
17740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17741 ac_cs_usage="\
17742 \`$as_me' instantiates files and other configuration actions
17743 from templates according to the current configuration. Unless the files
17744 and actions are specified as TAGs, all are instantiated by default.
17746 Usage: $0 [OPTION]... [TAG]...
17748 -h, --help print this help, then exit
17749 -V, --version print version number and configuration settings, then exit
17750 --config print configuration, then exit
17751 -q, --quiet, --silent
17752 do not print progress messages
17753 -d, --debug don't remove temporary files
17754 --recheck update $as_me by reconfiguring in the same conditions
17755 --file=FILE[:TEMPLATE]
17756 instantiate the configuration file FILE
17757 --header=FILE[:TEMPLATE]
17758 instantiate the configuration header FILE
17760 Configuration files:
17761 $config_files
17763 Configuration headers:
17764 $config_headers
17766 Configuration links:
17767 $config_links
17769 Configuration commands:
17770 $config_commands
17772 Report bugs to <http://github.com/libffi/libffi/issues>."
17774 _ACEOF
17775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17777 ac_cs_version="\\
17778 libffi config.status 3.4.2
17779 configured by $0, generated by GNU Autoconf 2.69,
17780 with options \\"\$ac_cs_config\\"
17782 Copyright (C) 2012 Free Software Foundation, Inc.
17783 This config.status script is free software; the Free Software Foundation
17784 gives unlimited permission to copy, distribute and modify it."
17786 ac_pwd='$ac_pwd'
17787 srcdir='$srcdir'
17788 INSTALL='$INSTALL'
17789 MKDIR_P='$MKDIR_P'
17790 AWK='$AWK'
17791 test -n "\$AWK" || AWK=awk
17792 _ACEOF
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 # The default lists apply if the user does not specify any file.
17796 ac_need_defaults=:
17797 while test $# != 0
17799 case $1 in
17800 --*=?*)
17801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17803 ac_shift=:
17805 --*=)
17806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17807 ac_optarg=
17808 ac_shift=:
17811 ac_option=$1
17812 ac_optarg=$2
17813 ac_shift=shift
17815 esac
17817 case $ac_option in
17818 # Handling of the options.
17819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17820 ac_cs_recheck=: ;;
17821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17822 $as_echo "$ac_cs_version"; exit ;;
17823 --config | --confi | --conf | --con | --co | --c )
17824 $as_echo "$ac_cs_config"; exit ;;
17825 --debug | --debu | --deb | --de | --d | -d )
17826 debug=: ;;
17827 --file | --fil | --fi | --f )
17828 $ac_shift
17829 case $ac_optarg in
17830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17831 '') as_fn_error $? "missing file argument" ;;
17832 esac
17833 as_fn_append CONFIG_FILES " '$ac_optarg'"
17834 ac_need_defaults=false;;
17835 --header | --heade | --head | --hea )
17836 $ac_shift
17837 case $ac_optarg in
17838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17839 esac
17840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17841 ac_need_defaults=false;;
17842 --he | --h)
17843 # Conflict between --help and --header
17844 as_fn_error $? "ambiguous option: \`$1'
17845 Try \`$0 --help' for more information.";;
17846 --help | --hel | -h )
17847 $as_echo "$ac_cs_usage"; exit ;;
17848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17850 ac_cs_silent=: ;;
17852 # This is an error.
17853 -*) as_fn_error $? "unrecognized option: \`$1'
17854 Try \`$0 --help' for more information." ;;
17856 *) as_fn_append ac_config_targets " $1"
17857 ac_need_defaults=false ;;
17859 esac
17860 shift
17861 done
17863 ac_configure_extra_args=
17865 if $ac_cs_silent; then
17866 exec 6>/dev/null
17867 ac_configure_extra_args="$ac_configure_extra_args --silent"
17870 _ACEOF
17871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17872 if \$ac_cs_recheck; then
17873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17874 shift
17875 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17876 CONFIG_SHELL='$SHELL'
17877 export CONFIG_SHELL
17878 exec "\$@"
17881 _ACEOF
17882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883 exec 5>>config.log
17885 echo
17886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17887 ## Running $as_me. ##
17888 _ASBOX
17889 $as_echo "$ac_log"
17890 } >&5
17892 _ACEOF
17893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17895 # INIT-COMMANDS
17898 srcdir="$srcdir"
17899 host="$host"
17900 target="$target"
17901 with_multisubdir="$with_multisubdir"
17902 with_multisrctop="$with_multisrctop"
17903 with_target_subdir="$with_target_subdir"
17904 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17905 multi_basedir="$multi_basedir"
17906 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17907 CC="$CC"
17908 CXX="$CXX"
17909 GFORTRAN="$GFORTRAN"
17910 GDC="$GDC"
17911 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17914 # The HP-UX ksh and POSIX shell print the target directory to stdout
17915 # if CDPATH is set.
17916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17918 sed_quote_subst='$sed_quote_subst'
17919 double_quote_subst='$double_quote_subst'
17920 delay_variable_subst='$delay_variable_subst'
17921 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17922 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17923 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17924 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17925 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17926 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17927 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17928 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17929 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17930 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17931 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17932 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17933 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17934 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17935 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17936 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17937 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17938 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17939 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17940 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17941 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17942 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17943 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17944 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17945 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17946 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17947 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17948 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17949 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17950 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17951 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17952 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17953 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17954 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17955 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17956 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17957 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17958 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17959 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17960 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17961 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17962 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17963 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17964 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17965 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17966 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17967 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17968 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17969 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"`'
17970 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17971 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17972 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17973 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17974 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17975 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17976 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17977 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17978 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17979 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17980 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17981 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17982 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17983 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17984 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17985 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17986 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17987 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17988 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17989 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17990 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17991 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17992 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17993 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17994 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17995 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17996 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17997 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17998 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17999 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18000 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18001 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18002 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18003 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18004 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18005 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18006 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18007 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18008 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18009 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18010 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18011 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18012 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18013 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18014 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18015 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18016 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18017 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18018 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18019 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18020 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18021 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18022 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18023 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18024 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18025 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18026 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18027 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18028 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18029 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18030 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18031 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18032 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18033 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18034 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18035 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18036 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18037 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18038 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18039 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18040 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18041 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18042 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18043 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18044 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18045 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18046 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18047 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18048 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18049 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18050 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18051 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18052 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18053 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18054 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18055 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18056 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18057 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18058 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18059 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18060 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18061 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18062 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18063 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18064 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18065 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18066 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18068 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18069 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18070 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18071 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18072 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18073 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18074 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18075 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18076 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18077 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18078 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18079 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18080 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18081 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18082 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18083 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18084 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18085 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18086 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18087 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18088 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18089 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18090 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18091 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18092 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18093 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18094 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18095 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18097 LTCC='$LTCC'
18098 LTCFLAGS='$LTCFLAGS'
18099 compiler='$compiler_DEFAULT'
18101 # A function that is used when there is no print builtin or printf.
18102 func_fallback_echo ()
18104 eval 'cat <<_LTECHO_EOF
18106 _LTECHO_EOF'
18109 # Quote evaled strings.
18110 for var in SHELL \
18111 ECHO \
18112 SED \
18113 GREP \
18114 EGREP \
18115 FGREP \
18116 LD \
18117 NM \
18118 LN_S \
18119 lt_SP2NL \
18120 lt_NL2SP \
18121 reload_flag \
18122 OBJDUMP \
18123 deplibs_check_method \
18124 file_magic_cmd \
18125 AR \
18126 AR_FLAGS \
18127 STRIP \
18128 RANLIB \
18129 CC \
18130 CFLAGS \
18131 compiler \
18132 lt_cv_sys_global_symbol_pipe \
18133 lt_cv_sys_global_symbol_to_cdecl \
18134 lt_cv_sys_global_symbol_to_c_name_address \
18135 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18136 lt_prog_compiler_no_builtin_flag \
18137 lt_prog_compiler_wl \
18138 lt_prog_compiler_pic \
18139 lt_prog_compiler_static \
18140 lt_cv_prog_compiler_c_o \
18141 need_locks \
18142 DSYMUTIL \
18143 NMEDIT \
18144 LIPO \
18145 OTOOL \
18146 OTOOL64 \
18147 shrext_cmds \
18148 export_dynamic_flag_spec \
18149 whole_archive_flag_spec \
18150 compiler_needs_object \
18151 with_gnu_ld \
18152 allow_undefined_flag \
18153 no_undefined_flag \
18154 hardcode_libdir_flag_spec \
18155 hardcode_libdir_flag_spec_ld \
18156 hardcode_libdir_separator \
18157 fix_srcfile_path \
18158 exclude_expsyms \
18159 include_expsyms \
18160 file_list_spec \
18161 variables_saved_for_relink \
18162 libname_spec \
18163 library_names_spec \
18164 soname_spec \
18165 install_override_mode \
18166 finish_eval \
18167 old_striplib \
18168 striplib \
18169 compiler_lib_search_dirs \
18170 predep_objects \
18171 postdep_objects \
18172 predeps \
18173 postdeps \
18174 compiler_lib_search_path \
18175 LD_CXX \
18176 reload_flag_CXX \
18177 compiler_CXX \
18178 lt_prog_compiler_no_builtin_flag_CXX \
18179 lt_prog_compiler_wl_CXX \
18180 lt_prog_compiler_pic_CXX \
18181 lt_prog_compiler_static_CXX \
18182 lt_cv_prog_compiler_c_o_CXX \
18183 export_dynamic_flag_spec_CXX \
18184 whole_archive_flag_spec_CXX \
18185 compiler_needs_object_CXX \
18186 with_gnu_ld_CXX \
18187 allow_undefined_flag_CXX \
18188 no_undefined_flag_CXX \
18189 hardcode_libdir_flag_spec_CXX \
18190 hardcode_libdir_flag_spec_ld_CXX \
18191 hardcode_libdir_separator_CXX \
18192 fix_srcfile_path_CXX \
18193 exclude_expsyms_CXX \
18194 include_expsyms_CXX \
18195 file_list_spec_CXX \
18196 compiler_lib_search_dirs_CXX \
18197 predep_objects_CXX \
18198 postdep_objects_CXX \
18199 predeps_CXX \
18200 postdeps_CXX \
18201 compiler_lib_search_path_CXX; do
18202 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18203 *[\\\\\\\`\\"\\\$]*)
18204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18209 esac
18210 done
18212 # Double-quote double-evaled strings.
18213 for var in reload_cmds \
18214 old_postinstall_cmds \
18215 old_postuninstall_cmds \
18216 old_archive_cmds \
18217 extract_expsyms_cmds \
18218 old_archive_from_new_cmds \
18219 old_archive_from_expsyms_cmds \
18220 archive_cmds \
18221 archive_expsym_cmds \
18222 module_cmds \
18223 module_expsym_cmds \
18224 export_symbols_cmds \
18225 prelink_cmds \
18226 postinstall_cmds \
18227 postuninstall_cmds \
18228 finish_cmds \
18229 sys_lib_search_path_spec \
18230 sys_lib_dlsearch_path_spec \
18231 reload_cmds_CXX \
18232 old_archive_cmds_CXX \
18233 old_archive_from_new_cmds_CXX \
18234 old_archive_from_expsyms_cmds_CXX \
18235 archive_cmds_CXX \
18236 archive_expsym_cmds_CXX \
18237 module_cmds_CXX \
18238 module_expsym_cmds_CXX \
18239 export_symbols_cmds_CXX \
18240 prelink_cmds_CXX; do
18241 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18242 *[\\\\\\\`\\"\\\$]*)
18243 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18246 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18248 esac
18249 done
18251 ac_aux_dir='$ac_aux_dir'
18252 xsi_shell='$xsi_shell'
18253 lt_shell_append='$lt_shell_append'
18255 # See if we are running on zsh, and set the options which allow our
18256 # commands through without removal of \ escapes INIT.
18257 if test -n "\${ZSH_VERSION+set}" ; then
18258 setopt NO_GLOB_SUBST
18262 PACKAGE='$PACKAGE'
18263 VERSION='$VERSION'
18264 TIMESTAMP='$TIMESTAMP'
18265 RM='$RM'
18266 ofile='$ofile'
18272 TARGETDIR="$TARGETDIR"
18274 _ACEOF
18276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18278 # Handling of arguments.
18279 for ac_config_target in $ac_config_targets
18281 case $ac_config_target in
18282 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
18283 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18285 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18286 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
18287 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
18288 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18289 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
18290 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18291 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18292 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18293 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18294 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18297 esac
18298 done
18301 # If the user did not use the arguments to specify the items to instantiate,
18302 # then the envvar interface is used. Set only those that are not.
18303 # We use the long form for the default assignment because of an extremely
18304 # bizarre bug on SunOS 4.1.3.
18305 if $ac_need_defaults; then
18306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18308 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18312 # Have a temporary directory for convenience. Make it in the build tree
18313 # simply because there is no reason against having it here, and in addition,
18314 # creating and moving files from /tmp can sometimes cause problems.
18315 # Hook for its removal unless debugging.
18316 # Note that there is a small window in which the directory will not be cleaned:
18317 # after its creation but before its name has been assigned to `$tmp'.
18318 $debug ||
18320 tmp= ac_tmp=
18321 trap 'exit_status=$?
18322 : "${ac_tmp:=$tmp}"
18323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18325 trap 'as_fn_exit 1' 1 2 13 15
18327 # Create a (secure) tmp directory for tmp files.
18330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18331 test -d "$tmp"
18332 } ||
18334 tmp=./conf$$-$RANDOM
18335 (umask 077 && mkdir "$tmp")
18336 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18337 ac_tmp=$tmp
18339 # Set up the scripts for CONFIG_FILES section.
18340 # No need to generate them if there are no CONFIG_FILES.
18341 # This happens for instance with `./config.status config.h'.
18342 if test -n "$CONFIG_FILES"; then
18345 ac_cr=`echo X | tr X '\015'`
18346 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18347 # But we know of no other shell where ac_cr would be empty at this
18348 # point, so we can use a bashism as a fallback.
18349 if test "x$ac_cr" = x; then
18350 eval ac_cr=\$\'\\r\'
18352 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18353 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18354 ac_cs_awk_cr='\\r'
18355 else
18356 ac_cs_awk_cr=$ac_cr
18359 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18360 _ACEOF
18364 echo "cat >conf$$subs.awk <<_ACEOF" &&
18365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18366 echo "_ACEOF"
18367 } >conf$$subs.sh ||
18368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18370 ac_delim='%!_!# '
18371 for ac_last_try in false false false false false :; do
18372 . ./conf$$subs.sh ||
18373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18376 if test $ac_delim_n = $ac_delim_num; then
18377 break
18378 elif $ac_last_try; then
18379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18380 else
18381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18383 done
18384 rm -f conf$$subs.sh
18386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18388 _ACEOF
18389 sed -n '
18391 s/^/S["/; s/!.*/"]=/
18394 s/^[^!]*!//
18395 :repl
18396 t repl
18397 s/'"$ac_delim"'$//
18398 t delim
18401 s/\(.\{148\}\)..*/\1/
18402 t more1
18403 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18406 b repl
18407 :more1
18408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18411 s/.\{148\}//
18412 t nl
18413 :delim
18415 s/\(.\{148\}\)..*/\1/
18416 t more2
18417 s/["\\]/\\&/g; s/^/"/; s/$/"/
18420 :more2
18421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18424 s/.\{148\}//
18425 t delim
18426 ' <conf$$subs.awk | sed '
18427 /^[^""]/{
18429 s/\n//
18431 ' >>$CONFIG_STATUS || ac_write_fail=1
18432 rm -f conf$$subs.awk
18433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434 _ACAWK
18435 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18436 for (key in S) S_is_set[key] = 1
18437 FS = "\a"
18441 line = $ 0
18442 nfields = split(line, field, "@")
18443 substed = 0
18444 len = length(field[1])
18445 for (i = 2; i < nfields; i++) {
18446 key = field[i]
18447 keylen = length(key)
18448 if (S_is_set[key]) {
18449 value = S[key]
18450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18451 len += length(value) + length(field[++i])
18452 substed = 1
18453 } else
18454 len += 1 + keylen
18457 print line
18460 _ACAWK
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18465 else
18467 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18469 _ACEOF
18471 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18472 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18473 # trailing colons and then remove the whole line if VPATH becomes empty
18474 # (actually we leave an empty line to preserve line numbers).
18475 if test "x$srcdir" = x.; then
18476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18478 s///
18479 s/^/:/
18480 s/[ ]*$/:/
18481 s/:\$(srcdir):/:/g
18482 s/:\${srcdir}:/:/g
18483 s/:@srcdir@:/:/g
18484 s/^:*//
18485 s/:*$//
18487 s/\(=[ ]*\).*/\1/
18489 s/\n//
18490 s/^[^=]*=[ ]*$//
18494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18495 fi # test -n "$CONFIG_FILES"
18497 # Set up the scripts for CONFIG_HEADERS section.
18498 # No need to generate them if there are no CONFIG_HEADERS.
18499 # This happens for instance with `./config.status Makefile'.
18500 if test -n "$CONFIG_HEADERS"; then
18501 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18502 BEGIN {
18503 _ACEOF
18505 # Transform confdefs.h into an awk script `defines.awk', embedded as
18506 # here-document in config.status, that substitutes the proper values into
18507 # config.h.in to produce config.h.
18509 # Create a delimiter string that does not exist in confdefs.h, to ease
18510 # handling of long lines.
18511 ac_delim='%!_!# '
18512 for ac_last_try in false false :; do
18513 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18514 if test -z "$ac_tt"; then
18515 break
18516 elif $ac_last_try; then
18517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18518 else
18519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18521 done
18523 # For the awk script, D is an array of macro values keyed by name,
18524 # likewise P contains macro parameters if any. Preserve backslash
18525 # newline sequences.
18527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18528 sed -n '
18529 s/.\{148\}/&'"$ac_delim"'/g
18530 t rset
18531 :rset
18532 s/^[ ]*#[ ]*define[ ][ ]*/ /
18533 t def
18535 :def
18536 s/\\$//
18537 t bsnl
18538 s/["\\]/\\&/g
18539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18540 D["\1"]=" \3"/p
18541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18543 :bsnl
18544 s/["\\]/\\&/g
18545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18546 D["\1"]=" \3\\\\\\n"\\/p
18547 t cont
18548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18549 t cont
18551 :cont
18553 s/.\{148\}/&'"$ac_delim"'/g
18554 t clear
18555 :clear
18556 s/\\$//
18557 t bsnlc
18558 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18560 :bsnlc
18561 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18562 b cont
18563 ' <confdefs.h | sed '
18564 s/'"$ac_delim"'/"\\\
18565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18568 for (key in D) D_is_set[key] = 1
18569 FS = "\a"
18571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18572 line = \$ 0
18573 split(line, arg, " ")
18574 if (arg[1] == "#") {
18575 defundef = arg[2]
18576 mac1 = arg[3]
18577 } else {
18578 defundef = substr(arg[1], 2)
18579 mac1 = arg[2]
18581 split(mac1, mac2, "(") #)
18582 macro = mac2[1]
18583 prefix = substr(line, 1, index(line, defundef) - 1)
18584 if (D_is_set[macro]) {
18585 # Preserve the white space surrounding the "#".
18586 print prefix "define", macro P[macro] D[macro]
18587 next
18588 } else {
18589 # Replace #undef with comments. This is necessary, for example,
18590 # in the case of _POSIX_SOURCE, which is predefined and required
18591 # on some systems where configure will not decide to define it.
18592 if (defundef == "undef") {
18593 print "/*", prefix defundef, macro, "*/"
18594 next
18598 { print }
18599 _ACAWK
18600 _ACEOF
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18603 fi # test -n "$CONFIG_HEADERS"
18606 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18607 shift
18608 for ac_tag
18610 case $ac_tag in
18611 :[FHLC]) ac_mode=$ac_tag; continue;;
18612 esac
18613 case $ac_mode$ac_tag in
18614 :[FHL]*:*);;
18615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18616 :[FH]-) ac_tag=-:-;;
18617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18618 esac
18619 ac_save_IFS=$IFS
18620 IFS=:
18621 set x $ac_tag
18622 IFS=$ac_save_IFS
18623 shift
18624 ac_file=$1
18625 shift
18627 case $ac_mode in
18628 :L) ac_source=$1;;
18629 :[FH])
18630 ac_file_inputs=
18631 for ac_f
18633 case $ac_f in
18634 -) ac_f="$ac_tmp/stdin";;
18635 *) # Look for the file first in the build tree, then in the source tree
18636 # (if the path is not absolute). The absolute path cannot be DOS-style,
18637 # because $ac_f cannot contain `:'.
18638 test -f "$ac_f" ||
18639 case $ac_f in
18640 [\\/$]*) false;;
18641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18642 esac ||
18643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18644 esac
18645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18646 as_fn_append ac_file_inputs " '$ac_f'"
18647 done
18649 # Let's still pretend it is `configure' which instantiates (i.e., don't
18650 # use $as_me), people would be surprised to read:
18651 # /* config.h. Generated by config.status. */
18652 configure_input='Generated from '`
18653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18654 `' by configure.'
18655 if test x"$ac_file" != x-; then
18656 configure_input="$ac_file. $configure_input"
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18658 $as_echo "$as_me: creating $ac_file" >&6;}
18660 # Neutralize special characters interpreted by sed in replacement strings.
18661 case $configure_input in #(
18662 *\&* | *\|* | *\\* )
18663 ac_sed_conf_input=`$as_echo "$configure_input" |
18664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18665 *) ac_sed_conf_input=$configure_input;;
18666 esac
18668 case $ac_tag in
18669 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18671 esac
18673 esac
18675 ac_dir=`$as_dirname -- "$ac_file" ||
18676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$ac_file" : 'X\(//\)[^/]' \| \
18678 X"$ac_file" : 'X\(//\)$' \| \
18679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18680 $as_echo X"$ac_file" |
18681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 s//\1/
18685 /^X\(\/\/\)[^/].*/{
18686 s//\1/
18689 /^X\(\/\/\)$/{
18690 s//\1/
18693 /^X\(\/\).*/{
18694 s//\1/
18697 s/.*/./; q'`
18698 as_dir="$ac_dir"; as_fn_mkdir_p
18699 ac_builddir=.
18701 case "$ac_dir" in
18702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18705 # A ".." for each directory in $ac_dir_suffix.
18706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18707 case $ac_top_builddir_sub in
18708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18710 esac ;;
18711 esac
18712 ac_abs_top_builddir=$ac_pwd
18713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18714 # for backward compatibility:
18715 ac_top_builddir=$ac_top_build_prefix
18717 case $srcdir in
18718 .) # We are building in place.
18719 ac_srcdir=.
18720 ac_top_srcdir=$ac_top_builddir_sub
18721 ac_abs_top_srcdir=$ac_pwd ;;
18722 [\\/]* | ?:[\\/]* ) # Absolute name.
18723 ac_srcdir=$srcdir$ac_dir_suffix;
18724 ac_top_srcdir=$srcdir
18725 ac_abs_top_srcdir=$srcdir ;;
18726 *) # Relative name.
18727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18728 ac_top_srcdir=$ac_top_build_prefix$srcdir
18729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18730 esac
18731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18734 case $ac_mode in
18737 # CONFIG_FILE
18740 case $INSTALL in
18741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18743 esac
18744 ac_MKDIR_P=$MKDIR_P
18745 case $MKDIR_P in
18746 [\\/$]* | ?:[\\/]* ) ;;
18747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18748 esac
18749 _ACEOF
18751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18752 # If the template does not know about datarootdir, expand it.
18753 # FIXME: This hack should be removed a few years after 2.60.
18754 ac_datarootdir_hack=; ac_datarootdir_seen=
18755 ac_sed_dataroot='
18756 /datarootdir/ {
18760 /@datadir@/p
18761 /@docdir@/p
18762 /@infodir@/p
18763 /@localedir@/p
18764 /@mandir@/p'
18765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18766 *datarootdir*) ac_datarootdir_seen=yes;;
18767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18770 _ACEOF
18771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18772 ac_datarootdir_hack='
18773 s&@datadir@&$datadir&g
18774 s&@docdir@&$docdir&g
18775 s&@infodir@&$infodir&g
18776 s&@localedir@&$localedir&g
18777 s&@mandir@&$mandir&g
18778 s&\\\${datarootdir}&$datarootdir&g' ;;
18779 esac
18780 _ACEOF
18782 # Neutralize VPATH when `$srcdir' = `.'.
18783 # Shell code in configure.ac might set extrasub.
18784 # FIXME: do we really want to maintain this feature?
18785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18786 ac_sed_extra="$ac_vpsub
18787 $extrasub
18788 _ACEOF
18789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18792 s|@configure_input@|$ac_sed_conf_input|;t t
18793 s&@top_builddir@&$ac_top_builddir_sub&;t t
18794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18795 s&@srcdir@&$ac_srcdir&;t t
18796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18797 s&@top_srcdir@&$ac_top_srcdir&;t t
18798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18799 s&@builddir@&$ac_builddir&;t t
18800 s&@abs_builddir@&$ac_abs_builddir&;t t
18801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18802 s&@INSTALL@&$ac_INSTALL&;t t
18803 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18804 $ac_datarootdir_hack
18806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18812 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18814 which seems to be undefined. Please make sure it is defined" >&5
18815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18816 which seems to be undefined. Please make sure it is defined" >&2;}
18818 rm -f "$ac_tmp/stdin"
18819 case $ac_file in
18820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18822 esac \
18823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18827 # CONFIG_HEADER
18829 if test x"$ac_file" != x-; then
18831 $as_echo "/* $configure_input */" \
18832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18833 } >"$ac_tmp/config.h" \
18834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18838 else
18839 rm -f "$ac_file"
18840 mv "$ac_tmp/config.h" "$ac_file" \
18841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18843 else
18844 $as_echo "/* $configure_input */" \
18845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18846 || as_fn_error $? "could not create -" "$LINENO" 5
18848 # Compute "$ac_file"'s index in $config_headers.
18849 _am_arg="$ac_file"
18850 _am_stamp_count=1
18851 for _am_header in $config_headers :; do
18852 case $_am_header in
18853 $_am_arg | $_am_arg:* )
18854 break ;;
18856 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18857 esac
18858 done
18859 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18860 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861 X"$_am_arg" : 'X\(//\)[^/]' \| \
18862 X"$_am_arg" : 'X\(//\)$' \| \
18863 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18864 $as_echo X"$_am_arg" |
18865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866 s//\1/
18869 /^X\(\/\/\)[^/].*/{
18870 s//\1/
18873 /^X\(\/\/\)$/{
18874 s//\1/
18877 /^X\(\/\).*/{
18878 s//\1/
18881 s/.*/./; q'`/stamp-h$_am_stamp_count
18885 # CONFIG_LINK
18888 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18890 else
18891 # Prefer the file from the source tree if names are identical.
18892 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18893 ac_source=$srcdir/$ac_source
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18897 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18899 if test ! -r "$ac_source"; then
18900 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18902 rm -f "$ac_file"
18904 # Try a relative symlink, then a hard link, then a copy.
18905 case $ac_source in
18906 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18907 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18908 esac
18909 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18910 ln "$ac_source" "$ac_file" 2>/dev/null ||
18911 cp -p "$ac_source" "$ac_file" ||
18912 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18915 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18916 $as_echo "$as_me: executing $ac_file commands" >&6;}
18918 esac
18921 case $ac_file$ac_mode in
18922 "default-1":C)
18923 # Only add multilib support code if we just rebuilt the top-level
18924 # Makefile.
18925 case " $CONFIG_FILES " in
18926 *" Makefile "*)
18927 ac_file=Makefile . ${multi_basedir}/config-ml.in
18929 esac ;;
18930 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18931 # Older Autoconf quotes --file arguments for eval, but not when files
18932 # are listed without --file. Let's play safe and only enable the eval
18933 # if we detect the quoting.
18934 case $CONFIG_FILES in
18935 *\'*) eval set x "$CONFIG_FILES" ;;
18936 *) set x $CONFIG_FILES ;;
18937 esac
18938 shift
18939 for mf
18941 # Strip MF so we end up with the name of the file.
18942 mf=`echo "$mf" | sed -e 's/:.*$//'`
18943 # Check whether this is an Automake generated Makefile or not.
18944 # We used to match only the files named 'Makefile.in', but
18945 # some people rename them; so instead we look at the file content.
18946 # Grep'ing the first line is not enough: some people post-process
18947 # each Makefile.in and add a new line on top of each file to say so.
18948 # Grep'ing the whole file is not good either: AIX grep has a line
18949 # limit of 2048, but all sed's we know have understand at least 4000.
18950 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18951 dirpart=`$as_dirname -- "$mf" ||
18952 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953 X"$mf" : 'X\(//\)[^/]' \| \
18954 X"$mf" : 'X\(//\)$' \| \
18955 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18956 $as_echo X"$mf" |
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18958 s//\1/
18961 /^X\(\/\/\)[^/].*/{
18962 s//\1/
18965 /^X\(\/\/\)$/{
18966 s//\1/
18969 /^X\(\/\).*/{
18970 s//\1/
18973 s/.*/./; q'`
18974 else
18975 continue
18977 # Extract the definition of DEPDIR, am__include, and am__quote
18978 # from the Makefile without running 'make'.
18979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18980 test -z "$DEPDIR" && continue
18981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18982 test -z "$am__include" && continue
18983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18984 # Find all dependency output files, they are included files with
18985 # $(DEPDIR) in their names. We invoke sed twice because it is the
18986 # simplest approach to changing $(DEPDIR) to its actual value in the
18987 # expansion.
18988 for file in `sed -n "
18989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18991 # Make sure the directory exists.
18992 test -f "$dirpart/$file" && continue
18993 fdir=`$as_dirname -- "$file" ||
18994 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18995 X"$file" : 'X\(//\)[^/]' \| \
18996 X"$file" : 'X\(//\)$' \| \
18997 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18998 $as_echo X"$file" |
18999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19000 s//\1/
19003 /^X\(\/\/\)[^/].*/{
19004 s//\1/
19007 /^X\(\/\/\)$/{
19008 s//\1/
19011 /^X\(\/\).*/{
19012 s//\1/
19015 s/.*/./; q'`
19016 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19017 # echo "creating $dirpart/$file"
19018 echo '# dummy' > "$dirpart/$file"
19019 done
19020 done
19023 "libtool":C)
19025 # See if we are running on zsh, and set the options which allow our
19026 # commands through without removal of \ escapes.
19027 if test -n "${ZSH_VERSION+set}" ; then
19028 setopt NO_GLOB_SUBST
19031 cfgfile="${ofile}T"
19032 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19033 $RM "$cfgfile"
19035 cat <<_LT_EOF >> "$cfgfile"
19036 #! $SHELL
19038 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19039 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19040 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19041 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19043 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19044 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19045 # Written by Gordon Matzigkeit, 1996
19047 # This file is part of GNU Libtool.
19049 # GNU Libtool is free software; you can redistribute it and/or
19050 # modify it under the terms of the GNU General Public License as
19051 # published by the Free Software Foundation; either version 2 of
19052 # the License, or (at your option) any later version.
19054 # As a special exception to the GNU General Public License,
19055 # if you distribute this file as part of a program or library that
19056 # is built using GNU Libtool, you may include this file under the
19057 # same distribution terms that you use for the rest of that program.
19059 # GNU Libtool is distributed in the hope that it will be useful,
19060 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19061 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19062 # GNU General Public License for more details.
19064 # You should have received a copy of the GNU General Public License
19065 # along with GNU Libtool; see the file COPYING. If not, a copy
19066 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19067 # obtained by writing to the Free Software Foundation, Inc.,
19068 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19071 # The names of the tagged configurations supported by this script.
19072 available_tags="CXX "
19074 # ### BEGIN LIBTOOL CONFIG
19076 # Which release of libtool.m4 was used?
19077 macro_version=$macro_version
19078 macro_revision=$macro_revision
19080 # Whether or not to build shared libraries.
19081 build_libtool_libs=$enable_shared
19083 # Whether or not to build static libraries.
19084 build_old_libs=$enable_static
19086 # What type of objects to build.
19087 pic_mode=$pic_mode
19089 # Whether or not to optimize for fast installation.
19090 fast_install=$enable_fast_install
19092 # Shell to use when invoking shell scripts.
19093 SHELL=$lt_SHELL
19095 # An echo program that protects backslashes.
19096 ECHO=$lt_ECHO
19098 # The host system.
19099 host_alias=$host_alias
19100 host=$host
19101 host_os=$host_os
19103 # The build system.
19104 build_alias=$build_alias
19105 build=$build
19106 build_os=$build_os
19108 # A sed program that does not truncate output.
19109 SED=$lt_SED
19111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19112 Xsed="\$SED -e 1s/^X//"
19114 # A grep program that handles long lines.
19115 GREP=$lt_GREP
19117 # An ERE matcher.
19118 EGREP=$lt_EGREP
19120 # A literal string matcher.
19121 FGREP=$lt_FGREP
19123 # A BSD- or MS-compatible name lister.
19124 NM=$lt_NM
19126 # Whether we need soft or hard links.
19127 LN_S=$lt_LN_S
19129 # What is the maximum length of a command?
19130 max_cmd_len=$max_cmd_len
19132 # Object file suffix (normally "o").
19133 objext=$ac_objext
19135 # Executable file suffix (normally "").
19136 exeext=$exeext
19138 # whether the shell understands "unset".
19139 lt_unset=$lt_unset
19141 # turn spaces into newlines.
19142 SP2NL=$lt_lt_SP2NL
19144 # turn newlines into spaces.
19145 NL2SP=$lt_lt_NL2SP
19147 # An object symbol dumper.
19148 OBJDUMP=$lt_OBJDUMP
19150 # Method to check whether dependent libraries are shared objects.
19151 deplibs_check_method=$lt_deplibs_check_method
19153 # Command to use when deplibs_check_method == "file_magic".
19154 file_magic_cmd=$lt_file_magic_cmd
19156 # The archiver.
19157 AR=$lt_AR
19158 AR_FLAGS=$lt_AR_FLAGS
19160 # A symbol stripping program.
19161 STRIP=$lt_STRIP
19163 # Commands used to install an old-style archive.
19164 RANLIB=$lt_RANLIB
19165 old_postinstall_cmds=$lt_old_postinstall_cmds
19166 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19168 # Whether to use a lock for old archive extraction.
19169 lock_old_archive_extraction=$lock_old_archive_extraction
19171 # A C compiler.
19172 LTCC=$lt_CC
19174 # LTCC compiler flags.
19175 LTCFLAGS=$lt_CFLAGS
19177 # Take the output of nm and produce a listing of raw symbols and C names.
19178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19180 # Transform the output of nm in a proper C declaration.
19181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19183 # Transform the output of nm in a C name address pair.
19184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19186 # Transform the output of nm in a C name address pair when lib prefix is needed.
19187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19189 # The name of the directory that contains temporary libtool files.
19190 objdir=$objdir
19192 # Used to examine libraries when file_magic_cmd begins with "file".
19193 MAGIC_CMD=$MAGIC_CMD
19195 # Must we lock files when doing compilation?
19196 need_locks=$lt_need_locks
19198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19199 DSYMUTIL=$lt_DSYMUTIL
19201 # Tool to change global to local symbols on Mac OS X.
19202 NMEDIT=$lt_NMEDIT
19204 # Tool to manipulate fat objects and archives on Mac OS X.
19205 LIPO=$lt_LIPO
19207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19208 OTOOL=$lt_OTOOL
19210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19211 OTOOL64=$lt_OTOOL64
19213 # Old archive suffix (normally "a").
19214 libext=$libext
19216 # Shared library suffix (normally ".so").
19217 shrext_cmds=$lt_shrext_cmds
19219 # The commands to extract the exported symbol list from a shared archive.
19220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19222 # Variables whose values should be saved in libtool wrapper scripts and
19223 # restored at link time.
19224 variables_saved_for_relink=$lt_variables_saved_for_relink
19226 # Do we need the "lib" prefix for modules?
19227 need_lib_prefix=$need_lib_prefix
19229 # Do we need a version for libraries?
19230 need_version=$need_version
19232 # Library versioning type.
19233 version_type=$version_type
19235 # Shared library runtime path variable.
19236 runpath_var=$runpath_var
19238 # Shared library path variable.
19239 shlibpath_var=$shlibpath_var
19241 # Is shlibpath searched before the hard-coded library search path?
19242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19244 # Format of library name prefix.
19245 libname_spec=$lt_libname_spec
19247 # List of archive names. First name is the real one, the rest are links.
19248 # The last name is the one that the linker finds with -lNAME
19249 library_names_spec=$lt_library_names_spec
19251 # The coded name of the library, if different from the real name.
19252 soname_spec=$lt_soname_spec
19254 # Permission mode override for installation of shared libraries.
19255 install_override_mode=$lt_install_override_mode
19257 # Command to use after installation of a shared archive.
19258 postinstall_cmds=$lt_postinstall_cmds
19260 # Command to use after uninstallation of a shared archive.
19261 postuninstall_cmds=$lt_postuninstall_cmds
19263 # Commands used to finish a libtool library installation in a directory.
19264 finish_cmds=$lt_finish_cmds
19266 # As "finish_cmds", except a single script fragment to be evaled but
19267 # not shown.
19268 finish_eval=$lt_finish_eval
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19273 # Compile-time system search path for libraries.
19274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19276 # Run-time system search path for libraries.
19277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19279 # Whether dlopen is supported.
19280 dlopen_support=$enable_dlopen
19282 # Whether dlopen of programs is supported.
19283 dlopen_self=$enable_dlopen_self
19285 # Whether dlopen of statically linked programs is supported.
19286 dlopen_self_static=$enable_dlopen_self_static
19288 # Commands to strip libraries.
19289 old_striplib=$lt_old_striplib
19290 striplib=$lt_striplib
19293 # The linker used to build libraries.
19294 LD=$lt_LD
19296 # How to create reloadable object files.
19297 reload_flag=$lt_reload_flag
19298 reload_cmds=$lt_reload_cmds
19300 # Commands used to build an old-style archive.
19301 old_archive_cmds=$lt_old_archive_cmds
19303 # A language specific compiler.
19304 CC=$lt_compiler
19306 # Is the compiler the GNU compiler?
19307 with_gcc=$GCC
19309 # Compiler flag to turn off builtin functions.
19310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19312 # How to pass a linker flag through the compiler.
19313 wl=$lt_lt_prog_compiler_wl
19315 # Additional compiler flags for building library objects.
19316 pic_flag=$lt_lt_prog_compiler_pic
19318 # Compiler flag to prevent dynamic linking.
19319 link_static_flag=$lt_lt_prog_compiler_static
19321 # Does compiler simultaneously support -c and -o options?
19322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19324 # Whether or not to add -lc for building shared libraries.
19325 build_libtool_need_lc=$archive_cmds_need_lc
19327 # Whether or not to disallow shared libs when runtime libs are static.
19328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19330 # Compiler flag to allow reflexive dlopens.
19331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19333 # Compiler flag to generate shared objects directly from archives.
19334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19336 # Whether the compiler copes with passing no objects directly.
19337 compiler_needs_object=$lt_compiler_needs_object
19339 # Create an old-style archive from a shared archive.
19340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19342 # Create a temporary old-style archive to link instead of a shared archive.
19343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19345 # Commands used to build a shared archive.
19346 archive_cmds=$lt_archive_cmds
19347 archive_expsym_cmds=$lt_archive_expsym_cmds
19349 # Commands used to build a loadable module if different from building
19350 # a shared archive.
19351 module_cmds=$lt_module_cmds
19352 module_expsym_cmds=$lt_module_expsym_cmds
19354 # Whether we are building with GNU ld or not.
19355 with_gnu_ld=$lt_with_gnu_ld
19357 # Flag that allows shared libraries with undefined symbols to be built.
19358 allow_undefined_flag=$lt_allow_undefined_flag
19360 # Flag that enforces no undefined symbols.
19361 no_undefined_flag=$lt_no_undefined_flag
19363 # Flag to hardcode \$libdir into a binary during linking.
19364 # This must work even if \$libdir does not exist
19365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19367 # If ld is used when linking, flag to hardcode \$libdir into a binary
19368 # during linking. This must work even if \$libdir does not exist.
19369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19371 # Whether we need a single "-rpath" flag with a separated argument.
19372 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19374 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19375 # DIR into the resulting binary.
19376 hardcode_direct=$hardcode_direct
19378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19379 # DIR into the resulting binary and the resulting library dependency is
19380 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19381 # library is relocated.
19382 hardcode_direct_absolute=$hardcode_direct_absolute
19384 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19385 # into the resulting binary.
19386 hardcode_minus_L=$hardcode_minus_L
19388 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19389 # into the resulting binary.
19390 hardcode_shlibpath_var=$hardcode_shlibpath_var
19392 # Set to "yes" if building a shared library automatically hardcodes DIR
19393 # into the library and all subsequent libraries and executables linked
19394 # against it.
19395 hardcode_automatic=$hardcode_automatic
19397 # Set to yes if linker adds runtime paths of dependent libraries
19398 # to runtime path list.
19399 inherit_rpath=$inherit_rpath
19401 # Whether libtool must link a program against all its dependency libraries.
19402 link_all_deplibs=$link_all_deplibs
19404 # Fix the shell variable \$srcfile for the compiler.
19405 fix_srcfile_path=$lt_fix_srcfile_path
19407 # Set to "yes" if exported symbols are required.
19408 always_export_symbols=$always_export_symbols
19410 # The commands to list exported symbols.
19411 export_symbols_cmds=$lt_export_symbols_cmds
19413 # Symbols that should not be listed in the preloaded symbols.
19414 exclude_expsyms=$lt_exclude_expsyms
19416 # Symbols that must always be exported.
19417 include_expsyms=$lt_include_expsyms
19419 # Commands necessary for linking programs (against libraries) with templates.
19420 prelink_cmds=$lt_prelink_cmds
19422 # Specify filename containing input files.
19423 file_list_spec=$lt_file_list_spec
19425 # How to hardcode a shared library path into an executable.
19426 hardcode_action=$hardcode_action
19428 # The directories searched by this compiler when creating a shared library.
19429 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19431 # Dependencies to place before and after the objects being linked to
19432 # create a shared library.
19433 predep_objects=$lt_predep_objects
19434 postdep_objects=$lt_postdep_objects
19435 predeps=$lt_predeps
19436 postdeps=$lt_postdeps
19438 # The library search path used internally by the compiler when linking
19439 # a shared library.
19440 compiler_lib_search_path=$lt_compiler_lib_search_path
19442 # ### END LIBTOOL CONFIG
19444 _LT_EOF
19446 case $host_os in
19447 aix3*)
19448 cat <<\_LT_EOF >> "$cfgfile"
19449 # AIX sometimes has problems with the GCC collect2 program. For some
19450 # reason, if we set the COLLECT_NAMES environment variable, the problems
19451 # vanish in a puff of smoke.
19452 if test "X${COLLECT_NAMES+set}" != Xset; then
19453 COLLECT_NAMES=
19454 export COLLECT_NAMES
19456 _LT_EOF
19458 esac
19461 ltmain="$ac_aux_dir/ltmain.sh"
19464 # We use sed instead of cat because bash on DJGPP gets confused if
19465 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19466 # text mode, it properly converts lines to CR/LF. This bash problem
19467 # is reportedly fixed, but why not run on old versions too?
19468 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19469 || (rm -f "$cfgfile"; exit 1)
19471 case $xsi_shell in
19472 yes)
19473 cat << \_LT_EOF >> "$cfgfile"
19475 # func_dirname file append nondir_replacement
19476 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19477 # otherwise set result to NONDIR_REPLACEMENT.
19478 func_dirname ()
19480 case ${1} in
19481 */*) func_dirname_result="${1%/*}${2}" ;;
19482 * ) func_dirname_result="${3}" ;;
19483 esac
19486 # func_basename file
19487 func_basename ()
19489 func_basename_result="${1##*/}"
19492 # func_dirname_and_basename file append nondir_replacement
19493 # perform func_basename and func_dirname in a single function
19494 # call:
19495 # dirname: Compute the dirname of FILE. If nonempty,
19496 # add APPEND to the result, otherwise set result
19497 # to NONDIR_REPLACEMENT.
19498 # value returned in "$func_dirname_result"
19499 # basename: Compute filename of FILE.
19500 # value retuned in "$func_basename_result"
19501 # Implementation must be kept synchronized with func_dirname
19502 # and func_basename. For efficiency, we do not delegate to
19503 # those functions but instead duplicate the functionality here.
19504 func_dirname_and_basename ()
19506 case ${1} in
19507 */*) func_dirname_result="${1%/*}${2}" ;;
19508 * ) func_dirname_result="${3}" ;;
19509 esac
19510 func_basename_result="${1##*/}"
19513 # func_stripname prefix suffix name
19514 # strip PREFIX and SUFFIX off of NAME.
19515 # PREFIX and SUFFIX must not contain globbing or regex special
19516 # characters, hashes, percent signs, but SUFFIX may contain a leading
19517 # dot (in which case that matches only a dot).
19518 func_stripname ()
19520 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19521 # positional parameters, so assign one to ordinary parameter first.
19522 func_stripname_result=${3}
19523 func_stripname_result=${func_stripname_result#"${1}"}
19524 func_stripname_result=${func_stripname_result%"${2}"}
19527 # func_opt_split
19528 func_opt_split ()
19530 func_opt_split_opt=${1%%=*}
19531 func_opt_split_arg=${1#*=}
19534 # func_lo2o object
19535 func_lo2o ()
19537 case ${1} in
19538 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19539 *) func_lo2o_result=${1} ;;
19540 esac
19543 # func_xform libobj-or-source
19544 func_xform ()
19546 func_xform_result=${1%.*}.lo
19549 # func_arith arithmetic-term...
19550 func_arith ()
19552 func_arith_result=$(( $* ))
19555 # func_len string
19556 # STRING may not start with a hyphen.
19557 func_len ()
19559 func_len_result=${#1}
19562 _LT_EOF
19564 *) # Bourne compatible functions.
19565 cat << \_LT_EOF >> "$cfgfile"
19567 # func_dirname file append nondir_replacement
19568 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19569 # otherwise set result to NONDIR_REPLACEMENT.
19570 func_dirname ()
19572 # Extract subdirectory from the argument.
19573 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19574 if test "X$func_dirname_result" = "X${1}"; then
19575 func_dirname_result="${3}"
19576 else
19577 func_dirname_result="$func_dirname_result${2}"
19581 # func_basename file
19582 func_basename ()
19584 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19588 # func_stripname prefix suffix name
19589 # strip PREFIX and SUFFIX off of NAME.
19590 # PREFIX and SUFFIX must not contain globbing or regex special
19591 # characters, hashes, percent signs, but SUFFIX may contain a leading
19592 # dot (in which case that matches only a dot).
19593 # func_strip_suffix prefix name
19594 func_stripname ()
19596 case ${2} in
19597 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19598 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19599 esac
19602 # sed scripts:
19603 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19604 my_sed_long_arg='1s/^-[^=]*=//'
19606 # func_opt_split
19607 func_opt_split ()
19609 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19610 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19613 # func_lo2o object
19614 func_lo2o ()
19616 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19619 # func_xform libobj-or-source
19620 func_xform ()
19622 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19625 # func_arith arithmetic-term...
19626 func_arith ()
19628 func_arith_result=`expr "$@"`
19631 # func_len string
19632 # STRING may not start with a hyphen.
19633 func_len ()
19635 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19638 _LT_EOF
19639 esac
19641 case $lt_shell_append in
19642 yes)
19643 cat << \_LT_EOF >> "$cfgfile"
19645 # func_append var value
19646 # Append VALUE to the end of shell variable VAR.
19647 func_append ()
19649 eval "$1+=\$2"
19651 _LT_EOF
19654 cat << \_LT_EOF >> "$cfgfile"
19656 # func_append var value
19657 # Append VALUE to the end of shell variable VAR.
19658 func_append ()
19660 eval "$1=\$$1\$2"
19663 _LT_EOF
19665 esac
19668 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19669 || (rm -f "$cfgfile"; exit 1)
19671 mv -f "$cfgfile" "$ofile" ||
19672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19673 chmod +x "$ofile"
19676 cat <<_LT_EOF >> "$ofile"
19678 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19680 # The linker used to build libraries.
19681 LD=$lt_LD_CXX
19683 # How to create reloadable object files.
19684 reload_flag=$lt_reload_flag_CXX
19685 reload_cmds=$lt_reload_cmds_CXX
19687 # Commands used to build an old-style archive.
19688 old_archive_cmds=$lt_old_archive_cmds_CXX
19690 # A language specific compiler.
19691 CC=$lt_compiler_CXX
19693 # Is the compiler the GNU compiler?
19694 with_gcc=$GCC_CXX
19696 # Compiler flag to turn off builtin functions.
19697 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19699 # How to pass a linker flag through the compiler.
19700 wl=$lt_lt_prog_compiler_wl_CXX
19702 # Additional compiler flags for building library objects.
19703 pic_flag=$lt_lt_prog_compiler_pic_CXX
19705 # Compiler flag to prevent dynamic linking.
19706 link_static_flag=$lt_lt_prog_compiler_static_CXX
19708 # Does compiler simultaneously support -c and -o options?
19709 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19711 # Whether or not to add -lc for building shared libraries.
19712 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19714 # Whether or not to disallow shared libs when runtime libs are static.
19715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19717 # Compiler flag to allow reflexive dlopens.
19718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19720 # Compiler flag to generate shared objects directly from archives.
19721 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19723 # Whether the compiler copes with passing no objects directly.
19724 compiler_needs_object=$lt_compiler_needs_object_CXX
19726 # Create an old-style archive from a shared archive.
19727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19729 # Create a temporary old-style archive to link instead of a shared archive.
19730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19732 # Commands used to build a shared archive.
19733 archive_cmds=$lt_archive_cmds_CXX
19734 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19736 # Commands used to build a loadable module if different from building
19737 # a shared archive.
19738 module_cmds=$lt_module_cmds_CXX
19739 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19741 # Whether we are building with GNU ld or not.
19742 with_gnu_ld=$lt_with_gnu_ld_CXX
19744 # Flag that allows shared libraries with undefined symbols to be built.
19745 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19747 # Flag that enforces no undefined symbols.
19748 no_undefined_flag=$lt_no_undefined_flag_CXX
19750 # Flag to hardcode \$libdir into a binary during linking.
19751 # This must work even if \$libdir does not exist
19752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19754 # If ld is used when linking, flag to hardcode \$libdir into a binary
19755 # during linking. This must work even if \$libdir does not exist.
19756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19758 # Whether we need a single "-rpath" flag with a separated argument.
19759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19762 # DIR into the resulting binary.
19763 hardcode_direct=$hardcode_direct_CXX
19765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19766 # DIR into the resulting binary and the resulting library dependency is
19767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19768 # library is relocated.
19769 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19772 # into the resulting binary.
19773 hardcode_minus_L=$hardcode_minus_L_CXX
19775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19776 # into the resulting binary.
19777 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19779 # Set to "yes" if building a shared library automatically hardcodes DIR
19780 # into the library and all subsequent libraries and executables linked
19781 # against it.
19782 hardcode_automatic=$hardcode_automatic_CXX
19784 # Set to yes if linker adds runtime paths of dependent libraries
19785 # to runtime path list.
19786 inherit_rpath=$inherit_rpath_CXX
19788 # Whether libtool must link a program against all its dependency libraries.
19789 link_all_deplibs=$link_all_deplibs_CXX
19791 # Fix the shell variable \$srcfile for the compiler.
19792 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19794 # Set to "yes" if exported symbols are required.
19795 always_export_symbols=$always_export_symbols_CXX
19797 # The commands to list exported symbols.
19798 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19800 # Symbols that should not be listed in the preloaded symbols.
19801 exclude_expsyms=$lt_exclude_expsyms_CXX
19803 # Symbols that must always be exported.
19804 include_expsyms=$lt_include_expsyms_CXX
19806 # Commands necessary for linking programs (against libraries) with templates.
19807 prelink_cmds=$lt_prelink_cmds_CXX
19809 # Specify filename containing input files.
19810 file_list_spec=$lt_file_list_spec_CXX
19812 # How to hardcode a shared library path into an executable.
19813 hardcode_action=$hardcode_action_CXX
19815 # The directories searched by this compiler when creating a shared library.
19816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19818 # Dependencies to place before and after the objects being linked to
19819 # create a shared library.
19820 predep_objects=$lt_predep_objects_CXX
19821 postdep_objects=$lt_postdep_objects_CXX
19822 predeps=$lt_predeps_CXX
19823 postdeps=$lt_postdeps_CXX
19825 # The library search path used internally by the compiler when linking
19826 # a shared library.
19827 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19829 # ### END LIBTOOL TAG CONFIG: CXX
19830 _LT_EOF
19833 "include":C) test -d include || mkdir include ;;
19834 "src":C)
19835 test -d src || mkdir src
19836 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19839 esac
19840 done # for ac_tag
19843 as_fn_exit 0
19844 _ACEOF
19845 ac_clean_files=$ac_clean_files_save
19847 test $ac_write_fail = 0 ||
19848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19851 # configure is writing to config.log, and then calls config.status.
19852 # config.status does its own redirection, appending to config.log.
19853 # Unfortunately, on DOS this fails, as config.log is still kept open
19854 # by configure, so config.status won't be able to write to it; its
19855 # output is simply discarded. So we exec the FD to /dev/null,
19856 # effectively closing config.log, so it can be properly (re)opened and
19857 # appended to by config.status. When coming back to configure, we
19858 # need to make the FD available again.
19859 if test "$no_create" != yes; then
19860 ac_cs_success=:
19861 ac_config_status_args=
19862 test "$silent" = yes &&
19863 ac_config_status_args="$ac_config_status_args --quiet"
19864 exec 5>/dev/null
19865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19866 exec 5>>config.log
19867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19868 # would make configure fail if this is the last instruction.
19869 $ac_cs_success || as_fn_exit 1
19871 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19873 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}