Daily bump.
[official-gcc.git] / libffi / configure
blob9eac9c907bfc42e78889424a37b6c350e2d354d5
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 READELF
670 CXXCPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 RANLIB
679 OBJDUMP
680 LN_S
682 ac_ct_DUMPBIN
683 DUMPBIN
685 FGREP
686 EGREP
687 GREP
689 LIBTOOL
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 CET_FLAGS
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 ac_ct_CXX
700 CXXFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
719 GENINSRC_FALSE
720 GENINSRC_TRUE
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 enable_silent_rules
804 enable_generated_files_in_srcdir
805 enable_dependency_tracking
806 enable_cet
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_pax_emutramp
815 enable_debug
816 enable_structs
817 enable_raw_api
818 enable_exec_static_tramp
819 enable_purify_safety
820 with_toolexeclibdir
821 enable_symvers
822 with_gcc_major_version_only
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CCAS
828 CCASFLAGS
830 CPPFLAGS
831 CXXCPP'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
882 ac_prev=
883 ac_dashdash=
884 for ac_option
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
899 # Accept the important Cygnus configure options, so we can diagnose typos.
901 case $ac_dashdash$ac_option in
903 ac_dashdash=yes ;;
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
922 --config-cache | -C)
923 cache_file=config.cache ;;
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 esac
1240 done
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295 test "$silent" = yes && exec 6>/dev/null
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1324 /^X\(\/\/\)$/{
1325 s//\1/
1328 /^X\(\/\).*/{
1329 s//\1/
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1337 else
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1427 cat <<\_ACEOF
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438 _ACEOF
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of libffi 3.4.2:";;
1444 esac
1445 cat <<\_ACEOF
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-multilib build many library versions (default)
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-generated-files-in-srcdir
1455 put copies of generated files in source dir intended
1456 for creating source tarballs for users without
1457 texinfo bison or flex
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-cet enable Intel CET in target libraries [default=auto]
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1472 --enable-debug debugging mode
1473 --disable-structs omit code for struct support
1474 --disable-raw-api make the raw api unavailable
1475 --enable-exec-static-tramp enable use of static exec trampolines
1476 --enable-purify-safety purify-safe mode
1477 --enable-symvers=STYLE enables symbol versioning of the shared library
1478 [default=yes]
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-toolexeclibdir=DIR
1487 install libraries built with a cross compiler within
1489 --with-gcc-major-version-only
1490 use only GCC major number in filesystem paths
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CCAS assembler compiler command (defaults to CC)
1503 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1504 CPP C preprocessor
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <http://github.com/libffi/libffi/issues>.
1511 _ACEOF
1512 ac_status=$?
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 libffi configure 3.4.2
1574 generated by GNU Autoconf 2.69
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580 exit
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1618 ac_retval=1
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_compile
1625 # ac_fn_cxx_try_compile LINENO
1626 # ----------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_cxx_try_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_cxx_try_compile
1663 # ac_fn_c_try_link LINENO
1664 # -----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_link ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext conftest$ac_exeext
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest$ac_exeext && {
1689 test "$cross_compiling" = yes ||
1690 test -x conftest$ac_exeext
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=1
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_link
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 } # ac_fn_c_check_header_compile
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_cpp ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1770 ac_retval=1
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_try_cpp
1777 # ac_fn_c_try_run LINENO
1778 # ----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1780 # that executables *can* be run.
1781 ac_fn_c_try_run ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1795 { { case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_try") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; }; }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: program exited with status $ac_status" >&5
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1811 ac_retval=$ac_status
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_c_try_run
1819 # ac_fn_c_check_func LINENO FUNC VAR
1820 # ----------------------------------
1821 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1822 ac_fn_c_check_func ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1841 #ifdef __STDC__
1842 # include <limits.h>
1843 #else
1844 # include <assert.h>
1845 #endif
1847 #undef $2
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 ();
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1864 main ()
1866 return $2 ();
1868 return 0;
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873 else
1874 eval "$3=no"
1876 rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_c_check_func
1886 # ac_fn_cxx_try_cpp LINENO
1887 # ------------------------
1888 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_cpp ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } > conftest.i && {
1908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1909 test ! -s conftest.err
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=1
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_cxx_try_cpp
1923 # ac_fn_cxx_try_link LINENO
1924 # -------------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_link ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=1
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1967 } # ac_fn_cxx_try_link
1969 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970 # --------------------------------------------
1971 # Tries to find the compile-time value of EXPR in a program that includes
1972 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1973 # computed
1974 ac_fn_c_compute_int ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if test "$cross_compiling" = yes; then
1978 # Depending upon the size, compute the lo and hi bounds.
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 main ()
1985 static int test_array [1 - 2 * !(($2) >= 0)];
1986 test_array [0] = 0;
1987 return test_array [0];
1990 return 0;
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=0 ac_mid=0
1995 while :; do
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2000 main ()
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 test_array [0] = 0;
2004 return test_array [0];
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2012 else
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2015 ac_lo= ac_hi=
2016 break
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) < 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=-1 ac_mid=-1
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main ()
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=$ac_mid; break
2056 else
2057 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058 if test $ac_mid -le $ac_hi; then
2059 ac_lo= ac_hi=
2060 break
2062 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066 else
2067 ac_lo= ac_hi=
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0;
2083 return test_array [0];
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=$ac_mid
2091 else
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 case $ac_lo in #((
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2098 '') ac_retval=1 ;;
2099 esac
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2106 #include <stdio.h>
2107 #include <stdlib.h>
2109 main ()
2112 FILE *f = fopen ("conftest.val", "w");
2113 if (! f)
2114 return 1;
2115 if (($2) < 0)
2117 long int i = longval ();
2118 if (i != ($2))
2119 return 1;
2120 fprintf (f, "%ld", i);
2122 else
2124 unsigned long int i = ulongval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%lu", i);
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2139 else
2140 ac_retval=1
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 rm -f conftest.val
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_compute_int
2152 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2153 # -------------------------------------------------------
2154 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155 # the include files in INCLUDES and setting the cache variable VAR
2156 # accordingly.
2157 ac_fn_c_check_header_mongrel ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if eval \${$3+:} false; then :
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 else
2170 # Is the header compilable?
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172 $as_echo_n "checking $2 usability... " >&6; }
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2176 #include <$2>
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_header_compiler=yes
2180 else
2181 ac_header_compiler=no
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185 $as_echo "$ac_header_compiler" >&6; }
2187 # Is the header present?
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189 $as_echo_n "checking $2 presence... " >&6; }
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_c_try_cpp "$LINENO"; then :
2195 ac_header_preproc=yes
2196 else
2197 ac_header_preproc=no
2199 rm -f conftest.err conftest.i conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201 $as_echo "$ac_header_preproc" >&6; }
2203 # So? What about this header?
2204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2205 yes:no: )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 no:yes:* )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2215 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2219 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222 ( $as_echo "## ----------------------------------------------------- ##
2223 ## Report this to http://github.com/libffi/libffi/issues ##
2224 ## ----------------------------------------------------- ##"
2225 ) | sed "s/^/$as_me: WARNING: /" >&2
2227 esac
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231 $as_echo_n "(cached) " >&6
2232 else
2233 eval "$3=\$ac_header_compiler"
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 } # ac_fn_c_check_header_mongrel
2243 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2244 # -------------------------------------------
2245 # Tests whether TYPE exists after having included INCLUDES, setting cache
2246 # variable VAR accordingly.
2247 ac_fn_c_check_type ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 eval "$3=no"
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2260 main ()
2262 if (sizeof ($2))
2263 return 0;
2265 return 0;
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2273 main ()
2275 if (sizeof (($2)))
2276 return 0;
2278 return 0;
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2283 else
2284 eval "$3=yes"
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 } # ac_fn_c_check_type
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2300 It was created by libffi $as_me 3.4.2, which was
2301 generated by GNU Autoconf 2.69. Invocation command line was
2303 $ $0 $@
2305 _ACEOF
2306 exec 5>>config.log
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330 _ASUNAME
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2341 } >&5
2343 cat >&5 <<_ACEOF
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2350 _ACEOF
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2364 for ac_arg
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2393 as_fn_append ac_configure_args " '$ac_arg'"
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2409 echo
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 esac |
2443 sort
2445 echo
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2501 $as_echo "/* confdefs.h */" > confdefs.h
2503 # Predefined preprocessor variables.
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2561 done
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2580 # Check that the precious variables saved in the cache have kept the same
2581 # value.
2582 ac_cache_corrupted=false
2583 for ac_var in $ac_precious_vars; do
2584 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2585 eval ac_new_set=\$ac_env_${ac_var}_set
2586 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2587 eval ac_new_val=\$ac_env_${ac_var}_value
2588 case $ac_old_set,$ac_new_set in
2589 set,)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2591 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,set)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,);;
2599 if test "x$ac_old_val" != "x$ac_new_val"; then
2600 # differences in whitespace do not lead to failure.
2601 ac_old_val_w=`echo x $ac_old_val`
2602 ac_new_val_w=`echo x $ac_new_val`
2603 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2605 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2606 ac_cache_corrupted=:
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2609 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2610 eval $ac_var=\$ac_old_val
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2613 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2615 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2616 fi;;
2617 esac
2618 # Pass precious variables to config.status.
2619 if test "$ac_new_set" = set; then
2620 case $ac_new_val in
2621 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2622 *) ac_arg=$ac_var=$ac_new_val ;;
2623 esac
2624 case " $ac_configure_args " in
2625 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2626 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627 esac
2629 done
2630 if $ac_cache_corrupted; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2634 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2635 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2637 ## -------------------- ##
2638 ## Main body of script. ##
2639 ## -------------------- ##
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 ac_config_headers="$ac_config_headers fficonfig.h"
2654 # Default to --enable-multilib
2655 # Check whether --enable-multilib was given.
2656 if test "${enable_multilib+set}" = set; then :
2657 enableval=$enable_multilib; case "$enableval" in
2658 yes) multilib=yes ;;
2659 no) multilib=no ;;
2660 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2661 esac
2662 else
2663 multilib=yes
2667 # We may get other options which we leave undocumented:
2668 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2669 # See config-ml.in if you want the gory details.
2671 if test "$srcdir" = "."; then
2672 if test "$with_target_subdir" != "."; then
2673 multi_basedir="$srcdir/$with_multisrctop../.."
2674 else
2675 multi_basedir="$srcdir/$with_multisrctop.."
2677 else
2678 multi_basedir="$srcdir/.."
2682 # Even if the default multilib is not a cross compilation,
2683 # it may be that some of the other multilibs are.
2684 if test $cross_compiling = no && test $multilib = yes \
2685 && test "x${with_multisubdir}" != x ; then
2686 cross_compiling=maybe
2689 ac_config_commands="$ac_config_commands default-1"
2692 ac_aux_dir=
2693 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2694 if test -f "$ac_dir/install-sh"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/install-sh -c"
2697 break
2698 elif test -f "$ac_dir/install.sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install.sh -c"
2701 break
2702 elif test -f "$ac_dir/shtool"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/shtool install -c"
2705 break
2707 done
2708 if test -z "$ac_aux_dir"; then
2709 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2717 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2718 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2721 # Make sure we can run config.sub.
2722 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2723 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2726 $as_echo_n "checking build system type... " >&6; }
2727 if ${ac_cv_build+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 ac_build_alias=$build_alias
2731 test "x$ac_build_alias" = x &&
2732 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2733 test "x$ac_build_alias" = x &&
2734 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2740 $as_echo "$ac_cv_build" >&6; }
2741 case $ac_cv_build in
2742 *-*-*) ;;
2743 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2744 esac
2745 build=$ac_cv_build
2746 ac_save_IFS=$IFS; IFS='-'
2747 set x $ac_cv_build
2748 shift
2749 build_cpu=$1
2750 build_vendor=$2
2751 shift; shift
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2754 build_os=$*
2755 IFS=$ac_save_IFS
2756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2760 $as_echo_n "checking host system type... " >&6; }
2761 if ${ac_cv_host+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test "x$host_alias" = x; then
2765 ac_cv_host=$ac_cv_build
2766 else
2767 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2773 $as_echo "$ac_cv_host" >&6; }
2774 case $ac_cv_host in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2777 esac
2778 host=$ac_cv_host
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_host
2781 shift
2782 host_cpu=$1
2783 host_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 host_os=$*
2788 IFS=$ac_save_IFS
2789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2793 $as_echo_n "checking target system type... " >&6; }
2794 if ${ac_cv_target+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$target_alias" = x; then
2798 ac_cv_target=$ac_cv_host
2799 else
2800 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2806 $as_echo "$ac_cv_target" >&6; }
2807 case $ac_cv_target in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2810 esac
2811 target=$ac_cv_target
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_target
2814 shift
2815 target_cpu=$1
2816 target_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 target_os=$*
2821 IFS=$ac_save_IFS
2822 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2825 # The aliases save the names the user supplied, while $host etc.
2826 # will get canonicalized.
2827 test -n "$target_alias" &&
2828 test "$program_prefix$program_suffix$program_transform_name" = \
2829 NONENONEs,x,x, &&
2830 program_prefix=${target_alias}-
2832 target_alias=${target_alias-$host_alias}
2834 am__api_version='1.15'
2836 # Find a good install program. We prefer a C program (faster),
2837 # so one script is as good as another. But avoid the broken or
2838 # incompatible versions:
2839 # SysV /etc/install, /usr/sbin/install
2840 # SunOS /usr/etc/install
2841 # IRIX /sbin/install
2842 # AIX /bin/install
2843 # AmigaOS /C/install, which installs bootblocks on floppy discs
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # OS/2's system install, which has a completely different semantic
2848 # ./install, which can be erroneously created by make from ./install.sh.
2849 # Reject install programs that cannot install multiple files.
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2851 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2852 if test -z "$INSTALL"; then
2853 if ${ac_cv_path_install+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 # Account for people who put trailing slashes in PATH elements.
2862 case $as_dir/ in #((
2863 ./ | .// | /[cC]/* | \
2864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2865 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2866 /usr/ucb/* ) ;;
2868 # OSF1 and SCO ODT 3.0 have their own names for install.
2869 # Don't use installbsd from OSF since it installs stuff as root
2870 # by default.
2871 for ac_prog in ginstall scoinst install; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2874 if test $ac_prog = install &&
2875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876 # AIX install. It has an incompatible calling convention.
2878 elif test $ac_prog = install &&
2879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2880 # program-specific install script used by HP pwplus--don't use.
2882 else
2883 rm -rf conftest.one conftest.two conftest.dir
2884 echo one > conftest.one
2885 echo two > conftest.two
2886 mkdir conftest.dir
2887 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2888 test -s conftest.one && test -s conftest.two &&
2889 test -s conftest.dir/conftest.one &&
2890 test -s conftest.dir/conftest.two
2891 then
2892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2893 break 3
2897 done
2898 done
2900 esac
2902 done
2903 IFS=$as_save_IFS
2905 rm -rf conftest.one conftest.two conftest.dir
2908 if test "${ac_cv_path_install+set}" = set; then
2909 INSTALL=$ac_cv_path_install
2910 else
2911 # As a last resort, use the slow shell script. Don't cache a
2912 # value for INSTALL within a source directory, because that will
2913 # break other packages using the cache if that directory is
2914 # removed, or if the value is a relative name.
2915 INSTALL=$ac_install_sh
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2919 $as_echo "$INSTALL" >&6; }
2921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2922 # It thinks the first close brace ends the variable substitution.
2923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2930 $as_echo_n "checking whether build environment is sane... " >&6; }
2931 # Reject unsafe characters in $srcdir or the absolute working directory
2932 # name. Accept space and tab only in the latter.
2933 am_lf='
2935 case `pwd` in
2936 *[\\\"\#\$\&\'\`$am_lf]*)
2937 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2938 esac
2939 case $srcdir in
2940 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2941 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2942 esac
2944 # Do 'set' in a subshell so we don't clobber the current shell's
2945 # arguments. Must try -L first in case configure is actually a
2946 # symlink; some systems play weird games with the mod time of symlinks
2947 # (eg FreeBSD returns the mod time of the symlink's containing
2948 # directory).
2949 if (
2950 am_has_slept=no
2951 for am_try in 1 2; do
2952 echo "timestamp, slept: $am_has_slept" > conftest.file
2953 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2954 if test "$*" = "X"; then
2955 # -L didn't work.
2956 set X `ls -t "$srcdir/configure" conftest.file`
2958 if test "$*" != "X $srcdir/configure conftest.file" \
2959 && test "$*" != "X conftest.file $srcdir/configure"; then
2961 # If neither matched, then we have a broken ls. This can happen
2962 # if, for instance, CONFIG_SHELL is bash and it inherits a
2963 # broken ls alias from the environment. This has actually
2964 # happened. Such a system could not be considered "sane".
2965 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2966 alias in your environment" "$LINENO" 5
2968 if test "$2" = conftest.file || test $am_try -eq 2; then
2969 break
2971 # Just in case.
2972 sleep 1
2973 am_has_slept=yes
2974 done
2975 test "$2" = conftest.file
2977 then
2978 # Ok.
2980 else
2981 as_fn_error $? "newly created file is older than distributed files!
2982 Check your system clock" "$LINENO" 5
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2986 # If we didn't sleep, we still need to ensure time stamps of config.status and
2987 # generated files are strictly newer.
2988 am_sleep_pid=
2989 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2990 ( sleep 1 ) &
2991 am_sleep_pid=$!
2994 rm -f conftest.file
2996 test "$program_prefix" != NONE &&
2997 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2998 # Use a double $ so make ignores it.
2999 test "$program_suffix" != NONE &&
3000 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3001 # Double any \ or $.
3002 # By default was `s,x,x', remove it if useless.
3003 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3004 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3006 # Expand $ac_aux_dir to an absolute path.
3007 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3009 if test x"${MISSING+set}" != xset; then
3010 case $am_aux_dir in
3011 *\ * | *\ *)
3012 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3014 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3015 esac
3017 # Use eval to expand $SHELL
3018 if eval "$MISSING --is-lightweight"; then
3019 am_missing_run="$MISSING "
3020 else
3021 am_missing_run=
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3023 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3026 if test x"${install_sh+set}" != xset; then
3027 case $am_aux_dir in
3028 *\ * | *\ *)
3029 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3031 install_sh="\${SHELL} $am_aux_dir/install-sh"
3032 esac
3035 # Installed binaries are usually stripped using 'strip' when the user
3036 # run "make install-strip". However 'strip' might not be the right
3037 # tool to use in cross-compilation environments, therefore Automake
3038 # will honor the 'STRIP' environment variable to overrule this program.
3039 if test "$cross_compiling" != no; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042 set dummy ${ac_tool_prefix}strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_STRIP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$STRIP"; then
3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3068 STRIP=$ac_cv_prog_STRIP
3069 if test -n "$STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3071 $as_echo "$STRIP" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_STRIP"; then
3080 ac_ct_STRIP=$STRIP
3081 # Extract the first word of "strip", so it can be a program name with args.
3082 set dummy strip; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_STRIP"; then
3089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_STRIP="strip"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3104 IFS=$as_save_IFS
3108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109 if test -n "$ac_ct_STRIP"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3111 $as_echo "$ac_ct_STRIP" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_STRIP" = x; then
3118 STRIP=":"
3119 else
3120 case $cross_compiling:$ac_tool_warned in
3121 yes:)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3125 esac
3126 STRIP=$ac_ct_STRIP
3128 else
3129 STRIP="$ac_cv_prog_STRIP"
3133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3136 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3137 if test -z "$MKDIR_P"; then
3138 if ${ac_cv_path_mkdir+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_prog in mkdir gmkdir; do
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3150 'mkdir (GNU coreutils) '* | \
3151 'mkdir (coreutils) '* | \
3152 'mkdir (fileutils) '4.1*)
3153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3154 break 3;;
3155 esac
3156 done
3157 done
3158 done
3159 IFS=$as_save_IFS
3163 test -d ./--version && rmdir ./--version
3164 if test "${ac_cv_path_mkdir+set}" = set; then
3165 MKDIR_P="$ac_cv_path_mkdir -p"
3166 else
3167 # As a last resort, use the slow shell script. Don't cache a
3168 # value for MKDIR_P within a source directory, because that will
3169 # break other packages using the cache if that directory is
3170 # removed, or if the value is a relative name.
3171 MKDIR_P="$ac_install_sh -d"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3175 $as_echo "$MKDIR_P" >&6; }
3177 for ac_prog in gawk mawk nawk awk
3179 # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_AWK+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$AWK"; then
3187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_AWK="$ac_prog"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3206 AWK=$ac_cv_prog_AWK
3207 if test -n "$AWK"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3209 $as_echo "$AWK" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3216 test -n "$AWK" && break
3217 done
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3220 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3221 set x ${MAKE-make}
3222 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3223 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat >conftest.make <<\_ACEOF
3227 SHELL = /bin/sh
3228 all:
3229 @echo '@@@%%%=$(MAKE)=@@@%%%'
3230 _ACEOF
3231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3233 *@@@%%%=?*=@@@%%%*)
3234 eval ac_cv_prog_make_${ac_make}_set=yes;;
3236 eval ac_cv_prog_make_${ac_make}_set=no;;
3237 esac
3238 rm -f conftest.make
3240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3243 SET_MAKE=
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 SET_MAKE="MAKE=${MAKE-make}"
3250 rm -rf .tst 2>/dev/null
3251 mkdir .tst 2>/dev/null
3252 if test -d .tst; then
3253 am__leading_dot=.
3254 else
3255 am__leading_dot=_
3257 rmdir .tst 2>/dev/null
3259 # Check whether --enable-silent-rules was given.
3260 if test "${enable_silent_rules+set}" = set; then :
3261 enableval=$enable_silent_rules;
3264 case $enable_silent_rules in # (((
3265 yes) AM_DEFAULT_VERBOSITY=0;;
3266 no) AM_DEFAULT_VERBOSITY=1;;
3267 *) AM_DEFAULT_VERBOSITY=1;;
3268 esac
3269 am_make=${MAKE-make}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3271 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3272 if ${am_cv_make_support_nested_variables+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if $as_echo 'TRUE=$(BAR$(V))
3276 BAR0=false
3277 BAR1=true
3279 am__doit:
3280 @$(TRUE)
3281 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3282 am_cv_make_support_nested_variables=yes
3283 else
3284 am_cv_make_support_nested_variables=no
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3288 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3289 if test $am_cv_make_support_nested_variables = yes; then
3290 AM_V='$(V)'
3291 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3292 else
3293 AM_V=$AM_DEFAULT_VERBOSITY
3294 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3296 AM_BACKSLASH='\'
3298 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3300 # is not polluted with repeated "-I."
3301 am__isrc=' -I$(srcdir)'
3302 # test to see if srcdir already configured
3303 if test -f $srcdir/config.status; then
3304 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3308 # test whether we have cygpath
3309 if test -z "$CYGPATH_W"; then
3310 if (cygpath --version) >/dev/null 2>/dev/null; then
3311 CYGPATH_W='cygpath -w'
3312 else
3313 CYGPATH_W=echo
3318 # Define the identity of the package.
3319 PACKAGE='libffi'
3320 VERSION='3.4.2'
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE "$PACKAGE"
3325 _ACEOF
3328 cat >>confdefs.h <<_ACEOF
3329 #define VERSION "$VERSION"
3330 _ACEOF
3332 # Some tools Automake needs.
3334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3348 # For better backward compatibility. To be removed once Automake 1.9.x
3349 # dies out for good. For more background, see:
3350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3351 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3352 mkdir_p='$(MKDIR_P)'
3354 # We need awk for the "check" target (and possibly the TAP driver). The
3355 # system "awk" is bad on some platforms.
3356 # Always define AMTAR for backward compatibility. Yes, it's still used
3357 # in the wild :-( We should find a proper way to deprecate it ...
3358 AMTAR='$${TAR-tar}'
3361 # We'll loop over all known methods to create a tar archive until one works.
3362 _am_tools='gnutar pax cpio none'
3364 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3371 # POSIX will say in a future version that running "rm -f" with no argument
3372 # is OK; and we want to be able to make that assumption in our Makefile
3373 # recipes. So use an aggressive probe to check that the usage we want is
3374 # actually supported "in the wild" to an acceptable degree.
3375 # See automake bug#10828.
3376 # To make any issue more visible, cause the running configure to be aborted
3377 # by default if the 'rm' program in use doesn't match our expectations; the
3378 # user can still override this though.
3379 if rm -f && rm -fr && rm -rf; then : OK; else
3380 cat >&2 <<'END'
3381 Oops!
3383 Your 'rm' program seems unable to run without file operands specified
3384 on the command line, even when the '-f' option is present. This is contrary
3385 to the behaviour of most rm programs out there, and not conforming with
3386 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3388 Please tell bug-automake@gnu.org about your system, including the value
3389 of your $PATH and any error possibly output before this message. This
3390 can help us improve future automake versions.
3393 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3394 echo 'Configuration will proceed anyway, since you have set the' >&2
3395 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3396 echo >&2
3397 else
3398 cat >&2 <<'END'
3399 Aborting the configuration process, to ensure you take notice of the issue.
3401 You can download and install GNU coreutils to get an 'rm' implementation
3402 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3404 If you want to complete the configuration process using your problematic
3405 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3406 to "yes", and re-run configure.
3409 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3414 # We would like our source tree to be readonly. However when releases or
3415 # pre-releases are generated, the flex/bison generated files as well as the
3416 # various formats of manuals need to be included along with the rest of the
3417 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3418 # just that.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3420 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3421 # Check whether --enable-generated-files-in-srcdir was given.
3422 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3423 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3424 yes) enable_generated_files_in_srcdir=yes ;;
3425 no) enable_generated_files_in_srcdir=no ;;
3426 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3427 esac
3428 else
3429 enable_generated_files_in_srcdir=no
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3433 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3434 if test "$enable_generated_files_in_srcdir" = yes; then
3435 GENINSRC_TRUE=
3436 GENINSRC_FALSE='#'
3437 else
3438 GENINSRC_TRUE='#'
3439 GENINSRC_FALSE=
3443 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3444 # We must force CC to /not/ be precious variables; otherwise
3445 # the wrong, non-multilib-adjusted value will be used in multilibs.
3446 # As a side effect, we have to subst CFLAGS ourselves.
3447 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3448 # defaults of its own if none are provided.
3452 save_CFLAGS=$CFLAGS
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3498 ac_ct_CC=$CC
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3546 else
3547 CC="$ac_cv_prog_CC"
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3689 done
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3733 done
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744 CC=$ac_ct_CC
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 main ()
3789 return 0;
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3852 break;;
3853 esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857 else
3858 ac_file=''
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3925 main ()
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3931 return 0;
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4047 return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063 else
4064 GCC=
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 else
4091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4105 else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 struct stat;
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4162 char **p;
4163 int i;
4165 return p[i];
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4169 char *s;
4170 va_list v;
4171 va_start (v,p);
4172 s = g (p, va_arg (v,int));
4173 va_end (v);
4174 return s;
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4188 #define FOO(x) 'x'
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 int argc;
4196 char **argv;
4198 main ()
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4202 return 0;
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4219 # AC_CACHE_VAL
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4224 xno)
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 esac
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4249 if ${am_cv_prog_cc_c_o+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 # Make sure it works both with $CC and with simple cc.
4264 # Following AC_PROG_CC_C_O, we do the test twice because some
4265 # compilers refuse to overwrite an existing .o file with -o,
4266 # though they will create one.
4267 am_cv_prog_cc_c_o=yes
4268 for am_i in 1 2; do
4269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } \
4274 && test -f conftest2.$ac_objext; then
4275 : OK
4276 else
4277 am_cv_prog_cc_c_o=no
4278 break
4280 done
4281 rm -f core conftest*
4282 unset am_i
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4286 if test "$am_cv_prog_cc_c_o" != yes; then
4287 # Losing compiler, so override with the script.
4288 # FIXME: It is wrong to rewrite CC.
4289 # But if we don't then we get into trouble of one sort or another.
4290 # A longer-term fix would be to have automake use am__CC in this case,
4291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4292 CC="$am_aux_dir/compile $CC"
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 DEPDIR="${am__leading_dot}deps"
4302 ac_config_commands="$ac_config_commands depfiles"
4305 am_make=${MAKE-make}
4306 cat > confinc << 'END'
4307 am__doit:
4308 @echo this is the am__doit target
4309 .PHONY: am__doit
4311 # If we don't find an include directive, just comment out the code.
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4313 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4314 am__include="#"
4315 am__quote=
4316 _am_result=none
4317 # First try GNU make style include.
4318 echo "include confinc" > confmf
4319 # Ignore all kinds of additional output from 'make'.
4320 case `$am_make -s -f confmf 2> /dev/null` in #(
4321 *the\ am__doit\ target*)
4322 am__include=include
4323 am__quote=
4324 _am_result=GNU
4326 esac
4327 # Now try BSD make style include.
4328 if test "$am__include" = "#"; then
4329 echo '.include "confinc"' > confmf
4330 case `$am_make -s -f confmf 2> /dev/null` in #(
4331 *the\ am__doit\ target*)
4332 am__include=.include
4333 am__quote="\""
4334 _am_result=BSD
4336 esac
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4341 $as_echo "$_am_result" >&6; }
4342 rm -f confinc confmf
4344 # Check whether --enable-dependency-tracking was given.
4345 if test "${enable_dependency_tracking+set}" = set; then :
4346 enableval=$enable_dependency_tracking;
4349 if test "x$enable_dependency_tracking" != xno; then
4350 am_depcomp="$ac_aux_dir/depcomp"
4351 AMDEPBACKSLASH='\'
4352 am__nodep='_no'
4354 if test "x$enable_dependency_tracking" != xno; then
4355 AMDEP_TRUE=
4356 AMDEP_FALSE='#'
4357 else
4358 AMDEP_TRUE='#'
4359 AMDEP_FALSE=
4364 depcc="$CC" am_compiler_list=
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4367 $as_echo_n "checking dependency style of $depcc... " >&6; }
4368 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4372 # We make a subdir and do the tests there. Otherwise we can end up
4373 # making bogus files that we don't know about and never remove. For
4374 # instance it was reported that on HP-UX the gcc test will end up
4375 # making a dummy file named 'D' -- because '-MD' means "put the output
4376 # in D".
4377 rm -rf conftest.dir
4378 mkdir conftest.dir
4379 # Copy depcomp to subdir because otherwise we won't find it if we're
4380 # using a relative directory.
4381 cp "$am_depcomp" conftest.dir
4382 cd conftest.dir
4383 # We will build objects and dependencies in a subdirectory because
4384 # it helps to detect inapplicable dependency modes. For instance
4385 # both Tru64's cc and ICC support -MD to output dependencies as a
4386 # side effect of compilation, but ICC will put the dependencies in
4387 # the current directory while Tru64 will put them in the object
4388 # directory.
4389 mkdir sub
4391 am_cv_CC_dependencies_compiler_type=none
4392 if test "$am_compiler_list" = ""; then
4393 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4395 am__universal=false
4396 case " $depcc " in #(
4397 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4398 esac
4400 for depmode in $am_compiler_list; do
4401 # Setup a source with many dependencies, because some compilers
4402 # like to wrap large dependency lists on column 80 (with \), and
4403 # we should not choose a depcomp mode which is confused by this.
4405 # We need to recreate these files for each test, as the compiler may
4406 # overwrite some of them when testing with obscure command lines.
4407 # This happens at least with the AIX C compiler.
4408 : > sub/conftest.c
4409 for i in 1 2 3 4 5 6; do
4410 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4411 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4412 # Solaris 10 /bin/sh.
4413 echo '/* dummy */' > sub/conftst$i.h
4414 done
4415 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4417 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4418 # mode. It turns out that the SunPro C++ compiler does not properly
4419 # handle '-M -o', and we need to detect this. Also, some Intel
4420 # versions had trouble with output in subdirs.
4421 am__obj=sub/conftest.${OBJEXT-o}
4422 am__minus_obj="-o $am__obj"
4423 case $depmode in
4424 gcc)
4425 # This depmode causes a compiler race in universal mode.
4426 test "$am__universal" = false || continue
4428 nosideeffect)
4429 # After this tag, mechanisms are not by side-effect, so they'll
4430 # only be used when explicitly requested.
4431 if test "x$enable_dependency_tracking" = xyes; then
4432 continue
4433 else
4434 break
4437 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4438 # This compiler won't grok '-c -o', but also, the minuso test has
4439 # not run yet. These depmodes are late enough in the game, and
4440 # so weak that their functioning should not be impacted.
4441 am__obj=conftest.${OBJEXT-o}
4442 am__minus_obj=
4444 none) break ;;
4445 esac
4446 if depmode=$depmode \
4447 source=sub/conftest.c object=$am__obj \
4448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4449 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4450 >/dev/null 2>conftest.err &&
4451 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4452 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4453 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4454 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4455 # icc doesn't choke on unknown options, it will just issue warnings
4456 # or remarks (even with -Werror). So we grep stderr for any message
4457 # that says an option was ignored or not supported.
4458 # When given -MP, icc 7.0 and 7.1 complain thusly:
4459 # icc: Command line warning: ignoring option '-M'; no argument required
4460 # The diagnosis changed in icc 8.0:
4461 # icc: Command line remark: option '-MP' not supported
4462 if (grep 'ignoring option' conftest.err ||
4463 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4464 am_cv_CC_dependencies_compiler_type=$depmode
4465 break
4468 done
4470 cd ..
4471 rm -rf conftest.dir
4472 else
4473 am_cv_CC_dependencies_compiler_type=none
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4478 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4479 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4482 test "x$enable_dependency_tracking" != xno \
4483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484 am__fastdepCC_TRUE=
4485 am__fastdepCC_FALSE='#'
4486 else
4487 am__fastdepCC_TRUE='#'
4488 am__fastdepCC_FALSE=
4492 ac_ext=cpp
4493 ac_cpp='$CXXCPP $CPPFLAGS'
4494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4497 if test -z "$CXX"; then
4498 if test -n "$CCC"; then
4499 CXX=$CCC
4500 else
4501 if test -n "$ac_tool_prefix"; then
4502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_CXX+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$CXX"; then
4512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 CXX=$ac_cv_prog_CXX
4532 if test -n "$CXX"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4534 $as_echo "$CXX" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4541 test -n "$CXX" && break
4542 done
4544 if test -z "$CXX"; then
4545 ac_ct_CXX=$CXX
4546 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4576 if test -n "$ac_ct_CXX"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4578 $as_echo "$ac_ct_CXX" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4585 test -n "$ac_ct_CXX" && break
4586 done
4588 if test "x$ac_ct_CXX" = x; then
4589 CXX="g++"
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 CXX=$ac_ct_CXX
4603 # Provide some information about the compiler.
4604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 for ac_option in --version -v -V -qversion; do
4608 { { ac_try="$ac_compiler $ac_option >&5"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616 ac_status=$?
4617 if test -s conftest.err; then
4618 sed '10a\
4619 ... rest of stderr output deleted ...
4620 10q' conftest.err >conftest.er1
4621 cat conftest.er1 >&5
4623 rm -f conftest.er1 conftest.err
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4626 done
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4629 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4630 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4637 main ()
4639 #ifndef __GNUC__
4640 choke me
4641 #endif
4644 return 0;
4646 _ACEOF
4647 if ac_fn_cxx_try_compile "$LINENO"; then :
4648 ac_compiler_gnu=yes
4649 else
4650 ac_compiler_gnu=no
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4657 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4658 if test $ac_compiler_gnu = yes; then
4659 GXX=yes
4660 else
4661 GXX=
4663 ac_test_CXXFLAGS=${CXXFLAGS+set}
4664 ac_save_CXXFLAGS=$CXXFLAGS
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4666 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4667 if ${ac_cv_prog_cxx_g+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4671 ac_cxx_werror_flag=yes
4672 ac_cv_prog_cxx_g=no
4673 CXXFLAGS="-g"
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4678 main ()
4682 return 0;
4684 _ACEOF
4685 if ac_fn_cxx_try_compile "$LINENO"; then :
4686 ac_cv_prog_cxx_g=yes
4687 else
4688 CXXFLAGS=""
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4693 main ()
4697 return 0;
4699 _ACEOF
4700 if ac_fn_cxx_try_compile "$LINENO"; then :
4702 else
4703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704 CXXFLAGS="-g"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 main ()
4713 return 0;
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717 ac_cv_prog_cxx_g=yes
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4727 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4728 if test "$ac_test_CXXFLAGS" = set; then
4729 CXXFLAGS=$ac_save_CXXFLAGS
4730 elif test $ac_cv_prog_cxx_g = yes; then
4731 if test "$GXX" = yes; then
4732 CXXFLAGS="-g -O2"
4733 else
4734 CXXFLAGS="-g"
4736 else
4737 if test "$GXX" = yes; then
4738 CXXFLAGS="-O2"
4739 else
4740 CXXFLAGS=
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4749 depcc="$CXX" am_compiler_list=
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4752 $as_echo_n "checking dependency style of $depcc... " >&6; }
4753 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4757 # We make a subdir and do the tests there. Otherwise we can end up
4758 # making bogus files that we don't know about and never remove. For
4759 # instance it was reported that on HP-UX the gcc test will end up
4760 # making a dummy file named 'D' -- because '-MD' means "put the output
4761 # in D".
4762 rm -rf conftest.dir
4763 mkdir conftest.dir
4764 # Copy depcomp to subdir because otherwise we won't find it if we're
4765 # using a relative directory.
4766 cp "$am_depcomp" conftest.dir
4767 cd conftest.dir
4768 # We will build objects and dependencies in a subdirectory because
4769 # it helps to detect inapplicable dependency modes. For instance
4770 # both Tru64's cc and ICC support -MD to output dependencies as a
4771 # side effect of compilation, but ICC will put the dependencies in
4772 # the current directory while Tru64 will put them in the object
4773 # directory.
4774 mkdir sub
4776 am_cv_CXX_dependencies_compiler_type=none
4777 if test "$am_compiler_list" = ""; then
4778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4780 am__universal=false
4781 case " $depcc " in #(
4782 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4783 esac
4785 for depmode in $am_compiler_list; do
4786 # Setup a source with many dependencies, because some compilers
4787 # like to wrap large dependency lists on column 80 (with \), and
4788 # we should not choose a depcomp mode which is confused by this.
4790 # We need to recreate these files for each test, as the compiler may
4791 # overwrite some of them when testing with obscure command lines.
4792 # This happens at least with the AIX C compiler.
4793 : > sub/conftest.c
4794 for i in 1 2 3 4 5 6; do
4795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4796 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4797 # Solaris 10 /bin/sh.
4798 echo '/* dummy */' > sub/conftst$i.h
4799 done
4800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4802 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4803 # mode. It turns out that the SunPro C++ compiler does not properly
4804 # handle '-M -o', and we need to detect this. Also, some Intel
4805 # versions had trouble with output in subdirs.
4806 am__obj=sub/conftest.${OBJEXT-o}
4807 am__minus_obj="-o $am__obj"
4808 case $depmode in
4809 gcc)
4810 # This depmode causes a compiler race in universal mode.
4811 test "$am__universal" = false || continue
4813 nosideeffect)
4814 # After this tag, mechanisms are not by side-effect, so they'll
4815 # only be used when explicitly requested.
4816 if test "x$enable_dependency_tracking" = xyes; then
4817 continue
4818 else
4819 break
4822 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4823 # This compiler won't grok '-c -o', but also, the minuso test has
4824 # not run yet. These depmodes are late enough in the game, and
4825 # so weak that their functioning should not be impacted.
4826 am__obj=conftest.${OBJEXT-o}
4827 am__minus_obj=
4829 none) break ;;
4830 esac
4831 if depmode=$depmode \
4832 source=sub/conftest.c object=$am__obj \
4833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4835 >/dev/null 2>conftest.err &&
4836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4840 # icc doesn't choke on unknown options, it will just issue warnings
4841 # or remarks (even with -Werror). So we grep stderr for any message
4842 # that says an option was ignored or not supported.
4843 # When given -MP, icc 7.0 and 7.1 complain thusly:
4844 # icc: Command line warning: ignoring option '-M'; no argument required
4845 # The diagnosis changed in icc 8.0:
4846 # icc: Command line remark: option '-MP' not supported
4847 if (grep 'ignoring option' conftest.err ||
4848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4849 am_cv_CXX_dependencies_compiler_type=$depmode
4850 break
4853 done
4855 cd ..
4856 rm -rf conftest.dir
4857 else
4858 am_cv_CXX_dependencies_compiler_type=none
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4863 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4864 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4867 test "x$enable_dependency_tracking" != xno \
4868 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4869 am__fastdepCXX_TRUE=
4870 am__fastdepCXX_FALSE='#'
4871 else
4872 am__fastdepCXX_TRUE='#'
4873 am__fastdepCXX_FALSE=
4877 CFLAGS=$save_CFLAGS
4883 # Add CET specific flags if CET is enabled
4885 # Check whether --enable-cet was given.
4886 if test "${enable_cet+set}" = set; then :
4887 enableval=$enable_cet;
4888 case "$enableval" in
4889 yes|no|auto) ;;
4890 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4891 esac
4893 else
4894 enable_cet=auto
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4899 $as_echo_n "checking for CET support... " >&6; }
4901 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4902 case "$host" in
4903 i[34567]86-*-linux* | x86_64-*-linux*)
4904 case "$enable_cet" in
4905 auto)
4906 # Check if target supports multi-byte NOPs
4907 # and if compiler and assembler support CET insn.
4908 cet_save_CFLAGS="$CFLAGS"
4909 CFLAGS="$CFLAGS -fcf-protection"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4914 main ()
4917 #if !defined(__SSE2__)
4918 #error target does not support multi-byte NOPs
4919 #else
4920 asm ("setssbsy");
4921 #endif
4924 return 0;
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 enable_cet=yes
4929 else
4930 enable_cet=no
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 CFLAGS="$cet_save_CFLAGS"
4935 yes)
4936 # Check if assembler supports CET.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4941 main ()
4943 asm ("setssbsy");
4945 return 0;
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4950 else
4951 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 esac
4958 enable_cet=no
4960 esac
4961 if test x$enable_cet = xyes; then
4962 CET_FLAGS="-fcf-protection -mshstk"
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4964 $as_echo "yes" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4972 # By default we simply use the C compiler to build assembly code.
4974 test "${CCAS+set}" = set || CCAS=$CC
4975 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4979 depcc="$CCAS" am_compiler_list=
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4982 $as_echo_n "checking dependency style of $depcc... " >&6; }
4983 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4987 # We make a subdir and do the tests there. Otherwise we can end up
4988 # making bogus files that we don't know about and never remove. For
4989 # instance it was reported that on HP-UX the gcc test will end up
4990 # making a dummy file named 'D' -- because '-MD' means "put the output
4991 # in D".
4992 rm -rf conftest.dir
4993 mkdir conftest.dir
4994 # Copy depcomp to subdir because otherwise we won't find it if we're
4995 # using a relative directory.
4996 cp "$am_depcomp" conftest.dir
4997 cd conftest.dir
4998 # We will build objects and dependencies in a subdirectory because
4999 # it helps to detect inapplicable dependency modes. For instance
5000 # both Tru64's cc and ICC support -MD to output dependencies as a
5001 # side effect of compilation, but ICC will put the dependencies in
5002 # the current directory while Tru64 will put them in the object
5003 # directory.
5004 mkdir sub
5006 am_cv_CCAS_dependencies_compiler_type=none
5007 if test "$am_compiler_list" = ""; then
5008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5010 am__universal=false
5013 for depmode in $am_compiler_list; do
5014 # Setup a source with many dependencies, because some compilers
5015 # like to wrap large dependency lists on column 80 (with \), and
5016 # we should not choose a depcomp mode which is confused by this.
5018 # We need to recreate these files for each test, as the compiler may
5019 # overwrite some of them when testing with obscure command lines.
5020 # This happens at least with the AIX C compiler.
5021 : > sub/conftest.c
5022 for i in 1 2 3 4 5 6; do
5023 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5024 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5025 # Solaris 10 /bin/sh.
5026 echo '/* dummy */' > sub/conftst$i.h
5027 done
5028 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5030 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5031 # mode. It turns out that the SunPro C++ compiler does not properly
5032 # handle '-M -o', and we need to detect this. Also, some Intel
5033 # versions had trouble with output in subdirs.
5034 am__obj=sub/conftest.${OBJEXT-o}
5035 am__minus_obj="-o $am__obj"
5036 case $depmode in
5037 gcc)
5038 # This depmode causes a compiler race in universal mode.
5039 test "$am__universal" = false || continue
5041 nosideeffect)
5042 # After this tag, mechanisms are not by side-effect, so they'll
5043 # only be used when explicitly requested.
5044 if test "x$enable_dependency_tracking" = xyes; then
5045 continue
5046 else
5047 break
5050 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5051 # This compiler won't grok '-c -o', but also, the minuso test has
5052 # not run yet. These depmodes are late enough in the game, and
5053 # so weak that their functioning should not be impacted.
5054 am__obj=conftest.${OBJEXT-o}
5055 am__minus_obj=
5057 none) break ;;
5058 esac
5059 if depmode=$depmode \
5060 source=sub/conftest.c object=$am__obj \
5061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5062 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5063 >/dev/null 2>conftest.err &&
5064 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5065 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5066 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5067 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5068 # icc doesn't choke on unknown options, it will just issue warnings
5069 # or remarks (even with -Werror). So we grep stderr for any message
5070 # that says an option was ignored or not supported.
5071 # When given -MP, icc 7.0 and 7.1 complain thusly:
5072 # icc: Command line warning: ignoring option '-M'; no argument required
5073 # The diagnosis changed in icc 8.0:
5074 # icc: Command line remark: option '-MP' not supported
5075 if (grep 'ignoring option' conftest.err ||
5076 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5077 am_cv_CCAS_dependencies_compiler_type=$depmode
5078 break
5081 done
5083 cd ..
5084 rm -rf conftest.dir
5085 else
5086 am_cv_CCAS_dependencies_compiler_type=none
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5091 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5092 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5095 test "x$enable_dependency_tracking" != xno \
5096 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5097 am__fastdepCCAS_TRUE=
5098 am__fastdepCCAS_FALSE='#'
5099 else
5100 am__fastdepCCAS_TRUE='#'
5101 am__fastdepCCAS_FALSE=
5106 case `pwd` in
5107 *\ * | *\ *)
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5110 esac
5114 macro_version='2.2.7a'
5115 macro_revision='1.3134'
5129 ltmain="$ac_aux_dir/ltmain.sh"
5131 # Backslashify metacharacters that are still active within
5132 # double-quoted strings.
5133 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5135 # Same as above, but do not quote variable references.
5136 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5138 # Sed substitution to delay expansion of an escaped shell variable in a
5139 # double_quote_subst'ed string.
5140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5142 # Sed substitution to delay expansion of an escaped single quote.
5143 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5145 # Sed substitution to avoid accidental globbing in evaled expressions
5146 no_glob_subst='s/\*/\\\*/g'
5148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153 $as_echo_n "checking how to print strings... " >&6; }
5154 # Test print first, because it will be a builtin if present.
5155 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157 ECHO='print -r --'
5158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159 ECHO='printf %s\n'
5160 else
5161 # Use this function as a fallback that always works.
5162 func_fallback_echo ()
5164 eval 'cat <<_LTECHO_EOF
5166 _LTECHO_EOF'
5168 ECHO='func_fallback_echo'
5171 # func_echo_all arg...
5172 # Invoke $ECHO with all args, space-separated.
5173 func_echo_all ()
5175 $ECHO ""
5178 case "$ECHO" in
5179 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180 $as_echo "printf" >&6; } ;;
5181 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182 $as_echo "print -r" >&6; } ;;
5183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184 $as_echo "cat" >&6; } ;;
5185 esac
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5202 if ${ac_cv_path_SED+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5206 for ac_i in 1 2 3 4 5 6 7; do
5207 ac_script="$ac_script$as_nl$ac_script"
5208 done
5209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5210 { ac_script=; unset ac_script;}
5211 if test -z "$SED"; then
5212 ac_path_SED_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in sed gsed; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5222 as_fn_executable_p "$ac_path_SED" || continue
5223 # Check for GNU ac_path_SED and select it if it is found.
5224 # Check for GNU $ac_path_SED
5225 case `"$ac_path_SED" --version 2>&1` in
5226 *GNU*)
5227 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo '' >> "conftest.nl"
5237 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_SED_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_SED="$ac_path_SED"
5243 ac_path_SED_max=$ac_count
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249 esac
5251 $ac_path_SED_found && break 3
5252 done
5253 done
5254 done
5255 IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_SED"; then
5257 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5259 else
5260 ac_cv_path_SED=$SED
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5265 $as_echo "$ac_cv_path_SED" >&6; }
5266 SED="$ac_cv_path_SED"
5267 rm -f conftest.sed
5269 test -z "$SED" && SED=sed
5270 Xsed="$SED -e 1s/^X//"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5284 if ${ac_cv_path_GREP+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -z "$GREP"; then
5288 ac_path_GREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in grep ggrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5298 as_fn_executable_p "$ac_path_GREP" || continue
5299 # Check for GNU ac_path_GREP and select it if it is found.
5300 # Check for GNU $ac_path_GREP
5301 case `"$ac_path_GREP" --version 2>&1` in
5302 *GNU*)
5303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5305 ac_count=0
5306 $as_echo_n 0123456789 >"conftest.in"
5307 while :
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo 'GREP' >> "conftest.nl"
5313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_GREP="$ac_path_GREP"
5319 ac_path_GREP_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5323 done
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5327 $ac_path_GREP_found && break 3
5328 done
5329 done
5330 done
5331 IFS=$as_save_IFS
5332 if test -z "$ac_cv_path_GREP"; then
5333 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5335 else
5336 ac_cv_path_GREP=$GREP
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5341 $as_echo "$ac_cv_path_GREP" >&6; }
5342 GREP="$ac_cv_path_GREP"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5346 $as_echo_n "checking for egrep... " >&6; }
5347 if ${ac_cv_path_EGREP+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5351 then ac_cv_path_EGREP="$GREP -E"
5352 else
5353 if test -z "$EGREP"; then
5354 ac_path_EGREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in egrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5364 as_fn_executable_p "$ac_path_EGREP" || continue
5365 # Check for GNU ac_path_EGREP and select it if it is found.
5366 # Check for GNU $ac_path_EGREP
5367 case `"$ac_path_EGREP" --version 2>&1` in
5368 *GNU*)
5369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5371 ac_count=0
5372 $as_echo_n 0123456789 >"conftest.in"
5373 while :
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'EGREP' >> "conftest.nl"
5379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_EGREP="$ac_path_EGREP"
5385 ac_path_EGREP_max=$ac_count
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5389 done
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 esac
5393 $ac_path_EGREP_found && break 3
5394 done
5395 done
5396 done
5397 IFS=$as_save_IFS
5398 if test -z "$ac_cv_path_EGREP"; then
5399 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5401 else
5402 ac_cv_path_EGREP=$EGREP
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5408 $as_echo "$ac_cv_path_EGREP" >&6; }
5409 EGREP="$ac_cv_path_EGREP"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5413 $as_echo_n "checking for fgrep... " >&6; }
5414 if ${ac_cv_path_FGREP+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5418 then ac_cv_path_FGREP="$GREP -F"
5419 else
5420 if test -z "$FGREP"; then
5421 ac_path_FGREP_found=false
5422 # Loop through the user's path and test for each of PROGNAME-LIST
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_prog in fgrep; do
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5431 as_fn_executable_p "$ac_path_FGREP" || continue
5432 # Check for GNU ac_path_FGREP and select it if it is found.
5433 # Check for GNU $ac_path_FGREP
5434 case `"$ac_path_FGREP" --version 2>&1` in
5435 *GNU*)
5436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5438 ac_count=0
5439 $as_echo_n 0123456789 >"conftest.in"
5440 while :
5442 cat "conftest.in" "conftest.in" >"conftest.tmp"
5443 mv "conftest.tmp" "conftest.in"
5444 cp "conftest.in" "conftest.nl"
5445 $as_echo 'FGREP' >> "conftest.nl"
5446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5448 as_fn_arith $ac_count + 1 && ac_count=$as_val
5449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5450 # Best one so far, save it but keep looking for a better one
5451 ac_cv_path_FGREP="$ac_path_FGREP"
5452 ac_path_FGREP_max=$ac_count
5454 # 10*(2^10) chars as input seems more than enough
5455 test $ac_count -gt 10 && break
5456 done
5457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5458 esac
5460 $ac_path_FGREP_found && break 3
5461 done
5462 done
5463 done
5464 IFS=$as_save_IFS
5465 if test -z "$ac_cv_path_FGREP"; then
5466 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5468 else
5469 ac_cv_path_FGREP=$FGREP
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5475 $as_echo "$ac_cv_path_FGREP" >&6; }
5476 FGREP="$ac_cv_path_FGREP"
5479 test -z "$GREP" && GREP=grep
5499 # Check whether --with-gnu-ld was given.
5500 if test "${with_gnu_ld+set}" = set; then :
5501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5502 else
5503 with_gnu_ld=no
5506 ac_prog=ld
5507 if test "$GCC" = yes; then
5508 # Check if gcc -print-prog-name=ld gives a path.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5510 $as_echo_n "checking for ld used by $CC... " >&6; }
5511 case $host in
5512 *-*-mingw*)
5513 # gcc leaves a trailing carriage return which upsets mingw
5514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5517 esac
5518 case $ac_prog in
5519 # Accept absolute paths.
5520 [\\/]* | ?:[\\/]*)
5521 re_direlt='/[^/][^/]*/\.\./'
5522 # Canonicalize the pathname of ld
5523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5526 done
5527 test -z "$LD" && LD="$ac_prog"
5530 # If it fails, then pretend we aren't using GCC.
5531 ac_prog=ld
5534 # If it is relative, then search for the first ld in PATH.
5535 with_gnu_ld=unknown
5537 esac
5538 elif test "$with_gnu_ld" = yes; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5540 $as_echo_n "checking for GNU ld... " >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5543 $as_echo_n "checking for non-GNU ld... " >&6; }
5545 if ${lt_cv_path_LD+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -z "$LD"; then
5549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH; do
5551 IFS="$lt_save_ifs"
5552 test -z "$ac_dir" && ac_dir=.
5553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5554 lt_cv_path_LD="$ac_dir/$ac_prog"
5555 # Check to see if the program is GNU ld. I'd rather use --version,
5556 # but apparently some variants of GNU ld only accept -v.
5557 # Break only if it was the GNU/non-GNU ld that we prefer.
5558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 test "$with_gnu_ld" != no && break
5563 test "$with_gnu_ld" != yes && break
5565 esac
5567 done
5568 IFS="$lt_save_ifs"
5569 else
5570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5574 LD="$lt_cv_path_LD"
5575 if test -n "$LD"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5577 $as_echo "$LD" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5584 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5585 if ${lt_cv_prog_gnu_ld+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5589 case `$LD -v 2>&1 </dev/null` in
5590 *GNU* | *'with BFD'*)
5591 lt_cv_prog_gnu_ld=yes
5594 lt_cv_prog_gnu_ld=no
5596 esac
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5599 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5600 with_gnu_ld=$lt_cv_prog_gnu_ld
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5611 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5612 if ${lt_cv_path_NM+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$NM"; then
5616 # Let the user override the nm to test.
5617 lt_nm_to_check="$NM"
5618 else
5619 lt_nm_to_check="${ac_tool_prefix}nm"
5620 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5621 lt_nm_to_check="$lt_nm_to_check nm"
5624 for lt_tmp_nm in "$lt_nm_to_check"; do
5625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5626 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5627 IFS="$lt_save_ifs"
5628 test -z "$ac_dir" && ac_dir=.
5629 # Strip out any user-provided options from the nm to test twice,
5630 # the first time to test to see if nm (rather than its options) has
5631 # an explicit path, the second time to yield a file which can be
5632 # nm'ed itself.
5633 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5634 case "$tmp_nm_path" in
5635 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5636 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5637 esac
5638 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5639 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5640 # Check to see if the nm accepts a BSD-compat flag.
5641 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5642 # nm: unknown option "B" ignored
5643 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5644 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5645 break
5648 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5649 *$tmp_nm*)
5650 lt_cv_path_NM="$tmp_nm -p"
5651 break
5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655 continue # so that we can try to find one that supports BSD flags
5657 esac
5659 esac
5661 done
5662 IFS="$lt_save_ifs"
5663 done
5664 : ${lt_cv_path_NM=no}
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5667 $as_echo "$lt_cv_path_NM" >&6; }
5668 if test "$lt_cv_path_NM" != "no"; then
5669 NM="$lt_cv_path_NM"
5670 else
5671 # Didn't find any BSD compatible name lister, look for dumpbin.
5672 if test -n "$DUMPBIN"; then :
5673 # Let the user override the test.
5674 else
5675 if test -n "$ac_tool_prefix"; then
5676 for ac_prog in dumpbin "link -dump"
5678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_DUMPBIN+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$DUMPBIN"; then
5686 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 DUMPBIN=$ac_cv_prog_DUMPBIN
5706 if test -n "$DUMPBIN"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5708 $as_echo "$DUMPBIN" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 test -n "$DUMPBIN" && break
5716 done
5718 if test -z "$DUMPBIN"; then
5719 ac_ct_DUMPBIN=$DUMPBIN
5720 for ac_prog in dumpbin "link -dump"
5722 # Extract the first word of "$ac_prog", so it can be a program name with args.
5723 set dummy $ac_prog; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$ac_ct_DUMPBIN"; then
5730 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5749 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5750 if test -n "$ac_ct_DUMPBIN"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5752 $as_echo "$ac_ct_DUMPBIN" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 test -n "$ac_ct_DUMPBIN" && break
5760 done
5762 if test "x$ac_ct_DUMPBIN" = x; then
5763 DUMPBIN=":"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766 yes:)
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5769 ac_tool_warned=yes ;;
5770 esac
5771 DUMPBIN=$ac_ct_DUMPBIN
5775 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5776 *COFF*)
5777 DUMPBIN="$DUMPBIN -symbols"
5780 DUMPBIN=:
5782 esac
5785 if test "$DUMPBIN" != ":"; then
5786 NM="$DUMPBIN"
5789 test -z "$NM" && NM=nm
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5797 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5798 if ${lt_cv_nm_interface+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 lt_cv_nm_interface="BSD nm"
5802 echo "int some_variable = 0;" > conftest.$ac_ext
5803 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5804 (eval "$ac_compile" 2>conftest.err)
5805 cat conftest.err >&5
5806 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5807 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5808 cat conftest.err >&5
5809 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5810 cat conftest.out >&5
5811 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5812 lt_cv_nm_interface="MS dumpbin"
5814 rm -f conftest*
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5817 $as_echo "$lt_cv_nm_interface" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5820 $as_echo_n "checking whether ln -s works... " >&6; }
5821 LN_S=$as_ln_s
5822 if test "$LN_S" = "ln -s"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 $as_echo "yes" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5827 $as_echo "no, using $LN_S" >&6; }
5830 # find the maximum length of command line arguments
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5832 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5833 if ${lt_cv_sys_max_cmd_len+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5837 teststring="ABCD"
5839 case $build_os in
5840 msdosdjgpp*)
5841 # On DJGPP, this test can blow up pretty badly due to problems in libc
5842 # (any single argument exceeding 2000 bytes causes a buffer overrun
5843 # during glob expansion). Even if it were fixed, the result of this
5844 # check would be larger than it should be.
5845 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5848 gnu*)
5849 # Under GNU Hurd, this test is not required because there is
5850 # no limit to the length of command line arguments.
5851 # Libtool will interpret -1 as no limit whatsoever
5852 lt_cv_sys_max_cmd_len=-1;
5855 cygwin* | mingw* | cegcc*)
5856 # On Win9x/ME, this test blows up -- it succeeds, but takes
5857 # about 5 minutes as the teststring grows exponentially.
5858 # Worse, since 9x/ME are not pre-emptively multitasking,
5859 # you end up with a "frozen" computer, even though with patience
5860 # the test eventually succeeds (with a max line length of 256k).
5861 # Instead, let's just punt: use the minimum linelength reported by
5862 # all of the supported platforms: 8192 (on NT/2K/XP).
5863 lt_cv_sys_max_cmd_len=8192;
5866 mint*)
5867 # On MiNT this can take a long time and run out of memory.
5868 lt_cv_sys_max_cmd_len=8192;
5871 amigaos*)
5872 # On AmigaOS with pdksh, this test takes hours, literally.
5873 # So we just punt and use a minimum line length of 8192.
5874 lt_cv_sys_max_cmd_len=8192;
5877 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5878 # This has been around since 386BSD, at least. Likely further.
5879 if test -x /sbin/sysctl; then
5880 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5881 elif test -x /usr/sbin/sysctl; then
5882 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5883 else
5884 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5886 # And add a safety zone
5887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5891 interix*)
5892 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5893 lt_cv_sys_max_cmd_len=196608
5896 osf*)
5897 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5898 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5899 # nice to cause kernel panics so lets avoid the loop below.
5900 # First set a reasonable default.
5901 lt_cv_sys_max_cmd_len=16384
5903 if test -x /sbin/sysconfig; then
5904 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5905 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5906 esac
5909 sco3.2v5*)
5910 lt_cv_sys_max_cmd_len=102400
5912 sysv5* | sco5v6* | sysv4.2uw2*)
5913 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5914 if test -n "$kargmax"; then
5915 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5916 else
5917 lt_cv_sys_max_cmd_len=32768
5921 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5922 if test -n "$lt_cv_sys_max_cmd_len"; then
5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5925 else
5926 # Make teststring a little bigger before we do anything with it.
5927 # a 1K string should be a reasonable start.
5928 for i in 1 2 3 4 5 6 7 8 ; do
5929 teststring=$teststring$teststring
5930 done
5931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5932 # If test is not a shell built-in, we'll probably end up computing a
5933 # maximum length that is only half of the actual maximum length, but
5934 # we can't tell.
5935 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5936 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5937 test $i != 17 # 1/2 MB should be enough
5939 i=`expr $i + 1`
5940 teststring=$teststring$teststring
5941 done
5942 # Only check the string length outside the loop.
5943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5944 teststring=
5945 # Add a significant safety factor because C++ compilers can tack on
5946 # massive amounts of additional arguments before passing them to the
5947 # linker. It appears as though 1/2 is a usable value.
5948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5951 esac
5955 if test -n $lt_cv_sys_max_cmd_len ; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5957 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5960 $as_echo "none" >&6; }
5962 max_cmd_len=$lt_cv_sys_max_cmd_len
5969 : ${CP="cp -f"}
5970 : ${MV="mv -f"}
5971 : ${RM="rm -f"}
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5974 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5975 # Try some XSI features
5976 xsi_shell=no
5977 ( _lt_dummy="a/b/c"
5978 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5979 = c,a/b,, \
5980 && eval 'test $(( 1 + 1 )) -eq 2 \
5981 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5982 && xsi_shell=yes
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5984 $as_echo "$xsi_shell" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5988 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5989 lt_shell_append=no
5990 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5991 >/dev/null 2>&1 \
5992 && lt_shell_append=yes
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5994 $as_echo "$lt_shell_append" >&6; }
5997 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5998 lt_unset=unset
5999 else
6000 lt_unset=false
6007 # test EBCDIC or ASCII
6008 case `echo X|tr X '\101'` in
6009 A) # ASCII based system
6010 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6011 lt_SP2NL='tr \040 \012'
6012 lt_NL2SP='tr \015\012 \040\040'
6014 *) # EBCDIC based system
6015 lt_SP2NL='tr \100 \n'
6016 lt_NL2SP='tr \r\n \100\100'
6018 esac
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6029 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6030 if ${lt_cv_ld_reload_flag+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 lt_cv_ld_reload_flag='-r'
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6036 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6037 reload_flag=$lt_cv_ld_reload_flag
6038 case $reload_flag in
6039 "" | " "*) ;;
6040 *) reload_flag=" $reload_flag" ;;
6041 esac
6042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6043 case $host_os in
6044 darwin*)
6045 if test "$GCC" = yes; then
6046 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6047 else
6048 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6051 esac
6061 if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_OBJDUMP+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$OBJDUMP"; then
6070 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6083 done
6084 done
6085 IFS=$as_save_IFS
6089 OBJDUMP=$ac_cv_prog_OBJDUMP
6090 if test -n "$OBJDUMP"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6092 $as_echo "$OBJDUMP" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6100 if test -z "$ac_cv_prog_OBJDUMP"; then
6101 ac_ct_OBJDUMP=$OBJDUMP
6102 # Extract the first word of "objdump", so it can be a program name with args.
6103 set dummy objdump; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_OBJDUMP"; then
6110 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6123 done
6124 done
6125 IFS=$as_save_IFS
6129 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6130 if test -n "$ac_ct_OBJDUMP"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6132 $as_echo "$ac_ct_OBJDUMP" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6138 if test "x$ac_ct_OBJDUMP" = x; then
6139 OBJDUMP="false"
6140 else
6141 case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147 OBJDUMP=$ac_ct_OBJDUMP
6149 else
6150 OBJDUMP="$ac_cv_prog_OBJDUMP"
6153 test -z "$OBJDUMP" && OBJDUMP=objdump
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6164 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6165 if ${lt_cv_deplibs_check_method+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 lt_cv_file_magic_cmd='$MAGIC_CMD'
6169 lt_cv_file_magic_test_file=
6170 lt_cv_deplibs_check_method='unknown'
6171 # Need to set the preceding variable on all platforms that support
6172 # interlibrary dependencies.
6173 # 'none' -- dependencies not supported.
6174 # `unknown' -- same as none, but documents that we really don't know.
6175 # 'pass_all' -- all dependencies passed with no checks.
6176 # 'test_compile' -- check by making test program.
6177 # 'file_magic [[regex]]' -- check by looking for files in library path
6178 # which responds to the $file_magic_cmd with a given extended regex.
6179 # If you have `file' or equivalent on your system and you're not sure
6180 # whether `pass_all' will *always* work, you probably want this one.
6182 case $host_os in
6183 aix[4-9]*)
6184 lt_cv_deplibs_check_method=pass_all
6187 beos*)
6188 lt_cv_deplibs_check_method=pass_all
6191 bsdi[45]*)
6192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6193 lt_cv_file_magic_cmd='/usr/bin/file -L'
6194 lt_cv_file_magic_test_file=/shlib/libc.so
6197 cygwin*)
6198 # func_win32_libid is a shell function defined in ltmain.sh
6199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6200 lt_cv_file_magic_cmd='func_win32_libid'
6203 mingw* | pw32*)
6204 # Base MSYS/MinGW do not provide the 'file' command needed by
6205 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6206 # unless we find 'file', for example because we are cross-compiling.
6207 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6208 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6210 lt_cv_file_magic_cmd='func_win32_libid'
6211 else
6212 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6213 lt_cv_file_magic_cmd='$OBJDUMP -f'
6217 cegcc*)
6218 # use the weaker test based on 'objdump'. See mingw*.
6219 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6220 lt_cv_file_magic_cmd='$OBJDUMP -f'
6223 darwin* | rhapsody*)
6224 lt_cv_deplibs_check_method=pass_all
6227 freebsd* | dragonfly*)
6228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6229 case $host_cpu in
6230 i*86 )
6231 # Not sure whether the presence of OpenBSD here was a mistake.
6232 # Let's accept both of them until this is cleared up.
6233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6234 lt_cv_file_magic_cmd=/usr/bin/file
6235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6237 esac
6238 else
6239 lt_cv_deplibs_check_method=pass_all
6243 gnu*)
6244 lt_cv_deplibs_check_method=pass_all
6247 haiku*)
6248 lt_cv_deplibs_check_method=pass_all
6251 hpux10.20* | hpux11*)
6252 lt_cv_file_magic_cmd=/usr/bin/file
6253 case $host_cpu in
6254 ia64*)
6255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6256 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6258 hppa*64*)
6259 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]'
6260 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6264 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6266 esac
6269 interix[3-9]*)
6270 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6274 irix5* | irix6* | nonstopux*)
6275 case $LD in
6276 *-32|*"-32 ") libmagic=32-bit;;
6277 *-n32|*"-n32 ") libmagic=N32;;
6278 *-64|*"-64 ") libmagic=64-bit;;
6279 *) libmagic=never-match;;
6280 esac
6281 lt_cv_deplibs_check_method=pass_all
6284 # This must be Linux ELF.
6285 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6286 lt_cv_deplibs_check_method=pass_all
6289 netbsd*)
6290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6292 else
6293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6297 newos6*)
6298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6299 lt_cv_file_magic_cmd=/usr/bin/file
6300 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6303 *nto* | *qnx*)
6304 lt_cv_deplibs_check_method=pass_all
6307 openbsd*)
6308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6310 else
6311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6315 osf3* | osf4* | osf5*)
6316 lt_cv_deplibs_check_method=pass_all
6319 rdos*)
6320 lt_cv_deplibs_check_method=pass_all
6323 solaris*)
6324 lt_cv_deplibs_check_method=pass_all
6327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6328 lt_cv_deplibs_check_method=pass_all
6331 sysv4 | sysv4.3*)
6332 case $host_vendor in
6333 motorola)
6334 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]'
6335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6337 ncr)
6338 lt_cv_deplibs_check_method=pass_all
6340 sequent)
6341 lt_cv_file_magic_cmd='/bin/file'
6342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6344 sni)
6345 lt_cv_file_magic_cmd='/bin/file'
6346 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6347 lt_cv_file_magic_test_file=/lib/libc.so
6349 siemens)
6350 lt_cv_deplibs_check_method=pass_all
6353 lt_cv_deplibs_check_method=pass_all
6355 esac
6358 tpf*)
6359 lt_cv_deplibs_check_method=pass_all
6361 vxworks*)
6362 # Assume VxWorks cross toolchains are built on Linux, possibly
6363 # as canadian for Windows hosts.
6364 lt_cv_deplibs_check_method=pass_all
6366 esac
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6370 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6371 file_magic_cmd=$lt_cv_file_magic_cmd
6372 deplibs_check_method=$lt_cv_deplibs_check_method
6373 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6386 plugin_option=
6387 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6388 for plugin in $plugin_names; do
6389 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6390 if test x$plugin_so = x$plugin; then
6391 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6393 if test x$plugin_so != x$plugin; then
6394 plugin_option="--plugin $plugin_so"
6395 break
6397 done
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}ar; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_AR+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$AR"; then
6408 ac_cv_prog_AR="$AR" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_AR="${ac_tool_prefix}ar"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6421 done
6422 done
6423 IFS=$as_save_IFS
6427 AR=$ac_cv_prog_AR
6428 if test -n "$AR"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6430 $as_echo "$AR" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_AR"; then
6439 ac_ct_AR=$AR
6440 # Extract the first word of "ar", so it can be a program name with args.
6441 set dummy ar; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_AR"; then
6448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_AR="ar"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6461 done
6462 done
6463 IFS=$as_save_IFS
6467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6468 if test -n "$ac_ct_AR"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6470 $as_echo "$ac_ct_AR" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_AR" = x; then
6477 AR="false"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 AR=$ac_ct_AR
6487 else
6488 AR="$ac_cv_prog_AR"
6491 test -z "$AR" && AR=ar
6492 if test -n "$plugin_option"; then
6493 if $AR --help 2>&1 | grep -q "\--plugin"; then
6494 touch conftest.c
6495 $AR $plugin_option rc conftest.a conftest.c
6496 if test "$?" != 0; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6498 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6499 else
6500 AR="$AR $plugin_option"
6502 rm -f conftest.*
6505 test -z "$AR_FLAGS" && AR_FLAGS=cru
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}strip; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_STRIP+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$STRIP"; then
6526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6539 done
6540 done
6541 IFS=$as_save_IFS
6545 STRIP=$ac_cv_prog_STRIP
6546 if test -n "$STRIP"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6548 $as_echo "$STRIP" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6556 if test -z "$ac_cv_prog_STRIP"; then
6557 ac_ct_STRIP=$STRIP
6558 # Extract the first word of "strip", so it can be a program name with args.
6559 set dummy strip; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_STRIP"; then
6566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_STRIP="strip"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6579 done
6580 done
6581 IFS=$as_save_IFS
6585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6586 if test -n "$ac_ct_STRIP"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6588 $as_echo "$ac_ct_STRIP" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 if test "x$ac_ct_STRIP" = x; then
6595 STRIP=":"
6596 else
6597 case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 STRIP=$ac_ct_STRIP
6605 else
6606 STRIP="$ac_cv_prog_STRIP"
6609 test -z "$STRIP" && STRIP=:
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_RANLIB+:} false; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6624 if test -n "$RANLIB"; then
6625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6638 done
6639 done
6640 IFS=$as_save_IFS
6644 RANLIB=$ac_cv_prog_RANLIB
6645 if test -n "$RANLIB"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6647 $as_echo "$RANLIB" >&6; }
6648 else
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6655 if test -z "$ac_cv_prog_RANLIB"; then
6656 ac_ct_RANLIB=$RANLIB
6657 # Extract the first word of "ranlib", so it can be a program name with args.
6658 set dummy ranlib; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 if test -n "$ac_ct_RANLIB"; then
6665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_ac_ct_RANLIB="ranlib"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6678 done
6679 done
6680 IFS=$as_save_IFS
6684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6685 if test -n "$ac_ct_RANLIB"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6687 $as_echo "$ac_ct_RANLIB" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6693 if test "x$ac_ct_RANLIB" = x; then
6694 RANLIB=":"
6695 else
6696 case $cross_compiling:$ac_tool_warned in
6697 yes:)
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6701 esac
6702 RANLIB=$ac_ct_RANLIB
6704 else
6705 RANLIB="$ac_cv_prog_RANLIB"
6708 test -z "$RANLIB" && RANLIB=:
6709 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6710 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6711 RANLIB="$RANLIB $plugin_option"
6720 # Determine commands to create old-style static archives.
6721 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6722 old_postinstall_cmds='chmod 644 $oldlib'
6723 old_postuninstall_cmds=
6725 if test -n "$RANLIB"; then
6726 case $host_os in
6727 openbsd*)
6728 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6733 esac
6734 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6737 case $host_os in
6738 darwin*)
6739 lock_old_archive_extraction=yes ;;
6741 lock_old_archive_extraction=no ;;
6742 esac
6782 # If no C compiler was specified, use CC.
6783 LTCC=${LTCC-"$CC"}
6785 # If no C compiler flags were specified, use CFLAGS.
6786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6788 # Allow CC to be a program name with arguments.
6789 compiler=$CC
6792 # Check for command to grab the raw symbol name followed by C symbol from nm.
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6794 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6795 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6799 # These are sane defaults that work on at least a few old systems.
6800 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6802 # Character class describing NM global symbol codes.
6803 symcode='[BCDEGRST]'
6805 # Regexp to match symbols that can be accessed directly from C.
6806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6808 # Define system-specific variables.
6809 case $host_os in
6810 aix*)
6811 symcode='[BCDT]'
6813 cygwin* | mingw* | pw32* | cegcc*)
6814 symcode='[ABCDGISTW]'
6816 hpux*)
6817 if test "$host_cpu" = ia64; then
6818 symcode='[ABCDEGRST]'
6821 irix* | nonstopux*)
6822 symcode='[BCDEGRST]'
6824 osf*)
6825 symcode='[BCDEGQRST]'
6827 solaris*)
6828 symcode='[BCDRT]'
6830 sco3.2v5*)
6831 symcode='[DT]'
6833 sysv4.2uw2*)
6834 symcode='[DT]'
6836 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6837 symcode='[ABDT]'
6839 sysv4)
6840 symcode='[DFNSTU]'
6842 esac
6844 # If we're using GNU nm, then use its standard symbol codes.
6845 case `$NM -V 2>&1` in
6846 *GNU* | *'with BFD'*)
6847 symcode='[ABCDGIRSTW]' ;;
6848 esac
6850 # Transform an extracted symbol line into a proper C declaration.
6851 # Some systems (esp. on ia64) link data and code symbols differently,
6852 # so use this general approach.
6853 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6855 # Transform an extracted symbol line into symbol name and symbol address
6856 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6857 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'"
6859 # Handle CRLF in mingw tool chain
6860 opt_cr=
6861 case $build_os in
6862 mingw*)
6863 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6865 esac
6867 # Try without a prefix underscore, then with it.
6868 for ac_symprfx in "" "_"; do
6870 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6871 symxfrm="\\1 $ac_symprfx\\2 \\2"
6873 # Write the raw and C identifiers.
6874 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6875 # Fake it for dumpbin and say T for any non-static function
6876 # and D for any global variable.
6877 # Also find C++ and __fastcall symbols from MSVC++,
6878 # which start with @ or ?.
6879 lt_cv_sys_global_symbol_pipe="$AWK '"\
6880 " {last_section=section; section=\$ 3};"\
6881 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6882 " \$ 0!~/External *\|/{next};"\
6883 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6884 " {if(hide[section]) next};"\
6885 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6886 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6887 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6888 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6889 " ' prfx=^$ac_symprfx"
6890 else
6891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6894 # Check to see that the pipe works correctly.
6895 pipe_works=no
6897 rm -f conftest*
6898 cat > conftest.$ac_ext <<_LT_EOF
6899 #ifdef __cplusplus
6900 extern "C" {
6901 #endif
6902 char nm_test_var;
6903 void nm_test_func(void);
6904 void nm_test_func(void){}
6905 #ifdef __cplusplus
6907 #endif
6908 int main(){nm_test_var='a';nm_test_func();return(0);}
6909 _LT_EOF
6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912 (eval $ac_compile) 2>&5
6913 ac_status=$?
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; then
6916 # Now try to grab the symbols.
6917 nlist=conftest.nm
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6919 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; } && test -s "$nlist"; then
6923 # Try sorting and uniquifying the output.
6924 if sort "$nlist" | uniq > "$nlist"T; then
6925 mv -f "$nlist"T "$nlist"
6926 else
6927 rm -f "$nlist"T
6930 # Make sure that we snagged all the symbols we need.
6931 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6932 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6933 cat <<_LT_EOF > conftest.$ac_ext
6934 #ifdef __cplusplus
6935 extern "C" {
6936 #endif
6938 _LT_EOF
6939 # Now generate the symbol file.
6940 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6942 cat <<_LT_EOF >> conftest.$ac_ext
6944 /* The mapping between symbol names and symbols. */
6945 const struct {
6946 const char *name;
6947 void *address;
6949 lt__PROGRAM__LTX_preloaded_symbols[] =
6951 { "@PROGRAM@", (void *) 0 },
6952 _LT_EOF
6953 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6954 cat <<\_LT_EOF >> conftest.$ac_ext
6955 {0, (void *) 0}
6958 /* This works around a problem in FreeBSD linker */
6959 #ifdef FREEBSD_WORKAROUND
6960 static const void *lt_preloaded_setup() {
6961 return lt__PROGRAM__LTX_preloaded_symbols;
6963 #endif
6965 #ifdef __cplusplus
6967 #endif
6968 _LT_EOF
6969 # Now try linking the two files.
6970 mv conftest.$ac_objext conftstm.$ac_objext
6971 lt_save_LIBS="$LIBS"
6972 lt_save_CFLAGS="$CFLAGS"
6973 LIBS="conftstm.$ac_objext"
6974 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6976 (eval $ac_link) 2>&5
6977 ac_status=$?
6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6980 pipe_works=yes
6982 LIBS="$lt_save_LIBS"
6983 CFLAGS="$lt_save_CFLAGS"
6984 else
6985 echo "cannot find nm_test_func in $nlist" >&5
6987 else
6988 echo "cannot find nm_test_var in $nlist" >&5
6990 else
6991 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6993 else
6994 echo "$progname: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 rm -rf conftest* conftst*
6999 # Do not use the global_symbol_pipe unless it works.
7000 if test "$pipe_works" = yes; then
7001 break
7002 else
7003 lt_cv_sys_global_symbol_pipe=
7005 done
7009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7010 lt_cv_sys_global_symbol_to_cdecl=
7012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7014 $as_echo "failed" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7017 $as_echo "ok" >&6; }
7041 # Check whether --enable-libtool-lock was given.
7042 if test "${enable_libtool_lock+set}" = set; then :
7043 enableval=$enable_libtool_lock;
7046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7048 # Some flags need to be propagated to the compiler or linker for good
7049 # libtool support.
7050 case $host in
7051 ia64-*-hpux*)
7052 # Find out which ABI we are using.
7053 echo 'int i;' > conftest.$ac_ext
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055 (eval $ac_compile) 2>&5
7056 ac_status=$?
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 case `/usr/bin/file conftest.$ac_objext` in
7060 *ELF-32*)
7061 HPUX_IA64_MODE="32"
7063 *ELF-64*)
7064 HPUX_IA64_MODE="64"
7066 esac
7068 rm -rf conftest*
7070 *-*-irix6*)
7071 # Find out which ABI we are using.
7072 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074 (eval $ac_compile) 2>&5
7075 ac_status=$?
7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; }; then
7078 if test "$lt_cv_prog_gnu_ld" = yes; then
7079 case `/usr/bin/file conftest.$ac_objext` in
7080 *32-bit*)
7081 LD="${LD-ld} -melf32bsmip"
7083 *N32*)
7084 LD="${LD-ld} -melf32bmipn32"
7086 *64-bit*)
7087 LD="${LD-ld} -melf64bmip"
7089 esac
7090 else
7091 case `/usr/bin/file conftest.$ac_objext` in
7092 *32-bit*)
7093 LD="${LD-ld} -32"
7095 *N32*)
7096 LD="${LD-ld} -n32"
7098 *64-bit*)
7099 LD="${LD-ld} -64"
7101 esac
7104 rm -rf conftest*
7107 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7108 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7109 # Find out which ABI we are using.
7110 echo 'int i;' > conftest.$ac_ext
7111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112 (eval $ac_compile) 2>&5
7113 ac_status=$?
7114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115 test $ac_status = 0; }; then
7116 case `/usr/bin/file conftest.o` in
7117 *32-bit*)
7118 case $host in
7119 x86_64-*kfreebsd*-gnu)
7120 LD="${LD-ld} -m elf_i386_fbsd"
7122 x86_64-*linux*)
7123 case `/usr/bin/file conftest.o` in
7124 *x86-64*)
7125 LD="${LD-ld} -m elf32_x86_64"
7128 LD="${LD-ld} -m elf_i386"
7130 esac
7132 powerpc64le-*linux*)
7133 LD="${LD-ld} -m elf32lppclinux"
7135 powerpc64-*linux*)
7136 LD="${LD-ld} -m elf32ppclinux"
7138 s390x-*linux*)
7139 LD="${LD-ld} -m elf_s390"
7141 sparc64-*linux*)
7142 LD="${LD-ld} -m elf32_sparc"
7144 esac
7146 *64-bit*)
7147 case $host in
7148 x86_64-*kfreebsd*-gnu)
7149 LD="${LD-ld} -m elf_x86_64_fbsd"
7151 x86_64-*linux*)
7152 LD="${LD-ld} -m elf_x86_64"
7154 powerpcle-*linux*)
7155 LD="${LD-ld} -m elf64lppc"
7157 powerpc-*linux*)
7158 LD="${LD-ld} -m elf64ppc"
7160 s390*-*linux*|s390*-*tpf*)
7161 LD="${LD-ld} -m elf64_s390"
7163 sparc*-*linux*)
7164 LD="${LD-ld} -m elf64_sparc"
7166 esac
7168 esac
7170 rm -rf conftest*
7173 *-*-sco3.2v5*)
7174 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7175 SAVE_CFLAGS="$CFLAGS"
7176 CFLAGS="$CFLAGS -belf"
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7178 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7179 if ${lt_cv_cc_needs_belf+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 ac_ext=c
7183 ac_cpp='$CPP $CPPFLAGS'
7184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 main ()
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_link "$LINENO"; then :
7200 lt_cv_cc_needs_belf=yes
7201 else
7202 lt_cv_cc_needs_belf=no
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 ac_ext=c
7207 ac_cpp='$CPP $CPPFLAGS'
7208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7214 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7215 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7216 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7217 CFLAGS="$SAVE_CFLAGS"
7220 sparc*-*solaris*)
7221 # Find out which ABI we are using.
7222 echo 'int i;' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 case `/usr/bin/file conftest.o` in
7229 *64-bit*)
7230 case $lt_cv_prog_gnu_ld in
7231 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7233 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7234 LD="${LD-ld} -64"
7237 esac
7239 esac
7241 rm -rf conftest*
7243 esac
7245 need_locks="$enable_libtool_lock"
7248 case $host_os in
7249 rhapsody* | darwin*)
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$DSYMUTIL"; then
7259 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7272 done
7273 done
7274 IFS=$as_save_IFS
7278 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7279 if test -n "$DSYMUTIL"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7281 $as_echo "$DSYMUTIL" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7289 if test -z "$ac_cv_prog_DSYMUTIL"; then
7290 ac_ct_DSYMUTIL=$DSYMUTIL
7291 # Extract the first word of "dsymutil", so it can be a program name with args.
7292 set dummy dsymutil; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$ac_ct_DSYMUTIL"; then
7299 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7312 done
7313 done
7314 IFS=$as_save_IFS
7318 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7319 if test -n "$ac_ct_DSYMUTIL"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7321 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7327 if test "x$ac_ct_DSYMUTIL" = x; then
7328 DSYMUTIL=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331 yes:)
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 DSYMUTIL=$ac_ct_DSYMUTIL
7338 else
7339 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_NMEDIT+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$NMEDIT"; then
7351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7364 done
7365 done
7366 IFS=$as_save_IFS
7370 NMEDIT=$ac_cv_prog_NMEDIT
7371 if test -n "$NMEDIT"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7373 $as_echo "$NMEDIT" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7381 if test -z "$ac_cv_prog_NMEDIT"; then
7382 ac_ct_NMEDIT=$NMEDIT
7383 # Extract the first word of "nmedit", so it can be a program name with args.
7384 set dummy nmedit; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$ac_ct_NMEDIT"; then
7391 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7406 IFS=$as_save_IFS
7410 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7411 if test -n "$ac_ct_NMEDIT"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7413 $as_echo "$ac_ct_NMEDIT" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7419 if test "x$ac_ct_NMEDIT" = x; then
7420 NMEDIT=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 NMEDIT=$ac_ct_NMEDIT
7430 else
7431 NMEDIT="$ac_cv_prog_NMEDIT"
7434 if test -n "$ac_tool_prefix"; then
7435 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7436 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_LIPO+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$LIPO"; then
7443 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7456 done
7457 done
7458 IFS=$as_save_IFS
7462 LIPO=$ac_cv_prog_LIPO
7463 if test -n "$LIPO"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7465 $as_echo "$LIPO" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7473 if test -z "$ac_cv_prog_LIPO"; then
7474 ac_ct_LIPO=$LIPO
7475 # Extract the first word of "lipo", so it can be a program name with args.
7476 set dummy lipo; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$ac_ct_LIPO"; then
7483 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_ac_ct_LIPO="lipo"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7498 IFS=$as_save_IFS
7502 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7503 if test -n "$ac_ct_LIPO"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7505 $as_echo "$ac_ct_LIPO" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7511 if test "x$ac_ct_LIPO" = x; then
7512 LIPO=":"
7513 else
7514 case $cross_compiling:$ac_tool_warned in
7515 yes:)
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7518 ac_tool_warned=yes ;;
7519 esac
7520 LIPO=$ac_ct_LIPO
7522 else
7523 LIPO="$ac_cv_prog_LIPO"
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}otool; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_OTOOL+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$OTOOL"; then
7535 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7548 done
7549 done
7550 IFS=$as_save_IFS
7554 OTOOL=$ac_cv_prog_OTOOL
7555 if test -n "$OTOOL"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7557 $as_echo "$OTOOL" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7565 if test -z "$ac_cv_prog_OTOOL"; then
7566 ac_ct_OTOOL=$OTOOL
7567 # Extract the first word of "otool", so it can be a program name with args.
7568 set dummy otool; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_OTOOL"; then
7575 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_OTOOL="otool"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7588 done
7589 done
7590 IFS=$as_save_IFS
7594 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7595 if test -n "$ac_ct_OTOOL"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7597 $as_echo "$ac_ct_OTOOL" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7603 if test "x$ac_ct_OTOOL" = x; then
7604 OTOOL=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 OTOOL=$ac_ct_OTOOL
7614 else
7615 OTOOL="$ac_cv_prog_OTOOL"
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_OTOOL64+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$OTOOL64"; then
7627 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7640 done
7641 done
7642 IFS=$as_save_IFS
7646 OTOOL64=$ac_cv_prog_OTOOL64
7647 if test -n "$OTOOL64"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7649 $as_echo "$OTOOL64" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7657 if test -z "$ac_cv_prog_OTOOL64"; then
7658 ac_ct_OTOOL64=$OTOOL64
7659 # Extract the first word of "otool64", so it can be a program name with args.
7660 set dummy otool64; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_OTOOL64"; then
7667 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_OTOOL64="otool64"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7682 IFS=$as_save_IFS
7686 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7687 if test -n "$ac_ct_OTOOL64"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7689 $as_echo "$ac_ct_OTOOL64" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7695 if test "x$ac_ct_OTOOL64" = x; then
7696 OTOOL64=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 OTOOL64=$ac_ct_OTOOL64
7706 else
7707 OTOOL64="$ac_cv_prog_OTOOL64"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7737 $as_echo_n "checking for -single_module linker flag... " >&6; }
7738 if ${lt_cv_apple_cc_single_mod+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 lt_cv_apple_cc_single_mod=no
7742 if test -z "${LT_MULTI_MODULE}"; then
7743 # By default we will add the -single_module flag. You can override
7744 # by either setting the environment variable LT_MULTI_MODULE
7745 # non-empty at configure time, or by adding -multi_module to the
7746 # link flags.
7747 rm -rf libconftest.dylib*
7748 echo "int foo(void){return 1;}" > conftest.c
7749 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c" >&5
7751 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7752 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7753 _lt_result=$?
7754 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7755 lt_cv_apple_cc_single_mod=yes
7756 else
7757 cat conftest.err >&5
7759 rm -rf libconftest.dylib*
7760 rm -f conftest.*
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7764 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7766 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7767 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 lt_cv_ld_exported_symbols_list=no
7771 save_LDFLAGS=$LDFLAGS
7772 echo "_main" > conftest.sym
7773 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7778 main ()
7782 return 0;
7784 _ACEOF
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 lt_cv_ld_exported_symbols_list=yes
7787 else
7788 lt_cv_ld_exported_symbols_list=no
7790 rm -f core conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792 LDFLAGS="$save_LDFLAGS"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7796 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7798 $as_echo_n "checking for -force_load linker flag... " >&6; }
7799 if ${lt_cv_ld_force_load+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 lt_cv_ld_force_load=no
7803 cat > conftest.c << _LT_EOF
7804 int forced_loaded() { return 2;}
7805 _LT_EOF
7806 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7807 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7808 echo "$AR cru libconftest.a conftest.o" >&5
7809 $AR cru libconftest.a conftest.o 2>&5
7810 cat > conftest.c << _LT_EOF
7811 int main() { return 0;}
7812 _LT_EOF
7813 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7814 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7815 _lt_result=$?
7816 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7817 lt_cv_ld_force_load=yes
7818 else
7819 cat conftest.err >&5
7821 rm -f conftest.err libconftest.a conftest conftest.c
7822 rm -rf conftest.dSYM
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7826 $as_echo "$lt_cv_ld_force_load" >&6; }
7827 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7828 # build without first building modern cctools / linker.
7829 case $host_cpu-$host_os in
7830 *-rhapsody* | *-darwin1.[012])
7831 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7832 *-darwin1.*)
7833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7834 *-darwin*)
7835 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7836 # deployment target is forced to an earlier version.
7837 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7838 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7840 10.[012][,.]*)
7841 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7845 esac
7847 esac
7848 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7849 _lt_dar_single_mod='$single_module'
7851 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7852 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7853 else
7854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7856 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7857 _lt_dsymutil='~$DSYMUTIL $lib || :'
7858 else
7859 _lt_dsymutil=
7862 esac
7864 ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7871 # On Suns, sometimes $CPP names a directory.
7872 if test -n "$CPP" && test -d "$CPP"; then
7873 CPP=
7875 if test -z "$CPP"; then
7876 if ${ac_cv_prog_CPP+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 # Double quotes because CPP needs to be expanded
7880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7882 ac_preproc_ok=false
7883 for ac_c_preproc_warn_flag in '' yes
7885 # Use a header file that comes with gcc, so configuring glibc
7886 # with a fresh cross-compiler works.
7887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 # <limits.h> exists even on freestanding compilers.
7889 # On the NeXT, cc -E runs the code through the compiler's parser,
7890 # not just through cpp. "Syntax error" is here to catch this case.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898 Syntax error
7899 _ACEOF
7900 if ac_fn_c_try_cpp "$LINENO"; then :
7902 else
7903 # Broken: fails on valid input.
7904 continue
7906 rm -f conftest.err conftest.i conftest.$ac_ext
7908 # OK, works on sane cases. Now check whether nonexistent headers
7909 # can be detected and how.
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <ac_nonexistent.h>
7913 _ACEOF
7914 if ac_fn_c_try_cpp "$LINENO"; then :
7915 # Broken: success on invalid input.
7916 continue
7917 else
7918 # Passes both tests.
7919 ac_preproc_ok=:
7920 break
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7924 done
7925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7926 rm -f conftest.i conftest.err conftest.$ac_ext
7927 if $ac_preproc_ok; then :
7928 break
7931 done
7932 ac_cv_prog_CPP=$CPP
7935 CPP=$ac_cv_prog_CPP
7936 else
7937 ac_cv_prog_CPP=$CPP
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7940 $as_echo "$CPP" >&6; }
7941 ac_preproc_ok=false
7942 for ac_c_preproc_warn_flag in '' yes
7944 # Use a header file that comes with gcc, so configuring glibc
7945 # with a fresh cross-compiler works.
7946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7947 # <limits.h> exists even on freestanding compilers.
7948 # On the NeXT, cc -E runs the code through the compiler's parser,
7949 # not just through cpp. "Syntax error" is here to catch this case.
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 #ifdef __STDC__
7953 # include <limits.h>
7954 #else
7955 # include <assert.h>
7956 #endif
7957 Syntax error
7958 _ACEOF
7959 if ac_fn_c_try_cpp "$LINENO"; then :
7961 else
7962 # Broken: fails on valid input.
7963 continue
7965 rm -f conftest.err conftest.i conftest.$ac_ext
7967 # OK, works on sane cases. Now check whether nonexistent headers
7968 # can be detected and how.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <ac_nonexistent.h>
7972 _ACEOF
7973 if ac_fn_c_try_cpp "$LINENO"; then :
7974 # Broken: success on invalid input.
7975 continue
7976 else
7977 # Passes both tests.
7978 ac_preproc_ok=:
7979 break
7981 rm -f conftest.err conftest.i conftest.$ac_ext
7983 done
7984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7985 rm -f conftest.i conftest.err conftest.$ac_ext
7986 if $ac_preproc_ok; then :
7988 else
7989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7991 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7992 See \`config.log' for more details" "$LINENO" 5; }
7995 ac_ext=c
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003 $as_echo_n "checking for ANSI C header files... " >&6; }
8004 if ${ac_cv_header_stdc+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #include <stdlib.h>
8010 #include <stdarg.h>
8011 #include <string.h>
8012 #include <float.h>
8015 main ()
8019 return 0;
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 ac_cv_header_stdc=yes
8024 else
8025 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <string.h>
8035 _ACEOF
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037 $EGREP "memchr" >/dev/null 2>&1; then :
8039 else
8040 ac_cv_header_stdc=no
8042 rm -f conftest*
8046 if test $ac_cv_header_stdc = yes; then
8047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <stdlib.h>
8052 _ACEOF
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054 $EGREP "free" >/dev/null 2>&1; then :
8056 else
8057 ac_cv_header_stdc=no
8059 rm -f conftest*
8063 if test $ac_cv_header_stdc = yes; then
8064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065 if test "$cross_compiling" = yes; then :
8067 else
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <ctype.h>
8071 #include <stdlib.h>
8072 #if ((' ' & 0x0FF) == 0x020)
8073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8075 #else
8076 # define ISLOWER(c) \
8077 (('a' <= (c) && (c) <= 'i') \
8078 || ('j' <= (c) && (c) <= 'r') \
8079 || ('s' <= (c) && (c) <= 'z'))
8080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8081 #endif
8083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8085 main ()
8087 int i;
8088 for (i = 0; i < 256; i++)
8089 if (XOR (islower (i), ISLOWER (i))
8090 || toupper (i) != TOUPPER (i))
8091 return 2;
8092 return 0;
8094 _ACEOF
8095 if ac_fn_c_try_run "$LINENO"; then :
8097 else
8098 ac_cv_header_stdc=no
8100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101 conftest.$ac_objext conftest.beam conftest.$ac_ext
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107 $as_echo "$ac_cv_header_stdc" >&6; }
8108 if test $ac_cv_header_stdc = yes; then
8110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8116 inttypes.h stdint.h unistd.h
8117 do :
8118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8122 cat >>confdefs.h <<_ACEOF
8123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8124 _ACEOF
8128 done
8131 for ac_header in dlfcn.h
8132 do :
8133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8135 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_DLFCN_H 1
8138 _ACEOF
8142 done
8149 # Set options
8153 enable_dlopen=no
8156 enable_win32_dll=no
8159 # Check whether --enable-shared was given.
8160 if test "${enable_shared+set}" = set; then :
8161 enableval=$enable_shared; p=${PACKAGE-default}
8162 case $enableval in
8163 yes) enable_shared=yes ;;
8164 no) enable_shared=no ;;
8166 enable_shared=no
8167 # Look at the argument we got. We use all the common list separators.
8168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8169 for pkg in $enableval; do
8170 IFS="$lt_save_ifs"
8171 if test "X$pkg" = "X$p"; then
8172 enable_shared=yes
8174 done
8175 IFS="$lt_save_ifs"
8177 esac
8178 else
8179 enable_shared=yes
8190 # Check whether --enable-static was given.
8191 if test "${enable_static+set}" = set; then :
8192 enableval=$enable_static; p=${PACKAGE-default}
8193 case $enableval in
8194 yes) enable_static=yes ;;
8195 no) enable_static=no ;;
8197 enable_static=no
8198 # Look at the argument we got. We use all the common list separators.
8199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8200 for pkg in $enableval; do
8201 IFS="$lt_save_ifs"
8202 if test "X$pkg" = "X$p"; then
8203 enable_static=yes
8205 done
8206 IFS="$lt_save_ifs"
8208 esac
8209 else
8210 enable_static=yes
8222 # Check whether --with-pic was given.
8223 if test "${with_pic+set}" = set; then :
8224 withval=$with_pic; pic_mode="$withval"
8225 else
8226 pic_mode=default
8230 test -z "$pic_mode" && pic_mode=default
8238 # Check whether --enable-fast-install was given.
8239 if test "${enable_fast_install+set}" = set; then :
8240 enableval=$enable_fast_install; p=${PACKAGE-default}
8241 case $enableval in
8242 yes) enable_fast_install=yes ;;
8243 no) enable_fast_install=no ;;
8245 enable_fast_install=no
8246 # Look at the argument we got. We use all the common list separators.
8247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8248 for pkg in $enableval; do
8249 IFS="$lt_save_ifs"
8250 if test "X$pkg" = "X$p"; then
8251 enable_fast_install=yes
8253 done
8254 IFS="$lt_save_ifs"
8256 esac
8257 else
8258 enable_fast_install=yes
8271 # This can be used to rebuild libtool when needed
8272 LIBTOOL_DEPS="$ltmain"
8274 # Always use our own libtool.
8275 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8302 test -z "$LN_S" && LN_S="ln -s"
8317 if test -n "${ZSH_VERSION+set}" ; then
8318 setopt NO_GLOB_SUBST
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8322 $as_echo_n "checking for objdir... " >&6; }
8323 if ${lt_cv_objdir+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 rm -f .libs 2>/dev/null
8327 mkdir .libs 2>/dev/null
8328 if test -d .libs; then
8329 lt_cv_objdir=.libs
8330 else
8331 # MS-DOS does not allow filenames that begin with a dot.
8332 lt_cv_objdir=_libs
8334 rmdir .libs 2>/dev/null
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8337 $as_echo "$lt_cv_objdir" >&6; }
8338 objdir=$lt_cv_objdir
8344 cat >>confdefs.h <<_ACEOF
8345 #define LT_OBJDIR "$lt_cv_objdir/"
8346 _ACEOF
8351 case $host_os in
8352 aix3*)
8353 # AIX sometimes has problems with the GCC collect2 program. For some
8354 # reason, if we set the COLLECT_NAMES environment variable, the problems
8355 # vanish in a puff of smoke.
8356 if test "X${COLLECT_NAMES+set}" != Xset; then
8357 COLLECT_NAMES=
8358 export COLLECT_NAMES
8361 esac
8363 # Global variables:
8364 ofile=libtool
8365 can_build_shared=yes
8367 # All known linkers require a `.a' archive for static linking (except MSVC,
8368 # which needs '.lib').
8369 libext=a
8371 with_gnu_ld="$lt_cv_prog_gnu_ld"
8373 old_CC="$CC"
8374 old_CFLAGS="$CFLAGS"
8376 # Set sane defaults for various variables
8377 test -z "$CC" && CC=cc
8378 test -z "$LTCC" && LTCC=$CC
8379 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8380 test -z "$LD" && LD=ld
8381 test -z "$ac_objext" && ac_objext=o
8383 for cc_temp in $compiler""; do
8384 case $cc_temp in
8385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8387 \-*) ;;
8388 *) break;;
8389 esac
8390 done
8391 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8394 # Only perform the check for file, if the check method requires it
8395 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8396 case $deplibs_check_method in
8397 file_magic*)
8398 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8400 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 case $MAGIC_CMD in
8405 [\\/*] | ?:[\\/]*)
8406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 lt_save_MAGIC_CMD="$MAGIC_CMD"
8410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412 for ac_dir in $ac_dummy; do
8413 IFS="$lt_save_ifs"
8414 test -z "$ac_dir" && ac_dir=.
8415 if test -f $ac_dir/${ac_tool_prefix}file; then
8416 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8417 if test -n "$file_magic_test_file"; then
8418 case $deplibs_check_method in
8419 "file_magic "*)
8420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423 $EGREP "$file_magic_regex" > /dev/null; then
8425 else
8426 cat <<_LT_EOF 1>&2
8428 *** Warning: the command libtool uses to detect shared libraries,
8429 *** $file_magic_cmd, produces output that libtool cannot recognize.
8430 *** The result is that libtool may fail to recognize shared libraries
8431 *** as such. This will affect the creation of libtool libraries that
8432 *** depend on shared libraries, but programs linked with such libtool
8433 *** libraries will work regardless of this problem. Nevertheless, you
8434 *** may want to report the problem to your system manager and/or to
8435 *** bug-libtool@gnu.org
8437 _LT_EOF
8438 fi ;;
8439 esac
8441 break
8443 done
8444 IFS="$lt_save_ifs"
8445 MAGIC_CMD="$lt_save_MAGIC_CMD"
8447 esac
8450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451 if test -n "$MAGIC_CMD"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453 $as_echo "$MAGIC_CMD" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8463 if test -z "$lt_cv_path_MAGIC_CMD"; then
8464 if test -n "$ac_tool_prefix"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8466 $as_echo_n "checking for file... " >&6; }
8467 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 case $MAGIC_CMD in
8471 [\\/*] | ?:[\\/]*)
8472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8475 lt_save_MAGIC_CMD="$MAGIC_CMD"
8476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8478 for ac_dir in $ac_dummy; do
8479 IFS="$lt_save_ifs"
8480 test -z "$ac_dir" && ac_dir=.
8481 if test -f $ac_dir/file; then
8482 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8483 if test -n "$file_magic_test_file"; then
8484 case $deplibs_check_method in
8485 "file_magic "*)
8486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8489 $EGREP "$file_magic_regex" > /dev/null; then
8491 else
8492 cat <<_LT_EOF 1>&2
8494 *** Warning: the command libtool uses to detect shared libraries,
8495 *** $file_magic_cmd, produces output that libtool cannot recognize.
8496 *** The result is that libtool may fail to recognize shared libraries
8497 *** as such. This will affect the creation of libtool libraries that
8498 *** depend on shared libraries, but programs linked with such libtool
8499 *** libraries will work regardless of this problem. Nevertheless, you
8500 *** may want to report the problem to your system manager and/or to
8501 *** bug-libtool@gnu.org
8503 _LT_EOF
8504 fi ;;
8505 esac
8507 break
8509 done
8510 IFS="$lt_save_ifs"
8511 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 esac
8516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517 if test -n "$MAGIC_CMD"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8519 $as_echo "$MAGIC_CMD" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8526 else
8527 MAGIC_CMD=:
8533 esac
8535 # Use C for the default configuration in the libtool script
8537 lt_save_CC="$CC"
8538 ac_ext=c
8539 ac_cpp='$CPP $CPPFLAGS'
8540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8545 # Source file extension for C test sources.
8546 ac_ext=c
8548 # Object file extension for compiled C test sources.
8549 objext=o
8550 objext=$objext
8552 # Code to be used in simple compile tests
8553 lt_simple_compile_test_code="int some_variable = 0;"
8555 # Code to be used in simple link tests
8556 lt_simple_link_test_code='int main(){return(0);}'
8564 # If no C compiler was specified, use CC.
8565 LTCC=${LTCC-"$CC"}
8567 # If no C compiler flags were specified, use CFLAGS.
8568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8570 # Allow CC to be a program name with arguments.
8571 compiler=$CC
8573 # Save the default compiler, since it gets overwritten when the other
8574 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8575 compiler_DEFAULT=$CC
8577 # save warnings/boilerplate of simple test code
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581 _lt_compiler_boilerplate=`cat conftest.err`
8582 $RM conftest*
8584 ac_outfile=conftest.$ac_objext
8585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8587 _lt_linker_boilerplate=`cat conftest.err`
8588 $RM -r conftest*
8591 ## CAVEAT EMPTOR:
8592 ## There is no encapsulation within the following macros, do not change
8593 ## the running order or otherwise move them around unless you know exactly
8594 ## what you are doing...
8595 if test -n "$compiler"; then
8597 lt_prog_compiler_no_builtin_flag=
8599 if test "$GCC" = yes; then
8600 case $cc_basename in
8601 nvcc*)
8602 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8604 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8605 esac
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8608 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8609 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 lt_cv_prog_compiler_rtti_exceptions=no
8613 ac_outfile=conftest.$ac_objext
8614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615 lt_compiler_flag="-fno-rtti -fno-exceptions"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 # The option is referenced via a variable to avoid confusing sed.
8621 lt_compile=`echo "$ac_compile" | $SED \
8622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8624 -e 's:$: $lt_compiler_flag:'`
8625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8626 (eval "$lt_compile" 2>conftest.err)
8627 ac_status=$?
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 if (exit $ac_status) && test -s "$ac_outfile"; then
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings other than the usual output.
8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_rtti_exceptions=yes
8639 $RM conftest*
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8643 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8646 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8647 else
8658 lt_prog_compiler_wl=
8659 lt_prog_compiler_pic=
8660 lt_prog_compiler_static=
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8665 if test "$GCC" = yes; then
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_static='-static'
8669 case $host_os in
8670 aix*)
8671 # All AIX code is PIC.
8672 if test "$host_cpu" = ia64; then
8673 # AIX 5 now supports IA64 processor
8674 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_pic='-fPIC'
8679 amigaos*)
8680 case $host_cpu in
8681 powerpc)
8682 # see comment about AmigaOS4 .so support
8683 lt_prog_compiler_pic='-fPIC'
8685 m68k)
8686 # FIXME: we need at least 68020 code to build shared libraries, but
8687 # adding the `-m68020' flag to GCC prevents building anything better,
8688 # like `-m68040'.
8689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8691 esac
8694 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8695 # PIC is the default for these OSes.
8698 mingw* | cygwin* | pw32* | os2* | cegcc*)
8699 # This hack is so that the source file can tell whether it is being
8700 # built for inclusion in a dll (and should export symbols for example).
8701 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8702 # (--disable-auto-import) libraries
8703 lt_prog_compiler_pic='-DDLL_EXPORT'
8706 darwin* | rhapsody*)
8707 # PIC is the default on this platform
8708 # Common symbols not allowed in MH_DYLIB files
8709 lt_prog_compiler_pic='-fno-common'
8712 haiku*)
8713 # PIC is the default for Haiku.
8714 # The "-static" flag exists, but is broken.
8715 lt_prog_compiler_static=
8718 hpux*)
8719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8721 # sets the default TLS model and affects inlining.
8722 case $host_cpu in
8723 hppa*64*)
8724 # +Z the default
8727 lt_prog_compiler_pic='-fPIC'
8729 esac
8732 interix[3-9]*)
8733 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8734 # Instead, we relocate shared libraries at runtime.
8737 msdosdjgpp*)
8738 # Just because we use GCC doesn't mean we suddenly get shared libraries
8739 # on systems that don't support them.
8740 lt_prog_compiler_can_build_shared=no
8741 enable_shared=no
8744 *nto* | *qnx*)
8745 # QNX uses GNU C++, but need to define -shared option too, otherwise
8746 # it will coredump.
8747 lt_prog_compiler_pic='-fPIC -shared'
8750 sysv4*MP*)
8751 if test -d /usr/nec; then
8752 lt_prog_compiler_pic=-Kconform_pic
8757 lt_prog_compiler_pic='-fPIC'
8759 esac
8761 case $cc_basename in
8762 nvcc*) # Cuda Compiler Driver 2.2
8763 lt_prog_compiler_wl='-Xlinker '
8764 lt_prog_compiler_pic='-Xcompiler -fPIC'
8766 esac
8767 else
8768 # PORTME Check for flag to pass linker flags through the system compiler.
8769 case $host_os in
8770 aix*)
8771 lt_prog_compiler_wl='-Wl,'
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 else
8776 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8780 mingw* | cygwin* | pw32* | os2* | cegcc*)
8781 # This hack is so that the source file can tell whether it is being
8782 # built for inclusion in a dll (and should export symbols for example).
8783 lt_prog_compiler_pic='-DDLL_EXPORT'
8786 hpux9* | hpux10* | hpux11*)
8787 lt_prog_compiler_wl='-Wl,'
8788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8789 # not for PA HP-UX.
8790 case $host_cpu in
8791 hppa*64*|ia64*)
8792 # +Z the default
8795 lt_prog_compiler_pic='+Z'
8797 esac
8798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8799 lt_prog_compiler_static='${wl}-a ${wl}archive'
8802 irix5* | irix6* | nonstopux*)
8803 lt_prog_compiler_wl='-Wl,'
8804 # PIC (with -KPIC) is the default.
8805 lt_prog_compiler_static='-non_shared'
8808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8809 case $cc_basename in
8810 # old Intel for x86_64 which still supported -KPIC.
8811 ecc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-static'
8816 # icc used to be incompatible with GCC.
8817 # ICC 10 doesn't accept -KPIC any more.
8818 icc* | ifort*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-fPIC'
8821 lt_prog_compiler_static='-static'
8823 # Lahey Fortran 8.1.
8824 lf95*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='--shared'
8827 lt_prog_compiler_static='--static'
8829 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8830 # Portland Group compilers (*not* the Pentium gcc compiler,
8831 # which looks to be a dead project)
8832 lt_prog_compiler_wl='-Wl,'
8833 lt_prog_compiler_pic='-fpic'
8834 lt_prog_compiler_static='-Bstatic'
8836 ccc*)
8837 lt_prog_compiler_wl='-Wl,'
8838 # All Alpha code is PIC.
8839 lt_prog_compiler_static='-non_shared'
8841 xl* | bgxl* | bgf* | mpixl*)
8842 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-qpic'
8845 lt_prog_compiler_static='-qstaticlink'
8848 case `$CC -V 2>&1 | sed 5q` in
8849 *Sun\ F* | *Sun*Fortran*)
8850 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 lt_prog_compiler_wl=''
8855 *Sun\ C*)
8856 # Sun C 5.9
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 lt_prog_compiler_wl='-Wl,'
8861 esac
8863 esac
8866 newsos6)
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8871 *nto* | *qnx*)
8872 # QNX uses GNU C++, but need to define -shared option too, otherwise
8873 # it will coredump.
8874 lt_prog_compiler_pic='-fPIC -shared'
8877 osf3* | osf4* | osf5*)
8878 lt_prog_compiler_wl='-Wl,'
8879 # All OSF/1 code is PIC.
8880 lt_prog_compiler_static='-non_shared'
8883 rdos*)
8884 lt_prog_compiler_static='-non_shared'
8887 solaris*)
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8890 case $cc_basename in
8891 f77* | f90* | f95*)
8892 lt_prog_compiler_wl='-Qoption ld ';;
8894 lt_prog_compiler_wl='-Wl,';;
8895 esac
8898 sunos4*)
8899 lt_prog_compiler_wl='-Qoption ld '
8900 lt_prog_compiler_pic='-PIC'
8901 lt_prog_compiler_static='-Bstatic'
8904 sysv4 | sysv4.2uw2* | sysv4.3*)
8905 lt_prog_compiler_wl='-Wl,'
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8910 sysv4*MP*)
8911 if test -d /usr/nec ;then
8912 lt_prog_compiler_pic='-Kconform_pic'
8913 lt_prog_compiler_static='-Bstatic'
8917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8923 unicos*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_can_build_shared=no
8928 uts4*)
8929 lt_prog_compiler_pic='-pic'
8930 lt_prog_compiler_static='-Bstatic'
8934 lt_prog_compiler_can_build_shared=no
8936 esac
8939 case $host_os in
8940 # For platforms which do not support PIC, -DPIC is meaningless:
8941 *djgpp*)
8942 lt_prog_compiler_pic=
8945 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8947 esac
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8949 $as_echo "$lt_prog_compiler_pic" >&6; }
8957 # Check to make sure the PIC flag actually works.
8959 if test -n "$lt_prog_compiler_pic"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8962 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 lt_cv_prog_compiler_pic_works=no
8966 ac_outfile=conftest.$ac_objext
8967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8968 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8969 # Insert the option either (1) after the last *FLAGS variable, or
8970 # (2) before a word containing "conftest.", or (3) at the end.
8971 # Note that $ac_compile itself does not contain backslashes and begins
8972 # with a dollar sign (not a hyphen), so the echo should work correctly.
8973 # The option is referenced via a variable to avoid confusing sed.
8974 lt_compile=`echo "$ac_compile" | $SED \
8975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8977 -e 's:$: $lt_compiler_flag:'`
8978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8979 (eval "$lt_compile" 2>conftest.err)
8980 ac_status=$?
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 if (exit $ac_status) && test -s "$ac_outfile"; then
8984 # The compiler can only warn and ignore the option if not recognized
8985 # So say no if there are warnings other than the usual output.
8986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8989 lt_cv_prog_compiler_pic_works=yes
8992 $RM conftest*
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8996 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8998 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8999 case $lt_prog_compiler_pic in
9000 "" | " "*) ;;
9001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9002 esac
9003 else
9004 lt_prog_compiler_pic=
9005 lt_prog_compiler_can_build_shared=no
9016 # Check to make sure the static flag actually works.
9018 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9021 if ${lt_cv_prog_compiler_static_works+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_static_works=no
9025 save_LDFLAGS="$LDFLAGS"
9026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9029 # The linker can only warn and ignore the option if not recognized
9030 # So say no if there are warnings
9031 if test -s conftest.err; then
9032 # Append any errors to the config.log.
9033 cat conftest.err 1>&5
9034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036 if diff conftest.exp conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler_static_works=yes
9039 else
9040 lt_cv_prog_compiler_static_works=yes
9043 $RM -r conftest*
9044 LDFLAGS="$save_LDFLAGS"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9048 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9050 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9052 else
9053 lt_prog_compiler_static=
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9064 if ${lt_cv_prog_compiler_c_o+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 lt_cv_prog_compiler_c_o=no
9068 $RM -r conftest 2>/dev/null
9069 mkdir conftest
9070 cd conftest
9071 mkdir out
9072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074 lt_compiler_flag="-o out/conftest2.$ac_objext"
9075 # Insert the option either (1) after the last *FLAGS variable, or
9076 # (2) before a word containing "conftest.", or (3) at the end.
9077 # Note that $ac_compile itself does not contain backslashes and begins
9078 # with a dollar sign (not a hyphen), so the echo should work correctly.
9079 lt_compile=`echo "$ac_compile" | $SED \
9080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9082 -e 's:$: $lt_compiler_flag:'`
9083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9084 (eval "$lt_compile" 2>out/conftest.err)
9085 ac_status=$?
9086 cat out/conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9089 then
9090 # The compiler can only warn and ignore the option if not recognized
9091 # So say no if there are warnings
9092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9095 lt_cv_prog_compiler_c_o=yes
9098 chmod u+w . 2>&5
9099 $RM conftest*
9100 # SGI C++ compiler will create directory out/ii_files/ for
9101 # template instantiation
9102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9103 $RM out/* && rmdir out
9104 cd ..
9105 $RM -r conftest
9106 $RM conftest*
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9119 if ${lt_cv_prog_compiler_c_o+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 lt_cv_prog_compiler_c_o=no
9123 $RM -r conftest 2>/dev/null
9124 mkdir conftest
9125 cd conftest
9126 mkdir out
9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129 lt_compiler_flag="-o out/conftest2.$ac_objext"
9130 # Insert the option either (1) after the last *FLAGS variable, or
9131 # (2) before a word containing "conftest.", or (3) at the end.
9132 # Note that $ac_compile itself does not contain backslashes and begins
9133 # with a dollar sign (not a hyphen), so the echo should work correctly.
9134 lt_compile=`echo "$ac_compile" | $SED \
9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137 -e 's:$: $lt_compiler_flag:'`
9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139 (eval "$lt_compile" 2>out/conftest.err)
9140 ac_status=$?
9141 cat out/conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9144 then
9145 # The compiler can only warn and ignore the option if not recognized
9146 # So say no if there are warnings
9147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_c_o=yes
9153 chmod u+w . 2>&5
9154 $RM conftest*
9155 # SGI C++ compiler will create directory out/ii_files/ for
9156 # template instantiation
9157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9158 $RM out/* && rmdir out
9159 cd ..
9160 $RM -r conftest
9161 $RM conftest*
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9165 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9170 hard_links="nottested"
9171 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9172 # do not overwrite the value of need_locks provided by the user
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9174 $as_echo_n "checking if we can lock with hard links... " >&6; }
9175 hard_links=yes
9176 $RM conftest*
9177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9178 touch conftest.a
9179 ln conftest.a conftest.b 2>&5 || hard_links=no
9180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9182 $as_echo "$hard_links" >&6; }
9183 if test "$hard_links" = no; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9185 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9186 need_locks=warn
9188 else
9189 need_locks=no
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9198 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9200 runpath_var=
9201 allow_undefined_flag=
9202 always_export_symbols=no
9203 archive_cmds=
9204 archive_expsym_cmds=
9205 compiler_needs_object=no
9206 enable_shared_with_static_runtimes=no
9207 export_dynamic_flag_spec=
9208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9209 hardcode_automatic=no
9210 hardcode_direct=no
9211 hardcode_direct_absolute=no
9212 hardcode_libdir_flag_spec=
9213 hardcode_libdir_flag_spec_ld=
9214 hardcode_libdir_separator=
9215 hardcode_minus_L=no
9216 hardcode_shlibpath_var=unsupported
9217 inherit_rpath=no
9218 link_all_deplibs=unknown
9219 module_cmds=
9220 module_expsym_cmds=
9221 old_archive_from_new_cmds=
9222 old_archive_from_expsyms_cmds=
9223 thread_safe_flag_spec=
9224 whole_archive_flag_spec=
9225 # include_expsyms should be a list of space-separated symbols to be *always*
9226 # included in the symbol list
9227 include_expsyms=
9228 # exclude_expsyms can be an extended regexp of symbols to exclude
9229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9231 # as well as any symbol that contains `d'.
9232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9234 # platforms (ab)use it in PIC code, but their linkers get confused if
9235 # the symbol is explicitly referenced. Since portable code cannot
9236 # rely on this symbol name, it's probably fine to never include it in
9237 # preloaded symbol tables.
9238 # Exclude shared library initialization/finalization symbols.
9239 extract_expsyms_cmds=
9241 case $host_os in
9242 cygwin* | mingw* | pw32* | cegcc*)
9243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9244 # When not using gcc, we currently assume that we are using
9245 # Microsoft Visual C++.
9246 if test "$GCC" != yes; then
9247 with_gnu_ld=no
9250 interix*)
9251 # we just hope/assume this is gcc and not c89 (= MSVC++)
9252 with_gnu_ld=yes
9254 openbsd*)
9255 with_gnu_ld=no
9257 esac
9259 ld_shlibs=yes
9261 # On some targets, GNU ld is compatible enough with the native linker
9262 # that we're better off using the native interface for both.
9263 lt_use_gnu_ld_interface=no
9264 if test "$with_gnu_ld" = yes; then
9265 case $host_os in
9266 aix*)
9267 # The AIX port of GNU ld has always aspired to compatibility
9268 # with the native linker. However, as the warning in the GNU ld
9269 # block says, versions before 2.19.5* couldn't really create working
9270 # shared libraries, regardless of the interface used.
9271 case `$LD -v 2>&1` in
9272 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9273 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9274 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9276 lt_use_gnu_ld_interface=yes
9278 esac
9281 lt_use_gnu_ld_interface=yes
9283 esac
9286 if test "$lt_use_gnu_ld_interface" = yes; then
9287 # If archive_cmds runs LD, not CC, wlarc should be empty
9288 wlarc='${wl}'
9290 # Set some defaults for GNU ld with shared library support. These
9291 # are reset later if shared libraries are not supported. Putting them
9292 # here allows them to be overridden if necessary.
9293 runpath_var=LD_RUN_PATH
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 export_dynamic_flag_spec='${wl}--export-dynamic'
9296 # ancient GNU ld didn't support --whole-archive et. al.
9297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9299 else
9300 whole_archive_flag_spec=
9302 supports_anon_versioning=no
9303 case `$LD -v 2>&1` in
9304 *GNU\ gold*) supports_anon_versioning=yes ;;
9305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9308 *\ 2.11.*) ;; # other 2.11 versions
9309 *) supports_anon_versioning=yes ;;
9310 esac
9312 # See if GNU ld supports shared libraries.
9313 case $host_os in
9314 aix[3-9]*)
9315 # On AIX/PPC, the GNU linker is very broken
9316 if test "$host_cpu" != ia64; then
9317 ld_shlibs=no
9318 cat <<_LT_EOF 1>&2
9320 *** Warning: the GNU linker, at least up to release 2.19, is reported
9321 *** to be unable to reliably create shared libraries on AIX.
9322 *** Therefore, libtool is disabling shared libraries support. If you
9323 *** really care for shared libraries, you may want to install binutils
9324 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9325 *** You will then need to restart the configuration process.
9327 _LT_EOF
9331 amigaos*)
9332 case $host_cpu in
9333 powerpc)
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds=''
9338 m68k)
9339 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)'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9343 esac
9346 beos*)
9347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9348 allow_undefined_flag=unsupported
9349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9350 # support --undefined. This deserves some investigation. FIXME
9351 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 else
9353 ld_shlibs=no
9357 cygwin* | mingw* | pw32* | cegcc*)
9358 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9359 # as there is no search path for DLLs.
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 export_dynamic_flag_spec='${wl}--export-all-symbols'
9362 allow_undefined_flag=unsupported
9363 always_export_symbols=no
9364 enable_shared_with_static_runtimes=yes
9365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9369 # If the export-symbols file already is a .def file (1st line
9370 # is EXPORTS), use it as is; otherwise, prepend...
9371 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9372 cp $export_symbols $output_objdir/$soname.def;
9373 else
9374 echo EXPORTS > $output_objdir/$soname.def;
9375 cat $export_symbols >> $output_objdir/$soname.def;
9377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9378 else
9379 ld_shlibs=no
9383 haiku*)
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385 link_all_deplibs=yes
9388 interix[3-9]*)
9389 hardcode_direct=no
9390 hardcode_shlibpath_var=no
9391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9392 export_dynamic_flag_spec='${wl}-E'
9393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9394 # Instead, shared libraries are loaded at an image base (0x10000000 by
9395 # default) and relocated if they conflict, which is a slow very memory
9396 # consuming and fragmenting process. To avoid this, we pick a random,
9397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9400 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'
9403 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9404 tmp_diet=no
9405 if test "$host_os" = linux-dietlibc; then
9406 case $cc_basename in
9407 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9408 esac
9410 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9411 && test "$tmp_diet" = no
9412 then
9413 tmp_addflag=' $pic_flag'
9414 tmp_sharedflag='-shared'
9415 case $cc_basename,$host_cpu in
9416 pgcc*) # Portland Group C compiler
9417 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'
9418 tmp_addflag=' $pic_flag'
9420 pgf77* | pgf90* | pgf95* | pgfortran*)
9421 # Portland Group f77 and f90 compilers
9422 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'
9423 tmp_addflag=' $pic_flag -Mnomain' ;;
9424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9425 tmp_addflag=' -i_dynamic' ;;
9426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9427 tmp_addflag=' -i_dynamic -nofor_main' ;;
9428 ifc* | ifort*) # Intel Fortran compiler
9429 tmp_addflag=' -nofor_main' ;;
9430 lf95*) # Lahey Fortran 8.1
9431 whole_archive_flag_spec=
9432 tmp_sharedflag='--shared' ;;
9433 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9434 tmp_sharedflag='-qmkshrobj'
9435 tmp_addflag= ;;
9436 nvcc*) # Cuda Compiler Driver 2.2
9437 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'
9438 compiler_needs_object=yes
9440 esac
9441 case `$CC -V 2>&1 | sed 5q` in
9442 *Sun\ C*) # Sun C 5.9
9443 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'
9444 compiler_needs_object=yes
9445 tmp_sharedflag='-G' ;;
9446 *Sun\ F*) # Sun Fortran 8.3
9447 tmp_sharedflag='-G' ;;
9448 esac
9449 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 if test "x$supports_anon_versioning" = xyes; then
9452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9454 echo "local: *; };" >> $output_objdir/$libname.ver~
9455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9458 case $cc_basename in
9459 xlf* | bgf* | bgxlf* | mpixlf*)
9460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9462 hardcode_libdir_flag_spec=
9463 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9464 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9465 if test "x$supports_anon_versioning" = xyes; then
9466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9468 echo "local: *; };" >> $output_objdir/$libname.ver~
9469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9472 esac
9473 else
9474 ld_shlibs=no
9478 netbsd*)
9479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9481 wlarc=
9482 else
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 solaris*)
9489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9490 ld_shlibs=no
9491 cat <<_LT_EOF 1>&2
9493 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9494 *** create shared libraries on Solaris systems. Therefore, libtool
9495 *** is disabling shared libraries support. We urge you to upgrade GNU
9496 *** binutils to release 2.9.1 or newer. Another option is to modify
9497 *** your PATH or compiler configuration so that the native linker is
9498 *** used, and then restart.
9500 _LT_EOF
9501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 else
9505 ld_shlibs=no
9509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9510 case `$LD -v 2>&1` in
9511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9512 ld_shlibs=no
9513 cat <<_LT_EOF 1>&2
9515 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9516 *** reliably create shared libraries on SCO systems. Therefore, libtool
9517 *** is disabling shared libraries support. We urge you to upgrade GNU
9518 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9519 *** your PATH or compiler configuration so that the native linker is
9520 *** used, and then restart.
9522 _LT_EOF
9525 # For security reasons, it is highly recommended that you always
9526 # use absolute paths for naming shared libraries, and exclude the
9527 # DT_RUNPATH tag from executables and libraries. But doing so
9528 # requires that you compile everything twice, which is a pain.
9529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9533 else
9534 ld_shlibs=no
9537 esac
9540 sunos4*)
9541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 wlarc=
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 else
9552 ld_shlibs=no
9555 esac
9557 if test "$ld_shlibs" = no; then
9558 runpath_var=
9559 hardcode_libdir_flag_spec=
9560 export_dynamic_flag_spec=
9561 whole_archive_flag_spec=
9563 else
9564 # PORTME fill in a description of your system's linker (not GNU ld)
9565 case $host_os in
9566 aix3*)
9567 allow_undefined_flag=unsupported
9568 always_export_symbols=yes
9569 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'
9570 # Note: this linker hardcodes the directories in LIBPATH if there
9571 # are no directories specified by -L.
9572 hardcode_minus_L=yes
9573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9574 # Neither direct hardcoding nor static linking is supported with a
9575 # broken collect2.
9576 hardcode_direct=unsupported
9580 aix[4-9]*)
9581 if test "$host_cpu" = ia64; then
9582 # On IA64, the linker does run time linking by default, so we don't
9583 # have to do anything special.
9584 aix_use_runtimelinking=no
9585 exp_sym_flag='-Bexport'
9586 no_entry_flag=""
9587 else
9588 # If we're using GNU nm, then we don't want the "-C" option.
9589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9590 # Also, AIX nm treats weak defined symbols like other global
9591 # defined symbols, whereas GNU nm marks them as "W".
9592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9593 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'
9594 else
9595 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'
9597 aix_use_runtimelinking=no
9599 # Test if we are trying to use run time linking or normal
9600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9601 # need to do runtime linking.
9602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9603 for ld_flag in $LDFLAGS; do
9604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9605 aix_use_runtimelinking=yes
9606 break
9608 done
9610 esac
9612 exp_sym_flag='-bexport'
9613 no_entry_flag='-bnoentry'
9616 # When large executables or shared objects are built, AIX ld can
9617 # have problems creating the table of contents. If linking a library
9618 # or program results in "error TOC overflow" add -mminimal-toc to
9619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9622 archive_cmds=''
9623 hardcode_direct=yes
9624 hardcode_direct_absolute=yes
9625 hardcode_libdir_separator=':'
9626 link_all_deplibs=yes
9627 file_list_spec='${wl}-f,'
9629 if test "$GCC" = yes; then
9630 case $host_os in aix4.[012]|aix4.[012].*)
9631 # We only want to do this on AIX 4.2 and lower, the check
9632 # below for broken collect2 doesn't work under 4.3+
9633 collect2name=`${CC} -print-prog-name=collect2`
9634 if test -f "$collect2name" &&
9635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9636 then
9637 # We have reworked collect2
9639 else
9640 # We have old collect2
9641 hardcode_direct=unsupported
9642 # It fails to find uninstalled libraries when the uninstalled
9643 # path is not listed in the libpath. Setting hardcode_minus_L
9644 # to unsupported forces relinking
9645 hardcode_minus_L=yes
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_libdir_separator=
9650 esac
9651 shared_flag='-shared'
9652 if test "$aix_use_runtimelinking" = yes; then
9653 shared_flag="$shared_flag "'${wl}-G'
9655 else
9656 # not using gcc
9657 if test "$host_cpu" = ia64; then
9658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9659 # chokes on -Wl,-G. The following line is correct:
9660 shared_flag='-G'
9661 else
9662 if test "$aix_use_runtimelinking" = yes; then
9663 shared_flag='${wl}-G'
9664 else
9665 shared_flag='${wl}-bM:SRE'
9670 export_dynamic_flag_spec='${wl}-bexpall'
9671 # It seems that -bexpall does not export symbols beginning with
9672 # underscore (_), so it is better to generate a list of symbols to export.
9673 always_export_symbols=yes
9674 if test "$aix_use_runtimelinking" = yes; then
9675 # Warning - without using the other runtime loading flags (-brtl),
9676 # -berok will link without error, but may produce a broken library.
9677 allow_undefined_flag='-berok'
9678 # Determine the default libpath from the value encoded in an
9679 # empty executable.
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9684 main ()
9688 return 0;
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"; then :
9693 lt_aix_libpath_sed='
9694 /Import File Strings/,/^$/ {
9695 /^0/ {
9696 s/^0 *\(.*\)$/\1/
9700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701 # Check for a 64-bit object if we didn't find anything.
9702 if test -z "$aix_libpath"; then
9703 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9710 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9711 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"
9712 else
9713 if test "$host_cpu" = ia64; then
9714 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9715 allow_undefined_flag="-z nodefs"
9716 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"
9717 else
9718 # Determine the default libpath from the value encoded in an
9719 # empty executable.
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9724 main ()
9728 return 0;
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9733 lt_aix_libpath_sed='
9734 /Import File Strings/,/^$/ {
9735 /^0/ {
9736 s/^0 *\(.*\)$/\1/
9740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741 # Check for a 64-bit object if we didn't find anything.
9742 if test -z "$aix_libpath"; then
9743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9750 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9751 # Warning - without using the other run time loading flags,
9752 # -berok will link without error, but may produce a broken library.
9753 no_undefined_flag=' ${wl}-bernotok'
9754 allow_undefined_flag=' ${wl}-berok'
9755 if test "$with_gnu_ld" = yes; then
9756 # We only use this code for GNU lds that support --whole-archive.
9757 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9758 else
9759 # Exported symbols can be pulled into shared objects from archives
9760 whole_archive_flag_spec='$convenience'
9762 archive_cmds_need_lc=yes
9763 # This is similar to how AIX traditionally builds its shared libraries.
9764 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'
9769 amigaos*)
9770 case $host_cpu in
9771 powerpc)
9772 # see comment about AmigaOS4 .so support
9773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774 archive_expsym_cmds=''
9776 m68k)
9777 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)'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9781 esac
9784 bsdi[45]*)
9785 export_dynamic_flag_spec=-rdynamic
9788 cygwin* | mingw* | pw32* | cegcc*)
9789 # When not using gcc, we currently assume that we are using
9790 # Microsoft Visual C++.
9791 # hardcode_libdir_flag_spec is actually meaningless, as there is
9792 # no search path for DLLs.
9793 hardcode_libdir_flag_spec=' '
9794 allow_undefined_flag=unsupported
9795 # Tell ltmain to make .lib files, not .a files.
9796 libext=lib
9797 # Tell ltmain to make .dll files, not .so files.
9798 shrext_cmds=".dll"
9799 # FIXME: Setting linknames here is a bad hack.
9800 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9801 # The linker will automatically build a .lib file if we build a DLL.
9802 old_archive_from_new_cmds='true'
9803 # FIXME: Should let the user specify the lib program.
9804 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9805 fix_srcfile_path='`cygpath -w "$srcfile"`'
9806 enable_shared_with_static_runtimes=yes
9809 darwin* | rhapsody*)
9812 archive_cmds_need_lc=no
9813 hardcode_direct=no
9814 hardcode_automatic=yes
9815 hardcode_shlibpath_var=unsupported
9816 if test "$lt_cv_ld_force_load" = "yes"; then
9817 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\"`'
9818 else
9819 whole_archive_flag_spec=''
9821 link_all_deplibs=yes
9822 allow_undefined_flag="$_lt_dar_allow_undefined"
9823 case $cc_basename in
9824 ifort*) _lt_dar_can_shared=yes ;;
9825 *) _lt_dar_can_shared=$GCC ;;
9826 esac
9827 if test "$_lt_dar_can_shared" = "yes"; then
9828 output_verbose_link_cmd=func_echo_all
9829 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9830 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9831 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9832 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}"
9834 else
9835 ld_shlibs=no
9840 dgux*)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_shlibpath_var=no
9846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9847 # support. Future versions do this automatically, but an explicit c++rt0.o
9848 # does not break anything, and helps significantly (at the cost of a little
9849 # extra space).
9850 freebsd2.2*)
9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9852 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9858 freebsd2.*)
9859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_direct=yes
9861 hardcode_minus_L=yes
9862 hardcode_shlibpath_var=no
9865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9866 freebsd* | dragonfly*)
9867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9868 hardcode_libdir_flag_spec='-R$libdir'
9869 hardcode_direct=yes
9870 hardcode_shlibpath_var=no
9873 hpux9*)
9874 if test "$GCC" = yes; then
9875 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'
9876 else
9877 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'
9879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880 hardcode_libdir_separator=:
9881 hardcode_direct=yes
9883 # hardcode_minus_L: Not really in the search PATH,
9884 # but as the default location of the library.
9885 hardcode_minus_L=yes
9886 export_dynamic_flag_spec='${wl}-E'
9889 hpux10*)
9890 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892 else
9893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 if test "$with_gnu_ld" = no; then
9896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897 hardcode_libdir_flag_spec_ld='+b $libdir'
9898 hardcode_libdir_separator=:
9899 hardcode_direct=yes
9900 hardcode_direct_absolute=yes
9901 export_dynamic_flag_spec='${wl}-E'
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9908 hpux11*)
9909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9910 case $host_cpu in
9911 hppa*64*)
9912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9914 ia64*)
9915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 esac
9921 else
9922 case $host_cpu in
9923 hppa*64*)
9924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9926 ia64*)
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 # Older versions of the 11.00 compiler do not understand -b yet
9932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9934 $as_echo_n "checking if $CC understands -b... " >&6; }
9935 if ${lt_cv_prog_compiler__b+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 lt_cv_prog_compiler__b=no
9939 save_LDFLAGS="$LDFLAGS"
9940 LDFLAGS="$LDFLAGS -b"
9941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9943 # The linker can only warn and ignore the option if not recognized
9944 # So say no if there are warnings
9945 if test -s conftest.err; then
9946 # Append any errors to the config.log.
9947 cat conftest.err 1>&5
9948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9950 if diff conftest.exp conftest.er2 >/dev/null; then
9951 lt_cv_prog_compiler__b=yes
9953 else
9954 lt_cv_prog_compiler__b=yes
9957 $RM -r conftest*
9958 LDFLAGS="$save_LDFLAGS"
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9962 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9964 if test x"$lt_cv_prog_compiler__b" = xyes; then
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 else
9967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971 esac
9973 if test "$with_gnu_ld" = no; then
9974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_separator=:
9977 case $host_cpu in
9978 hppa*64*|ia64*)
9979 hardcode_direct=no
9980 hardcode_shlibpath_var=no
9983 hardcode_direct=yes
9984 hardcode_direct_absolute=yes
9985 export_dynamic_flag_spec='${wl}-E'
9987 # hardcode_minus_L: Not really in the search PATH,
9988 # but as the default location of the library.
9989 hardcode_minus_L=yes
9991 esac
9995 irix5* | irix6* | nonstopux*)
9996 if test "$GCC" = yes; then
9997 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'
9998 # Try to use the -exported_symbol ld option, if it does not
9999 # work, assume that -exports_file does not work either and
10000 # implicitly export all symbols.
10001 save_LDFLAGS="$LDFLAGS"
10002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int foo(void) {}
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 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'
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LDFLAGS="$save_LDFLAGS"
10014 else
10015 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'
10016 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'
10018 archive_cmds_need_lc='no'
10019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10020 hardcode_libdir_separator=:
10021 inherit_rpath=yes
10022 link_all_deplibs=yes
10025 netbsd*)
10026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10028 else
10029 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10036 newsos6)
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator=:
10041 hardcode_shlibpath_var=no
10044 *nto* | *qnx*)
10047 openbsd*)
10048 if test -f /usr/libexec/ld.so; then
10049 hardcode_direct=yes
10050 hardcode_shlibpath_var=no
10051 hardcode_direct_absolute=yes
10052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10056 export_dynamic_flag_spec='${wl}-E'
10057 else
10058 case $host_os in
10059 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_libdir_flag_spec='-R$libdir'
10064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067 esac
10069 else
10070 ld_shlibs=no
10074 os2*)
10075 hardcode_libdir_flag_spec='-L$libdir'
10076 hardcode_minus_L=yes
10077 allow_undefined_flag=unsupported
10078 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'
10079 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10082 osf3*)
10083 if test "$GCC" = yes; then
10084 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10085 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'
10086 else
10087 allow_undefined_flag=' -expect_unresolved \*'
10088 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'
10090 archive_cmds_need_lc='no'
10091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10092 hardcode_libdir_separator=:
10095 osf4* | osf5*) # as osf3* with the addition of -msym flag
10096 if test "$GCC" = yes; then
10097 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10098 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'
10099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10100 else
10101 allow_undefined_flag=' -expect_unresolved \*'
10102 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'
10103 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~
10104 $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'
10106 # Both c and cxx compiler support -rpath directly
10107 hardcode_libdir_flag_spec='-rpath $libdir'
10109 archive_cmds_need_lc='no'
10110 hardcode_libdir_separator=:
10113 solaris*)
10114 no_undefined_flag=' -z defs'
10115 if test "$GCC" = yes; then
10116 wlarc='${wl}'
10117 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10119 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10120 else
10121 case `$CC -V 2>&1` in
10122 *"Compilers 5.0"*)
10123 wlarc=''
10124 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10129 wlarc='${wl}'
10130 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10132 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10134 esac
10136 hardcode_libdir_flag_spec='-R$libdir'
10137 hardcode_shlibpath_var=no
10138 case $host_os in
10139 solaris2.[0-5] | solaris2.[0-5].*) ;;
10141 # The compiler driver will combine and reorder linker options,
10142 # but understands `-z linker_flag'. GCC discards it without `$wl',
10143 # but is careful enough not to reorder.
10144 # Supported since Solaris 2.6 (maybe 2.5.1?)
10145 if test "$GCC" = yes; then
10146 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10147 else
10148 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10151 esac
10152 link_all_deplibs=yes
10155 sunos4*)
10156 if test "x$host_vendor" = xsequent; then
10157 # Use $CC to link under sequent, because it throws in some extra .o
10158 # files that make .init and .fini sections work.
10159 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_libdir_flag_spec='-L$libdir'
10164 hardcode_direct=yes
10165 hardcode_minus_L=yes
10166 hardcode_shlibpath_var=no
10169 sysv4)
10170 case $host_vendor in
10171 sni)
10172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_direct=yes # is this really true???
10175 siemens)
10176 ## LD is ld it makes a PLAMLIB
10177 ## CC just makes a GrossModule.
10178 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10179 reload_cmds='$CC -r -o $output$reload_objs'
10180 hardcode_direct=no
10182 motorola)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10186 esac
10187 runpath_var='LD_RUN_PATH'
10188 hardcode_shlibpath_var=no
10191 sysv4.3*)
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_shlibpath_var=no
10194 export_dynamic_flag_spec='-Bexport'
10197 sysv4*MP*)
10198 if test -d /usr/nec; then
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_shlibpath_var=no
10201 runpath_var=LD_RUN_PATH
10202 hardcode_runpath_var=yes
10203 ld_shlibs=yes
10207 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10208 no_undefined_flag='${wl}-z,text'
10209 archive_cmds_need_lc=no
10210 hardcode_shlibpath_var=no
10211 runpath_var='LD_RUN_PATH'
10213 if test "$GCC" = yes; then
10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 sysv5* | sco3.2v5* | sco5v6*)
10223 # Note: We can NOT use -z defs as we might desire, because we do not
10224 # link with -lc, and that would cause any symbols used from libc to
10225 # always be unresolved, which means just about no library would
10226 # ever link correctly. If we're not using GNU ld we use -z text
10227 # though, which does catch some bad symbols but isn't as heavy-handed
10228 # as -z defs.
10229 no_undefined_flag='${wl}-z,text'
10230 allow_undefined_flag='${wl}-z,nodefs'
10231 archive_cmds_need_lc=no
10232 hardcode_shlibpath_var=no
10233 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10234 hardcode_libdir_separator=':'
10235 link_all_deplibs=yes
10236 export_dynamic_flag_spec='${wl}-Bexport'
10237 runpath_var='LD_RUN_PATH'
10239 if test "$GCC" = yes; then
10240 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 else
10243 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 uts4*)
10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 hardcode_libdir_flag_spec='-L$libdir'
10251 hardcode_shlibpath_var=no
10255 ld_shlibs=no
10257 esac
10259 if test x$host_vendor = xsni; then
10260 case $host in
10261 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10262 export_dynamic_flag_spec='${wl}-Blargedynsym'
10264 esac
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10269 $as_echo "$ld_shlibs" >&6; }
10270 test "$ld_shlibs" = no && can_build_shared=no
10272 with_gnu_ld=$with_gnu_ld
10289 # Do we need to explicitly link libc?
10291 case "x$archive_cmds_need_lc" in
10292 x|xyes)
10293 # Assume -lc should be added
10294 archive_cmds_need_lc=yes
10296 if test "$enable_shared" = yes && test "$GCC" = yes; then
10297 case $archive_cmds in
10298 *'~'*)
10299 # FIXME: we may have to deal with multi-command sequences.
10301 '$CC '*)
10302 # Test whether the compiler implicitly links with -lc since on some
10303 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10304 # to ld, don't add -lc before -lgcc.
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10306 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10307 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 $RM conftest*
10311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10314 (eval $ac_compile) 2>&5
10315 ac_status=$?
10316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10317 test $ac_status = 0; } 2>conftest.err; then
10318 soname=conftest
10319 lib=conftest
10320 libobjs=conftest.$ac_objext
10321 deplibs=
10322 wl=$lt_prog_compiler_wl
10323 pic_flag=$lt_prog_compiler_pic
10324 compiler_flags=-v
10325 linker_flags=-v
10326 verstring=
10327 output_objdir=.
10328 libname=conftest
10329 lt_save_allow_undefined_flag=$allow_undefined_flag
10330 allow_undefined_flag=
10331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10332 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10333 ac_status=$?
10334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10335 test $ac_status = 0; }
10336 then
10337 lt_cv_archive_cmds_need_lc=no
10338 else
10339 lt_cv_archive_cmds_need_lc=yes
10341 allow_undefined_flag=$lt_save_allow_undefined_flag
10342 else
10343 cat conftest.err 1>&5
10345 $RM conftest*
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10349 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10350 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10352 esac
10355 esac
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10514 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10516 if test "$GCC" = yes; then
10517 case $host_os in
10518 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10519 *) lt_awk_arg="/^libraries:/" ;;
10520 esac
10521 case $host_os in
10522 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10523 *) lt_sed_strip_eq="s,=/,/,g" ;;
10524 esac
10525 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10526 case $lt_search_path_spec in
10527 *\;*)
10528 # if the path contains ";" then we assume it to be the separator
10529 # otherwise default to the standard path separator (i.e. ":") - it is
10530 # assumed that no part of a normal pathname contains ";" but that should
10531 # okay in the real world where ";" in dirpaths is itself problematic.
10532 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10537 esac
10538 # Ok, now we have the path, separated by spaces, we can step through it
10539 # and add multilib dir if necessary.
10540 lt_tmp_lt_search_path_spec=
10541 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10542 for lt_sys_path in $lt_search_path_spec; do
10543 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10544 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10545 else
10546 test -d "$lt_sys_path" && \
10547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10549 done
10550 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10551 BEGIN {RS=" "; FS="/|\n";} {
10552 lt_foo="";
10553 lt_count=0;
10554 for (lt_i = NF; lt_i > 0; lt_i--) {
10555 if ($lt_i != "" && $lt_i != ".") {
10556 if ($lt_i == "..") {
10557 lt_count++;
10558 } else {
10559 if (lt_count == 0) {
10560 lt_foo="/" $lt_i lt_foo;
10561 } else {
10562 lt_count--;
10567 if (lt_foo != "") { lt_freq[lt_foo]++; }
10568 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10570 # AWK program above erroneously prepends '/' to C:/dos/paths
10571 # for these hosts.
10572 case $host_os in
10573 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10574 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10575 esac
10576 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10577 else
10578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10580 library_names_spec=
10581 libname_spec='lib$name'
10582 soname_spec=
10583 shrext_cmds=".so"
10584 postinstall_cmds=
10585 postuninstall_cmds=
10586 finish_cmds=
10587 finish_eval=
10588 shlibpath_var=
10589 shlibpath_overrides_runpath=unknown
10590 version_type=none
10591 dynamic_linker="$host_os ld.so"
10592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10593 need_lib_prefix=unknown
10594 hardcode_into_libs=no
10596 # when you set need_version to no, make sure it does not cause -set_version
10597 # flags to be left without arguments
10598 need_version=unknown
10600 case $host_os in
10601 aix3*)
10602 version_type=linux
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10604 shlibpath_var=LIBPATH
10606 # AIX 3 has no versioning support, so we append a major version to the name.
10607 soname_spec='${libname}${release}${shared_ext}$major'
10610 aix[4-9]*)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 hardcode_into_libs=yes
10615 if test "$host_cpu" = ia64; then
10616 # AIX 5 supports IA64
10617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 else
10620 # With GCC up to 2.95.x, collect2 would create an import file
10621 # for dependence libraries. The import file would start with
10622 # the line `#! .'. This would cause the generated library to
10623 # depend on `.', always an invalid library. This was fixed in
10624 # development snapshots of GCC prior to 3.0.
10625 case $host_os in
10626 aix4 | aix4.[01] | aix4.[01].*)
10627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10628 echo ' yes '
10629 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10631 else
10632 can_build_shared=no
10635 esac
10636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10637 # soname into executable. Probably we can add versioning support to
10638 # collect2, so additional links can be useful in future.
10639 if test "$aix_use_runtimelinking" = yes; then
10640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10641 # instead of lib<name>.a to let people know that these are not
10642 # typical AIX shared libraries.
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 else
10645 # We preserve .a as extension for shared libraries through AIX4.2
10646 # and later when we are not doing run time linking.
10647 library_names_spec='${libname}${release}.a $libname.a'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LIBPATH
10654 amigaos*)
10655 case $host_cpu in
10656 powerpc)
10657 # Since July 2007 AmigaOS4 officially supports .so libraries.
10658 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 m68k)
10662 library_names_spec='$libname.ixlibrary $libname.a'
10663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10664 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'
10666 esac
10669 beos*)
10670 library_names_spec='${libname}${shared_ext}'
10671 dynamic_linker="$host_os ld.so"
10672 shlibpath_var=LIBRARY_PATH
10675 bsdi[45]*)
10676 version_type=linux
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10683 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10684 # the default ld.so.conf also contains /usr/contrib/lib and
10685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10686 # libtool to hard-code these into programs
10689 cygwin* | mingw* | pw32* | cegcc*)
10690 version_type=windows
10691 shrext_cmds=".dll"
10692 need_version=no
10693 need_lib_prefix=no
10695 case $GCC,$host_os in
10696 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10697 library_names_spec='$libname.dll.a'
10698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10699 postinstall_cmds='base_file=`basename \${file}`~
10700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10701 dldir=$destdir/`dirname \$dlpath`~
10702 test -d \$dldir || mkdir -p \$dldir~
10703 $install_prog $dir/$dlname \$dldir/$dlname~
10704 chmod a+x \$dldir/$dlname~
10705 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10706 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709 dlpath=$dir/\$dldll~
10710 $RM \$dlpath'
10711 shlibpath_overrides_runpath=yes
10713 case $host_os in
10714 cygwin*)
10715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10720 mingw* | cegcc*)
10721 # MinGW DLLs use traditional 'lib' prefix
10722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724 pw32*)
10725 # pw32 DLLs use 'pw' prefix rather than 'lib'
10726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 esac
10732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10734 esac
10735 dynamic_linker='Win32 ld.exe'
10736 # FIXME: first we should search . and the directory the executable is in
10737 shlibpath_var=PATH
10740 darwin* | rhapsody*)
10741 dynamic_linker="$host_os dyld"
10742 version_type=darwin
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746 soname_spec='${libname}${release}${major}$shared_ext'
10747 shlibpath_overrides_runpath=yes
10748 shlibpath_var=DYLD_LIBRARY_PATH
10749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10751 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 dgux*)
10756 version_type=linux
10757 need_lib_prefix=no
10758 need_version=no
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10764 freebsd* | dragonfly*)
10765 # DragonFly does not have aout. When/if they implement a new
10766 # versioning mechanism, adjust this.
10767 if test -x /usr/bin/objformat; then
10768 objformat=`/usr/bin/objformat`
10769 else
10770 case $host_os in
10771 freebsd[23].*) objformat=aout ;;
10772 *) objformat=elf ;;
10773 esac
10775 version_type=freebsd-$objformat
10776 case $version_type in
10777 freebsd-elf*)
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 need_version=no
10780 need_lib_prefix=no
10782 freebsd-*)
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10784 need_version=yes
10786 esac
10787 shlibpath_var=LD_LIBRARY_PATH
10788 case $host_os in
10789 freebsd2.*)
10790 shlibpath_overrides_runpath=yes
10792 freebsd3.[01]* | freebsdelf3.[01]*)
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10801 *) # from 4.6 on, and DragonFly
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10805 esac
10808 haiku*)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10816 shlibpath_overrides_runpath=yes
10817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10818 hardcode_into_libs=yes
10821 hpux9* | hpux10* | hpux11*)
10822 # Give a soname corresponding to the major version so that dld.sl refuses to
10823 # link against other versions.
10824 version_type=sunos
10825 need_lib_prefix=no
10826 need_version=no
10827 case $host_cpu in
10828 ia64*)
10829 shrext_cmds='.so'
10830 hardcode_into_libs=yes
10831 dynamic_linker="$host_os dld.so"
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 if test "X$HPUX_IA64_MODE" = X32; then
10837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10838 else
10839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10843 hppa*64*)
10844 shrext_cmds='.sl'
10845 hardcode_into_libs=yes
10846 dynamic_linker="$host_os dld.sl"
10847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850 soname_spec='${libname}${release}${shared_ext}$major'
10851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855 shrext_cmds='.sl'
10856 dynamic_linker="$host_os dld.sl"
10857 shlibpath_var=SHLIB_PATH
10858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10862 esac
10863 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10864 postinstall_cmds='chmod 555 $lib'
10865 # or fails outright, so override atomically:
10866 install_override_mode=555
10869 interix[3-9]*)
10870 version_type=linux
10871 need_lib_prefix=no
10872 need_version=no
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10881 irix5* | irix6* | nonstopux*)
10882 case $host_os in
10883 nonstopux*) version_type=nonstopux ;;
10885 if test "$lt_cv_prog_gnu_ld" = yes; then
10886 version_type=linux
10887 else
10888 version_type=irix
10889 fi ;;
10890 esac
10891 need_lib_prefix=no
10892 need_version=no
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 case $host_os in
10896 irix5* | nonstopux*)
10897 libsuff= shlibsuff=
10900 case $LD in # libtool.m4 will add one of these switches to LD
10901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10902 libsuff= shlibsuff= libmagic=32-bit;;
10903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10904 libsuff=32 shlibsuff=N32 libmagic=N32;;
10905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10907 *) libsuff= shlibsuff= libmagic=never-match;;
10908 esac
10910 esac
10911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10912 shlibpath_overrides_runpath=no
10913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10915 hardcode_into_libs=yes
10918 # No shared lib support for Linux oldld, aout, or coff.
10919 linux*oldld* | linux*aout* | linux*coff*)
10920 dynamic_linker=no
10923 # This must be Linux ELF.
10925 # uclinux* changes (here and below) have been submitted to the libtool
10926 # project, but have not yet been accepted: they are GCC-local changes
10927 # for the time being. (See
10928 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10929 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10930 version_type=linux
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10939 # Some binutils ld are patched to set DT_RUNPATH
10940 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 lt_cv_shlibpath_overrides_runpath=no
10944 save_LDFLAGS=$LDFLAGS
10945 save_libdir=$libdir
10946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10952 main ()
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10961 lt_cv_shlibpath_overrides_runpath=yes
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LDFLAGS=$save_LDFLAGS
10967 libdir=$save_libdir
10971 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10973 # This implies no fast_install, which is unacceptable.
10974 # Some rework will be needed to allow for fast_install
10975 # before this can be enabled.
10976 hardcode_into_libs=yes
10978 # Append ld.so.conf contents to the search path
10979 if test -f /etc/ld.so.conf; then
10980 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' ' '`
10981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10984 # We used to test for /lib/ld.so.1 and disable shared libraries on
10985 # powerpc, because MkLinux only supported shared libraries with the
10986 # GNU dynamic linker. Since this was broken with cross compilers,
10987 # most powerpc-linux boxes support dynamic linking these days and
10988 # people can always --disable-shared, the test was removed, and we
10989 # assume the GNU/Linux dynamic linker is in use.
10990 dynamic_linker='GNU/Linux ld.so'
10993 netbsd*)
10994 version_type=sunos
10995 need_lib_prefix=no
10996 need_version=no
10997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11000 dynamic_linker='NetBSD (a.out) ld.so'
11001 else
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 dynamic_linker='NetBSD ld.elf_so'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11011 newsos6)
11012 version_type=linux
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11018 *nto* | *qnx*)
11019 version_type=qnx
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026 hardcode_into_libs=yes
11027 dynamic_linker='ldqnx.so'
11030 openbsd*)
11031 version_type=sunos
11032 sys_lib_dlsearch_path_spec="/usr/lib"
11033 need_lib_prefix=no
11034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11035 case $host_os in
11036 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11037 *) need_version=no ;;
11038 esac
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11043 case $host_os in
11044 openbsd2.[89] | openbsd2.[89].*)
11045 shlibpath_overrides_runpath=no
11048 shlibpath_overrides_runpath=yes
11050 esac
11051 else
11052 shlibpath_overrides_runpath=yes
11056 os2*)
11057 libname_spec='$name'
11058 shrext_cmds=".dll"
11059 need_lib_prefix=no
11060 library_names_spec='$libname${shared_ext} $libname.a'
11061 dynamic_linker='OS/2 ld.exe'
11062 shlibpath_var=LIBPATH
11065 osf3* | osf4* | osf5*)
11066 version_type=osf
11067 need_lib_prefix=no
11068 need_version=no
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11076 rdos*)
11077 dynamic_linker=no
11080 solaris*)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 # ldd complains unless libraries are executable
11090 postinstall_cmds='chmod +x $lib'
11093 sunos4*)
11094 version_type=sunos
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 if test "$with_gnu_ld" = yes; then
11100 need_lib_prefix=no
11102 need_version=yes
11105 sysv4 | sysv4.3*)
11106 version_type=linux
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 case $host_vendor in
11111 sni)
11112 shlibpath_overrides_runpath=no
11113 need_lib_prefix=no
11114 runpath_var=LD_RUN_PATH
11116 siemens)
11117 need_lib_prefix=no
11119 motorola)
11120 need_lib_prefix=no
11121 need_version=no
11122 shlibpath_overrides_runpath=no
11123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11125 esac
11128 sysv4*MP*)
11129 if test -d /usr/nec ;then
11130 version_type=linux
11131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11132 soname_spec='$libname${shared_ext}.$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11138 version_type=freebsd-elf
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 if test "$with_gnu_ld" = yes; then
11147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11148 else
11149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11150 case $host_os in
11151 sco3.2v5*)
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11154 esac
11156 sys_lib_dlsearch_path_spec='/usr/lib'
11159 tpf*)
11160 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11161 version_type=linux
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11170 uts4*)
11171 version_type=linux
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11177 # Shared libraries for VwWorks, >= 7 only at this stage
11178 # and (fpic) still incompatible with "large" code models
11179 # in a few configurations. Only for RTP mode in any case,
11180 # and upon explicit request at configure time.
11181 vxworks7*)
11182 dynamic_linker=no
11183 case ${with_multisubdir}-${enable_shared} in
11184 *large*)
11186 *mrtp*-yes)
11187 version_type=linux
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 dynamic_linker="$host_os module_loader"
11194 esac
11197 dynamic_linker=no
11199 esac
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11201 $as_echo "$dynamic_linker" >&6; }
11202 test "$dynamic_linker" = no && can_build_shared=no
11204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11205 if test "$GCC" = yes; then
11206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11209 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11210 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11213 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11309 hardcode_action=
11310 if test -n "$hardcode_libdir_flag_spec" ||
11311 test -n "$runpath_var" ||
11312 test "X$hardcode_automatic" = "Xyes" ; then
11314 # We can hardcode non-existent directories.
11315 if test "$hardcode_direct" != no &&
11316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11317 # have to relink, otherwise we might link with an installed library
11318 # when we should be linking with a yet-to-be-installed one
11319 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11320 test "$hardcode_minus_L" != no; then
11321 # Linking always hardcodes the temporary library directory.
11322 hardcode_action=relink
11323 else
11324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11325 hardcode_action=immediate
11327 else
11328 # We cannot hardcode anything, or else we can only hardcode existing
11329 # directories.
11330 hardcode_action=unsupported
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11333 $as_echo "$hardcode_action" >&6; }
11335 if test "$hardcode_action" = relink ||
11336 test "$inherit_rpath" = yes; then
11337 # Fast installation is not supported
11338 enable_fast_install=no
11339 elif test "$shlibpath_overrides_runpath" = yes ||
11340 test "$enable_shared" = no; then
11341 # Fast installation is not necessary
11342 enable_fast_install=needless
11350 if test "x$enable_dlopen" != xyes; then
11351 enable_dlopen=unknown
11352 enable_dlopen_self=unknown
11353 enable_dlopen_self_static=unknown
11354 else
11355 lt_cv_dlopen=no
11356 lt_cv_dlopen_libs=
11358 case $host_os in
11359 beos*)
11360 lt_cv_dlopen="load_add_on"
11361 lt_cv_dlopen_libs=
11362 lt_cv_dlopen_self=yes
11365 mingw* | pw32* | cegcc*)
11366 lt_cv_dlopen="LoadLibrary"
11367 lt_cv_dlopen_libs=
11370 cygwin*)
11371 lt_cv_dlopen="dlopen"
11372 lt_cv_dlopen_libs=
11375 darwin*)
11376 # if libdl is installed we need to link against it
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11379 if ${ac_cv_lib_dl_dlopen+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-ldl $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char dlopen ();
11395 main ()
11397 return dlopen ();
11399 return 0;
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_dl_dlopen=yes
11404 else
11405 ac_cv_lib_dl_dlopen=no
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11413 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11415 else
11417 lt_cv_dlopen="dyld"
11418 lt_cv_dlopen_libs=
11419 lt_cv_dlopen_self=yes
11426 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11427 if test "x$ac_cv_func_shl_load" = xyes; then :
11428 lt_cv_dlopen="shl_load"
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11431 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11432 if ${ac_cv_lib_dld_shl_load+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-ldld $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char shl_load ();
11448 main ()
11450 return shl_load ();
11452 return 0;
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_dld_shl_load=yes
11457 else
11458 ac_cv_lib_dld_shl_load=no
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11465 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11466 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11468 else
11469 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11470 if test "x$ac_cv_func_dlopen" = xyes; then :
11471 lt_cv_dlopen="dlopen"
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-ldl $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char dlopen ();
11491 main ()
11493 return dlopen ();
11495 return 0;
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11500 else
11501 ac_cv_lib_dl_dlopen=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11513 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11514 if ${ac_cv_lib_svld_dlopen+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-lsvld $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char dlopen ();
11530 main ()
11532 return dlopen ();
11534 return 0;
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_svld_dlopen=yes
11539 else
11540 ac_cv_lib_svld_dlopen=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11547 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11548 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11552 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11553 if ${ac_cv_lib_dld_dld_link+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-ldld $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dld_link ();
11569 main ()
11571 return dld_link ();
11573 return 0;
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dld_dld_link=yes
11578 else
11579 ac_cv_lib_dld_dld_link=no
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11586 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11587 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11588 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11607 esac
11609 if test "x$lt_cv_dlopen" != xno; then
11610 enable_dlopen=yes
11611 else
11612 enable_dlopen=no
11615 case $lt_cv_dlopen in
11616 dlopen)
11617 save_CPPFLAGS="$CPPFLAGS"
11618 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620 save_LDFLAGS="$LDFLAGS"
11621 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623 save_LIBS="$LIBS"
11624 LIBS="$lt_cv_dlopen_libs $LIBS"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11627 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11628 if ${lt_cv_dlopen_self+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test "$cross_compiling" = yes; then :
11632 lt_cv_dlopen_self=cross
11633 else
11634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11635 lt_status=$lt_dlunknown
11636 cat > conftest.$ac_ext <<_LT_EOF
11637 #line 11637 "configure"
11638 #include "confdefs.h"
11640 #if HAVE_DLFCN_H
11641 #include <dlfcn.h>
11642 #endif
11644 #include <stdio.h>
11646 #ifdef RTLD_GLOBAL
11647 # define LT_DLGLOBAL RTLD_GLOBAL
11648 #else
11649 # ifdef DL_GLOBAL
11650 # define LT_DLGLOBAL DL_GLOBAL
11651 # else
11652 # define LT_DLGLOBAL 0
11653 # endif
11654 #endif
11656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11657 find out it does not work in some platform. */
11658 #ifndef LT_DLLAZY_OR_NOW
11659 # ifdef RTLD_LAZY
11660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11661 # else
11662 # ifdef DL_LAZY
11663 # define LT_DLLAZY_OR_NOW DL_LAZY
11664 # else
11665 # ifdef RTLD_NOW
11666 # define LT_DLLAZY_OR_NOW RTLD_NOW
11667 # else
11668 # ifdef DL_NOW
11669 # define LT_DLLAZY_OR_NOW DL_NOW
11670 # else
11671 # define LT_DLLAZY_OR_NOW 0
11672 # endif
11673 # endif
11674 # endif
11675 # endif
11676 #endif
11678 /* When -fvisbility=hidden is used, assume the code has been annotated
11679 correspondingly for the symbols needed. */
11680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11681 void fnord () __attribute__((visibility("default")));
11682 #endif
11684 void fnord () { int i=42; }
11685 int main ()
11687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688 int status = $lt_dlunknown;
11690 if (self)
11692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11693 else
11695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11696 else puts (dlerror ());
11698 /* dlclose (self); */
11700 else
11701 puts (dlerror ());
11703 return status;
11705 _LT_EOF
11706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707 (eval $ac_link) 2>&5
11708 ac_status=$?
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711 (./conftest; exit; ) >&5 2>/dev/null
11712 lt_status=$?
11713 case x$lt_status in
11714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11716 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11717 esac
11718 else :
11719 # compilation failed
11720 lt_cv_dlopen_self=no
11723 rm -fr conftest*
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11728 $as_echo "$lt_cv_dlopen_self" >&6; }
11730 if test "x$lt_cv_dlopen_self" = xyes; then
11731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11733 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11734 if ${lt_cv_dlopen_self_static+:} false; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 if test "$cross_compiling" = yes; then :
11738 lt_cv_dlopen_self_static=cross
11739 else
11740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11741 lt_status=$lt_dlunknown
11742 cat > conftest.$ac_ext <<_LT_EOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11746 #if HAVE_DLFCN_H
11747 #include <dlfcn.h>
11748 #endif
11750 #include <stdio.h>
11752 #ifdef RTLD_GLOBAL
11753 # define LT_DLGLOBAL RTLD_GLOBAL
11754 #else
11755 # ifdef DL_GLOBAL
11756 # define LT_DLGLOBAL DL_GLOBAL
11757 # else
11758 # define LT_DLGLOBAL 0
11759 # endif
11760 #endif
11762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11763 find out it does not work in some platform. */
11764 #ifndef LT_DLLAZY_OR_NOW
11765 # ifdef RTLD_LAZY
11766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11767 # else
11768 # ifdef DL_LAZY
11769 # define LT_DLLAZY_OR_NOW DL_LAZY
11770 # else
11771 # ifdef RTLD_NOW
11772 # define LT_DLLAZY_OR_NOW RTLD_NOW
11773 # else
11774 # ifdef DL_NOW
11775 # define LT_DLLAZY_OR_NOW DL_NOW
11776 # else
11777 # define LT_DLLAZY_OR_NOW 0
11778 # endif
11779 # endif
11780 # endif
11781 # endif
11782 #endif
11784 /* When -fvisbility=hidden is used, assume the code has been annotated
11785 correspondingly for the symbols needed. */
11786 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11787 void fnord () __attribute__((visibility("default")));
11788 #endif
11790 void fnord () { int i=42; }
11791 int main ()
11793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11794 int status = $lt_dlunknown;
11796 if (self)
11798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11799 else
11801 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11802 else puts (dlerror ());
11804 /* dlclose (self); */
11806 else
11807 puts (dlerror ());
11809 return status;
11811 _LT_EOF
11812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11813 (eval $ac_link) 2>&5
11814 ac_status=$?
11815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11816 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11817 (./conftest; exit; ) >&5 2>/dev/null
11818 lt_status=$?
11819 case x$lt_status in
11820 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11821 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11822 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11823 esac
11824 else :
11825 # compilation failed
11826 lt_cv_dlopen_self_static=no
11829 rm -fr conftest*
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11834 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11837 CPPFLAGS="$save_CPPFLAGS"
11838 LDFLAGS="$save_LDFLAGS"
11839 LIBS="$save_LIBS"
11841 esac
11843 case $lt_cv_dlopen_self in
11844 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11845 *) enable_dlopen_self=unknown ;;
11846 esac
11848 case $lt_cv_dlopen_self_static in
11849 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11850 *) enable_dlopen_self_static=unknown ;;
11851 esac
11870 striplib=
11871 old_striplib=
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11873 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11874 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11879 else
11880 # FIXME - insert some real tests, host_os isn't really good enough
11881 case $host_os in
11882 darwin*)
11883 if test -n "$STRIP" ; then
11884 striplib="$STRIP -x"
11885 old_striplib="$STRIP -S"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11887 $as_echo "yes" >&6; }
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11897 esac
11911 # Report which library types will actually be built
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11913 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11915 $as_echo "$can_build_shared" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11918 $as_echo_n "checking whether to build shared libraries... " >&6; }
11919 test "$can_build_shared" = "no" && enable_shared=no
11921 # On AIX, shared libraries and static libraries use the same namespace, and
11922 # are all built from PIC.
11923 case $host_os in
11924 aix3*)
11925 test "$enable_shared" = yes && enable_static=no
11926 if test -n "$RANLIB"; then
11927 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11928 postinstall_cmds='$RANLIB $lib'
11932 aix[4-9]*)
11933 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11934 test "$enable_shared" = yes && enable_static=no
11937 esac
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11939 $as_echo "$enable_shared" >&6; }
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11942 $as_echo_n "checking whether to build static libraries... " >&6; }
11943 # Make sure either enable_shared or enable_static is yes.
11944 test "$enable_shared" = yes || enable_static=yes
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11946 $as_echo "$enable_static" >&6; }
11952 ac_ext=c
11953 ac_cpp='$CPP $CPPFLAGS'
11954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958 CC="$lt_save_CC"
11960 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11961 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11962 (test "X$CXX" != "Xg++"))) ; then
11963 ac_ext=cpp
11964 ac_cpp='$CXXCPP $CPPFLAGS'
11965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11969 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11970 if test -z "$CXXCPP"; then
11971 if ${ac_cv_prog_CXXCPP+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 # Double quotes because CXXCPP needs to be expanded
11975 for CXXCPP in "$CXX -E" "/lib/cpp"
11977 ac_preproc_ok=false
11978 for ac_cxx_preproc_warn_flag in '' yes
11980 # Use a header file that comes with gcc, so configuring glibc
11981 # with a fresh cross-compiler works.
11982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 # <limits.h> exists even on freestanding compilers.
11984 # On the NeXT, cc -E runs the code through the compiler's parser,
11985 # not just through cpp. "Syntax error" is here to catch this case.
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 #ifdef __STDC__
11989 # include <limits.h>
11990 #else
11991 # include <assert.h>
11992 #endif
11993 Syntax error
11994 _ACEOF
11995 if ac_fn_cxx_try_cpp "$LINENO"; then :
11997 else
11998 # Broken: fails on valid input.
11999 continue
12001 rm -f conftest.err conftest.i conftest.$ac_ext
12003 # OK, works on sane cases. Now check whether nonexistent headers
12004 # can be detected and how.
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 #include <ac_nonexistent.h>
12008 _ACEOF
12009 if ac_fn_cxx_try_cpp "$LINENO"; then :
12010 # Broken: success on invalid input.
12011 continue
12012 else
12013 # Passes both tests.
12014 ac_preproc_ok=:
12015 break
12017 rm -f conftest.err conftest.i conftest.$ac_ext
12019 done
12020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12021 rm -f conftest.i conftest.err conftest.$ac_ext
12022 if $ac_preproc_ok; then :
12023 break
12026 done
12027 ac_cv_prog_CXXCPP=$CXXCPP
12030 CXXCPP=$ac_cv_prog_CXXCPP
12031 else
12032 ac_cv_prog_CXXCPP=$CXXCPP
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12035 $as_echo "$CXXCPP" >&6; }
12036 ac_preproc_ok=false
12037 for ac_cxx_preproc_warn_flag in '' yes
12039 # Use a header file that comes with gcc, so configuring glibc
12040 # with a fresh cross-compiler works.
12041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 # <limits.h> exists even on freestanding compilers.
12043 # On the NeXT, cc -E runs the code through the compiler's parser,
12044 # not just through cpp. "Syntax error" is here to catch this case.
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12052 Syntax error
12053 _ACEOF
12054 if ac_fn_cxx_try_cpp "$LINENO"; then :
12056 else
12057 # Broken: fails on valid input.
12058 continue
12060 rm -f conftest.err conftest.i conftest.$ac_ext
12062 # OK, works on sane cases. Now check whether nonexistent headers
12063 # can be detected and how.
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 #include <ac_nonexistent.h>
12067 _ACEOF
12068 if ac_fn_cxx_try_cpp "$LINENO"; then :
12069 # Broken: success on invalid input.
12070 continue
12071 else
12072 # Passes both tests.
12073 ac_preproc_ok=:
12074 break
12076 rm -f conftest.err conftest.i conftest.$ac_ext
12078 done
12079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12080 rm -f conftest.i conftest.err conftest.$ac_ext
12081 if $ac_preproc_ok; then :
12083 else
12084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12086 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12087 See \`config.log' for more details" "$LINENO" 5; }
12090 ac_ext=c
12091 ac_cpp='$CPP $CPPFLAGS'
12092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12096 else
12097 _lt_caught_CXX_error=yes
12100 ac_ext=cpp
12101 ac_cpp='$CXXCPP $CPPFLAGS'
12102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12106 archive_cmds_need_lc_CXX=no
12107 allow_undefined_flag_CXX=
12108 always_export_symbols_CXX=no
12109 archive_expsym_cmds_CXX=
12110 compiler_needs_object_CXX=no
12111 export_dynamic_flag_spec_CXX=
12112 hardcode_direct_CXX=no
12113 hardcode_direct_absolute_CXX=no
12114 hardcode_libdir_flag_spec_CXX=
12115 hardcode_libdir_flag_spec_ld_CXX=
12116 hardcode_libdir_separator_CXX=
12117 hardcode_minus_L_CXX=no
12118 hardcode_shlibpath_var_CXX=unsupported
12119 hardcode_automatic_CXX=no
12120 inherit_rpath_CXX=no
12121 module_cmds_CXX=
12122 module_expsym_cmds_CXX=
12123 link_all_deplibs_CXX=unknown
12124 old_archive_cmds_CXX=$old_archive_cmds
12125 reload_flag_CXX=$reload_flag
12126 reload_cmds_CXX=$reload_cmds
12127 no_undefined_flag_CXX=
12128 whole_archive_flag_spec_CXX=
12129 enable_shared_with_static_runtimes_CXX=no
12131 # Source file extension for C++ test sources.
12132 ac_ext=cpp
12134 # Object file extension for compiled C++ test sources.
12135 objext=o
12136 objext_CXX=$objext
12138 # No sense in running all these tests if we already determined that
12139 # the CXX compiler isn't working. Some variables (like enable_shared)
12140 # are currently assumed to apply to all compilers on this platform,
12141 # and will be corrupted by setting them based on a non-working compiler.
12142 if test "$_lt_caught_CXX_error" != yes; then
12143 # Code to be used in simple compile tests
12144 lt_simple_compile_test_code="int some_variable = 0;"
12146 # Code to be used in simple link tests
12147 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12156 # If no C compiler was specified, use CC.
12157 LTCC=${LTCC-"$CC"}
12159 # If no C compiler flags were specified, use CFLAGS.
12160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12162 # Allow CC to be a program name with arguments.
12163 compiler=$CC
12166 # save warnings/boilerplate of simple test code
12167 ac_outfile=conftest.$ac_objext
12168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12170 _lt_compiler_boilerplate=`cat conftest.err`
12171 $RM conftest*
12173 ac_outfile=conftest.$ac_objext
12174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12176 _lt_linker_boilerplate=`cat conftest.err`
12177 $RM -r conftest*
12180 # Allow CC to be a program name with arguments.
12181 lt_save_CC=$CC
12182 lt_save_LD=$LD
12183 lt_save_GCC=$GCC
12184 GCC=$GXX
12185 lt_save_with_gnu_ld=$with_gnu_ld
12186 lt_save_path_LD=$lt_cv_path_LD
12187 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12188 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12189 else
12190 $as_unset lt_cv_prog_gnu_ld
12192 if test -n "${lt_cv_path_LDCXX+set}"; then
12193 lt_cv_path_LD=$lt_cv_path_LDCXX
12194 else
12195 $as_unset lt_cv_path_LD
12197 test -z "${LDCXX+set}" || LD=$LDCXX
12198 CC=${CXX-"c++"}
12199 compiler=$CC
12200 compiler_CXX=$CC
12201 for cc_temp in $compiler""; do
12202 case $cc_temp in
12203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12205 \-*) ;;
12206 *) break;;
12207 esac
12208 done
12209 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12212 if test -n "$compiler"; then
12213 # We don't want -fno-exception when compiling C++ code, so set the
12214 # no_builtin_flag separately
12215 if test "$GXX" = yes; then
12216 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12217 else
12218 lt_prog_compiler_no_builtin_flag_CXX=
12221 if test "$GXX" = yes; then
12222 # Set up default GNU C++ configuration
12226 # Check whether --with-gnu-ld was given.
12227 if test "${with_gnu_ld+set}" = set; then :
12228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12229 else
12230 with_gnu_ld=no
12233 ac_prog=ld
12234 if test "$GCC" = yes; then
12235 # Check if gcc -print-prog-name=ld gives a path.
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12237 $as_echo_n "checking for ld used by $CC... " >&6; }
12238 case $host in
12239 *-*-mingw*)
12240 # gcc leaves a trailing carriage return which upsets mingw
12241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12244 esac
12245 case $ac_prog in
12246 # Accept absolute paths.
12247 [\\/]* | ?:[\\/]*)
12248 re_direlt='/[^/][^/]*/\.\./'
12249 # Canonicalize the pathname of ld
12250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12253 done
12254 test -z "$LD" && LD="$ac_prog"
12257 # If it fails, then pretend we aren't using GCC.
12258 ac_prog=ld
12261 # If it is relative, then search for the first ld in PATH.
12262 with_gnu_ld=unknown
12264 esac
12265 elif test "$with_gnu_ld" = yes; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12267 $as_echo_n "checking for GNU ld... " >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12270 $as_echo_n "checking for non-GNU ld... " >&6; }
12272 if ${lt_cv_path_LD+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 if test -z "$LD"; then
12276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12277 for ac_dir in $PATH; do
12278 IFS="$lt_save_ifs"
12279 test -z "$ac_dir" && ac_dir=.
12280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12281 lt_cv_path_LD="$ac_dir/$ac_prog"
12282 # Check to see if the program is GNU ld. I'd rather use --version,
12283 # but apparently some variants of GNU ld only accept -v.
12284 # Break only if it was the GNU/non-GNU ld that we prefer.
12285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12286 *GNU* | *'with BFD'*)
12287 test "$with_gnu_ld" != no && break
12290 test "$with_gnu_ld" != yes && break
12292 esac
12294 done
12295 IFS="$lt_save_ifs"
12296 else
12297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12301 LD="$lt_cv_path_LD"
12302 if test -n "$LD"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12304 $as_echo "$LD" >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12309 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12311 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12312 if ${lt_cv_prog_gnu_ld+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12316 case `$LD -v 2>&1 </dev/null` in
12317 *GNU* | *'with BFD'*)
12318 lt_cv_prog_gnu_ld=yes
12321 lt_cv_prog_gnu_ld=no
12323 esac
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12326 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12327 with_gnu_ld=$lt_cv_prog_gnu_ld
12335 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12336 # archiving commands below assume that GNU ld is being used.
12337 if test "$with_gnu_ld" = yes; then
12338 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339 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'
12341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12344 # If archive_cmds runs LD, not CC, wlarc should be empty
12345 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12346 # investigate it a little bit more. (MM)
12347 wlarc='${wl}'
12349 # ancient GNU ld didn't support --whole-archive et. al.
12350 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12351 $GREP 'no-whole-archive' > /dev/null; then
12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12353 else
12354 whole_archive_flag_spec_CXX=
12356 else
12357 with_gnu_ld=no
12358 wlarc=
12360 # A generic and very simple default shared library creation
12361 # command for GNU C++ for the case where it uses the native
12362 # linker, instead of GNU ld. If possible, this setting should
12363 # overridden to take advantage of the native linker features on
12364 # the platform it is being used on.
12365 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12368 # Commands to make compiler produce verbose output that lists
12369 # what "hidden" libraries, object files and flags are used when
12370 # linking a shared library.
12371 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12373 else
12374 GXX=no
12375 with_gnu_ld=no
12376 wlarc=
12379 # PORTME: fill in a description of your system's C++ link characteristics
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12381 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12382 ld_shlibs_CXX=yes
12383 case $host_os in
12384 aix3*)
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12388 aix[4-9]*)
12389 if test "$host_cpu" = ia64; then
12390 # On IA64, the linker does run time linking by default, so we don't
12391 # have to do anything special.
12392 aix_use_runtimelinking=no
12393 exp_sym_flag='-Bexport'
12394 no_entry_flag=""
12395 else
12396 aix_use_runtimelinking=no
12398 # Test if we are trying to use run time linking or normal
12399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12400 # need to do runtime linking.
12401 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12402 for ld_flag in $LDFLAGS; do
12403 case $ld_flag in
12404 *-brtl*)
12405 aix_use_runtimelinking=yes
12406 break
12408 esac
12409 done
12411 esac
12413 exp_sym_flag='-bexport'
12414 no_entry_flag='-bnoentry'
12417 # When large executables or shared objects are built, AIX ld can
12418 # have problems creating the table of contents. If linking a library
12419 # or program results in "error TOC overflow" add -mminimal-toc to
12420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12423 archive_cmds_CXX=''
12424 hardcode_direct_CXX=yes
12425 hardcode_direct_absolute_CXX=yes
12426 hardcode_libdir_separator_CXX=':'
12427 link_all_deplibs_CXX=yes
12428 file_list_spec_CXX='${wl}-f,'
12430 if test "$GXX" = yes; then
12431 case $host_os in aix4.[012]|aix4.[012].*)
12432 # We only want to do this on AIX 4.2 and lower, the check
12433 # below for broken collect2 doesn't work under 4.3+
12434 collect2name=`${CC} -print-prog-name=collect2`
12435 if test -f "$collect2name" &&
12436 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12437 then
12438 # We have reworked collect2
12440 else
12441 # We have old collect2
12442 hardcode_direct_CXX=unsupported
12443 # It fails to find uninstalled libraries when the uninstalled
12444 # path is not listed in the libpath. Setting hardcode_minus_L
12445 # to unsupported forces relinking
12446 hardcode_minus_L_CXX=yes
12447 hardcode_libdir_flag_spec_CXX='-L$libdir'
12448 hardcode_libdir_separator_CXX=
12450 esac
12451 shared_flag='-shared'
12452 if test "$aix_use_runtimelinking" = yes; then
12453 shared_flag="$shared_flag "'${wl}-G'
12455 else
12456 # not using gcc
12457 if test "$host_cpu" = ia64; then
12458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12459 # chokes on -Wl,-G. The following line is correct:
12460 shared_flag='-G'
12461 else
12462 if test "$aix_use_runtimelinking" = yes; then
12463 shared_flag='${wl}-G'
12464 else
12465 shared_flag='${wl}-bM:SRE'
12470 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12471 # It seems that -bexpall does not export symbols beginning with
12472 # underscore (_), so it is better to generate a list of symbols to
12473 # export.
12474 always_export_symbols_CXX=yes
12475 if test "$aix_use_runtimelinking" = yes; then
12476 # Warning - without using the other runtime loading flags (-brtl),
12477 # -berok will link without error, but may produce a broken library.
12478 allow_undefined_flag_CXX='-berok'
12479 # Determine the default libpath from the value encoded in an empty
12480 # executable.
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12485 main ()
12489 return 0;
12491 _ACEOF
12492 if ac_fn_cxx_try_link "$LINENO"; then :
12494 lt_aix_libpath_sed='
12495 /Import File Strings/,/^$/ {
12496 /^0/ {
12497 s/^0 *\(.*\)$/\1/
12501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12502 # Check for a 64-bit object if we didn't find anything.
12503 if test -z "$aix_libpath"; then
12504 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12511 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12513 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"
12514 else
12515 if test "$host_cpu" = ia64; then
12516 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12517 allow_undefined_flag_CXX="-z nodefs"
12518 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"
12519 else
12520 # Determine the default libpath from the value encoded in an
12521 # empty executable.
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12526 main ()
12530 return 0;
12532 _ACEOF
12533 if ac_fn_cxx_try_link "$LINENO"; then :
12535 lt_aix_libpath_sed='
12536 /Import File Strings/,/^$/ {
12537 /^0/ {
12538 s/^0 *\(.*\)$/\1/
12542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12543 # Check for a 64-bit object if we didn't find anything.
12544 if test -z "$aix_libpath"; then
12545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12552 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12553 # Warning - without using the other run time loading flags,
12554 # -berok will link without error, but may produce a broken library.
12555 no_undefined_flag_CXX=' ${wl}-bernotok'
12556 allow_undefined_flag_CXX=' ${wl}-berok'
12557 if test "$with_gnu_ld" = yes; then
12558 # We only use this code for GNU lds that support --whole-archive.
12559 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12560 else
12561 # Exported symbols can be pulled into shared objects from archives
12562 whole_archive_flag_spec_CXX='$convenience'
12564 archive_cmds_need_lc_CXX=yes
12565 # This is similar to how AIX traditionally builds its shared
12566 # libraries.
12567 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'
12572 beos*)
12573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574 allow_undefined_flag_CXX=unsupported
12575 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12576 # support --undefined. This deserves some investigation. FIXME
12577 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578 else
12579 ld_shlibs_CXX=no
12583 chorus*)
12584 case $cc_basename in
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12589 esac
12592 cygwin* | mingw* | pw32* | cegcc*)
12593 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12594 # as there is no search path for DLLs.
12595 hardcode_libdir_flag_spec_CXX='-L$libdir'
12596 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12597 allow_undefined_flag_CXX=unsupported
12598 always_export_symbols_CXX=no
12599 enable_shared_with_static_runtimes_CXX=yes
12601 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12602 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'
12603 # If the export-symbols file already is a .def file (1st line
12604 # is EXPORTS), use it as is; otherwise, prepend...
12605 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12606 cp $export_symbols $output_objdir/$soname.def;
12607 else
12608 echo EXPORTS > $output_objdir/$soname.def;
12609 cat $export_symbols >> $output_objdir/$soname.def;
12611 $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'
12612 else
12613 ld_shlibs_CXX=no
12616 darwin* | rhapsody*)
12619 archive_cmds_need_lc_CXX=no
12620 hardcode_direct_CXX=no
12621 hardcode_automatic_CXX=yes
12622 hardcode_shlibpath_var_CXX=unsupported
12623 if test "$lt_cv_ld_force_load" = "yes"; then
12624 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\"`'
12625 else
12626 whole_archive_flag_spec_CXX=''
12628 link_all_deplibs_CXX=yes
12629 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12630 case $cc_basename in
12631 ifort*) _lt_dar_can_shared=yes ;;
12632 *) _lt_dar_can_shared=$GCC ;;
12633 esac
12634 if test "$_lt_dar_can_shared" = "yes"; then
12635 output_verbose_link_cmd=func_echo_all
12636 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12637 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12638 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12639 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}"
12640 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12641 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12642 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}"
12645 else
12646 ld_shlibs_CXX=no
12651 dgux*)
12652 case $cc_basename in
12653 ec++*)
12654 # FIXME: insert proper C++ library support
12655 ld_shlibs_CXX=no
12657 ghcx*)
12658 # Green Hills C++ Compiler
12659 # FIXME: insert proper C++ library support
12660 ld_shlibs_CXX=no
12663 # FIXME: insert proper C++ library support
12664 ld_shlibs_CXX=no
12666 esac
12669 freebsd2.*)
12670 # C++ shared libraries reported to be fairly broken before
12671 # switch to ELF
12672 ld_shlibs_CXX=no
12675 freebsd-elf*)
12676 archive_cmds_need_lc_CXX=no
12679 freebsd* | dragonfly*)
12680 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12681 # conventions
12682 ld_shlibs_CXX=yes
12685 gnu*)
12688 haiku*)
12689 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12690 link_all_deplibs_CXX=yes
12693 hpux9*)
12694 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12695 hardcode_libdir_separator_CXX=:
12696 export_dynamic_flag_spec_CXX='${wl}-E'
12697 hardcode_direct_CXX=yes
12698 hardcode_minus_L_CXX=yes # Not in the search PATH,
12699 # but as the default
12700 # location of the library.
12702 case $cc_basename in
12703 CC*)
12704 # FIXME: insert proper C++ library support
12705 ld_shlibs_CXX=no
12707 aCC*)
12708 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'
12709 # Commands to make compiler produce verbose output that lists
12710 # what "hidden" libraries, object files and flags are used when
12711 # linking a shared library.
12713 # There doesn't appear to be a way to prevent this compiler from
12714 # explicitly linking system object files so we need to strip them
12715 # from the output so that they don't get included in the library
12716 # dependencies.
12717 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"'
12720 if test "$GXX" = yes; then
12721 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'
12722 else
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12727 esac
12730 hpux10*|hpux11*)
12731 if test $with_gnu_ld = no; then
12732 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12733 hardcode_libdir_separator_CXX=:
12735 case $host_cpu in
12736 hppa*64*|ia64*)
12739 export_dynamic_flag_spec_CXX='${wl}-E'
12741 esac
12743 case $host_cpu in
12744 hppa*64*|ia64*)
12745 hardcode_direct_CXX=no
12746 hardcode_shlibpath_var_CXX=no
12749 hardcode_direct_CXX=yes
12750 hardcode_direct_absolute_CXX=yes
12751 hardcode_minus_L_CXX=yes # Not in the search PATH,
12752 # but as the default
12753 # location of the library.
12755 esac
12757 case $cc_basename in
12758 CC*)
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12762 aCC*)
12763 case $host_cpu in
12764 hppa*64*)
12765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12767 ia64*)
12768 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12773 esac
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12778 # There doesn't appear to be a way to prevent this compiler from
12779 # explicitly linking system object files so we need to strip them
12780 # from the output so that they don't get included in the library
12781 # dependencies.
12782 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"'
12785 if test "$GXX" = yes; then
12786 if test $with_gnu_ld = no; then
12787 case $host_cpu in
12788 hppa*64*)
12789 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12791 ia64*)
12792 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12795 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'
12797 esac
12799 else
12800 # FIXME: insert proper C++ library support
12801 ld_shlibs_CXX=no
12804 esac
12807 interix[3-9]*)
12808 hardcode_direct_CXX=no
12809 hardcode_shlibpath_var_CXX=no
12810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12811 export_dynamic_flag_spec_CXX='${wl}-E'
12812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12813 # Instead, shared libraries are loaded at an image base (0x10000000 by
12814 # default) and relocated if they conflict, which is a slow very memory
12815 # consuming and fragmenting process. To avoid this, we pick a random,
12816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12818 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'
12819 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'
12821 irix5* | irix6*)
12822 case $cc_basename in
12823 CC*)
12824 # SGI C++
12825 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'
12827 # Archives containing C++ object files must be created using
12828 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12829 # necessary to make sure instantiated templates are included
12830 # in the archive.
12831 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12834 if test "$GXX" = yes; then
12835 if test "$with_gnu_ld" = no; then
12836 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'
12837 else
12838 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'
12841 link_all_deplibs_CXX=yes
12843 esac
12844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12845 hardcode_libdir_separator_CXX=:
12846 inherit_rpath_CXX=yes
12849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12850 case $cc_basename in
12851 KCC*)
12852 # Kuck and Associates, Inc. (KAI) C++ Compiler
12854 # KCC will only create a shared library if the output file
12855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12856 # to its proper name (with version) after linking.
12857 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'
12858 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'
12859 # Commands to make compiler produce verbose output that lists
12860 # what "hidden" libraries, object files and flags are used when
12861 # linking a shared library.
12863 # There doesn't appear to be a way to prevent this compiler from
12864 # explicitly linking system object files so we need to strip them
12865 # from the output so that they don't get included in the library
12866 # dependencies.
12867 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"'
12869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12872 # Archives containing C++ object files must be created using
12873 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12874 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12876 icpc* | ecpc* )
12877 # Intel C++
12878 with_gnu_ld=yes
12879 # version 8.0 and above of icpc choke on multiply defined symbols
12880 # if we add $predep_objects and $postdep_objects, however 7.1 and
12881 # earlier do not add the objects themselves.
12882 case `$CC -V 2>&1` in
12883 *"Version 7."*)
12884 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 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'
12887 *) # Version 8.0 or newer
12888 tmp_idyn=
12889 case $host_cpu in
12890 ia64*) tmp_idyn=' -i_dynamic';;
12891 esac
12892 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12893 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'
12895 esac
12896 archive_cmds_need_lc_CXX=no
12897 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12899 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12901 pgCC* | pgcpp*)
12902 # Portland Group C++ compiler
12903 case `$CC -V` in
12904 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12905 prelink_cmds_CXX='tpldir=Template.dir~
12906 rm -rf $tpldir~
12907 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12908 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12909 old_archive_cmds_CXX='tpldir=Template.dir~
12910 rm -rf $tpldir~
12911 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12912 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12913 $RANLIB $oldlib'
12914 archive_cmds_CXX='tpldir=Template.dir~
12915 rm -rf $tpldir~
12916 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12917 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12918 archive_expsym_cmds_CXX='tpldir=Template.dir~
12919 rm -rf $tpldir~
12920 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12921 $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'
12923 *) # Version 6 and above use weak symbols
12924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12925 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'
12927 esac
12929 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931 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'
12933 cxx*)
12934 # Compaq C++
12935 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936 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'
12938 runpath_var=LD_RUN_PATH
12939 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12940 hardcode_libdir_separator_CXX=:
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
12950 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'
12952 xl* | mpixl* | bgxl*)
12953 # IBM XL 8.0 on PPC, with GNU ld
12954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12956 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957 if test "x$supports_anon_versioning" = xyes; then
12958 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12960 echo "local: *; };" >> $output_objdir/$libname.ver~
12961 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12965 case `$CC -V 2>&1 | sed 5q` in
12966 *Sun\ C*)
12967 # Sun C++ 5.9
12968 no_undefined_flag_CXX=' -zdefs'
12969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12970 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'
12971 hardcode_libdir_flag_spec_CXX='-R$libdir'
12972 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'
12973 compiler_needs_object_CXX=yes
12975 # Not sure whether something based on
12976 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12977 # would be better.
12978 output_verbose_link_cmd='func_echo_all'
12980 # Archives containing C++ object files must be created using
12981 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12982 # necessary to make sure instantiated templates are included
12983 # in the archive.
12984 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12986 esac
12988 esac
12991 lynxos*)
12992 # FIXME: insert proper C++ library support
12993 ld_shlibs_CXX=no
12996 m88k*)
12997 # FIXME: insert proper C++ library support
12998 ld_shlibs_CXX=no
13001 mvs*)
13002 case $cc_basename in
13003 cxx*)
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13011 esac
13014 netbsd*)
13015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13016 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13017 wlarc=
13018 hardcode_libdir_flag_spec_CXX='-R$libdir'
13019 hardcode_direct_CXX=yes
13020 hardcode_shlibpath_var_CXX=no
13022 # Workaround some broken pre-1.5 toolchains
13023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13026 *nto* | *qnx*)
13027 ld_shlibs_CXX=yes
13030 openbsd2*)
13031 # C++ shared libraries are fairly broken
13032 ld_shlibs_CXX=no
13035 openbsd*)
13036 if test -f /usr/libexec/ld.so; then
13037 hardcode_direct_CXX=yes
13038 hardcode_shlibpath_var_CXX=no
13039 hardcode_direct_absolute_CXX=yes
13040 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13043 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13044 export_dynamic_flag_spec_CXX='${wl}-E'
13045 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13047 output_verbose_link_cmd=func_echo_all
13048 else
13049 ld_shlibs_CXX=no
13053 osf3* | osf4* | osf5*)
13054 case $cc_basename in
13055 KCC*)
13056 # Kuck and Associates, Inc. (KAI) C++ Compiler
13058 # KCC will only create a shared library if the output file
13059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13060 # to its proper name (with version) after linking.
13061 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'
13063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13064 hardcode_libdir_separator_CXX=:
13066 # Archives containing C++ object files must be created using
13067 # the KAI C++ compiler.
13068 case $host in
13069 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13070 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13071 esac
13073 RCC*)
13074 # Rational C++ 2.4.1
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13078 cxx*)
13079 case $host in
13080 osf3*)
13081 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13082 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'
13083 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13086 allow_undefined_flag_CXX=' -expect_unresolved \*'
13087 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'
13088 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13089 echo "-hidden">> $lib.exp~
13090 $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~
13091 $RM $lib.exp'
13092 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13094 esac
13096 hardcode_libdir_separator_CXX=:
13098 # Commands to make compiler produce verbose output that lists
13099 # what "hidden" libraries, object files and flags are used when
13100 # linking a shared library.
13102 # There doesn't appear to be a way to prevent this compiler from
13103 # explicitly linking system object files so we need to strip them
13104 # from the output so that they don't get included in the library
13105 # dependencies.
13106 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"'
13109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13110 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13111 case $host in
13112 osf3*)
13113 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'
13116 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'
13118 esac
13120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13121 hardcode_libdir_separator_CXX=:
13123 # Commands to make compiler produce verbose output that lists
13124 # what "hidden" libraries, object files and flags are used when
13125 # linking a shared library.
13126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13128 else
13129 # FIXME: insert proper C++ library support
13130 ld_shlibs_CXX=no
13133 esac
13136 psos*)
13137 # FIXME: insert proper C++ library support
13138 ld_shlibs_CXX=no
13141 sunos4*)
13142 case $cc_basename in
13143 CC*)
13144 # Sun C++ 4.x
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13148 lcc*)
13149 # Lucid
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13154 # FIXME: insert proper C++ library support
13155 ld_shlibs_CXX=no
13157 esac
13160 solaris*)
13161 case $cc_basename in
13162 CC*)
13163 # Sun C++ 4.2, 5.x and Centerline C++
13164 archive_cmds_need_lc_CXX=yes
13165 no_undefined_flag_CXX=' -zdefs'
13166 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13168 $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'
13170 hardcode_libdir_flag_spec_CXX='-R$libdir'
13171 hardcode_shlibpath_var_CXX=no
13172 case $host_os in
13173 solaris2.[0-5] | solaris2.[0-5].*) ;;
13175 # The compiler driver will combine and reorder linker options,
13176 # but understands `-z linker_flag'.
13177 # Supported since Solaris 2.6 (maybe 2.5.1?)
13178 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13180 esac
13181 link_all_deplibs_CXX=yes
13183 output_verbose_link_cmd='func_echo_all'
13185 # Archives containing C++ object files must be created using
13186 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13187 # necessary to make sure instantiated templates are included
13188 # in the archive.
13189 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13191 gcx*)
13192 # Green Hills C++ Compiler
13193 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13195 # The C++ compiler must be used to create the archive.
13196 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13199 # GNU C++ compiler with Solaris linker
13200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13201 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13202 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13203 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13204 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13205 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13207 # Commands to make compiler produce verbose output that lists
13208 # what "hidden" libraries, object files and flags are used when
13209 # linking a shared library.
13210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13211 else
13212 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13213 # platform.
13214 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13216 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13218 # Commands to make compiler produce verbose output that lists
13219 # what "hidden" libraries, object files and flags are used when
13220 # linking a shared library.
13221 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13224 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13225 case $host_os in
13226 solaris2.[0-5] | solaris2.[0-5].*) ;;
13228 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13230 esac
13233 esac
13236 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13237 no_undefined_flag_CXX='${wl}-z,text'
13238 archive_cmds_need_lc_CXX=no
13239 hardcode_shlibpath_var_CXX=no
13240 runpath_var='LD_RUN_PATH'
13242 case $cc_basename in
13243 CC*)
13244 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13245 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13248 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13251 esac
13254 sysv5* | sco3.2v5* | sco5v6*)
13255 # Note: We can NOT use -z defs as we might desire, because we do not
13256 # link with -lc, and that would cause any symbols used from libc to
13257 # always be unresolved, which means just about no library would
13258 # ever link correctly. If we're not using GNU ld we use -z text
13259 # though, which does catch some bad symbols but isn't as heavy-handed
13260 # as -z defs.
13261 no_undefined_flag_CXX='${wl}-z,text'
13262 allow_undefined_flag_CXX='${wl}-z,nodefs'
13263 archive_cmds_need_lc_CXX=no
13264 hardcode_shlibpath_var_CXX=no
13265 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13266 hardcode_libdir_separator_CXX=':'
13267 link_all_deplibs_CXX=yes
13268 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13269 runpath_var='LD_RUN_PATH'
13271 case $cc_basename in
13272 CC*)
13273 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13275 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13276 '"$old_archive_cmds_CXX"
13277 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13278 '"$reload_cmds_CXX"
13281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13284 esac
13287 tandem*)
13288 case $cc_basename in
13289 NCC*)
13290 # NonStop-UX NCC 3.20
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13298 esac
13301 vxworks*)
13302 # For VxWorks ports, we assume the use of a GNU linker with
13303 # standard elf conventions.
13304 ld_shlibs_CXX=yes
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13311 esac
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13314 $as_echo "$ld_shlibs_CXX" >&6; }
13315 test "$ld_shlibs_CXX" = no && can_build_shared=no
13317 GCC_CXX="$GXX"
13318 LD_CXX="$LD"
13320 ## CAVEAT EMPTOR:
13321 ## There is no encapsulation within the following macros, do not change
13322 ## the running order or otherwise move them around unless you know exactly
13323 ## what you are doing...
13324 # Dependencies to place before and after the object being linked:
13325 predep_objects_CXX=
13326 postdep_objects_CXX=
13327 predeps_CXX=
13328 postdeps_CXX=
13329 compiler_lib_search_path_CXX=
13331 cat > conftest.$ac_ext <<_LT_EOF
13332 class Foo
13334 public:
13335 Foo (void) { a = 0; }
13336 private:
13337 int a;
13339 _LT_EOF
13341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13342 (eval $ac_compile) 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345 test $ac_status = 0; }; then
13346 # Parse the compiler output and extract the necessary
13347 # objects, libraries and library flags.
13349 # Sentinel used to keep track of whether or not we are before
13350 # the conftest object file.
13351 pre_test_object_deps_done=no
13353 for p in `eval "$output_verbose_link_cmd"`; do
13354 case $p in
13356 -L* | -R* | -l*)
13357 # Some compilers place space between "-{L,R}" and the path.
13358 # Remove the space.
13359 if test $p = "-L" ||
13360 test $p = "-R"; then
13361 prev=$p
13362 continue
13363 else
13364 prev=
13367 if test "$pre_test_object_deps_done" = no; then
13368 case $p in
13369 -L* | -R*)
13370 # Internal compiler library paths should come after those
13371 # provided the user. The postdeps already come after the
13372 # user supplied libs so there is no need to process them.
13373 if test -z "$compiler_lib_search_path_CXX"; then
13374 compiler_lib_search_path_CXX="${prev}${p}"
13375 else
13376 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13379 # The "-l" case would never come before the object being
13380 # linked, so don't bother handling this case.
13381 esac
13382 else
13383 if test -z "$postdeps_CXX"; then
13384 postdeps_CXX="${prev}${p}"
13385 else
13386 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13391 *.$objext)
13392 # This assumes that the test object file only shows up
13393 # once in the compiler output.
13394 if test "$p" = "conftest.$objext"; then
13395 pre_test_object_deps_done=yes
13396 continue
13399 if test "$pre_test_object_deps_done" = no; then
13400 if test -z "$predep_objects_CXX"; then
13401 predep_objects_CXX="$p"
13402 else
13403 predep_objects_CXX="$predep_objects_CXX $p"
13405 else
13406 if test -z "$postdep_objects_CXX"; then
13407 postdep_objects_CXX="$p"
13408 else
13409 postdep_objects_CXX="$postdep_objects_CXX $p"
13414 *) ;; # Ignore the rest.
13416 esac
13417 done
13419 # Clean up.
13420 rm -f a.out a.exe
13421 else
13422 echo "libtool.m4: error: problem compiling CXX test program"
13425 $RM -f confest.$objext
13427 # PORTME: override above test on systems where it is broken
13428 case $host_os in
13429 interix[3-9]*)
13430 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13431 # hack all around it, let's just trust "g++" to DTRT.
13432 predep_objects_CXX=
13433 postdep_objects_CXX=
13434 postdeps_CXX=
13437 linux*)
13438 case `$CC -V 2>&1 | sed 5q` in
13439 *Sun\ C*)
13440 # Sun C++ 5.9
13442 # The more standards-conforming stlport4 library is
13443 # incompatible with the Cstd library. Avoid specifying
13444 # it if it's in CXXFLAGS. Ignore libCrun as
13445 # -library=stlport4 depends on it.
13446 case " $CXX $CXXFLAGS " in
13447 *" -library=stlport4 "*)
13448 solaris_use_stlport4=yes
13450 esac
13452 if test "$solaris_use_stlport4" != yes; then
13453 postdeps_CXX='-library=Cstd -library=Crun'
13456 esac
13459 solaris*)
13460 case $cc_basename in
13461 CC*)
13462 # The more standards-conforming stlport4 library is
13463 # incompatible with the Cstd library. Avoid specifying
13464 # it if it's in CXXFLAGS. Ignore libCrun as
13465 # -library=stlport4 depends on it.
13466 case " $CXX $CXXFLAGS " in
13467 *" -library=stlport4 "*)
13468 solaris_use_stlport4=yes
13470 esac
13472 # Adding this requires a known-good setup of shared libraries for
13473 # Sun compiler versions before 5.6, else PIC objects from an old
13474 # archive will be linked into the output, leading to subtle bugs.
13475 if test "$solaris_use_stlport4" != yes; then
13476 postdeps_CXX='-library=Cstd -library=Crun'
13479 esac
13481 esac
13484 case " $postdeps_CXX " in
13485 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13486 esac
13487 compiler_lib_search_dirs_CXX=
13488 if test -n "${compiler_lib_search_path_CXX}"; then
13489 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13522 lt_prog_compiler_wl_CXX=
13523 lt_prog_compiler_pic_CXX=
13524 lt_prog_compiler_static_CXX=
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13527 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13529 # C++ specific cases for pic, static, wl, etc.
13530 if test "$GXX" = yes; then
13531 lt_prog_compiler_wl_CXX='-Wl,'
13532 lt_prog_compiler_static_CXX='-static'
13534 case $host_os in
13535 aix*)
13536 # All AIX code is PIC.
13537 if test "$host_cpu" = ia64; then
13538 # AIX 5 now supports IA64 processor
13539 lt_prog_compiler_static_CXX='-Bstatic'
13541 lt_prog_compiler_pic_CXX='-fPIC'
13544 amigaos*)
13545 case $host_cpu in
13546 powerpc)
13547 # see comment about AmigaOS4 .so support
13548 lt_prog_compiler_pic_CXX='-fPIC'
13550 m68k)
13551 # FIXME: we need at least 68020 code to build shared libraries, but
13552 # adding the `-m68020' flag to GCC prevents building anything better,
13553 # like `-m68040'.
13554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13556 esac
13559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13560 # PIC is the default for these OSes.
13562 mingw* | cygwin* | os2* | pw32* | cegcc*)
13563 # This hack is so that the source file can tell whether it is being
13564 # built for inclusion in a dll (and should export symbols for example).
13565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13566 # (--disable-auto-import) libraries
13567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13569 darwin* | rhapsody*)
13570 # PIC is the default on this platform
13571 # Common symbols not allowed in MH_DYLIB files
13572 lt_prog_compiler_pic_CXX='-fno-common'
13574 *djgpp*)
13575 # DJGPP does not support shared libraries at all
13576 lt_prog_compiler_pic_CXX=
13578 haiku*)
13579 # PIC is the default for Haiku.
13580 # The "-static" flag exists, but is broken.
13581 lt_prog_compiler_static_CXX=
13583 interix[3-9]*)
13584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13585 # Instead, we relocate shared libraries at runtime.
13587 sysv4*MP*)
13588 if test -d /usr/nec; then
13589 lt_prog_compiler_pic_CXX=-Kconform_pic
13592 hpux*)
13593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13595 # sets the default TLS model and affects inlining.
13596 case $host_cpu in
13597 hppa*64*)
13600 lt_prog_compiler_pic_CXX='-fPIC'
13602 esac
13604 *qnx* | *nto*)
13605 # QNX uses GNU C++, but need to define -shared option too, otherwise
13606 # it will coredump.
13607 lt_prog_compiler_pic_CXX='-fPIC -shared'
13610 lt_prog_compiler_pic_CXX='-fPIC'
13612 esac
13613 else
13614 case $host_os in
13615 aix[4-9]*)
13616 # All AIX code is PIC.
13617 if test "$host_cpu" = ia64; then
13618 # AIX 5 now supports IA64 processor
13619 lt_prog_compiler_static_CXX='-Bstatic'
13620 else
13621 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13624 chorus*)
13625 case $cc_basename in
13626 cxch68*)
13627 # Green Hills C++ Compiler
13628 # _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"
13630 esac
13632 dgux*)
13633 case $cc_basename in
13634 ec++*)
13635 lt_prog_compiler_pic_CXX='-KPIC'
13637 ghcx*)
13638 # Green Hills C++ Compiler
13639 lt_prog_compiler_pic_CXX='-pic'
13643 esac
13645 freebsd* | dragonfly*)
13646 # FreeBSD uses GNU C++
13648 hpux9* | hpux10* | hpux11*)
13649 case $cc_basename in
13650 CC*)
13651 lt_prog_compiler_wl_CXX='-Wl,'
13652 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13653 if test "$host_cpu" != ia64; then
13654 lt_prog_compiler_pic_CXX='+Z'
13657 aCC*)
13658 lt_prog_compiler_wl_CXX='-Wl,'
13659 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13660 case $host_cpu in
13661 hppa*64*|ia64*)
13662 # +Z the default
13665 lt_prog_compiler_pic_CXX='+Z'
13667 esac
13671 esac
13673 interix*)
13674 # This is c89, which is MS Visual C++ (no shared libs)
13675 # Anyone wants to do a port?
13677 irix5* | irix6* | nonstopux*)
13678 case $cc_basename in
13679 CC*)
13680 lt_prog_compiler_wl_CXX='-Wl,'
13681 lt_prog_compiler_static_CXX='-non_shared'
13682 # CC pic flag -KPIC is the default.
13686 esac
13688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13689 case $cc_basename in
13690 KCC*)
13691 # KAI C++ Compiler
13692 lt_prog_compiler_wl_CXX='--backend -Wl,'
13693 lt_prog_compiler_pic_CXX='-fPIC'
13695 ecpc* )
13696 # old Intel C++ for x86_64 which still supported -KPIC.
13697 lt_prog_compiler_wl_CXX='-Wl,'
13698 lt_prog_compiler_pic_CXX='-KPIC'
13699 lt_prog_compiler_static_CXX='-static'
13701 icpc* )
13702 # Intel C++, used to be incompatible with GCC.
13703 # ICC 10 doesn't accept -KPIC any more.
13704 lt_prog_compiler_wl_CXX='-Wl,'
13705 lt_prog_compiler_pic_CXX='-fPIC'
13706 lt_prog_compiler_static_CXX='-static'
13708 pgCC* | pgcpp*)
13709 # Portland Group C++ compiler
13710 lt_prog_compiler_wl_CXX='-Wl,'
13711 lt_prog_compiler_pic_CXX='-fpic'
13712 lt_prog_compiler_static_CXX='-Bstatic'
13714 cxx*)
13715 # Compaq C++
13716 # Make sure the PIC flag is empty. It appears that all Alpha
13717 # Linux and Compaq Tru64 Unix objects are PIC.
13718 lt_prog_compiler_pic_CXX=
13719 lt_prog_compiler_static_CXX='-non_shared'
13721 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13722 # IBM XL 8.0, 9.0 on PPC and BlueGene
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_pic_CXX='-qpic'
13725 lt_prog_compiler_static_CXX='-qstaticlink'
13728 case `$CC -V 2>&1 | sed 5q` in
13729 *Sun\ C*)
13730 # Sun C++ 5.9
13731 lt_prog_compiler_pic_CXX='-KPIC'
13732 lt_prog_compiler_static_CXX='-Bstatic'
13733 lt_prog_compiler_wl_CXX='-Qoption ld '
13735 esac
13737 esac
13739 lynxos*)
13741 m88k*)
13743 mvs*)
13744 case $cc_basename in
13745 cxx*)
13746 lt_prog_compiler_pic_CXX='-W c,exportall'
13750 esac
13752 netbsd*)
13754 *qnx* | *nto*)
13755 # QNX uses GNU C++, but need to define -shared option too, otherwise
13756 # it will coredump.
13757 lt_prog_compiler_pic_CXX='-fPIC -shared'
13759 osf3* | osf4* | osf5*)
13760 case $cc_basename in
13761 KCC*)
13762 lt_prog_compiler_wl_CXX='--backend -Wl,'
13764 RCC*)
13765 # Rational C++ 2.4.1
13766 lt_prog_compiler_pic_CXX='-pic'
13768 cxx*)
13769 # Digital/Compaq C++
13770 lt_prog_compiler_wl_CXX='-Wl,'
13771 # Make sure the PIC flag is empty. It appears that all Alpha
13772 # Linux and Compaq Tru64 Unix objects are PIC.
13773 lt_prog_compiler_pic_CXX=
13774 lt_prog_compiler_static_CXX='-non_shared'
13778 esac
13780 psos*)
13782 solaris*)
13783 case $cc_basename in
13784 CC*)
13785 # Sun C++ 4.2, 5.x and Centerline C++
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 lt_prog_compiler_static_CXX='-Bstatic'
13788 lt_prog_compiler_wl_CXX='-Qoption ld '
13790 gcx*)
13791 # Green Hills C++ Compiler
13792 lt_prog_compiler_pic_CXX='-PIC'
13796 esac
13798 sunos4*)
13799 case $cc_basename in
13800 CC*)
13801 # Sun C++ 4.x
13802 lt_prog_compiler_pic_CXX='-pic'
13803 lt_prog_compiler_static_CXX='-Bstatic'
13805 lcc*)
13806 # Lucid
13807 lt_prog_compiler_pic_CXX='-pic'
13811 esac
13813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13814 case $cc_basename in
13815 CC*)
13816 lt_prog_compiler_wl_CXX='-Wl,'
13817 lt_prog_compiler_pic_CXX='-KPIC'
13818 lt_prog_compiler_static_CXX='-Bstatic'
13820 esac
13822 tandem*)
13823 case $cc_basename in
13824 NCC*)
13825 # NonStop-UX NCC 3.20
13826 lt_prog_compiler_pic_CXX='-KPIC'
13830 esac
13832 vxworks*)
13835 lt_prog_compiler_can_build_shared_CXX=no
13837 esac
13840 case $host_os in
13841 # For platforms which do not support PIC, -DPIC is meaningless:
13842 *djgpp*)
13843 lt_prog_compiler_pic_CXX=
13846 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13848 esac
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13850 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13855 # Check to make sure the PIC flag actually works.
13857 if test -n "$lt_prog_compiler_pic_CXX"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13860 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 lt_cv_prog_compiler_pic_works_CXX=no
13864 ac_outfile=conftest.$ac_objext
13865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13866 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13867 # Insert the option either (1) after the last *FLAGS variable, or
13868 # (2) before a word containing "conftest.", or (3) at the end.
13869 # Note that $ac_compile itself does not contain backslashes and begins
13870 # with a dollar sign (not a hyphen), so the echo should work correctly.
13871 # The option is referenced via a variable to avoid confusing sed.
13872 lt_compile=`echo "$ac_compile" | $SED \
13873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13875 -e 's:$: $lt_compiler_flag:'`
13876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13877 (eval "$lt_compile" 2>conftest.err)
13878 ac_status=$?
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 if (exit $ac_status) && test -s "$ac_outfile"; then
13882 # The compiler can only warn and ignore the option if not recognized
13883 # So say no if there are warnings other than the usual output.
13884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13887 lt_cv_prog_compiler_pic_works_CXX=yes
13890 $RM conftest*
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13894 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13896 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13897 case $lt_prog_compiler_pic_CXX in
13898 "" | " "*) ;;
13899 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13900 esac
13901 else
13902 lt_prog_compiler_pic_CXX=
13903 lt_prog_compiler_can_build_shared_CXX=no
13911 # Check to make sure the static flag actually works.
13913 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13915 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13916 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 lt_cv_prog_compiler_static_works_CXX=no
13920 save_LDFLAGS="$LDFLAGS"
13921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13924 # The linker can only warn and ignore the option if not recognized
13925 # So say no if there are warnings
13926 if test -s conftest.err; then
13927 # Append any errors to the config.log.
13928 cat conftest.err 1>&5
13929 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13931 if diff conftest.exp conftest.er2 >/dev/null; then
13932 lt_cv_prog_compiler_static_works_CXX=yes
13934 else
13935 lt_cv_prog_compiler_static_works_CXX=yes
13938 $RM -r conftest*
13939 LDFLAGS="$save_LDFLAGS"
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13943 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13945 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13947 else
13948 lt_prog_compiler_static_CXX=
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13955 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13956 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 lt_cv_prog_compiler_c_o_CXX=no
13960 $RM -r conftest 2>/dev/null
13961 mkdir conftest
13962 cd conftest
13963 mkdir out
13964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13966 lt_compiler_flag="-o out/conftest2.$ac_objext"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 lt_compile=`echo "$ac_compile" | $SED \
13972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974 -e 's:$: $lt_compiler_flag:'`
13975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13976 (eval "$lt_compile" 2>out/conftest.err)
13977 ac_status=$?
13978 cat out/conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13981 then
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings
13984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_c_o_CXX=yes
13990 chmod u+w . 2>&5
13991 $RM conftest*
13992 # SGI C++ compiler will create directory out/ii_files/ for
13993 # template instantiation
13994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13995 $RM out/* && rmdir out
13996 cd ..
13997 $RM -r conftest
13998 $RM conftest*
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14002 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14008 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 lt_cv_prog_compiler_c_o_CXX=no
14012 $RM -r conftest 2>/dev/null
14013 mkdir conftest
14014 cd conftest
14015 mkdir out
14016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14018 lt_compiler_flag="-o out/conftest2.$ac_objext"
14019 # Insert the option either (1) after the last *FLAGS variable, or
14020 # (2) before a word containing "conftest.", or (3) at the end.
14021 # Note that $ac_compile itself does not contain backslashes and begins
14022 # with a dollar sign (not a hyphen), so the echo should work correctly.
14023 lt_compile=`echo "$ac_compile" | $SED \
14024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14026 -e 's:$: $lt_compiler_flag:'`
14027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14028 (eval "$lt_compile" 2>out/conftest.err)
14029 ac_status=$?
14030 cat out/conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14033 then
14034 # The compiler can only warn and ignore the option if not recognized
14035 # So say no if there are warnings
14036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14039 lt_cv_prog_compiler_c_o_CXX=yes
14042 chmod u+w . 2>&5
14043 $RM conftest*
14044 # SGI C++ compiler will create directory out/ii_files/ for
14045 # template instantiation
14046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14047 $RM out/* && rmdir out
14048 cd ..
14049 $RM -r conftest
14050 $RM conftest*
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14054 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14059 hard_links="nottested"
14060 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14061 # do not overwrite the value of need_locks provided by the user
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14063 $as_echo_n "checking if we can lock with hard links... " >&6; }
14064 hard_links=yes
14065 $RM conftest*
14066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14067 touch conftest.a
14068 ln conftest.a conftest.b 2>&5 || hard_links=no
14069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14071 $as_echo "$hard_links" >&6; }
14072 if test "$hard_links" = no; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14074 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14075 need_locks=warn
14077 else
14078 need_locks=no
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14084 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14086 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14087 case $host_os in
14088 aix[4-9]*)
14089 # If we're using GNU nm, then we don't want the "-C" option.
14090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14091 # Also, AIX nm treats weak defined symbols like other global defined
14092 # symbols, whereas GNU nm marks them as "W".
14093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14094 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'
14095 else
14096 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'
14099 pw32*)
14100 export_symbols_cmds_CXX="$ltdll_cmds"
14102 cygwin* | mingw* | cegcc*)
14103 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'
14106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14108 esac
14109 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14112 $as_echo "$ld_shlibs_CXX" >&6; }
14113 test "$ld_shlibs_CXX" = no && can_build_shared=no
14115 with_gnu_ld_CXX=$with_gnu_ld
14123 # Do we need to explicitly link libc?
14125 case "x$archive_cmds_need_lc_CXX" in
14126 x|xyes)
14127 # Assume -lc should be added
14128 archive_cmds_need_lc_CXX=yes
14130 if test "$enable_shared" = yes && test "$GCC" = yes; then
14131 case $archive_cmds_CXX in
14132 *'~'*)
14133 # FIXME: we may have to deal with multi-command sequences.
14135 '$CC '*)
14136 # Test whether the compiler implicitly links with -lc since on some
14137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14138 # to ld, don't add -lc before -lgcc.
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14141 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 $RM conftest*
14145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; } 2>conftest.err; then
14152 soname=conftest
14153 lib=conftest
14154 libobjs=conftest.$ac_objext
14155 deplibs=
14156 wl=$lt_prog_compiler_wl_CXX
14157 pic_flag=$lt_prog_compiler_pic_CXX
14158 compiler_flags=-v
14159 linker_flags=-v
14160 verstring=
14161 output_objdir=.
14162 libname=conftest
14163 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14164 allow_undefined_flag_CXX=
14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14166 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }
14170 then
14171 lt_cv_archive_cmds_need_lc_CXX=no
14172 else
14173 lt_cv_archive_cmds_need_lc_CXX=yes
14175 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14176 else
14177 cat conftest.err 1>&5
14179 $RM conftest*
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14183 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14184 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14186 esac
14189 esac
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14255 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14257 library_names_spec=
14258 libname_spec='lib$name'
14259 soname_spec=
14260 shrext_cmds=".so"
14261 postinstall_cmds=
14262 postuninstall_cmds=
14263 finish_cmds=
14264 finish_eval=
14265 shlibpath_var=
14266 shlibpath_overrides_runpath=unknown
14267 version_type=none
14268 dynamic_linker="$host_os ld.so"
14269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14270 need_lib_prefix=unknown
14271 hardcode_into_libs=no
14273 # when you set need_version to no, make sure it does not cause -set_version
14274 # flags to be left without arguments
14275 need_version=unknown
14277 case $host_os in
14278 aix3*)
14279 version_type=linux
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14281 shlibpath_var=LIBPATH
14283 # AIX 3 has no versioning support, so we append a major version to the name.
14284 soname_spec='${libname}${release}${shared_ext}$major'
14287 aix[4-9]*)
14288 version_type=linux
14289 need_lib_prefix=no
14290 need_version=no
14291 hardcode_into_libs=yes
14292 if test "$host_cpu" = ia64; then
14293 # AIX 5 supports IA64
14294 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 else
14297 # With GCC up to 2.95.x, collect2 would create an import file
14298 # for dependence libraries. The import file would start with
14299 # the line `#! .'. This would cause the generated library to
14300 # depend on `.', always an invalid library. This was fixed in
14301 # development snapshots of GCC prior to 3.0.
14302 case $host_os in
14303 aix4 | aix4.[01] | aix4.[01].*)
14304 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14305 echo ' yes '
14306 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14308 else
14309 can_build_shared=no
14312 esac
14313 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14314 # soname into executable. Probably we can add versioning support to
14315 # collect2, so additional links can be useful in future.
14316 if test "$aix_use_runtimelinking" = yes; then
14317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14318 # instead of lib<name>.a to let people know that these are not
14319 # typical AIX shared libraries.
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321 else
14322 # We preserve .a as extension for shared libraries through AIX4.2
14323 # and later when we are not doing run time linking.
14324 library_names_spec='${libname}${release}.a $libname.a'
14325 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LIBPATH
14331 amigaos*)
14332 case $host_cpu in
14333 powerpc)
14334 # Since July 2007 AmigaOS4 officially supports .so libraries.
14335 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 m68k)
14339 library_names_spec='$libname.ixlibrary $libname.a'
14340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14341 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'
14343 esac
14346 beos*)
14347 library_names_spec='${libname}${shared_ext}'
14348 dynamic_linker="$host_os ld.so"
14349 shlibpath_var=LIBRARY_PATH
14352 bsdi[45]*)
14353 version_type=linux
14354 need_version=no
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14360 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14361 # the default ld.so.conf also contains /usr/contrib/lib and
14362 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14363 # libtool to hard-code these into programs
14366 cygwin* | mingw* | pw32* | cegcc*)
14367 version_type=windows
14368 shrext_cmds=".dll"
14369 need_version=no
14370 need_lib_prefix=no
14372 case $GCC,$host_os in
14373 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14374 library_names_spec='$libname.dll.a'
14375 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14376 postinstall_cmds='base_file=`basename \${file}`~
14377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14378 dldir=$destdir/`dirname \$dlpath`~
14379 test -d \$dldir || mkdir -p \$dldir~
14380 $install_prog $dir/$dlname \$dldir/$dlname~
14381 chmod a+x \$dldir/$dlname~
14382 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14383 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14386 dlpath=$dir/\$dldll~
14387 $RM \$dlpath'
14388 shlibpath_overrides_runpath=yes
14390 case $host_os in
14391 cygwin*)
14392 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14396 mingw* | cegcc*)
14397 # MinGW DLLs use traditional 'lib' prefix
14398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14400 pw32*)
14401 # pw32 DLLs use 'pw' prefix rather than 'lib'
14402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14404 esac
14408 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14410 esac
14411 dynamic_linker='Win32 ld.exe'
14412 # FIXME: first we should search . and the directory the executable is in
14413 shlibpath_var=PATH
14416 darwin* | rhapsody*)
14417 dynamic_linker="$host_os dyld"
14418 version_type=darwin
14419 need_lib_prefix=no
14420 need_version=no
14421 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14422 soname_spec='${libname}${release}${major}$shared_ext'
14423 shlibpath_overrides_runpath=yes
14424 shlibpath_var=DYLD_LIBRARY_PATH
14425 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14427 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14430 dgux*)
14431 version_type=linux
14432 need_lib_prefix=no
14433 need_version=no
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 shlibpath_var=LD_LIBRARY_PATH
14439 freebsd* | dragonfly*)
14440 # DragonFly does not have aout. When/if they implement a new
14441 # versioning mechanism, adjust this.
14442 if test -x /usr/bin/objformat; then
14443 objformat=`/usr/bin/objformat`
14444 else
14445 case $host_os in
14446 freebsd[23].*) objformat=aout ;;
14447 *) objformat=elf ;;
14448 esac
14450 version_type=freebsd-$objformat
14451 case $version_type in
14452 freebsd-elf*)
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14454 need_version=no
14455 need_lib_prefix=no
14457 freebsd-*)
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14459 need_version=yes
14461 esac
14462 shlibpath_var=LD_LIBRARY_PATH
14463 case $host_os in
14464 freebsd2.*)
14465 shlibpath_overrides_runpath=yes
14467 freebsd3.[01]* | freebsdelf3.[01]*)
14468 shlibpath_overrides_runpath=yes
14469 hardcode_into_libs=yes
14471 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14472 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14473 shlibpath_overrides_runpath=no
14474 hardcode_into_libs=yes
14476 *) # from 4.6 on, and DragonFly
14477 shlibpath_overrides_runpath=yes
14478 hardcode_into_libs=yes
14480 esac
14483 haiku*)
14484 version_type=linux
14485 need_lib_prefix=no
14486 need_version=no
14487 dynamic_linker="$host_os runtime_loader"
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 shlibpath_var=LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes
14492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14493 hardcode_into_libs=yes
14496 hpux9* | hpux10* | hpux11*)
14497 # Give a soname corresponding to the major version so that dld.sl refuses to
14498 # link against other versions.
14499 version_type=sunos
14500 need_lib_prefix=no
14501 need_version=no
14502 case $host_cpu in
14503 ia64*)
14504 shrext_cmds='.so'
14505 hardcode_into_libs=yes
14506 dynamic_linker="$host_os dld.so"
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 if test "X$HPUX_IA64_MODE" = X32; then
14512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14513 else
14514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14518 hppa*64*)
14519 shrext_cmds='.sl'
14520 hardcode_into_libs=yes
14521 dynamic_linker="$host_os dld.sl"
14522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14530 shrext_cmds='.sl'
14531 dynamic_linker="$host_os dld.sl"
14532 shlibpath_var=SHLIB_PATH
14533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14537 esac
14538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14539 postinstall_cmds='chmod 555 $lib'
14540 # or fails outright, so override atomically:
14541 install_override_mode=555
14544 interix[3-9]*)
14545 version_type=linux
14546 need_lib_prefix=no
14547 need_version=no
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=no
14553 hardcode_into_libs=yes
14556 irix5* | irix6* | nonstopux*)
14557 case $host_os in
14558 nonstopux*) version_type=nonstopux ;;
14560 if test "$lt_cv_prog_gnu_ld" = yes; then
14561 version_type=linux
14562 else
14563 version_type=irix
14564 fi ;;
14565 esac
14566 need_lib_prefix=no
14567 need_version=no
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14570 case $host_os in
14571 irix5* | nonstopux*)
14572 libsuff= shlibsuff=
14575 case $LD in # libtool.m4 will add one of these switches to LD
14576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14577 libsuff= shlibsuff= libmagic=32-bit;;
14578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14579 libsuff=32 shlibsuff=N32 libmagic=N32;;
14580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14582 *) libsuff= shlibsuff= libmagic=never-match;;
14583 esac
14585 esac
14586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14587 shlibpath_overrides_runpath=no
14588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14590 hardcode_into_libs=yes
14593 # No shared lib support for Linux oldld, aout, or coff.
14594 linux*oldld* | linux*aout* | linux*coff*)
14595 dynamic_linker=no
14598 # This must be Linux ELF.
14600 # uclinux* changes (here and below) have been submitted to the libtool
14601 # project, but have not yet been accepted: they are GCC-local changes
14602 # for the time being. (See
14603 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14604 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14605 version_type=linux
14606 need_lib_prefix=no
14607 need_version=no
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 shlibpath_overrides_runpath=no
14614 # Some binutils ld are patched to set DT_RUNPATH
14615 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 lt_cv_shlibpath_overrides_runpath=no
14619 save_LDFLAGS=$LDFLAGS
14620 save_libdir=$libdir
14621 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14622 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14627 main ()
14631 return 0;
14633 _ACEOF
14634 if ac_fn_cxx_try_link "$LINENO"; then :
14635 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14636 lt_cv_shlibpath_overrides_runpath=yes
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 LDFLAGS=$save_LDFLAGS
14642 libdir=$save_libdir
14646 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14648 # This implies no fast_install, which is unacceptable.
14649 # Some rework will be needed to allow for fast_install
14650 # before this can be enabled.
14651 hardcode_into_libs=yes
14653 # Append ld.so.conf contents to the search path
14654 if test -f /etc/ld.so.conf; then
14655 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' ' '`
14656 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14659 # We used to test for /lib/ld.so.1 and disable shared libraries on
14660 # powerpc, because MkLinux only supported shared libraries with the
14661 # GNU dynamic linker. Since this was broken with cross compilers,
14662 # most powerpc-linux boxes support dynamic linking these days and
14663 # people can always --disable-shared, the test was removed, and we
14664 # assume the GNU/Linux dynamic linker is in use.
14665 dynamic_linker='GNU/Linux ld.so'
14668 netbsd*)
14669 version_type=sunos
14670 need_lib_prefix=no
14671 need_version=no
14672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14675 dynamic_linker='NetBSD (a.out) ld.so'
14676 else
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 dynamic_linker='NetBSD ld.elf_so'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 hardcode_into_libs=yes
14686 newsos6)
14687 version_type=linux
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes
14693 *nto* | *qnx*)
14694 version_type=qnx
14695 need_lib_prefix=no
14696 need_version=no
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 shlibpath_overrides_runpath=no
14701 hardcode_into_libs=yes
14702 dynamic_linker='ldqnx.so'
14705 openbsd*)
14706 version_type=sunos
14707 sys_lib_dlsearch_path_spec="/usr/lib"
14708 need_lib_prefix=no
14709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14710 case $host_os in
14711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14712 *) need_version=no ;;
14713 esac
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14718 case $host_os in
14719 openbsd2.[89] | openbsd2.[89].*)
14720 shlibpath_overrides_runpath=no
14723 shlibpath_overrides_runpath=yes
14725 esac
14726 else
14727 shlibpath_overrides_runpath=yes
14731 os2*)
14732 libname_spec='$name'
14733 shrext_cmds=".dll"
14734 need_lib_prefix=no
14735 library_names_spec='$libname${shared_ext} $libname.a'
14736 dynamic_linker='OS/2 ld.exe'
14737 shlibpath_var=LIBPATH
14740 osf3* | osf4* | osf5*)
14741 version_type=osf
14742 need_lib_prefix=no
14743 need_version=no
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14751 rdos*)
14752 dynamic_linker=no
14755 solaris*)
14756 version_type=linux
14757 need_lib_prefix=no
14758 need_version=no
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=yes
14763 hardcode_into_libs=yes
14764 # ldd complains unless libraries are executable
14765 postinstall_cmds='chmod +x $lib'
14768 sunos4*)
14769 version_type=sunos
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=yes
14774 if test "$with_gnu_ld" = yes; then
14775 need_lib_prefix=no
14777 need_version=yes
14780 sysv4 | sysv4.3*)
14781 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
14785 case $host_vendor in
14786 sni)
14787 shlibpath_overrides_runpath=no
14788 need_lib_prefix=no
14789 runpath_var=LD_RUN_PATH
14791 siemens)
14792 need_lib_prefix=no
14794 motorola)
14795 need_lib_prefix=no
14796 need_version=no
14797 shlibpath_overrides_runpath=no
14798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14800 esac
14803 sysv4*MP*)
14804 if test -d /usr/nec ;then
14805 version_type=linux
14806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14807 soname_spec='$libname${shared_ext}.$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14813 version_type=freebsd-elf
14814 need_lib_prefix=no
14815 need_version=no
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath=yes
14820 hardcode_into_libs=yes
14821 if test "$with_gnu_ld" = yes; then
14822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14823 else
14824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14825 case $host_os in
14826 sco3.2v5*)
14827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14829 esac
14831 sys_lib_dlsearch_path_spec='/usr/lib'
14834 tpf*)
14835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 shlibpath_overrides_runpath=no
14842 hardcode_into_libs=yes
14845 uts4*)
14846 version_type=linux
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 shlibpath_var=LD_LIBRARY_PATH
14852 # Shared libraries for VwWorks, >= 7 only at this stage
14853 # and (fpic) still incompatible with "large" code models
14854 # in a few configurations. Only for RTP mode in any case,
14855 # and upon explicit request at configure time.
14856 vxworks7*)
14857 dynamic_linker=no
14858 case ${with_multisubdir}-${enable_shared} in
14859 *large*)
14861 *mrtp*-yes)
14862 version_type=linux
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 dynamic_linker="$host_os module_loader"
14869 esac
14872 dynamic_linker=no
14874 esac
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14876 $as_echo "$dynamic_linker" >&6; }
14877 test "$dynamic_linker" = no && can_build_shared=no
14879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14880 if test "$GCC" = yes; then
14881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14884 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14885 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14887 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14929 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14930 hardcode_action_CXX=
14931 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14932 test -n "$runpath_var_CXX" ||
14933 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14935 # We can hardcode non-existent directories.
14936 if test "$hardcode_direct_CXX" != no &&
14937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14938 # have to relink, otherwise we might link with an installed library
14939 # when we should be linking with a yet-to-be-installed one
14940 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14941 test "$hardcode_minus_L_CXX" != no; then
14942 # Linking always hardcodes the temporary library directory.
14943 hardcode_action_CXX=relink
14944 else
14945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14946 hardcode_action_CXX=immediate
14948 else
14949 # We cannot hardcode anything, or else we can only hardcode existing
14950 # directories.
14951 hardcode_action_CXX=unsupported
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14954 $as_echo "$hardcode_action_CXX" >&6; }
14956 if test "$hardcode_action_CXX" = relink ||
14957 test "$inherit_rpath_CXX" = yes; then
14958 # Fast installation is not supported
14959 enable_fast_install=no
14960 elif test "$shlibpath_overrides_runpath" = yes ||
14961 test "$enable_shared" = no; then
14962 # Fast installation is not necessary
14963 enable_fast_install=needless
14972 fi # test -n "$compiler"
14974 CC=$lt_save_CC
14975 LDCXX=$LD
14976 LD=$lt_save_LD
14977 GCC=$lt_save_GCC
14978 with_gnu_ld=$lt_save_with_gnu_ld
14979 lt_cv_path_LDCXX=$lt_cv_path_LD
14980 lt_cv_path_LD=$lt_save_path_LD
14981 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14982 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14983 fi # test "$_lt_caught_CXX_error" != yes
14985 ac_ext=c
14986 ac_cpp='$CPP $CPPFLAGS'
14987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15003 ac_config_commands="$ac_config_commands libtool"
15008 # Only expand once:
15012 if test -n "$ac_tool_prefix"; then
15013 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
15014 set dummy ${ac_tool_prefix}readelf; ac_word=$2
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15016 $as_echo_n "checking for $ac_word... " >&6; }
15017 if ${ac_cv_prog_READELF+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 if test -n "$READELF"; then
15021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
15022 else
15023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024 for as_dir in $PATH
15026 IFS=$as_save_IFS
15027 test -z "$as_dir" && as_dir=.
15028 for ac_exec_ext in '' $ac_executable_extensions; do
15029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15030 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
15031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15032 break 2
15034 done
15035 done
15036 IFS=$as_save_IFS
15040 READELF=$ac_cv_prog_READELF
15041 if test -n "$READELF"; then
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
15043 $as_echo "$READELF" >&6; }
15044 else
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046 $as_echo "no" >&6; }
15051 if test -z "$ac_cv_prog_READELF"; then
15052 ac_ct_READELF=$READELF
15053 # Extract the first word of "readelf", so it can be a program name with args.
15054 set dummy readelf; ac_word=$2
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15056 $as_echo_n "checking for $ac_word... " >&6; }
15057 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059 else
15060 if test -n "$ac_ct_READELF"; then
15061 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
15062 else
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $PATH
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_prog_ac_ct_READELF="readelf"
15071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15074 done
15075 done
15076 IFS=$as_save_IFS
15080 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
15081 if test -n "$ac_ct_READELF"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15083 $as_echo "$ac_ct_READELF" >&6; }
15084 else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15089 if test "x$ac_ct_READELF" = x; then
15090 READELF=""
15091 else
15092 case $cross_compiling:$ac_tool_warned in
15093 yes:)
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15096 ac_tool_warned=yes ;;
15097 esac
15098 READELF=$ac_ct_READELF
15100 else
15101 READELF="$ac_cv_prog_READELF"
15105 # Test for 64-bit build.
15106 # The cast to long int works around a bug in the HP C Compiler
15107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15109 # This bug is HP SR number 8606223364.
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15111 $as_echo_n "checking size of size_t... " >&6; }
15112 if ${ac_cv_sizeof_size_t+:} false; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15117 else
15118 if test "$ac_cv_type_size_t" = yes; then
15119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15121 as_fn_error 77 "cannot compute sizeof (size_t)
15122 See \`config.log' for more details" "$LINENO" 5; }
15123 else
15124 ac_cv_sizeof_size_t=0
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15130 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15134 cat >>confdefs.h <<_ACEOF
15135 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15136 _ACEOF
15140 cat > local.exp <<EOF
15141 set CC_FOR_TARGET "$CC"
15142 set CXX_FOR_TARGET "$CXX"
15143 set compiler_vendor "$ax_cv_c_compiler_vendor"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15148 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15149 # Check whether --enable-maintainer-mode was given.
15150 if test "${enable_maintainer_mode+set}" = set; then :
15151 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15152 else
15153 USE_MAINTAINER_MODE=no
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15157 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15158 if test $USE_MAINTAINER_MODE = yes; then
15159 MAINTAINER_MODE_TRUE=
15160 MAINTAINER_MODE_FALSE='#'
15161 else
15162 MAINTAINER_MODE_TRUE='#'
15163 MAINTAINER_MODE_FALSE=
15166 MAINT=$MAINTAINER_MODE_TRUE
15170 for ac_header in sys/memfd.h
15171 do :
15172 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15173 if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_SYS_MEMFD_H 1
15176 _ACEOF
15180 done
15182 for ac_func in memfd_create
15183 do :
15184 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15185 if test "x$ac_cv_func_memfd_create" = xyes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_MEMFD_CREATE 1
15188 _ACEOF
15191 done
15194 for ac_header in sys/mman.h
15195 do :
15196 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_SYS_MMAN_H 1
15200 _ACEOF
15204 done
15206 for ac_func in mmap mkostemp mkstemp
15207 do :
15208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15210 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15213 _ACEOF
15216 done
15219 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15220 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15221 libffi_header_sys_mman_h=yes
15222 else
15223 libffi_header_sys_mman_h=no
15227 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15228 if test "x$ac_cv_func_mmap" = xyes; then :
15229 libffi_func_mmap=yes
15230 else
15231 libffi_func_mmap=no
15234 if test "$libffi_header_sys_mman_h" != yes \
15235 || test "$libffi_func_mmap" != yes; then
15236 ac_cv_func_mmap_file=no
15237 ac_cv_func_mmap_dev_zero=no
15238 ac_cv_func_mmap_anon=no
15239 else
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15241 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15242 if ${ac_cv_func_mmap_file+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 # Add a system to this blacklist if
15246 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15247 # memory area containing the same data that you'd get if you applied
15248 # read() to the same fd. The only system known to have a problem here
15249 # is VMS, where text files have record structure.
15250 case "$host_os" in
15251 vms* | ultrix*)
15252 ac_cv_func_mmap_file=no ;;
15254 ac_cv_func_mmap_file=yes;;
15255 esac
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15258 $as_echo "$ac_cv_func_mmap_file" >&6; }
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15260 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15261 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 # Add a system to this blacklist if it has mmap() but /dev/zero
15265 # does not exist, or if mmapping /dev/zero does not give anonymous
15266 # zeroed pages with both the following properties:
15267 # 1. If you map N consecutive pages in with one call, and then
15268 # unmap any subset of those pages, the pages that were not
15269 # explicitly unmapped remain accessible.
15270 # 2. If you map two adjacent blocks of memory and then unmap them
15271 # both at once, they must both go away.
15272 # Systems known to be in this category are Windows (all variants),
15273 # VMS, and Darwin.
15274 case "$host_os" in
15275 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15276 ac_cv_func_mmap_dev_zero=no ;;
15278 ac_cv_func_mmap_dev_zero=yes;;
15279 esac
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15282 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15284 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15286 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15287 if ${ac_cv_decl_map_anon+:} false; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/types.h>
15293 #include <sys/mman.h>
15294 #include <unistd.h>
15296 #ifndef MAP_ANONYMOUS
15297 #define MAP_ANONYMOUS MAP_ANON
15298 #endif
15301 main ()
15303 int n = MAP_ANONYMOUS;
15305 return 0;
15307 _ACEOF
15308 if ac_fn_c_try_compile "$LINENO"; then :
15309 ac_cv_decl_map_anon=yes
15310 else
15311 ac_cv_decl_map_anon=no
15313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15316 $as_echo "$ac_cv_decl_map_anon" >&6; }
15318 if test $ac_cv_decl_map_anon = no; then
15319 ac_cv_func_mmap_anon=no
15320 else
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15322 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15323 if ${ac_cv_func_mmap_anon+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15327 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15328 # doesn't give anonymous zeroed pages with the same properties listed
15329 # above for use of /dev/zero.
15330 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15331 case "$host_os" in
15332 vms* | cygwin* | pe | mingw* | sco* | udk* )
15333 ac_cv_func_mmap_anon=no ;;
15335 ac_cv_func_mmap_anon=yes;;
15336 esac
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15339 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15343 if test $ac_cv_func_mmap_file = yes; then
15345 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15348 if test $ac_cv_func_mmap_dev_zero = yes; then
15350 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15353 if test $ac_cv_func_mmap_anon = yes; then
15355 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15360 if test -d $srcdir/testsuite; then
15361 TESTSUBDIR_TRUE=
15362 TESTSUBDIR_FALSE='#'
15363 else
15364 TESTSUBDIR_TRUE='#'
15365 TESTSUBDIR_FALSE=
15369 TARGETDIR="unknown"
15370 HAVE_LONG_DOUBLE_VARIANT=0
15372 . ${srcdir}/configure.host
15374 if test -n "${UNSUPPORTED}"; then
15375 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15382 $as_echo_n "checking for ANSI C header files... " >&6; }
15383 if ${ac_cv_header_stdc+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #include <stdlib.h>
15389 #include <stdarg.h>
15390 #include <string.h>
15391 #include <float.h>
15394 main ()
15398 return 0;
15400 _ACEOF
15401 if ac_fn_c_try_compile "$LINENO"; then :
15402 ac_cv_header_stdc=yes
15403 else
15404 ac_cv_header_stdc=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15408 if test $ac_cv_header_stdc = yes; then
15409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 #include <string.h>
15414 _ACEOF
15415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15416 $EGREP "memchr" >/dev/null 2>&1; then :
15418 else
15419 ac_cv_header_stdc=no
15421 rm -f conftest*
15425 if test $ac_cv_header_stdc = yes; then
15426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <stdlib.h>
15431 _ACEOF
15432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15433 $EGREP "free" >/dev/null 2>&1; then :
15435 else
15436 ac_cv_header_stdc=no
15438 rm -f conftest*
15442 if test $ac_cv_header_stdc = yes; then
15443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15444 if test "$cross_compiling" = yes; then :
15446 else
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 #include <ctype.h>
15450 #include <stdlib.h>
15451 #if ((' ' & 0x0FF) == 0x020)
15452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15454 #else
15455 # define ISLOWER(c) \
15456 (('a' <= (c) && (c) <= 'i') \
15457 || ('j' <= (c) && (c) <= 'r') \
15458 || ('s' <= (c) && (c) <= 'z'))
15459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15460 #endif
15462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15464 main ()
15466 int i;
15467 for (i = 0; i < 256; i++)
15468 if (XOR (islower (i), ISLOWER (i))
15469 || toupper (i) != TOUPPER (i))
15470 return 2;
15471 return 0;
15473 _ACEOF
15474 if ac_fn_c_try_run "$LINENO"; then :
15476 else
15477 ac_cv_header_stdc=no
15479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15480 conftest.$ac_objext conftest.beam conftest.$ac_ext
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15486 $as_echo "$ac_cv_header_stdc" >&6; }
15487 if test $ac_cv_header_stdc = yes; then
15489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15493 for ac_func in memcpy
15494 do :
15495 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15496 if test "x$ac_cv_func_memcpy" = xyes; then :
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_MEMCPY 1
15499 _ACEOF
15502 done
15504 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15505 if test "x$ac_cv_type_size_t" = xyes; then :
15507 else
15509 cat >>confdefs.h <<_ACEOF
15510 #define size_t unsigned int
15511 _ACEOF
15515 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15516 # for constant arguments. Useless!
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15518 $as_echo_n "checking for working alloca.h... " >&6; }
15519 if ${ac_cv_working_alloca_h+:} false; then :
15520 $as_echo_n "(cached) " >&6
15521 else
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 #include <alloca.h>
15526 main ()
15528 char *p = (char *) alloca (2 * sizeof (int));
15529 if (p) return 0;
15531 return 0;
15533 _ACEOF
15534 if ac_fn_c_try_link "$LINENO"; then :
15535 ac_cv_working_alloca_h=yes
15536 else
15537 ac_cv_working_alloca_h=no
15539 rm -f core conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15543 $as_echo "$ac_cv_working_alloca_h" >&6; }
15544 if test $ac_cv_working_alloca_h = yes; then
15546 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15551 $as_echo_n "checking for alloca... " >&6; }
15552 if ${ac_cv_func_alloca_works+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #ifdef __GNUC__
15558 # define alloca __builtin_alloca
15559 #else
15560 # ifdef _MSC_VER
15561 # include <malloc.h>
15562 # define alloca _alloca
15563 # else
15564 # ifdef HAVE_ALLOCA_H
15565 # include <alloca.h>
15566 # else
15567 # ifdef _AIX
15568 #pragma alloca
15569 # else
15570 # ifndef alloca /* predefined by HP cc +Olibcalls */
15571 void *alloca (size_t);
15572 # endif
15573 # endif
15574 # endif
15575 # endif
15576 #endif
15579 main ()
15581 char *p = (char *) alloca (1);
15582 if (p) return 0;
15584 return 0;
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"; then :
15588 ac_cv_func_alloca_works=yes
15589 else
15590 ac_cv_func_alloca_works=no
15592 rm -f core conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15596 $as_echo "$ac_cv_func_alloca_works" >&6; }
15598 if test $ac_cv_func_alloca_works = yes; then
15600 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15602 else
15603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15604 # that cause trouble. Some versions do not even contain alloca or
15605 # contain a buggy version. If you still want to use their alloca,
15606 # use ar to extract alloca.o from them instead of compiling alloca.c.
15608 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15610 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15614 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15615 if ${ac_cv_os_cray+:} false; then :
15616 $as_echo_n "(cached) " >&6
15617 else
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 #if defined CRAY && ! defined CRAY2
15621 webecray
15622 #else
15623 wenotbecray
15624 #endif
15626 _ACEOF
15627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15628 $EGREP "webecray" >/dev/null 2>&1; then :
15629 ac_cv_os_cray=yes
15630 else
15631 ac_cv_os_cray=no
15633 rm -f conftest*
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15637 $as_echo "$ac_cv_os_cray" >&6; }
15638 if test $ac_cv_os_cray = yes; then
15639 for ac_func in _getb67 GETB67 getb67; do
15640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15644 cat >>confdefs.h <<_ACEOF
15645 #define CRAY_STACKSEG_END $ac_func
15646 _ACEOF
15648 break
15651 done
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15655 $as_echo_n "checking stack direction for C alloca... " >&6; }
15656 if ${ac_cv_c_stack_direction+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 if test "$cross_compiling" = yes; then :
15660 ac_cv_c_stack_direction=0
15661 else
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 $ac_includes_default
15666 find_stack_direction (int *addr, int depth)
15668 int dir, dummy = 0;
15669 if (! addr)
15670 addr = &dummy;
15671 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15672 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15673 return dir + dummy;
15677 main (int argc, char **argv)
15679 return find_stack_direction (0, argc + !argv + 20) < 0;
15681 _ACEOF
15682 if ac_fn_c_try_run "$LINENO"; then :
15683 ac_cv_c_stack_direction=1
15684 else
15685 ac_cv_c_stack_direction=-1
15687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15688 conftest.$ac_objext conftest.beam conftest.$ac_ext
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15693 $as_echo "$ac_cv_c_stack_direction" >&6; }
15694 cat >>confdefs.h <<_ACEOF
15695 #define STACK_DIRECTION $ac_cv_c_stack_direction
15696 _ACEOF
15702 # The cast to long int works around a bug in the HP C Compiler
15703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15705 # This bug is HP SR number 8606223364.
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15707 $as_echo_n "checking size of double... " >&6; }
15708 if ${ac_cv_sizeof_double+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15713 else
15714 if test "$ac_cv_type_double" = yes; then
15715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15717 as_fn_error 77 "cannot compute sizeof (double)
15718 See \`config.log' for more details" "$LINENO" 5; }
15719 else
15720 ac_cv_sizeof_double=0
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15726 $as_echo "$ac_cv_sizeof_double" >&6; }
15730 cat >>confdefs.h <<_ACEOF
15731 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15732 _ACEOF
15735 # The cast to long int works around a bug in the HP C Compiler
15736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15738 # This bug is HP SR number 8606223364.
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15740 $as_echo_n "checking size of long double... " >&6; }
15741 if ${ac_cv_sizeof_long_double+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15746 else
15747 if test "$ac_cv_type_long_double" = yes; then
15748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15750 as_fn_error 77 "cannot compute sizeof (long double)
15751 See \`config.log' for more details" "$LINENO" 5; }
15752 else
15753 ac_cv_sizeof_long_double=0
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15759 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15763 cat >>confdefs.h <<_ACEOF
15764 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15765 _ACEOF
15769 # Also AC_SUBST this variable for ffi.h.
15770 if test -z "$HAVE_LONG_DOUBLE"; then
15771 HAVE_LONG_DOUBLE=0
15772 if test $ac_cv_sizeof_long_double != 0; then
15773 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15775 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15777 HAVE_LONG_DOUBLE=1
15778 else
15779 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15780 HAVE_LONG_DOUBLE=1
15782 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15792 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15793 if ${ac_cv_c_bigendian+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 ac_cv_c_bigendian=unknown
15797 # See if we're dealing with a universal compiler.
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 #ifndef __APPLE_CC__
15801 not a universal capable compiler
15802 #endif
15803 typedef int dummy;
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"; then :
15808 # Check for potential -arch flags. It is not universal unless
15809 # there are at least two -arch flags with different values.
15810 ac_arch=
15811 ac_prev=
15812 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15813 if test -n "$ac_prev"; then
15814 case $ac_word in
15815 i?86 | x86_64 | ppc | ppc64)
15816 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15817 ac_arch=$ac_word
15818 else
15819 ac_cv_c_bigendian=universal
15820 break
15823 esac
15824 ac_prev=
15825 elif test "x$ac_word" = "x-arch"; then
15826 ac_prev=arch
15828 done
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831 if test $ac_cv_c_bigendian = unknown; then
15832 # See if sys/param.h defines the BYTE_ORDER macro.
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 #include <sys/types.h>
15836 #include <sys/param.h>
15839 main ()
15841 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15842 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15843 && LITTLE_ENDIAN)
15844 bogus endian macros
15845 #endif
15848 return 0;
15850 _ACEOF
15851 if ac_fn_c_try_compile "$LINENO"; then :
15852 # It does; now see whether it defined to BIG_ENDIAN or not.
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 #include <sys/types.h>
15856 #include <sys/param.h>
15859 main ()
15861 #if BYTE_ORDER != BIG_ENDIAN
15862 not big endian
15863 #endif
15866 return 0;
15868 _ACEOF
15869 if ac_fn_c_try_compile "$LINENO"; then :
15870 ac_cv_c_bigendian=yes
15871 else
15872 ac_cv_c_bigendian=no
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 if test $ac_cv_c_bigendian = unknown; then
15879 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 #include <limits.h>
15885 main ()
15887 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15888 bogus endian macros
15889 #endif
15892 return 0;
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 # It does; now see whether it defined to _BIG_ENDIAN or not.
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #include <limits.h>
15902 main ()
15904 #ifndef _BIG_ENDIAN
15905 not big endian
15906 #endif
15909 return 0;
15911 _ACEOF
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 ac_cv_c_bigendian=yes
15914 else
15915 ac_cv_c_bigendian=no
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921 if test $ac_cv_c_bigendian = unknown; then
15922 # Compile a test program.
15923 if test "$cross_compiling" = yes; then :
15924 # Try to guess by grepping values from an object file.
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 short int ascii_mm[] =
15928 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15929 short int ascii_ii[] =
15930 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15931 int use_ascii (int i) {
15932 return ascii_mm[i] + ascii_ii[i];
15934 short int ebcdic_ii[] =
15935 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15936 short int ebcdic_mm[] =
15937 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15938 int use_ebcdic (int i) {
15939 return ebcdic_mm[i] + ebcdic_ii[i];
15941 extern int foo;
15944 main ()
15946 return use_ascii (foo) == use_ebcdic (foo);
15948 return 0;
15950 _ACEOF
15951 if ac_fn_c_try_compile "$LINENO"; then :
15952 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15953 ac_cv_c_bigendian=yes
15955 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15956 if test "$ac_cv_c_bigendian" = unknown; then
15957 ac_cv_c_bigendian=no
15958 else
15959 # finding both strings is unlikely to happen, but who knows?
15960 ac_cv_c_bigendian=unknown
15964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15965 else
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 $ac_includes_default
15970 main ()
15973 /* Are we little or big endian? From Harbison&Steele. */
15974 union
15976 long int l;
15977 char c[sizeof (long int)];
15978 } u;
15979 u.l = 1;
15980 return u.c[sizeof (long int) - 1] == 1;
15983 return 0;
15985 _ACEOF
15986 if ac_fn_c_try_run "$LINENO"; then :
15987 ac_cv_c_bigendian=no
15988 else
15989 ac_cv_c_bigendian=yes
15991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15992 conftest.$ac_objext conftest.beam conftest.$ac_ext
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15998 $as_echo "$ac_cv_c_bigendian" >&6; }
15999 case $ac_cv_c_bigendian in #(
16000 yes)
16001 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16002 ;; #(
16004 ;; #(
16005 universal)
16007 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16009 ;; #(
16011 as_fn_error $? "unknown endianness
16012 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16013 esac
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16017 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16018 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
16019 $as_echo_n "(cached) " >&6
16020 else
16022 gcc_cv_as_cfi_pseudo_op=unknown
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 asm (".cfi_startproc\n\t.cfi_endproc");
16027 main ()
16031 return 0;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 gcc_cv_as_cfi_pseudo_op=yes
16036 else
16037 gcc_cv_as_cfi_pseudo_op=no
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16043 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16044 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16046 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16051 case "$TARGET" in
16052 SPARC)
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
16054 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
16055 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16059 save_CFLAGS="$CFLAGS"
16060 save_LDFLAGS="$LDFLAGS"
16061 CFLAGS="$CFLAGS -fpic"
16062 LDFLAGS="$LDFLAGS -shared"
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
16067 main ()
16071 return 0;
16073 _ACEOF
16074 if ac_fn_c_try_link "$LINENO"; then :
16075 libffi_cv_as_sparc_ua_pcrel=yes
16076 else
16077 libffi_cv_as_sparc_ua_pcrel=no
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 CFLAGS="$save_CFLAGS"
16082 LDFLAGS="$save_LDFLAGS"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
16085 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
16086 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
16088 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
16093 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
16094 if ${libffi_cv_as_register_pseudo_op+:} false; then :
16095 $as_echo_n "(cached) " >&6
16096 else
16098 libffi_cv_as_register_pseudo_op=unknown
16099 # Check if we have .register
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16104 main ()
16106 asm (".register %g2, #scratch");
16108 return 0;
16110 _ACEOF
16111 if ac_fn_c_try_compile "$LINENO"; then :
16112 libffi_cv_as_register_pseudo_op=yes
16113 else
16114 libffi_cv_as_register_pseudo_op=no
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
16120 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
16121 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
16123 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
16128 X86*)
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16130 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
16131 if ${libffi_cv_as_x86_pcrel+:} false; then :
16132 $as_echo_n "(cached) " >&6
16133 else
16135 libffi_cv_as_x86_pcrel=no
16136 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16137 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
16138 libffi_cv_as_x86_pcrel=yes
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
16143 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
16144 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
16146 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16151 S390)
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
16153 $as_echo_n "checking compiler uses zarch features... " >&6; }
16154 if ${libffi_cv_as_s390_zarch+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16158 libffi_cv_as_s390_zarch=no
16159 echo 'void foo(void) { bar(); bar(); }' > conftest.c
16160 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
16161 if grep -q brasl conftest.s; then
16162 libffi_cv_as_s390_zarch=yes
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
16168 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
16169 if test "x$libffi_cv_as_s390_zarch" = xyes; then
16171 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16175 esac
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16178 $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16179 if ${libffi_cv_as_ptrauth+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16183 libffi_cv_as_ptrauth=unknown
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16188 main ()
16191 #ifdef __clang__
16192 # if __has_feature(ptrauth_calls)
16193 # define HAVE_PTRAUTH 1
16194 # endif
16195 #endif
16197 #ifndef HAVE_PTRAUTH
16198 # error Pointer authentication not supported
16199 #endif
16202 return 0;
16204 _ACEOF
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206 libffi_cv_as_ptrauth=yes
16207 else
16208 libffi_cv_as_ptrauth=no
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16214 $as_echo "$libffi_cv_as_ptrauth" >&6; }
16215 if test "x$libffi_cv_as_ptrauth" = xyes; then
16217 $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16221 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16222 # Check whether --enable-pax_emutramp was given.
16223 if test "${enable_pax_emutramp+set}" = set; then :
16224 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16226 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16232 FFI_EXEC_TRAMPOLINE_TABLE=0
16233 case "$target" in
16234 *arm*-apple-* | aarch64-apple-*)
16235 FFI_EXEC_TRAMPOLINE_TABLE=1
16237 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16240 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16242 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16245 esac
16246 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16247 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16248 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16249 else
16250 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16251 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16256 if test x$TARGET = xX86_64; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16258 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16259 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16260 $as_echo_n "(cached) " >&6
16261 else
16263 cat > conftest1.s << EOF
16264 .text
16265 .globl foo
16266 foo:
16267 jmp bar
16268 .section .eh_frame,"a",@unwind
16269 bar:
16272 cat > conftest2.c << EOF
16273 extern void foo();
16274 int main(){foo();}
16277 libffi_cv_as_x86_64_unwind_section_type=no
16278 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16279 # since the compiler can support it and not the linker (ie old binutils)
16280 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16281 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16282 libffi_cv_as_x86_64_unwind_section_type=yes
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16287 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16288 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16290 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16295 if test "x$GCC" = "xyes"; then
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16297 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16298 if ${libffi_cv_ro_eh_frame+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16302 libffi_cv_ro_eh_frame=yes
16303 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16304 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16305 if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16306 libffi_cv_ro_eh_frame=no
16309 rm -f conftest.*
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16313 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16314 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16316 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16319 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16321 else
16323 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16328 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16329 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16330 $as_echo_n "(cached) " >&6
16331 else
16333 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16334 libffi_cv_hidden_visibility_attribute=no
16335 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; }; }; then
16341 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16342 libffi_cv_hidden_visibility_attribute=yes
16345 rm -f conftest.*
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16349 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16350 if test $libffi_cv_hidden_visibility_attribute = yes; then
16352 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16357 # See if makeinfo has been installed and is modern enough
16358 # that we can use it.
16360 # Extract the first word of "makeinfo", so it can be a program name with args.
16361 set dummy makeinfo; ac_word=$2
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16363 $as_echo_n "checking for $ac_word... " >&6; }
16364 if ${ac_cv_prog_MAKEINFO+:} false; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 if test -n "$MAKEINFO"; then
16368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16369 else
16370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16371 for as_dir in $PATH
16373 IFS=$as_save_IFS
16374 test -z "$as_dir" && as_dir=.
16375 for ac_exec_ext in '' $ac_executable_extensions; do
16376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16377 ac_cv_prog_MAKEINFO="makeinfo"
16378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16379 break 2
16381 done
16382 done
16383 IFS=$as_save_IFS
16387 MAKEINFO=$ac_cv_prog_MAKEINFO
16388 if test -n "$MAKEINFO"; then
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16390 $as_echo "$MAKEINFO" >&6; }
16391 else
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16393 $as_echo "no" >&6; }
16397 if test -n "$MAKEINFO"; then
16398 # Found it, now check the version.
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16400 $as_echo_n "checking for modern makeinfo... " >&6; }
16401 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16407 case $ac_prog_version in
16408 '') gcc_cv_prog_makeinfo_modern=no;;
16409 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
16410 *) gcc_cv_prog_makeinfo_modern=no;;
16411 esac
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16416 else
16417 gcc_cv_prog_makeinfo_modern=no
16419 if test $gcc_cv_prog_makeinfo_modern = no; then
16420 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16423 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16424 BUILD_DOCS_TRUE=
16425 BUILD_DOCS_FALSE='#'
16426 else
16427 BUILD_DOCS_TRUE='#'
16428 BUILD_DOCS_FALSE=
16438 TARGET_OBJ=
16439 for i in $SOURCES; do
16440 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16441 done
16447 # Check whether --enable-debug was given.
16448 if test "${enable_debug+set}" = set; then :
16449 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16451 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16456 if test "$enable_debug" = "yes"; then
16457 FFI_DEBUG_TRUE=
16458 FFI_DEBUG_FALSE='#'
16459 else
16460 FFI_DEBUG_TRUE='#'
16461 FFI_DEBUG_FALSE=
16465 # Check whether --enable-structs was given.
16466 if test "${enable_structs+set}" = set; then :
16467 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16469 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16474 if test "$enable_debug" = "yes"; then
16475 FFI_DEBUG_TRUE=
16476 FFI_DEBUG_FALSE='#'
16477 else
16478 FFI_DEBUG_TRUE='#'
16479 FFI_DEBUG_FALSE=
16483 # Check whether --enable-raw-api was given.
16484 if test "${enable_raw_api+set}" = set; then :
16485 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16487 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16493 # Check whether --enable-exec-static-tramp was given.
16494 if test "${enable_exec_static_tramp+set}" = set; then :
16495 enableval=$enable_exec_static_tramp;
16499 if test "$enable_exec_static_tramp" = yes; then
16500 case "$target" in
16501 *-cygwin*)
16503 *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16505 $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16508 esac
16511 # Check whether --enable-purify-safety was given.
16512 if test "${enable_purify_safety+set}" = set; then :
16513 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16515 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16522 # Check whether --with-toolexeclibdir was given.
16523 if test "${with_toolexeclibdir+set}" = set; then :
16524 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16528 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16530 esac
16531 else
16532 with_toolexeclibdir=no
16537 if test -n "$with_cross_host" &&
16538 test x"$with_cross_host" != x"no"; then
16539 toolexecdir='$(exec_prefix)/$(target_alias)'
16540 case ${with_toolexeclibdir} in
16542 toolexeclibdir='$(toolexecdir)/lib'
16545 toolexeclibdir=${with_toolexeclibdir}
16547 esac
16548 else
16549 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16550 toolexeclibdir='$(libdir)'
16552 multi_os_directory=`$CC -print-multi-os-directory`
16553 case $multi_os_directory in
16554 .) ;; # Avoid trailing /.
16555 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16556 esac
16560 if test "${multilib}" = "yes"; then
16561 multilib_arg="--enable-multilib"
16562 else
16563 multilib_arg=
16566 # Check linker support.
16569 # Check whether --with-gnu-ld was given.
16570 if test "${with_gnu_ld+set}" = set; then :
16571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16572 else
16573 with_gnu_ld=no
16576 ac_prog=ld
16577 if test "$GCC" = yes; then
16578 # Check if gcc -print-prog-name=ld gives a path.
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16580 $as_echo_n "checking for ld used by $CC... " >&6; }
16581 case $host in
16582 *-*-mingw*)
16583 # gcc leaves a trailing carriage return which upsets mingw
16584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16587 esac
16588 case $ac_prog in
16589 # Accept absolute paths.
16590 [\\/]* | ?:[\\/]*)
16591 re_direlt='/[^/][^/]*/\.\./'
16592 # Canonicalize the pathname of ld
16593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16596 done
16597 test -z "$LD" && LD="$ac_prog"
16600 # If it fails, then pretend we aren't using GCC.
16601 ac_prog=ld
16604 # If it is relative, then search for the first ld in PATH.
16605 with_gnu_ld=unknown
16607 esac
16608 elif test "$with_gnu_ld" = yes; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16610 $as_echo_n "checking for GNU ld... " >&6; }
16611 else
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16613 $as_echo_n "checking for non-GNU ld... " >&6; }
16615 if ${lt_cv_path_LD+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 if test -z "$LD"; then
16619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16620 for ac_dir in $PATH; do
16621 IFS="$lt_save_ifs"
16622 test -z "$ac_dir" && ac_dir=.
16623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16624 lt_cv_path_LD="$ac_dir/$ac_prog"
16625 # Check to see if the program is GNU ld. I'd rather use --version,
16626 # but apparently some variants of GNU ld only accept -v.
16627 # Break only if it was the GNU/non-GNU ld that we prefer.
16628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16629 *GNU* | *'with BFD'*)
16630 test "$with_gnu_ld" != no && break
16633 test "$with_gnu_ld" != yes && break
16635 esac
16637 done
16638 IFS="$lt_save_ifs"
16639 else
16640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16644 LD="$lt_cv_path_LD"
16645 if test -n "$LD"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16647 $as_echo "$LD" >&6; }
16648 else
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16652 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16655 if ${lt_cv_prog_gnu_ld+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16659 case `$LD -v 2>&1 </dev/null` in
16660 *GNU* | *'with BFD'*)
16661 lt_cv_prog_gnu_ld=yes
16664 lt_cv_prog_gnu_ld=no
16666 esac
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16670 with_gnu_ld=$lt_cv_prog_gnu_ld
16678 # If we're not using GNU ld, then there's no point in even trying these
16679 # tests. Check for that first. We should have already tested for gld
16680 # by now (in libtool), but require it now just to be safe...
16681 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16682 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16686 # The name set by libtool depends on the version of libtool. Shame on us
16687 # for depending on an impl detail, but c'est la vie. Older versions used
16688 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16689 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16690 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16691 # set (hence we're using an older libtool), then set it.
16692 if test x${with_gnu_ld+set} != xset; then
16693 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16694 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16695 with_gnu_ld=no
16696 else
16697 with_gnu_ld=$ac_cv_prog_gnu_ld
16701 # Start by getting the version number. I think the libtool test already
16702 # does some of this, but throws away the result.
16703 libat_ld_is_gold=no
16704 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16705 libat_ld_is_gold=yes
16707 libat_ld_is_lld=no
16708 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16709 libat_ld_is_lld=yes
16712 ldver=`$LD --version 2>/dev/null |
16713 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'`
16715 libat_gnu_ld_version=`echo $ldver | \
16716 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16718 # Set --gc-sections.
16719 if test "$with_gnu_ld" = "notbroken"; then
16720 # GNU ld it is! Joy and bunny rabbits!
16722 # All these tests are for C++; save the language and the compiler flags.
16723 # Need to do this so that g++ won't try to link in libstdc++
16724 ac_test_CFLAGS="${CFLAGS+set}"
16725 ac_save_CFLAGS="$CFLAGS"
16726 CFLAGS='-x c++ -Wl,--gc-sections'
16728 # Check for -Wl,--gc-sections
16729 # XXX This test is broken at the moment, as symbols required for linking
16730 # are now in libsupc++ (not built yet). In addition, this test has
16731 # cored on solaris in the past. In addition, --gc-sections doesn't
16732 # really work at the moment (keeps on discarding used sections, first
16733 # .eh_frame and now some of the glibc sections for iconv).
16734 # Bzzzzt. Thanks for playing, maybe next time.
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16736 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16737 if test "$cross_compiling" = yes; then :
16738 ac_sectionLDflags=yes
16739 else
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16743 int main(void)
16745 try { throw 1; }
16746 catch (...) { };
16747 return 0;
16750 _ACEOF
16751 if ac_fn_c_try_run "$LINENO"; then :
16752 ac_sectionLDflags=yes
16753 else
16754 ac_sectionLDflags=no
16756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16757 conftest.$ac_objext conftest.beam conftest.$ac_ext
16760 if test "$ac_test_CFLAGS" = set; then
16761 CFLAGS="$ac_save_CFLAGS"
16762 else
16763 # this is the suspicious part
16764 CFLAGS=''
16766 if test "$ac_sectionLDflags" = "yes"; then
16767 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16770 $as_echo "$ac_sectionLDflags" >&6; }
16773 # Set linker optimization flags.
16774 if test x"$with_gnu_ld" = x"yes"; then
16775 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16783 # Check whether --enable-symvers was given.
16784 if test "${enable_symvers+set}" = set; then :
16785 enableval=$enable_symvers;
16786 case "$enableval" in
16787 yes|no|gnu*|sun) ;;
16788 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16789 esac
16791 else
16792 enable_symvers=yes
16797 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16798 # don't know enough about $LD to do tricks...
16801 # Turn a 'yes' into a suitable default.
16802 if test x$enable_symvers = xyes ; then
16803 # FIXME The following test is too strict, in theory.
16804 if test $enable_shared = no || test "x$LD" = x; then
16805 enable_symvers=no
16806 else
16807 if test $with_gnu_ld = yes ; then
16808 enable_symvers=gnu
16809 else
16810 case ${target_os} in
16811 # Sun symbol versioning exists since Solaris 2.5.
16812 solaris2.[5-9]* | solaris2.1[0-9]*)
16813 enable_symvers=sun ;;
16815 enable_symvers=no ;;
16816 esac
16821 # Check if 'sun' was requested on non-Solaris 2 platforms.
16822 if test x$enable_symvers = xsun ; then
16823 case ${target_os} in
16824 solaris2*)
16825 # All fine.
16828 # Unlikely to work.
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16830 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16832 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16834 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16835 enable_symvers=no
16837 esac
16840 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16841 if test $enable_symvers != no; then
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16843 $as_echo_n "checking for shared libgcc... " >&6; }
16844 ac_save_CFLAGS="$CFLAGS"
16845 CFLAGS=' -lgcc_s'
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16850 main ()
16852 return 0;
16854 return 0;
16856 _ACEOF
16857 if ac_fn_c_try_link "$LINENO"; then :
16858 libat_shared_libgcc=yes
16859 else
16860 libat_shared_libgcc=no
16862 rm -f core conftest.err conftest.$ac_objext \
16863 conftest$ac_exeext conftest.$ac_ext
16864 CFLAGS="$ac_save_CFLAGS"
16865 if test $libat_shared_libgcc = no; then
16866 cat > conftest.c <<EOF
16867 int main (void) { return 0; }
16869 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16870 -shared -shared-libgcc -o conftest.so \
16871 conftest.c -v 2>&1 >/dev/null \
16872 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16873 rm -f conftest.c conftest.so
16874 if test x${libat_libgcc_s_suffix+set} = xset; then
16875 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* end confdefs.h. */
16880 main ()
16882 return 0;
16884 return 0;
16886 _ACEOF
16887 if ac_fn_c_try_link "$LINENO"; then :
16888 libat_shared_libgcc=yes
16890 rm -f core conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16892 CFLAGS="$ac_save_CFLAGS"
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16896 $as_echo "$libat_shared_libgcc" >&6; }
16899 # For GNU ld, we need at least this version. The format is described in
16900 # LIBFFI_CHECK_LINKER_FEATURES above.
16901 libat_min_gnu_ld_version=21400
16902 # XXXXXXXXXXX libat_gnu_ld_version=21390
16904 # Check to see if unspecified "yes" value can win, given results above.
16905 # Change "yes" into either "no" or a style name.
16906 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16907 if test $with_gnu_ld = yes; then
16908 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16909 enable_symvers=gnu
16910 elif test $libat_ld_is_gold = yes ; then
16911 enable_symvers=gnu
16912 elif test $libat_ld_is_lld = yes ; then
16913 enable_symvers=gnu
16914 else
16915 # The right tools, the right setup, but too old. Fallbacks?
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16917 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16919 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16921 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16923 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16924 if test $libat_gnu_ld_version -ge 21200 ; then
16925 # Globbing fix is present, proper block support is not.
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16927 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16928 enable_symvers=no
16929 else
16930 # 2.11 or older.
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16932 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16933 enable_symvers=no
16936 elif test $enable_symvers = sun; then
16937 : All interesting versions of Sun ld support sun style symbol versioning.
16938 else
16939 # just fail for now
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16941 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16943 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16945 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16947 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16948 enable_symvers=no
16951 if test $enable_symvers = gnu; then
16953 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16957 if test $enable_symvers != no; then
16958 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
16959 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
16960 else
16961 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
16962 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
16965 if test $enable_symvers = gnu; then
16966 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16967 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16968 else
16969 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16970 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16973 if test $enable_symvers = sun; then
16974 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16975 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16976 else
16977 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16978 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16982 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16985 # Determine what GCC version number to use in filesystem paths.
16987 get_gcc_base_ver="cat"
16989 # Check whether --with-gcc-major-version-only was given.
16990 if test "${with_gcc_major_version_only+set}" = set; then :
16991 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16992 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17000 ac_config_commands="$ac_config_commands include"
17002 ac_config_commands="$ac_config_commands src"
17005 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
17008 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
17011 cat >confcache <<\_ACEOF
17012 # This file is a shell script that caches the results of configure
17013 # tests run on this system so they can be shared between configure
17014 # scripts and configure runs, see configure's option --config-cache.
17015 # It is not useful on other systems. If it contains results you don't
17016 # want to keep, you may remove or edit it.
17018 # config.status only pays attention to the cache file if you give it
17019 # the --recheck option to rerun configure.
17021 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17022 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17023 # following values.
17025 _ACEOF
17027 # The following way of writing the cache mishandles newlines in values,
17028 # but we know of no workaround that is simple, portable, and efficient.
17029 # So, we kill variables containing newlines.
17030 # Ultrix sh set writes to stderr and can't be redirected directly,
17031 # and sets the high bit in the cache file unless we assign to the vars.
17033 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17034 eval ac_val=\$$ac_var
17035 case $ac_val in #(
17036 *${as_nl}*)
17037 case $ac_var in #(
17038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17039 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17040 esac
17041 case $ac_var in #(
17042 _ | IFS | as_nl) ;; #(
17043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17044 *) { eval $ac_var=; unset $ac_var;} ;;
17045 esac ;;
17046 esac
17047 done
17049 (set) 2>&1 |
17050 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17051 *${as_nl}ac_space=\ *)
17052 # `set' does not quote correctly, so add quotes: double-quote
17053 # substitution turns \\\\ into \\, and sed turns \\ into \.
17054 sed -n \
17055 "s/'/'\\\\''/g;
17056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17057 ;; #(
17059 # `set' quotes correctly as required by POSIX, so do not add quotes.
17060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17062 esac |
17063 sort
17065 sed '
17066 /^ac_cv_env_/b end
17067 t clear
17068 :clear
17069 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17070 t end
17071 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17072 :end' >>confcache
17073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17074 if test -w "$cache_file"; then
17075 if test "x$cache_file" != "x/dev/null"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17077 $as_echo "$as_me: updating cache $cache_file" >&6;}
17078 if test ! -f "$cache_file" || test -h "$cache_file"; then
17079 cat confcache >"$cache_file"
17080 else
17081 case $cache_file in #(
17082 */* | ?:*)
17083 mv -f confcache "$cache_file"$$ &&
17084 mv -f "$cache_file"$$ "$cache_file" ;; #(
17086 mv -f confcache "$cache_file" ;;
17087 esac
17090 else
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17092 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17095 rm -f confcache
17097 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17098 # Let make expand exec_prefix.
17099 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17101 DEFS=-DHAVE_CONFIG_H
17103 ac_libobjs=
17104 ac_ltlibobjs=
17106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17107 # 1. Remove the extension, and $U if already installed.
17108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17111 # will be set to the directory where LIBOBJS objects are built.
17112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17114 done
17115 LIBOBJS=$ac_libobjs
17117 LTLIBOBJS=$ac_ltlibobjs
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17121 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17122 if test -n "$am_sleep_pid"; then
17123 # Hide warnings about reused PIDs.
17124 wait $am_sleep_pid 2>/dev/null
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17127 $as_echo "done" >&6; }
17128 if test -n "$EXEEXT"; then
17129 am__EXEEXT_TRUE=
17130 am__EXEEXT_FALSE='#'
17131 else
17132 am__EXEEXT_TRUE='#'
17133 am__EXEEXT_FALSE=
17136 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17137 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17141 as_fn_error $? "conditional \"AMDEP\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17145 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17149 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17153 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17157 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17161 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
17166 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
17167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17169 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17170 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17173 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17174 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17177 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17178 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17181 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17182 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17186 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17189 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17190 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17194 : "${CONFIG_STATUS=./config.status}"
17195 ac_write_fail=0
17196 ac_clean_files_save=$ac_clean_files
17197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17200 as_write_fail=0
17201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17202 #! $SHELL
17203 # Generated by $as_me.
17204 # Run this file to recreate the current configuration.
17205 # Compiler output produced by configure, useful for debugging
17206 # configure, is in config.log if it exists.
17208 debug=false
17209 ac_cs_recheck=false
17210 ac_cs_silent=false
17212 SHELL=\${CONFIG_SHELL-$SHELL}
17213 export SHELL
17214 _ASEOF
17215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17216 ## -------------------- ##
17217 ## M4sh Initialization. ##
17218 ## -------------------- ##
17220 # Be more Bourne compatible
17221 DUALCASE=1; export DUALCASE # for MKS sh
17222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17223 emulate sh
17224 NULLCMD=:
17225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17226 # is contrary to our usage. Disable this feature.
17227 alias -g '${1+"$@"}'='"$@"'
17228 setopt NO_GLOB_SUBST
17229 else
17230 case `(set -o) 2>/dev/null` in #(
17231 *posix*) :
17232 set -o posix ;; #(
17233 *) :
17235 esac
17239 as_nl='
17241 export as_nl
17242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17243 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17246 # Prefer a ksh shell builtin over an external printf program on Solaris,
17247 # but without wasting forks for bash or zsh.
17248 if test -z "$BASH_VERSION$ZSH_VERSION" \
17249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17250 as_echo='print -r --'
17251 as_echo_n='print -rn --'
17252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17253 as_echo='printf %s\n'
17254 as_echo_n='printf %s'
17255 else
17256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17258 as_echo_n='/usr/ucb/echo -n'
17259 else
17260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17261 as_echo_n_body='eval
17262 arg=$1;
17263 case $arg in #(
17264 *"$as_nl"*)
17265 expr "X$arg" : "X\\(.*\\)$as_nl";
17266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17267 esac;
17268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17270 export as_echo_n_body
17271 as_echo_n='sh -c $as_echo_n_body as_echo'
17273 export as_echo_body
17274 as_echo='sh -c $as_echo_body as_echo'
17277 # The user is always right.
17278 if test "${PATH_SEPARATOR+set}" != set; then
17279 PATH_SEPARATOR=:
17280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17282 PATH_SEPARATOR=';'
17287 # IFS
17288 # We need space, tab and new line, in precisely that order. Quoting is
17289 # there to prevent editors from complaining about space-tab.
17290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17291 # splitting by setting IFS to empty value.)
17292 IFS=" "" $as_nl"
17294 # Find who we are. Look in the path if we contain no directory separator.
17295 as_myself=
17296 case $0 in #((
17297 *[\\/]* ) as_myself=$0 ;;
17298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in $PATH
17301 IFS=$as_save_IFS
17302 test -z "$as_dir" && as_dir=.
17303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17304 done
17305 IFS=$as_save_IFS
17308 esac
17309 # We did not find ourselves, most probably we were run as `sh COMMAND'
17310 # in which case we are not to be found in the path.
17311 if test "x$as_myself" = x; then
17312 as_myself=$0
17314 if test ! -f "$as_myself"; then
17315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17316 exit 1
17319 # Unset variables that we do not need and which cause bugs (e.g. in
17320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17321 # suppresses any "Segmentation fault" message there. '((' could
17322 # trigger a bug in pdksh 5.2.14.
17323 for as_var in BASH_ENV ENV MAIL MAILPATH
17324 do eval test x\${$as_var+set} = xset \
17325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17326 done
17327 PS1='$ '
17328 PS2='> '
17329 PS4='+ '
17331 # NLS nuisances.
17332 LC_ALL=C
17333 export LC_ALL
17334 LANGUAGE=C
17335 export LANGUAGE
17337 # CDPATH.
17338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17342 # ----------------------------------------
17343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17345 # script with STATUS, using 1 if that was 0.
17346 as_fn_error ()
17348 as_status=$1; test $as_status -eq 0 && as_status=1
17349 if test "$4"; then
17350 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17353 $as_echo "$as_me: error: $2" >&2
17354 as_fn_exit $as_status
17355 } # as_fn_error
17358 # as_fn_set_status STATUS
17359 # -----------------------
17360 # Set $? to STATUS, without forking.
17361 as_fn_set_status ()
17363 return $1
17364 } # as_fn_set_status
17366 # as_fn_exit STATUS
17367 # -----------------
17368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17369 as_fn_exit ()
17371 set +e
17372 as_fn_set_status $1
17373 exit $1
17374 } # as_fn_exit
17376 # as_fn_unset VAR
17377 # ---------------
17378 # Portably unset VAR.
17379 as_fn_unset ()
17381 { eval $1=; unset $1;}
17383 as_unset=as_fn_unset
17384 # as_fn_append VAR VALUE
17385 # ----------------------
17386 # Append the text in VALUE to the end of the definition contained in VAR. Take
17387 # advantage of any shell optimizations that allow amortized linear growth over
17388 # repeated appends, instead of the typical quadratic growth present in naive
17389 # implementations.
17390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17391 eval 'as_fn_append ()
17393 eval $1+=\$2
17395 else
17396 as_fn_append ()
17398 eval $1=\$$1\$2
17400 fi # as_fn_append
17402 # as_fn_arith ARG...
17403 # ------------------
17404 # Perform arithmetic evaluation on the ARGs, and store the result in the
17405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17406 # must be portable across $(()) and expr.
17407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17408 eval 'as_fn_arith ()
17410 as_val=$(( $* ))
17412 else
17413 as_fn_arith ()
17415 as_val=`expr "$@" || test $? -eq 1`
17417 fi # as_fn_arith
17420 if expr a : '\(a\)' >/dev/null 2>&1 &&
17421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17422 as_expr=expr
17423 else
17424 as_expr=false
17427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17428 as_basename=basename
17429 else
17430 as_basename=false
17433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17434 as_dirname=dirname
17435 else
17436 as_dirname=false
17439 as_me=`$as_basename -- "$0" ||
17440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17441 X"$0" : 'X\(//\)$' \| \
17442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17443 $as_echo X/"$0" |
17444 sed '/^.*\/\([^/][^/]*\)\/*$/{
17445 s//\1/
17448 /^X\/\(\/\/\)$/{
17449 s//\1/
17452 /^X\/\(\/\).*/{
17453 s//\1/
17456 s/.*/./; q'`
17458 # Avoid depending upon Character Ranges.
17459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17462 as_cr_digits='0123456789'
17463 as_cr_alnum=$as_cr_Letters$as_cr_digits
17465 ECHO_C= ECHO_N= ECHO_T=
17466 case `echo -n x` in #(((((
17467 -n*)
17468 case `echo 'xy\c'` in
17469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17470 xy) ECHO_C='\c';;
17471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17472 ECHO_T=' ';;
17473 esac;;
17475 ECHO_N='-n';;
17476 esac
17478 rm -f conf$$ conf$$.exe conf$$.file
17479 if test -d conf$$.dir; then
17480 rm -f conf$$.dir/conf$$.file
17481 else
17482 rm -f conf$$.dir
17483 mkdir conf$$.dir 2>/dev/null
17485 if (echo >conf$$.file) 2>/dev/null; then
17486 if ln -s conf$$.file conf$$ 2>/dev/null; then
17487 as_ln_s='ln -s'
17488 # ... but there are two gotchas:
17489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17491 # In both cases, we have to default to `cp -pR'.
17492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17493 as_ln_s='cp -pR'
17494 elif ln conf$$.file conf$$ 2>/dev/null; then
17495 as_ln_s=ln
17496 else
17497 as_ln_s='cp -pR'
17499 else
17500 as_ln_s='cp -pR'
17502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17503 rmdir conf$$.dir 2>/dev/null
17506 # as_fn_mkdir_p
17507 # -------------
17508 # Create "$as_dir" as a directory, including parents if necessary.
17509 as_fn_mkdir_p ()
17512 case $as_dir in #(
17513 -*) as_dir=./$as_dir;;
17514 esac
17515 test -d "$as_dir" || eval $as_mkdir_p || {
17516 as_dirs=
17517 while :; do
17518 case $as_dir in #(
17519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17520 *) as_qdir=$as_dir;;
17521 esac
17522 as_dirs="'$as_qdir' $as_dirs"
17523 as_dir=`$as_dirname -- "$as_dir" ||
17524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17525 X"$as_dir" : 'X\(//\)[^/]' \| \
17526 X"$as_dir" : 'X\(//\)$' \| \
17527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17528 $as_echo X"$as_dir" |
17529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17530 s//\1/
17533 /^X\(\/\/\)[^/].*/{
17534 s//\1/
17537 /^X\(\/\/\)$/{
17538 s//\1/
17541 /^X\(\/\).*/{
17542 s//\1/
17545 s/.*/./; q'`
17546 test -d "$as_dir" && break
17547 done
17548 test -z "$as_dirs" || eval "mkdir $as_dirs"
17549 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17552 } # as_fn_mkdir_p
17553 if mkdir -p . 2>/dev/null; then
17554 as_mkdir_p='mkdir -p "$as_dir"'
17555 else
17556 test -d ./-p && rmdir ./-p
17557 as_mkdir_p=false
17561 # as_fn_executable_p FILE
17562 # -----------------------
17563 # Test if FILE is an executable regular file.
17564 as_fn_executable_p ()
17566 test -f "$1" && test -x "$1"
17567 } # as_fn_executable_p
17568 as_test_x='test -x'
17569 as_executable_p=as_fn_executable_p
17571 # Sed expression to map a string onto a valid CPP name.
17572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17574 # Sed expression to map a string onto a valid variable name.
17575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17578 exec 6>&1
17579 ## ----------------------------------- ##
17580 ## Main body of $CONFIG_STATUS script. ##
17581 ## ----------------------------------- ##
17582 _ASEOF
17583 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 # Save the log message, to keep $0 and so on meaningful, and to
17587 # report actual input values of CONFIG_FILES etc. instead of their
17588 # values after options handling.
17589 ac_log="
17590 This file was extended by libffi $as_me 3.4.2, which was
17591 generated by GNU Autoconf 2.69. Invocation command line was
17593 CONFIG_FILES = $CONFIG_FILES
17594 CONFIG_HEADERS = $CONFIG_HEADERS
17595 CONFIG_LINKS = $CONFIG_LINKS
17596 CONFIG_COMMANDS = $CONFIG_COMMANDS
17597 $ $0 $@
17599 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17602 _ACEOF
17604 case $ac_config_files in *"
17605 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17606 esac
17608 case $ac_config_headers in *"
17609 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17610 esac
17613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17614 # Files that config.status was made for.
17615 config_files="$ac_config_files"
17616 config_headers="$ac_config_headers"
17617 config_links="$ac_config_links"
17618 config_commands="$ac_config_commands"
17620 _ACEOF
17622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17623 ac_cs_usage="\
17624 \`$as_me' instantiates files and other configuration actions
17625 from templates according to the current configuration. Unless the files
17626 and actions are specified as TAGs, all are instantiated by default.
17628 Usage: $0 [OPTION]... [TAG]...
17630 -h, --help print this help, then exit
17631 -V, --version print version number and configuration settings, then exit
17632 --config print configuration, then exit
17633 -q, --quiet, --silent
17634 do not print progress messages
17635 -d, --debug don't remove temporary files
17636 --recheck update $as_me by reconfiguring in the same conditions
17637 --file=FILE[:TEMPLATE]
17638 instantiate the configuration file FILE
17639 --header=FILE[:TEMPLATE]
17640 instantiate the configuration header FILE
17642 Configuration files:
17643 $config_files
17645 Configuration headers:
17646 $config_headers
17648 Configuration links:
17649 $config_links
17651 Configuration commands:
17652 $config_commands
17654 Report bugs to <http://github.com/libffi/libffi/issues>."
17656 _ACEOF
17657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17658 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17659 ac_cs_version="\\
17660 libffi config.status 3.4.2
17661 configured by $0, generated by GNU Autoconf 2.69,
17662 with options \\"\$ac_cs_config\\"
17664 Copyright (C) 2012 Free Software Foundation, Inc.
17665 This config.status script is free software; the Free Software Foundation
17666 gives unlimited permission to copy, distribute and modify it."
17668 ac_pwd='$ac_pwd'
17669 srcdir='$srcdir'
17670 INSTALL='$INSTALL'
17671 MKDIR_P='$MKDIR_P'
17672 AWK='$AWK'
17673 test -n "\$AWK" || AWK=awk
17674 _ACEOF
17676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17677 # The default lists apply if the user does not specify any file.
17678 ac_need_defaults=:
17679 while test $# != 0
17681 case $1 in
17682 --*=?*)
17683 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17684 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17685 ac_shift=:
17687 --*=)
17688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17689 ac_optarg=
17690 ac_shift=:
17693 ac_option=$1
17694 ac_optarg=$2
17695 ac_shift=shift
17697 esac
17699 case $ac_option in
17700 # Handling of the options.
17701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17702 ac_cs_recheck=: ;;
17703 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17704 $as_echo "$ac_cs_version"; exit ;;
17705 --config | --confi | --conf | --con | --co | --c )
17706 $as_echo "$ac_cs_config"; exit ;;
17707 --debug | --debu | --deb | --de | --d | -d )
17708 debug=: ;;
17709 --file | --fil | --fi | --f )
17710 $ac_shift
17711 case $ac_optarg in
17712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17713 '') as_fn_error $? "missing file argument" ;;
17714 esac
17715 as_fn_append CONFIG_FILES " '$ac_optarg'"
17716 ac_need_defaults=false;;
17717 --header | --heade | --head | --hea )
17718 $ac_shift
17719 case $ac_optarg in
17720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17721 esac
17722 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17723 ac_need_defaults=false;;
17724 --he | --h)
17725 # Conflict between --help and --header
17726 as_fn_error $? "ambiguous option: \`$1'
17727 Try \`$0 --help' for more information.";;
17728 --help | --hel | -h )
17729 $as_echo "$ac_cs_usage"; exit ;;
17730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17732 ac_cs_silent=: ;;
17734 # This is an error.
17735 -*) as_fn_error $? "unrecognized option: \`$1'
17736 Try \`$0 --help' for more information." ;;
17738 *) as_fn_append ac_config_targets " $1"
17739 ac_need_defaults=false ;;
17741 esac
17742 shift
17743 done
17745 ac_configure_extra_args=
17747 if $ac_cs_silent; then
17748 exec 6>/dev/null
17749 ac_configure_extra_args="$ac_configure_extra_args --silent"
17752 _ACEOF
17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754 if \$ac_cs_recheck; then
17755 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17756 shift
17757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17758 CONFIG_SHELL='$SHELL'
17759 export CONFIG_SHELL
17760 exec "\$@"
17763 _ACEOF
17764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765 exec 5>>config.log
17767 echo
17768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17769 ## Running $as_me. ##
17770 _ASBOX
17771 $as_echo "$ac_log"
17772 } >&5
17774 _ACEOF
17775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17777 # INIT-COMMANDS
17780 srcdir="$srcdir"
17781 host="$host"
17782 target="$target"
17783 with_multisubdir="$with_multisubdir"
17784 with_multisrctop="$with_multisrctop"
17785 with_target_subdir="$with_target_subdir"
17786 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17787 multi_basedir="$multi_basedir"
17788 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17789 CC="$CC"
17790 CXX="$CXX"
17791 GFORTRAN="$GFORTRAN"
17792 GDC="$GDC"
17793 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17796 # The HP-UX ksh and POSIX shell print the target directory to stdout
17797 # if CDPATH is set.
17798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17800 sed_quote_subst='$sed_quote_subst'
17801 double_quote_subst='$double_quote_subst'
17802 delay_variable_subst='$delay_variable_subst'
17803 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17804 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17805 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17806 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17807 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17808 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17809 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17810 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17811 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17812 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17813 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17814 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17815 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17816 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17817 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17818 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17819 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17820 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17821 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17822 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17823 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17824 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17825 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17826 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17827 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17828 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17829 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17830 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17831 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17832 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17833 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17834 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17835 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17836 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17837 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17838 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17839 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17840 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17841 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17842 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17843 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17844 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17845 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17846 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17847 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17848 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17849 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17850 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17851 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"`'
17852 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17853 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17854 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17855 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17856 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17857 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17858 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17859 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17860 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17861 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17862 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17863 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17864 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17865 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17866 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17867 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17868 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17869 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17870 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17871 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17872 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17873 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17875 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17876 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17877 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17878 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17879 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17880 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17881 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17882 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17885 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17887 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17888 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17889 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17890 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17891 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17892 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17893 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17894 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17895 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17896 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17897 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17898 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17899 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17900 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17901 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17902 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17903 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17904 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17905 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17906 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17907 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17908 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17909 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17910 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17911 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17912 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17913 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17914 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17915 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17916 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17917 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17918 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17919 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17920 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17921 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17922 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17923 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17924 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17925 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17926 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17927 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17928 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17929 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17930 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17931 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17932 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17933 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17934 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17935 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17936 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17937 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17938 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17939 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17940 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17941 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17942 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17943 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17944 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17945 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17946 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17947 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17948 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17949 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17950 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17951 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17952 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17953 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17954 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17955 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17956 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17957 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17958 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17959 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17960 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17961 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17962 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17963 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17964 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17965 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17966 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17967 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17968 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17969 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17970 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17971 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17972 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17973 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17974 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17975 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17976 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17977 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17979 LTCC='$LTCC'
17980 LTCFLAGS='$LTCFLAGS'
17981 compiler='$compiler_DEFAULT'
17983 # A function that is used when there is no print builtin or printf.
17984 func_fallback_echo ()
17986 eval 'cat <<_LTECHO_EOF
17988 _LTECHO_EOF'
17991 # Quote evaled strings.
17992 for var in SHELL \
17993 ECHO \
17994 SED \
17995 GREP \
17996 EGREP \
17997 FGREP \
17998 LD \
17999 NM \
18000 LN_S \
18001 lt_SP2NL \
18002 lt_NL2SP \
18003 reload_flag \
18004 OBJDUMP \
18005 deplibs_check_method \
18006 file_magic_cmd \
18007 AR \
18008 AR_FLAGS \
18009 STRIP \
18010 RANLIB \
18011 CC \
18012 CFLAGS \
18013 compiler \
18014 lt_cv_sys_global_symbol_pipe \
18015 lt_cv_sys_global_symbol_to_cdecl \
18016 lt_cv_sys_global_symbol_to_c_name_address \
18017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18018 lt_prog_compiler_no_builtin_flag \
18019 lt_prog_compiler_wl \
18020 lt_prog_compiler_pic \
18021 lt_prog_compiler_static \
18022 lt_cv_prog_compiler_c_o \
18023 need_locks \
18024 DSYMUTIL \
18025 NMEDIT \
18026 LIPO \
18027 OTOOL \
18028 OTOOL64 \
18029 shrext_cmds \
18030 export_dynamic_flag_spec \
18031 whole_archive_flag_spec \
18032 compiler_needs_object \
18033 with_gnu_ld \
18034 allow_undefined_flag \
18035 no_undefined_flag \
18036 hardcode_libdir_flag_spec \
18037 hardcode_libdir_flag_spec_ld \
18038 hardcode_libdir_separator \
18039 fix_srcfile_path \
18040 exclude_expsyms \
18041 include_expsyms \
18042 file_list_spec \
18043 variables_saved_for_relink \
18044 libname_spec \
18045 library_names_spec \
18046 soname_spec \
18047 install_override_mode \
18048 finish_eval \
18049 old_striplib \
18050 striplib \
18051 compiler_lib_search_dirs \
18052 predep_objects \
18053 postdep_objects \
18054 predeps \
18055 postdeps \
18056 compiler_lib_search_path \
18057 LD_CXX \
18058 reload_flag_CXX \
18059 compiler_CXX \
18060 lt_prog_compiler_no_builtin_flag_CXX \
18061 lt_prog_compiler_wl_CXX \
18062 lt_prog_compiler_pic_CXX \
18063 lt_prog_compiler_static_CXX \
18064 lt_cv_prog_compiler_c_o_CXX \
18065 export_dynamic_flag_spec_CXX \
18066 whole_archive_flag_spec_CXX \
18067 compiler_needs_object_CXX \
18068 with_gnu_ld_CXX \
18069 allow_undefined_flag_CXX \
18070 no_undefined_flag_CXX \
18071 hardcode_libdir_flag_spec_CXX \
18072 hardcode_libdir_flag_spec_ld_CXX \
18073 hardcode_libdir_separator_CXX \
18074 fix_srcfile_path_CXX \
18075 exclude_expsyms_CXX \
18076 include_expsyms_CXX \
18077 file_list_spec_CXX \
18078 compiler_lib_search_dirs_CXX \
18079 predep_objects_CXX \
18080 postdep_objects_CXX \
18081 predeps_CXX \
18082 postdeps_CXX \
18083 compiler_lib_search_path_CXX; do
18084 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18085 *[\\\\\\\`\\"\\\$]*)
18086 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18089 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18091 esac
18092 done
18094 # Double-quote double-evaled strings.
18095 for var in reload_cmds \
18096 old_postinstall_cmds \
18097 old_postuninstall_cmds \
18098 old_archive_cmds \
18099 extract_expsyms_cmds \
18100 old_archive_from_new_cmds \
18101 old_archive_from_expsyms_cmds \
18102 archive_cmds \
18103 archive_expsym_cmds \
18104 module_cmds \
18105 module_expsym_cmds \
18106 export_symbols_cmds \
18107 prelink_cmds \
18108 postinstall_cmds \
18109 postuninstall_cmds \
18110 finish_cmds \
18111 sys_lib_search_path_spec \
18112 sys_lib_dlsearch_path_spec \
18113 reload_cmds_CXX \
18114 old_archive_cmds_CXX \
18115 old_archive_from_new_cmds_CXX \
18116 old_archive_from_expsyms_cmds_CXX \
18117 archive_cmds_CXX \
18118 archive_expsym_cmds_CXX \
18119 module_cmds_CXX \
18120 module_expsym_cmds_CXX \
18121 export_symbols_cmds_CXX \
18122 prelink_cmds_CXX; do
18123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18124 *[\\\\\\\`\\"\\\$]*)
18125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18130 esac
18131 done
18133 ac_aux_dir='$ac_aux_dir'
18134 xsi_shell='$xsi_shell'
18135 lt_shell_append='$lt_shell_append'
18137 # See if we are running on zsh, and set the options which allow our
18138 # commands through without removal of \ escapes INIT.
18139 if test -n "\${ZSH_VERSION+set}" ; then
18140 setopt NO_GLOB_SUBST
18144 PACKAGE='$PACKAGE'
18145 VERSION='$VERSION'
18146 TIMESTAMP='$TIMESTAMP'
18147 RM='$RM'
18148 ofile='$ofile'
18154 TARGETDIR="$TARGETDIR"
18156 _ACEOF
18158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 # Handling of arguments.
18161 for ac_config_target in $ac_config_targets
18163 case $ac_config_target in
18164 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
18165 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18166 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18167 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18168 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
18169 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
18170 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18171 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
18172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18173 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18174 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18175 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18176 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18178 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18179 esac
18180 done
18183 # If the user did not use the arguments to specify the items to instantiate,
18184 # then the envvar interface is used. Set only those that are not.
18185 # We use the long form for the default assignment because of an extremely
18186 # bizarre bug on SunOS 4.1.3.
18187 if $ac_need_defaults; then
18188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18190 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18191 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18194 # Have a temporary directory for convenience. Make it in the build tree
18195 # simply because there is no reason against having it here, and in addition,
18196 # creating and moving files from /tmp can sometimes cause problems.
18197 # Hook for its removal unless debugging.
18198 # Note that there is a small window in which the directory will not be cleaned:
18199 # after its creation but before its name has been assigned to `$tmp'.
18200 $debug ||
18202 tmp= ac_tmp=
18203 trap 'exit_status=$?
18204 : "${ac_tmp:=$tmp}"
18205 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18207 trap 'as_fn_exit 1' 1 2 13 15
18209 # Create a (secure) tmp directory for tmp files.
18212 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18213 test -d "$tmp"
18214 } ||
18216 tmp=./conf$$-$RANDOM
18217 (umask 077 && mkdir "$tmp")
18218 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18219 ac_tmp=$tmp
18221 # Set up the scripts for CONFIG_FILES section.
18222 # No need to generate them if there are no CONFIG_FILES.
18223 # This happens for instance with `./config.status config.h'.
18224 if test -n "$CONFIG_FILES"; then
18227 ac_cr=`echo X | tr X '\015'`
18228 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18229 # But we know of no other shell where ac_cr would be empty at this
18230 # point, so we can use a bashism as a fallback.
18231 if test "x$ac_cr" = x; then
18232 eval ac_cr=\$\'\\r\'
18234 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18235 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18236 ac_cs_awk_cr='\\r'
18237 else
18238 ac_cs_awk_cr=$ac_cr
18241 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18242 _ACEOF
18246 echo "cat >conf$$subs.awk <<_ACEOF" &&
18247 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18248 echo "_ACEOF"
18249 } >conf$$subs.sh ||
18250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18251 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18252 ac_delim='%!_!# '
18253 for ac_last_try in false false false false false :; do
18254 . ./conf$$subs.sh ||
18255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18257 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18258 if test $ac_delim_n = $ac_delim_num; then
18259 break
18260 elif $ac_last_try; then
18261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18262 else
18263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18265 done
18266 rm -f conf$$subs.sh
18268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18269 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18270 _ACEOF
18271 sed -n '
18273 s/^/S["/; s/!.*/"]=/
18276 s/^[^!]*!//
18277 :repl
18278 t repl
18279 s/'"$ac_delim"'$//
18280 t delim
18283 s/\(.\{148\}\)..*/\1/
18284 t more1
18285 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18288 b repl
18289 :more1
18290 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18293 s/.\{148\}//
18294 t nl
18295 :delim
18297 s/\(.\{148\}\)..*/\1/
18298 t more2
18299 s/["\\]/\\&/g; s/^/"/; s/$/"/
18302 :more2
18303 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18306 s/.\{148\}//
18307 t delim
18308 ' <conf$$subs.awk | sed '
18309 /^[^""]/{
18311 s/\n//
18313 ' >>$CONFIG_STATUS || ac_write_fail=1
18314 rm -f conf$$subs.awk
18315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18316 _ACAWK
18317 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18318 for (key in S) S_is_set[key] = 1
18319 FS = "\a"
18323 line = $ 0
18324 nfields = split(line, field, "@")
18325 substed = 0
18326 len = length(field[1])
18327 for (i = 2; i < nfields; i++) {
18328 key = field[i]
18329 keylen = length(key)
18330 if (S_is_set[key]) {
18331 value = S[key]
18332 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18333 len += length(value) + length(field[++i])
18334 substed = 1
18335 } else
18336 len += 1 + keylen
18339 print line
18342 _ACAWK
18343 _ACEOF
18344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18345 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18346 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18347 else
18349 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18350 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18351 _ACEOF
18353 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18354 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18355 # trailing colons and then remove the whole line if VPATH becomes empty
18356 # (actually we leave an empty line to preserve line numbers).
18357 if test "x$srcdir" = x.; then
18358 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18360 s///
18361 s/^/:/
18362 s/[ ]*$/:/
18363 s/:\$(srcdir):/:/g
18364 s/:\${srcdir}:/:/g
18365 s/:@srcdir@:/:/g
18366 s/^:*//
18367 s/:*$//
18369 s/\(=[ ]*\).*/\1/
18371 s/\n//
18372 s/^[^=]*=[ ]*$//
18376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18377 fi # test -n "$CONFIG_FILES"
18379 # Set up the scripts for CONFIG_HEADERS section.
18380 # No need to generate them if there are no CONFIG_HEADERS.
18381 # This happens for instance with `./config.status Makefile'.
18382 if test -n "$CONFIG_HEADERS"; then
18383 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18384 BEGIN {
18385 _ACEOF
18387 # Transform confdefs.h into an awk script `defines.awk', embedded as
18388 # here-document in config.status, that substitutes the proper values into
18389 # config.h.in to produce config.h.
18391 # Create a delimiter string that does not exist in confdefs.h, to ease
18392 # handling of long lines.
18393 ac_delim='%!_!# '
18394 for ac_last_try in false false :; do
18395 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18396 if test -z "$ac_tt"; then
18397 break
18398 elif $ac_last_try; then
18399 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18400 else
18401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18403 done
18405 # For the awk script, D is an array of macro values keyed by name,
18406 # likewise P contains macro parameters if any. Preserve backslash
18407 # newline sequences.
18409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18410 sed -n '
18411 s/.\{148\}/&'"$ac_delim"'/g
18412 t rset
18413 :rset
18414 s/^[ ]*#[ ]*define[ ][ ]*/ /
18415 t def
18417 :def
18418 s/\\$//
18419 t bsnl
18420 s/["\\]/\\&/g
18421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18422 D["\1"]=" \3"/p
18423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18425 :bsnl
18426 s/["\\]/\\&/g
18427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18428 D["\1"]=" \3\\\\\\n"\\/p
18429 t cont
18430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18431 t cont
18433 :cont
18435 s/.\{148\}/&'"$ac_delim"'/g
18436 t clear
18437 :clear
18438 s/\\$//
18439 t bsnlc
18440 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18442 :bsnlc
18443 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18444 b cont
18445 ' <confdefs.h | sed '
18446 s/'"$ac_delim"'/"\\\
18447 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18450 for (key in D) D_is_set[key] = 1
18451 FS = "\a"
18453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18454 line = \$ 0
18455 split(line, arg, " ")
18456 if (arg[1] == "#") {
18457 defundef = arg[2]
18458 mac1 = arg[3]
18459 } else {
18460 defundef = substr(arg[1], 2)
18461 mac1 = arg[2]
18463 split(mac1, mac2, "(") #)
18464 macro = mac2[1]
18465 prefix = substr(line, 1, index(line, defundef) - 1)
18466 if (D_is_set[macro]) {
18467 # Preserve the white space surrounding the "#".
18468 print prefix "define", macro P[macro] D[macro]
18469 next
18470 } else {
18471 # Replace #undef with comments. This is necessary, for example,
18472 # in the case of _POSIX_SOURCE, which is predefined and required
18473 # on some systems where configure will not decide to define it.
18474 if (defundef == "undef") {
18475 print "/*", prefix defundef, macro, "*/"
18476 next
18480 { print }
18481 _ACAWK
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18485 fi # test -n "$CONFIG_HEADERS"
18488 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18489 shift
18490 for ac_tag
18492 case $ac_tag in
18493 :[FHLC]) ac_mode=$ac_tag; continue;;
18494 esac
18495 case $ac_mode$ac_tag in
18496 :[FHL]*:*);;
18497 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18498 :[FH]-) ac_tag=-:-;;
18499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18500 esac
18501 ac_save_IFS=$IFS
18502 IFS=:
18503 set x $ac_tag
18504 IFS=$ac_save_IFS
18505 shift
18506 ac_file=$1
18507 shift
18509 case $ac_mode in
18510 :L) ac_source=$1;;
18511 :[FH])
18512 ac_file_inputs=
18513 for ac_f
18515 case $ac_f in
18516 -) ac_f="$ac_tmp/stdin";;
18517 *) # Look for the file first in the build tree, then in the source tree
18518 # (if the path is not absolute). The absolute path cannot be DOS-style,
18519 # because $ac_f cannot contain `:'.
18520 test -f "$ac_f" ||
18521 case $ac_f in
18522 [\\/$]*) false;;
18523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18524 esac ||
18525 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18526 esac
18527 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18528 as_fn_append ac_file_inputs " '$ac_f'"
18529 done
18531 # Let's still pretend it is `configure' which instantiates (i.e., don't
18532 # use $as_me), people would be surprised to read:
18533 # /* config.h. Generated by config.status. */
18534 configure_input='Generated from '`
18535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18536 `' by configure.'
18537 if test x"$ac_file" != x-; then
18538 configure_input="$ac_file. $configure_input"
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18540 $as_echo "$as_me: creating $ac_file" >&6;}
18542 # Neutralize special characters interpreted by sed in replacement strings.
18543 case $configure_input in #(
18544 *\&* | *\|* | *\\* )
18545 ac_sed_conf_input=`$as_echo "$configure_input" |
18546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18547 *) ac_sed_conf_input=$configure_input;;
18548 esac
18550 case $ac_tag in
18551 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18553 esac
18555 esac
18557 ac_dir=`$as_dirname -- "$ac_file" ||
18558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18559 X"$ac_file" : 'X\(//\)[^/]' \| \
18560 X"$ac_file" : 'X\(//\)$' \| \
18561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18562 $as_echo X"$ac_file" |
18563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18564 s//\1/
18567 /^X\(\/\/\)[^/].*/{
18568 s//\1/
18571 /^X\(\/\/\)$/{
18572 s//\1/
18575 /^X\(\/\).*/{
18576 s//\1/
18579 s/.*/./; q'`
18580 as_dir="$ac_dir"; as_fn_mkdir_p
18581 ac_builddir=.
18583 case "$ac_dir" in
18584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18587 # A ".." for each directory in $ac_dir_suffix.
18588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18589 case $ac_top_builddir_sub in
18590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18592 esac ;;
18593 esac
18594 ac_abs_top_builddir=$ac_pwd
18595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18596 # for backward compatibility:
18597 ac_top_builddir=$ac_top_build_prefix
18599 case $srcdir in
18600 .) # We are building in place.
18601 ac_srcdir=.
18602 ac_top_srcdir=$ac_top_builddir_sub
18603 ac_abs_top_srcdir=$ac_pwd ;;
18604 [\\/]* | ?:[\\/]* ) # Absolute name.
18605 ac_srcdir=$srcdir$ac_dir_suffix;
18606 ac_top_srcdir=$srcdir
18607 ac_abs_top_srcdir=$srcdir ;;
18608 *) # Relative name.
18609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18610 ac_top_srcdir=$ac_top_build_prefix$srcdir
18611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18612 esac
18613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18616 case $ac_mode in
18619 # CONFIG_FILE
18622 case $INSTALL in
18623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18625 esac
18626 ac_MKDIR_P=$MKDIR_P
18627 case $MKDIR_P in
18628 [\\/$]* | ?:[\\/]* ) ;;
18629 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18630 esac
18631 _ACEOF
18633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 # If the template does not know about datarootdir, expand it.
18635 # FIXME: This hack should be removed a few years after 2.60.
18636 ac_datarootdir_hack=; ac_datarootdir_seen=
18637 ac_sed_dataroot='
18638 /datarootdir/ {
18642 /@datadir@/p
18643 /@docdir@/p
18644 /@infodir@/p
18645 /@localedir@/p
18646 /@mandir@/p'
18647 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18648 *datarootdir*) ac_datarootdir_seen=yes;;
18649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18651 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18652 _ACEOF
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 ac_datarootdir_hack='
18655 s&@datadir@&$datadir&g
18656 s&@docdir@&$docdir&g
18657 s&@infodir@&$infodir&g
18658 s&@localedir@&$localedir&g
18659 s&@mandir@&$mandir&g
18660 s&\\\${datarootdir}&$datarootdir&g' ;;
18661 esac
18662 _ACEOF
18664 # Neutralize VPATH when `$srcdir' = `.'.
18665 # Shell code in configure.ac might set extrasub.
18666 # FIXME: do we really want to maintain this feature?
18667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18668 ac_sed_extra="$ac_vpsub
18669 $extrasub
18670 _ACEOF
18671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18674 s|@configure_input@|$ac_sed_conf_input|;t t
18675 s&@top_builddir@&$ac_top_builddir_sub&;t t
18676 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18677 s&@srcdir@&$ac_srcdir&;t t
18678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18679 s&@top_srcdir@&$ac_top_srcdir&;t t
18680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18681 s&@builddir@&$ac_builddir&;t t
18682 s&@abs_builddir@&$ac_abs_builddir&;t t
18683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18684 s&@INSTALL@&$ac_INSTALL&;t t
18685 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18686 $ac_datarootdir_hack
18688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18689 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18691 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18692 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18693 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18694 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18696 which seems to be undefined. Please make sure it is defined" >&5
18697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18698 which seems to be undefined. Please make sure it is defined" >&2;}
18700 rm -f "$ac_tmp/stdin"
18701 case $ac_file in
18702 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18703 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18704 esac \
18705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18709 # CONFIG_HEADER
18711 if test x"$ac_file" != x-; then
18713 $as_echo "/* $configure_input */" \
18714 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18715 } >"$ac_tmp/config.h" \
18716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18717 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18720 else
18721 rm -f "$ac_file"
18722 mv "$ac_tmp/config.h" "$ac_file" \
18723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18725 else
18726 $as_echo "/* $configure_input */" \
18727 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18728 || as_fn_error $? "could not create -" "$LINENO" 5
18730 # Compute "$ac_file"'s index in $config_headers.
18731 _am_arg="$ac_file"
18732 _am_stamp_count=1
18733 for _am_header in $config_headers :; do
18734 case $_am_header in
18735 $_am_arg | $_am_arg:* )
18736 break ;;
18738 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18739 esac
18740 done
18741 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18742 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18743 X"$_am_arg" : 'X\(//\)[^/]' \| \
18744 X"$_am_arg" : 'X\(//\)$' \| \
18745 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18746 $as_echo X"$_am_arg" |
18747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18748 s//\1/
18751 /^X\(\/\/\)[^/].*/{
18752 s//\1/
18755 /^X\(\/\/\)$/{
18756 s//\1/
18759 /^X\(\/\).*/{
18760 s//\1/
18763 s/.*/./; q'`/stamp-h$_am_stamp_count
18767 # CONFIG_LINK
18770 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18772 else
18773 # Prefer the file from the source tree if names are identical.
18774 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18775 ac_source=$srcdir/$ac_source
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18779 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18781 if test ! -r "$ac_source"; then
18782 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18784 rm -f "$ac_file"
18786 # Try a relative symlink, then a hard link, then a copy.
18787 case $ac_source in
18788 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18789 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18790 esac
18791 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18792 ln "$ac_source" "$ac_file" 2>/dev/null ||
18793 cp -p "$ac_source" "$ac_file" ||
18794 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18798 $as_echo "$as_me: executing $ac_file commands" >&6;}
18800 esac
18803 case $ac_file$ac_mode in
18804 "default-1":C)
18805 # Only add multilib support code if we just rebuilt the top-level
18806 # Makefile.
18807 case " $CONFIG_FILES " in
18808 *" Makefile "*)
18809 ac_file=Makefile . ${multi_basedir}/config-ml.in
18811 esac ;;
18812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18813 # Older Autoconf quotes --file arguments for eval, but not when files
18814 # are listed without --file. Let's play safe and only enable the eval
18815 # if we detect the quoting.
18816 case $CONFIG_FILES in
18817 *\'*) eval set x "$CONFIG_FILES" ;;
18818 *) set x $CONFIG_FILES ;;
18819 esac
18820 shift
18821 for mf
18823 # Strip MF so we end up with the name of the file.
18824 mf=`echo "$mf" | sed -e 's/:.*$//'`
18825 # Check whether this is an Automake generated Makefile or not.
18826 # We used to match only the files named 'Makefile.in', but
18827 # some people rename them; so instead we look at the file content.
18828 # Grep'ing the first line is not enough: some people post-process
18829 # each Makefile.in and add a new line on top of each file to say so.
18830 # Grep'ing the whole file is not good either: AIX grep has a line
18831 # limit of 2048, but all sed's we know have understand at least 4000.
18832 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18833 dirpart=`$as_dirname -- "$mf" ||
18834 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18835 X"$mf" : 'X\(//\)[^/]' \| \
18836 X"$mf" : 'X\(//\)$' \| \
18837 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X"$mf" |
18839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18840 s//\1/
18843 /^X\(\/\/\)[^/].*/{
18844 s//\1/
18847 /^X\(\/\/\)$/{
18848 s//\1/
18851 /^X\(\/\).*/{
18852 s//\1/
18855 s/.*/./; q'`
18856 else
18857 continue
18859 # Extract the definition of DEPDIR, am__include, and am__quote
18860 # from the Makefile without running 'make'.
18861 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18862 test -z "$DEPDIR" && continue
18863 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18864 test -z "$am__include" && continue
18865 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18866 # Find all dependency output files, they are included files with
18867 # $(DEPDIR) in their names. We invoke sed twice because it is the
18868 # simplest approach to changing $(DEPDIR) to its actual value in the
18869 # expansion.
18870 for file in `sed -n "
18871 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18872 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18873 # Make sure the directory exists.
18874 test -f "$dirpart/$file" && continue
18875 fdir=`$as_dirname -- "$file" ||
18876 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18877 X"$file" : 'X\(//\)[^/]' \| \
18878 X"$file" : 'X\(//\)$' \| \
18879 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18880 $as_echo X"$file" |
18881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18882 s//\1/
18885 /^X\(\/\/\)[^/].*/{
18886 s//\1/
18889 /^X\(\/\/\)$/{
18890 s//\1/
18893 /^X\(\/\).*/{
18894 s//\1/
18897 s/.*/./; q'`
18898 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18899 # echo "creating $dirpart/$file"
18900 echo '# dummy' > "$dirpart/$file"
18901 done
18902 done
18905 "libtool":C)
18907 # See if we are running on zsh, and set the options which allow our
18908 # commands through without removal of \ escapes.
18909 if test -n "${ZSH_VERSION+set}" ; then
18910 setopt NO_GLOB_SUBST
18913 cfgfile="${ofile}T"
18914 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18915 $RM "$cfgfile"
18917 cat <<_LT_EOF >> "$cfgfile"
18918 #! $SHELL
18920 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18921 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18926 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18927 # Written by Gordon Matzigkeit, 1996
18929 # This file is part of GNU Libtool.
18931 # GNU Libtool is free software; you can redistribute it and/or
18932 # modify it under the terms of the GNU General Public License as
18933 # published by the Free Software Foundation; either version 2 of
18934 # the License, or (at your option) any later version.
18936 # As a special exception to the GNU General Public License,
18937 # if you distribute this file as part of a program or library that
18938 # is built using GNU Libtool, you may include this file under the
18939 # same distribution terms that you use for the rest of that program.
18941 # GNU Libtool is distributed in the hope that it will be useful,
18942 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18944 # GNU General Public License for more details.
18946 # You should have received a copy of the GNU General Public License
18947 # along with GNU Libtool; see the file COPYING. If not, a copy
18948 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18949 # obtained by writing to the Free Software Foundation, Inc.,
18950 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18953 # The names of the tagged configurations supported by this script.
18954 available_tags="CXX "
18956 # ### BEGIN LIBTOOL CONFIG
18958 # Which release of libtool.m4 was used?
18959 macro_version=$macro_version
18960 macro_revision=$macro_revision
18962 # Whether or not to build shared libraries.
18963 build_libtool_libs=$enable_shared
18965 # Whether or not to build static libraries.
18966 build_old_libs=$enable_static
18968 # What type of objects to build.
18969 pic_mode=$pic_mode
18971 # Whether or not to optimize for fast installation.
18972 fast_install=$enable_fast_install
18974 # Shell to use when invoking shell scripts.
18975 SHELL=$lt_SHELL
18977 # An echo program that protects backslashes.
18978 ECHO=$lt_ECHO
18980 # The host system.
18981 host_alias=$host_alias
18982 host=$host
18983 host_os=$host_os
18985 # The build system.
18986 build_alias=$build_alias
18987 build=$build
18988 build_os=$build_os
18990 # A sed program that does not truncate output.
18991 SED=$lt_SED
18993 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18994 Xsed="\$SED -e 1s/^X//"
18996 # A grep program that handles long lines.
18997 GREP=$lt_GREP
18999 # An ERE matcher.
19000 EGREP=$lt_EGREP
19002 # A literal string matcher.
19003 FGREP=$lt_FGREP
19005 # A BSD- or MS-compatible name lister.
19006 NM=$lt_NM
19008 # Whether we need soft or hard links.
19009 LN_S=$lt_LN_S
19011 # What is the maximum length of a command?
19012 max_cmd_len=$max_cmd_len
19014 # Object file suffix (normally "o").
19015 objext=$ac_objext
19017 # Executable file suffix (normally "").
19018 exeext=$exeext
19020 # whether the shell understands "unset".
19021 lt_unset=$lt_unset
19023 # turn spaces into newlines.
19024 SP2NL=$lt_lt_SP2NL
19026 # turn newlines into spaces.
19027 NL2SP=$lt_lt_NL2SP
19029 # An object symbol dumper.
19030 OBJDUMP=$lt_OBJDUMP
19032 # Method to check whether dependent libraries are shared objects.
19033 deplibs_check_method=$lt_deplibs_check_method
19035 # Command to use when deplibs_check_method == "file_magic".
19036 file_magic_cmd=$lt_file_magic_cmd
19038 # The archiver.
19039 AR=$lt_AR
19040 AR_FLAGS=$lt_AR_FLAGS
19042 # A symbol stripping program.
19043 STRIP=$lt_STRIP
19045 # Commands used to install an old-style archive.
19046 RANLIB=$lt_RANLIB
19047 old_postinstall_cmds=$lt_old_postinstall_cmds
19048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19050 # Whether to use a lock for old archive extraction.
19051 lock_old_archive_extraction=$lock_old_archive_extraction
19053 # A C compiler.
19054 LTCC=$lt_CC
19056 # LTCC compiler flags.
19057 LTCFLAGS=$lt_CFLAGS
19059 # Take the output of nm and produce a listing of raw symbols and C names.
19060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19062 # Transform the output of nm in a proper C declaration.
19063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19065 # Transform the output of nm in a C name address pair.
19066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068 # Transform the output of nm in a C name address pair when lib prefix is needed.
19069 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19071 # The name of the directory that contains temporary libtool files.
19072 objdir=$objdir
19074 # Used to examine libraries when file_magic_cmd begins with "file".
19075 MAGIC_CMD=$MAGIC_CMD
19077 # Must we lock files when doing compilation?
19078 need_locks=$lt_need_locks
19080 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19081 DSYMUTIL=$lt_DSYMUTIL
19083 # Tool to change global to local symbols on Mac OS X.
19084 NMEDIT=$lt_NMEDIT
19086 # Tool to manipulate fat objects and archives on Mac OS X.
19087 LIPO=$lt_LIPO
19089 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19090 OTOOL=$lt_OTOOL
19092 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19093 OTOOL64=$lt_OTOOL64
19095 # Old archive suffix (normally "a").
19096 libext=$libext
19098 # Shared library suffix (normally ".so").
19099 shrext_cmds=$lt_shrext_cmds
19101 # The commands to extract the exported symbol list from a shared archive.
19102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19104 # Variables whose values should be saved in libtool wrapper scripts and
19105 # restored at link time.
19106 variables_saved_for_relink=$lt_variables_saved_for_relink
19108 # Do we need the "lib" prefix for modules?
19109 need_lib_prefix=$need_lib_prefix
19111 # Do we need a version for libraries?
19112 need_version=$need_version
19114 # Library versioning type.
19115 version_type=$version_type
19117 # Shared library runtime path variable.
19118 runpath_var=$runpath_var
19120 # Shared library path variable.
19121 shlibpath_var=$shlibpath_var
19123 # Is shlibpath searched before the hard-coded library search path?
19124 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19126 # Format of library name prefix.
19127 libname_spec=$lt_libname_spec
19129 # List of archive names. First name is the real one, the rest are links.
19130 # The last name is the one that the linker finds with -lNAME
19131 library_names_spec=$lt_library_names_spec
19133 # The coded name of the library, if different from the real name.
19134 soname_spec=$lt_soname_spec
19136 # Permission mode override for installation of shared libraries.
19137 install_override_mode=$lt_install_override_mode
19139 # Command to use after installation of a shared archive.
19140 postinstall_cmds=$lt_postinstall_cmds
19142 # Command to use after uninstallation of a shared archive.
19143 postuninstall_cmds=$lt_postuninstall_cmds
19145 # Commands used to finish a libtool library installation in a directory.
19146 finish_cmds=$lt_finish_cmds
19148 # As "finish_cmds", except a single script fragment to be evaled but
19149 # not shown.
19150 finish_eval=$lt_finish_eval
19152 # Whether we should hardcode library paths into libraries.
19153 hardcode_into_libs=$hardcode_into_libs
19155 # Compile-time system search path for libraries.
19156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19158 # Run-time system search path for libraries.
19159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19161 # Whether dlopen is supported.
19162 dlopen_support=$enable_dlopen
19164 # Whether dlopen of programs is supported.
19165 dlopen_self=$enable_dlopen_self
19167 # Whether dlopen of statically linked programs is supported.
19168 dlopen_self_static=$enable_dlopen_self_static
19170 # Commands to strip libraries.
19171 old_striplib=$lt_old_striplib
19172 striplib=$lt_striplib
19175 # The linker used to build libraries.
19176 LD=$lt_LD
19178 # How to create reloadable object files.
19179 reload_flag=$lt_reload_flag
19180 reload_cmds=$lt_reload_cmds
19182 # Commands used to build an old-style archive.
19183 old_archive_cmds=$lt_old_archive_cmds
19185 # A language specific compiler.
19186 CC=$lt_compiler
19188 # Is the compiler the GNU compiler?
19189 with_gcc=$GCC
19191 # Compiler flag to turn off builtin functions.
19192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19194 # How to pass a linker flag through the compiler.
19195 wl=$lt_lt_prog_compiler_wl
19197 # Additional compiler flags for building library objects.
19198 pic_flag=$lt_lt_prog_compiler_pic
19200 # Compiler flag to prevent dynamic linking.
19201 link_static_flag=$lt_lt_prog_compiler_static
19203 # Does compiler simultaneously support -c and -o options?
19204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19206 # Whether or not to add -lc for building shared libraries.
19207 build_libtool_need_lc=$archive_cmds_need_lc
19209 # Whether or not to disallow shared libs when runtime libs are static.
19210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19212 # Compiler flag to allow reflexive dlopens.
19213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19215 # Compiler flag to generate shared objects directly from archives.
19216 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19218 # Whether the compiler copes with passing no objects directly.
19219 compiler_needs_object=$lt_compiler_needs_object
19221 # Create an old-style archive from a shared archive.
19222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19224 # Create a temporary old-style archive to link instead of a shared archive.
19225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19227 # Commands used to build a shared archive.
19228 archive_cmds=$lt_archive_cmds
19229 archive_expsym_cmds=$lt_archive_expsym_cmds
19231 # Commands used to build a loadable module if different from building
19232 # a shared archive.
19233 module_cmds=$lt_module_cmds
19234 module_expsym_cmds=$lt_module_expsym_cmds
19236 # Whether we are building with GNU ld or not.
19237 with_gnu_ld=$lt_with_gnu_ld
19239 # Flag that allows shared libraries with undefined symbols to be built.
19240 allow_undefined_flag=$lt_allow_undefined_flag
19242 # Flag that enforces no undefined symbols.
19243 no_undefined_flag=$lt_no_undefined_flag
19245 # Flag to hardcode \$libdir into a binary during linking.
19246 # This must work even if \$libdir does not exist
19247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19249 # If ld is used when linking, flag to hardcode \$libdir into a binary
19250 # during linking. This must work even if \$libdir does not exist.
19251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19253 # Whether we need a single "-rpath" flag with a separated argument.
19254 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19257 # DIR into the resulting binary.
19258 hardcode_direct=$hardcode_direct
19260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19261 # DIR into the resulting binary and the resulting library dependency is
19262 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19263 # library is relocated.
19264 hardcode_direct_absolute=$hardcode_direct_absolute
19266 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19267 # into the resulting binary.
19268 hardcode_minus_L=$hardcode_minus_L
19270 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19271 # into the resulting binary.
19272 hardcode_shlibpath_var=$hardcode_shlibpath_var
19274 # Set to "yes" if building a shared library automatically hardcodes DIR
19275 # into the library and all subsequent libraries and executables linked
19276 # against it.
19277 hardcode_automatic=$hardcode_automatic
19279 # Set to yes if linker adds runtime paths of dependent libraries
19280 # to runtime path list.
19281 inherit_rpath=$inherit_rpath
19283 # Whether libtool must link a program against all its dependency libraries.
19284 link_all_deplibs=$link_all_deplibs
19286 # Fix the shell variable \$srcfile for the compiler.
19287 fix_srcfile_path=$lt_fix_srcfile_path
19289 # Set to "yes" if exported symbols are required.
19290 always_export_symbols=$always_export_symbols
19292 # The commands to list exported symbols.
19293 export_symbols_cmds=$lt_export_symbols_cmds
19295 # Symbols that should not be listed in the preloaded symbols.
19296 exclude_expsyms=$lt_exclude_expsyms
19298 # Symbols that must always be exported.
19299 include_expsyms=$lt_include_expsyms
19301 # Commands necessary for linking programs (against libraries) with templates.
19302 prelink_cmds=$lt_prelink_cmds
19304 # Specify filename containing input files.
19305 file_list_spec=$lt_file_list_spec
19307 # How to hardcode a shared library path into an executable.
19308 hardcode_action=$hardcode_action
19310 # The directories searched by this compiler when creating a shared library.
19311 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19313 # Dependencies to place before and after the objects being linked to
19314 # create a shared library.
19315 predep_objects=$lt_predep_objects
19316 postdep_objects=$lt_postdep_objects
19317 predeps=$lt_predeps
19318 postdeps=$lt_postdeps
19320 # The library search path used internally by the compiler when linking
19321 # a shared library.
19322 compiler_lib_search_path=$lt_compiler_lib_search_path
19324 # ### END LIBTOOL CONFIG
19326 _LT_EOF
19328 case $host_os in
19329 aix3*)
19330 cat <<\_LT_EOF >> "$cfgfile"
19331 # AIX sometimes has problems with the GCC collect2 program. For some
19332 # reason, if we set the COLLECT_NAMES environment variable, the problems
19333 # vanish in a puff of smoke.
19334 if test "X${COLLECT_NAMES+set}" != Xset; then
19335 COLLECT_NAMES=
19336 export COLLECT_NAMES
19338 _LT_EOF
19340 esac
19343 ltmain="$ac_aux_dir/ltmain.sh"
19346 # We use sed instead of cat because bash on DJGPP gets confused if
19347 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19348 # text mode, it properly converts lines to CR/LF. This bash problem
19349 # is reportedly fixed, but why not run on old versions too?
19350 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19351 || (rm -f "$cfgfile"; exit 1)
19353 case $xsi_shell in
19354 yes)
19355 cat << \_LT_EOF >> "$cfgfile"
19357 # func_dirname file append nondir_replacement
19358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19359 # otherwise set result to NONDIR_REPLACEMENT.
19360 func_dirname ()
19362 case ${1} in
19363 */*) func_dirname_result="${1%/*}${2}" ;;
19364 * ) func_dirname_result="${3}" ;;
19365 esac
19368 # func_basename file
19369 func_basename ()
19371 func_basename_result="${1##*/}"
19374 # func_dirname_and_basename file append nondir_replacement
19375 # perform func_basename and func_dirname in a single function
19376 # call:
19377 # dirname: Compute the dirname of FILE. If nonempty,
19378 # add APPEND to the result, otherwise set result
19379 # to NONDIR_REPLACEMENT.
19380 # value returned in "$func_dirname_result"
19381 # basename: Compute filename of FILE.
19382 # value retuned in "$func_basename_result"
19383 # Implementation must be kept synchronized with func_dirname
19384 # and func_basename. For efficiency, we do not delegate to
19385 # those functions but instead duplicate the functionality here.
19386 func_dirname_and_basename ()
19388 case ${1} in
19389 */*) func_dirname_result="${1%/*}${2}" ;;
19390 * ) func_dirname_result="${3}" ;;
19391 esac
19392 func_basename_result="${1##*/}"
19395 # func_stripname prefix suffix name
19396 # strip PREFIX and SUFFIX off of NAME.
19397 # PREFIX and SUFFIX must not contain globbing or regex special
19398 # characters, hashes, percent signs, but SUFFIX may contain a leading
19399 # dot (in which case that matches only a dot).
19400 func_stripname ()
19402 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19403 # positional parameters, so assign one to ordinary parameter first.
19404 func_stripname_result=${3}
19405 func_stripname_result=${func_stripname_result#"${1}"}
19406 func_stripname_result=${func_stripname_result%"${2}"}
19409 # func_opt_split
19410 func_opt_split ()
19412 func_opt_split_opt=${1%%=*}
19413 func_opt_split_arg=${1#*=}
19416 # func_lo2o object
19417 func_lo2o ()
19419 case ${1} in
19420 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19421 *) func_lo2o_result=${1} ;;
19422 esac
19425 # func_xform libobj-or-source
19426 func_xform ()
19428 func_xform_result=${1%.*}.lo
19431 # func_arith arithmetic-term...
19432 func_arith ()
19434 func_arith_result=$(( $* ))
19437 # func_len string
19438 # STRING may not start with a hyphen.
19439 func_len ()
19441 func_len_result=${#1}
19444 _LT_EOF
19446 *) # Bourne compatible functions.
19447 cat << \_LT_EOF >> "$cfgfile"
19449 # func_dirname file append nondir_replacement
19450 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19451 # otherwise set result to NONDIR_REPLACEMENT.
19452 func_dirname ()
19454 # Extract subdirectory from the argument.
19455 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19456 if test "X$func_dirname_result" = "X${1}"; then
19457 func_dirname_result="${3}"
19458 else
19459 func_dirname_result="$func_dirname_result${2}"
19463 # func_basename file
19464 func_basename ()
19466 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19470 # func_stripname prefix suffix name
19471 # strip PREFIX and SUFFIX off of NAME.
19472 # PREFIX and SUFFIX must not contain globbing or regex special
19473 # characters, hashes, percent signs, but SUFFIX may contain a leading
19474 # dot (in which case that matches only a dot).
19475 # func_strip_suffix prefix name
19476 func_stripname ()
19478 case ${2} in
19479 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19480 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19481 esac
19484 # sed scripts:
19485 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19486 my_sed_long_arg='1s/^-[^=]*=//'
19488 # func_opt_split
19489 func_opt_split ()
19491 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19492 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19495 # func_lo2o object
19496 func_lo2o ()
19498 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19501 # func_xform libobj-or-source
19502 func_xform ()
19504 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19507 # func_arith arithmetic-term...
19508 func_arith ()
19510 func_arith_result=`expr "$@"`
19513 # func_len string
19514 # STRING may not start with a hyphen.
19515 func_len ()
19517 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19520 _LT_EOF
19521 esac
19523 case $lt_shell_append in
19524 yes)
19525 cat << \_LT_EOF >> "$cfgfile"
19527 # func_append var value
19528 # Append VALUE to the end of shell variable VAR.
19529 func_append ()
19531 eval "$1+=\$2"
19533 _LT_EOF
19536 cat << \_LT_EOF >> "$cfgfile"
19538 # func_append var value
19539 # Append VALUE to the end of shell variable VAR.
19540 func_append ()
19542 eval "$1=\$$1\$2"
19545 _LT_EOF
19547 esac
19550 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19551 || (rm -f "$cfgfile"; exit 1)
19553 mv -f "$cfgfile" "$ofile" ||
19554 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19555 chmod +x "$ofile"
19558 cat <<_LT_EOF >> "$ofile"
19560 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19562 # The linker used to build libraries.
19563 LD=$lt_LD_CXX
19565 # How to create reloadable object files.
19566 reload_flag=$lt_reload_flag_CXX
19567 reload_cmds=$lt_reload_cmds_CXX
19569 # Commands used to build an old-style archive.
19570 old_archive_cmds=$lt_old_archive_cmds_CXX
19572 # A language specific compiler.
19573 CC=$lt_compiler_CXX
19575 # Is the compiler the GNU compiler?
19576 with_gcc=$GCC_CXX
19578 # Compiler flag to turn off builtin functions.
19579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19581 # How to pass a linker flag through the compiler.
19582 wl=$lt_lt_prog_compiler_wl_CXX
19584 # Additional compiler flags for building library objects.
19585 pic_flag=$lt_lt_prog_compiler_pic_CXX
19587 # Compiler flag to prevent dynamic linking.
19588 link_static_flag=$lt_lt_prog_compiler_static_CXX
19590 # Does compiler simultaneously support -c and -o options?
19591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19593 # Whether or not to add -lc for building shared libraries.
19594 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19596 # Whether or not to disallow shared libs when runtime libs are static.
19597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19599 # Compiler flag to allow reflexive dlopens.
19600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19602 # Compiler flag to generate shared objects directly from archives.
19603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19605 # Whether the compiler copes with passing no objects directly.
19606 compiler_needs_object=$lt_compiler_needs_object_CXX
19608 # Create an old-style archive from a shared archive.
19609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19611 # Create a temporary old-style archive to link instead of a shared archive.
19612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19614 # Commands used to build a shared archive.
19615 archive_cmds=$lt_archive_cmds_CXX
19616 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19618 # Commands used to build a loadable module if different from building
19619 # a shared archive.
19620 module_cmds=$lt_module_cmds_CXX
19621 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19623 # Whether we are building with GNU ld or not.
19624 with_gnu_ld=$lt_with_gnu_ld_CXX
19626 # Flag that allows shared libraries with undefined symbols to be built.
19627 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19629 # Flag that enforces no undefined symbols.
19630 no_undefined_flag=$lt_no_undefined_flag_CXX
19632 # Flag to hardcode \$libdir into a binary during linking.
19633 # This must work even if \$libdir does not exist
19634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19636 # If ld is used when linking, flag to hardcode \$libdir into a binary
19637 # during linking. This must work even if \$libdir does not exist.
19638 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19640 # Whether we need a single "-rpath" flag with a separated argument.
19641 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19643 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19644 # DIR into the resulting binary.
19645 hardcode_direct=$hardcode_direct_CXX
19647 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19648 # DIR into the resulting binary and the resulting library dependency is
19649 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19650 # library is relocated.
19651 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19653 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19654 # into the resulting binary.
19655 hardcode_minus_L=$hardcode_minus_L_CXX
19657 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19658 # into the resulting binary.
19659 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19661 # Set to "yes" if building a shared library automatically hardcodes DIR
19662 # into the library and all subsequent libraries and executables linked
19663 # against it.
19664 hardcode_automatic=$hardcode_automatic_CXX
19666 # Set to yes if linker adds runtime paths of dependent libraries
19667 # to runtime path list.
19668 inherit_rpath=$inherit_rpath_CXX
19670 # Whether libtool must link a program against all its dependency libraries.
19671 link_all_deplibs=$link_all_deplibs_CXX
19673 # Fix the shell variable \$srcfile for the compiler.
19674 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19676 # Set to "yes" if exported symbols are required.
19677 always_export_symbols=$always_export_symbols_CXX
19679 # The commands to list exported symbols.
19680 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19682 # Symbols that should not be listed in the preloaded symbols.
19683 exclude_expsyms=$lt_exclude_expsyms_CXX
19685 # Symbols that must always be exported.
19686 include_expsyms=$lt_include_expsyms_CXX
19688 # Commands necessary for linking programs (against libraries) with templates.
19689 prelink_cmds=$lt_prelink_cmds_CXX
19691 # Specify filename containing input files.
19692 file_list_spec=$lt_file_list_spec_CXX
19694 # How to hardcode a shared library path into an executable.
19695 hardcode_action=$hardcode_action_CXX
19697 # The directories searched by this compiler when creating a shared library.
19698 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19700 # Dependencies to place before and after the objects being linked to
19701 # create a shared library.
19702 predep_objects=$lt_predep_objects_CXX
19703 postdep_objects=$lt_postdep_objects_CXX
19704 predeps=$lt_predeps_CXX
19705 postdeps=$lt_postdeps_CXX
19707 # The library search path used internally by the compiler when linking
19708 # a shared library.
19709 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19711 # ### END LIBTOOL TAG CONFIG: CXX
19712 _LT_EOF
19715 "include":C) test -d include || mkdir include ;;
19716 "src":C)
19717 test -d src || mkdir src
19718 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19721 esac
19722 done # for ac_tag
19725 as_fn_exit 0
19726 _ACEOF
19727 ac_clean_files=$ac_clean_files_save
19729 test $ac_write_fail = 0 ||
19730 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19733 # configure is writing to config.log, and then calls config.status.
19734 # config.status does its own redirection, appending to config.log.
19735 # Unfortunately, on DOS this fails, as config.log is still kept open
19736 # by configure, so config.status won't be able to write to it; its
19737 # output is simply discarded. So we exec the FD to /dev/null,
19738 # effectively closing config.log, so it can be properly (re)opened and
19739 # appended to by config.status. When coming back to configure, we
19740 # need to make the FD available again.
19741 if test "$no_create" != yes; then
19742 ac_cs_success=:
19743 ac_config_status_args=
19744 test "$silent" = yes &&
19745 ac_config_status_args="$ac_config_status_args --quiet"
19746 exec 5>/dev/null
19747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19748 exec 5>>config.log
19749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19750 # would make configure fail if this is the last instruction.
19751 $ac_cs_success || as_fn_exit 1
19753 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19755 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}