]> gcc.gnu.org Git - gcc.git/blame - libffi/configure
Config,Darwin: Allow for configuring Darwin to use embedded runpath.
[gcc.git] / libffi / configure
CommitLineData
5be7b669
L
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.
4#
5# Report bugs to <http://github.com/libffi/libffi/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
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## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if 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=';'
80 }
81fi
82
83
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201
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
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
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
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
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
244fi; }
245IFS=$as_save_IFS
246
247
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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
269
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."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
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/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
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"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
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.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
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.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
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.
419as_fn_error ()
420{
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
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_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/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
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 '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
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; }
498
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
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `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;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (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'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
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.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libffi'
592PACKAGE_TARNAME='libffi'
593PACKAGE_VERSION='3.4.2'
594PACKAGE_STRING='libffi 3.4.2'
595PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_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"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638get_gcc_base_ver
639LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
645OPT_LDFLAGS
646SECTION_LDFLAGS
647toolexeclibdir
648toolexecdir
649FFI_DEBUG_FALSE
650FFI_DEBUG_TRUE
651TARGET_OBJ
652TARGETDIR
653TARGET
654BUILD_DOCS_FALSE
655BUILD_DOCS_TRUE
656FFI_EXEC_TRAMPOLINE_TABLE
657FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659HAVE_LONG_DOUBLE_VARIANT
660HAVE_LONG_DOUBLE
661ALLOCA
662AM_LTLDFLAGS
663AM_RUNTESTFLAGS
664TESTSUBDIR_FALSE
665TESTSUBDIR_TRUE
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669READELF
6a6d3817
IS
670ENABLE_DARWIN_AT_RPATH_FALSE
671ENABLE_DARWIN_AT_RPATH_TRUE
5be7b669
L
672CXXCPP
673CPP
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679RANLIB
680AR
681OBJDUMP
682LN_S
683NM
684ac_ct_DUMPBIN
685DUMPBIN
686LD
687FGREP
688EGREP
689GREP
690SED
691LIBTOOL
692am__fastdepCCAS_FALSE
693am__fastdepCCAS_TRUE
694CCASDEPMODE
695CCASFLAGS
696CCAS
333efaea 697CET_FLAGS
5be7b669
L
698am__fastdepCXX_FALSE
699am__fastdepCXX_TRUE
700CXXDEPMODE
701ac_ct_CXX
702CXXFLAGS
703CXX
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707am__nodep
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__quote
712am__include
713DEPDIR
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721GENINSRC_FALSE
722GENINSRC_TRUE
723AM_BACKSLASH
724AM_DEFAULT_VERBOSITY
725AM_DEFAULT_V
726AM_V
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762multi_basedir
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
804enable_multilib
805enable_silent_rules
806enable_generated_files_in_srcdir
807enable_dependency_tracking
333efaea 808enable_cet
5be7b669
L
809enable_shared
810enable_static
811with_pic
812enable_fast_install
813with_gnu_ld
814enable_libtool_lock
6a6d3817 815enable_darwin_at_rpath
5be7b669
L
816enable_maintainer_mode
817enable_pax_emutramp
818enable_debug
819enable_structs
820enable_raw_api
821enable_exec_static_tramp
822enable_purify_safety
823with_toolexeclibdir
824enable_symvers
825with_gcc_major_version_only
826'
827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CCAS
831CCASFLAGS
832CPP
833CPPFLAGS
834CXXCPP'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340else
1341 ac_srcdir_defaulted=no
1342fi
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375\`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428_ACEOF
1429
1430 cat <<\_ACEOF
1431
1432Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441_ACEOF
1442fi
1443
1444if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of libffi 3.4.2:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
1457 --enable-generated-files-in-srcdir
1458 put copies of generated files in source dir intended
1459 for creating source tarballs for users without
1460 texinfo bison or flex
1461 --enable-dependency-tracking
1462 do not reject slow dependency extractors
1463 --disable-dependency-tracking
1464 speeds up one-time build
333efaea 1465 --enable-cet enable Intel CET in target libraries [default=auto]
5be7b669
L
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
6a6d3817
IS
1471 --enable-darwin-at-rpath
1472 install libraries with @rpath/library-name, requires
1473 rpaths to be added to executables
5be7b669
L
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1478 --enable-debug debugging mode
1479 --disable-structs omit code for struct support
1480 --disable-raw-api make the raw api unavailable
1481 --enable-exec-static-tramp enable use of static exec trampolines
1482 --enable-purify-safety purify-safe mode
1483 --enable-symvers=STYLE enables symbol versioning of the shared library
1484 [default=yes]
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-toolexeclibdir=DIR
1493 install libraries built with a cross compiler within
1494 DIR
1495 --with-gcc-major-version-only
1496 use only GCC major number in filesystem paths
1497
1498Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CCAS assembler compiler command (defaults to CC)
1509 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 CPP C preprocessor
1511 CXXCPP C++ preprocessor
1512
1513Use these variables to override the choices made by `configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
1516Report bugs to <http://github.com/libffi/libffi/issues>.
1517_ACEOF
1518ac_status=$?
1519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578 cat <<\_ACEOF
1579libffi configure 3.4.2
1580generated by GNU Autoconf 2.69
1581
1582Copyright (C) 2012 Free Software Foundation, Inc.
1583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
1585_ACEOF
1586 exit
1587fi
1588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667} # ac_fn_cxx_try_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 test -x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h. */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734else
1735 eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_compile
1745
1746# ac_fn_c_try_cpp LINENO
1747# ----------------------
1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749ac_fn_c_try_cpp ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=1
1777fi
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_cpp
1782
1783# ac_fn_c_try_run LINENO
1784# ----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786# that executables *can* be run.
1787ac_fn_c_try_run ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801 { { case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_try") 2>&5
1808 ac_status=$?
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; }; }; then :
1811 ac_retval=0
1812else
1813 $as_echo "$as_me: program exited with status $ac_status" >&5
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=$ac_status
1818fi
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823} # ac_fn_c_try_run
1824
1825# ac_fn_c_check_func LINENO FUNC VAR
1826# ----------------------------------
1827# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828ac_fn_c_check_func ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847#ifdef __STDC__
1848# include <limits.h>
1849#else
1850# include <assert.h>
1851#endif
1852
1853#undef $2
1854
1855/* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858#ifdef __cplusplus
1859extern "C"
1860#endif
1861char $2 ();
1862/* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865#if defined __stub_$2 || defined __stub___$2
1866choke me
1867#endif
1868
1869int
1870main ()
1871{
1872return $2 ();
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_cxx_try_cpp LINENO
1893# ------------------------
1894# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_cxx_try_cpp ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } > conftest.i && {
1914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918else
1919 $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923fi
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927} # ac_fn_cxx_try_cpp
1928
1929# ac_fn_cxx_try_link LINENO
1930# -------------------------
1931# Try to link conftest.$ac_ext, and return whether this succeeded.
1932ac_fn_cxx_try_link ()
1933{
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1949 fi
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 test -x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959else
1960 $as_echo "$as_me: failed program was:" >&5
1961sed 's/^/| /' conftest.$ac_ext >&5
1962
1963 ac_retval=1
1964fi
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973} # ac_fn_cxx_try_link
1974
1975# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976# --------------------------------------------
1977# Tries to find the compile-time value of EXPR in a program that includes
1978# INCLUDES, setting VAR accordingly. Returns whether the value could be
1979# computed
1980ac_fn_c_compute_int ()
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) >= 0)];
1992test_array [0] = 0;
1993return test_array [0];
1994
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_lo=0 ac_mid=0
2001 while :; do
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$4
2005int
2006main ()
2007{
2008static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009test_array [0] = 0;
2010return test_array [0];
2011
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_hi=$ac_mid; break
2018else
2019 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2020 if test $ac_lo -le $ac_mid; then
2021 ac_lo= ac_hi=
2022 break
2023 fi
2024 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 done
2028else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) < 0)];
2036test_array [0] = 0;
2037return test_array [0];
2038
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=-1 ac_mid=-1
2045 while :; do
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h. */
2048$4
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053test_array [0] = 0;
2054return test_array [0];
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=$ac_mid; break
2062else
2063 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2064 if test $ac_mid -le $ac_hi; then
2065 ac_lo= ac_hi=
2066 break
2067 fi
2068 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069fi
2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072else
2073 ac_lo= ac_hi=
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078# Binary search between lo and hi bounds.
2079while test "x$ac_lo" != "x$ac_hi"; do
2080 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088test_array [0] = 0;
2089return test_array [0];
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid
2097else
2098 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101done
2102case $ac_lo in #((
2103?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2104'') ac_retval=1 ;;
2105esac
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110static long int longval () { return $2; }
2111static unsigned long int ulongval () { return $2; }
2112#include <stdio.h>
2113#include <stdlib.h>
2114int
2115main ()
2116{
2117
2118 FILE *f = fopen ("conftest.val", "w");
2119 if (! f)
2120 return 1;
2121 if (($2) < 0)
2122 {
2123 long int i = longval ();
2124 if (i != ($2))
2125 return 1;
2126 fprintf (f, "%ld", i);
2127 }
2128 else
2129 {
2130 unsigned long int i = ulongval ();
2131 if (i != ($2))
2132 return 1;
2133 fprintf (f, "%lu", i);
2134 }
2135 /* Do not output a trailing newline, as this causes \r\n confusion
2136 on some platforms. */
2137 return ferror (f) || fclose (f) != 0;
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_run "$LINENO"; then :
2144 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2145else
2146 ac_retval=1
2147fi
2148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2149 conftest.$ac_objext conftest.beam conftest.$ac_ext
2150rm -f conftest.val
2151
2152 fi
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2155
2156} # ac_fn_c_compute_int
2157
2158# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159# -------------------------------------------------------
2160# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161# the include files in INCLUDES and setting the cache variable VAR
2162# accordingly.
2163ac_fn_c_check_header_mongrel ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if eval \${$3+:} false; then :
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
2169if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2171fi
2172eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175else
2176 # Is the header compilable?
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178$as_echo_n "checking $2 usability... " >&6; }
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_header_compiler=yes
2186else
2187 ac_header_compiler=no
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191$as_echo "$ac_header_compiler" >&6; }
2192
2193# Is the header present?
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195$as_echo_n "checking $2 presence... " >&6; }
2196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198#include <$2>
2199_ACEOF
2200if ac_fn_c_try_cpp "$LINENO"; then :
2201 ac_header_preproc=yes
2202else
2203 ac_header_preproc=no
2204fi
2205rm -f conftest.err conftest.i conftest.$ac_ext
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207$as_echo "$ac_header_preproc" >&6; }
2208
2209# So? What about this header?
2210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211 yes:no: )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ;;
2217 no:yes:* )
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2221$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2225$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228( $as_echo "## ----------------------------------------------------- ##
2229## Report this to http://github.com/libffi/libffi/issues ##
2230## ----------------------------------------------------- ##"
2231 ) | sed "s/^/$as_me: WARNING: /" >&2
2232 ;;
2233esac
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2238else
2239 eval "$3=\$ac_header_compiler"
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244fi
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246
2247} # ac_fn_c_check_header_mongrel
2248
2249# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2250# -------------------------------------------
2251# Tests whether TYPE exists after having included INCLUDES, setting cache
2252# variable VAR accordingly.
2253ac_fn_c_check_type ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257$as_echo_n "checking for $2... " >&6; }
2258if eval \${$3+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260else
2261 eval "$3=no"
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264$4
2265int
2266main ()
2267{
2268if (sizeof ($2))
2269 return 0;
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277$4
2278int
2279main ()
2280{
2281if (sizeof (($2)))
2282 return 0;
2283 ;
2284 return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_compile "$LINENO"; then :
2288
2289else
2290 eval "$3=yes"
2291fi
2292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300
2301} # ac_fn_c_check_type
2302cat >config.log <<_ACEOF
2303This file contains any messages produced by compilers while
2304running configure, to aid debugging if configure makes a mistake.
2305
2306It was created by libffi $as_me 3.4.2, which was
2307generated by GNU Autoconf 2.69. Invocation command line was
2308
2309 $ $0 $@
2310
2311_ACEOF
2312exec 5>>config.log
2313{
2314cat <<_ASUNAME
2315## --------- ##
2316## Platform. ##
2317## --------- ##
2318
2319hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323uname -v = `(uname -v) 2>/dev/null || echo unknown`
2324
2325/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2327
2328/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2329/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2330/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2332/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2333/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2334/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2335
2336_ASUNAME
2337
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2344 done
2345IFS=$as_save_IFS
2346
2347} >&5
2348
2349cat >&5 <<_ACEOF
2350
2351
2352## ----------- ##
2353## Core tests. ##
2354## ----------- ##
2355
2356_ACEOF
2357
2358
2359# Keep a trace of the command line.
2360# Strip out --no-create and --no-recursion so they do not pile up.
2361# Strip out --silent because we don't want to record it for future runs.
2362# Also quote any args containing shell meta-characters.
2363# Make two passes to allow for proper duplicate-argument suppression.
2364ac_configure_args=
2365ac_configure_args0=
2366ac_configure_args1=
2367ac_must_keep_next=false
2368for ac_pass in 1 2
2369do
2370 for ac_arg
2371 do
2372 case $ac_arg in
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2376 continue ;;
2377 *\'*)
2378 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 esac
2380 case $ac_pass in
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 2)
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2386 else
2387 case $ac_arg in
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 esac
2395 ;;
2396 -* ) ac_must_keep_next=true ;;
2397 esac
2398 fi
2399 as_fn_append ac_configure_args " '$ac_arg'"
2400 ;;
2401 esac
2402 done
2403done
2404{ ac_configure_args0=; unset ac_configure_args0;}
2405{ ac_configure_args1=; unset ac_configure_args1;}
2406
2407# When interrupted or exit'd, cleanup temporary files, and complete
2408# config.log. We remove comments because anyway the quotes in there
2409# would cause problems or look ugly.
2410# WARNING: Use '\'' to represent an apostrophe within the trap.
2411# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2414 {
2415 echo
2416
2417 $as_echo "## ---------------- ##
2418## Cache variables. ##
2419## ---------------- ##"
2420 echo
2421 # The following way of writing the cache mishandles newlines in values,
2422(
2423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in #(
2426 *${as_nl}*)
2427 case $ac_var in #(
2428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2429$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 esac
2431 case $ac_var in #(
2432 _ | IFS | as_nl) ;; #(
2433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2434 *) { eval $ac_var=; unset $ac_var;} ;;
2435 esac ;;
2436 esac
2437 done
2438 (set) 2>&1 |
2439 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2440 *${as_nl}ac_space=\ *)
2441 sed -n \
2442 "s/'\''/'\''\\\\'\'''\''/g;
2443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 ;; #(
2445 *)
2446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 ;;
2448 esac |
2449 sort
2450)
2451 echo
2452
2453 $as_echo "## ----------------- ##
2454## Output variables. ##
2455## ----------------- ##"
2456 echo
2457 for ac_var in $ac_subst_vars
2458 do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2466
2467 if test -n "$ac_subst_files"; then
2468 $as_echo "## ------------------- ##
2469## File substitutions. ##
2470## ------------------- ##"
2471 echo
2472 for ac_var in $ac_subst_files
2473 do
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 $as_echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2481 fi
2482
2483 if test -s confdefs.h; then
2484 $as_echo "## ----------- ##
2485## confdefs.h. ##
2486## ----------- ##"
2487 echo
2488 cat confdefs.h
2489 echo
2490 fi
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2494 } >&5
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 exit $exit_status
2498' 0
2499for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501done
2502ac_signal=0
2503
2504# confdefs.h avoids OS command line length limits that DEFS can exceed.
2505rm -f -r conftest* confdefs.h
2506
2507$as_echo "/* confdefs.h */" > confdefs.h
2508
2509# Predefined preprocessor variables.
2510
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_NAME "$PACKAGE_NAME"
2513_ACEOF
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2517_ACEOF
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_VERSION "$PACKAGE_VERSION"
2521_ACEOF
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_STRING "$PACKAGE_STRING"
2525_ACEOF
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529_ACEOF
2530
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_URL "$PACKAGE_URL"
2533_ACEOF
2534
2535
2536# Let the site file select an alternate cache file if it wants to.
2537# Prefer an explicitly selected file to automatically selected ones.
2538ac_site_file1=NONE
2539ac_site_file2=NONE
2540if test -n "$CONFIG_SITE"; then
2541 # We do not want a PATH search for config.site.
2542 case $CONFIG_SITE in #((
2543 -*) ac_site_file1=./$CONFIG_SITE;;
2544 */*) ac_site_file1=$CONFIG_SITE;;
2545 *) ac_site_file1=./$CONFIG_SITE;;
2546 esac
2547elif test "x$prefix" != xNONE; then
2548 ac_site_file1=$prefix/share/config.site
2549 ac_site_file2=$prefix/etc/config.site
2550else
2551 ac_site_file1=$ac_default_prefix/share/config.site
2552 ac_site_file2=$ac_default_prefix/etc/config.site
2553fi
2554for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555do
2556 test "x$ac_site_file" = xNONE && continue
2557 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2559$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2560 sed 's/^/| /' "$ac_site_file" >&5
2561 . "$ac_site_file" \
2562 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564as_fn_error $? "failed to load site script $ac_site_file
2565See \`config.log' for more details" "$LINENO" 5; }
2566 fi
2567done
2568
2569if test -r "$cache_file"; then
2570 # Some versions of bash will fail to source /dev/null (special files
2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2574$as_echo "$as_me: loading cache $cache_file" >&6;}
2575 case $cache_file in
2576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2577 *) . "./$cache_file";;
2578 esac
2579 fi
2580else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2582$as_echo "$as_me: creating cache $cache_file" >&6;}
2583 >$cache_file
2584fi
2585
2586# Check that the precious variables saved in the cache have kept the same
2587# value.
2588ac_cache_corrupted=false
2589for ac_var in $ac_precious_vars; do
2590 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2591 eval ac_new_set=\$ac_env_${ac_var}_set
2592 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2593 eval ac_new_val=\$ac_env_${ac_var}_value
2594 case $ac_old_set,$ac_new_set in
2595 set,)
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2597$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2598 ac_cache_corrupted=: ;;
2599 ,set)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2601$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,);;
2604 *)
2605 if test "x$ac_old_val" != "x$ac_new_val"; then
2606 # differences in whitespace do not lead to failure.
2607 ac_old_val_w=`echo x $ac_old_val`
2608 ac_new_val_w=`echo x $ac_new_val`
2609 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2611$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2612 ac_cache_corrupted=:
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2615$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2616 eval $ac_var=\$ac_old_val
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2619$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2621$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2622 fi;;
2623 esac
2624 # Pass precious variables to config.status.
2625 if test "$ac_new_set" = set; then
2626 case $ac_new_val in
2627 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2628 *) ac_arg=$ac_var=$ac_new_val ;;
2629 esac
2630 case " $ac_configure_args " in
2631 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2632 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2633 esac
2634 fi
2635done
2636if $ac_cache_corrupted; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2640$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2641 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2642fi
2643## -------------------- ##
2644## Main body of script. ##
2645## -------------------- ##
2646
2647ac_ext=c
2648ac_cpp='$CPP $CPPFLAGS'
2649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
2653
2654
2655
2656
2657ac_config_headers="$ac_config_headers fficonfig.h"
2658
2659
2660# Default to --enable-multilib
2661# Check whether --enable-multilib was given.
2662if test "${enable_multilib+set}" = set; then :
2663 enableval=$enable_multilib; case "$enableval" in
2664 yes) multilib=yes ;;
2665 no) multilib=no ;;
2666 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2667 esac
2668else
2669 multilib=yes
2670fi
2671
2672
2673# We may get other options which we leave undocumented:
2674# --with-target-subdir, --with-multisrctop, --with-multisubdir
2675# See config-ml.in if you want the gory details.
2676
2677if test "$srcdir" = "."; then
2678 if test "$with_target_subdir" != "."; then
2679 multi_basedir="$srcdir/$with_multisrctop../.."
2680 else
2681 multi_basedir="$srcdir/$with_multisrctop.."
2682 fi
2683else
2684 multi_basedir="$srcdir/.."
2685fi
2686
2687
2688# Even if the default multilib is not a cross compilation,
2689# it may be that some of the other multilibs are.
2690if test $cross_compiling = no && test $multilib = yes \
2691 && test "x${with_multisubdir}" != x ; then
2692 cross_compiling=maybe
2693fi
2694
2695ac_config_commands="$ac_config_commands default-1"
2696
2697
2698ac_aux_dir=
2699for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2700 if test -f "$ac_dir/install-sh"; then
2701 ac_aux_dir=$ac_dir
2702 ac_install_sh="$ac_aux_dir/install-sh -c"
2703 break
2704 elif test -f "$ac_dir/install.sh"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/install.sh -c"
2707 break
2708 elif test -f "$ac_dir/shtool"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/shtool install -c"
2711 break
2712 fi
2713done
2714if test -z "$ac_aux_dir"; then
2715 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2716fi
2717
2718# These three variables are undocumented and unsupported,
2719# and are intended to be withdrawn in a future Autoconf release.
2720# They can cause serious problems if a builder's source tree is in a directory
2721# whose full name contains unusual characters.
2722ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2723ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2724ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2725
2726
2727# Make sure we can run config.sub.
2728$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2729 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2730
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2732$as_echo_n "checking build system type... " >&6; }
2733if ${ac_cv_build+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735else
2736 ac_build_alias=$build_alias
2737test "x$ac_build_alias" = x &&
2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2739test "x$ac_build_alias" = x &&
2740 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2741ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2743
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2746$as_echo "$ac_cv_build" >&6; }
2747case $ac_cv_build in
2748*-*-*) ;;
2749*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2750esac
2751build=$ac_cv_build
2752ac_save_IFS=$IFS; IFS='-'
2753set x $ac_cv_build
2754shift
2755build_cpu=$1
2756build_vendor=$2
2757shift; shift
2758# Remember, the first character of IFS is used to create $*,
2759# except with old shells:
2760build_os=$*
2761IFS=$ac_save_IFS
2762case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2763
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2766$as_echo_n "checking host system type... " >&6; }
2767if ${ac_cv_host+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769else
2770 if test "x$host_alias" = x; then
2771 ac_cv_host=$ac_cv_build
2772else
2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2775fi
2776
2777fi
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2779$as_echo "$ac_cv_host" >&6; }
2780case $ac_cv_host in
2781*-*-*) ;;
2782*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2783esac
2784host=$ac_cv_host
2785ac_save_IFS=$IFS; IFS='-'
2786set x $ac_cv_host
2787shift
2788host_cpu=$1
2789host_vendor=$2
2790shift; shift
2791# Remember, the first character of IFS is used to create $*,
2792# except with old shells:
2793host_os=$*
2794IFS=$ac_save_IFS
2795case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2796
2797
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2799$as_echo_n "checking target system type... " >&6; }
2800if ${ac_cv_target+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802else
2803 if test "x$target_alias" = x; then
2804 ac_cv_target=$ac_cv_host
2805else
2806 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2808fi
2809
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2812$as_echo "$ac_cv_target" >&6; }
2813case $ac_cv_target in
2814*-*-*) ;;
2815*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2816esac
2817target=$ac_cv_target
2818ac_save_IFS=$IFS; IFS='-'
2819set x $ac_cv_target
2820shift
2821target_cpu=$1
2822target_vendor=$2
2823shift; shift
2824# Remember, the first character of IFS is used to create $*,
2825# except with old shells:
2826target_os=$*
2827IFS=$ac_save_IFS
2828case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2829
2830
2831# The aliases save the names the user supplied, while $host etc.
2832# will get canonicalized.
2833test -n "$target_alias" &&
2834 test "$program_prefix$program_suffix$program_transform_name" = \
2835 NONENONEs,x,x, &&
2836 program_prefix=${target_alias}-
2837
2838target_alias=${target_alias-$host_alias}
2839
2840am__api_version='1.15'
2841
2842# Find a good install program. We prefer a C program (faster),
2843# so one script is as good as another. But avoid the broken or
2844# incompatible versions:
2845# SysV /etc/install, /usr/sbin/install
2846# SunOS /usr/etc/install
2847# IRIX /sbin/install
2848# AIX /bin/install
2849# AmigaOS /C/install, which installs bootblocks on floppy discs
2850# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2851# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2852# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2853# OS/2's system install, which has a completely different semantic
2854# ./install, which can be erroneously created by make from ./install.sh.
2855# Reject install programs that cannot install multiple files.
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2857$as_echo_n "checking for a BSD-compatible install... " >&6; }
2858if test -z "$INSTALL"; then
2859if ${ac_cv_path_install+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 # Account for people who put trailing slashes in PATH elements.
2868case $as_dir/ in #((
2869 ./ | .// | /[cC]/* | \
2870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2871 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2872 /usr/ucb/* ) ;;
2873 *)
2874 # OSF1 and SCO ODT 3.0 have their own names for install.
2875 # Don't use installbsd from OSF since it installs stuff as root
2876 # by default.
2877 for ac_prog in ginstall scoinst install; do
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2880 if test $ac_prog = install &&
2881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2882 # AIX install. It has an incompatible calling convention.
2883 :
2884 elif test $ac_prog = install &&
2885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886 # program-specific install script used by HP pwplus--don't use.
2887 :
2888 else
2889 rm -rf conftest.one conftest.two conftest.dir
2890 echo one > conftest.one
2891 echo two > conftest.two
2892 mkdir conftest.dir
2893 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2894 test -s conftest.one && test -s conftest.two &&
2895 test -s conftest.dir/conftest.one &&
2896 test -s conftest.dir/conftest.two
2897 then
2898 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2899 break 3
2900 fi
2901 fi
2902 fi
2903 done
2904 done
2905 ;;
2906esac
2907
2908 done
2909IFS=$as_save_IFS
2910
2911rm -rf conftest.one conftest.two conftest.dir
2912
2913fi
2914 if test "${ac_cv_path_install+set}" = set; then
2915 INSTALL=$ac_cv_path_install
2916 else
2917 # As a last resort, use the slow shell script. Don't cache a
2918 # value for INSTALL within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the value is a relative name.
2921 INSTALL=$ac_install_sh
2922 fi
2923fi
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2925$as_echo "$INSTALL" >&6; }
2926
2927# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928# It thinks the first close brace ends the variable substitution.
2929test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930
2931test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2932
2933test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2936$as_echo_n "checking whether build environment is sane... " >&6; }
2937# Reject unsafe characters in $srcdir or the absolute working directory
2938# name. Accept space and tab only in the latter.
2939am_lf='
2940'
2941case `pwd` in
2942 *[\\\"\#\$\&\'\`$am_lf]*)
2943 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2944esac
2945case $srcdir in
2946 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2947 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2948esac
2949
2950# Do 'set' in a subshell so we don't clobber the current shell's
2951# arguments. Must try -L first in case configure is actually a
2952# symlink; some systems play weird games with the mod time of symlinks
2953# (eg FreeBSD returns the mod time of the symlink's containing
2954# directory).
2955if (
2956 am_has_slept=no
2957 for am_try in 1 2; do
2958 echo "timestamp, slept: $am_has_slept" > conftest.file
2959 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2960 if test "$*" = "X"; then
2961 # -L didn't work.
2962 set X `ls -t "$srcdir/configure" conftest.file`
2963 fi
2964 if test "$*" != "X $srcdir/configure conftest.file" \
2965 && test "$*" != "X conftest.file $srcdir/configure"; then
2966
2967 # If neither matched, then we have a broken ls. This can happen
2968 # if, for instance, CONFIG_SHELL is bash and it inherits a
2969 # broken ls alias from the environment. This has actually
2970 # happened. Such a system could not be considered "sane".
2971 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2972 alias in your environment" "$LINENO" 5
2973 fi
2974 if test "$2" = conftest.file || test $am_try -eq 2; then
2975 break
2976 fi
2977 # Just in case.
2978 sleep 1
2979 am_has_slept=yes
2980 done
2981 test "$2" = conftest.file
2982 )
2983then
2984 # Ok.
2985 :
2986else
2987 as_fn_error $? "newly created file is older than distributed files!
2988Check your system clock" "$LINENO" 5
2989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991$as_echo "yes" >&6; }
2992# If we didn't sleep, we still need to ensure time stamps of config.status and
2993# generated files are strictly newer.
2994am_sleep_pid=
2995if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2996 ( sleep 1 ) &
2997 am_sleep_pid=$!
2998fi
2999
3000rm -f conftest.file
3001
3002test "$program_prefix" != NONE &&
3003 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3004# Use a double $ so make ignores it.
3005test "$program_suffix" != NONE &&
3006 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3007# Double any \ or $.
3008# By default was `s,x,x', remove it if useless.
3009ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3010program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3011
3012# Expand $ac_aux_dir to an absolute path.
3013am_aux_dir=`cd "$ac_aux_dir" && pwd`
3014
3015if test x"${MISSING+set}" != xset; then
3016 case $am_aux_dir in
3017 *\ * | *\ *)
3018 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3019 *)
3020 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3021 esac
3022fi
3023# Use eval to expand $SHELL
3024if eval "$MISSING --is-lightweight"; then
3025 am_missing_run="$MISSING "
3026else
3027 am_missing_run=
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3029$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3030fi
3031
3032if test x"${install_sh+set}" != xset; then
3033 case $am_aux_dir in
3034 *\ * | *\ *)
3035 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3036 *)
3037 install_sh="\${SHELL} $am_aux_dir/install-sh"
3038 esac
3039fi
3040
3041# Installed binaries are usually stripped using 'strip' when the user
3042# run "make install-strip". However 'strip' might not be the right
3043# tool to use in cross-compilation environments, therefore Automake
3044# will honor the 'STRIP' environment variable to overrule this program.
3045if test "$cross_compiling" != no; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3048set dummy ${ac_tool_prefix}strip; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if ${ac_cv_prog_STRIP+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053else
3054 if test -n "$STRIP"; then
3055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068done
3069 done
3070IFS=$as_save_IFS
3071
3072fi
3073fi
3074STRIP=$ac_cv_prog_STRIP
3075if test -n "$STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3077$as_echo "$STRIP" >&6; }
3078else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
3081fi
3082
3083
3084fi
3085if test -z "$ac_cv_prog_STRIP"; then
3086 ac_ct_STRIP=$STRIP
3087 # Extract the first word of "strip", so it can be a program name with args.
3088set dummy strip; ac_word=$2
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090$as_echo_n "checking for $ac_word... " >&6; }
3091if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093else
3094 if test -n "$ac_ct_STRIP"; then
3095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_ac_ct_STRIP="strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108done
3109 done
3110IFS=$as_save_IFS
3111
3112fi
3113fi
3114ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3115if test -n "$ac_ct_STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3117$as_echo "$ac_ct_STRIP" >&6; }
3118else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123 if test "x$ac_ct_STRIP" = x; then
3124 STRIP=":"
3125 else
3126 case $cross_compiling:$ac_tool_warned in
3127yes:)
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130ac_tool_warned=yes ;;
3131esac
3132 STRIP=$ac_ct_STRIP
3133 fi
3134else
3135 STRIP="$ac_cv_prog_STRIP"
3136fi
3137
3138fi
3139INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3140
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3142$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3143if test -z "$MKDIR_P"; then
3144 if ${ac_cv_path_mkdir+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_prog in mkdir gmkdir; do
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3155 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3156 'mkdir (GNU coreutils) '* | \
3157 'mkdir (coreutils) '* | \
3158 'mkdir (fileutils) '4.1*)
3159 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3160 break 3;;
3161 esac
3162 done
3163 done
3164 done
3165IFS=$as_save_IFS
3166
3167fi
3168
3169 test -d ./--version && rmdir ./--version
3170 if test "${ac_cv_path_mkdir+set}" = set; then
3171 MKDIR_P="$ac_cv_path_mkdir -p"
3172 else
3173 # As a last resort, use the slow shell script. Don't cache a
3174 # value for MKDIR_P within a source directory, because that will
3175 # break other packages using the cache if that directory is
3176 # removed, or if the value is a relative name.
3177 MKDIR_P="$ac_install_sh -d"
3178 fi
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3181$as_echo "$MKDIR_P" >&6; }
3182
3183for ac_prog in gawk mawk nawk awk
3184do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186set dummy $ac_prog; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if ${ac_cv_prog_AWK+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191else
3192 if test -n "$AWK"; then
3193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_AWK="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206done
3207 done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212AWK=$ac_cv_prog_AWK
3213if test -n "$AWK"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3215$as_echo "$AWK" >&6; }
3216else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219fi
3220
3221
3222 test -n "$AWK" && break
3223done
3224
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3226$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3227set x ${MAKE-make}
3228ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3229if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231else
3232 cat >conftest.make <<\_ACEOF
3233SHELL = /bin/sh
3234all:
3235 @echo '@@@%%%=$(MAKE)=@@@%%%'
3236_ACEOF
3237# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3238case `${MAKE-make} -f conftest.make 2>/dev/null` in
3239 *@@@%%%=?*=@@@%%%*)
3240 eval ac_cv_prog_make_${ac_make}_set=yes;;
3241 *)
3242 eval ac_cv_prog_make_${ac_make}_set=no;;
3243esac
3244rm -f conftest.make
3245fi
3246if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
3249 SET_MAKE=
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253 SET_MAKE="MAKE=${MAKE-make}"
3254fi
3255
3256rm -rf .tst 2>/dev/null
3257mkdir .tst 2>/dev/null
3258if test -d .tst; then
3259 am__leading_dot=.
3260else
3261 am__leading_dot=_
3262fi
3263rmdir .tst 2>/dev/null
3264
3265# Check whether --enable-silent-rules was given.
3266if test "${enable_silent_rules+set}" = set; then :
3267 enableval=$enable_silent_rules;
3268fi
3269
3270case $enable_silent_rules in # (((
3271 yes) AM_DEFAULT_VERBOSITY=0;;
3272 no) AM_DEFAULT_VERBOSITY=1;;
3273 *) AM_DEFAULT_VERBOSITY=1;;
3274esac
3275am_make=${MAKE-make}
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3277$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3278if ${am_cv_make_support_nested_variables+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280else
3281 if $as_echo 'TRUE=$(BAR$(V))
3282BAR0=false
3283BAR1=true
3284V=1
3285am__doit:
3286 @$(TRUE)
3287.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3288 am_cv_make_support_nested_variables=yes
3289else
3290 am_cv_make_support_nested_variables=no
3291fi
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3294$as_echo "$am_cv_make_support_nested_variables" >&6; }
3295if test $am_cv_make_support_nested_variables = yes; then
3296 AM_V='$(V)'
3297 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3298else
3299 AM_V=$AM_DEFAULT_VERBOSITY
3300 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3301fi
3302AM_BACKSLASH='\'
3303
3304if test "`cd $srcdir && pwd`" != "`pwd`"; then
3305 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3306 # is not polluted with repeated "-I."
3307 am__isrc=' -I$(srcdir)'
3308 # test to see if srcdir already configured
3309 if test -f $srcdir/config.status; then
3310 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3311 fi
3312fi
3313
3314# test whether we have cygpath
3315if test -z "$CYGPATH_W"; then
3316 if (cygpath --version) >/dev/null 2>/dev/null; then
3317 CYGPATH_W='cygpath -w'
3318 else
3319 CYGPATH_W=echo
3320 fi
3321fi
3322
3323
3324# Define the identity of the package.
3325 PACKAGE='libffi'
3326 VERSION='3.4.2'
3327
3328
3329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE "$PACKAGE"
3331_ACEOF
3332
3333
3334cat >>confdefs.h <<_ACEOF
3335#define VERSION "$VERSION"
3336_ACEOF
3337
3338# Some tools Automake needs.
3339
3340ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3341
3342
3343AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3344
3345
3346AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3347
3348
3349AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3350
3351
3352MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3353
3354# For better backward compatibility. To be removed once Automake 1.9.x
3355# dies out for good. For more background, see:
3356# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3357# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3358mkdir_p='$(MKDIR_P)'
3359
3360# We need awk for the "check" target (and possibly the TAP driver). The
3361# system "awk" is bad on some platforms.
3362# Always define AMTAR for backward compatibility. Yes, it's still used
3363# in the wild :-( We should find a proper way to deprecate it ...
3364AMTAR='$${TAR-tar}'
3365
3366
3367# We'll loop over all known methods to create a tar archive until one works.
3368_am_tools='gnutar pax cpio none'
3369
3370am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3371
3372
3373
3374
3375
3376
3377# POSIX will say in a future version that running "rm -f" with no argument
3378# is OK; and we want to be able to make that assumption in our Makefile
3379# recipes. So use an aggressive probe to check that the usage we want is
3380# actually supported "in the wild" to an acceptable degree.
3381# See automake bug#10828.
3382# To make any issue more visible, cause the running configure to be aborted
3383# by default if the 'rm' program in use doesn't match our expectations; the
3384# user can still override this though.
3385if rm -f && rm -fr && rm -rf; then : OK; else
3386 cat >&2 <<'END'
3387Oops!
3388
3389Your 'rm' program seems unable to run without file operands specified
3390on the command line, even when the '-f' option is present. This is contrary
3391to the behaviour of most rm programs out there, and not conforming with
3392the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3393
3394Please tell bug-automake@gnu.org about your system, including the value
3395of your $PATH and any error possibly output before this message. This
3396can help us improve future automake versions.
3397
3398END
3399 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3400 echo 'Configuration will proceed anyway, since you have set the' >&2
3401 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3402 echo >&2
3403 else
3404 cat >&2 <<'END'
3405Aborting the configuration process, to ensure you take notice of the issue.
3406
3407You can download and install GNU coreutils to get an 'rm' implementation
3408that behaves properly: <http://www.gnu.org/software/coreutils/>.
3409
3410If you want to complete the configuration process using your problematic
3411'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3412to "yes", and re-run configure.
3413
3414END
3415 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3416 fi
3417fi
3418
3419
3420# We would like our source tree to be readonly. However when releases or
3421# pre-releases are generated, the flex/bison generated files as well as the
3422# various formats of manuals need to be included along with the rest of the
3423# sources. Therefore we have --enable-generated-files-in-srcdir to do
3424# just that.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3426$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3427# Check whether --enable-generated-files-in-srcdir was given.
3428if test "${enable_generated_files_in_srcdir+set}" = set; then :
3429 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3430 yes) enable_generated_files_in_srcdir=yes ;;
3431 no) enable_generated_files_in_srcdir=no ;;
3432 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3433 esac
3434else
3435 enable_generated_files_in_srcdir=no
3436fi
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3439$as_echo "$enable_generated_files_in_srcdir" >&6; }
3440 if test "$enable_generated_files_in_srcdir" = yes; then
3441 GENINSRC_TRUE=
3442 GENINSRC_FALSE='#'
3443else
3444 GENINSRC_TRUE='#'
3445 GENINSRC_FALSE=
3446fi
3447
3448
3449# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3450# We must force CC to /not/ be precious variables; otherwise
3451# the wrong, non-multilib-adjusted value will be used in multilibs.
3452# As a side effect, we have to subst CFLAGS ourselves.
3453# Also save and restore CFLAGS, since AC_PROG_CC will come up with
3454# defaults of its own if none are provided.
3455
3456
3457
3458save_CFLAGS=$CFLAGS
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464if test -n "$ac_tool_prefix"; then
3465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3466set dummy ${ac_tool_prefix}gcc; ac_word=$2
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468$as_echo_n "checking for $ac_word... " >&6; }
3469if ${ac_cv_prog_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471else
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3474else
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487 done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492CC=$ac_cv_prog_CC
3493if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495$as_echo "$CC" >&6; }
3496else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499fi
3500
3501
3502fi
3503if test -z "$ac_cv_prog_CC"; then
3504 ac_ct_CC=$CC
3505 # Extract the first word of "gcc", so it can be a program name with args.
3506set dummy gcc; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="gcc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526done
3527 done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535$as_echo "$ac_ct_CC" >&6; }
3536else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541 if test "x$ac_ct_CC" = x; then
3542 CC=""
3543 else
3544 case $cross_compiling:$ac_tool_warned in
3545yes:)
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3548ac_tool_warned=yes ;;
3549esac
3550 CC=$ac_ct_CC
3551 fi
3552else
3553 CC="$ac_cv_prog_CC"
3554fi
3555
3556if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3559set dummy ${ac_tool_prefix}cc; ac_word=$2
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561$as_echo_n "checking for $ac_word... " >&6; }
3562if ${ac_cv_prog_CC+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564else
3565 if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3567else
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_CC="${ac_tool_prefix}cc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579done
3580 done
3581IFS=$as_save_IFS
3582
3583fi
3584fi
3585CC=$ac_cv_prog_CC
3586if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588$as_echo "$CC" >&6; }
3589else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591$as_echo "no" >&6; }
3592fi
3593
3594
3595 fi
3596fi
3597if test -z "$CC"; then
3598 # Extract the first word of "cc", so it can be a program name with args.
3599set dummy cc; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if ${ac_cv_prog_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604else
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3607else
3608 ac_prog_rejected=no
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3617 ac_prog_rejected=yes
3618 continue
3619 fi
3620 ac_cv_prog_CC="cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624done
3625 done
3626IFS=$as_save_IFS
3627
3628if test $ac_prog_rejected = yes; then
3629 # We found a bogon in the path, so make sure we never use it.
3630 set dummy $ac_cv_prog_CC
3631 shift
3632 if test $# != 0; then
3633 # We chose a different compiler from the bogus one.
3634 # However, it has the same basename, so the bogon will be chosen
3635 # first if we set CC to just the basename; use the full file name.
3636 shift
3637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3638 fi
3639fi
3640fi
3641fi
3642CC=$ac_cv_prog_CC
3643if test -n "$CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645$as_echo "$CC" >&6; }
3646else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648$as_echo "no" >&6; }
3649fi
3650
3651
3652fi
3653if test -z "$CC"; then
3654 if test -n "$ac_tool_prefix"; then
3655 for ac_prog in cl.exe
3656 do
3657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660$as_echo_n "checking for $ac_word... " >&6; }
3661if ${ac_cv_prog_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666else
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679 done
3680IFS=$as_save_IFS
3681
3682fi
3683fi
3684CC=$ac_cv_prog_CC
3685if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687$as_echo "$CC" >&6; }
3688else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690$as_echo "no" >&6; }
3691fi
3692
3693
3694 test -n "$CC" && break
3695 done
3696fi
3697if test -z "$CC"; then
3698 ac_ct_CC=$CC
3699 for ac_prog in cl.exe
3700do
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702set dummy $ac_prog; ac_word=$2
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
3705if ${ac_cv_prog_ac_ct_CC+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707else
3708 if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_ac_ct_CC="$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723 done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728ac_ct_CC=$ac_cv_prog_ac_ct_CC
3729if test -n "$ac_ct_CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3731$as_echo "$ac_ct_CC" >&6; }
3732else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735fi
3736
3737
3738 test -n "$ac_ct_CC" && break
3739done
3740
3741 if test "x$ac_ct_CC" = x; then
3742 CC=""
3743 else
3744 case $cross_compiling:$ac_tool_warned in
3745yes:)
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3748ac_tool_warned=yes ;;
3749esac
3750 CC=$ac_ct_CC
3751 fi
3752fi
3753
3754fi
3755
3756
3757test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759as_fn_error $? "no acceptable C compiler found in \$PATH
3760See \`config.log' for more details" "$LINENO" 5; }
3761
3762# Provide some information about the compiler.
3763$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3764set X $ac_compile
3765ac_compiler=$2
3766for ac_option in --version -v -V -qversion; do
3767 { { ac_try="$ac_compiler $ac_option >&5"
3768case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3775 ac_status=$?
3776 if test -s conftest.err; then
3777 sed '10a\
3778... rest of stderr output deleted ...
3779 10q' conftest.err >conftest.er1
3780 cat conftest.er1 >&5
3781 fi
3782 rm -f conftest.er1 conftest.err
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3785done
3786
3787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798ac_clean_files_save=$ac_clean_files
3799ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3800# Try to create an executable without -o first, disregard a.out.
3801# It will help us diagnose broken compilers, and finding out an intuition
3802# of exeext.
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3804$as_echo_n "checking whether the C compiler works... " >&6; }
3805ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3806
3807# The possible output files:
3808ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3809
3810ac_rmfiles=
3811for ac_file in $ac_files
3812do
3813 case $ac_file in
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3816 esac
3817done
3818rm -f $ac_rmfiles
3819
3820if { { ac_try="$ac_link_default"
3821case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824esac
3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826$as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link_default") 2>&5
3828 ac_status=$?
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3832# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3833# in a Makefile. We should not override ac_cv_exeext if it was cached,
3834# so that the user can short-circuit this test for compilers unknown to
3835# Autoconf.
3836for ac_file in $ac_files ''
3837do
3838 test -f "$ac_file" || continue
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3841 ;;
3842 [ab].out )
3843 # We found the default executable, but exeext='' is most
3844 # certainly right.
3845 break;;
3846 *.* )
3847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3848 then :; else
3849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3850 fi
3851 # We set ac_cv_exeext here because the later test for it is not
3852 # safe: cross compilers may not add the suffix if given an `-o'
3853 # argument, so we may need to know it at that point already.
3854 # Even if this section looks crufty: it has the advantage of
3855 # actually working.
3856 break;;
3857 * )
3858 break;;
3859 esac
3860done
3861test "$ac_cv_exeext" = no && ac_cv_exeext=
3862
3863else
3864 ac_file=''
3865fi
3866if test -z "$ac_file"; then :
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869$as_echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874as_fn_error 77 "C compiler cannot create executables
3875See \`config.log' for more details" "$LINENO" 5; }
3876else
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878$as_echo "yes" >&6; }
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3881$as_echo_n "checking for C compiler default output file name... " >&6; }
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3883$as_echo "$ac_file" >&6; }
3884ac_exeext=$ac_cv_exeext
3885
3886rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3887ac_clean_files=$ac_clean_files_save
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3889$as_echo_n "checking for suffix of executables... " >&6; }
3890if { { ac_try="$ac_link"
3891case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3902# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3903# work properly (i.e., refer to `conftest.exe'), while it won't with
3904# `rm'.
3905for ac_file in conftest.exe conftest conftest.*; do
3906 test -f "$ac_file" || continue
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 break;;
3911 * ) break;;
3912 esac
3913done
3914else
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3918See \`config.log' for more details" "$LINENO" 5; }
3919fi
3920rm -f conftest conftest$ac_cv_exeext
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3922$as_echo "$ac_cv_exeext" >&6; }
3923
3924rm -f conftest.$ac_ext
3925EXEEXT=$ac_cv_exeext
3926ac_exeext=$EXEEXT
3927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h. */
3929#include <stdio.h>
3930int
3931main ()
3932{
3933FILE *f = fopen ("conftest.out", "w");
3934 return ferror (f) || fclose (f) != 0;
3935
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940ac_clean_files="$ac_clean_files conftest.out"
3941# Check that the compiler produces executables we can run. If not, either
3942# the compiler is broken, or we cross compile.
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944$as_echo_n "checking whether we are cross compiling... " >&6; }
3945if test "$cross_compiling" != yes; then
3946 { { ac_try="$ac_link"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952$as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_link") 2>&5
3954 ac_status=$?
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 if { ac_try='./conftest$ac_cv_exeext'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963$as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3968 cross_compiling=no
3969 else
3970 if test "$cross_compiling" = maybe; then
3971 cross_compiling=yes
3972 else
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975as_fn_error $? "cannot run C compiled programs.
3976If you meant to cross compile, use \`--host'.
3977See \`config.log' for more details" "$LINENO" 5; }
3978 fi
3979 fi
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982$as_echo "$cross_compiling" >&6; }
3983
3984rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3985ac_clean_files=$ac_clean_files_save
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3987$as_echo_n "checking for suffix of object files... " >&6; }
3988if ${ac_cv_objext+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990else
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h. */
3993
3994int
3995main ()
3996{
3997
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002rm -f conftest.o conftest.obj
4003if { { ac_try="$ac_compile"
4004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009$as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compile") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 for ac_file in conftest.o conftest.obj conftest.*; do
4015 test -f "$ac_file" || continue;
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4018 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4019 break;;
4020 esac
4021done
4022else
4023 $as_echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028as_fn_error $? "cannot compute suffix of object files: cannot compile
4029See \`config.log' for more details" "$LINENO" 5; }
4030fi
4031rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4034$as_echo "$ac_cv_objext" >&6; }
4035OBJEXT=$ac_cv_objext
4036ac_objext=$OBJEXT
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4038$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4039if ${ac_cv_c_compiler_gnu+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048#ifndef __GNUC__
4049 choke me
4050#endif
4051
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_compiler_gnu=yes
4058else
4059 ac_compiler_gnu=no
4060fi
4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4066$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4067if test $ac_compiler_gnu = yes; then
4068 GCC=yes
4069else
4070 GCC=
4071fi
4072ac_test_CFLAGS=${CFLAGS+set}
4073ac_save_CFLAGS=$CFLAGS
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4075$as_echo_n "checking whether $CC accepts -g... " >&6; }
4076if ${ac_cv_prog_cc_g+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078else
4079 ac_save_c_werror_flag=$ac_c_werror_flag
4080 ac_c_werror_flag=yes
4081 ac_cv_prog_cc_g=no
4082 CFLAGS="-g"
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_g=yes
4096else
4097 CFLAGS=""
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h. */
4100
4101int
4102main ()
4103{
4104
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109if ac_fn_c_try_compile "$LINENO"; then :
4110
4111else
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4113 CFLAGS="-g"
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h. */
4116
4117int
4118main ()
4119{
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_g=yes
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129fi
4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4136$as_echo "$ac_cv_prog_cc_g" >&6; }
4137if test "$ac_test_CFLAGS" = set; then
4138 CFLAGS=$ac_save_CFLAGS
4139elif test $ac_cv_prog_cc_g = yes; then
4140 if test "$GCC" = yes; then
4141 CFLAGS="-g -O2"
4142 else
4143 CFLAGS="-g"
4144 fi
4145else
4146 if test "$GCC" = yes; then
4147 CFLAGS="-O2"
4148 else
4149 CFLAGS=
4150 fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4153$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4154if ${ac_cv_prog_cc_c89+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 ac_cv_prog_cc_c89=no
4158ac_save_CC=$CC
4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h. */
4161#include <stdarg.h>
4162#include <stdio.h>
4163struct stat;
4164/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4165struct buf { int x; };
4166FILE * (*rcsopen) (struct buf *, struct stat *, int);
4167static char *e (p, i)
4168 char **p;
4169 int i;
4170{
4171 return p[i];
4172}
4173static char *f (char * (*g) (char **, int), char **p, ...)
4174{
4175 char *s;
4176 va_list v;
4177 va_start (v,p);
4178 s = g (p, va_arg (v,int));
4179 va_end (v);
4180 return s;
4181}
4182
4183/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4184 function prototypes and stuff, but not '\xHH' hex character constants.
4185 These don't provoke an error unfortunately, instead are silently treated
4186 as 'x'. The following induces an error, until -std is added to get
4187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4188 array size at least. It's necessary to write '\x00'==0 to get something
4189 that's true only with -std. */
4190int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4191
4192/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4193 inside strings and character constants. */
4194#define FOO(x) 'x'
4195int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4196
4197int test (int i, double x);
4198struct s1 {int (*f) (int a);};
4199struct s2 {int (*f) (double a);};
4200int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201int argc;
4202char **argv;
4203int
4204main ()
4205{
4206return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4212 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213do
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_c89=$ac_arg
4217fi
4218rm -f core conftest.err conftest.$ac_objext
4219 test "x$ac_cv_prog_cc_c89" != "xno" && break
4220done
4221rm -f conftest.$ac_ext
4222CC=$ac_save_CC
4223
4224fi
4225# AC_CACHE_VAL
4226case "x$ac_cv_prog_cc_c89" in
4227 x)
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229$as_echo "none needed" >&6; } ;;
4230 xno)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232$as_echo "unsupported" >&6; } ;;
4233 *)
4234 CC="$CC $ac_cv_prog_cc_c89"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4236$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4237esac
4238if test "x$ac_cv_prog_cc_c89" != xno; then :
4239
4240fi
4241
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248ac_ext=c
4249ac_cpp='$CPP $CPPFLAGS'
4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4254$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4255if ${am_cv_prog_cc_c_o+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257else
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h. */
4260
4261int
4262main ()
4263{
4264
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269 # Make sure it works both with $CC and with simple cc.
4270 # Following AC_PROG_CC_C_O, we do the test twice because some
4271 # compilers refuse to overwrite an existing .o file with -o,
4272 # though they will create one.
4273 am_cv_prog_cc_c_o=yes
4274 for am_i in 1 2; do
4275 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4276 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } \
4280 && test -f conftest2.$ac_objext; then
4281 : OK
4282 else
4283 am_cv_prog_cc_c_o=no
4284 break
4285 fi
4286 done
4287 rm -f core conftest*
4288 unset am_i
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4291$as_echo "$am_cv_prog_cc_c_o" >&6; }
4292if test "$am_cv_prog_cc_c_o" != yes; then
4293 # Losing compiler, so override with the script.
4294 # FIXME: It is wrong to rewrite CC.
4295 # But if we don't then we get into trouble of one sort or another.
4296 # A longer-term fix would be to have automake use am__CC in this case,
4297 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4298 CC="$am_aux_dir/compile $CC"
4299fi
4300ac_ext=c
4301ac_cpp='$CPP $CPPFLAGS'
4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306DEPDIR="${am__leading_dot}deps"
4307
4308ac_config_commands="$ac_config_commands depfiles"
4309
4310
4311am_make=${MAKE-make}
4312cat > confinc << 'END'
4313am__doit:
4314 @echo this is the am__doit target
4315.PHONY: am__doit
4316END
4317# If we don't find an include directive, just comment out the code.
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4319$as_echo_n "checking for style of include used by $am_make... " >&6; }
4320am__include="#"
4321am__quote=
4322_am_result=none
4323# First try GNU make style include.
4324echo "include confinc" > confmf
4325# Ignore all kinds of additional output from 'make'.
4326case `$am_make -s -f confmf 2> /dev/null` in #(
4327*the\ am__doit\ target*)
4328 am__include=include
4329 am__quote=
4330 _am_result=GNU
4331 ;;
4332esac
4333# Now try BSD make style include.
4334if test "$am__include" = "#"; then
4335 echo '.include "confinc"' > confmf
4336 case `$am_make -s -f confmf 2> /dev/null` in #(
4337 *the\ am__doit\ target*)
4338 am__include=.include
4339 am__quote="\""
4340 _am_result=BSD
4341 ;;
4342 esac
4343fi
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4347$as_echo "$_am_result" >&6; }
4348rm -f confinc confmf
4349
4350# Check whether --enable-dependency-tracking was given.
4351if test "${enable_dependency_tracking+set}" = set; then :
4352 enableval=$enable_dependency_tracking;
4353fi
4354
4355if test "x$enable_dependency_tracking" != xno; then
4356 am_depcomp="$ac_aux_dir/depcomp"
4357 AMDEPBACKSLASH='\'
4358 am__nodep='_no'
4359fi
4360 if test "x$enable_dependency_tracking" != xno; then
4361 AMDEP_TRUE=
4362 AMDEP_FALSE='#'
4363else
4364 AMDEP_TRUE='#'
4365 AMDEP_FALSE=
4366fi
4367
4368
4369
4370depcc="$CC" am_compiler_list=
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4373$as_echo_n "checking dependency style of $depcc... " >&6; }
4374if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4378 # We make a subdir and do the tests there. Otherwise we can end up
4379 # making bogus files that we don't know about and never remove. For
4380 # instance it was reported that on HP-UX the gcc test will end up
4381 # making a dummy file named 'D' -- because '-MD' means "put the output
4382 # in D".
4383 rm -rf conftest.dir
4384 mkdir conftest.dir
4385 # Copy depcomp to subdir because otherwise we won't find it if we're
4386 # using a relative directory.
4387 cp "$am_depcomp" conftest.dir
4388 cd conftest.dir
4389 # We will build objects and dependencies in a subdirectory because
4390 # it helps to detect inapplicable dependency modes. For instance
4391 # both Tru64's cc and ICC support -MD to output dependencies as a
4392 # side effect of compilation, but ICC will put the dependencies in
4393 # the current directory while Tru64 will put them in the object
4394 # directory.
4395 mkdir sub
4396
4397 am_cv_CC_dependencies_compiler_type=none
4398 if test "$am_compiler_list" = ""; then
4399 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4400 fi
4401 am__universal=false
4402 case " $depcc " in #(
4403 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4404 esac
4405
4406 for depmode in $am_compiler_list; do
4407 # Setup a source with many dependencies, because some compilers
4408 # like to wrap large dependency lists on column 80 (with \), and
4409 # we should not choose a depcomp mode which is confused by this.
4410 #
4411 # We need to recreate these files for each test, as the compiler may
4412 # overwrite some of them when testing with obscure command lines.
4413 # This happens at least with the AIX C compiler.
4414 : > sub/conftest.c
4415 for i in 1 2 3 4 5 6; do
4416 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4417 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4418 # Solaris 10 /bin/sh.
4419 echo '/* dummy */' > sub/conftst$i.h
4420 done
4421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4422
4423 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4424 # mode. It turns out that the SunPro C++ compiler does not properly
4425 # handle '-M -o', and we need to detect this. Also, some Intel
4426 # versions had trouble with output in subdirs.
4427 am__obj=sub/conftest.${OBJEXT-o}
4428 am__minus_obj="-o $am__obj"
4429 case $depmode in
4430 gcc)
4431 # This depmode causes a compiler race in universal mode.
4432 test "$am__universal" = false || continue
4433 ;;
4434 nosideeffect)
4435 # After this tag, mechanisms are not by side-effect, so they'll
4436 # only be used when explicitly requested.
4437 if test "x$enable_dependency_tracking" = xyes; then
4438 continue
4439 else
4440 break
4441 fi
4442 ;;
4443 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4444 # This compiler won't grok '-c -o', but also, the minuso test has
4445 # not run yet. These depmodes are late enough in the game, and
4446 # so weak that their functioning should not be impacted.
4447 am__obj=conftest.${OBJEXT-o}
4448 am__minus_obj=
4449 ;;
4450 none) break ;;
4451 esac
4452 if depmode=$depmode \
4453 source=sub/conftest.c object=$am__obj \
4454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4455 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4456 >/dev/null 2>conftest.err &&
4457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4459 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4461 # icc doesn't choke on unknown options, it will just issue warnings
4462 # or remarks (even with -Werror). So we grep stderr for any message
4463 # that says an option was ignored or not supported.
4464 # When given -MP, icc 7.0 and 7.1 complain thusly:
4465 # icc: Command line warning: ignoring option '-M'; no argument required
4466 # The diagnosis changed in icc 8.0:
4467 # icc: Command line remark: option '-MP' not supported
4468 if (grep 'ignoring option' conftest.err ||
4469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4470 am_cv_CC_dependencies_compiler_type=$depmode
4471 break
4472 fi
4473 fi
4474 done
4475
4476 cd ..
4477 rm -rf conftest.dir
4478else
4479 am_cv_CC_dependencies_compiler_type=none
4480fi
4481
4482fi
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4484$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4485CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4486
4487 if
4488 test "x$enable_dependency_tracking" != xno \
4489 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4490 am__fastdepCC_TRUE=
4491 am__fastdepCC_FALSE='#'
4492else
4493 am__fastdepCC_TRUE='#'
4494 am__fastdepCC_FALSE=
4495fi
4496
4497
4498ac_ext=cpp
4499ac_cpp='$CXXCPP $CPPFLAGS'
4500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503if test -z "$CXX"; then
4504 if test -n "$CCC"; then
4505 CXX=$CCC
4506 else
4507 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4509 do
4510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if ${ac_cv_prog_CXX+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 if test -n "$CXX"; then
4518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532 done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537CXX=$ac_cv_prog_CXX
4538if test -n "$CXX"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4540$as_echo "$CXX" >&6; }
4541else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547 test -n "$CXX" && break
4548 done
4549fi
4550if test -z "$CXX"; then
4551 ac_ct_CXX=$CXX
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4553do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555set dummy $ac_prog; ac_word=$2
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557$as_echo_n "checking for $ac_word... " >&6; }
4558if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 if test -n "$ac_ct_CXX"; then
4562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575done
4576 done
4577IFS=$as_save_IFS
4578
4579fi
4580fi
4581ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4582if test -n "$ac_ct_CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584$as_echo "$ac_ct_CXX" >&6; }
4585else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
4588fi
4589
4590
4591 test -n "$ac_ct_CXX" && break
4592done
4593
4594 if test "x$ac_ct_CXX" = x; then
4595 CXX="g++"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598yes:)
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601ac_tool_warned=yes ;;
4602esac
4603 CXX=$ac_ct_CXX
4604 fi
4605fi
4606
4607 fi
4608fi
4609# Provide some information about the compiler.
4610$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4611set X $ac_compile
4612ac_compiler=$2
4613for ac_option in --version -v -V -qversion; do
4614 { { ac_try="$ac_compiler $ac_option >&5"
4615case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
4619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620$as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4622 ac_status=$?
4623 if test -s conftest.err; then
4624 sed '10a\
4625... rest of stderr output deleted ...
4626 10q' conftest.err >conftest.er1
4627 cat conftest.er1 >&5
4628 fi
4629 rm -f conftest.er1 conftest.err
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632done
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4635$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636if ${ac_cv_cxx_compiler_gnu+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638else
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641
4642int
4643main ()
4644{
4645#ifndef __GNUC__
4646 choke me
4647#endif
4648
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653if ac_fn_cxx_try_compile "$LINENO"; then :
4654 ac_compiler_gnu=yes
4655else
4656 ac_compiler_gnu=no
4657fi
4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4660
4661fi
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4663$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4664if test $ac_compiler_gnu = yes; then
4665 GXX=yes
4666else
4667 GXX=
4668fi
4669ac_test_CXXFLAGS=${CXXFLAGS+set}
4670ac_save_CXXFLAGS=$CXXFLAGS
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4672$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4673if ${ac_cv_prog_cxx_g+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675else
4676 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4677 ac_cxx_werror_flag=yes
4678 ac_cv_prog_cxx_g=no
4679 CXXFLAGS="-g"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682
4683int
4684main ()
4685{
4686
4687 ;
4688 return 0;
4689}
4690_ACEOF
4691if ac_fn_cxx_try_compile "$LINENO"; then :
4692 ac_cv_prog_cxx_g=yes
4693else
4694 CXXFLAGS=""
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697
4698int
4699main ()
4700{
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706if ac_fn_cxx_try_compile "$LINENO"; then :
4707
4708else
4709 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4710 CXXFLAGS="-g"
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h. */
4713
4714int
4715main ()
4716{
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722if ac_fn_cxx_try_compile "$LINENO"; then :
4723 ac_cv_prog_cxx_g=yes
4724fi
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726fi
4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728fi
4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4733$as_echo "$ac_cv_prog_cxx_g" >&6; }
4734if test "$ac_test_CXXFLAGS" = set; then
4735 CXXFLAGS=$ac_save_CXXFLAGS
4736elif test $ac_cv_prog_cxx_g = yes; then
4737 if test "$GXX" = yes; then
4738 CXXFLAGS="-g -O2"
4739 else
4740 CXXFLAGS="-g"
4741 fi
4742else
4743 if test "$GXX" = yes; then
4744 CXXFLAGS="-O2"
4745 else
4746 CXXFLAGS=
4747 fi
4748fi
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
4755depcc="$CXX" am_compiler_list=
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758$as_echo_n "checking dependency style of $depcc... " >&6; }
4759if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761else
4762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4763 # We make a subdir and do the tests there. Otherwise we can end up
4764 # making bogus files that we don't know about and never remove. For
4765 # instance it was reported that on HP-UX the gcc test will end up
4766 # making a dummy file named 'D' -- because '-MD' means "put the output
4767 # in D".
4768 rm -rf conftest.dir
4769 mkdir conftest.dir
4770 # Copy depcomp to subdir because otherwise we won't find it if we're
4771 # using a relative directory.
4772 cp "$am_depcomp" conftest.dir
4773 cd conftest.dir
4774 # We will build objects and dependencies in a subdirectory because
4775 # it helps to detect inapplicable dependency modes. For instance
4776 # both Tru64's cc and ICC support -MD to output dependencies as a
4777 # side effect of compilation, but ICC will put the dependencies in
4778 # the current directory while Tru64 will put them in the object
4779 # directory.
4780 mkdir sub
4781
4782 am_cv_CXX_dependencies_compiler_type=none
4783 if test "$am_compiler_list" = ""; then
4784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4785 fi
4786 am__universal=false
4787 case " $depcc " in #(
4788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4789 esac
4790
4791 for depmode in $am_compiler_list; do
4792 # Setup a source with many dependencies, because some compilers
4793 # like to wrap large dependency lists on column 80 (with \), and
4794 # we should not choose a depcomp mode which is confused by this.
4795 #
4796 # We need to recreate these files for each test, as the compiler may
4797 # overwrite some of them when testing with obscure command lines.
4798 # This happens at least with the AIX C compiler.
4799 : > sub/conftest.c
4800 for i in 1 2 3 4 5 6; do
4801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4802 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4803 # Solaris 10 /bin/sh.
4804 echo '/* dummy */' > sub/conftst$i.h
4805 done
4806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4807
4808 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle '-M -o', and we need to detect this. Also, some Intel
4811 # versions had trouble with output in subdirs.
4812 am__obj=sub/conftest.${OBJEXT-o}
4813 am__minus_obj="-o $am__obj"
4814 case $depmode in
4815 gcc)
4816 # This depmode causes a compiler race in universal mode.
4817 test "$am__universal" = false || continue
4818 ;;
4819 nosideeffect)
4820 # After this tag, mechanisms are not by side-effect, so they'll
4821 # only be used when explicitly requested.
4822 if test "x$enable_dependency_tracking" = xyes; then
4823 continue
4824 else
4825 break
4826 fi
4827 ;;
4828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4829 # This compiler won't grok '-c -o', but also, the minuso test has
4830 # not run yet. These depmodes are late enough in the game, and
4831 # so weak that their functioning should not be impacted.
4832 am__obj=conftest.${OBJEXT-o}
4833 am__minus_obj=
4834 ;;
4835 none) break ;;
4836 esac
4837 if depmode=$depmode \
4838 source=sub/conftest.c object=$am__obj \
4839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4841 >/dev/null 2>conftest.err &&
4842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855 am_cv_CXX_dependencies_compiler_type=$depmode
4856 break
4857 fi
4858 fi
4859 done
4860
4861 cd ..
4862 rm -rf conftest.dir
4863else
4864 am_cv_CXX_dependencies_compiler_type=none
4865fi
4866
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4869$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4870CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4871
4872 if
4873 test "x$enable_dependency_tracking" != xno \
4874 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4875 am__fastdepCXX_TRUE=
4876 am__fastdepCXX_FALSE='#'
4877else
4878 am__fastdepCXX_TRUE='#'
4879 am__fastdepCXX_FALSE=
4880fi
4881
4882
4883CFLAGS=$save_CFLAGS
4884
4885
4886
4887
4888
333efaea
L
4889# Add CET specific flags if CET is enabled
4890
4891 # Check whether --enable-cet was given.
4892if test "${enable_cet+set}" = set; then :
4893 enableval=$enable_cet;
4894 case "$enableval" in
4895 yes|no|auto) ;;
4896 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4897 esac
4898
4899else
4900 enable_cet=auto
4901fi
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4905$as_echo_n "checking for CET support... " >&6; }
4906
4907# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4908case "$host" in
4909 i[34567]86-*-linux* | x86_64-*-linux*)
4910 case "$enable_cet" in
4911 auto)
4912 # Check if target supports multi-byte NOPs
4913 # and if compiler and assembler support CET insn.
4914 cet_save_CFLAGS="$CFLAGS"
4915 CFLAGS="$CFLAGS -fcf-protection"
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922
4923#if !defined(__SSE2__)
4924#error target does not support multi-byte NOPs
4925#else
4926asm ("setssbsy");
4927#endif
4928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934 enable_cet=yes
4935else
4936 enable_cet=no
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 CFLAGS="$cet_save_CFLAGS"
4940 ;;
4941 yes)
4942 # Check if assembler supports CET.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h. */
4945
4946int
4947main ()
4948{
4949asm ("setssbsy");
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955
4956else
4957 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ;;
4961 esac
4962 ;;
4963 *)
4964 enable_cet=no
4965 ;;
4966esac
4967if test x$enable_cet = xyes; then
4968 CET_FLAGS="-fcf-protection -mshstk"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970$as_echo "yes" >&6; }
4971else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
4974fi
4975
4976
4977
5be7b669
L
4978# By default we simply use the C compiler to build assembly code.
4979
4980test "${CCAS+set}" = set || CCAS=$CC
4981test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4982
4983
4984
4985depcc="$CCAS" am_compiler_list=
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988$as_echo_n "checking dependency style of $depcc... " >&6; }
4989if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991else
4992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993 # We make a subdir and do the tests there. Otherwise we can end up
4994 # making bogus files that we don't know about and never remove. For
4995 # instance it was reported that on HP-UX the gcc test will end up
4996 # making a dummy file named 'D' -- because '-MD' means "put the output
4997 # in D".
4998 rm -rf conftest.dir
4999 mkdir conftest.dir
5000 # Copy depcomp to subdir because otherwise we won't find it if we're
5001 # using a relative directory.
5002 cp "$am_depcomp" conftest.dir
5003 cd conftest.dir
5004 # We will build objects and dependencies in a subdirectory because
5005 # it helps to detect inapplicable dependency modes. For instance
5006 # both Tru64's cc and ICC support -MD to output dependencies as a
5007 # side effect of compilation, but ICC will put the dependencies in
5008 # the current directory while Tru64 will put them in the object
5009 # directory.
5010 mkdir sub
5011
5012 am_cv_CCAS_dependencies_compiler_type=none
5013 if test "$am_compiler_list" = ""; then
5014 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5015 fi
5016 am__universal=false
5017
5018
5019 for depmode in $am_compiler_list; do
5020 # Setup a source with many dependencies, because some compilers
5021 # like to wrap large dependency lists on column 80 (with \), and
5022 # we should not choose a depcomp mode which is confused by this.
5023 #
5024 # We need to recreate these files for each test, as the compiler may
5025 # overwrite some of them when testing with obscure command lines.
5026 # This happens at least with the AIX C compiler.
5027 : > sub/conftest.c
5028 for i in 1 2 3 4 5 6; do
5029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5031 # Solaris 10 /bin/sh.
5032 echo '/* dummy */' > sub/conftst$i.h
5033 done
5034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5035
5036 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5037 # mode. It turns out that the SunPro C++ compiler does not properly
5038 # handle '-M -o', and we need to detect this. Also, some Intel
5039 # versions had trouble with output in subdirs.
5040 am__obj=sub/conftest.${OBJEXT-o}
5041 am__minus_obj="-o $am__obj"
5042 case $depmode in
5043 gcc)
5044 # This depmode causes a compiler race in universal mode.
5045 test "$am__universal" = false || continue
5046 ;;
5047 nosideeffect)
5048 # After this tag, mechanisms are not by side-effect, so they'll
5049 # only be used when explicitly requested.
5050 if test "x$enable_dependency_tracking" = xyes; then
5051 continue
5052 else
5053 break
5054 fi
5055 ;;
5056 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5057 # This compiler won't grok '-c -o', but also, the minuso test has
5058 # not run yet. These depmodes are late enough in the game, and
5059 # so weak that their functioning should not be impacted.
5060 am__obj=conftest.${OBJEXT-o}
5061 am__minus_obj=
5062 ;;
5063 none) break ;;
5064 esac
5065 if depmode=$depmode \
5066 source=sub/conftest.c object=$am__obj \
5067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5069 >/dev/null 2>conftest.err &&
5070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5074 # icc doesn't choke on unknown options, it will just issue warnings
5075 # or remarks (even with -Werror). So we grep stderr for any message
5076 # that says an option was ignored or not supported.
5077 # When given -MP, icc 7.0 and 7.1 complain thusly:
5078 # icc: Command line warning: ignoring option '-M'; no argument required
5079 # The diagnosis changed in icc 8.0:
5080 # icc: Command line remark: option '-MP' not supported
5081 if (grep 'ignoring option' conftest.err ||
5082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5083 am_cv_CCAS_dependencies_compiler_type=$depmode
5084 break
5085 fi
5086 fi
5087 done
5088
5089 cd ..
5090 rm -rf conftest.dir
5091else
5092 am_cv_CCAS_dependencies_compiler_type=none
5093fi
5094
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5097$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5098CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5099
5100 if
5101 test "x$enable_dependency_tracking" != xno \
5102 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5103 am__fastdepCCAS_TRUE=
5104 am__fastdepCCAS_FALSE='#'
5105else
5106 am__fastdepCCAS_TRUE='#'
5107 am__fastdepCCAS_FALSE=
5108fi
5109
5110
5111
5112case `pwd` in
5113 *\ * | *\ *)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5115$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5116esac
5117
5118
5119
5120macro_version='2.2.7a'
5121macro_revision='1.3134'
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135ltmain="$ac_aux_dir/ltmain.sh"
5136
5137# Backslashify metacharacters that are still active within
5138# double-quoted strings.
5139sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5140
5141# Same as above, but do not quote variable references.
5142double_quote_subst='s/\(["`\\]\)/\\\1/g'
5143
5144# Sed substitution to delay expansion of an escaped shell variable in a
5145# double_quote_subst'ed string.
5146delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5147
5148# Sed substitution to delay expansion of an escaped single quote.
5149delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5150
5151# Sed substitution to avoid accidental globbing in evaled expressions
5152no_glob_subst='s/\*/\\\*/g'
5153
5154ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5155ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5156ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5157
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5159$as_echo_n "checking how to print strings... " >&6; }
5160# Test print first, because it will be a builtin if present.
5161if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5162 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5163 ECHO='print -r --'
5164elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5165 ECHO='printf %s\n'
5166else
5167 # Use this function as a fallback that always works.
5168 func_fallback_echo ()
5169 {
5170 eval 'cat <<_LTECHO_EOF
5171$1
5172_LTECHO_EOF'
5173 }
5174 ECHO='func_fallback_echo'
5175fi
5176
5177# func_echo_all arg...
5178# Invoke $ECHO with all args, space-separated.
5179func_echo_all ()
5180{
5181 $ECHO ""
5182}
5183
5184case "$ECHO" in
5185 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5186$as_echo "printf" >&6; } ;;
5187 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5188$as_echo "print -r" >&6; } ;;
5189 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5190$as_echo "cat" >&6; } ;;
5191esac
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5207$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5208if ${ac_cv_path_SED+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210else
5211 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5212 for ac_i in 1 2 3 4 5 6 7; do
5213 ac_script="$ac_script$as_nl$ac_script"
5214 done
5215 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5216 { ac_script=; unset ac_script;}
5217 if test -z "$SED"; then
5218 ac_path_SED_found=false
5219 # Loop through the user's path and test for each of PROGNAME-LIST
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_prog in sed gsed; do
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5228 as_fn_executable_p "$ac_path_SED" || continue
5229# Check for GNU ac_path_SED and select it if it is found.
5230 # Check for GNU $ac_path_SED
5231case `"$ac_path_SED" --version 2>&1` in
5232*GNU*)
5233 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5234*)
5235 ac_count=0
5236 $as_echo_n 0123456789 >"conftest.in"
5237 while :
5238 do
5239 cat "conftest.in" "conftest.in" >"conftest.tmp"
5240 mv "conftest.tmp" "conftest.in"
5241 cp "conftest.in" "conftest.nl"
5242 $as_echo '' >> "conftest.nl"
5243 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5245 as_fn_arith $ac_count + 1 && ac_count=$as_val
5246 if test $ac_count -gt ${ac_path_SED_max-0}; then
5247 # Best one so far, save it but keep looking for a better one
5248 ac_cv_path_SED="$ac_path_SED"
5249 ac_path_SED_max=$ac_count
5250 fi
5251 # 10*(2^10) chars as input seems more than enough
5252 test $ac_count -gt 10 && break
5253 done
5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255esac
5256
5257 $ac_path_SED_found && break 3
5258 done
5259 done
5260 done
5261IFS=$as_save_IFS
5262 if test -z "$ac_cv_path_SED"; then
5263 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5264 fi
5265else
5266 ac_cv_path_SED=$SED
5267fi
5268
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5271$as_echo "$ac_cv_path_SED" >&6; }
5272 SED="$ac_cv_path_SED"
5273 rm -f conftest.sed
5274
5275test -z "$SED" && SED=sed
5276Xsed="$SED -e 1s/^X//"
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5289$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5290if ${ac_cv_path_GREP+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 if test -z "$GREP"; then
5294 ac_path_GREP_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_prog in grep ggrep; do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5304 as_fn_executable_p "$ac_path_GREP" || continue
5305# Check for GNU ac_path_GREP and select it if it is found.
5306 # Check for GNU $ac_path_GREP
5307case `"$ac_path_GREP" --version 2>&1` in
5308*GNU*)
5309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5310*)
5311 ac_count=0
5312 $as_echo_n 0123456789 >"conftest.in"
5313 while :
5314 do
5315 cat "conftest.in" "conftest.in" >"conftest.tmp"
5316 mv "conftest.tmp" "conftest.in"
5317 cp "conftest.in" "conftest.nl"
5318 $as_echo 'GREP' >> "conftest.nl"
5319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321 as_fn_arith $ac_count + 1 && ac_count=$as_val
5322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5323 # Best one so far, save it but keep looking for a better one
5324 ac_cv_path_GREP="$ac_path_GREP"
5325 ac_path_GREP_max=$ac_count
5326 fi
5327 # 10*(2^10) chars as input seems more than enough
5328 test $ac_count -gt 10 && break
5329 done
5330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331esac
5332
5333 $ac_path_GREP_found && break 3
5334 done
5335 done
5336 done
5337IFS=$as_save_IFS
5338 if test -z "$ac_cv_path_GREP"; then
5339 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340 fi
5341else
5342 ac_cv_path_GREP=$GREP
5343fi
5344
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5347$as_echo "$ac_cv_path_GREP" >&6; }
5348 GREP="$ac_cv_path_GREP"
5349
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5352$as_echo_n "checking for egrep... " >&6; }
5353if ${ac_cv_path_EGREP+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355else
5356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5357 then ac_cv_path_EGREP="$GREP -E"
5358 else
5359 if test -z "$EGREP"; then
5360 ac_path_EGREP_found=false
5361 # Loop through the user's path and test for each of PROGNAME-LIST
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_prog in egrep; do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5370 as_fn_executable_p "$ac_path_EGREP" || continue
5371# Check for GNU ac_path_EGREP and select it if it is found.
5372 # Check for GNU $ac_path_EGREP
5373case `"$ac_path_EGREP" --version 2>&1` in
5374*GNU*)
5375 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5376*)
5377 ac_count=0
5378 $as_echo_n 0123456789 >"conftest.in"
5379 while :
5380 do
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 $as_echo 'EGREP' >> "conftest.nl"
5385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387 as_fn_arith $ac_count + 1 && ac_count=$as_val
5388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_EGREP="$ac_path_EGREP"
5391 ac_path_EGREP_max=$ac_count
5392 fi
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5395 done
5396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397esac
5398
5399 $ac_path_EGREP_found && break 3
5400 done
5401 done
5402 done
5403IFS=$as_save_IFS
5404 if test -z "$ac_cv_path_EGREP"; then
5405 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406 fi
5407else
5408 ac_cv_path_EGREP=$EGREP
5409fi
5410
5411 fi
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5414$as_echo "$ac_cv_path_EGREP" >&6; }
5415 EGREP="$ac_cv_path_EGREP"
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5419$as_echo_n "checking for fgrep... " >&6; }
5420if ${ac_cv_path_FGREP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422else
5423 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5424 then ac_cv_path_FGREP="$GREP -F"
5425 else
5426 if test -z "$FGREP"; then
5427 ac_path_FGREP_found=false
5428 # Loop through the user's path and test for each of PROGNAME-LIST
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_prog in fgrep; do
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5437 as_fn_executable_p "$ac_path_FGREP" || continue
5438# Check for GNU ac_path_FGREP and select it if it is found.
5439 # Check for GNU $ac_path_FGREP
5440case `"$ac_path_FGREP" --version 2>&1` in
5441*GNU*)
5442 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5443*)
5444 ac_count=0
5445 $as_echo_n 0123456789 >"conftest.in"
5446 while :
5447 do
5448 cat "conftest.in" "conftest.in" >"conftest.tmp"
5449 mv "conftest.tmp" "conftest.in"
5450 cp "conftest.in" "conftest.nl"
5451 $as_echo 'FGREP' >> "conftest.nl"
5452 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5454 as_fn_arith $ac_count + 1 && ac_count=$as_val
5455 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5456 # Best one so far, save it but keep looking for a better one
5457 ac_cv_path_FGREP="$ac_path_FGREP"
5458 ac_path_FGREP_max=$ac_count
5459 fi
5460 # 10*(2^10) chars as input seems more than enough
5461 test $ac_count -gt 10 && break
5462 done
5463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5464esac
5465
5466 $ac_path_FGREP_found && break 3
5467 done
5468 done
5469 done
5470IFS=$as_save_IFS
5471 if test -z "$ac_cv_path_FGREP"; then
5472 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473 fi
5474else
5475 ac_cv_path_FGREP=$FGREP
5476fi
5477
5478 fi
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5481$as_echo "$ac_cv_path_FGREP" >&6; }
5482 FGREP="$ac_cv_path_FGREP"
5483
5484
5485test -z "$GREP" && GREP=grep
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505# Check whether --with-gnu-ld was given.
5506if test "${with_gnu_ld+set}" = set; then :
5507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5508else
5509 with_gnu_ld=no
5510fi
5511
5512ac_prog=ld
5513if test "$GCC" = yes; then
5514 # Check if gcc -print-prog-name=ld gives a path.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5516$as_echo_n "checking for ld used by $CC... " >&6; }
5517 case $host in
5518 *-*-mingw*)
5519 # gcc leaves a trailing carriage return which upsets mingw
5520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5521 *)
5522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5523 esac
5524 case $ac_prog in
5525 # Accept absolute paths.
5526 [\\/]* | ?:[\\/]*)
5527 re_direlt='/[^/][^/]*/\.\./'
5528 # Canonicalize the pathname of ld
5529 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5530 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5531 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5532 done
5533 test -z "$LD" && LD="$ac_prog"
5534 ;;
5535 "")
5536 # If it fails, then pretend we aren't using GCC.
5537 ac_prog=ld
5538 ;;
5539 *)
5540 # If it is relative, then search for the first ld in PATH.
5541 with_gnu_ld=unknown
5542 ;;
5543 esac
5544elif test "$with_gnu_ld" = yes; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5546$as_echo_n "checking for GNU ld... " >&6; }
5547else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5549$as_echo_n "checking for non-GNU ld... " >&6; }
5550fi
5551if ${lt_cv_path_LD+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 if test -z "$LD"; then
5555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5556 for ac_dir in $PATH; do
5557 IFS="$lt_save_ifs"
5558 test -z "$ac_dir" && ac_dir=.
5559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5560 lt_cv_path_LD="$ac_dir/$ac_prog"
5561 # Check to see if the program is GNU ld. I'd rather use --version,
5562 # but apparently some variants of GNU ld only accept -v.
5563 # Break only if it was the GNU/non-GNU ld that we prefer.
5564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5565 *GNU* | *'with BFD'*)
5566 test "$with_gnu_ld" != no && break
5567 ;;
5568 *)
5569 test "$with_gnu_ld" != yes && break
5570 ;;
5571 esac
5572 fi
5573 done
5574 IFS="$lt_save_ifs"
5575else
5576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5577fi
5578fi
5579
5580LD="$lt_cv_path_LD"
5581if test -n "$LD"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5583$as_echo "$LD" >&6; }
5584else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5587fi
5588test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5590$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5591if ${lt_cv_prog_gnu_ld+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5595case `$LD -v 2>&1 </dev/null` in
5596*GNU* | *'with BFD'*)
5597 lt_cv_prog_gnu_ld=yes
5598 ;;
5599*)
5600 lt_cv_prog_gnu_ld=no
5601 ;;
5602esac
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5605$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5606with_gnu_ld=$lt_cv_prog_gnu_ld
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5617$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5618if ${lt_cv_path_NM+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 if test -n "$NM"; then
ab422974
NA
5622 # Let the user override the nm to test.
5623 lt_nm_to_check="$NM"
5624 else
5625 lt_nm_to_check="${ac_tool_prefix}nm"
5626 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5627 lt_nm_to_check="$lt_nm_to_check nm"
5628 fi
5629 fi
f3307109 5630 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
5631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5632 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5633 IFS="$lt_save_ifs"
5634 test -z "$ac_dir" && ac_dir=.
f3307109
NA
5635 # Strip out any user-provided options from the nm to test twice,
5636 # the first time to test to see if nm (rather than its options) has
5637 # an explicit path, the second time to yield a file which can be
5638 # nm'ed itself.
5639 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5640 case "$tmp_nm_path" in
ab422974
NA
5641 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5642 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5643 esac
f3307109
NA
5644 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5645 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
5646 # Check to see if the nm accepts a BSD-compat flag.
5647 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5648 # nm: unknown option "B" ignored
f3307109 5649 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5650 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5651 break
5652 ;;
5653 *)
f3307109 5654 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5655 *$tmp_nm*)
5656 lt_cv_path_NM="$tmp_nm -p"
5657 break
5658 ;;
5659 *)
5660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5661 continue # so that we can try to find one that supports BSD flags
5662 ;;
5663 esac
5664 ;;
5665 esac
5666 fi
5667 done
5668 IFS="$lt_save_ifs"
5669 done
5670 : ${lt_cv_path_NM=no}
5be7b669
L
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5673$as_echo "$lt_cv_path_NM" >&6; }
5674if test "$lt_cv_path_NM" != "no"; then
5675 NM="$lt_cv_path_NM"
5676else
5677 # Didn't find any BSD compatible name lister, look for dumpbin.
5678 if test -n "$DUMPBIN"; then :
5679 # Let the user override the test.
5680 else
5681 if test -n "$ac_tool_prefix"; then
5682 for ac_prog in dumpbin "link -dump"
5683 do
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_DUMPBIN+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 if test -n "$DUMPBIN"; then
5692 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706 done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711DUMPBIN=$ac_cv_prog_DUMPBIN
5712if test -n "$DUMPBIN"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5714$as_echo "$DUMPBIN" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721 test -n "$DUMPBIN" && break
5722 done
5723fi
5724if test -z "$DUMPBIN"; then
5725 ac_ct_DUMPBIN=$DUMPBIN
5726 for ac_prog in dumpbin "link -dump"
5727do
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729set dummy $ac_prog; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 if test -n "$ac_ct_DUMPBIN"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750 done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756if test -n "$ac_ct_DUMPBIN"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5758$as_echo "$ac_ct_DUMPBIN" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764
5765 test -n "$ac_ct_DUMPBIN" && break
5766done
5767
5768 if test "x$ac_ct_DUMPBIN" = x; then
5769 DUMPBIN=":"
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772yes:)
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775ac_tool_warned=yes ;;
5776esac
5777 DUMPBIN=$ac_ct_DUMPBIN
5778 fi
5779fi
5780
5781 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5782 *COFF*)
5783 DUMPBIN="$DUMPBIN -symbols"
5784 ;;
5785 *)
5786 DUMPBIN=:
5787 ;;
5788 esac
5789 fi
5790
5791 if test "$DUMPBIN" != ":"; then
5792 NM="$DUMPBIN"
5793 fi
5794fi
5795test -z "$NM" && NM=nm
5796
5797
5798
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5803$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5804if ${lt_cv_nm_interface+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 lt_cv_nm_interface="BSD nm"
5808 echo "int some_variable = 0;" > conftest.$ac_ext
5809 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5810 (eval "$ac_compile" 2>conftest.err)
5811 cat conftest.err >&5
5812 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5814 cat conftest.err >&5
5815 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5816 cat conftest.out >&5
5817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5818 lt_cv_nm_interface="MS dumpbin"
5819 fi
5820 rm -f conftest*
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5823$as_echo "$lt_cv_nm_interface" >&6; }
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5826$as_echo_n "checking whether ln -s works... " >&6; }
5827LN_S=$as_ln_s
5828if test "$LN_S" = "ln -s"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830$as_echo "yes" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5833$as_echo "no, using $LN_S" >&6; }
5834fi
5835
5836# find the maximum length of command line arguments
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5838$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5839if ${lt_cv_sys_max_cmd_len+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 i=0
5843 teststring="ABCD"
5844
5845 case $build_os in
5846 msdosdjgpp*)
5847 # On DJGPP, this test can blow up pretty badly due to problems in libc
5848 # (any single argument exceeding 2000 bytes causes a buffer overrun
5849 # during glob expansion). Even if it were fixed, the result of this
5850 # check would be larger than it should be.
5851 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5852 ;;
5853
5854 gnu*)
5855 # Under GNU Hurd, this test is not required because there is
5856 # no limit to the length of command line arguments.
5857 # Libtool will interpret -1 as no limit whatsoever
5858 lt_cv_sys_max_cmd_len=-1;
5859 ;;
5860
5861 cygwin* | mingw* | cegcc*)
5862 # On Win9x/ME, this test blows up -- it succeeds, but takes
5863 # about 5 minutes as the teststring grows exponentially.
5864 # Worse, since 9x/ME are not pre-emptively multitasking,
5865 # you end up with a "frozen" computer, even though with patience
5866 # the test eventually succeeds (with a max line length of 256k).
5867 # Instead, let's just punt: use the minimum linelength reported by
5868 # all of the supported platforms: 8192 (on NT/2K/XP).
5869 lt_cv_sys_max_cmd_len=8192;
5870 ;;
5871
5872 mint*)
5873 # On MiNT this can take a long time and run out of memory.
5874 lt_cv_sys_max_cmd_len=8192;
5875 ;;
5876
5877 amigaos*)
5878 # On AmigaOS with pdksh, this test takes hours, literally.
5879 # So we just punt and use a minimum line length of 8192.
5880 lt_cv_sys_max_cmd_len=8192;
5881 ;;
5882
5883 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5884 # This has been around since 386BSD, at least. Likely further.
5885 if test -x /sbin/sysctl; then
5886 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5887 elif test -x /usr/sbin/sysctl; then
5888 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5889 else
5890 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5891 fi
5892 # And add a safety zone
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5895 ;;
5896
5897 interix*)
5898 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5899 lt_cv_sys_max_cmd_len=196608
5900 ;;
5901
5902 osf*)
5903 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5904 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5905 # nice to cause kernel panics so lets avoid the loop below.
5906 # First set a reasonable default.
5907 lt_cv_sys_max_cmd_len=16384
5908 #
5909 if test -x /sbin/sysconfig; then
5910 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5911 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5912 esac
5913 fi
5914 ;;
5915 sco3.2v5*)
5916 lt_cv_sys_max_cmd_len=102400
5917 ;;
5918 sysv5* | sco5v6* | sysv4.2uw2*)
5919 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5920 if test -n "$kargmax"; then
5921 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5922 else
5923 lt_cv_sys_max_cmd_len=32768
5924 fi
5925 ;;
5926 *)
5927 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5928 if test -n "$lt_cv_sys_max_cmd_len"; then
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5931 else
5932 # Make teststring a little bigger before we do anything with it.
5933 # a 1K string should be a reasonable start.
5934 for i in 1 2 3 4 5 6 7 8 ; do
5935 teststring=$teststring$teststring
5936 done
5937 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5938 # If test is not a shell built-in, we'll probably end up computing a
5939 # maximum length that is only half of the actual maximum length, but
5940 # we can't tell.
5941 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5942 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5943 test $i != 17 # 1/2 MB should be enough
5944 do
5945 i=`expr $i + 1`
5946 teststring=$teststring$teststring
5947 done
5948 # Only check the string length outside the loop.
5949 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5950 teststring=
5951 # Add a significant safety factor because C++ compilers can tack on
5952 # massive amounts of additional arguments before passing them to the
5953 # linker. It appears as though 1/2 is a usable value.
5954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5955 fi
5956 ;;
5957 esac
5958
5959fi
5960
5961if test -n $lt_cv_sys_max_cmd_len ; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5963$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5964else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5966$as_echo "none" >&6; }
5967fi
5968max_cmd_len=$lt_cv_sys_max_cmd_len
5969
5970
5971
5972
5973
5974
5975: ${CP="cp -f"}
5976: ${MV="mv -f"}
5977: ${RM="rm -f"}
5978
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5980$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5981# Try some XSI features
5982xsi_shell=no
5983( _lt_dummy="a/b/c"
5984 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5985 = c,a/b,, \
5986 && eval 'test $(( 1 + 1 )) -eq 2 \
5987 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5988 && xsi_shell=yes
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5990$as_echo "$xsi_shell" >&6; }
5991
5992
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5994$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5995lt_shell_append=no
5996( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5997 >/dev/null 2>&1 \
5998 && lt_shell_append=yes
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6000$as_echo "$lt_shell_append" >&6; }
6001
6002
6003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6004 lt_unset=unset
6005else
6006 lt_unset=false
6007fi
6008
6009
6010
6011
6012
6013# test EBCDIC or ASCII
6014case `echo X|tr X '\101'` in
6015 A) # ASCII based system
6016 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6017 lt_SP2NL='tr \040 \012'
6018 lt_NL2SP='tr \015\012 \040\040'
6019 ;;
6020 *) # EBCDIC based system
6021 lt_SP2NL='tr \100 \n'
6022 lt_NL2SP='tr \r\n \100\100'
6023 ;;
6024esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6035$as_echo_n "checking for $LD option to reload object files... " >&6; }
6036if ${lt_cv_ld_reload_flag+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038else
6039 lt_cv_ld_reload_flag='-r'
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6042$as_echo "$lt_cv_ld_reload_flag" >&6; }
6043reload_flag=$lt_cv_ld_reload_flag
6044case $reload_flag in
6045"" | " "*) ;;
6046*) reload_flag=" $reload_flag" ;;
6047esac
6048reload_cmds='$LD$reload_flag -o $output$reload_objs'
6049case $host_os in
6050 darwin*)
6051 if test "$GCC" = yes; then
6052 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6053 else
6054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 fi
6056 ;;
6057esac
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6069set dummy ${ac_tool_prefix}objdump; ac_word=$2
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071$as_echo_n "checking for $ac_word... " >&6; }
6072if ${ac_cv_prog_OBJDUMP+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074else
6075 if test -n "$OBJDUMP"; then
6076 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090 done
6091IFS=$as_save_IFS
6092
6093fi
6094fi
6095OBJDUMP=$ac_cv_prog_OBJDUMP
6096if test -n "$OBJDUMP"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6098$as_echo "$OBJDUMP" >&6; }
6099else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101$as_echo "no" >&6; }
6102fi
6103
6104
6105fi
6106if test -z "$ac_cv_prog_OBJDUMP"; then
6107 ac_ct_OBJDUMP=$OBJDUMP
6108 # Extract the first word of "objdump", so it can be a program name with args.
6109set dummy objdump; ac_word=$2
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111$as_echo_n "checking for $ac_word... " >&6; }
6112if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 if test -n "$ac_ct_OBJDUMP"; then
6116 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130 done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6136if test -n "$ac_ct_OBJDUMP"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6138$as_echo "$ac_ct_OBJDUMP" >&6; }
6139else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141$as_echo "no" >&6; }
6142fi
6143
6144 if test "x$ac_ct_OBJDUMP" = x; then
6145 OBJDUMP="false"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148yes:)
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151ac_tool_warned=yes ;;
6152esac
6153 OBJDUMP=$ac_ct_OBJDUMP
6154 fi
6155else
6156 OBJDUMP="$ac_cv_prog_OBJDUMP"
6157fi
6158
6159test -z "$OBJDUMP" && OBJDUMP=objdump
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6170$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6171if ${lt_cv_deplibs_check_method+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173else
6174 lt_cv_file_magic_cmd='$MAGIC_CMD'
6175lt_cv_file_magic_test_file=
6176lt_cv_deplibs_check_method='unknown'
6177# Need to set the preceding variable on all platforms that support
6178# interlibrary dependencies.
6179# 'none' -- dependencies not supported.
6180# `unknown' -- same as none, but documents that we really don't know.
6181# 'pass_all' -- all dependencies passed with no checks.
6182# 'test_compile' -- check by making test program.
6183# 'file_magic [[regex]]' -- check by looking for files in library path
6184# which responds to the $file_magic_cmd with a given extended regex.
6185# If you have `file' or equivalent on your system and you're not sure
6186# whether `pass_all' will *always* work, you probably want this one.
6187
6188case $host_os in
6189aix[4-9]*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192
6193beos*)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
6196
6197bsdi[45]*)
6198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6199 lt_cv_file_magic_cmd='/usr/bin/file -L'
6200 lt_cv_file_magic_test_file=/shlib/libc.so
6201 ;;
6202
6203cygwin*)
6204 # func_win32_libid is a shell function defined in ltmain.sh
6205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6206 lt_cv_file_magic_cmd='func_win32_libid'
6207 ;;
6208
6209mingw* | pw32*)
6210 # Base MSYS/MinGW do not provide the 'file' command needed by
6211 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6212 # unless we find 'file', for example because we are cross-compiling.
6213 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6214 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6216 lt_cv_file_magic_cmd='func_win32_libid'
6217 else
6218 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6219 lt_cv_file_magic_cmd='$OBJDUMP -f'
6220 fi
6221 ;;
6222
6223cegcc*)
6224 # use the weaker test based on 'objdump'. See mingw*.
6225 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6226 lt_cv_file_magic_cmd='$OBJDUMP -f'
6227 ;;
6228
6229darwin* | rhapsody*)
6230 lt_cv_deplibs_check_method=pass_all
6231 ;;
6232
6233freebsd* | dragonfly*)
6234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6235 case $host_cpu in
6236 i*86 )
6237 # Not sure whether the presence of OpenBSD here was a mistake.
6238 # Let's accept both of them until this is cleared up.
6239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6240 lt_cv_file_magic_cmd=/usr/bin/file
6241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6242 ;;
6243 esac
6244 else
6245 lt_cv_deplibs_check_method=pass_all
6246 fi
6247 ;;
6248
6249gnu*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253haiku*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257hpux10.20* | hpux11*)
6258 lt_cv_file_magic_cmd=/usr/bin/file
6259 case $host_cpu in
6260 ia64*)
6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6263 ;;
6264 hppa*64*)
6265 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]'
6266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6267 ;;
6268 *)
6269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6271 ;;
6272 esac
6273 ;;
6274
6275interix[3-9]*)
6276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6278 ;;
6279
6280irix5* | irix6* | nonstopux*)
6281 case $LD in
6282 *-32|*"-32 ") libmagic=32-bit;;
6283 *-n32|*"-n32 ") libmagic=N32;;
6284 *-64|*"-64 ") libmagic=64-bit;;
6285 *) libmagic=never-match;;
6286 esac
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290# This must be Linux ELF.
6291linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295netbsd*)
6296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6298 else
6299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6300 fi
6301 ;;
6302
6303newos6*)
6304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6305 lt_cv_file_magic_cmd=/usr/bin/file
6306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6307 ;;
6308
6309*nto* | *qnx*)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313openbsd*)
6314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6316 else
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318 fi
6319 ;;
6320
6321osf3* | osf4* | osf5*)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
6324
6325rdos*)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328
6329solaris*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337sysv4 | sysv4.3*)
6338 case $host_vendor in
6339 motorola)
6340 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]'
6341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6342 ;;
6343 ncr)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346 sequent)
6347 lt_cv_file_magic_cmd='/bin/file'
6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6349 ;;
6350 sni)
6351 lt_cv_file_magic_cmd='/bin/file'
6352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6353 lt_cv_file_magic_test_file=/lib/libc.so
6354 ;;
6355 siemens)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358 pc)
6359 lt_cv_deplibs_check_method=pass_all
6360 ;;
6361 esac
6362 ;;
6363
6364tpf*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
0ecd0f1c
OH
6367vxworks*)
6368 # Assume VxWorks cross toolchains are built on Linux, possibly
6369 # as canadian for Windows hosts.
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
5be7b669
L
6372esac
6373
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6376$as_echo "$lt_cv_deplibs_check_method" >&6; }
6377file_magic_cmd=$lt_cv_file_magic_cmd
6378deplibs_check_method=$lt_cv_deplibs_check_method
6379test -z "$deplibs_check_method" && deplibs_check_method=unknown
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
126f707e
L
6392plugin_option=
6393plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6394for plugin in $plugin_names; do
6395 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6396 if test x$plugin_so = x$plugin; then
6397 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6398 fi
6399 if test x$plugin_so != x$plugin; then
6400 plugin_option="--plugin $plugin_so"
6401 break
6402 fi
6403done
6404
5be7b669
L
6405if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}ar; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_AR+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412else
6413 if test -n "$AR"; then
6414 ac_cv_prog_AR="$AR" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_AR="${ac_tool_prefix}ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428 done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433AR=$ac_cv_prog_AR
6434if test -n "$AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6436$as_echo "$AR" >&6; }
6437else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_AR"; then
6445 ac_ct_AR=$AR
6446 # Extract the first word of "ar", so it can be a program name with args.
6447set dummy ar; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_AR+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$ac_ct_AR"; then
6454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_ac_ct_AR="ar"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_AR=$ac_cv_prog_ac_ct_AR
6474if test -n "$ac_ct_AR"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6476$as_echo "$ac_ct_AR" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482 if test "x$ac_ct_AR" = x; then
6483 AR="false"
6484 else
6485 case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491 AR=$ac_ct_AR
6492 fi
6493else
6494 AR="$ac_cv_prog_AR"
6495fi
6496
6497test -z "$AR" && AR=ar
126f707e
L
6498if test -n "$plugin_option"; then
6499 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6500 touch conftest.c
6501 $AR $plugin_option rc conftest.a conftest.c
6502 if test "$?" != 0; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6504$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6505 else
6506 AR="$AR $plugin_option"
6507 fi
6508 rm -f conftest.*
126f707e
L
6509 fi
6510fi
5be7b669
L
6511test -z "$AR_FLAGS" && AR_FLAGS=cru
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6525set dummy ${ac_tool_prefix}strip; ac_word=$2
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527$as_echo_n "checking for $ac_word... " >&6; }
6528if ${ac_cv_prog_STRIP+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530else
6531 if test -n "$STRIP"; then
6532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546 done
6547IFS=$as_save_IFS
6548
6549fi
6550fi
6551STRIP=$ac_cv_prog_STRIP
6552if test -n "$STRIP"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6554$as_echo "$STRIP" >&6; }
6555else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560
6561fi
6562if test -z "$ac_cv_prog_STRIP"; then
6563 ac_ct_STRIP=$STRIP
6564 # Extract the first word of "strip", so it can be a program name with args.
6565set dummy strip; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -n "$ac_ct_STRIP"; then
6572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_ac_ct_STRIP="strip"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586 done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6592if test -n "$ac_ct_STRIP"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6594$as_echo "$ac_ct_STRIP" >&6; }
6595else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600 if test "x$ac_ct_STRIP" = x; then
6601 STRIP=":"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604yes:)
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607ac_tool_warned=yes ;;
6608esac
6609 STRIP=$ac_ct_STRIP
6610 fi
6611else
6612 STRIP="$ac_cv_prog_STRIP"
6613fi
6614
6615test -z "$STRIP" && STRIP=:
6616
6617
6618
6619
6620
6621
6622if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626$as_echo_n "checking for $ac_word... " >&6; }
6627if ${ac_cv_prog_RANLIB+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629else
6630 if test -n "$RANLIB"; then
6631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644done
6645 done
6646IFS=$as_save_IFS
6647
6648fi
6649fi
6650RANLIB=$ac_cv_prog_RANLIB
6651if test -n "$RANLIB"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6653$as_echo "$RANLIB" >&6; }
6654else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659
6660fi
6661if test -z "$ac_cv_prog_RANLIB"; then
6662 ac_ct_RANLIB=$RANLIB
6663 # Extract the first word of "ranlib", so it can be a program name with args.
6664set dummy ranlib; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669else
6670 if test -n "$ac_ct_RANLIB"; then
6671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_RANLIB="ranlib"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685 done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6691if test -n "$ac_ct_RANLIB"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6693$as_echo "$ac_ct_RANLIB" >&6; }
6694else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699 if test "x$ac_ct_RANLIB" = x; then
6700 RANLIB=":"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703yes:)
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706ac_tool_warned=yes ;;
6707esac
6708 RANLIB=$ac_ct_RANLIB
6709 fi
6710else
6711 RANLIB="$ac_cv_prog_RANLIB"
6712fi
6713
6714test -z "$RANLIB" && RANLIB=:
126f707e
L
6715if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6716 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6717 RANLIB="$RANLIB $plugin_option"
6718 fi
6719fi
5be7b669
L
6720
6721
6722
6723
6724
6725
6726# Determine commands to create old-style static archives.
6727old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6728old_postinstall_cmds='chmod 644 $oldlib'
6729old_postuninstall_cmds=
6730
6731if test -n "$RANLIB"; then
6732 case $host_os in
6733 openbsd*)
6734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6735 ;;
6736 *)
6737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6738 ;;
6739 esac
6740 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6741fi
6742
6743case $host_os in
6744 darwin*)
6745 lock_old_archive_extraction=yes ;;
6746 *)
6747 lock_old_archive_extraction=no ;;
6748esac
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788# If no C compiler was specified, use CC.
6789LTCC=${LTCC-"$CC"}
6790
6791# If no C compiler flags were specified, use CFLAGS.
6792LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6793
6794# Allow CC to be a program name with arguments.
6795compiler=$CC
6796
6797
6798# Check for command to grab the raw symbol name followed by C symbol from nm.
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6800$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6801if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803else
6804
6805# These are sane defaults that work on at least a few old systems.
6806# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6807
6808# Character class describing NM global symbol codes.
6809symcode='[BCDEGRST]'
6810
6811# Regexp to match symbols that can be accessed directly from C.
6812sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6813
6814# Define system-specific variables.
6815case $host_os in
6816aix*)
6817 symcode='[BCDT]'
6818 ;;
6819cygwin* | mingw* | pw32* | cegcc*)
6820 symcode='[ABCDGISTW]'
6821 ;;
6822hpux*)
6823 if test "$host_cpu" = ia64; then
6824 symcode='[ABCDEGRST]'
6825 fi
6826 ;;
6827irix* | nonstopux*)
6828 symcode='[BCDEGRST]'
6829 ;;
6830osf*)
6831 symcode='[BCDEGQRST]'
6832 ;;
6833solaris*)
dc17ceb3 6834 symcode='[BCDRT]'
5be7b669
L
6835 ;;
6836sco3.2v5*)
6837 symcode='[DT]'
6838 ;;
6839sysv4.2uw2*)
6840 symcode='[DT]'
6841 ;;
6842sysv5* | sco5v6* | unixware* | OpenUNIX*)
6843 symcode='[ABDT]'
6844 ;;
6845sysv4)
6846 symcode='[DFNSTU]'
6847 ;;
6848esac
6849
6850# If we're using GNU nm, then use its standard symbol codes.
6851case `$NM -V 2>&1` in
6852*GNU* | *'with BFD'*)
6853 symcode='[ABCDGIRSTW]' ;;
6854esac
6855
6856# Transform an extracted symbol line into a proper C declaration.
6857# Some systems (esp. on ia64) link data and code symbols differently,
6858# so use this general approach.
6859lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6860
6861# Transform an extracted symbol line into symbol name and symbol address
6862lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6863lt_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'"
6864
6865# Handle CRLF in mingw tool chain
6866opt_cr=
6867case $build_os in
6868mingw*)
6869 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6870 ;;
6871esac
6872
6873# Try without a prefix underscore, then with it.
6874for ac_symprfx in "" "_"; do
6875
6876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6877 symxfrm="\\1 $ac_symprfx\\2 \\2"
6878
6879 # Write the raw and C identifiers.
6880 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6881 # Fake it for dumpbin and say T for any non-static function
6882 # and D for any global variable.
6883 # Also find C++ and __fastcall symbols from MSVC++,
6884 # which start with @ or ?.
6885 lt_cv_sys_global_symbol_pipe="$AWK '"\
6886" {last_section=section; section=\$ 3};"\
6887" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6888" \$ 0!~/External *\|/{next};"\
6889" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6890" {if(hide[section]) next};"\
6891" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6892" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6893" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6894" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6895" ' prfx=^$ac_symprfx"
6896 else
6897 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6898 fi
6899
6900 # Check to see that the pipe works correctly.
6901 pipe_works=no
6902
6903 rm -f conftest*
6904 cat > conftest.$ac_ext <<_LT_EOF
6905#ifdef __cplusplus
6906extern "C" {
6907#endif
6908char nm_test_var;
6909void nm_test_func(void);
6910void nm_test_func(void){}
6911#ifdef __cplusplus
6912}
6913#endif
6914int main(){nm_test_var='a';nm_test_func();return(0);}
6915_LT_EOF
6916
6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918 (eval $ac_compile) 2>&5
6919 ac_status=$?
6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921 test $ac_status = 0; }; then
6922 # Now try to grab the symbols.
6923 nlist=conftest.nm
6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6925 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6926 ac_status=$?
6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928 test $ac_status = 0; } && test -s "$nlist"; then
6929 # Try sorting and uniquifying the output.
6930 if sort "$nlist" | uniq > "$nlist"T; then
6931 mv -f "$nlist"T "$nlist"
6932 else
6933 rm -f "$nlist"T
6934 fi
6935
6936 # Make sure that we snagged all the symbols we need.
6937 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6938 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6939 cat <<_LT_EOF > conftest.$ac_ext
6940#ifdef __cplusplus
6941extern "C" {
6942#endif
6943
6944_LT_EOF
6945 # Now generate the symbol file.
6946 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6947
6948 cat <<_LT_EOF >> conftest.$ac_ext
6949
6950/* The mapping between symbol names and symbols. */
6951const struct {
6952 const char *name;
6953 void *address;
6954}
6955lt__PROGRAM__LTX_preloaded_symbols[] =
6956{
6957 { "@PROGRAM@", (void *) 0 },
6958_LT_EOF
6959 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6960 cat <<\_LT_EOF >> conftest.$ac_ext
6961 {0, (void *) 0}
6962};
6963
6964/* This works around a problem in FreeBSD linker */
6965#ifdef FREEBSD_WORKAROUND
6966static const void *lt_preloaded_setup() {
6967 return lt__PROGRAM__LTX_preloaded_symbols;
6968}
6969#endif
6970
6971#ifdef __cplusplus
6972}
6973#endif
6974_LT_EOF
6975 # Now try linking the two files.
6976 mv conftest.$ac_objext conftstm.$ac_objext
6977 lt_save_LIBS="$LIBS"
6978 lt_save_CFLAGS="$CFLAGS"
6979 LIBS="conftstm.$ac_objext"
6980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6982 (eval $ac_link) 2>&5
6983 ac_status=$?
6984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6986 pipe_works=yes
6987 fi
6988 LIBS="$lt_save_LIBS"
6989 CFLAGS="$lt_save_CFLAGS"
6990 else
6991 echo "cannot find nm_test_func in $nlist" >&5
6992 fi
6993 else
6994 echo "cannot find nm_test_var in $nlist" >&5
6995 fi
6996 else
6997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998 fi
6999 else
7000 echo "$progname: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 fi
7003 rm -rf conftest* conftst*
7004
7005 # Do not use the global_symbol_pipe unless it works.
7006 if test "$pipe_works" = yes; then
7007 break
7008 else
7009 lt_cv_sys_global_symbol_pipe=
7010 fi
7011done
7012
7013fi
7014
7015if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016 lt_cv_sys_global_symbol_to_cdecl=
7017fi
7018if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7020$as_echo "failed" >&6; }
7021else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7023$as_echo "ok" >&6; }
7024fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
5be7b669
L
7045
7046
7047# Check whether --enable-libtool-lock was given.
7048if test "${enable_libtool_lock+set}" = set; then :
7049 enableval=$enable_libtool_lock;
7050fi
7051
7052test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7053
7054# Some flags need to be propagated to the compiler or linker for good
7055# libtool support.
7056case $host in
7057ia64-*-hpux*)
7058 # Find out which ABI we are using.
7059 echo 'int i;' > conftest.$ac_ext
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7061 (eval $ac_compile) 2>&5
7062 ac_status=$?
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; }; then
7065 case `/usr/bin/file conftest.$ac_objext` in
7066 *ELF-32*)
7067 HPUX_IA64_MODE="32"
7068 ;;
7069 *ELF-64*)
7070 HPUX_IA64_MODE="64"
7071 ;;
7072 esac
7073 fi
7074 rm -rf conftest*
7075 ;;
7076*-*-irix6*)
7077 # Find out which ABI we are using.
7078 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7080 (eval $ac_compile) 2>&5
7081 ac_status=$?
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; then
7084 if test "$lt_cv_prog_gnu_ld" = yes; then
7085 case `/usr/bin/file conftest.$ac_objext` in
7086 *32-bit*)
7087 LD="${LD-ld} -melf32bsmip"
7088 ;;
7089 *N32*)
7090 LD="${LD-ld} -melf32bmipn32"
7091 ;;
7092 *64-bit*)
7093 LD="${LD-ld} -melf64bmip"
7094 ;;
7095 esac
7096 else
7097 case `/usr/bin/file conftest.$ac_objext` in
7098 *32-bit*)
7099 LD="${LD-ld} -32"
7100 ;;
7101 *N32*)
7102 LD="${LD-ld} -n32"
7103 ;;
7104 *64-bit*)
7105 LD="${LD-ld} -64"
7106 ;;
7107 esac
7108 fi
7109 fi
7110 rm -rf conftest*
7111 ;;
7112
7113x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7114s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7115 # Find out which ABI we are using.
7116 echo 'int i;' > conftest.$ac_ext
7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7118 (eval $ac_compile) 2>&5
7119 ac_status=$?
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 case `/usr/bin/file conftest.o` in
7123 *32-bit*)
7124 case $host in
7125 x86_64-*kfreebsd*-gnu)
7126 LD="${LD-ld} -m elf_i386_fbsd"
7127 ;;
7128 x86_64-*linux*)
7129 case `/usr/bin/file conftest.o` in
7130 *x86-64*)
7131 LD="${LD-ld} -m elf32_x86_64"
7132 ;;
7133 *)
7134 LD="${LD-ld} -m elf_i386"
7135 ;;
7136 esac
7137 ;;
7138 powerpc64le-*linux*)
7139 LD="${LD-ld} -m elf32lppclinux"
7140 ;;
7141 powerpc64-*linux*)
7142 LD="${LD-ld} -m elf32ppclinux"
7143 ;;
7144 s390x-*linux*)
7145 LD="${LD-ld} -m elf_s390"
7146 ;;
7147 sparc64-*linux*)
7148 LD="${LD-ld} -m elf32_sparc"
7149 ;;
7150 esac
7151 ;;
7152 *64-bit*)
7153 case $host in
7154 x86_64-*kfreebsd*-gnu)
7155 LD="${LD-ld} -m elf_x86_64_fbsd"
7156 ;;
7157 x86_64-*linux*)
7158 LD="${LD-ld} -m elf_x86_64"
7159 ;;
7160 powerpcle-*linux*)
7161 LD="${LD-ld} -m elf64lppc"
7162 ;;
7163 powerpc-*linux*)
7164 LD="${LD-ld} -m elf64ppc"
7165 ;;
7166 s390*-*linux*|s390*-*tpf*)
7167 LD="${LD-ld} -m elf64_s390"
7168 ;;
7169 sparc*-*linux*)
7170 LD="${LD-ld} -m elf64_sparc"
7171 ;;
7172 esac
7173 ;;
7174 esac
7175 fi
7176 rm -rf conftest*
7177 ;;
7178
7179*-*-sco3.2v5*)
7180 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7181 SAVE_CFLAGS="$CFLAGS"
7182 CFLAGS="$CFLAGS -belf"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7184$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7185if ${lt_cv_cc_needs_belf+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187else
7188 ac_ext=c
7189ac_cpp='$CPP $CPPFLAGS'
7190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192ac_compiler_gnu=$ac_cv_c_compiler_gnu
7193
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196
7197int
7198main ()
7199{
7200
7201 ;
7202 return 0;
7203}
7204_ACEOF
7205if ac_fn_c_try_link "$LINENO"; then :
7206 lt_cv_cc_needs_belf=yes
7207else
7208 lt_cv_cc_needs_belf=no
7209fi
7210rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7220$as_echo "$lt_cv_cc_needs_belf" >&6; }
7221 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7223 CFLAGS="$SAVE_CFLAGS"
7224 fi
7225 ;;
7226sparc*-*solaris*)
7227 # Find out which ABI we are using.
7228 echo 'int i;' > conftest.$ac_ext
7229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7230 (eval $ac_compile) 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7233 test $ac_status = 0; }; then
7234 case `/usr/bin/file conftest.o` in
7235 *64-bit*)
7236 case $lt_cv_prog_gnu_ld in
7237 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7238 *)
7239 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7240 LD="${LD-ld} -64"
7241 fi
7242 ;;
7243 esac
7244 ;;
7245 esac
7246 fi
7247 rm -rf conftest*
7248 ;;
7249esac
7250
7251need_locks="$enable_libtool_lock"
7252
7253
7254 case $host_os in
7255 rhapsody* | darwin*)
7256 if test -n "$ac_tool_prefix"; then
7257 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7258set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if ${ac_cv_prog_DSYMUTIL+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263else
7264 if test -n "$DSYMUTIL"; then
7265 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279 done
7280IFS=$as_save_IFS
7281
7282fi
7283fi
7284DSYMUTIL=$ac_cv_prog_DSYMUTIL
7285if test -n "$DSYMUTIL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7287$as_echo "$DSYMUTIL" >&6; }
7288else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293
7294fi
7295if test -z "$ac_cv_prog_DSYMUTIL"; then
7296 ac_ct_DSYMUTIL=$DSYMUTIL
7297 # Extract the first word of "dsymutil", so it can be a program name with args.
7298set dummy dsymutil; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303else
7304 if test -n "$ac_ct_DSYMUTIL"; then
7305 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319 done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7325if test -n "$ac_ct_DSYMUTIL"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7327$as_echo "$ac_ct_DSYMUTIL" >&6; }
7328else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333 if test "x$ac_ct_DSYMUTIL" = x; then
7334 DSYMUTIL=":"
7335 else
7336 case $cross_compiling:$ac_tool_warned in
7337yes:)
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340ac_tool_warned=yes ;;
7341esac
7342 DSYMUTIL=$ac_ct_DSYMUTIL
7343 fi
7344else
7345 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7346fi
7347
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if ${ac_cv_prog_NMEDIT+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355else
7356 if test -n "$NMEDIT"; then
7357 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371 done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376NMEDIT=$ac_cv_prog_NMEDIT
7377if test -n "$NMEDIT"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7379$as_echo "$NMEDIT" >&6; }
7380else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385
7386fi
7387if test -z "$ac_cv_prog_NMEDIT"; then
7388 ac_ct_NMEDIT=$NMEDIT
7389 # Extract the first word of "nmedit", so it can be a program name with args.
7390set dummy nmedit; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395else
7396 if test -n "$ac_ct_NMEDIT"; then
7397 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411 done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7417if test -n "$ac_ct_NMEDIT"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7419$as_echo "$ac_ct_NMEDIT" >&6; }
7420else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425 if test "x$ac_ct_NMEDIT" = x; then
7426 NMEDIT=":"
7427 else
7428 case $cross_compiling:$ac_tool_warned in
7429yes:)
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432ac_tool_warned=yes ;;
7433esac
7434 NMEDIT=$ac_ct_NMEDIT
7435 fi
7436else
7437 NMEDIT="$ac_cv_prog_NMEDIT"
7438fi
7439
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7442set dummy ${ac_tool_prefix}lipo; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
7445if ${ac_cv_prog_LIPO+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447else
7448 if test -n "$LIPO"; then
7449 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463 done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468LIPO=$ac_cv_prog_LIPO
7469if test -n "$LIPO"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7471$as_echo "$LIPO" >&6; }
7472else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477
7478fi
7479if test -z "$ac_cv_prog_LIPO"; then
7480 ac_ct_LIPO=$LIPO
7481 # Extract the first word of "lipo", so it can be a program name with args.
7482set dummy lipo; ac_word=$2
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487else
7488 if test -n "$ac_ct_LIPO"; then
7489 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_LIPO="lipo"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503 done
7504IFS=$as_save_IFS
7505
7506fi
7507fi
7508ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7509if test -n "$ac_ct_LIPO"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7511$as_echo "$ac_ct_LIPO" >&6; }
7512else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
7515fi
7516
7517 if test "x$ac_ct_LIPO" = x; then
7518 LIPO=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521yes:)
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524ac_tool_warned=yes ;;
7525esac
7526 LIPO=$ac_ct_LIPO
7527 fi
7528else
7529 LIPO="$ac_cv_prog_LIPO"
7530fi
7531
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7534set dummy ${ac_tool_prefix}otool; ac_word=$2
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
7537if ${ac_cv_prog_OTOOL+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539else
7540 if test -n "$OTOOL"; then
7541 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555 done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
7560OTOOL=$ac_cv_prog_OTOOL
7561if test -n "$OTOOL"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7563$as_echo "$OTOOL" >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
7569
7570fi
7571if test -z "$ac_cv_prog_OTOOL"; then
7572 ac_ct_OTOOL=$OTOOL
7573 # Extract the first word of "otool", so it can be a program name with args.
7574set dummy otool; ac_word=$2
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576$as_echo_n "checking for $ac_word... " >&6; }
7577if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579else
7580 if test -n "$ac_ct_OTOOL"; then
7581 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_ac_ct_OTOOL="otool"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594done
7595 done
7596IFS=$as_save_IFS
7597
7598fi
7599fi
7600ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7601if test -n "$ac_ct_OTOOL"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7603$as_echo "$ac_ct_OTOOL" >&6; }
7604else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609 if test "x$ac_ct_OTOOL" = x; then
7610 OTOOL=":"
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613yes:)
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616ac_tool_warned=yes ;;
7617esac
7618 OTOOL=$ac_ct_OTOOL
7619 fi
7620else
7621 OTOOL="$ac_cv_prog_OTOOL"
7622fi
7623
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7626set dummy ${ac_tool_prefix}otool64; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if ${ac_cv_prog_OTOOL64+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 if test -n "$OTOOL64"; then
7633 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647 done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652OTOOL64=$ac_cv_prog_OTOOL64
7653if test -n "$OTOOL64"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7655$as_echo "$OTOOL64" >&6; }
7656else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661
7662fi
7663if test -z "$ac_cv_prog_OTOOL64"; then
7664 ac_ct_OTOOL64=$OTOOL64
7665 # Extract the first word of "otool64", so it can be a program name with args.
7666set dummy otool64; ac_word=$2
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668$as_echo_n "checking for $ac_word... " >&6; }
7669if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 if test -n "$ac_ct_OTOOL64"; then
7673 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7674else
7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_ac_ct_OTOOL64="otool64"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686done
7687 done
7688IFS=$as_save_IFS
7689
7690fi
7691fi
7692ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7693if test -n "$ac_ct_OTOOL64"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7695$as_echo "$ac_ct_OTOOL64" >&6; }
7696else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698$as_echo "no" >&6; }
7699fi
7700
7701 if test "x$ac_ct_OTOOL64" = x; then
7702 OTOOL64=":"
7703 else
7704 case $cross_compiling:$ac_tool_warned in
7705yes:)
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708ac_tool_warned=yes ;;
7709esac
7710 OTOOL64=$ac_ct_OTOOL64
7711 fi
7712else
7713 OTOOL64="$ac_cv_prog_OTOOL64"
7714fi
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7743$as_echo_n "checking for -single_module linker flag... " >&6; }
7744if ${lt_cv_apple_cc_single_mod+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746else
7747 lt_cv_apple_cc_single_mod=no
7748 if test -z "${LT_MULTI_MODULE}"; then
7749 # By default we will add the -single_module flag. You can override
7750 # by either setting the environment variable LT_MULTI_MODULE
7751 # non-empty at configure time, or by adding -multi_module to the
7752 # link flags.
7753 rm -rf libconftest.dylib*
7754 echo "int foo(void){return 1;}" > conftest.c
7755 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7756-dynamiclib -Wl,-single_module conftest.c" >&5
7757 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7758 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7759 _lt_result=$?
7760 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7761 lt_cv_apple_cc_single_mod=yes
7762 else
7763 cat conftest.err >&5
7764 fi
7765 rm -rf libconftest.dylib*
7766 rm -f conftest.*
7767 fi
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7770$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7772$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7773if ${lt_cv_ld_exported_symbols_list+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775else
7776 lt_cv_ld_exported_symbols_list=no
7777 save_LDFLAGS=$LDFLAGS
7778 echo "_main" > conftest.sym
7779 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h. */
7782
7783int
7784main ()
7785{
7786
7787 ;
7788 return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"; then :
7792 lt_cv_ld_exported_symbols_list=yes
7793else
7794 lt_cv_ld_exported_symbols_list=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 LDFLAGS="$save_LDFLAGS"
7799
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7802$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7804$as_echo_n "checking for -force_load linker flag... " >&6; }
7805if ${lt_cv_ld_force_load+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807else
7808 lt_cv_ld_force_load=no
7809 cat > conftest.c << _LT_EOF
7810int forced_loaded() { return 2;}
7811_LT_EOF
7812 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7813 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7814 echo "$AR cru libconftest.a conftest.o" >&5
7815 $AR cru libconftest.a conftest.o 2>&5
7816 cat > conftest.c << _LT_EOF
7817int main() { return 0;}
7818_LT_EOF
7819 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7820 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7821 _lt_result=$?
7822 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7823 lt_cv_ld_force_load=yes
7824 else
7825 cat conftest.err >&5
7826 fi
7827 rm -f conftest.err libconftest.a conftest conftest.c
7828 rm -rf conftest.dSYM
7829
7830fi
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7832$as_echo "$lt_cv_ld_force_load" >&6; }
7833 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7834 # build without first building modern cctools / linker.
7835 case $host_cpu-$host_os in
7836 *-rhapsody* | *-darwin1.[012])
7837 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7838 *-darwin1.*)
7839 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7840 *-darwin*)
7841 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7842 # deployment target is forced to an earlier version.
7843 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6a6d3817 7844 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
5be7b669
L
7845 ;;
7846 10.[012][,.]*)
7847 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7848 ;;
7849 *)
7850 ;;
7851 esac
7852 ;;
7853 esac
7854 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7855 _lt_dar_single_mod='$single_module'
7856 fi
7857 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7858 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7859 else
7860 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7861 fi
7862 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7863 _lt_dsymutil='~$DSYMUTIL $lib || :'
7864 else
7865 _lt_dsymutil=
7866 fi
7867 ;;
7868 esac
7869
7870ac_ext=c
7871ac_cpp='$CPP $CPPFLAGS'
7872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7876$as_echo_n "checking how to run the C preprocessor... " >&6; }
7877# On Suns, sometimes $CPP names a directory.
7878if test -n "$CPP" && test -d "$CPP"; then
7879 CPP=
7880fi
7881if test -z "$CPP"; then
7882 if ${ac_cv_prog_CPP+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884else
7885 # Double quotes because CPP needs to be expanded
7886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7887 do
7888 ac_preproc_ok=false
7889for ac_c_preproc_warn_flag in '' yes
7890do
7891 # Use a header file that comes with gcc, so configuring glibc
7892 # with a fresh cross-compiler works.
7893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7894 # <limits.h> exists even on freestanding compilers.
7895 # On the NeXT, cc -E runs the code through the compiler's parser,
7896 # not just through cpp. "Syntax error" is here to catch this case.
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899#ifdef __STDC__
7900# include <limits.h>
7901#else
7902# include <assert.h>
7903#endif
7904 Syntax error
7905_ACEOF
7906if ac_fn_c_try_cpp "$LINENO"; then :
7907
7908else
7909 # Broken: fails on valid input.
7910continue
7911fi
7912rm -f conftest.err conftest.i conftest.$ac_ext
7913
7914 # OK, works on sane cases. Now check whether nonexistent headers
7915 # can be detected and how.
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h. */
7918#include <ac_nonexistent.h>
7919_ACEOF
7920if ac_fn_c_try_cpp "$LINENO"; then :
7921 # Broken: success on invalid input.
7922continue
7923else
7924 # Passes both tests.
7925ac_preproc_ok=:
7926break
7927fi
7928rm -f conftest.err conftest.i conftest.$ac_ext
7929
7930done
7931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7932rm -f conftest.i conftest.err conftest.$ac_ext
7933if $ac_preproc_ok; then :
7934 break
7935fi
7936
7937 done
7938 ac_cv_prog_CPP=$CPP
7939
7940fi
7941 CPP=$ac_cv_prog_CPP
7942else
7943 ac_cv_prog_CPP=$CPP
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7946$as_echo "$CPP" >&6; }
7947ac_preproc_ok=false
7948for ac_c_preproc_warn_flag in '' yes
7949do
7950 # Use a header file that comes with gcc, so configuring glibc
7951 # with a fresh cross-compiler works.
7952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953 # <limits.h> exists even on freestanding compilers.
7954 # On the NeXT, cc -E runs the code through the compiler's parser,
7955 # not just through cpp. "Syntax error" is here to catch this case.
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
7958#ifdef __STDC__
7959# include <limits.h>
7960#else
7961# include <assert.h>
7962#endif
7963 Syntax error
7964_ACEOF
7965if ac_fn_c_try_cpp "$LINENO"; then :
7966
7967else
7968 # Broken: fails on valid input.
7969continue
7970fi
7971rm -f conftest.err conftest.i conftest.$ac_ext
7972
7973 # OK, works on sane cases. Now check whether nonexistent headers
7974 # can be detected and how.
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h. */
7977#include <ac_nonexistent.h>
7978_ACEOF
7979if ac_fn_c_try_cpp "$LINENO"; then :
7980 # Broken: success on invalid input.
7981continue
7982else
7983 # Passes both tests.
7984ac_preproc_ok=:
7985break
7986fi
7987rm -f conftest.err conftest.i conftest.$ac_ext
7988
7989done
7990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7991rm -f conftest.i conftest.err conftest.$ac_ext
7992if $ac_preproc_ok; then :
7993
7994else
7995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7997as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7998See \`config.log' for more details" "$LINENO" 5; }
7999fi
8000
8001ac_ext=c
8002ac_cpp='$CPP $CPPFLAGS'
8003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005ac_compiler_gnu=$ac_cv_c_compiler_gnu
8006
8007
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8009$as_echo_n "checking for ANSI C header files... " >&6; }
8010if ${ac_cv_header_stdc+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h. */
8015#include <stdlib.h>
8016#include <stdarg.h>
8017#include <string.h>
8018#include <float.h>
8019
8020int
8021main ()
8022{
8023
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028if ac_fn_c_try_compile "$LINENO"; then :
8029 ac_cv_header_stdc=yes
8030else
8031 ac_cv_header_stdc=no
8032fi
8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034
8035if test $ac_cv_header_stdc = yes; then
8036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038/* end confdefs.h. */
8039#include <string.h>
8040
8041_ACEOF
8042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043 $EGREP "memchr" >/dev/null 2>&1; then :
8044
8045else
8046 ac_cv_header_stdc=no
8047fi
8048rm -f conftest*
8049
8050fi
8051
8052if test $ac_cv_header_stdc = yes; then
8053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h. */
8056#include <stdlib.h>
8057
8058_ACEOF
8059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060 $EGREP "free" >/dev/null 2>&1; then :
8061
8062else
8063 ac_cv_header_stdc=no
8064fi
8065rm -f conftest*
8066
8067fi
8068
8069if test $ac_cv_header_stdc = yes; then
8070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8071 if test "$cross_compiling" = yes; then :
8072 :
8073else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h. */
8076#include <ctype.h>
8077#include <stdlib.h>
8078#if ((' ' & 0x0FF) == 0x020)
8079# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8080# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8081#else
8082# define ISLOWER(c) \
8083 (('a' <= (c) && (c) <= 'i') \
8084 || ('j' <= (c) && (c) <= 'r') \
8085 || ('s' <= (c) && (c) <= 'z'))
8086# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8087#endif
8088
8089#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8090int
8091main ()
8092{
8093 int i;
8094 for (i = 0; i < 256; i++)
8095 if (XOR (islower (i), ISLOWER (i))
8096 || toupper (i) != TOUPPER (i))
8097 return 2;
8098 return 0;
8099}
8100_ACEOF
8101if ac_fn_c_try_run "$LINENO"; then :
8102
8103else
8104 ac_cv_header_stdc=no
8105fi
8106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8107 conftest.$ac_objext conftest.beam conftest.$ac_ext
8108fi
8109
8110fi
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8113$as_echo "$ac_cv_header_stdc" >&6; }
8114if test $ac_cv_header_stdc = yes; then
8115
8116$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8117
8118fi
8119
8120# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8121for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8122 inttypes.h stdint.h unistd.h
8123do :
8124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8126"
8127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8128 cat >>confdefs.h <<_ACEOF
8129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8130_ACEOF
8131
8132fi
8133
8134done
8135
8136
8137for ac_header in dlfcn.h
8138do :
8139 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8140"
8141if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8142 cat >>confdefs.h <<_ACEOF
8143#define HAVE_DLFCN_H 1
8144_ACEOF
8145
8146fi
8147
8148done
8149
8150
8151
8152
8153
8154
8155# Set options
8156
8157
8158
8159 enable_dlopen=no
8160
8161
8162 enable_win32_dll=no
8163
8164
8165 # Check whether --enable-shared was given.
8166if test "${enable_shared+set}" = set; then :
8167 enableval=$enable_shared; p=${PACKAGE-default}
8168 case $enableval in
8169 yes) enable_shared=yes ;;
8170 no) enable_shared=no ;;
8171 *)
8172 enable_shared=no
8173 # Look at the argument we got. We use all the common list separators.
8174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175 for pkg in $enableval; do
8176 IFS="$lt_save_ifs"
8177 if test "X$pkg" = "X$p"; then
8178 enable_shared=yes
8179 fi
8180 done
8181 IFS="$lt_save_ifs"
8182 ;;
8183 esac
8184else
8185 enable_shared=yes
8186fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196 # Check whether --enable-static was given.
8197if test "${enable_static+set}" = set; then :
8198 enableval=$enable_static; p=${PACKAGE-default}
8199 case $enableval in
8200 yes) enable_static=yes ;;
8201 no) enable_static=no ;;
8202 *)
8203 enable_static=no
8204 # Look at the argument we got. We use all the common list separators.
8205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8206 for pkg in $enableval; do
8207 IFS="$lt_save_ifs"
8208 if test "X$pkg" = "X$p"; then
8209 enable_static=yes
8210 fi
8211 done
8212 IFS="$lt_save_ifs"
8213 ;;
8214 esac
8215else
8216 enable_static=yes
8217fi
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228# Check whether --with-pic was given.
8229if test "${with_pic+set}" = set; then :
8230 withval=$with_pic; pic_mode="$withval"
8231else
8232 pic_mode=default
8233fi
8234
8235
8236test -z "$pic_mode" && pic_mode=default
8237
8238
8239
8240
8241
8242
8243
8244 # Check whether --enable-fast-install was given.
8245if test "${enable_fast_install+set}" = set; then :
8246 enableval=$enable_fast_install; p=${PACKAGE-default}
8247 case $enableval in
8248 yes) enable_fast_install=yes ;;
8249 no) enable_fast_install=no ;;
8250 *)
8251 enable_fast_install=no
8252 # Look at the argument we got. We use all the common list separators.
8253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8254 for pkg in $enableval; do
8255 IFS="$lt_save_ifs"
8256 if test "X$pkg" = "X$p"; then
8257 enable_fast_install=yes
8258 fi
8259 done
8260 IFS="$lt_save_ifs"
8261 ;;
8262 esac
8263else
8264 enable_fast_install=yes
8265fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277# This can be used to rebuild libtool when needed
8278LIBTOOL_DEPS="$ltmain"
8279
8280# Always use our own libtool.
8281LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308test -z "$LN_S" && LN_S="ln -s"
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323if test -n "${ZSH_VERSION+set}" ; then
8324 setopt NO_GLOB_SUBST
8325fi
8326
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8328$as_echo_n "checking for objdir... " >&6; }
8329if ${lt_cv_objdir+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331else
8332 rm -f .libs 2>/dev/null
8333mkdir .libs 2>/dev/null
8334if test -d .libs; then
8335 lt_cv_objdir=.libs
8336else
8337 # MS-DOS does not allow filenames that begin with a dot.
8338 lt_cv_objdir=_libs
8339fi
8340rmdir .libs 2>/dev/null
8341fi
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8343$as_echo "$lt_cv_objdir" >&6; }
8344objdir=$lt_cv_objdir
8345
8346
8347
8348
8349
8350cat >>confdefs.h <<_ACEOF
8351#define LT_OBJDIR "$lt_cv_objdir/"
8352_ACEOF
8353
8354
8355
8356
8357case $host_os in
8358aix3*)
8359 # AIX sometimes has problems with the GCC collect2 program. For some
8360 # reason, if we set the COLLECT_NAMES environment variable, the problems
8361 # vanish in a puff of smoke.
8362 if test "X${COLLECT_NAMES+set}" != Xset; then
8363 COLLECT_NAMES=
8364 export COLLECT_NAMES
8365 fi
8366 ;;
8367esac
8368
8369# Global variables:
8370ofile=libtool
8371can_build_shared=yes
8372
8373# All known linkers require a `.a' archive for static linking (except MSVC,
8374# which needs '.lib').
8375libext=a
8376
8377with_gnu_ld="$lt_cv_prog_gnu_ld"
8378
8379old_CC="$CC"
8380old_CFLAGS="$CFLAGS"
8381
8382# Set sane defaults for various variables
8383test -z "$CC" && CC=cc
8384test -z "$LTCC" && LTCC=$CC
8385test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8386test -z "$LD" && LD=ld
8387test -z "$ac_objext" && ac_objext=o
8388
8389for cc_temp in $compiler""; do
8390 case $cc_temp in
8391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8393 \-*) ;;
8394 *) break;;
8395 esac
8396done
8397cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8398
8399
8400# Only perform the check for file, if the check method requires it
8401test -z "$MAGIC_CMD" && MAGIC_CMD=file
8402case $deplibs_check_method in
8403file_magic*)
8404 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8406$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8407if ${lt_cv_path_MAGIC_CMD+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409else
8410 case $MAGIC_CMD in
8411[\\/*] | ?:[\\/]*)
8412 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413 ;;
8414*)
8415 lt_save_MAGIC_CMD="$MAGIC_CMD"
8416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8418 for ac_dir in $ac_dummy; do
8419 IFS="$lt_save_ifs"
8420 test -z "$ac_dir" && ac_dir=.
8421 if test -f $ac_dir/${ac_tool_prefix}file; then
8422 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8423 if test -n "$file_magic_test_file"; then
8424 case $deplibs_check_method in
8425 "file_magic "*)
8426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8429 $EGREP "$file_magic_regex" > /dev/null; then
8430 :
8431 else
8432 cat <<_LT_EOF 1>&2
8433
8434*** Warning: the command libtool uses to detect shared libraries,
8435*** $file_magic_cmd, produces output that libtool cannot recognize.
8436*** The result is that libtool may fail to recognize shared libraries
8437*** as such. This will affect the creation of libtool libraries that
8438*** depend on shared libraries, but programs linked with such libtool
8439*** libraries will work regardless of this problem. Nevertheless, you
8440*** may want to report the problem to your system manager and/or to
8441*** bug-libtool@gnu.org
8442
8443_LT_EOF
8444 fi ;;
8445 esac
8446 fi
8447 break
8448 fi
8449 done
8450 IFS="$lt_save_ifs"
8451 MAGIC_CMD="$lt_save_MAGIC_CMD"
8452 ;;
8453esac
8454fi
8455
8456MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8457if test -n "$MAGIC_CMD"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8459$as_echo "$MAGIC_CMD" >&6; }
8460else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462$as_echo "no" >&6; }
8463fi
8464
8465
8466
8467
8468
8469if test -z "$lt_cv_path_MAGIC_CMD"; then
8470 if test -n "$ac_tool_prefix"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8472$as_echo_n "checking for file... " >&6; }
8473if ${lt_cv_path_MAGIC_CMD+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475else
8476 case $MAGIC_CMD in
8477[\\/*] | ?:[\\/]*)
8478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8479 ;;
8480*)
8481 lt_save_MAGIC_CMD="$MAGIC_CMD"
8482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8484 for ac_dir in $ac_dummy; do
8485 IFS="$lt_save_ifs"
8486 test -z "$ac_dir" && ac_dir=.
8487 if test -f $ac_dir/file; then
8488 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8489 if test -n "$file_magic_test_file"; then
8490 case $deplibs_check_method in
8491 "file_magic "*)
8492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8495 $EGREP "$file_magic_regex" > /dev/null; then
8496 :
8497 else
8498 cat <<_LT_EOF 1>&2
8499
8500*** Warning: the command libtool uses to detect shared libraries,
8501*** $file_magic_cmd, produces output that libtool cannot recognize.
8502*** The result is that libtool may fail to recognize shared libraries
8503*** as such. This will affect the creation of libtool libraries that
8504*** depend on shared libraries, but programs linked with such libtool
8505*** libraries will work regardless of this problem. Nevertheless, you
8506*** may want to report the problem to your system manager and/or to
8507*** bug-libtool@gnu.org
8508
8509_LT_EOF
8510 fi ;;
8511 esac
8512 fi
8513 break
8514 fi
8515 done
8516 IFS="$lt_save_ifs"
8517 MAGIC_CMD="$lt_save_MAGIC_CMD"
8518 ;;
8519esac
8520fi
8521
8522MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8523if test -n "$MAGIC_CMD"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8525$as_echo "$MAGIC_CMD" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
8532 else
8533 MAGIC_CMD=:
8534 fi
8535fi
8536
8537 fi
8538 ;;
8539esac
8540
8541# Use C for the default configuration in the libtool script
8542
8543lt_save_CC="$CC"
8544ac_ext=c
8545ac_cpp='$CPP $CPPFLAGS'
8546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549
8550
8551# Source file extension for C test sources.
8552ac_ext=c
8553
8554# Object file extension for compiled C test sources.
8555objext=o
8556objext=$objext
8557
8558# Code to be used in simple compile tests
8559lt_simple_compile_test_code="int some_variable = 0;"
8560
8561# Code to be used in simple link tests
8562lt_simple_link_test_code='int main(){return(0);}'
8563
8564
8565
8566
8567
8568
8569
8570# If no C compiler was specified, use CC.
8571LTCC=${LTCC-"$CC"}
8572
8573# If no C compiler flags were specified, use CFLAGS.
8574LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8575
8576# Allow CC to be a program name with arguments.
8577compiler=$CC
8578
8579# Save the default compiler, since it gets overwritten when the other
8580# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8581compiler_DEFAULT=$CC
8582
8583# save warnings/boilerplate of simple test code
8584ac_outfile=conftest.$ac_objext
8585echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8586eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8587_lt_compiler_boilerplate=`cat conftest.err`
8588$RM conftest*
8589
8590ac_outfile=conftest.$ac_objext
8591echo "$lt_simple_link_test_code" >conftest.$ac_ext
8592eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8593_lt_linker_boilerplate=`cat conftest.err`
8594$RM -r conftest*
8595
8596
8597## CAVEAT EMPTOR:
8598## There is no encapsulation within the following macros, do not change
8599## the running order or otherwise move them around unless you know exactly
8600## what you are doing...
8601if test -n "$compiler"; then
8602
8603lt_prog_compiler_no_builtin_flag=
8604
8605if test "$GCC" = yes; then
8606 case $cc_basename in
8607 nvcc*)
8608 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8609 *)
8610 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8611 esac
8612
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8614$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8615if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 lt_cv_prog_compiler_rtti_exceptions=no
8619 ac_outfile=conftest.$ac_objext
8620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8621 lt_compiler_flag="-fno-rtti -fno-exceptions"
8622 # Insert the option either (1) after the last *FLAGS variable, or
8623 # (2) before a word containing "conftest.", or (3) at the end.
8624 # Note that $ac_compile itself does not contain backslashes and begins
8625 # with a dollar sign (not a hyphen), so the echo should work correctly.
8626 # The option is referenced via a variable to avoid confusing sed.
8627 lt_compile=`echo "$ac_compile" | $SED \
8628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8630 -e 's:$: $lt_compiler_flag:'`
8631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8632 (eval "$lt_compile" 2>conftest.err)
8633 ac_status=$?
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 if (exit $ac_status) && test -s "$ac_outfile"; then
8637 # The compiler can only warn and ignore the option if not recognized
8638 # So say no if there are warnings other than the usual output.
8639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8642 lt_cv_prog_compiler_rtti_exceptions=yes
8643 fi
8644 fi
8645 $RM conftest*
8646
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8649$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8650
8651if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8652 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8653else
8654 :
8655fi
8656
8657fi
8658
8659
8660
8661
8662
8663
8664 lt_prog_compiler_wl=
8665lt_prog_compiler_pic=
8666lt_prog_compiler_static=
8667
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8669$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8670
8671 if test "$GCC" = yes; then
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_static='-static'
8674
8675 case $host_os in
8676 aix*)
8677 # All AIX code is PIC.
8678 if test "$host_cpu" = ia64; then
8679 # AIX 5 now supports IA64 processor
8680 lt_prog_compiler_static='-Bstatic'
8681 fi
8682 lt_prog_compiler_pic='-fPIC'
8683 ;;
8684
8685 amigaos*)
8686 case $host_cpu in
8687 powerpc)
8688 # see comment about AmigaOS4 .so support
8689 lt_prog_compiler_pic='-fPIC'
8690 ;;
8691 m68k)
8692 # FIXME: we need at least 68020 code to build shared libraries, but
8693 # adding the `-m68020' flag to GCC prevents building anything better,
8694 # like `-m68040'.
8695 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8696 ;;
8697 esac
8698 ;;
8699
8700 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8701 # PIC is the default for these OSes.
8702 ;;
8703
8704 mingw* | cygwin* | pw32* | os2* | cegcc*)
8705 # This hack is so that the source file can tell whether it is being
8706 # built for inclusion in a dll (and should export symbols for example).
8707 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8708 # (--disable-auto-import) libraries
8709 lt_prog_compiler_pic='-DDLL_EXPORT'
8710 ;;
8711
8712 darwin* | rhapsody*)
8713 # PIC is the default on this platform
8714 # Common symbols not allowed in MH_DYLIB files
8715 lt_prog_compiler_pic='-fno-common'
8716 ;;
8717
8718 haiku*)
8719 # PIC is the default for Haiku.
8720 # The "-static" flag exists, but is broken.
8721 lt_prog_compiler_static=
8722 ;;
8723
8724 hpux*)
8725 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8726 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8727 # sets the default TLS model and affects inlining.
8728 case $host_cpu in
8729 hppa*64*)
8730 # +Z the default
8731 ;;
8732 *)
8733 lt_prog_compiler_pic='-fPIC'
8734 ;;
8735 esac
8736 ;;
8737
8738 interix[3-9]*)
8739 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8740 # Instead, we relocate shared libraries at runtime.
8741 ;;
8742
8743 msdosdjgpp*)
8744 # Just because we use GCC doesn't mean we suddenly get shared libraries
8745 # on systems that don't support them.
8746 lt_prog_compiler_can_build_shared=no
8747 enable_shared=no
8748 ;;
8749
8750 *nto* | *qnx*)
8751 # QNX uses GNU C++, but need to define -shared option too, otherwise
8752 # it will coredump.
8753 lt_prog_compiler_pic='-fPIC -shared'
8754 ;;
8755
8756 sysv4*MP*)
8757 if test -d /usr/nec; then
8758 lt_prog_compiler_pic=-Kconform_pic
8759 fi
8760 ;;
8761
8762 *)
8763 lt_prog_compiler_pic='-fPIC'
8764 ;;
8765 esac
8766
8767 case $cc_basename in
8768 nvcc*) # Cuda Compiler Driver 2.2
8769 lt_prog_compiler_wl='-Xlinker '
8770 lt_prog_compiler_pic='-Xcompiler -fPIC'
8771 ;;
8772 esac
8773 else
8774 # PORTME Check for flag to pass linker flags through the system compiler.
8775 case $host_os in
8776 aix*)
8777 lt_prog_compiler_wl='-Wl,'
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 now supports IA64 processor
8780 lt_prog_compiler_static='-Bstatic'
8781 else
8782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8783 fi
8784 ;;
8785
8786 mingw* | cygwin* | pw32* | os2* | cegcc*)
8787 # This hack is so that the source file can tell whether it is being
8788 # built for inclusion in a dll (and should export symbols for example).
8789 lt_prog_compiler_pic='-DDLL_EXPORT'
8790 ;;
8791
8792 hpux9* | hpux10* | hpux11*)
8793 lt_prog_compiler_wl='-Wl,'
8794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8795 # not for PA HP-UX.
8796 case $host_cpu in
8797 hppa*64*|ia64*)
8798 # +Z the default
8799 ;;
8800 *)
8801 lt_prog_compiler_pic='+Z'
8802 ;;
8803 esac
8804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8805 lt_prog_compiler_static='${wl}-a ${wl}archive'
8806 ;;
8807
8808 irix5* | irix6* | nonstopux*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # PIC (with -KPIC) is the default.
8811 lt_prog_compiler_static='-non_shared'
8812 ;;
8813
8814 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8815 case $cc_basename in
8816 # old Intel for x86_64 which still supported -KPIC.
8817 ecc*)
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-static'
8821 ;;
8822 # icc used to be incompatible with GCC.
8823 # ICC 10 doesn't accept -KPIC any more.
8824 icc* | ifort*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-fPIC'
8827 lt_prog_compiler_static='-static'
8828 ;;
8829 # Lahey Fortran 8.1.
8830 lf95*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='--shared'
8833 lt_prog_compiler_static='--static'
8834 ;;
8835 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8836 # Portland Group compilers (*not* the Pentium gcc compiler,
8837 # which looks to be a dead project)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fpic'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842 ccc*)
8843 lt_prog_compiler_wl='-Wl,'
8844 # All Alpha code is PIC.
8845 lt_prog_compiler_static='-non_shared'
8846 ;;
8847 xl* | bgxl* | bgf* | mpixl*)
8848 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-qpic'
8851 lt_prog_compiler_static='-qstaticlink'
8852 ;;
8853 *)
8854 case `$CC -V 2>&1 | sed 5q` in
8855 *Sun\ F* | *Sun*Fortran*)
8856 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 lt_prog_compiler_wl=''
8860 ;;
8861 *Sun\ C*)
8862 # Sun C 5.9
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 lt_prog_compiler_wl='-Wl,'
8866 ;;
8867 esac
8868 ;;
8869 esac
8870 ;;
8871
8872 newsos6)
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 ;;
8876
8877 *nto* | *qnx*)
8878 # QNX uses GNU C++, but need to define -shared option too, otherwise
8879 # it will coredump.
8880 lt_prog_compiler_pic='-fPIC -shared'
8881 ;;
8882
8883 osf3* | osf4* | osf5*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # All OSF/1 code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8887 ;;
8888
8889 rdos*)
8890 lt_prog_compiler_static='-non_shared'
8891 ;;
8892
8893 solaris*)
8894 lt_prog_compiler_pic='-KPIC'
8895 lt_prog_compiler_static='-Bstatic'
8896 case $cc_basename in
8897 f77* | f90* | f95*)
8898 lt_prog_compiler_wl='-Qoption ld ';;
8899 *)
8900 lt_prog_compiler_wl='-Wl,';;
8901 esac
8902 ;;
8903
8904 sunos4*)
8905 lt_prog_compiler_wl='-Qoption ld '
8906 lt_prog_compiler_pic='-PIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 ;;
8909
8910 sysv4 | sysv4.2uw2* | sysv4.3*)
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 ;;
8915
8916 sysv4*MP*)
8917 if test -d /usr/nec ;then
8918 lt_prog_compiler_pic='-Kconform_pic'
8919 lt_prog_compiler_static='-Bstatic'
8920 fi
8921 ;;
8922
8923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 unicos*)
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_can_build_shared=no
8932 ;;
8933
8934 uts4*)
8935 lt_prog_compiler_pic='-pic'
8936 lt_prog_compiler_static='-Bstatic'
8937 ;;
8938
8939 *)
8940 lt_prog_compiler_can_build_shared=no
8941 ;;
8942 esac
8943 fi
8944
8945case $host_os in
8946 # For platforms which do not support PIC, -DPIC is meaningless:
8947 *djgpp*)
8948 lt_prog_compiler_pic=
8949 ;;
8950 *)
8951 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8952 ;;
8953esac
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8955$as_echo "$lt_prog_compiler_pic" >&6; }
8956
8957
8958
8959
8960
8961
8962#
8963# Check to make sure the PIC flag actually works.
8964#
8965if test -n "$lt_prog_compiler_pic"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8967$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8968if ${lt_cv_prog_compiler_pic_works+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970else
8971 lt_cv_prog_compiler_pic_works=no
8972 ac_outfile=conftest.$ac_objext
8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8975 # Insert the option either (1) after the last *FLAGS variable, or
8976 # (2) before a word containing "conftest.", or (3) at the end.
8977 # Note that $ac_compile itself does not contain backslashes and begins
8978 # with a dollar sign (not a hyphen), so the echo should work correctly.
8979 # The option is referenced via a variable to avoid confusing sed.
8980 lt_compile=`echo "$ac_compile" | $SED \
8981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8983 -e 's:$: $lt_compiler_flag:'`
8984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8985 (eval "$lt_compile" 2>conftest.err)
8986 ac_status=$?
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 if (exit $ac_status) && test -s "$ac_outfile"; then
8990 # The compiler can only warn and ignore the option if not recognized
8991 # So say no if there are warnings other than the usual output.
8992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8995 lt_cv_prog_compiler_pic_works=yes
8996 fi
8997 fi
8998 $RM conftest*
8999
9000fi
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9002$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9003
9004if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9005 case $lt_prog_compiler_pic in
9006 "" | " "*) ;;
9007 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9008 esac
9009else
9010 lt_prog_compiler_pic=
9011 lt_prog_compiler_can_build_shared=no
9012fi
9013
9014fi
9015
9016
9017
9018
9019
9020
9021#
9022# Check to make sure the static flag actually works.
9023#
9024wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9026$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9027if ${lt_cv_prog_compiler_static_works+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029else
9030 lt_cv_prog_compiler_static_works=no
9031 save_LDFLAGS="$LDFLAGS"
9032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9035 # The linker can only warn and ignore the option if not recognized
9036 # So say no if there are warnings
9037 if test -s conftest.err; then
9038 # Append any errors to the config.log.
9039 cat conftest.err 1>&5
9040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9042 if diff conftest.exp conftest.er2 >/dev/null; then
9043 lt_cv_prog_compiler_static_works=yes
9044 fi
9045 else
9046 lt_cv_prog_compiler_static_works=yes
9047 fi
9048 fi
9049 $RM -r conftest*
9050 LDFLAGS="$save_LDFLAGS"
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9054$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9055
9056if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9057 :
9058else
9059 lt_prog_compiler_static=
9060fi
9061
9062
9063
9064
9065
9066
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9069$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9070if ${lt_cv_prog_compiler_c_o+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072else
9073 lt_cv_prog_compiler_c_o=no
9074 $RM -r conftest 2>/dev/null
9075 mkdir conftest
9076 cd conftest
9077 mkdir out
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079
9080 lt_compiler_flag="-o out/conftest2.$ac_objext"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>out/conftest.err)
9091 ac_status=$?
9092 cat out/conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9095 then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_c_o=yes
9102 fi
9103 fi
9104 chmod u+w . 2>&5
9105 $RM conftest*
9106 # SGI C++ compiler will create directory out/ii_files/ for
9107 # template instantiation
9108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9109 $RM out/* && rmdir out
9110 cd ..
9111 $RM -r conftest
9112 $RM conftest*
9113
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9116$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9117
9118
9119
9120
9121
9122
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9124$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9125if ${lt_cv_prog_compiler_c_o+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127else
9128 lt_cv_prog_compiler_c_o=no
9129 $RM -r conftest 2>/dev/null
9130 mkdir conftest
9131 cd conftest
9132 mkdir out
9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134
9135 lt_compiler_flag="-o out/conftest2.$ac_objext"
9136 # Insert the option either (1) after the last *FLAGS variable, or
9137 # (2) before a word containing "conftest.", or (3) at the end.
9138 # Note that $ac_compile itself does not contain backslashes and begins
9139 # with a dollar sign (not a hyphen), so the echo should work correctly.
9140 lt_compile=`echo "$ac_compile" | $SED \
9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9143 -e 's:$: $lt_compiler_flag:'`
9144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9145 (eval "$lt_compile" 2>out/conftest.err)
9146 ac_status=$?
9147 cat out/conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9150 then
9151 # The compiler can only warn and ignore the option if not recognized
9152 # So say no if there are warnings
9153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9154 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9155 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9156 lt_cv_prog_compiler_c_o=yes
9157 fi
9158 fi
9159 chmod u+w . 2>&5
9160 $RM conftest*
9161 # SGI C++ compiler will create directory out/ii_files/ for
9162 # template instantiation
9163 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9164 $RM out/* && rmdir out
9165 cd ..
9166 $RM -r conftest
9167 $RM conftest*
9168
9169fi
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9171$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9172
9173
9174
9175
9176hard_links="nottested"
9177if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9178 # do not overwrite the value of need_locks provided by the user
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9180$as_echo_n "checking if we can lock with hard links... " >&6; }
9181 hard_links=yes
9182 $RM conftest*
9183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9184 touch conftest.a
9185 ln conftest.a conftest.b 2>&5 || hard_links=no
9186 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9188$as_echo "$hard_links" >&6; }
9189 if test "$hard_links" = no; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9191$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9192 need_locks=warn
9193 fi
9194else
9195 need_locks=no
9196fi
9197
9198
9199
9200
9201
9202
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9204$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9205
9206 runpath_var=
9207 allow_undefined_flag=
9208 always_export_symbols=no
9209 archive_cmds=
9210 archive_expsym_cmds=
9211 compiler_needs_object=no
9212 enable_shared_with_static_runtimes=no
9213 export_dynamic_flag_spec=
9214 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9215 hardcode_automatic=no
9216 hardcode_direct=no
9217 hardcode_direct_absolute=no
9218 hardcode_libdir_flag_spec=
9219 hardcode_libdir_flag_spec_ld=
9220 hardcode_libdir_separator=
9221 hardcode_minus_L=no
9222 hardcode_shlibpath_var=unsupported
9223 inherit_rpath=no
9224 link_all_deplibs=unknown
9225 module_cmds=
9226 module_expsym_cmds=
9227 old_archive_from_new_cmds=
9228 old_archive_from_expsyms_cmds=
9229 thread_safe_flag_spec=
9230 whole_archive_flag_spec=
9231 # include_expsyms should be a list of space-separated symbols to be *always*
9232 # included in the symbol list
9233 include_expsyms=
9234 # exclude_expsyms can be an extended regexp of symbols to exclude
9235 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9236 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9237 # as well as any symbol that contains `d'.
9238 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9239 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9240 # platforms (ab)use it in PIC code, but their linkers get confused if
9241 # the symbol is explicitly referenced. Since portable code cannot
9242 # rely on this symbol name, it's probably fine to never include it in
9243 # preloaded symbol tables.
9244 # Exclude shared library initialization/finalization symbols.
9245 extract_expsyms_cmds=
9246
9247 case $host_os in
9248 cygwin* | mingw* | pw32* | cegcc*)
9249 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9250 # When not using gcc, we currently assume that we are using
9251 # Microsoft Visual C++.
9252 if test "$GCC" != yes; then
9253 with_gnu_ld=no
9254 fi
9255 ;;
9256 interix*)
9257 # we just hope/assume this is gcc and not c89 (= MSVC++)
9258 with_gnu_ld=yes
9259 ;;
9260 openbsd*)
9261 with_gnu_ld=no
9262 ;;
9263 esac
9264
9265 ld_shlibs=yes
9266
9267 # On some targets, GNU ld is compatible enough with the native linker
9268 # that we're better off using the native interface for both.
9269 lt_use_gnu_ld_interface=no
9270 if test "$with_gnu_ld" = yes; then
9271 case $host_os in
9272 aix*)
9273 # The AIX port of GNU ld has always aspired to compatibility
9274 # with the native linker. However, as the warning in the GNU ld
9275 # block says, versions before 2.19.5* couldn't really create working
9276 # shared libraries, regardless of the interface used.
9277 case `$LD -v 2>&1` in
9278 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9279 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9280 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9281 *)
9282 lt_use_gnu_ld_interface=yes
9283 ;;
9284 esac
9285 ;;
9286 *)
9287 lt_use_gnu_ld_interface=yes
9288 ;;
9289 esac
9290 fi
9291
9292 if test "$lt_use_gnu_ld_interface" = yes; then
9293 # If archive_cmds runs LD, not CC, wlarc should be empty
9294 wlarc='${wl}'
9295
9296 # Set some defaults for GNU ld with shared library support. These
9297 # are reset later if shared libraries are not supported. Putting them
9298 # here allows them to be overridden if necessary.
9299 runpath_var=LD_RUN_PATH
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 export_dynamic_flag_spec='${wl}--export-dynamic'
9302 # ancient GNU ld didn't support --whole-archive et. al.
9303 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9304 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9305 else
9306 whole_archive_flag_spec=
9307 fi
9308 supports_anon_versioning=no
9309 case `$LD -v 2>&1` in
9310 *GNU\ gold*) supports_anon_versioning=yes ;;
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9314 *\ 2.11.*) ;; # other 2.11 versions
9315 *) supports_anon_versioning=yes ;;
9316 esac
9317
9318 # See if GNU ld supports shared libraries.
9319 case $host_os in
9320 aix[3-9]*)
9321 # On AIX/PPC, the GNU linker is very broken
9322 if test "$host_cpu" != ia64; then
9323 ld_shlibs=no
9324 cat <<_LT_EOF 1>&2
9325
9326*** Warning: the GNU linker, at least up to release 2.19, is reported
9327*** to be unable to reliably create shared libraries on AIX.
9328*** Therefore, libtool is disabling shared libraries support. If you
9329*** really care for shared libraries, you may want to install binutils
9330*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9331*** You will then need to restart the configuration process.
9332
9333_LT_EOF
9334 fi
9335 ;;
9336
9337 amigaos*)
9338 case $host_cpu in
9339 powerpc)
9340 # see comment about AmigaOS4 .so support
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds=''
9343 ;;
9344 m68k)
9345 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)'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9348 ;;
9349 esac
9350 ;;
9351
9352 beos*)
9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354 allow_undefined_flag=unsupported
9355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9356 # support --undefined. This deserves some investigation. FIXME
9357 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 else
9359 ld_shlibs=no
9360 fi
9361 ;;
9362
9363 cygwin* | mingw* | pw32* | cegcc*)
9364 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9365 # as there is no search path for DLLs.
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 export_dynamic_flag_spec='${wl}--export-all-symbols'
9368 allow_undefined_flag=unsupported
9369 always_export_symbols=no
9370 enable_shared_with_static_runtimes=yes
9371 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9372
9373 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375 # If the export-symbols file already is a .def file (1st line
9376 # is EXPORTS), use it as is; otherwise, prepend...
9377 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9378 cp $export_symbols $output_objdir/$soname.def;
9379 else
9380 echo EXPORTS > $output_objdir/$soname.def;
9381 cat $export_symbols >> $output_objdir/$soname.def;
9382 fi~
9383 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 else
9385 ld_shlibs=no
9386 fi
9387 ;;
9388
9389 haiku*)
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 link_all_deplibs=yes
9392 ;;
9393
9394 interix[3-9]*)
9395 hardcode_direct=no
9396 hardcode_shlibpath_var=no
9397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9398 export_dynamic_flag_spec='${wl}-E'
9399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9400 # Instead, shared libraries are loaded at an image base (0x10000000 by
9401 # default) and relocated if they conflict, which is a slow very memory
9402 # consuming and fragmenting process. To avoid this, we pick a random,
9403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9406 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'
9407 ;;
9408
9409 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9410 tmp_diet=no
9411 if test "$host_os" = linux-dietlibc; then
9412 case $cc_basename in
9413 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9414 esac
9415 fi
9416 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9417 && test "$tmp_diet" = no
9418 then
9419 tmp_addflag=' $pic_flag'
9420 tmp_sharedflag='-shared'
9421 case $cc_basename,$host_cpu in
9422 pgcc*) # Portland Group C compiler
9423 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'
9424 tmp_addflag=' $pic_flag'
9425 ;;
9426 pgf77* | pgf90* | pgf95* | pgfortran*)
9427 # Portland Group f77 and f90 compilers
9428 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'
9429 tmp_addflag=' $pic_flag -Mnomain' ;;
9430 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9431 tmp_addflag=' -i_dynamic' ;;
9432 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9433 tmp_addflag=' -i_dynamic -nofor_main' ;;
9434 ifc* | ifort*) # Intel Fortran compiler
9435 tmp_addflag=' -nofor_main' ;;
9436 lf95*) # Lahey Fortran 8.1
9437 whole_archive_flag_spec=
9438 tmp_sharedflag='--shared' ;;
9439 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9440 tmp_sharedflag='-qmkshrobj'
9441 tmp_addflag= ;;
9442 nvcc*) # Cuda Compiler Driver 2.2
9443 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'
9444 compiler_needs_object=yes
9445 ;;
9446 esac
9447 case `$CC -V 2>&1 | sed 5q` in
9448 *Sun\ C*) # Sun C 5.9
9449 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'
9450 compiler_needs_object=yes
9451 tmp_sharedflag='-G' ;;
9452 *Sun\ F*) # Sun Fortran 8.3
9453 tmp_sharedflag='-G' ;;
9454 esac
9455 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456
9457 if test "x$supports_anon_versioning" = xyes; then
9458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460 echo "local: *; };" >> $output_objdir/$libname.ver~
9461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9462 fi
9463
9464 case $cc_basename in
9465 xlf* | bgf* | bgxlf* | mpixlf*)
9466 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9467 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9468 hardcode_libdir_flag_spec=
9469 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9470 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9471 if test "x$supports_anon_versioning" = xyes; then
9472 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474 echo "local: *; };" >> $output_objdir/$libname.ver~
9475 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9476 fi
9477 ;;
9478 esac
9479 else
9480 ld_shlibs=no
9481 fi
9482 ;;
9483
9484 netbsd*)
9485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9486 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9487 wlarc=
9488 else
9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491 fi
9492 ;;
9493
9494 solaris*)
9495 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9496 ld_shlibs=no
9497 cat <<_LT_EOF 1>&2
9498
9499*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9500*** create shared libraries on Solaris systems. Therefore, libtool
9501*** is disabling shared libraries support. We urge you to upgrade GNU
9502*** binutils to release 2.9.1 or newer. Another option is to modify
9503*** your PATH or compiler configuration so that the native linker is
9504*** used, and then restart.
9505
9506_LT_EOF
9507 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510 else
9511 ld_shlibs=no
9512 fi
9513 ;;
9514
9515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9516 case `$LD -v 2>&1` in
9517 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9518 ld_shlibs=no
9519 cat <<_LT_EOF 1>&2
9520
9521*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9522*** reliably create shared libraries on SCO systems. Therefore, libtool
9523*** is disabling shared libraries support. We urge you to upgrade GNU
9524*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9525*** your PATH or compiler configuration so that the native linker is
9526*** used, and then restart.
9527
9528_LT_EOF
9529 ;;
9530 *)
9531 # For security reasons, it is highly recommended that you always
9532 # use absolute paths for naming shared libraries, and exclude the
9533 # DT_RUNPATH tag from executables and libraries. But doing so
9534 # requires that you compile everything twice, which is a pain.
9535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9539 else
9540 ld_shlibs=no
9541 fi
9542 ;;
9543 esac
9544 ;;
9545
9546 sunos4*)
9547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9548 wlarc=
9549 hardcode_direct=yes
9550 hardcode_shlibpath_var=no
9551 ;;
9552
9553 *)
9554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561 esac
9562
9563 if test "$ld_shlibs" = no; then
9564 runpath_var=
9565 hardcode_libdir_flag_spec=
9566 export_dynamic_flag_spec=
9567 whole_archive_flag_spec=
9568 fi
9569 else
9570 # PORTME fill in a description of your system's linker (not GNU ld)
9571 case $host_os in
9572 aix3*)
9573 allow_undefined_flag=unsupported
9574 always_export_symbols=yes
9575 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'
9576 # Note: this linker hardcodes the directories in LIBPATH if there
9577 # are no directories specified by -L.
9578 hardcode_minus_L=yes
9579 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9580 # Neither direct hardcoding nor static linking is supported with a
9581 # broken collect2.
9582 hardcode_direct=unsupported
9583 fi
9584 ;;
9585
9586 aix[4-9]*)
9587 if test "$host_cpu" = ia64; then
9588 # On IA64, the linker does run time linking by default, so we don't
9589 # have to do anything special.
9590 aix_use_runtimelinking=no
9591 exp_sym_flag='-Bexport'
9592 no_entry_flag=""
9593 else
9594 # If we're using GNU nm, then we don't want the "-C" option.
9595 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9596 # Also, AIX nm treats weak defined symbols like other global
9597 # defined symbols, whereas GNU nm marks them as "W".
9598 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9599 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'
9600 else
9601 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'
9602 fi
9603 aix_use_runtimelinking=no
9604
9605 # Test if we are trying to use run time linking or normal
9606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9607 # need to do runtime linking.
9608 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9609 for ld_flag in $LDFLAGS; do
9610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9611 aix_use_runtimelinking=yes
9612 break
9613 fi
9614 done
9615 ;;
9616 esac
9617
9618 exp_sym_flag='-bexport'
9619 no_entry_flag='-bnoentry'
9620 fi
9621
9622 # When large executables or shared objects are built, AIX ld can
9623 # have problems creating the table of contents. If linking a library
9624 # or program results in "error TOC overflow" add -mminimal-toc to
9625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9627
9628 archive_cmds=''
9629 hardcode_direct=yes
9630 hardcode_direct_absolute=yes
9631 hardcode_libdir_separator=':'
9632 link_all_deplibs=yes
9633 file_list_spec='${wl}-f,'
9634
9635 if test "$GCC" = yes; then
9636 case $host_os in aix4.[012]|aix4.[012].*)
9637 # We only want to do this on AIX 4.2 and lower, the check
9638 # below for broken collect2 doesn't work under 4.3+
9639 collect2name=`${CC} -print-prog-name=collect2`
9640 if test -f "$collect2name" &&
9641 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9642 then
9643 # We have reworked collect2
9644 :
9645 else
9646 # We have old collect2
9647 hardcode_direct=unsupported
9648 # It fails to find uninstalled libraries when the uninstalled
9649 # path is not listed in the libpath. Setting hardcode_minus_L
9650 # to unsupported forces relinking
9651 hardcode_minus_L=yes
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_libdir_separator=
9654 fi
9655 ;;
9656 esac
9657 shared_flag='-shared'
9658 if test "$aix_use_runtimelinking" = yes; then
9659 shared_flag="$shared_flag "'${wl}-G'
9660 fi
9661 else
9662 # not using gcc
9663 if test "$host_cpu" = ia64; then
9664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9665 # chokes on -Wl,-G. The following line is correct:
9666 shared_flag='-G'
9667 else
9668 if test "$aix_use_runtimelinking" = yes; then
9669 shared_flag='${wl}-G'
9670 else
9671 shared_flag='${wl}-bM:SRE'
9672 fi
9673 fi
9674 fi
9675
9676 export_dynamic_flag_spec='${wl}-bexpall'
9677 # It seems that -bexpall does not export symbols beginning with
9678 # underscore (_), so it is better to generate a list of symbols to export.
9679 always_export_symbols=yes
9680 if test "$aix_use_runtimelinking" = yes; then
9681 # Warning - without using the other runtime loading flags (-brtl),
9682 # -berok will link without error, but may produce a broken library.
9683 allow_undefined_flag='-berok'
9684 # Determine the default libpath from the value encoded in an
9685 # empty executable.
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h. */
9688
9689int
9690main ()
9691{
9692
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698
9699lt_aix_libpath_sed='
9700 /Import File Strings/,/^$/ {
9701 /^0/ {
9702 s/^0 *\(.*\)$/\1/
9703 p
9704 }
9705 }'
9706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707# Check for a 64-bit object if we didn't find anything.
9708if test -z "$aix_libpath"; then
9709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710fi
9711fi
9712rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9715
9716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9717 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"
9718 else
9719 if test "$host_cpu" = ia64; then
9720 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9721 allow_undefined_flag="-z nodefs"
9722 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"
9723 else
9724 # Determine the default libpath from the value encoded in an
9725 # empty executable.
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727/* end confdefs.h. */
9728
9729int
9730main ()
9731{
9732
9733 ;
9734 return 0;
9735}
9736_ACEOF
9737if ac_fn_c_try_link "$LINENO"; then :
9738
9739lt_aix_libpath_sed='
9740 /Import File Strings/,/^$/ {
9741 /^0/ {
9742 s/^0 *\(.*\)$/\1/
9743 p
9744 }
9745 }'
9746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747# Check for a 64-bit object if we didn't find anything.
9748if test -z "$aix_libpath"; then
9749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750fi
9751fi
9752rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9755
9756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9757 # Warning - without using the other run time loading flags,
9758 # -berok will link without error, but may produce a broken library.
9759 no_undefined_flag=' ${wl}-bernotok'
9760 allow_undefined_flag=' ${wl}-berok'
9761 if test "$with_gnu_ld" = yes; then
9762 # We only use this code for GNU lds that support --whole-archive.
9763 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9764 else
9765 # Exported symbols can be pulled into shared objects from archives
9766 whole_archive_flag_spec='$convenience'
9767 fi
9768 archive_cmds_need_lc=yes
9769 # This is similar to how AIX traditionally builds its shared libraries.
9770 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'
9771 fi
9772 fi
9773 ;;
9774
9775 amigaos*)
9776 case $host_cpu in
9777 powerpc)
9778 # see comment about AmigaOS4 .so support
9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 archive_expsym_cmds=''
9781 ;;
9782 m68k)
9783 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)'
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 hardcode_minus_L=yes
9786 ;;
9787 esac
9788 ;;
9789
9790 bsdi[45]*)
9791 export_dynamic_flag_spec=-rdynamic
9792 ;;
9793
9794 cygwin* | mingw* | pw32* | cegcc*)
9795 # When not using gcc, we currently assume that we are using
9796 # Microsoft Visual C++.
9797 # hardcode_libdir_flag_spec is actually meaningless, as there is
9798 # no search path for DLLs.
9799 hardcode_libdir_flag_spec=' '
9800 allow_undefined_flag=unsupported
9801 # Tell ltmain to make .lib files, not .a files.
9802 libext=lib
9803 # Tell ltmain to make .dll files, not .so files.
9804 shrext_cmds=".dll"
9805 # FIXME: Setting linknames here is a bad hack.
9806 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9807 # The linker will automatically build a .lib file if we build a DLL.
9808 old_archive_from_new_cmds='true'
9809 # FIXME: Should let the user specify the lib program.
9810 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9811 fix_srcfile_path='`cygpath -w "$srcfile"`'
9812 enable_shared_with_static_runtimes=yes
9813 ;;
9814
9815 darwin* | rhapsody*)
9816
9817
6a6d3817
IS
9818
9819 # Publish an arg to allow the user to select that Darwin host (and target)
9820 # libraries should be given install-names like @rpath/libfoo.dylib. This
9821 # requires that the user of the library then adds an 'rpath' to the DSO that
9822 # needs access.
9823 # NOTE: there are defaults below, for systems that support rpaths. The person
9824 # configuring can override the defaults for any system version that supports
9825 # them - they are, however, forced off for system versions without support.
9826 # Check whether --enable-darwin-at-rpath was given.
9827if test "${enable_darwin_at_rpath+set}" = set; then :
9828 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9829 # This is not supported before macOS 10.5 / Darwin9.
9830 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9831 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9833$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9834 enable_darwin_at_rpath=no
9835 ;;
9836 esac
9837 fi
9838else
9839 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9840 # As above, before 10.5 / Darwin9 this does not work.
9841 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9842 enable_darwin_at_rpath=no
9843 ;;
9844
9845 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9846 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9847 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9848 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9850$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9851 enable_darwin_at_rpath=yes
9852 ;;
9853 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9854 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9855
9856 esac
9857
9858fi
9859
9860
5be7b669
L
9861 archive_cmds_need_lc=no
9862 hardcode_direct=no
9863 hardcode_automatic=yes
9864 hardcode_shlibpath_var=unsupported
9865 if test "$lt_cv_ld_force_load" = "yes"; then
9866 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\"`'
9867 else
9868 whole_archive_flag_spec=''
9869 fi
9870 link_all_deplibs=yes
9871 allow_undefined_flag="$_lt_dar_allow_undefined"
9872 case $cc_basename in
9873 ifort*) _lt_dar_can_shared=yes ;;
9874 *) _lt_dar_can_shared=$GCC ;;
9875 esac
9876 if test "$_lt_dar_can_shared" = "yes"; then
9877 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
9878 _lt_install_name='\$rpath/\$soname'
9879 if test "x$enable_darwin_at_rpath" = "xyes"; then
9880 _lt_install_name='@rpath/\$soname'
9881 fi
9882 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
5be7b669 9883 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 9884 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
5be7b669
L
9885 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}"
9886
9887 else
9888 ld_shlibs=no
9889 fi
9890
9891 ;;
9892
9893 dgux*)
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9900 # support. Future versions do this automatically, but an explicit c++rt0.o
9901 # does not break anything, and helps significantly (at the cost of a little
9902 # extra space).
9903 freebsd2.2*)
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9905 hardcode_libdir_flag_spec='-R$libdir'
9906 hardcode_direct=yes
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9911 freebsd2.*)
9912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_direct=yes
9914 hardcode_minus_L=yes
9915 hardcode_shlibpath_var=no
9916 ;;
9917
9918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9919 freebsd* | dragonfly*)
9920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9921 hardcode_libdir_flag_spec='-R$libdir'
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 ;;
9925
9926 hpux9*)
9927 if test "$GCC" = yes; then
9928 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'
9929 else
9930 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'
9931 fi
9932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9933 hardcode_libdir_separator=:
9934 hardcode_direct=yes
9935
9936 # hardcode_minus_L: Not really in the search PATH,
9937 # but as the default location of the library.
9938 hardcode_minus_L=yes
9939 export_dynamic_flag_spec='${wl}-E'
9940 ;;
9941
9942 hpux10*)
9943 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9947 fi
9948 if test "$with_gnu_ld" = no; then
9949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9950 hardcode_libdir_flag_spec_ld='+b $libdir'
9951 hardcode_libdir_separator=:
9952 hardcode_direct=yes
9953 hardcode_direct_absolute=yes
9954 export_dynamic_flag_spec='${wl}-E'
9955 # hardcode_minus_L: Not really in the search PATH,
9956 # but as the default location of the library.
9957 hardcode_minus_L=yes
9958 fi
9959 ;;
9960
9961 hpux11*)
9962 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9963 case $host_cpu in
9964 hppa*64*)
9965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9966 ;;
9967 ia64*)
9968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969 ;;
9970 *)
9971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972 ;;
9973 esac
9974 else
9975 case $host_cpu in
9976 hppa*64*)
9977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978 ;;
9979 ia64*)
9980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9981 ;;
9982 *)
9983
9984 # Older versions of the 11.00 compiler do not understand -b yet
9985 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9987$as_echo_n "checking if $CC understands -b... " >&6; }
9988if ${lt_cv_prog_compiler__b+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990else
9991 lt_cv_prog_compiler__b=no
9992 save_LDFLAGS="$LDFLAGS"
9993 LDFLAGS="$LDFLAGS -b"
9994 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9996 # The linker can only warn and ignore the option if not recognized
9997 # So say no if there are warnings
9998 if test -s conftest.err; then
9999 # Append any errors to the config.log.
10000 cat conftest.err 1>&5
10001 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10003 if diff conftest.exp conftest.er2 >/dev/null; then
10004 lt_cv_prog_compiler__b=yes
10005 fi
10006 else
10007 lt_cv_prog_compiler__b=yes
10008 fi
10009 fi
10010 $RM -r conftest*
10011 LDFLAGS="$save_LDFLAGS"
10012
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10015$as_echo "$lt_cv_prog_compiler__b" >&6; }
10016
10017if test x"$lt_cv_prog_compiler__b" = xyes; then
10018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019else
10020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10021fi
10022
10023 ;;
10024 esac
10025 fi
10026 if test "$with_gnu_ld" = no; then
10027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10028 hardcode_libdir_separator=:
10029
10030 case $host_cpu in
10031 hppa*64*|ia64*)
10032 hardcode_direct=no
10033 hardcode_shlibpath_var=no
10034 ;;
10035 *)
10036 hardcode_direct=yes
10037 hardcode_direct_absolute=yes
10038 export_dynamic_flag_spec='${wl}-E'
10039
10040 # hardcode_minus_L: Not really in the search PATH,
10041 # but as the default location of the library.
10042 hardcode_minus_L=yes
10043 ;;
10044 esac
10045 fi
10046 ;;
10047
10048 irix5* | irix6* | nonstopux*)
10049 if test "$GCC" = yes; then
10050 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'
10051 # Try to use the -exported_symbol ld option, if it does not
10052 # work, assume that -exports_file does not work either and
10053 # implicitly export all symbols.
10054 save_LDFLAGS="$LDFLAGS"
10055 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h. */
10058int foo(void) {}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"; then :
10061 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'
10062
10063fi
10064rm -f core conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 LDFLAGS="$save_LDFLAGS"
10067 else
10068 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'
10069 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'
10070 fi
10071 archive_cmds_need_lc='no'
10072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073 hardcode_libdir_separator=:
10074 inherit_rpath=yes
10075 link_all_deplibs=yes
10076 ;;
10077
10078 netbsd*)
10079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10081 else
10082 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10083 fi
10084 hardcode_libdir_flag_spec='-R$libdir'
10085 hardcode_direct=yes
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 newsos6)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct=yes
10092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093 hardcode_libdir_separator=:
10094 hardcode_shlibpath_var=no
10095 ;;
10096
10097 *nto* | *qnx*)
10098 ;;
10099
10100 openbsd*)
10101 if test -f /usr/libexec/ld.so; then
10102 hardcode_direct=yes
10103 hardcode_shlibpath_var=no
10104 hardcode_direct_absolute=yes
10105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10109 export_dynamic_flag_spec='${wl}-E'
10110 else
10111 case $host_os in
10112 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_libdir_flag_spec='-R$libdir'
10115 ;;
10116 *)
10117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10119 ;;
10120 esac
10121 fi
10122 else
10123 ld_shlibs=no
10124 fi
10125 ;;
10126
10127 os2*)
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_minus_L=yes
10130 allow_undefined_flag=unsupported
10131 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'
10132 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10133 ;;
10134
10135 osf3*)
10136 if test "$GCC" = yes; then
10137 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10138 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'
10139 else
10140 allow_undefined_flag=' -expect_unresolved \*'
10141 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'
10142 fi
10143 archive_cmds_need_lc='no'
10144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145 hardcode_libdir_separator=:
10146 ;;
10147
10148 osf4* | osf5*) # as osf3* with the addition of -msym flag
10149 if test "$GCC" = yes; then
10150 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10151 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'
10152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10153 else
10154 allow_undefined_flag=' -expect_unresolved \*'
10155 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'
10156 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~
10157 $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'
10158
10159 # Both c and cxx compiler support -rpath directly
10160 hardcode_libdir_flag_spec='-rpath $libdir'
10161 fi
10162 archive_cmds_need_lc='no'
10163 hardcode_libdir_separator=:
10164 ;;
10165
10166 solaris*)
10167 no_undefined_flag=' -z defs'
10168 if test "$GCC" = yes; then
10169 wlarc='${wl}'
10170 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10172 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10173 else
10174 case `$CC -V 2>&1` in
10175 *"Compilers 5.0"*)
10176 wlarc=''
10177 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10180 ;;
10181 *)
10182 wlarc='${wl}'
10183 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10185 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10186 ;;
10187 esac
10188 fi
10189 hardcode_libdir_flag_spec='-R$libdir'
10190 hardcode_shlibpath_var=no
10191 case $host_os in
10192 solaris2.[0-5] | solaris2.[0-5].*) ;;
10193 *)
10194 # The compiler driver will combine and reorder linker options,
10195 # but understands `-z linker_flag'. GCC discards it without `$wl',
10196 # but is careful enough not to reorder.
10197 # Supported since Solaris 2.6 (maybe 2.5.1?)
10198 if test "$GCC" = yes; then
10199 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10200 else
10201 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10202 fi
10203 ;;
10204 esac
10205 link_all_deplibs=yes
10206 ;;
10207
10208 sunos4*)
10209 if test "x$host_vendor" = xsequent; then
10210 # Use $CC to link under sequent, because it throws in some extra .o
10211 # files that make .init and .fini sections work.
10212 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10213 else
10214 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10215 fi
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_direct=yes
10218 hardcode_minus_L=yes
10219 hardcode_shlibpath_var=no
10220 ;;
10221
10222 sysv4)
10223 case $host_vendor in
10224 sni)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=yes # is this really true???
10227 ;;
10228 siemens)
10229 ## LD is ld it makes a PLAMLIB
10230 ## CC just makes a GrossModule.
10231 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10232 reload_cmds='$CC -r -o $output$reload_objs'
10233 hardcode_direct=no
10234 ;;
10235 motorola)
10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10238 ;;
10239 esac
10240 runpath_var='LD_RUN_PATH'
10241 hardcode_shlibpath_var=no
10242 ;;
10243
10244 sysv4.3*)
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_shlibpath_var=no
10247 export_dynamic_flag_spec='-Bexport'
10248 ;;
10249
10250 sysv4*MP*)
10251 if test -d /usr/nec; then
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_shlibpath_var=no
10254 runpath_var=LD_RUN_PATH
10255 hardcode_runpath_var=yes
10256 ld_shlibs=yes
10257 fi
10258 ;;
10259
10260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10261 no_undefined_flag='${wl}-z,text'
10262 archive_cmds_need_lc=no
10263 hardcode_shlibpath_var=no
10264 runpath_var='LD_RUN_PATH'
10265
10266 if test "$GCC" = yes; then
10267 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 else
10270 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 fi
10273 ;;
10274
10275 sysv5* | sco3.2v5* | sco5v6*)
10276 # Note: We can NOT use -z defs as we might desire, because we do not
10277 # link with -lc, and that would cause any symbols used from libc to
10278 # always be unresolved, which means just about no library would
10279 # ever link correctly. If we're not using GNU ld we use -z text
10280 # though, which does catch some bad symbols but isn't as heavy-handed
10281 # as -z defs.
10282 no_undefined_flag='${wl}-z,text'
10283 allow_undefined_flag='${wl}-z,nodefs'
10284 archive_cmds_need_lc=no
10285 hardcode_shlibpath_var=no
10286 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10287 hardcode_libdir_separator=':'
10288 link_all_deplibs=yes
10289 export_dynamic_flag_spec='${wl}-Bexport'
10290 runpath_var='LD_RUN_PATH'
10291
10292 if test "$GCC" = yes; then
10293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 else
10296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 fi
10299 ;;
10300
10301 uts4*)
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_libdir_flag_spec='-L$libdir'
10304 hardcode_shlibpath_var=no
10305 ;;
10306
10307 *)
10308 ld_shlibs=no
10309 ;;
10310 esac
10311
10312 if test x$host_vendor = xsni; then
10313 case $host in
10314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10315 export_dynamic_flag_spec='${wl}-Blargedynsym'
10316 ;;
10317 esac
10318 fi
10319 fi
10320
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10322$as_echo "$ld_shlibs" >&6; }
10323test "$ld_shlibs" = no && can_build_shared=no
10324
10325with_gnu_ld=$with_gnu_ld
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341#
10342# Do we need to explicitly link libc?
10343#
10344case "x$archive_cmds_need_lc" in
10345x|xyes)
10346 # Assume -lc should be added
10347 archive_cmds_need_lc=yes
10348
10349 if test "$enable_shared" = yes && test "$GCC" = yes; then
10350 case $archive_cmds in
10351 *'~'*)
10352 # FIXME: we may have to deal with multi-command sequences.
10353 ;;
10354 '$CC '*)
10355 # Test whether the compiler implicitly links with -lc since on some
10356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10357 # to ld, don't add -lc before -lgcc.
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10359$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10360if ${lt_cv_archive_cmds_need_lc+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362else
10363 $RM conftest*
10364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365
10366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10367 (eval $ac_compile) 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370 test $ac_status = 0; } 2>conftest.err; then
10371 soname=conftest
10372 lib=conftest
10373 libobjs=conftest.$ac_objext
10374 deplibs=
10375 wl=$lt_prog_compiler_wl
10376 pic_flag=$lt_prog_compiler_pic
10377 compiler_flags=-v
10378 linker_flags=-v
10379 verstring=
10380 output_objdir=.
10381 libname=conftest
10382 lt_save_allow_undefined_flag=$allow_undefined_flag
10383 allow_undefined_flag=
10384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10385 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10386 ac_status=$?
10387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10388 test $ac_status = 0; }
10389 then
10390 lt_cv_archive_cmds_need_lc=no
10391 else
10392 lt_cv_archive_cmds_need_lc=yes
10393 fi
10394 allow_undefined_flag=$lt_save_allow_undefined_flag
10395 else
10396 cat conftest.err 1>&5
10397 fi
10398 $RM conftest*
10399
10400fi
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10402$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10403 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10404 ;;
10405 esac
10406 fi
10407 ;;
10408esac
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10567$as_echo_n "checking dynamic linker characteristics... " >&6; }
10568
10569if test "$GCC" = yes; then
10570 case $host_os in
10571 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10572 *) lt_awk_arg="/^libraries:/" ;;
10573 esac
10574 case $host_os in
10575 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10576 *) lt_sed_strip_eq="s,=/,/,g" ;;
10577 esac
10578 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10579 case $lt_search_path_spec in
10580 *\;*)
10581 # if the path contains ";" then we assume it to be the separator
10582 # otherwise default to the standard path separator (i.e. ":") - it is
10583 # assumed that no part of a normal pathname contains ";" but that should
10584 # okay in the real world where ";" in dirpaths is itself problematic.
10585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10586 ;;
10587 *)
10588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10589 ;;
10590 esac
10591 # Ok, now we have the path, separated by spaces, we can step through it
10592 # and add multilib dir if necessary.
10593 lt_tmp_lt_search_path_spec=
10594 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10595 for lt_sys_path in $lt_search_path_spec; do
10596 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10598 else
10599 test -d "$lt_sys_path" && \
10600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10601 fi
10602 done
10603 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10604BEGIN {RS=" "; FS="/|\n";} {
10605 lt_foo="";
10606 lt_count=0;
10607 for (lt_i = NF; lt_i > 0; lt_i--) {
10608 if ($lt_i != "" && $lt_i != ".") {
10609 if ($lt_i == "..") {
10610 lt_count++;
10611 } else {
10612 if (lt_count == 0) {
10613 lt_foo="/" $lt_i lt_foo;
10614 } else {
10615 lt_count--;
10616 }
10617 }
10618 }
10619 }
10620 if (lt_foo != "") { lt_freq[lt_foo]++; }
10621 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10622}'`
10623 # AWK program above erroneously prepends '/' to C:/dos/paths
10624 # for these hosts.
10625 case $host_os in
10626 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10627 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10628 esac
10629 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10630else
10631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10632fi
10633library_names_spec=
10634libname_spec='lib$name'
10635soname_spec=
10636shrext_cmds=".so"
10637postinstall_cmds=
10638postuninstall_cmds=
10639finish_cmds=
10640finish_eval=
10641shlibpath_var=
10642shlibpath_overrides_runpath=unknown
10643version_type=none
10644dynamic_linker="$host_os ld.so"
10645sys_lib_dlsearch_path_spec="/lib /usr/lib"
10646need_lib_prefix=unknown
10647hardcode_into_libs=no
10648
10649# when you set need_version to no, make sure it does not cause -set_version
10650# flags to be left without arguments
10651need_version=unknown
10652
10653case $host_os in
10654aix3*)
10655 version_type=linux
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10657 shlibpath_var=LIBPATH
10658
10659 # AIX 3 has no versioning support, so we append a major version to the name.
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 ;;
10662
10663aix[4-9]*)
10664 version_type=linux
10665 need_lib_prefix=no
10666 need_version=no
10667 hardcode_into_libs=yes
10668 if test "$host_cpu" = ia64; then
10669 # AIX 5 supports IA64
10670 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 else
10673 # With GCC up to 2.95.x, collect2 would create an import file
10674 # for dependence libraries. The import file would start with
10675 # the line `#! .'. This would cause the generated library to
10676 # depend on `.', always an invalid library. This was fixed in
10677 # development snapshots of GCC prior to 3.0.
10678 case $host_os in
10679 aix4 | aix4.[01] | aix4.[01].*)
10680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10681 echo ' yes '
10682 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10683 :
10684 else
10685 can_build_shared=no
10686 fi
10687 ;;
10688 esac
10689 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10690 # soname into executable. Probably we can add versioning support to
10691 # collect2, so additional links can be useful in future.
10692 if test "$aix_use_runtimelinking" = yes; then
10693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10694 # instead of lib<name>.a to let people know that these are not
10695 # typical AIX shared libraries.
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 else
10698 # We preserve .a as extension for shared libraries through AIX4.2
10699 # and later when we are not doing run time linking.
10700 library_names_spec='${libname}${release}.a $libname.a'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 fi
10703 shlibpath_var=LIBPATH
10704 fi
10705 ;;
10706
10707amigaos*)
10708 case $host_cpu in
10709 powerpc)
10710 # Since July 2007 AmigaOS4 officially supports .so libraries.
10711 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 ;;
10714 m68k)
10715 library_names_spec='$libname.ixlibrary $libname.a'
10716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10717 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'
10718 ;;
10719 esac
10720 ;;
10721
10722beos*)
10723 library_names_spec='${libname}${shared_ext}'
10724 dynamic_linker="$host_os ld.so"
10725 shlibpath_var=LIBRARY_PATH
10726 ;;
10727
10728bsdi[45]*)
10729 version_type=linux
10730 need_version=no
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10737 # the default ld.so.conf also contains /usr/contrib/lib and
10738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10739 # libtool to hard-code these into programs
10740 ;;
10741
10742cygwin* | mingw* | pw32* | cegcc*)
10743 version_type=windows
10744 shrext_cmds=".dll"
10745 need_version=no
10746 need_lib_prefix=no
10747
10748 case $GCC,$host_os in
10749 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10750 library_names_spec='$libname.dll.a'
10751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10752 postinstall_cmds='base_file=`basename \${file}`~
10753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10754 dldir=$destdir/`dirname \$dlpath`~
10755 test -d \$dldir || mkdir -p \$dldir~
10756 $install_prog $dir/$dlname \$dldir/$dlname~
10757 chmod a+x \$dldir/$dlname~
10758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10760 fi'
10761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10762 dlpath=$dir/\$dldll~
10763 $RM \$dlpath'
10764 shlibpath_overrides_runpath=yes
10765
10766 case $host_os in
10767 cygwin*)
10768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770
10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10772 ;;
10773 mingw* | cegcc*)
10774 # MinGW DLLs use traditional 'lib' prefix
10775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10776 ;;
10777 pw32*)
10778 # pw32 DLLs use 'pw' prefix rather than 'lib'
10779 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780 ;;
10781 esac
10782 ;;
10783
10784 *)
10785 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10786 ;;
10787 esac
10788 dynamic_linker='Win32 ld.exe'
10789 # FIXME: first we should search . and the directory the executable is in
10790 shlibpath_var=PATH
10791 ;;
10792
10793darwin* | rhapsody*)
10794 dynamic_linker="$host_os dyld"
10795 version_type=darwin
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10799 soname_spec='${libname}${release}${major}$shared_ext'
10800 shlibpath_overrides_runpath=yes
10801 shlibpath_var=DYLD_LIBRARY_PATH
10802 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10803
10804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10806 ;;
10807
10808dgux*)
10809 version_type=linux
10810 need_lib_prefix=no
10811 need_version=no
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 ;;
10816
10817freebsd* | dragonfly*)
10818 # DragonFly does not have aout. When/if they implement a new
10819 # versioning mechanism, adjust this.
10820 if test -x /usr/bin/objformat; then
10821 objformat=`/usr/bin/objformat`
10822 else
10823 case $host_os in
10824 freebsd[23].*) objformat=aout ;;
10825 *) objformat=elf ;;
10826 esac
10827 fi
10828 version_type=freebsd-$objformat
10829 case $version_type in
10830 freebsd-elf*)
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10832 need_version=no
10833 need_lib_prefix=no
10834 ;;
10835 freebsd-*)
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10837 need_version=yes
10838 ;;
10839 esac
10840 shlibpath_var=LD_LIBRARY_PATH
10841 case $host_os in
10842 freebsd2.*)
10843 shlibpath_overrides_runpath=yes
10844 ;;
10845 freebsd3.[01]* | freebsdelf3.[01]*)
10846 shlibpath_overrides_runpath=yes
10847 hardcode_into_libs=yes
10848 ;;
10849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10851 shlibpath_overrides_runpath=no
10852 hardcode_into_libs=yes
10853 ;;
10854 *) # from 4.6 on, and DragonFly
10855 shlibpath_overrides_runpath=yes
10856 hardcode_into_libs=yes
10857 ;;
10858 esac
10859 ;;
10860
10861haiku*)
10862 version_type=linux
10863 need_lib_prefix=no
10864 need_version=no
10865 dynamic_linker="$host_os runtime_loader"
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 shlibpath_var=LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
ead5103c 10870 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5be7b669
L
10871 hardcode_into_libs=yes
10872 ;;
10873
10874hpux9* | hpux10* | hpux11*)
10875 # Give a soname corresponding to the major version so that dld.sl refuses to
10876 # link against other versions.
10877 version_type=sunos
10878 need_lib_prefix=no
10879 need_version=no
10880 case $host_cpu in
10881 ia64*)
10882 shrext_cmds='.so'
10883 hardcode_into_libs=yes
10884 dynamic_linker="$host_os dld.so"
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 if test "X$HPUX_IA64_MODE" = X32; then
10890 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10891 else
10892 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10893 fi
10894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895 ;;
10896 hppa*64*)
10897 shrext_cmds='.sl'
10898 hardcode_into_libs=yes
10899 dynamic_linker="$host_os dld.sl"
10900 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10906 ;;
10907 *)
10908 shrext_cmds='.sl'
10909 dynamic_linker="$host_os dld.sl"
10910 shlibpath_var=SHLIB_PATH
10911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 ;;
10915 esac
10916 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10917 postinstall_cmds='chmod 555 $lib'
10918 # or fails outright, so override atomically:
10919 install_override_mode=555
10920 ;;
10921
10922interix[3-9]*)
10923 version_type=linux
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10932 ;;
10933
10934irix5* | irix6* | nonstopux*)
10935 case $host_os in
10936 nonstopux*) version_type=nonstopux ;;
10937 *)
10938 if test "$lt_cv_prog_gnu_ld" = yes; then
10939 version_type=linux
10940 else
10941 version_type=irix
10942 fi ;;
10943 esac
10944 need_lib_prefix=no
10945 need_version=no
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10948 case $host_os in
10949 irix5* | nonstopux*)
10950 libsuff= shlibsuff=
10951 ;;
10952 *)
10953 case $LD in # libtool.m4 will add one of these switches to LD
10954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10955 libsuff= shlibsuff= libmagic=32-bit;;
10956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10957 libsuff=32 shlibsuff=N32 libmagic=N32;;
10958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10960 *) libsuff= shlibsuff= libmagic=never-match;;
10961 esac
10962 ;;
10963 esac
10964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10965 shlibpath_overrides_runpath=no
10966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10968 hardcode_into_libs=yes
10969 ;;
10970
10971# No shared lib support for Linux oldld, aout, or coff.
10972linux*oldld* | linux*aout* | linux*coff*)
10973 dynamic_linker=no
10974 ;;
10975
10976# This must be Linux ELF.
10977
10978# uclinux* changes (here and below) have been submitted to the libtool
10979# project, but have not yet been accepted: they are GCC-local changes
10980# for the time being. (See
10981# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10982linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10991
10992 # Some binutils ld are patched to set DT_RUNPATH
10993 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995else
10996 lt_cv_shlibpath_overrides_runpath=no
10997 save_LDFLAGS=$LDFLAGS
10998 save_libdir=$libdir
10999 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11000 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002/* end confdefs.h. */
11003
11004int
11005main ()
11006{
11007
11008 ;
11009 return 0;
11010}
11011_ACEOF
11012if ac_fn_c_try_link "$LINENO"; then :
11013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11014 lt_cv_shlibpath_overrides_runpath=yes
11015fi
11016fi
11017rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LDFLAGS=$save_LDFLAGS
11020 libdir=$save_libdir
11021
11022fi
11023
11024 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11025
11026 # This implies no fast_install, which is unacceptable.
11027 # Some rework will be needed to allow for fast_install
11028 # before this can be enabled.
11029 hardcode_into_libs=yes
11030
11031 # Append ld.so.conf contents to the search path
11032 if test -f /etc/ld.so.conf; then
11033 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' ' '`
11034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11035 fi
11036
11037 # We used to test for /lib/ld.so.1 and disable shared libraries on
11038 # powerpc, because MkLinux only supported shared libraries with the
11039 # GNU dynamic linker. Since this was broken with cross compilers,
11040 # most powerpc-linux boxes support dynamic linking these days and
11041 # people can always --disable-shared, the test was removed, and we
11042 # assume the GNU/Linux dynamic linker is in use.
11043 dynamic_linker='GNU/Linux ld.so'
11044 ;;
11045
11046netbsd*)
11047 version_type=sunos
11048 need_lib_prefix=no
11049 need_version=no
11050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11053 dynamic_linker='NetBSD (a.out) ld.so'
11054 else
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 dynamic_linker='NetBSD ld.elf_so'
11058 fi
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=yes
11061 hardcode_into_libs=yes
11062 ;;
11063
11064newsos6)
11065 version_type=linux
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes
11069 ;;
11070
11071*nto* | *qnx*)
11072 version_type=qnx
11073 need_lib_prefix=no
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079 hardcode_into_libs=yes
11080 dynamic_linker='ldqnx.so'
11081 ;;
11082
11083openbsd*)
11084 version_type=sunos
11085 sys_lib_dlsearch_path_spec="/usr/lib"
11086 need_lib_prefix=no
11087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11088 case $host_os in
11089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11090 *) need_version=no ;;
11091 esac
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11096 case $host_os in
11097 openbsd2.[89] | openbsd2.[89].*)
11098 shlibpath_overrides_runpath=no
11099 ;;
11100 *)
11101 shlibpath_overrides_runpath=yes
11102 ;;
11103 esac
11104 else
11105 shlibpath_overrides_runpath=yes
11106 fi
11107 ;;
11108
11109os2*)
11110 libname_spec='$name'
11111 shrext_cmds=".dll"
11112 need_lib_prefix=no
11113 library_names_spec='$libname${shared_ext} $libname.a'
11114 dynamic_linker='OS/2 ld.exe'
11115 shlibpath_var=LIBPATH
11116 ;;
11117
11118osf3* | osf4* | osf5*)
11119 version_type=osf
11120 need_lib_prefix=no
11121 need_version=no
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11127 ;;
11128
11129rdos*)
11130 dynamic_linker=no
11131 ;;
11132
11133solaris*)
11134 version_type=linux
11135 need_lib_prefix=no
11136 need_version=no
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 # ldd complains unless libraries are executable
11143 postinstall_cmds='chmod +x $lib'
11144 ;;
11145
11146sunos4*)
11147 version_type=sunos
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 if test "$with_gnu_ld" = yes; then
11153 need_lib_prefix=no
11154 fi
11155 need_version=yes
11156 ;;
11157
11158sysv4 | sysv4.3*)
11159 version_type=linux
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 case $host_vendor in
11164 sni)
11165 shlibpath_overrides_runpath=no
11166 need_lib_prefix=no
11167 runpath_var=LD_RUN_PATH
11168 ;;
11169 siemens)
11170 need_lib_prefix=no
11171 ;;
11172 motorola)
11173 need_lib_prefix=no
11174 need_version=no
11175 shlibpath_overrides_runpath=no
11176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11177 ;;
11178 esac
11179 ;;
11180
11181sysv4*MP*)
11182 if test -d /usr/nec ;then
11183 version_type=linux
11184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11185 soname_spec='$libname${shared_ext}.$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 fi
11188 ;;
11189
11190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11191 version_type=freebsd-elf
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11199 if test "$with_gnu_ld" = yes; then
11200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11201 else
11202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11203 case $host_os in
11204 sco3.2v5*)
11205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11206 ;;
11207 esac
11208 fi
11209 sys_lib_dlsearch_path_spec='/usr/lib'
11210 ;;
11211
11212tpf*)
11213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11214 version_type=linux
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11221 ;;
11222
11223uts4*)
11224 version_type=linux
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 ;;
11229
0ecd0f1c
OH
11230# Shared libraries for VwWorks, >= 7 only at this stage
11231# and (fpic) still incompatible with "large" code models
11232# in a few configurations. Only for RTP mode in any case,
11233# and upon explicit request at configure time.
11234vxworks7*)
11235 dynamic_linker=no
11236 case ${with_multisubdir}-${enable_shared} in
11237 *large*)
11238 ;;
11239 *mrtp*-yes)
11240 version_type=linux
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 dynamic_linker="$host_os module_loader"
11246 ;;
11247 esac
11248 ;;
5be7b669
L
11249*)
11250 dynamic_linker=no
11251 ;;
11252esac
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11254$as_echo "$dynamic_linker" >&6; }
11255test "$dynamic_linker" = no && can_build_shared=no
11256
11257variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11258if test "$GCC" = yes; then
11259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11260fi
11261
11262if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11264fi
11265if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11266 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11267fi
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11361$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11362hardcode_action=
11363if test -n "$hardcode_libdir_flag_spec" ||
11364 test -n "$runpath_var" ||
11365 test "X$hardcode_automatic" = "Xyes" ; then
11366
11367 # We can hardcode non-existent directories.
11368 if test "$hardcode_direct" != no &&
11369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11370 # have to relink, otherwise we might link with an installed library
11371 # when we should be linking with a yet-to-be-installed one
11372 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11373 test "$hardcode_minus_L" != no; then
11374 # Linking always hardcodes the temporary library directory.
11375 hardcode_action=relink
11376 else
11377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11378 hardcode_action=immediate
11379 fi
11380else
11381 # We cannot hardcode anything, or else we can only hardcode existing
11382 # directories.
11383 hardcode_action=unsupported
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11386$as_echo "$hardcode_action" >&6; }
11387
11388if test "$hardcode_action" = relink ||
11389 test "$inherit_rpath" = yes; then
11390 # Fast installation is not supported
11391 enable_fast_install=no
11392elif test "$shlibpath_overrides_runpath" = yes ||
11393 test "$enable_shared" = no; then
11394 # Fast installation is not necessary
11395 enable_fast_install=needless
11396fi
11397
11398
11399
11400
11401
11402
11403 if test "x$enable_dlopen" != xyes; then
11404 enable_dlopen=unknown
11405 enable_dlopen_self=unknown
11406 enable_dlopen_self_static=unknown
11407else
11408 lt_cv_dlopen=no
11409 lt_cv_dlopen_libs=
11410
11411 case $host_os in
11412 beos*)
11413 lt_cv_dlopen="load_add_on"
11414 lt_cv_dlopen_libs=
11415 lt_cv_dlopen_self=yes
11416 ;;
11417
11418 mingw* | pw32* | cegcc*)
11419 lt_cv_dlopen="LoadLibrary"
11420 lt_cv_dlopen_libs=
11421 ;;
11422
11423 cygwin*)
11424 lt_cv_dlopen="dlopen"
11425 lt_cv_dlopen_libs=
11426 ;;
11427
11428 darwin*)
11429 # if libdl is installed we need to link against it
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11431$as_echo_n "checking for dlopen in -ldl... " >&6; }
11432if ${ac_cv_lib_dl_dlopen+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434else
11435 ac_check_lib_save_LIBS=$LIBS
11436LIBS="-ldl $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h. */
11439
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
11444extern "C"
11445#endif
11446char dlopen ();
11447int
11448main ()
11449{
11450return dlopen ();
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_dl_dlopen=yes
11457else
11458 ac_cv_lib_dl_dlopen=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11465$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11466if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11468else
11469
11470 lt_cv_dlopen="dyld"
11471 lt_cv_dlopen_libs=
11472 lt_cv_dlopen_self=yes
11473
11474fi
11475
11476 ;;
11477
11478 *)
11479 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11480if test "x$ac_cv_func_shl_load" = xyes; then :
11481 lt_cv_dlopen="shl_load"
11482else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11484$as_echo_n "checking for shl_load in -ldld... " >&6; }
11485if ${ac_cv_lib_dld_shl_load+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487else
11488 ac_check_lib_save_LIBS=$LIBS
11489LIBS="-ldld $LIBS"
11490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491/* end confdefs.h. */
11492
11493/* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496#ifdef __cplusplus
11497extern "C"
11498#endif
11499char shl_load ();
11500int
11501main ()
11502{
11503return shl_load ();
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508if ac_fn_c_try_link "$LINENO"; then :
11509 ac_cv_lib_dld_shl_load=yes
11510else
11511 ac_cv_lib_dld_shl_load=no
11512fi
11513rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515LIBS=$ac_check_lib_save_LIBS
11516fi
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11518$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11519if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11520 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11521else
11522 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11523if test "x$ac_cv_func_dlopen" = xyes; then :
11524 lt_cv_dlopen="dlopen"
11525else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527$as_echo_n "checking for dlopen in -ldl... " >&6; }
11528if ${ac_cv_lib_dl_dlopen+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530else
11531 ac_check_lib_save_LIBS=$LIBS
11532LIBS="-ldl $LIBS"
11533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536/* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11539#ifdef __cplusplus
11540extern "C"
11541#endif
11542char dlopen ();
11543int
11544main ()
11545{
11546return dlopen ();
11547 ;
11548 return 0;
11549}
11550_ACEOF
11551if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_dl_dlopen=yes
11553else
11554 ac_cv_lib_dl_dlopen=no
11555fi
11556rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558LIBS=$ac_check_lib_save_LIBS
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11564else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11566$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11567if ${ac_cv_lib_svld_dlopen+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569else
11570 ac_check_lib_save_LIBS=$LIBS
11571LIBS="-lsvld $LIBS"
11572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573/* end confdefs.h. */
11574
11575/* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578#ifdef __cplusplus
11579extern "C"
11580#endif
11581char dlopen ();
11582int
11583main ()
11584{
11585return dlopen ();
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_svld_dlopen=yes
11592else
11593 ac_cv_lib_svld_dlopen=no
11594fi
11595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597LIBS=$ac_check_lib_save_LIBS
11598fi
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11600$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11601if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11603else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11605$as_echo_n "checking for dld_link in -ldld... " >&6; }
11606if ${ac_cv_lib_dld_dld_link+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608else
11609 ac_check_lib_save_LIBS=$LIBS
11610LIBS="-ldld $LIBS"
11611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612/* end confdefs.h. */
11613
11614/* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617#ifdef __cplusplus
11618extern "C"
11619#endif
11620char dld_link ();
11621int
11622main ()
11623{
11624return dld_link ();
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629if ac_fn_c_try_link "$LINENO"; then :
11630 ac_cv_lib_dld_dld_link=yes
11631else
11632 ac_cv_lib_dld_dld_link=no
11633fi
11634rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636LIBS=$ac_check_lib_save_LIBS
11637fi
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11639$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11640if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11642fi
11643
11644
11645fi
11646
11647
11648fi
11649
11650
11651fi
11652
11653
11654fi
11655
11656
11657fi
11658
11659 ;;
11660 esac
11661
11662 if test "x$lt_cv_dlopen" != xno; then
11663 enable_dlopen=yes
11664 else
11665 enable_dlopen=no
11666 fi
11667
11668 case $lt_cv_dlopen in
11669 dlopen)
11670 save_CPPFLAGS="$CPPFLAGS"
11671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11672
11673 save_LDFLAGS="$LDFLAGS"
11674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11675
11676 save_LIBS="$LIBS"
11677 LIBS="$lt_cv_dlopen_libs $LIBS"
11678
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11680$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11681if ${lt_cv_dlopen_self+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683else
11684 if test "$cross_compiling" = yes; then :
11685 lt_cv_dlopen_self=cross
11686else
11687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11688 lt_status=$lt_dlunknown
11689 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 11690#line 11690 "configure"
5be7b669
L
11691#include "confdefs.h"
11692
11693#if HAVE_DLFCN_H
11694#include <dlfcn.h>
11695#endif
11696
11697#include <stdio.h>
11698
11699#ifdef RTLD_GLOBAL
11700# define LT_DLGLOBAL RTLD_GLOBAL
11701#else
11702# ifdef DL_GLOBAL
11703# define LT_DLGLOBAL DL_GLOBAL
11704# else
11705# define LT_DLGLOBAL 0
11706# endif
11707#endif
11708
11709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11710 find out it does not work in some platform. */
11711#ifndef LT_DLLAZY_OR_NOW
11712# ifdef RTLD_LAZY
11713# define LT_DLLAZY_OR_NOW RTLD_LAZY
11714# else
11715# ifdef DL_LAZY
11716# define LT_DLLAZY_OR_NOW DL_LAZY
11717# else
11718# ifdef RTLD_NOW
11719# define LT_DLLAZY_OR_NOW RTLD_NOW
11720# else
11721# ifdef DL_NOW
11722# define LT_DLLAZY_OR_NOW DL_NOW
11723# else
11724# define LT_DLLAZY_OR_NOW 0
11725# endif
11726# endif
11727# endif
11728# endif
11729#endif
11730
11731/* When -fvisbility=hidden is used, assume the code has been annotated
11732 correspondingly for the symbols needed. */
11733#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11734void fnord () __attribute__((visibility("default")));
11735#endif
11736
11737void fnord () { int i=42; }
11738int main ()
11739{
11740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11741 int status = $lt_dlunknown;
11742
11743 if (self)
11744 {
11745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11746 else
11747 {
11748 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11749 else puts (dlerror ());
11750 }
11751 /* dlclose (self); */
11752 }
11753 else
11754 puts (dlerror ());
11755
11756 return status;
11757}
11758_LT_EOF
11759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11760 (eval $ac_link) 2>&5
11761 ac_status=$?
11762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11764 (./conftest; exit; ) >&5 2>/dev/null
11765 lt_status=$?
11766 case x$lt_status in
11767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11770 esac
11771 else :
11772 # compilation failed
11773 lt_cv_dlopen_self=no
11774 fi
11775fi
11776rm -fr conftest*
11777
11778
11779fi
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11781$as_echo "$lt_cv_dlopen_self" >&6; }
11782
11783 if test "x$lt_cv_dlopen_self" = xyes; then
11784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11786$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11787if ${lt_cv_dlopen_self_static+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790 if test "$cross_compiling" = yes; then :
11791 lt_cv_dlopen_self_static=cross
11792else
11793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11794 lt_status=$lt_dlunknown
11795 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 11796#line 11796 "configure"
5be7b669
L
11797#include "confdefs.h"
11798
11799#if HAVE_DLFCN_H
11800#include <dlfcn.h>
11801#endif
11802
11803#include <stdio.h>
11804
11805#ifdef RTLD_GLOBAL
11806# define LT_DLGLOBAL RTLD_GLOBAL
11807#else
11808# ifdef DL_GLOBAL
11809# define LT_DLGLOBAL DL_GLOBAL
11810# else
11811# define LT_DLGLOBAL 0
11812# endif
11813#endif
11814
11815/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11816 find out it does not work in some platform. */
11817#ifndef LT_DLLAZY_OR_NOW
11818# ifdef RTLD_LAZY
11819# define LT_DLLAZY_OR_NOW RTLD_LAZY
11820# else
11821# ifdef DL_LAZY
11822# define LT_DLLAZY_OR_NOW DL_LAZY
11823# else
11824# ifdef RTLD_NOW
11825# define LT_DLLAZY_OR_NOW RTLD_NOW
11826# else
11827# ifdef DL_NOW
11828# define LT_DLLAZY_OR_NOW DL_NOW
11829# else
11830# define LT_DLLAZY_OR_NOW 0
11831# endif
11832# endif
11833# endif
11834# endif
11835#endif
11836
11837/* When -fvisbility=hidden is used, assume the code has been annotated
11838 correspondingly for the symbols needed. */
11839#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11840void fnord () __attribute__((visibility("default")));
11841#endif
11842
11843void fnord () { int i=42; }
11844int main ()
11845{
11846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847 int status = $lt_dlunknown;
11848
11849 if (self)
11850 {
11851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11852 else
11853 {
11854 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11855 else puts (dlerror ());
11856 }
11857 /* dlclose (self); */
11858 }
11859 else
11860 puts (dlerror ());
11861
11862 return status;
11863}
11864_LT_EOF
11865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11866 (eval $ac_link) 2>&5
11867 ac_status=$?
11868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11870 (./conftest; exit; ) >&5 2>/dev/null
11871 lt_status=$?
11872 case x$lt_status in
11873 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11874 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11875 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11876 esac
11877 else :
11878 # compilation failed
11879 lt_cv_dlopen_self_static=no
11880 fi
11881fi
11882rm -fr conftest*
11883
11884
11885fi
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11887$as_echo "$lt_cv_dlopen_self_static" >&6; }
11888 fi
11889
11890 CPPFLAGS="$save_CPPFLAGS"
11891 LDFLAGS="$save_LDFLAGS"
11892 LIBS="$save_LIBS"
11893 ;;
11894 esac
11895
11896 case $lt_cv_dlopen_self in
11897 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11898 *) enable_dlopen_self=unknown ;;
11899 esac
11900
11901 case $lt_cv_dlopen_self_static in
11902 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11903 *) enable_dlopen_self_static=unknown ;;
11904 esac
11905fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923striplib=
11924old_striplib=
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11926$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11927if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11931$as_echo "yes" >&6; }
11932else
11933# FIXME - insert some real tests, host_os isn't really good enough
11934 case $host_os in
11935 darwin*)
11936 if test -n "$STRIP" ; then
11937 striplib="$STRIP -x"
11938 old_striplib="$STRIP -S"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940$as_echo "yes" >&6; }
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
11944 fi
11945 ;;
11946 *)
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
11949 ;;
11950 esac
11951fi
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 # Report which library types will actually be built
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11966$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11968$as_echo "$can_build_shared" >&6; }
11969
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11971$as_echo_n "checking whether to build shared libraries... " >&6; }
11972 test "$can_build_shared" = "no" && enable_shared=no
11973
11974 # On AIX, shared libraries and static libraries use the same namespace, and
11975 # are all built from PIC.
11976 case $host_os in
11977 aix3*)
11978 test "$enable_shared" = yes && enable_static=no
11979 if test -n "$RANLIB"; then
11980 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11981 postinstall_cmds='$RANLIB $lib'
11982 fi
11983 ;;
11984
11985 aix[4-9]*)
11986 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11987 test "$enable_shared" = yes && enable_static=no
11988 fi
11989 ;;
11990 esac
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11992$as_echo "$enable_shared" >&6; }
11993
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11995$as_echo_n "checking whether to build static libraries... " >&6; }
11996 # Make sure either enable_shared or enable_static is yes.
11997 test "$enable_shared" = yes || enable_static=yes
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11999$as_echo "$enable_static" >&6; }
12000
12001
12002
12003
12004fi
12005ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011CC="$lt_save_CC"
12012
12013 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12014 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12015 (test "X$CXX" != "Xg++"))) ; then
12016 ac_ext=cpp
12017ac_cpp='$CXXCPP $CPPFLAGS'
12018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12022$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12023if test -z "$CXXCPP"; then
12024 if ${ac_cv_prog_CXXCPP+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026else
12027 # Double quotes because CXXCPP needs to be expanded
12028 for CXXCPP in "$CXX -E" "/lib/cpp"
12029 do
12030 ac_preproc_ok=false
12031for ac_cxx_preproc_warn_flag in '' yes
12032do
12033 # Use a header file that comes with gcc, so configuring glibc
12034 # with a fresh cross-compiler works.
12035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 # <limits.h> exists even on freestanding compilers.
12037 # On the NeXT, cc -E runs the code through the compiler's parser,
12038 # not just through cpp. "Syntax error" is here to catch this case.
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h. */
12041#ifdef __STDC__
12042# include <limits.h>
12043#else
12044# include <assert.h>
12045#endif
12046 Syntax error
12047_ACEOF
12048if ac_fn_cxx_try_cpp "$LINENO"; then :
12049
12050else
12051 # Broken: fails on valid input.
12052continue
12053fi
12054rm -f conftest.err conftest.i conftest.$ac_ext
12055
12056 # OK, works on sane cases. Now check whether nonexistent headers
12057 # can be detected and how.
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059/* end confdefs.h. */
12060#include <ac_nonexistent.h>
12061_ACEOF
12062if ac_fn_cxx_try_cpp "$LINENO"; then :
12063 # Broken: success on invalid input.
12064continue
12065else
12066 # Passes both tests.
12067ac_preproc_ok=:
12068break
12069fi
12070rm -f conftest.err conftest.i conftest.$ac_ext
12071
12072done
12073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12074rm -f conftest.i conftest.err conftest.$ac_ext
12075if $ac_preproc_ok; then :
12076 break
12077fi
12078
12079 done
12080 ac_cv_prog_CXXCPP=$CXXCPP
12081
12082fi
12083 CXXCPP=$ac_cv_prog_CXXCPP
12084else
12085 ac_cv_prog_CXXCPP=$CXXCPP
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12088$as_echo "$CXXCPP" >&6; }
12089ac_preproc_ok=false
12090for ac_cxx_preproc_warn_flag in '' yes
12091do
12092 # Use a header file that comes with gcc, so configuring glibc
12093 # with a fresh cross-compiler works.
12094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095 # <limits.h> exists even on freestanding compilers.
12096 # On the NeXT, cc -E runs the code through the compiler's parser,
12097 # not just through cpp. "Syntax error" is here to catch this case.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h. */
12100#ifdef __STDC__
12101# include <limits.h>
12102#else
12103# include <assert.h>
12104#endif
12105 Syntax error
12106_ACEOF
12107if ac_fn_cxx_try_cpp "$LINENO"; then :
12108
12109else
12110 # Broken: fails on valid input.
12111continue
12112fi
12113rm -f conftest.err conftest.i conftest.$ac_ext
12114
12115 # OK, works on sane cases. Now check whether nonexistent headers
12116 # can be detected and how.
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h. */
12119#include <ac_nonexistent.h>
12120_ACEOF
12121if ac_fn_cxx_try_cpp "$LINENO"; then :
12122 # Broken: success on invalid input.
12123continue
12124else
12125 # Passes both tests.
12126ac_preproc_ok=:
12127break
12128fi
12129rm -f conftest.err conftest.i conftest.$ac_ext
12130
12131done
12132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12133rm -f conftest.i conftest.err conftest.$ac_ext
12134if $ac_preproc_ok; then :
12135
12136else
12137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12139as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12140See \`config.log' for more details" "$LINENO" 5; }
12141fi
12142
12143ac_ext=c
12144ac_cpp='$CPP $CPPFLAGS'
12145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148
12149else
12150 _lt_caught_CXX_error=yes
12151fi
12152
12153ac_ext=cpp
12154ac_cpp='$CXXCPP $CPPFLAGS'
12155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12158
12159archive_cmds_need_lc_CXX=no
12160allow_undefined_flag_CXX=
12161always_export_symbols_CXX=no
12162archive_expsym_cmds_CXX=
12163compiler_needs_object_CXX=no
12164export_dynamic_flag_spec_CXX=
12165hardcode_direct_CXX=no
12166hardcode_direct_absolute_CXX=no
12167hardcode_libdir_flag_spec_CXX=
12168hardcode_libdir_flag_spec_ld_CXX=
12169hardcode_libdir_separator_CXX=
12170hardcode_minus_L_CXX=no
12171hardcode_shlibpath_var_CXX=unsupported
12172hardcode_automatic_CXX=no
12173inherit_rpath_CXX=no
12174module_cmds_CXX=
12175module_expsym_cmds_CXX=
12176link_all_deplibs_CXX=unknown
12177old_archive_cmds_CXX=$old_archive_cmds
12178reload_flag_CXX=$reload_flag
12179reload_cmds_CXX=$reload_cmds
12180no_undefined_flag_CXX=
12181whole_archive_flag_spec_CXX=
12182enable_shared_with_static_runtimes_CXX=no
12183
12184# Source file extension for C++ test sources.
12185ac_ext=cpp
12186
12187# Object file extension for compiled C++ test sources.
12188objext=o
12189objext_CXX=$objext
12190
12191# No sense in running all these tests if we already determined that
12192# the CXX compiler isn't working. Some variables (like enable_shared)
12193# are currently assumed to apply to all compilers on this platform,
12194# and will be corrupted by setting them based on a non-working compiler.
12195if test "$_lt_caught_CXX_error" != yes; then
12196 # Code to be used in simple compile tests
12197 lt_simple_compile_test_code="int some_variable = 0;"
12198
12199 # Code to be used in simple link tests
12200 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12201
12202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12203
12204
12205
12206
12207
12208
12209# If no C compiler was specified, use CC.
12210LTCC=${LTCC-"$CC"}
12211
12212# If no C compiler flags were specified, use CFLAGS.
12213LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12214
12215# Allow CC to be a program name with arguments.
12216compiler=$CC
12217
12218
12219 # save warnings/boilerplate of simple test code
12220 ac_outfile=conftest.$ac_objext
12221echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12222eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12223_lt_compiler_boilerplate=`cat conftest.err`
12224$RM conftest*
12225
12226 ac_outfile=conftest.$ac_objext
12227echo "$lt_simple_link_test_code" >conftest.$ac_ext
12228eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12229_lt_linker_boilerplate=`cat conftest.err`
12230$RM -r conftest*
12231
12232
12233 # Allow CC to be a program name with arguments.
12234 lt_save_CC=$CC
12235 lt_save_LD=$LD
12236 lt_save_GCC=$GCC
12237 GCC=$GXX
12238 lt_save_with_gnu_ld=$with_gnu_ld
12239 lt_save_path_LD=$lt_cv_path_LD
12240 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12241 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12242 else
12243 $as_unset lt_cv_prog_gnu_ld
12244 fi
12245 if test -n "${lt_cv_path_LDCXX+set}"; then
12246 lt_cv_path_LD=$lt_cv_path_LDCXX
12247 else
12248 $as_unset lt_cv_path_LD
12249 fi
12250 test -z "${LDCXX+set}" || LD=$LDCXX
12251 CC=${CXX-"c++"}
12252 compiler=$CC
12253 compiler_CXX=$CC
12254 for cc_temp in $compiler""; do
12255 case $cc_temp in
12256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12258 \-*) ;;
12259 *) break;;
12260 esac
12261done
12262cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12263
12264
12265 if test -n "$compiler"; then
12266 # We don't want -fno-exception when compiling C++ code, so set the
12267 # no_builtin_flag separately
12268 if test "$GXX" = yes; then
12269 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12270 else
12271 lt_prog_compiler_no_builtin_flag_CXX=
12272 fi
12273
12274 if test "$GXX" = yes; then
12275 # Set up default GNU C++ configuration
12276
12277
12278
12279# Check whether --with-gnu-ld was given.
12280if test "${with_gnu_ld+set}" = set; then :
12281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12282else
12283 with_gnu_ld=no
12284fi
12285
12286ac_prog=ld
12287if test "$GCC" = yes; then
12288 # Check if gcc -print-prog-name=ld gives a path.
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12290$as_echo_n "checking for ld used by $CC... " >&6; }
12291 case $host in
12292 *-*-mingw*)
12293 # gcc leaves a trailing carriage return which upsets mingw
12294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12295 *)
12296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12297 esac
12298 case $ac_prog in
12299 # Accept absolute paths.
12300 [\\/]* | ?:[\\/]*)
12301 re_direlt='/[^/][^/]*/\.\./'
12302 # Canonicalize the pathname of ld
12303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12306 done
12307 test -z "$LD" && LD="$ac_prog"
12308 ;;
12309 "")
12310 # If it fails, then pretend we aren't using GCC.
12311 ac_prog=ld
12312 ;;
12313 *)
12314 # If it is relative, then search for the first ld in PATH.
12315 with_gnu_ld=unknown
12316 ;;
12317 esac
12318elif test "$with_gnu_ld" = yes; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12320$as_echo_n "checking for GNU ld... " >&6; }
12321else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12323$as_echo_n "checking for non-GNU ld... " >&6; }
12324fi
12325if ${lt_cv_path_LD+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327else
12328 if test -z "$LD"; then
12329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12330 for ac_dir in $PATH; do
12331 IFS="$lt_save_ifs"
12332 test -z "$ac_dir" && ac_dir=.
12333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12334 lt_cv_path_LD="$ac_dir/$ac_prog"
12335 # Check to see if the program is GNU ld. I'd rather use --version,
12336 # but apparently some variants of GNU ld only accept -v.
12337 # Break only if it was the GNU/non-GNU ld that we prefer.
12338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12339 *GNU* | *'with BFD'*)
12340 test "$with_gnu_ld" != no && break
12341 ;;
12342 *)
12343 test "$with_gnu_ld" != yes && break
12344 ;;
12345 esac
12346 fi
12347 done
12348 IFS="$lt_save_ifs"
12349else
12350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12351fi
12352fi
12353
12354LD="$lt_cv_path_LD"
12355if test -n "$LD"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12357$as_echo "$LD" >&6; }
12358else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360$as_echo "no" >&6; }
12361fi
12362test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12364$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12365if ${lt_cv_prog_gnu_ld+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12369case `$LD -v 2>&1 </dev/null` in
12370*GNU* | *'with BFD'*)
12371 lt_cv_prog_gnu_ld=yes
12372 ;;
12373*)
12374 lt_cv_prog_gnu_ld=no
12375 ;;
12376esac
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12379$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12380with_gnu_ld=$lt_cv_prog_gnu_ld
12381
12382
12383
12384
12385
12386
12387
12388 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12389 # archiving commands below assume that GNU ld is being used.
12390 if test "$with_gnu_ld" = yes; then
12391 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12392 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'
12393
12394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12396
12397 # If archive_cmds runs LD, not CC, wlarc should be empty
12398 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12399 # investigate it a little bit more. (MM)
12400 wlarc='${wl}'
12401
12402 # ancient GNU ld didn't support --whole-archive et. al.
12403 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12404 $GREP 'no-whole-archive' > /dev/null; then
12405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12406 else
12407 whole_archive_flag_spec_CXX=
12408 fi
12409 else
12410 with_gnu_ld=no
12411 wlarc=
12412
12413 # A generic and very simple default shared library creation
12414 # command for GNU C++ for the case where it uses the native
12415 # linker, instead of GNU ld. If possible, this setting should
12416 # overridden to take advantage of the native linker features on
12417 # the platform it is being used on.
12418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12419 fi
12420
12421 # Commands to make compiler produce verbose output that lists
12422 # what "hidden" libraries, object files and flags are used when
12423 # linking a shared library.
12424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12425
12426 else
12427 GXX=no
12428 with_gnu_ld=no
12429 wlarc=
12430 fi
12431
12432 # PORTME: fill in a description of your system's C++ link characteristics
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12434$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12435 ld_shlibs_CXX=yes
12436 case $host_os in
12437 aix3*)
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12440 ;;
12441 aix[4-9]*)
12442 if test "$host_cpu" = ia64; then
12443 # On IA64, the linker does run time linking by default, so we don't
12444 # have to do anything special.
12445 aix_use_runtimelinking=no
12446 exp_sym_flag='-Bexport'
12447 no_entry_flag=""
12448 else
12449 aix_use_runtimelinking=no
12450
12451 # Test if we are trying to use run time linking or normal
12452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12453 # need to do runtime linking.
12454 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12455 for ld_flag in $LDFLAGS; do
12456 case $ld_flag in
12457 *-brtl*)
12458 aix_use_runtimelinking=yes
12459 break
12460 ;;
12461 esac
12462 done
12463 ;;
12464 esac
12465
12466 exp_sym_flag='-bexport'
12467 no_entry_flag='-bnoentry'
12468 fi
12469
12470 # When large executables or shared objects are built, AIX ld can
12471 # have problems creating the table of contents. If linking a library
12472 # or program results in "error TOC overflow" add -mminimal-toc to
12473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12475
12476 archive_cmds_CXX=''
12477 hardcode_direct_CXX=yes
12478 hardcode_direct_absolute_CXX=yes
12479 hardcode_libdir_separator_CXX=':'
12480 link_all_deplibs_CXX=yes
12481 file_list_spec_CXX='${wl}-f,'
12482
12483 if test "$GXX" = yes; then
12484 case $host_os in aix4.[012]|aix4.[012].*)
12485 # We only want to do this on AIX 4.2 and lower, the check
12486 # below for broken collect2 doesn't work under 4.3+
12487 collect2name=`${CC} -print-prog-name=collect2`
12488 if test -f "$collect2name" &&
12489 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12490 then
12491 # We have reworked collect2
12492 :
12493 else
12494 # We have old collect2
12495 hardcode_direct_CXX=unsupported
12496 # It fails to find uninstalled libraries when the uninstalled
12497 # path is not listed in the libpath. Setting hardcode_minus_L
12498 # to unsupported forces relinking
12499 hardcode_minus_L_CXX=yes
12500 hardcode_libdir_flag_spec_CXX='-L$libdir'
12501 hardcode_libdir_separator_CXX=
12502 fi
12503 esac
12504 shared_flag='-shared'
12505 if test "$aix_use_runtimelinking" = yes; then
12506 shared_flag="$shared_flag "'${wl}-G'
12507 fi
12508 else
12509 # not using gcc
12510 if test "$host_cpu" = ia64; then
12511 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12512 # chokes on -Wl,-G. The following line is correct:
12513 shared_flag='-G'
12514 else
12515 if test "$aix_use_runtimelinking" = yes; then
12516 shared_flag='${wl}-G'
12517 else
12518 shared_flag='${wl}-bM:SRE'
12519 fi
12520 fi
12521 fi
12522
12523 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12524 # It seems that -bexpall does not export symbols beginning with
12525 # underscore (_), so it is better to generate a list of symbols to
12526 # export.
12527 always_export_symbols_CXX=yes
12528 if test "$aix_use_runtimelinking" = yes; then
12529 # Warning - without using the other runtime loading flags (-brtl),
12530 # -berok will link without error, but may produce a broken library.
12531 allow_undefined_flag_CXX='-berok'
12532 # Determine the default libpath from the value encoded in an empty
12533 # executable.
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535/* end confdefs.h. */
12536
12537int
12538main ()
12539{
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545if ac_fn_cxx_try_link "$LINENO"; then :
12546
12547lt_aix_libpath_sed='
12548 /Import File Strings/,/^$/ {
12549 /^0/ {
12550 s/^0 *\(.*\)$/\1/
12551 p
12552 }
12553 }'
12554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12555# Check for a 64-bit object if we didn't find anything.
12556if test -z "$aix_libpath"; then
12557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12558fi
12559fi
12560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12563
12564 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12565
12566 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"
12567 else
12568 if test "$host_cpu" = ia64; then
12569 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12570 allow_undefined_flag_CXX="-z nodefs"
12571 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"
12572 else
12573 # Determine the default libpath from the value encoded in an
12574 # empty executable.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576/* end confdefs.h. */
12577
12578int
12579main ()
12580{
12581
12582 ;
12583 return 0;
12584}
12585_ACEOF
12586if ac_fn_cxx_try_link "$LINENO"; then :
12587
12588lt_aix_libpath_sed='
12589 /Import File Strings/,/^$/ {
12590 /^0/ {
12591 s/^0 *\(.*\)$/\1/
12592 p
12593 }
12594 }'
12595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596# Check for a 64-bit object if we didn't find anything.
12597if test -z "$aix_libpath"; then
12598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12599fi
12600fi
12601rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12604
12605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12606 # Warning - without using the other run time loading flags,
12607 # -berok will link without error, but may produce a broken library.
12608 no_undefined_flag_CXX=' ${wl}-bernotok'
12609 allow_undefined_flag_CXX=' ${wl}-berok'
12610 if test "$with_gnu_ld" = yes; then
12611 # We only use this code for GNU lds that support --whole-archive.
12612 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12613 else
12614 # Exported symbols can be pulled into shared objects from archives
12615 whole_archive_flag_spec_CXX='$convenience'
12616 fi
12617 archive_cmds_need_lc_CXX=yes
12618 # This is similar to how AIX traditionally builds its shared
12619 # libraries.
12620 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'
12621 fi
12622 fi
12623 ;;
12624
12625 beos*)
12626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12627 allow_undefined_flag_CXX=unsupported
12628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12629 # support --undefined. This deserves some investigation. FIXME
12630 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631 else
12632 ld_shlibs_CXX=no
12633 fi
12634 ;;
12635
12636 chorus*)
12637 case $cc_basename in
12638 *)
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12641 ;;
12642 esac
12643 ;;
12644
12645 cygwin* | mingw* | pw32* | cegcc*)
12646 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12647 # as there is no search path for DLLs.
12648 hardcode_libdir_flag_spec_CXX='-L$libdir'
12649 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12650 allow_undefined_flag_CXX=unsupported
12651 always_export_symbols_CXX=no
12652 enable_shared_with_static_runtimes_CXX=yes
12653
12654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12655 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'
12656 # If the export-symbols file already is a .def file (1st line
12657 # is EXPORTS), use it as is; otherwise, prepend...
12658 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12659 cp $export_symbols $output_objdir/$soname.def;
12660 else
12661 echo EXPORTS > $output_objdir/$soname.def;
12662 cat $export_symbols >> $output_objdir/$soname.def;
12663 fi~
12664 $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'
12665 else
12666 ld_shlibs_CXX=no
12667 fi
12668 ;;
12669 darwin* | rhapsody*)
12670
12671
6a6d3817
IS
12672
12673 # Publish an arg to allow the user to select that Darwin host (and target)
12674 # libraries should be given install-names like @rpath/libfoo.dylib. This
12675 # requires that the user of the library then adds an 'rpath' to the DSO that
12676 # needs access.
12677 # NOTE: there are defaults below, for systems that support rpaths. The person
12678 # configuring can override the defaults for any system version that supports
12679 # them - they are, however, forced off for system versions without support.
12680 # Check whether --enable-darwin-at-rpath was given.
12681if test "${enable_darwin_at_rpath+set}" = set; then :
12682 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12683 # This is not supported before macOS 10.5 / Darwin9.
12684 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12685 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12687$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12688 enable_darwin_at_rpath=no
12689 ;;
12690 esac
12691 fi
12692else
12693 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12694 # As above, before 10.5 / Darwin9 this does not work.
12695 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12696 enable_darwin_at_rpath=no
12697 ;;
12698
12699 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12700 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12701 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12702 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12704$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12705 enable_darwin_at_rpath=yes
12706 ;;
12707 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12708 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12709
12710 esac
12711
12712fi
12713
12714
5be7b669
L
12715 archive_cmds_need_lc_CXX=no
12716 hardcode_direct_CXX=no
12717 hardcode_automatic_CXX=yes
12718 hardcode_shlibpath_var_CXX=unsupported
12719 if test "$lt_cv_ld_force_load" = "yes"; then
12720 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\"`'
12721 else
12722 whole_archive_flag_spec_CXX=''
12723 fi
12724 link_all_deplibs_CXX=yes
12725 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12726 case $cc_basename in
12727 ifort*) _lt_dar_can_shared=yes ;;
12728 *) _lt_dar_can_shared=$GCC ;;
12729 esac
12730 if test "$_lt_dar_can_shared" = "yes"; then
12731 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
12732 _lt_install_name='\$rpath/\$soname'
12733 if test "x$enable_darwin_at_rpath" = "xyes"; then
12734 _lt_install_name='@rpath/\$soname'
12735 fi
12736 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
5be7b669 12737 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 12738 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
5be7b669
L
12739 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}"
12740 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
6a6d3817
IS
12741 _lt_install_name='\$rpath/\$soname'
12742 if test "x$enable_darwin_at_rpath" = "xyes"; then
12743 _lt_install_name='@rpath/\$soname'
12744 fi
12745 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
5be7b669
L
12746 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}"
12747 fi
12748
12749 else
12750 ld_shlibs_CXX=no
12751 fi
12752
12753 ;;
12754
12755 dgux*)
12756 case $cc_basename in
12757 ec++*)
12758 # FIXME: insert proper C++ library support
12759 ld_shlibs_CXX=no
12760 ;;
12761 ghcx*)
12762 # Green Hills C++ Compiler
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12765 ;;
12766 *)
12767 # FIXME: insert proper C++ library support
12768 ld_shlibs_CXX=no
12769 ;;
12770 esac
12771 ;;
12772
12773 freebsd2.*)
12774 # C++ shared libraries reported to be fairly broken before
12775 # switch to ELF
12776 ld_shlibs_CXX=no
12777 ;;
12778
12779 freebsd-elf*)
12780 archive_cmds_need_lc_CXX=no
12781 ;;
12782
12783 freebsd* | dragonfly*)
12784 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12785 # conventions
12786 ld_shlibs_CXX=yes
12787 ;;
12788
12789 gnu*)
12790 ;;
12791
12792 haiku*)
12793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 link_all_deplibs_CXX=yes
12795 ;;
12796
12797 hpux9*)
12798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_separator_CXX=:
12800 export_dynamic_flag_spec_CXX='${wl}-E'
12801 hardcode_direct_CXX=yes
12802 hardcode_minus_L_CXX=yes # Not in the search PATH,
12803 # but as the default
12804 # location of the library.
12805
12806 case $cc_basename in
12807 CC*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12810 ;;
12811 aCC*)
12812 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'
12813 # Commands to make compiler produce verbose output that lists
12814 # what "hidden" libraries, object files and flags are used when
12815 # linking a shared library.
12816 #
12817 # There doesn't appear to be a way to prevent this compiler from
12818 # explicitly linking system object files so we need to strip them
12819 # from the output so that they don't get included in the library
12820 # dependencies.
12821 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"'
12822 ;;
12823 *)
12824 if test "$GXX" = yes; then
12825 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'
12826 else
12827 # FIXME: insert proper C++ library support
12828 ld_shlibs_CXX=no
12829 fi
12830 ;;
12831 esac
12832 ;;
12833
12834 hpux10*|hpux11*)
12835 if test $with_gnu_ld = no; then
12836 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_CXX=:
12838
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 ;;
12842 *)
12843 export_dynamic_flag_spec_CXX='${wl}-E'
12844 ;;
12845 esac
12846 fi
12847 case $host_cpu in
12848 hppa*64*|ia64*)
12849 hardcode_direct_CXX=no
12850 hardcode_shlibpath_var_CXX=no
12851 ;;
12852 *)
12853 hardcode_direct_CXX=yes
12854 hardcode_direct_absolute_CXX=yes
12855 hardcode_minus_L_CXX=yes # Not in the search PATH,
12856 # but as the default
12857 # location of the library.
12858 ;;
12859 esac
12860
12861 case $cc_basename in
12862 CC*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 aCC*)
12867 case $host_cpu in
12868 hppa*64*)
12869 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12870 ;;
12871 ia64*)
12872 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 ;;
12874 *)
12875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 esac
12878 # Commands to make compiler produce verbose output that lists
12879 # what "hidden" libraries, object files and flags are used when
12880 # linking a shared library.
12881 #
12882 # There doesn't appear to be a way to prevent this compiler from
12883 # explicitly linking system object files so we need to strip them
12884 # from the output so that they don't get included in the library
12885 # dependencies.
12886 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"'
12887 ;;
12888 *)
12889 if test "$GXX" = yes; then
12890 if test $with_gnu_ld = no; then
12891 case $host_cpu in
12892 hppa*64*)
12893 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12894 ;;
12895 ia64*)
12896 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 ;;
12898 *)
12899 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'
12900 ;;
12901 esac
12902 fi
12903 else
12904 # FIXME: insert proper C++ library support
12905 ld_shlibs_CXX=no
12906 fi
12907 ;;
12908 esac
12909 ;;
12910
12911 interix[3-9]*)
12912 hardcode_direct_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12915 export_dynamic_flag_spec_CXX='${wl}-E'
12916 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12917 # Instead, shared libraries are loaded at an image base (0x10000000 by
12918 # default) and relocated if they conflict, which is a slow very memory
12919 # consuming and fragmenting process. To avoid this, we pick a random,
12920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12921 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12922 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'
12923 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'
12924 ;;
12925 irix5* | irix6*)
12926 case $cc_basename in
12927 CC*)
12928 # SGI C++
12929 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'
12930
12931 # Archives containing C++ object files must be created using
12932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12933 # necessary to make sure instantiated templates are included
12934 # in the archive.
12935 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12936 ;;
12937 *)
12938 if test "$GXX" = yes; then
12939 if test "$with_gnu_ld" = no; then
12940 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'
12941 else
12942 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'
12943 fi
12944 fi
12945 link_all_deplibs_CXX=yes
12946 ;;
12947 esac
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12949 hardcode_libdir_separator_CXX=:
12950 inherit_rpath_CXX=yes
12951 ;;
12952
12953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12954 case $cc_basename in
12955 KCC*)
12956 # Kuck and Associates, Inc. (KAI) C++ Compiler
12957
12958 # KCC will only create a shared library if the output file
12959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12960 # to its proper name (with version) after linking.
12961 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'
12962 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'
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12966 #
12967 # There doesn't appear to be a way to prevent this compiler from
12968 # explicitly linking system object files so we need to strip them
12969 # from the output so that they don't get included in the library
12970 # dependencies.
12971 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"'
12972
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975
12976 # Archives containing C++ object files must be created using
12977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12978 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12979 ;;
12980 icpc* | ecpc* )
12981 # Intel C++
12982 with_gnu_ld=yes
12983 # version 8.0 and above of icpc choke on multiply defined symbols
12984 # if we add $predep_objects and $postdep_objects, however 7.1 and
12985 # earlier do not add the objects themselves.
12986 case `$CC -V 2>&1` in
12987 *"Version 7."*)
12988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 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'
12990 ;;
12991 *) # Version 8.0 or newer
12992 tmp_idyn=
12993 case $host_cpu in
12994 ia64*) tmp_idyn=' -i_dynamic';;
12995 esac
12996 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12997 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'
12998 ;;
12999 esac
13000 archive_cmds_need_lc_CXX=no
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13004 ;;
13005 pgCC* | pgcpp*)
13006 # Portland Group C++ compiler
13007 case `$CC -V` in
13008 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13009 prelink_cmds_CXX='tpldir=Template.dir~
13010 rm -rf $tpldir~
13011 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13012 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13013 old_archive_cmds_CXX='tpldir=Template.dir~
13014 rm -rf $tpldir~
13015 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13016 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13017 $RANLIB $oldlib'
13018 archive_cmds_CXX='tpldir=Template.dir~
13019 rm -rf $tpldir~
13020 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13021 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13022 archive_expsym_cmds_CXX='tpldir=Template.dir~
13023 rm -rf $tpldir~
13024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13025 $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'
13026 ;;
13027 *) # Version 6 and above use weak symbols
13028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13029 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'
13030 ;;
13031 esac
13032
13033 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035 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'
13036 ;;
13037 cxx*)
13038 # Compaq C++
13039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 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'
13041
13042 runpath_var=LD_RUN_PATH
13043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13044 hardcode_libdir_separator_CXX=:
13045
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 #
13050 # There doesn't appear to be a way to prevent this compiler from
13051 # explicitly linking system object files so we need to strip them
13052 # from the output so that they don't get included in the library
13053 # dependencies.
13054 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'
13055 ;;
13056 xl* | mpixl* | bgxl*)
13057 # IBM XL 8.0 on PPC, with GNU ld
13058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13060 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 if test "x$supports_anon_versioning" = xyes; then
13062 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13064 echo "local: *; };" >> $output_objdir/$libname.ver~
13065 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13066 fi
13067 ;;
13068 *)
13069 case `$CC -V 2>&1 | sed 5q` in
13070 *Sun\ C*)
13071 # Sun C++ 5.9
13072 no_undefined_flag_CXX=' -zdefs'
13073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 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'
13075 hardcode_libdir_flag_spec_CXX='-R$libdir'
13076 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'
13077 compiler_needs_object_CXX=yes
13078
13079 # Not sure whether something based on
13080 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13081 # would be better.
13082 output_verbose_link_cmd='func_echo_all'
13083
13084 # Archives containing C++ object files must be created using
13085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13086 # necessary to make sure instantiated templates are included
13087 # in the archive.
13088 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13089 ;;
13090 esac
13091 ;;
13092 esac
13093 ;;
13094
13095 lynxos*)
13096 # FIXME: insert proper C++ library support
13097 ld_shlibs_CXX=no
13098 ;;
13099
13100 m88k*)
13101 # FIXME: insert proper C++ library support
13102 ld_shlibs_CXX=no
13103 ;;
13104
13105 mvs*)
13106 case $cc_basename in
13107 cxx*)
13108 # FIXME: insert proper C++ library support
13109 ld_shlibs_CXX=no
13110 ;;
13111 *)
13112 # FIXME: insert proper C++ library support
13113 ld_shlibs_CXX=no
13114 ;;
13115 esac
13116 ;;
13117
13118 netbsd*)
13119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13120 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13121 wlarc=
13122 hardcode_libdir_flag_spec_CXX='-R$libdir'
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 fi
13126 # Workaround some broken pre-1.5 toolchains
13127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13128 ;;
13129
13130 *nto* | *qnx*)
13131 ld_shlibs_CXX=yes
13132 ;;
13133
13134 openbsd2*)
13135 # C++ shared libraries are fairly broken
13136 ld_shlibs_CXX=no
13137 ;;
13138
13139 openbsd*)
13140 if test -f /usr/libexec/ld.so; then
13141 hardcode_direct_CXX=yes
13142 hardcode_shlibpath_var_CXX=no
13143 hardcode_direct_absolute_CXX=yes
13144 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13147 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13148 export_dynamic_flag_spec_CXX='${wl}-E'
13149 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13150 fi
13151 output_verbose_link_cmd=func_echo_all
13152 else
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156
13157 osf3* | osf4* | osf5*)
13158 case $cc_basename in
13159 KCC*)
13160 # Kuck and Associates, Inc. (KAI) C++ Compiler
13161
13162 # KCC will only create a shared library if the output file
13163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13164 # to its proper name (with version) after linking.
13165 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'
13166
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 # Archives containing C++ object files must be created using
13171 # the KAI C++ compiler.
13172 case $host in
13173 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13174 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13175 esac
13176 ;;
13177 RCC*)
13178 # Rational C++ 2.4.1
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13181 ;;
13182 cxx*)
13183 case $host in
13184 osf3*)
13185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13186 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'
13187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13188 ;;
13189 *)
13190 allow_undefined_flag_CXX=' -expect_unresolved \*'
13191 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'
13192 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13193 echo "-hidden">> $lib.exp~
13194 $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~
13195 $RM $lib.exp'
13196 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13197 ;;
13198 esac
13199
13200 hardcode_libdir_separator_CXX=:
13201
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 #
13206 # There doesn't appear to be a way to prevent this compiler from
13207 # explicitly linking system object files so we need to strip them
13208 # from the output so that they don't get included in the library
13209 # dependencies.
13210 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"'
13211 ;;
13212 *)
13213 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13214 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13215 case $host in
13216 osf3*)
13217 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'
13218 ;;
13219 *)
13220 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'
13221 ;;
13222 esac
13223
13224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13225 hardcode_libdir_separator_CXX=:
13226
13227 # Commands to make compiler produce verbose output that lists
13228 # what "hidden" libraries, object files and flags are used when
13229 # linking a shared library.
13230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13231
13232 else
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 fi
13236 ;;
13237 esac
13238 ;;
13239
13240 psos*)
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244
13245 sunos4*)
13246 case $cc_basename in
13247 CC*)
13248 # Sun C++ 4.x
13249 # FIXME: insert proper C++ library support
13250 ld_shlibs_CXX=no
13251 ;;
13252 lcc*)
13253 # Lucid
13254 # FIXME: insert proper C++ library support
13255 ld_shlibs_CXX=no
13256 ;;
13257 *)
13258 # FIXME: insert proper C++ library support
13259 ld_shlibs_CXX=no
13260 ;;
13261 esac
13262 ;;
13263
13264 solaris*)
13265 case $cc_basename in
13266 CC*)
13267 # Sun C++ 4.2, 5.x and Centerline C++
13268 archive_cmds_need_lc_CXX=yes
13269 no_undefined_flag_CXX=' -zdefs'
13270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13272 $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'
13273
13274 hardcode_libdir_flag_spec_CXX='-R$libdir'
13275 hardcode_shlibpath_var_CXX=no
13276 case $host_os in
13277 solaris2.[0-5] | solaris2.[0-5].*) ;;
13278 *)
13279 # The compiler driver will combine and reorder linker options,
13280 # but understands `-z linker_flag'.
13281 # Supported since Solaris 2.6 (maybe 2.5.1?)
13282 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13283 ;;
13284 esac
13285 link_all_deplibs_CXX=yes
13286
13287 output_verbose_link_cmd='func_echo_all'
13288
13289 # Archives containing C++ object files must be created using
13290 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13291 # necessary to make sure instantiated templates are included
13292 # in the archive.
13293 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13294 ;;
13295 gcx*)
13296 # Green Hills C++ Compiler
13297 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298
13299 # The C++ compiler must be used to create the archive.
13300 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13301 ;;
13302 *)
13303 # GNU C++ compiler with Solaris linker
13304 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13305 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13306 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13307 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13308 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13310
13311 # Commands to make compiler produce verbose output that lists
13312 # what "hidden" libraries, object files and flags are used when
13313 # linking a shared library.
13314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13315 else
13316 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13317 # platform.
13318 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13319 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13320 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13321
13322 # Commands to make compiler produce verbose output that lists
13323 # what "hidden" libraries, object files and flags are used when
13324 # linking a shared library.
13325 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13326 fi
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13329 case $host_os in
13330 solaris2.[0-5] | solaris2.[0-5].*) ;;
13331 *)
13332 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13333 ;;
13334 esac
13335 fi
13336 ;;
13337 esac
13338 ;;
13339
13340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13341 no_undefined_flag_CXX='${wl}-z,text'
13342 archive_cmds_need_lc_CXX=no
13343 hardcode_shlibpath_var_CXX=no
13344 runpath_var='LD_RUN_PATH'
13345
13346 case $cc_basename in
13347 CC*)
13348 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 ;;
13351 *)
13352 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 ;;
13355 esac
13356 ;;
13357
13358 sysv5* | sco3.2v5* | sco5v6*)
13359 # Note: We can NOT use -z defs as we might desire, because we do not
13360 # link with -lc, and that would cause any symbols used from libc to
13361 # always be unresolved, which means just about no library would
13362 # ever link correctly. If we're not using GNU ld we use -z text
13363 # though, which does catch some bad symbols but isn't as heavy-handed
13364 # as -z defs.
13365 no_undefined_flag_CXX='${wl}-z,text'
13366 allow_undefined_flag_CXX='${wl}-z,nodefs'
13367 archive_cmds_need_lc_CXX=no
13368 hardcode_shlibpath_var_CXX=no
13369 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13370 hardcode_libdir_separator_CXX=':'
13371 link_all_deplibs_CXX=yes
13372 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13373 runpath_var='LD_RUN_PATH'
13374
13375 case $cc_basename in
13376 CC*)
13377 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13380 '"$old_archive_cmds_CXX"
13381 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13382 '"$reload_cmds_CXX"
13383 ;;
13384 *)
13385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 esac
13389 ;;
13390
13391 tandem*)
13392 case $cc_basename in
13393 NCC*)
13394 # NonStop-UX NCC 3.20
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13397 ;;
13398 *)
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 ;;
13402 esac
13403 ;;
13404
13405 vxworks*)
0ecd0f1c
OH
13406 # For VxWorks ports, we assume the use of a GNU linker with
13407 # standard elf conventions.
13408 ld_shlibs_CXX=yes
5be7b669
L
13409 ;;
13410
13411 *)
13412 # FIXME: insert proper C++ library support
13413 ld_shlibs_CXX=no
13414 ;;
13415 esac
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13418$as_echo "$ld_shlibs_CXX" >&6; }
13419 test "$ld_shlibs_CXX" = no && can_build_shared=no
13420
13421 GCC_CXX="$GXX"
13422 LD_CXX="$LD"
13423
13424 ## CAVEAT EMPTOR:
13425 ## There is no encapsulation within the following macros, do not change
13426 ## the running order or otherwise move them around unless you know exactly
13427 ## what you are doing...
13428 # Dependencies to place before and after the object being linked:
13429predep_objects_CXX=
13430postdep_objects_CXX=
13431predeps_CXX=
13432postdeps_CXX=
13433compiler_lib_search_path_CXX=
13434
13435cat > conftest.$ac_ext <<_LT_EOF
13436class Foo
13437{
13438public:
13439 Foo (void) { a = 0; }
13440private:
13441 int a;
13442};
13443_LT_EOF
13444
13445if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13446 (eval $ac_compile) 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13449 test $ac_status = 0; }; then
13450 # Parse the compiler output and extract the necessary
13451 # objects, libraries and library flags.
13452
13453 # Sentinel used to keep track of whether or not we are before
13454 # the conftest object file.
13455 pre_test_object_deps_done=no
13456
13457 for p in `eval "$output_verbose_link_cmd"`; do
13458 case $p in
13459
13460 -L* | -R* | -l*)
13461 # Some compilers place space between "-{L,R}" and the path.
13462 # Remove the space.
13463 if test $p = "-L" ||
13464 test $p = "-R"; then
13465 prev=$p
13466 continue
13467 else
13468 prev=
13469 fi
13470
13471 if test "$pre_test_object_deps_done" = no; then
13472 case $p in
13473 -L* | -R*)
13474 # Internal compiler library paths should come after those
13475 # provided the user. The postdeps already come after the
13476 # user supplied libs so there is no need to process them.
13477 if test -z "$compiler_lib_search_path_CXX"; then
13478 compiler_lib_search_path_CXX="${prev}${p}"
13479 else
13480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13481 fi
13482 ;;
13483 # The "-l" case would never come before the object being
13484 # linked, so don't bother handling this case.
13485 esac
13486 else
13487 if test -z "$postdeps_CXX"; then
13488 postdeps_CXX="${prev}${p}"
13489 else
13490 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13491 fi
13492 fi
13493 ;;
13494
13495 *.$objext)
13496 # This assumes that the test object file only shows up
13497 # once in the compiler output.
13498 if test "$p" = "conftest.$objext"; then
13499 pre_test_object_deps_done=yes
13500 continue
13501 fi
13502
13503 if test "$pre_test_object_deps_done" = no; then
13504 if test -z "$predep_objects_CXX"; then
13505 predep_objects_CXX="$p"
13506 else
13507 predep_objects_CXX="$predep_objects_CXX $p"
13508 fi
13509 else
13510 if test -z "$postdep_objects_CXX"; then
13511 postdep_objects_CXX="$p"
13512 else
13513 postdep_objects_CXX="$postdep_objects_CXX $p"
13514 fi
13515 fi
13516 ;;
13517
13518 *) ;; # Ignore the rest.
13519
13520 esac
13521 done
13522
13523 # Clean up.
13524 rm -f a.out a.exe
13525else
13526 echo "libtool.m4: error: problem compiling CXX test program"
13527fi
13528
13529$RM -f confest.$objext
13530
13531# PORTME: override above test on systems where it is broken
13532case $host_os in
13533interix[3-9]*)
13534 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13535 # hack all around it, let's just trust "g++" to DTRT.
13536 predep_objects_CXX=
13537 postdep_objects_CXX=
13538 postdeps_CXX=
13539 ;;
13540
13541linux*)
13542 case `$CC -V 2>&1 | sed 5q` in
13543 *Sun\ C*)
13544 # Sun C++ 5.9
13545
13546 # The more standards-conforming stlport4 library is
13547 # incompatible with the Cstd library. Avoid specifying
13548 # it if it's in CXXFLAGS. Ignore libCrun as
13549 # -library=stlport4 depends on it.
13550 case " $CXX $CXXFLAGS " in
13551 *" -library=stlport4 "*)
13552 solaris_use_stlport4=yes
13553 ;;
13554 esac
13555
13556 if test "$solaris_use_stlport4" != yes; then
13557 postdeps_CXX='-library=Cstd -library=Crun'
13558 fi
13559 ;;
13560 esac
13561 ;;
13562
13563solaris*)
13564 case $cc_basename in
13565 CC*)
13566 # The more standards-conforming stlport4 library is
13567 # incompatible with the Cstd library. Avoid specifying
13568 # it if it's in CXXFLAGS. Ignore libCrun as
13569 # -library=stlport4 depends on it.
13570 case " $CXX $CXXFLAGS " in
13571 *" -library=stlport4 "*)
13572 solaris_use_stlport4=yes
13573 ;;
13574 esac
13575
13576 # Adding this requires a known-good setup of shared libraries for
13577 # Sun compiler versions before 5.6, else PIC objects from an old
13578 # archive will be linked into the output, leading to subtle bugs.
13579 if test "$solaris_use_stlport4" != yes; then
13580 postdeps_CXX='-library=Cstd -library=Crun'
13581 fi
13582 ;;
13583 esac
13584 ;;
13585esac
13586
13587
13588case " $postdeps_CXX " in
13589*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13590esac
13591 compiler_lib_search_dirs_CXX=
13592if test -n "${compiler_lib_search_path_CXX}"; then
13593 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13594fi
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626 lt_prog_compiler_wl_CXX=
13627lt_prog_compiler_pic_CXX=
13628lt_prog_compiler_static_CXX=
13629
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13631$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13632
13633 # C++ specific cases for pic, static, wl, etc.
13634 if test "$GXX" = yes; then
13635 lt_prog_compiler_wl_CXX='-Wl,'
13636 lt_prog_compiler_static_CXX='-static'
13637
13638 case $host_os in
13639 aix*)
13640 # All AIX code is PIC.
13641 if test "$host_cpu" = ia64; then
13642 # AIX 5 now supports IA64 processor
13643 lt_prog_compiler_static_CXX='-Bstatic'
13644 fi
13645 lt_prog_compiler_pic_CXX='-fPIC'
13646 ;;
13647
13648 amigaos*)
13649 case $host_cpu in
13650 powerpc)
13651 # see comment about AmigaOS4 .so support
13652 lt_prog_compiler_pic_CXX='-fPIC'
13653 ;;
13654 m68k)
13655 # FIXME: we need at least 68020 code to build shared libraries, but
13656 # adding the `-m68020' flag to GCC prevents building anything better,
13657 # like `-m68040'.
13658 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13659 ;;
13660 esac
13661 ;;
13662
13663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13664 # PIC is the default for these OSes.
13665 ;;
13666 mingw* | cygwin* | os2* | pw32* | cegcc*)
13667 # This hack is so that the source file can tell whether it is being
13668 # built for inclusion in a dll (and should export symbols for example).
13669 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13670 # (--disable-auto-import) libraries
13671 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13672 ;;
13673 darwin* | rhapsody*)
13674 # PIC is the default on this platform
13675 # Common symbols not allowed in MH_DYLIB files
13676 lt_prog_compiler_pic_CXX='-fno-common'
13677 ;;
13678 *djgpp*)
13679 # DJGPP does not support shared libraries at all
13680 lt_prog_compiler_pic_CXX=
13681 ;;
13682 haiku*)
13683 # PIC is the default for Haiku.
13684 # The "-static" flag exists, but is broken.
13685 lt_prog_compiler_static_CXX=
13686 ;;
13687 interix[3-9]*)
13688 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13689 # Instead, we relocate shared libraries at runtime.
13690 ;;
13691 sysv4*MP*)
13692 if test -d /usr/nec; then
13693 lt_prog_compiler_pic_CXX=-Kconform_pic
13694 fi
13695 ;;
13696 hpux*)
13697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13699 # sets the default TLS model and affects inlining.
13700 case $host_cpu in
13701 hppa*64*)
13702 ;;
13703 *)
13704 lt_prog_compiler_pic_CXX='-fPIC'
13705 ;;
13706 esac
13707 ;;
13708 *qnx* | *nto*)
13709 # QNX uses GNU C++, but need to define -shared option too, otherwise
13710 # it will coredump.
13711 lt_prog_compiler_pic_CXX='-fPIC -shared'
13712 ;;
13713 *)
13714 lt_prog_compiler_pic_CXX='-fPIC'
13715 ;;
13716 esac
13717 else
13718 case $host_os in
13719 aix[4-9]*)
13720 # All AIX code is PIC.
13721 if test "$host_cpu" = ia64; then
13722 # AIX 5 now supports IA64 processor
13723 lt_prog_compiler_static_CXX='-Bstatic'
13724 else
13725 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13726 fi
13727 ;;
13728 chorus*)
13729 case $cc_basename in
13730 cxch68*)
13731 # Green Hills C++ Compiler
13732 # _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"
13733 ;;
13734 esac
13735 ;;
13736 dgux*)
13737 case $cc_basename in
13738 ec++*)
13739 lt_prog_compiler_pic_CXX='-KPIC'
13740 ;;
13741 ghcx*)
13742 # Green Hills C++ Compiler
13743 lt_prog_compiler_pic_CXX='-pic'
13744 ;;
13745 *)
13746 ;;
13747 esac
13748 ;;
13749 freebsd* | dragonfly*)
13750 # FreeBSD uses GNU C++
13751 ;;
13752 hpux9* | hpux10* | hpux11*)
13753 case $cc_basename in
13754 CC*)
13755 lt_prog_compiler_wl_CXX='-Wl,'
13756 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13757 if test "$host_cpu" != ia64; then
13758 lt_prog_compiler_pic_CXX='+Z'
13759 fi
13760 ;;
13761 aCC*)
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13764 case $host_cpu in
13765 hppa*64*|ia64*)
13766 # +Z the default
13767 ;;
13768 *)
13769 lt_prog_compiler_pic_CXX='+Z'
13770 ;;
13771 esac
13772 ;;
13773 *)
13774 ;;
13775 esac
13776 ;;
13777 interix*)
13778 # This is c89, which is MS Visual C++ (no shared libs)
13779 # Anyone wants to do a port?
13780 ;;
13781 irix5* | irix6* | nonstopux*)
13782 case $cc_basename in
13783 CC*)
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_static_CXX='-non_shared'
13786 # CC pic flag -KPIC is the default.
13787 ;;
13788 *)
13789 ;;
13790 esac
13791 ;;
13792 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13793 case $cc_basename in
13794 KCC*)
13795 # KAI C++ Compiler
13796 lt_prog_compiler_wl_CXX='--backend -Wl,'
13797 lt_prog_compiler_pic_CXX='-fPIC'
13798 ;;
13799 ecpc* )
13800 # old Intel C++ for x86_64 which still supported -KPIC.
13801 lt_prog_compiler_wl_CXX='-Wl,'
13802 lt_prog_compiler_pic_CXX='-KPIC'
13803 lt_prog_compiler_static_CXX='-static'
13804 ;;
13805 icpc* )
13806 # Intel C++, used to be incompatible with GCC.
13807 # ICC 10 doesn't accept -KPIC any more.
13808 lt_prog_compiler_wl_CXX='-Wl,'
13809 lt_prog_compiler_pic_CXX='-fPIC'
13810 lt_prog_compiler_static_CXX='-static'
13811 ;;
13812 pgCC* | pgcpp*)
13813 # Portland Group C++ compiler
13814 lt_prog_compiler_wl_CXX='-Wl,'
13815 lt_prog_compiler_pic_CXX='-fpic'
13816 lt_prog_compiler_static_CXX='-Bstatic'
13817 ;;
13818 cxx*)
13819 # Compaq C++
13820 # Make sure the PIC flag is empty. It appears that all Alpha
13821 # Linux and Compaq Tru64 Unix objects are PIC.
13822 lt_prog_compiler_pic_CXX=
13823 lt_prog_compiler_static_CXX='-non_shared'
13824 ;;
13825 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13826 # IBM XL 8.0, 9.0 on PPC and BlueGene
13827 lt_prog_compiler_wl_CXX='-Wl,'
13828 lt_prog_compiler_pic_CXX='-qpic'
13829 lt_prog_compiler_static_CXX='-qstaticlink'
13830 ;;
13831 *)
13832 case `$CC -V 2>&1 | sed 5q` in
13833 *Sun\ C*)
13834 # Sun C++ 5.9
13835 lt_prog_compiler_pic_CXX='-KPIC'
13836 lt_prog_compiler_static_CXX='-Bstatic'
13837 lt_prog_compiler_wl_CXX='-Qoption ld '
13838 ;;
13839 esac
13840 ;;
13841 esac
13842 ;;
13843 lynxos*)
13844 ;;
13845 m88k*)
13846 ;;
13847 mvs*)
13848 case $cc_basename in
13849 cxx*)
13850 lt_prog_compiler_pic_CXX='-W c,exportall'
13851 ;;
13852 *)
13853 ;;
13854 esac
13855 ;;
13856 netbsd*)
13857 ;;
13858 *qnx* | *nto*)
13859 # QNX uses GNU C++, but need to define -shared option too, otherwise
13860 # it will coredump.
13861 lt_prog_compiler_pic_CXX='-fPIC -shared'
13862 ;;
13863 osf3* | osf4* | osf5*)
13864 case $cc_basename in
13865 KCC*)
13866 lt_prog_compiler_wl_CXX='--backend -Wl,'
13867 ;;
13868 RCC*)
13869 # Rational C++ 2.4.1
13870 lt_prog_compiler_pic_CXX='-pic'
13871 ;;
13872 cxx*)
13873 # Digital/Compaq C++
13874 lt_prog_compiler_wl_CXX='-Wl,'
13875 # Make sure the PIC flag is empty. It appears that all Alpha
13876 # Linux and Compaq Tru64 Unix objects are PIC.
13877 lt_prog_compiler_pic_CXX=
13878 lt_prog_compiler_static_CXX='-non_shared'
13879 ;;
13880 *)
13881 ;;
13882 esac
13883 ;;
13884 psos*)
13885 ;;
13886 solaris*)
13887 case $cc_basename in
13888 CC*)
13889 # Sun C++ 4.2, 5.x and Centerline C++
13890 lt_prog_compiler_pic_CXX='-KPIC'
13891 lt_prog_compiler_static_CXX='-Bstatic'
13892 lt_prog_compiler_wl_CXX='-Qoption ld '
13893 ;;
13894 gcx*)
13895 # Green Hills C++ Compiler
13896 lt_prog_compiler_pic_CXX='-PIC'
13897 ;;
13898 *)
13899 ;;
13900 esac
13901 ;;
13902 sunos4*)
13903 case $cc_basename in
13904 CC*)
13905 # Sun C++ 4.x
13906 lt_prog_compiler_pic_CXX='-pic'
13907 lt_prog_compiler_static_CXX='-Bstatic'
13908 ;;
13909 lcc*)
13910 # Lucid
13911 lt_prog_compiler_pic_CXX='-pic'
13912 ;;
13913 *)
13914 ;;
13915 esac
13916 ;;
13917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918 case $cc_basename in
13919 CC*)
13920 lt_prog_compiler_wl_CXX='-Wl,'
13921 lt_prog_compiler_pic_CXX='-KPIC'
13922 lt_prog_compiler_static_CXX='-Bstatic'
13923 ;;
13924 esac
13925 ;;
13926 tandem*)
13927 case $cc_basename in
13928 NCC*)
13929 # NonStop-UX NCC 3.20
13930 lt_prog_compiler_pic_CXX='-KPIC'
13931 ;;
13932 *)
13933 ;;
13934 esac
13935 ;;
13936 vxworks*)
13937 ;;
13938 *)
13939 lt_prog_compiler_can_build_shared_CXX=no
13940 ;;
13941 esac
13942 fi
13943
13944case $host_os in
13945 # For platforms which do not support PIC, -DPIC is meaningless:
13946 *djgpp*)
13947 lt_prog_compiler_pic_CXX=
13948 ;;
13949 *)
13950 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13951 ;;
13952esac
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13954$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13955
13956
13957
13958#
13959# Check to make sure the PIC flag actually works.
13960#
13961if test -n "$lt_prog_compiler_pic_CXX"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13963$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13964if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966else
13967 lt_cv_prog_compiler_pic_works_CXX=no
13968 ac_outfile=conftest.$ac_objext
13969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 # The option is referenced via a variable to avoid confusing sed.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>conftest.err)
13982 ac_status=$?
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s "$ac_outfile"; then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings other than the usual output.
13988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13991 lt_cv_prog_compiler_pic_works_CXX=yes
13992 fi
13993 fi
13994 $RM conftest*
13995
13996fi
13997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13998$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13999
14000if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14001 case $lt_prog_compiler_pic_CXX in
14002 "" | " "*) ;;
14003 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14004 esac
14005else
14006 lt_prog_compiler_pic_CXX=
14007 lt_prog_compiler_can_build_shared_CXX=no
14008fi
14009
14010fi
14011
14012
14013
14014#
14015# Check to make sure the static flag actually works.
14016#
14017wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14020if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022else
14023 lt_cv_prog_compiler_static_works_CXX=no
14024 save_LDFLAGS="$LDFLAGS"
14025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14028 # The linker can only warn and ignore the option if not recognized
14029 # So say no if there are warnings
14030 if test -s conftest.err; then
14031 # Append any errors to the config.log.
14032 cat conftest.err 1>&5
14033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14035 if diff conftest.exp conftest.er2 >/dev/null; then
14036 lt_cv_prog_compiler_static_works_CXX=yes
14037 fi
14038 else
14039 lt_cv_prog_compiler_static_works_CXX=yes
14040 fi
14041 fi
14042 $RM -r conftest*
14043 LDFLAGS="$save_LDFLAGS"
14044
14045fi
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14047$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14048
14049if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14050 :
14051else
14052 lt_prog_compiler_static_CXX=
14053fi
14054
14055
14056
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14059$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14060if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062else
14063 lt_cv_prog_compiler_c_o_CXX=no
14064 $RM -r conftest 2>/dev/null
14065 mkdir conftest
14066 cd conftest
14067 mkdir out
14068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14069
14070 lt_compiler_flag="-o out/conftest2.$ac_objext"
14071 # Insert the option either (1) after the last *FLAGS variable, or
14072 # (2) before a word containing "conftest.", or (3) at the end.
14073 # Note that $ac_compile itself does not contain backslashes and begins
14074 # with a dollar sign (not a hyphen), so the echo should work correctly.
14075 lt_compile=`echo "$ac_compile" | $SED \
14076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078 -e 's:$: $lt_compiler_flag:'`
14079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14080 (eval "$lt_compile" 2>out/conftest.err)
14081 ac_status=$?
14082 cat out/conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14085 then
14086 # The compiler can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14091 lt_cv_prog_compiler_c_o_CXX=yes
14092 fi
14093 fi
14094 chmod u+w . 2>&5
14095 $RM conftest*
14096 # SGI C++ compiler will create directory out/ii_files/ for
14097 # template instantiation
14098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14099 $RM out/* && rmdir out
14100 cd ..
14101 $RM -r conftest
14102 $RM conftest*
14103
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14106$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14107
14108
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14112if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114else
14115 lt_cv_prog_compiler_c_o_CXX=no
14116 $RM -r conftest 2>/dev/null
14117 mkdir conftest
14118 cd conftest
14119 mkdir out
14120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14121
14122 lt_compiler_flag="-o out/conftest2.$ac_objext"
14123 # Insert the option either (1) after the last *FLAGS variable, or
14124 # (2) before a word containing "conftest.", or (3) at the end.
14125 # Note that $ac_compile itself does not contain backslashes and begins
14126 # with a dollar sign (not a hyphen), so the echo should work correctly.
14127 lt_compile=`echo "$ac_compile" | $SED \
14128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14130 -e 's:$: $lt_compiler_flag:'`
14131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14132 (eval "$lt_compile" 2>out/conftest.err)
14133 ac_status=$?
14134 cat out/conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14137 then
14138 # The compiler can only warn and ignore the option if not recognized
14139 # So say no if there are warnings
14140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14143 lt_cv_prog_compiler_c_o_CXX=yes
14144 fi
14145 fi
14146 chmod u+w . 2>&5
14147 $RM conftest*
14148 # SGI C++ compiler will create directory out/ii_files/ for
14149 # template instantiation
14150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14151 $RM out/* && rmdir out
14152 cd ..
14153 $RM -r conftest
14154 $RM conftest*
14155
14156fi
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14159
14160
14161
14162
14163hard_links="nottested"
14164if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14165 # do not overwrite the value of need_locks provided by the user
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14167$as_echo_n "checking if we can lock with hard links... " >&6; }
14168 hard_links=yes
14169 $RM conftest*
14170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14171 touch conftest.a
14172 ln conftest.a conftest.b 2>&5 || hard_links=no
14173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14175$as_echo "$hard_links" >&6; }
14176 if test "$hard_links" = no; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14178$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14179 need_locks=warn
14180 fi
14181else
14182 need_locks=no
14183fi
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14189
14190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191 case $host_os in
14192 aix[4-9]*)
14193 # If we're using GNU nm, then we don't want the "-C" option.
14194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14195 # Also, AIX nm treats weak defined symbols like other global defined
14196 # symbols, whereas GNU nm marks them as "W".
14197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14198 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'
14199 else
14200 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'
14201 fi
14202 ;;
14203 pw32*)
14204 export_symbols_cmds_CXX="$ltdll_cmds"
14205 ;;
14206 cygwin* | mingw* | cegcc*)
14207 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'
14208 ;;
14209 *)
14210 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14211 ;;
14212 esac
14213 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14214
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14216$as_echo "$ld_shlibs_CXX" >&6; }
14217test "$ld_shlibs_CXX" = no && can_build_shared=no
14218
14219with_gnu_ld_CXX=$with_gnu_ld
14220
14221
14222
14223
14224
14225
14226#
14227# Do we need to explicitly link libc?
14228#
14229case "x$archive_cmds_need_lc_CXX" in
14230x|xyes)
14231 # Assume -lc should be added
14232 archive_cmds_need_lc_CXX=yes
14233
14234 if test "$enable_shared" = yes && test "$GCC" = yes; then
14235 case $archive_cmds_CXX in
14236 *'~'*)
14237 # FIXME: we may have to deal with multi-command sequences.
14238 ;;
14239 '$CC '*)
14240 # Test whether the compiler implicitly links with -lc since on some
14241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14242 # to ld, don't add -lc before -lgcc.
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14244$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14245if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14246 $as_echo_n "(cached) " >&6
14247else
14248 $RM conftest*
14249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14250
14251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14252 (eval $ac_compile) 2>&5
14253 ac_status=$?
14254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14255 test $ac_status = 0; } 2>conftest.err; then
14256 soname=conftest
14257 lib=conftest
14258 libobjs=conftest.$ac_objext
14259 deplibs=
14260 wl=$lt_prog_compiler_wl_CXX
14261 pic_flag=$lt_prog_compiler_pic_CXX
14262 compiler_flags=-v
14263 linker_flags=-v
14264 verstring=
14265 output_objdir=.
14266 libname=conftest
14267 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14268 allow_undefined_flag_CXX=
14269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14270 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14271 ac_status=$?
14272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14273 test $ac_status = 0; }
14274 then
14275 lt_cv_archive_cmds_need_lc_CXX=no
14276 else
14277 lt_cv_archive_cmds_need_lc_CXX=yes
14278 fi
14279 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14280 else
14281 cat conftest.err 1>&5
14282 fi
14283 $RM conftest*
14284
14285fi
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14287$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14288 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14289 ;;
14290 esac
14291 fi
14292 ;;
14293esac
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14359$as_echo_n "checking dynamic linker characteristics... " >&6; }
14360
14361library_names_spec=
14362libname_spec='lib$name'
14363soname_spec=
14364shrext_cmds=".so"
14365postinstall_cmds=
14366postuninstall_cmds=
14367finish_cmds=
14368finish_eval=
14369shlibpath_var=
14370shlibpath_overrides_runpath=unknown
14371version_type=none
14372dynamic_linker="$host_os ld.so"
14373sys_lib_dlsearch_path_spec="/lib /usr/lib"
14374need_lib_prefix=unknown
14375hardcode_into_libs=no
14376
14377# when you set need_version to no, make sure it does not cause -set_version
14378# flags to be left without arguments
14379need_version=unknown
14380
14381case $host_os in
14382aix3*)
14383 version_type=linux
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14385 shlibpath_var=LIBPATH
14386
14387 # AIX 3 has no versioning support, so we append a major version to the name.
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 ;;
14390
14391aix[4-9]*)
14392 version_type=linux
14393 need_lib_prefix=no
14394 need_version=no
14395 hardcode_into_libs=yes
14396 if test "$host_cpu" = ia64; then
14397 # AIX 5 supports IA64
14398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14399 shlibpath_var=LD_LIBRARY_PATH
14400 else
14401 # With GCC up to 2.95.x, collect2 would create an import file
14402 # for dependence libraries. The import file would start with
14403 # the line `#! .'. This would cause the generated library to
14404 # depend on `.', always an invalid library. This was fixed in
14405 # development snapshots of GCC prior to 3.0.
14406 case $host_os in
14407 aix4 | aix4.[01] | aix4.[01].*)
14408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14409 echo ' yes '
14410 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14411 :
14412 else
14413 can_build_shared=no
14414 fi
14415 ;;
14416 esac
14417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14418 # soname into executable. Probably we can add versioning support to
14419 # collect2, so additional links can be useful in future.
14420 if test "$aix_use_runtimelinking" = yes; then
14421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14422 # instead of lib<name>.a to let people know that these are not
14423 # typical AIX shared libraries.
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 else
14426 # We preserve .a as extension for shared libraries through AIX4.2
14427 # and later when we are not doing run time linking.
14428 library_names_spec='${libname}${release}.a $libname.a'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 fi
14431 shlibpath_var=LIBPATH
14432 fi
14433 ;;
14434
14435amigaos*)
14436 case $host_cpu in
14437 powerpc)
14438 # Since July 2007 AmigaOS4 officially supports .so libraries.
14439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 ;;
14442 m68k)
14443 library_names_spec='$libname.ixlibrary $libname.a'
14444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14445 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'
14446 ;;
14447 esac
14448 ;;
14449
14450beos*)
14451 library_names_spec='${libname}${shared_ext}'
14452 dynamic_linker="$host_os ld.so"
14453 shlibpath_var=LIBRARY_PATH
14454 ;;
14455
14456bsdi[45]*)
14457 version_type=linux
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465 # the default ld.so.conf also contains /usr/contrib/lib and
14466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467 # libtool to hard-code these into programs
14468 ;;
14469
14470cygwin* | mingw* | pw32* | cegcc*)
14471 version_type=windows
14472 shrext_cmds=".dll"
14473 need_version=no
14474 need_lib_prefix=no
14475
14476 case $GCC,$host_os in
14477 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14478 library_names_spec='$libname.dll.a'
14479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14480 postinstall_cmds='base_file=`basename \${file}`~
14481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14482 dldir=$destdir/`dirname \$dlpath`~
14483 test -d \$dldir || mkdir -p \$dldir~
14484 $install_prog $dir/$dlname \$dldir/$dlname~
14485 chmod a+x \$dldir/$dlname~
14486 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14487 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14488 fi'
14489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14490 dlpath=$dir/\$dldll~
14491 $RM \$dlpath'
14492 shlibpath_overrides_runpath=yes
14493
14494 case $host_os in
14495 cygwin*)
14496 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14497 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14498
14499 ;;
14500 mingw* | cegcc*)
14501 # MinGW DLLs use traditional 'lib' prefix
14502 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14503 ;;
14504 pw32*)
14505 # pw32 DLLs use 'pw' prefix rather than 'lib'
14506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14507 ;;
14508 esac
14509 ;;
14510
14511 *)
14512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14513 ;;
14514 esac
14515 dynamic_linker='Win32 ld.exe'
14516 # FIXME: first we should search . and the directory the executable is in
14517 shlibpath_var=PATH
14518 ;;
14519
14520darwin* | rhapsody*)
14521 dynamic_linker="$host_os dyld"
14522 version_type=darwin
14523 need_lib_prefix=no
14524 need_version=no
14525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14526 soname_spec='${libname}${release}${major}$shared_ext'
14527 shlibpath_overrides_runpath=yes
14528 shlibpath_var=DYLD_LIBRARY_PATH
14529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14530
14531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14532 ;;
14533
14534dgux*)
14535 version_type=linux
14536 need_lib_prefix=no
14537 need_version=no
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 ;;
14542
14543freebsd* | dragonfly*)
14544 # DragonFly does not have aout. When/if they implement a new
14545 # versioning mechanism, adjust this.
14546 if test -x /usr/bin/objformat; then
14547 objformat=`/usr/bin/objformat`
14548 else
14549 case $host_os in
14550 freebsd[23].*) objformat=aout ;;
14551 *) objformat=elf ;;
14552 esac
14553 fi
14554 version_type=freebsd-$objformat
14555 case $version_type in
14556 freebsd-elf*)
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14558 need_version=no
14559 need_lib_prefix=no
14560 ;;
14561 freebsd-*)
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14563 need_version=yes
14564 ;;
14565 esac
14566 shlibpath_var=LD_LIBRARY_PATH
14567 case $host_os in
14568 freebsd2.*)
14569 shlibpath_overrides_runpath=yes
14570 ;;
14571 freebsd3.[01]* | freebsdelf3.[01]*)
14572 shlibpath_overrides_runpath=yes
14573 hardcode_into_libs=yes
14574 ;;
14575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14577 shlibpath_overrides_runpath=no
14578 hardcode_into_libs=yes
14579 ;;
14580 *) # from 4.6 on, and DragonFly
14581 shlibpath_overrides_runpath=yes
14582 hardcode_into_libs=yes
14583 ;;
14584 esac
14585 ;;
14586
14587haiku*)
14588 version_type=linux
14589 need_lib_prefix=no
14590 need_version=no
14591 dynamic_linker="$host_os runtime_loader"
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 shlibpath_var=LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
ead5103c 14596 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
5be7b669
L
14597 hardcode_into_libs=yes
14598 ;;
14599
14600hpux9* | hpux10* | hpux11*)
14601 # Give a soname corresponding to the major version so that dld.sl refuses to
14602 # link against other versions.
14603 version_type=sunos
14604 need_lib_prefix=no
14605 need_version=no
14606 case $host_cpu in
14607 ia64*)
14608 shrext_cmds='.so'
14609 hardcode_into_libs=yes
14610 dynamic_linker="$host_os dld.so"
14611 shlibpath_var=LD_LIBRARY_PATH
14612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 if test "X$HPUX_IA64_MODE" = X32; then
14616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14617 else
14618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14619 fi
14620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14621 ;;
14622 hppa*64*)
14623 shrext_cmds='.sl'
14624 hardcode_into_libs=yes
14625 dynamic_linker="$host_os dld.sl"
14626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14632 ;;
14633 *)
14634 shrext_cmds='.sl'
14635 dynamic_linker="$host_os dld.sl"
14636 shlibpath_var=SHLIB_PATH
14637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 ;;
14641 esac
14642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14643 postinstall_cmds='chmod 555 $lib'
14644 # or fails outright, so override atomically:
14645 install_override_mode=555
14646 ;;
14647
14648interix[3-9]*)
14649 version_type=linux
14650 need_lib_prefix=no
14651 need_version=no
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=no
14657 hardcode_into_libs=yes
14658 ;;
14659
14660irix5* | irix6* | nonstopux*)
14661 case $host_os in
14662 nonstopux*) version_type=nonstopux ;;
14663 *)
14664 if test "$lt_cv_prog_gnu_ld" = yes; then
14665 version_type=linux
14666 else
14667 version_type=irix
14668 fi ;;
14669 esac
14670 need_lib_prefix=no
14671 need_version=no
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14674 case $host_os in
14675 irix5* | nonstopux*)
14676 libsuff= shlibsuff=
14677 ;;
14678 *)
14679 case $LD in # libtool.m4 will add one of these switches to LD
14680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14681 libsuff= shlibsuff= libmagic=32-bit;;
14682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14683 libsuff=32 shlibsuff=N32 libmagic=N32;;
14684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14686 *) libsuff= shlibsuff= libmagic=never-match;;
14687 esac
14688 ;;
14689 esac
14690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14691 shlibpath_overrides_runpath=no
14692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14694 hardcode_into_libs=yes
14695 ;;
14696
14697# No shared lib support for Linux oldld, aout, or coff.
14698linux*oldld* | linux*aout* | linux*coff*)
14699 dynamic_linker=no
14700 ;;
14701
14702# This must be Linux ELF.
14703
14704# uclinux* changes (here and below) have been submitted to the libtool
14705# project, but have not yet been accepted: they are GCC-local changes
14706# for the time being. (See
14707# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14708linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14709 version_type=linux
14710 need_lib_prefix=no
14711 need_version=no
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=no
14717
14718 # Some binutils ld are patched to set DT_RUNPATH
14719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14720 $as_echo_n "(cached) " >&6
14721else
14722 lt_cv_shlibpath_overrides_runpath=no
14723 save_LDFLAGS=$LDFLAGS
14724 save_libdir=$libdir
14725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h. */
14729
14730int
14731main ()
14732{
14733
14734 ;
14735 return 0;
14736}
14737_ACEOF
14738if ac_fn_cxx_try_link "$LINENO"; then :
14739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14740 lt_cv_shlibpath_overrides_runpath=yes
14741fi
14742fi
14743rm -f core conftest.err conftest.$ac_objext \
14744 conftest$ac_exeext conftest.$ac_ext
14745 LDFLAGS=$save_LDFLAGS
14746 libdir=$save_libdir
14747
14748fi
14749
14750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14751
14752 # This implies no fast_install, which is unacceptable.
14753 # Some rework will be needed to allow for fast_install
14754 # before this can be enabled.
14755 hardcode_into_libs=yes
14756
14757 # Append ld.so.conf contents to the search path
14758 if test -f /etc/ld.so.conf; then
14759 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' ' '`
14760 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14761 fi
14762
14763 # We used to test for /lib/ld.so.1 and disable shared libraries on
14764 # powerpc, because MkLinux only supported shared libraries with the
14765 # GNU dynamic linker. Since this was broken with cross compilers,
14766 # most powerpc-linux boxes support dynamic linking these days and
14767 # people can always --disable-shared, the test was removed, and we
14768 # assume the GNU/Linux dynamic linker is in use.
14769 dynamic_linker='GNU/Linux ld.so'
14770 ;;
14771
14772netbsd*)
14773 version_type=sunos
14774 need_lib_prefix=no
14775 need_version=no
14776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14779 dynamic_linker='NetBSD (a.out) ld.so'
14780 else
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 dynamic_linker='NetBSD ld.elf_so'
14784 fi
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=yes
14787 hardcode_into_libs=yes
14788 ;;
14789
14790newsos6)
14791 version_type=linux
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=yes
14795 ;;
14796
14797*nto* | *qnx*)
14798 version_type=qnx
14799 need_lib_prefix=no
14800 need_version=no
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 dynamic_linker='ldqnx.so'
14807 ;;
14808
14809openbsd*)
14810 version_type=sunos
14811 sys_lib_dlsearch_path_spec="/usr/lib"
14812 need_lib_prefix=no
14813 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14814 case $host_os in
14815 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14816 *) need_version=no ;;
14817 esac
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14822 case $host_os in
14823 openbsd2.[89] | openbsd2.[89].*)
14824 shlibpath_overrides_runpath=no
14825 ;;
14826 *)
14827 shlibpath_overrides_runpath=yes
14828 ;;
14829 esac
14830 else
14831 shlibpath_overrides_runpath=yes
14832 fi
14833 ;;
14834
14835os2*)
14836 libname_spec='$name'
14837 shrext_cmds=".dll"
14838 need_lib_prefix=no
14839 library_names_spec='$libname${shared_ext} $libname.a'
14840 dynamic_linker='OS/2 ld.exe'
14841 shlibpath_var=LIBPATH
14842 ;;
14843
14844osf3* | osf4* | osf5*)
14845 version_type=osf
14846 need_lib_prefix=no
14847 need_version=no
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14852 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14853 ;;
14854
14855rdos*)
14856 dynamic_linker=no
14857 ;;
14858
14859solaris*)
14860 version_type=linux
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 # ldd complains unless libraries are executable
14869 postinstall_cmds='chmod +x $lib'
14870 ;;
14871
14872sunos4*)
14873 version_type=sunos
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=yes
14878 if test "$with_gnu_ld" = yes; then
14879 need_lib_prefix=no
14880 fi
14881 need_version=yes
14882 ;;
14883
14884sysv4 | sysv4.3*)
14885 version_type=linux
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 case $host_vendor in
14890 sni)
14891 shlibpath_overrides_runpath=no
14892 need_lib_prefix=no
14893 runpath_var=LD_RUN_PATH
14894 ;;
14895 siemens)
14896 need_lib_prefix=no
14897 ;;
14898 motorola)
14899 need_lib_prefix=no
14900 need_version=no
14901 shlibpath_overrides_runpath=no
14902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14903 ;;
14904 esac
14905 ;;
14906
14907sysv4*MP*)
14908 if test -d /usr/nec ;then
14909 version_type=linux
14910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14911 soname_spec='$libname${shared_ext}.$major'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 fi
14914 ;;
14915
14916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14917 version_type=freebsd-elf
14918 need_lib_prefix=no
14919 need_version=no
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=yes
14924 hardcode_into_libs=yes
14925 if test "$with_gnu_ld" = yes; then
14926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14927 else
14928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14929 case $host_os in
14930 sco3.2v5*)
14931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14932 ;;
14933 esac
14934 fi
14935 sys_lib_dlsearch_path_spec='/usr/lib'
14936 ;;
14937
14938tpf*)
14939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14940 version_type=linux
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=no
14946 hardcode_into_libs=yes
14947 ;;
14948
14949uts4*)
14950 version_type=linux
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 ;;
14955
0ecd0f1c
OH
14956# Shared libraries for VwWorks, >= 7 only at this stage
14957# and (fpic) still incompatible with "large" code models
14958# in a few configurations. Only for RTP mode in any case,
14959# and upon explicit request at configure time.
14960vxworks7*)
14961 dynamic_linker=no
14962 case ${with_multisubdir}-${enable_shared} in
14963 *large*)
14964 ;;
14965 *mrtp*-yes)
14966 version_type=linux
14967 need_lib_prefix=no
14968 need_version=no
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14971 dynamic_linker="$host_os module_loader"
14972 ;;
14973 esac
14974 ;;
5be7b669
L
14975*)
14976 dynamic_linker=no
14977 ;;
14978esac
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14980$as_echo "$dynamic_linker" >&6; }
14981test "$dynamic_linker" = no && can_build_shared=no
14982
14983variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14984if test "$GCC" = yes; then
14985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14986fi
14987
14988if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14989 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14990fi
14991if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14992 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14993fi
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15033$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15034hardcode_action_CXX=
15035if test -n "$hardcode_libdir_flag_spec_CXX" ||
15036 test -n "$runpath_var_CXX" ||
15037 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15038
15039 # We can hardcode non-existent directories.
15040 if test "$hardcode_direct_CXX" != no &&
15041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15042 # have to relink, otherwise we might link with an installed library
15043 # when we should be linking with a yet-to-be-installed one
15044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15045 test "$hardcode_minus_L_CXX" != no; then
15046 # Linking always hardcodes the temporary library directory.
15047 hardcode_action_CXX=relink
15048 else
15049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15050 hardcode_action_CXX=immediate
15051 fi
15052else
15053 # We cannot hardcode anything, or else we can only hardcode existing
15054 # directories.
15055 hardcode_action_CXX=unsupported
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15058$as_echo "$hardcode_action_CXX" >&6; }
15059
15060if test "$hardcode_action_CXX" = relink ||
15061 test "$inherit_rpath_CXX" = yes; then
15062 # Fast installation is not supported
15063 enable_fast_install=no
15064elif test "$shlibpath_overrides_runpath" = yes ||
15065 test "$enable_shared" = no; then
15066 # Fast installation is not necessary
15067 enable_fast_install=needless
15068fi
15069
15070
15071
15072
15073
15074
15075
15076 fi # test -n "$compiler"
15077
15078 CC=$lt_save_CC
15079 LDCXX=$LD
15080 LD=$lt_save_LD
15081 GCC=$lt_save_GCC
15082 with_gnu_ld=$lt_save_with_gnu_ld
15083 lt_cv_path_LDCXX=$lt_cv_path_LD
15084 lt_cv_path_LD=$lt_save_path_LD
15085 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15086 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15087fi # test "$_lt_caught_CXX_error" != yes
15088
15089ac_ext=c
15090ac_cpp='$CPP $CPPFLAGS'
15091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15093ac_compiler_gnu=$ac_cv_c_compiler_gnu
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107 ac_config_commands="$ac_config_commands libtool"
15108
15109
15110
15111
15112# Only expand once:
15113
15114
6a6d3817
IS
15115 if test x$enable_darwin_at_rpath = xyes; then
15116 ENABLE_DARWIN_AT_RPATH_TRUE=
15117 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15118else
15119 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15120 ENABLE_DARWIN_AT_RPATH_FALSE=
15121fi
15122
5be7b669
L
15123
15124if test -n "$ac_tool_prefix"; then
15125 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
15126set dummy ${ac_tool_prefix}readelf; ac_word=$2
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128$as_echo_n "checking for $ac_word... " >&6; }
15129if ${ac_cv_prog_READELF+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131else
15132 if test -n "$READELF"; then
15133 ac_cv_prog_READELF="$READELF" # Let the user override the test.
15134else
15135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136for as_dir in $PATH
15137do
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
15143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15145 fi
15146done
15147 done
15148IFS=$as_save_IFS
15149
15150fi
15151fi
15152READELF=$ac_cv_prog_READELF
15153if test -n "$READELF"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
15155$as_echo "$READELF" >&6; }
15156else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158$as_echo "no" >&6; }
15159fi
15160
15161
15162fi
15163if test -z "$ac_cv_prog_READELF"; then
15164 ac_ct_READELF=$READELF
15165 # Extract the first word of "readelf", so it can be a program name with args.
15166set dummy readelf; ac_word=$2
15167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15168$as_echo_n "checking for $ac_word... " >&6; }
15169if ${ac_cv_prog_ac_ct_READELF+:} false; then :
15170 $as_echo_n "(cached) " >&6
15171else
15172 if test -n "$ac_ct_READELF"; then
15173 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
15174else
15175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15176for as_dir in $PATH
15177do
15178 IFS=$as_save_IFS
15179 test -z "$as_dir" && as_dir=.
15180 for ac_exec_ext in '' $ac_executable_extensions; do
15181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15182 ac_cv_prog_ac_ct_READELF="readelf"
15183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15184 break 2
15185 fi
15186done
15187 done
15188IFS=$as_save_IFS
15189
15190fi
15191fi
15192ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
15193if test -n "$ac_ct_READELF"; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
15195$as_echo "$ac_ct_READELF" >&6; }
15196else
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15198$as_echo "no" >&6; }
15199fi
15200
15201 if test "x$ac_ct_READELF" = x; then
15202 READELF=""
15203 else
15204 case $cross_compiling:$ac_tool_warned in
15205yes:)
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15208ac_tool_warned=yes ;;
15209esac
15210 READELF=$ac_ct_READELF
15211 fi
15212else
15213 READELF="$ac_cv_prog_READELF"
15214fi
15215
15216
15217# Test for 64-bit build.
15218# The cast to long int works around a bug in the HP C Compiler
15219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15221# This bug is HP SR number 8606223364.
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15223$as_echo_n "checking size of size_t... " >&6; }
15224if ${ac_cv_sizeof_size_t+:} false; then :
15225 $as_echo_n "(cached) " >&6
15226else
15227 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15228
15229else
15230 if test "$ac_cv_type_size_t" = yes; then
15231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15233as_fn_error 77 "cannot compute sizeof (size_t)
15234See \`config.log' for more details" "$LINENO" 5; }
15235 else
15236 ac_cv_sizeof_size_t=0
15237 fi
15238fi
15239
15240fi
15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15242$as_echo "$ac_cv_sizeof_size_t" >&6; }
15243
15244
15245
15246cat >>confdefs.h <<_ACEOF
15247#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15248_ACEOF
15249
15250
15251
15252cat > local.exp <<EOF
15253set CC_FOR_TARGET "$CC"
15254set CXX_FOR_TARGET "$CXX"
15255set compiler_vendor "$ax_cv_c_compiler_vendor"
15256EOF
15257
15258
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15260$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15261 # Check whether --enable-maintainer-mode was given.
15262if test "${enable_maintainer_mode+set}" = set; then :
15263 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15264else
15265 USE_MAINTAINER_MODE=no
15266fi
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15269$as_echo "$USE_MAINTAINER_MODE" >&6; }
15270 if test $USE_MAINTAINER_MODE = yes; then
15271 MAINTAINER_MODE_TRUE=
15272 MAINTAINER_MODE_FALSE='#'
15273else
15274 MAINTAINER_MODE_TRUE='#'
15275 MAINTAINER_MODE_FALSE=
15276fi
15277
15278 MAINT=$MAINTAINER_MODE_TRUE
15279
15280
15281
15282for ac_header in sys/memfd.h
15283do :
15284 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15285if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
15286 cat >>confdefs.h <<_ACEOF
15287#define HAVE_SYS_MEMFD_H 1
15288_ACEOF
15289
15290fi
15291
15292done
15293
15294for ac_func in memfd_create
15295do :
15296 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15297if test "x$ac_cv_func_memfd_create" = xyes; then :
15298 cat >>confdefs.h <<_ACEOF
15299#define HAVE_MEMFD_CREATE 1
15300_ACEOF
15301
15302fi
15303done
15304
15305
15306for ac_header in sys/mman.h
15307do :
15308 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15309if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15310 cat >>confdefs.h <<_ACEOF
15311#define HAVE_SYS_MMAN_H 1
15312_ACEOF
15313
15314fi
15315
15316done
15317
15318for ac_func in mmap mkostemp mkstemp
15319do :
15320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15321ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15322if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15323 cat >>confdefs.h <<_ACEOF
15324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15325_ACEOF
15326
15327fi
15328done
15329
15330
15331ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15332if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15333 libffi_header_sys_mman_h=yes
15334else
15335 libffi_header_sys_mman_h=no
15336fi
15337
15338
15339ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15340if test "x$ac_cv_func_mmap" = xyes; then :
15341 libffi_func_mmap=yes
15342else
15343 libffi_func_mmap=no
15344fi
15345
15346if test "$libffi_header_sys_mman_h" != yes \
15347 || test "$libffi_func_mmap" != yes; then
15348 ac_cv_func_mmap_file=no
15349 ac_cv_func_mmap_dev_zero=no
15350 ac_cv_func_mmap_anon=no
15351else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15353$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15354if ${ac_cv_func_mmap_file+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356else
15357 # Add a system to this blacklist if
15358 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15359 # memory area containing the same data that you'd get if you applied
15360 # read() to the same fd. The only system known to have a problem here
15361 # is VMS, where text files have record structure.
15362 case "$host_os" in
15363 vms* | ultrix*)
15364 ac_cv_func_mmap_file=no ;;
15365 *)
15366 ac_cv_func_mmap_file=yes;;
15367 esac
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15370$as_echo "$ac_cv_func_mmap_file" >&6; }
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15372$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15373if ${ac_cv_func_mmap_dev_zero+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375else
15376 # Add a system to this blacklist if it has mmap() but /dev/zero
15377 # does not exist, or if mmapping /dev/zero does not give anonymous
15378 # zeroed pages with both the following properties:
15379 # 1. If you map N consecutive pages in with one call, and then
15380 # unmap any subset of those pages, the pages that were not
15381 # explicitly unmapped remain accessible.
15382 # 2. If you map two adjacent blocks of memory and then unmap them
15383 # both at once, they must both go away.
15384 # Systems known to be in this category are Windows (all variants),
15385 # VMS, and Darwin.
15386 case "$host_os" in
15387 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15388 ac_cv_func_mmap_dev_zero=no ;;
15389 *)
15390 ac_cv_func_mmap_dev_zero=yes;;
15391 esac
15392fi
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15394$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15395
15396 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15398$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15399if ${ac_cv_decl_map_anon+:} false; then :
15400 $as_echo_n "(cached) " >&6
15401else
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h. */
15404#include <sys/types.h>
15405#include <sys/mman.h>
15406#include <unistd.h>
15407
15408#ifndef MAP_ANONYMOUS
15409#define MAP_ANONYMOUS MAP_ANON
15410#endif
15411
15412int
15413main ()
15414{
15415int n = MAP_ANONYMOUS;
15416 ;
15417 return 0;
15418}
15419_ACEOF
15420if ac_fn_c_try_compile "$LINENO"; then :
15421 ac_cv_decl_map_anon=yes
15422else
15423 ac_cv_decl_map_anon=no
15424fi
15425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426fi
15427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15428$as_echo "$ac_cv_decl_map_anon" >&6; }
15429
15430 if test $ac_cv_decl_map_anon = no; then
15431 ac_cv_func_mmap_anon=no
15432 else
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15434$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15435if ${ac_cv_func_mmap_anon+:} false; then :
15436 $as_echo_n "(cached) " >&6
15437else
15438 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15439 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15440 # doesn't give anonymous zeroed pages with the same properties listed
15441 # above for use of /dev/zero.
15442 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15443 case "$host_os" in
15444 vms* | cygwin* | pe | mingw* | sco* | udk* )
15445 ac_cv_func_mmap_anon=no ;;
15446 *)
15447 ac_cv_func_mmap_anon=yes;;
15448 esac
15449fi
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15451$as_echo "$ac_cv_func_mmap_anon" >&6; }
15452 fi
15453fi
15454
15455if test $ac_cv_func_mmap_file = yes; then
15456
15457$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15458
15459fi
15460if test $ac_cv_func_mmap_dev_zero = yes; then
15461
15462$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15463
15464fi
15465if test $ac_cv_func_mmap_anon = yes; then
15466
15467$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15468
15469fi
15470
15471
15472 if test -d $srcdir/testsuite; then
15473 TESTSUBDIR_TRUE=
15474 TESTSUBDIR_FALSE='#'
15475else
15476 TESTSUBDIR_TRUE='#'
15477 TESTSUBDIR_FALSE=
15478fi
15479
15480
15481TARGETDIR="unknown"
15482HAVE_LONG_DOUBLE_VARIANT=0
15483
15484. ${srcdir}/configure.host
15485
15486if test -n "${UNSUPPORTED}"; then
15487 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15488fi
15489
15490
15491
15492
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15494$as_echo_n "checking for ANSI C header files... " >&6; }
15495if ${ac_cv_header_stdc+:} false; then :
15496 $as_echo_n "(cached) " >&6
15497else
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499/* end confdefs.h. */
15500#include <stdlib.h>
15501#include <stdarg.h>
15502#include <string.h>
15503#include <float.h>
15504
15505int
15506main ()
15507{
15508
15509 ;
15510 return 0;
15511}
15512_ACEOF
15513if ac_fn_c_try_compile "$LINENO"; then :
15514 ac_cv_header_stdc=yes
15515else
15516 ac_cv_header_stdc=no
15517fi
15518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519
15520if test $ac_cv_header_stdc = yes; then
15521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523/* end confdefs.h. */
15524#include <string.h>
15525
15526_ACEOF
15527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15528 $EGREP "memchr" >/dev/null 2>&1; then :
15529
15530else
15531 ac_cv_header_stdc=no
15532fi
15533rm -f conftest*
15534
15535fi
15536
15537if test $ac_cv_header_stdc = yes; then
15538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540/* end confdefs.h. */
15541#include <stdlib.h>
15542
15543_ACEOF
15544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15545 $EGREP "free" >/dev/null 2>&1; then :
15546
15547else
15548 ac_cv_header_stdc=no
15549fi
15550rm -f conftest*
15551
15552fi
15553
15554if test $ac_cv_header_stdc = yes; then
15555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15556 if test "$cross_compiling" = yes; then :
15557 :
15558else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560/* end confdefs.h. */
15561#include <ctype.h>
15562#include <stdlib.h>
15563#if ((' ' & 0x0FF) == 0x020)
15564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15566#else
15567# define ISLOWER(c) \
15568 (('a' <= (c) && (c) <= 'i') \
15569 || ('j' <= (c) && (c) <= 'r') \
15570 || ('s' <= (c) && (c) <= 'z'))
15571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15572#endif
15573
15574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15575int
15576main ()
15577{
15578 int i;
15579 for (i = 0; i < 256; i++)
15580 if (XOR (islower (i), ISLOWER (i))
15581 || toupper (i) != TOUPPER (i))
15582 return 2;
15583 return 0;
15584}
15585_ACEOF
15586if ac_fn_c_try_run "$LINENO"; then :
15587
15588else
15589 ac_cv_header_stdc=no
15590fi
15591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15592 conftest.$ac_objext conftest.beam conftest.$ac_ext
15593fi
15594
15595fi
15596fi
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15598$as_echo "$ac_cv_header_stdc" >&6; }
15599if test $ac_cv_header_stdc = yes; then
15600
15601$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15602
15603fi
15604
15605for ac_func in memcpy
15606do :
15607 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15608if test "x$ac_cv_func_memcpy" = xyes; then :
15609 cat >>confdefs.h <<_ACEOF
15610#define HAVE_MEMCPY 1
15611_ACEOF
15612
15613fi
15614done
15615
15616ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15617if test "x$ac_cv_type_size_t" = xyes; then :
15618
15619else
15620
15621cat >>confdefs.h <<_ACEOF
15622#define size_t unsigned int
15623_ACEOF
15624
15625fi
15626
15627# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15628# for constant arguments. Useless!
15629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15630$as_echo_n "checking for working alloca.h... " >&6; }
15631if ${ac_cv_working_alloca_h+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633else
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635/* end confdefs.h. */
15636#include <alloca.h>
15637int
15638main ()
15639{
15640char *p = (char *) alloca (2 * sizeof (int));
15641 if (p) return 0;
15642 ;
15643 return 0;
15644}
15645_ACEOF
15646if ac_fn_c_try_link "$LINENO"; then :
15647 ac_cv_working_alloca_h=yes
15648else
15649 ac_cv_working_alloca_h=no
15650fi
15651rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653fi
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15655$as_echo "$ac_cv_working_alloca_h" >&6; }
15656if test $ac_cv_working_alloca_h = yes; then
15657
15658$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15659
15660fi
15661
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15663$as_echo_n "checking for alloca... " >&6; }
15664if ${ac_cv_func_alloca_works+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666else
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668/* end confdefs.h. */
15669#ifdef __GNUC__
15670# define alloca __builtin_alloca
15671#else
15672# ifdef _MSC_VER
15673# include <malloc.h>
15674# define alloca _alloca
15675# else
15676# ifdef HAVE_ALLOCA_H
15677# include <alloca.h>
15678# else
15679# ifdef _AIX
15680 #pragma alloca
15681# else
15682# ifndef alloca /* predefined by HP cc +Olibcalls */
15683void *alloca (size_t);
15684# endif
15685# endif
15686# endif
15687# endif
15688#endif
15689
15690int
15691main ()
15692{
15693char *p = (char *) alloca (1);
15694 if (p) return 0;
15695 ;
15696 return 0;
15697}
15698_ACEOF
15699if ac_fn_c_try_link "$LINENO"; then :
15700 ac_cv_func_alloca_works=yes
15701else
15702 ac_cv_func_alloca_works=no
15703fi
15704rm -f core conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
15706fi
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15708$as_echo "$ac_cv_func_alloca_works" >&6; }
15709
15710if test $ac_cv_func_alloca_works = yes; then
15711
15712$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15713
15714else
15715 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15716# that cause trouble. Some versions do not even contain alloca or
15717# contain a buggy version. If you still want to use their alloca,
15718# use ar to extract alloca.o from them instead of compiling alloca.c.
15719
15720ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15721
15722$as_echo "#define C_ALLOCA 1" >>confdefs.h
15723
15724
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15726$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15727if ${ac_cv_os_cray+:} false; then :
15728 $as_echo_n "(cached) " >&6
15729else
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h. */
15732#if defined CRAY && ! defined CRAY2
15733webecray
15734#else
15735wenotbecray
15736#endif
15737
15738_ACEOF
15739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15740 $EGREP "webecray" >/dev/null 2>&1; then :
15741 ac_cv_os_cray=yes
15742else
15743 ac_cv_os_cray=no
15744fi
15745rm -f conftest*
15746
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15749$as_echo "$ac_cv_os_cray" >&6; }
15750if test $ac_cv_os_cray = yes; then
15751 for ac_func in _getb67 GETB67 getb67; do
15752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15754if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15755
15756cat >>confdefs.h <<_ACEOF
15757#define CRAY_STACKSEG_END $ac_func
15758_ACEOF
15759
15760 break
15761fi
15762
15763 done
15764fi
15765
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15767$as_echo_n "checking stack direction for C alloca... " >&6; }
15768if ${ac_cv_c_stack_direction+:} false; then :
15769 $as_echo_n "(cached) " >&6
15770else
15771 if test "$cross_compiling" = yes; then :
15772 ac_cv_c_stack_direction=0
15773else
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h. */
15776$ac_includes_default
15777int
15778find_stack_direction (int *addr, int depth)
15779{
15780 int dir, dummy = 0;
15781 if (! addr)
15782 addr = &dummy;
15783 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15784 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15785 return dir + dummy;
15786}
15787
15788int
15789main (int argc, char **argv)
15790{
15791 return find_stack_direction (0, argc + !argv + 20) < 0;
15792}
15793_ACEOF
15794if ac_fn_c_try_run "$LINENO"; then :
15795 ac_cv_c_stack_direction=1
15796else
15797 ac_cv_c_stack_direction=-1
15798fi
15799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15800 conftest.$ac_objext conftest.beam conftest.$ac_ext
15801fi
15802
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15805$as_echo "$ac_cv_c_stack_direction" >&6; }
15806cat >>confdefs.h <<_ACEOF
15807#define STACK_DIRECTION $ac_cv_c_stack_direction
15808_ACEOF
15809
15810
15811fi
15812
15813
15814# The cast to long int works around a bug in the HP C Compiler
15815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15817# This bug is HP SR number 8606223364.
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15819$as_echo_n "checking size of double... " >&6; }
15820if ${ac_cv_sizeof_double+:} false; then :
15821 $as_echo_n "(cached) " >&6
15822else
15823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15824
15825else
15826 if test "$ac_cv_type_double" = yes; then
15827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15829as_fn_error 77 "cannot compute sizeof (double)
15830See \`config.log' for more details" "$LINENO" 5; }
15831 else
15832 ac_cv_sizeof_double=0
15833 fi
15834fi
15835
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15838$as_echo "$ac_cv_sizeof_double" >&6; }
15839
15840
15841
15842cat >>confdefs.h <<_ACEOF
15843#define SIZEOF_DOUBLE $ac_cv_sizeof_double
15844_ACEOF
15845
15846
15847# The cast to long int works around a bug in the HP C Compiler
15848# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15849# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15850# This bug is HP SR number 8606223364.
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15852$as_echo_n "checking size of long double... " >&6; }
15853if ${ac_cv_sizeof_long_double+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855else
15856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15857
15858else
15859 if test "$ac_cv_type_long_double" = yes; then
15860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15862as_fn_error 77 "cannot compute sizeof (long double)
15863See \`config.log' for more details" "$LINENO" 5; }
15864 else
15865 ac_cv_sizeof_long_double=0
15866 fi
15867fi
15868
15869fi
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15871$as_echo "$ac_cv_sizeof_long_double" >&6; }
15872
15873
15874
15875cat >>confdefs.h <<_ACEOF
15876#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15877_ACEOF
15878
15879
15880
15881# Also AC_SUBST this variable for ffi.h.
15882if test -z "$HAVE_LONG_DOUBLE"; then
15883 HAVE_LONG_DOUBLE=0
15884 if test $ac_cv_sizeof_long_double != 0; then
15885 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15886
15887$as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15888
15889 HAVE_LONG_DOUBLE=1
15890 else
15891 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15892 HAVE_LONG_DOUBLE=1
15893
15894$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15895
15896 fi
15897 fi
15898 fi
15899fi
15900
15901
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15904$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15905if ${ac_cv_c_bigendian+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907else
15908 ac_cv_c_bigendian=unknown
15909 # See if we're dealing with a universal compiler.
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h. */
15912#ifndef __APPLE_CC__
15913 not a universal capable compiler
15914 #endif
15915 typedef int dummy;
15916
15917_ACEOF
15918if ac_fn_c_try_compile "$LINENO"; then :
15919
15920 # Check for potential -arch flags. It is not universal unless
15921 # there are at least two -arch flags with different values.
15922 ac_arch=
15923 ac_prev=
15924 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15925 if test -n "$ac_prev"; then
15926 case $ac_word in
15927 i?86 | x86_64 | ppc | ppc64)
15928 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15929 ac_arch=$ac_word
15930 else
15931 ac_cv_c_bigendian=universal
15932 break
15933 fi
15934 ;;
15935 esac
15936 ac_prev=
15937 elif test "x$ac_word" = "x-arch"; then
15938 ac_prev=arch
15939 fi
15940 done
15941fi
15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 if test $ac_cv_c_bigendian = unknown; then
15944 # See if sys/param.h defines the BYTE_ORDER macro.
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946/* end confdefs.h. */
15947#include <sys/types.h>
15948 #include <sys/param.h>
15949
15950int
15951main ()
15952{
15953#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15954 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15955 && LITTLE_ENDIAN)
15956 bogus endian macros
15957 #endif
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963if ac_fn_c_try_compile "$LINENO"; then :
15964 # It does; now see whether it defined to BIG_ENDIAN or not.
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h. */
15967#include <sys/types.h>
15968 #include <sys/param.h>
15969
15970int
15971main ()
15972{
15973#if BYTE_ORDER != BIG_ENDIAN
15974 not big endian
15975 #endif
15976
15977 ;
15978 return 0;
15979}
15980_ACEOF
15981if ac_fn_c_try_compile "$LINENO"; then :
15982 ac_cv_c_bigendian=yes
15983else
15984 ac_cv_c_bigendian=no
15985fi
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987fi
15988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 fi
15990 if test $ac_cv_c_bigendian = unknown; then
15991 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h. */
15994#include <limits.h>
15995
15996int
15997main ()
15998{
15999#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16000 bogus endian macros
16001 #endif
16002
16003 ;
16004 return 0;
16005}
16006_ACEOF
16007if ac_fn_c_try_compile "$LINENO"; then :
16008 # It does; now see whether it defined to _BIG_ENDIAN or not.
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010/* end confdefs.h. */
16011#include <limits.h>
16012
16013int
16014main ()
16015{
16016#ifndef _BIG_ENDIAN
16017 not big endian
16018 #endif
16019
16020 ;
16021 return 0;
16022}
16023_ACEOF
16024if ac_fn_c_try_compile "$LINENO"; then :
16025 ac_cv_c_bigendian=yes
16026else
16027 ac_cv_c_bigendian=no
16028fi
16029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 fi
16033 if test $ac_cv_c_bigendian = unknown; then
16034 # Compile a test program.
16035 if test "$cross_compiling" = yes; then :
16036 # Try to guess by grepping values from an object file.
16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16038/* end confdefs.h. */
16039short int ascii_mm[] =
16040 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16041 short int ascii_ii[] =
16042 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16043 int use_ascii (int i) {
16044 return ascii_mm[i] + ascii_ii[i];
16045 }
16046 short int ebcdic_ii[] =
16047 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16048 short int ebcdic_mm[] =
16049 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16050 int use_ebcdic (int i) {
16051 return ebcdic_mm[i] + ebcdic_ii[i];
16052 }
16053 extern int foo;
16054
16055int
16056main ()
16057{
16058return use_ascii (foo) == use_ebcdic (foo);
16059 ;
16060 return 0;
16061}
16062_ACEOF
16063if ac_fn_c_try_compile "$LINENO"; then :
16064 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16065 ac_cv_c_bigendian=yes
16066 fi
16067 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16068 if test "$ac_cv_c_bigendian" = unknown; then
16069 ac_cv_c_bigendian=no
16070 else
16071 # finding both strings is unlikely to happen, but who knows?
16072 ac_cv_c_bigendian=unknown
16073 fi
16074 fi
16075fi
16076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077else
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h. */
16080$ac_includes_default
16081int
16082main ()
16083{
16084
16085 /* Are we little or big endian? From Harbison&Steele. */
16086 union
16087 {
16088 long int l;
16089 char c[sizeof (long int)];
16090 } u;
16091 u.l = 1;
16092 return u.c[sizeof (long int) - 1] == 1;
16093
16094 ;
16095 return 0;
16096}
16097_ACEOF
16098if ac_fn_c_try_run "$LINENO"; then :
16099 ac_cv_c_bigendian=no
16100else
16101 ac_cv_c_bigendian=yes
16102fi
16103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16104 conftest.$ac_objext conftest.beam conftest.$ac_ext
16105fi
16106
16107 fi
16108fi
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16110$as_echo "$ac_cv_c_bigendian" >&6; }
16111 case $ac_cv_c_bigendian in #(
16112 yes)
16113 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16114;; #(
16115 no)
16116 ;; #(
16117 universal)
16118
16119$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16120
16121 ;; #(
16122 *)
16123 as_fn_error $? "unknown endianness
16124 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16125 esac
16126
16127
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16129$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16130if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
16131 $as_echo_n "(cached) " >&6
16132else
16133
16134 gcc_cv_as_cfi_pseudo_op=unknown
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136/* end confdefs.h. */
16137asm (".cfi_startproc\n\t.cfi_endproc");
16138int
16139main ()
16140{
16141
16142 ;
16143 return 0;
16144}
16145_ACEOF
16146if ac_fn_c_try_compile "$LINENO"; then :
16147 gcc_cv_as_cfi_pseudo_op=yes
16148else
16149 gcc_cv_as_cfi_pseudo_op=no
16150fi
16151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152
16153fi
16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16155$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16156 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16157
16158$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16159
16160 fi
16161
16162
16163case "$TARGET" in
16164 SPARC)
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
16166$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
16167if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
16168 $as_echo_n "(cached) " >&6
16169else
16170
16171 save_CFLAGS="$CFLAGS"
16172 save_LDFLAGS="$LDFLAGS"
16173 CFLAGS="$CFLAGS -fpic"
16174 LDFLAGS="$LDFLAGS -shared"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h. */
16177asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
16178int
16179main ()
16180{
16181
16182 ;
16183 return 0;
16184}
16185_ACEOF
16186if ac_fn_c_try_link "$LINENO"; then :
16187 libffi_cv_as_sparc_ua_pcrel=yes
16188else
16189 libffi_cv_as_sparc_ua_pcrel=no
16190fi
16191rm -f core conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16193 CFLAGS="$save_CFLAGS"
16194 LDFLAGS="$save_LDFLAGS"
16195fi
16196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
16197$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
16198 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
16199
16200$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
16201
16202 fi
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
16205$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
16206if ${libffi_cv_as_register_pseudo_op+:} false; then :
16207 $as_echo_n "(cached) " >&6
16208else
16209
16210 libffi_cv_as_register_pseudo_op=unknown
16211 # Check if we have .register
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214
16215int
16216main ()
16217{
16218asm (".register %g2, #scratch");
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223if ac_fn_c_try_compile "$LINENO"; then :
16224 libffi_cv_as_register_pseudo_op=yes
16225else
16226 libffi_cv_as_register_pseudo_op=no
16227fi
16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229
16230fi
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
16232$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
16233 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
16234
16235$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
16236
16237 fi
16238 ;;
16239
16240 X86*)
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16242$as_echo_n "checking assembler supports pc related relocs... " >&6; }
16243if ${libffi_cv_as_x86_pcrel+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245else
16246
16247 libffi_cv_as_x86_pcrel=no
16248 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16249 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
16250 libffi_cv_as_x86_pcrel=yes
16251 fi
16252
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
16255$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
16256 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
16257
16258$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16259
16260 fi
16261 ;;
16262
16263 S390)
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
16265$as_echo_n "checking compiler uses zarch features... " >&6; }
16266if ${libffi_cv_as_s390_zarch+:} false; then :
16267 $as_echo_n "(cached) " >&6
16268else
16269
16270 libffi_cv_as_s390_zarch=no
16271 echo 'void foo(void) { bar(); bar(); }' > conftest.c
16272 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
16273 if grep -q brasl conftest.s; then
16274 libffi_cv_as_s390_zarch=yes
16275 fi
16276 fi
16277
16278fi
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
16280$as_echo "$libffi_cv_as_s390_zarch" >&6; }
16281 if test "x$libffi_cv_as_s390_zarch" = xyes; then
16282
16283$as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16284
16285 fi
16286 ;;
16287esac
16288
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16290$as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16291if ${libffi_cv_as_ptrauth+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293else
16294
16295 libffi_cv_as_ptrauth=unknown
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h. */
16298
16299int
16300main ()
16301{
16302
16303#ifdef __clang__
16304# if __has_feature(ptrauth_calls)
16305# define HAVE_PTRAUTH 1
16306# endif
16307#endif
16308
16309#ifndef HAVE_PTRAUTH
16310# error Pointer authentication not supported
16311#endif
16312
16313 ;
16314 return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_compile "$LINENO"; then :
16318 libffi_cv_as_ptrauth=yes
16319else
16320 libffi_cv_as_ptrauth=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323
16324fi
16325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16326$as_echo "$libffi_cv_as_ptrauth" >&6; }
16327if test "x$libffi_cv_as_ptrauth" = xyes; then
16328
16329$as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16330
16331fi
16332
16333# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16334# Check whether --enable-pax_emutramp was given.
16335if test "${enable_pax_emutramp+set}" = set; then :
16336 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16337
16338$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16339
16340 fi
16341fi
16342
16343
16344FFI_EXEC_TRAMPOLINE_TABLE=0
16345case "$target" in
16346 *arm*-apple-* | aarch64-apple-*)
16347 FFI_EXEC_TRAMPOLINE_TABLE=1
16348
16349$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16350
16351 ;;
16352 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
16353
16354$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16355
16356 ;;
16357esac
16358 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16359 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16360 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16361else
16362 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16363 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16364fi
16365
16366
16367
16368if test x$TARGET = xX86_64; then
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16370$as_echo_n "checking toolchain supports unwind section type... " >&6; }
16371if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373else
16374
16375 cat > conftest1.s << EOF
16376.text
16377.globl foo
16378foo:
16379jmp bar
16380.section .eh_frame,"a",@unwind
16381bar:
16382EOF
16383
16384 cat > conftest2.c << EOF
16385extern void foo();
16386int main(){foo();}
16387EOF
16388
16389 libffi_cv_as_x86_64_unwind_section_type=no
16390 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16391 # since the compiler can support it and not the linker (ie old binutils)
16392 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16393 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16394 libffi_cv_as_x86_64_unwind_section_type=yes
16395 fi
16396
16397fi
16398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16399$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16400 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16401
16402$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16403
16404 fi
16405fi
16406
16407if test "x$GCC" = "xyes"; then
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16409$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16410if ${libffi_cv_ro_eh_frame+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412else
16413
16414 libffi_cv_ro_eh_frame=yes
16415 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16416 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
16417 if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
16418 libffi_cv_ro_eh_frame=no
16419 fi
16420 fi
16421 rm -f conftest.*
16422
16423fi
16424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16425$as_echo "$libffi_cv_ro_eh_frame" >&6; }
16426 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16427
16428$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16429
16430
16431$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16432
16433 else
16434
16435$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16436
16437 fi
16438
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16440$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16441if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443else
16444
16445 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16446 libffi_cv_hidden_visibility_attribute=no
16447 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16452 test $ac_status = 0; }; }; then
16453 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
16454 libffi_cv_hidden_visibility_attribute=yes
16455 fi
16456 fi
16457 rm -f conftest.*
16458
16459fi
16460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16461$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16462 if test $libffi_cv_hidden_visibility_attribute = yes; then
16463
16464$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16465
16466 fi
16467fi
16468
16469# See if makeinfo has been installed and is modern enough
16470# that we can use it.
16471
16472 # Extract the first word of "makeinfo", so it can be a program name with args.
16473set dummy makeinfo; ac_word=$2
16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16475$as_echo_n "checking for $ac_word... " >&6; }
16476if ${ac_cv_prog_MAKEINFO+:} false; then :
16477 $as_echo_n "(cached) " >&6
16478else
16479 if test -n "$MAKEINFO"; then
16480 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16481else
16482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16483for as_dir in $PATH
16484do
16485 IFS=$as_save_IFS
16486 test -z "$as_dir" && as_dir=.
16487 for ac_exec_ext in '' $ac_executable_extensions; do
16488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16489 ac_cv_prog_MAKEINFO="makeinfo"
16490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16491 break 2
16492 fi
16493done
16494 done
16495IFS=$as_save_IFS
16496
16497fi
16498fi
16499MAKEINFO=$ac_cv_prog_MAKEINFO
16500if test -n "$MAKEINFO"; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16502$as_echo "$MAKEINFO" >&6; }
16503else
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505$as_echo "no" >&6; }
16506fi
16507
16508
16509 if test -n "$MAKEINFO"; then
16510 # Found it, now check the version.
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16512$as_echo_n "checking for modern makeinfo... " >&6; }
16513if ${gcc_cv_prog_makeinfo_modern+:} false; then :
16514 $as_echo_n "(cached) " >&6
16515else
16516 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
16517 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16518
16519 case $ac_prog_version in
16520 '') gcc_cv_prog_makeinfo_modern=no;;
16521 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
16522 *) gcc_cv_prog_makeinfo_modern=no;;
16523 esac
16524
16525fi
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16527$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16528 else
16529 gcc_cv_prog_makeinfo_modern=no
16530 fi
16531 if test $gcc_cv_prog_makeinfo_modern = no; then
16532 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16533 fi
16534
16535 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16536 BUILD_DOCS_TRUE=
16537 BUILD_DOCS_FALSE='#'
16538else
16539 BUILD_DOCS_TRUE='#'
16540 BUILD_DOCS_FALSE=
16541fi
16542
16543
16544
16545
16546
16547
16548
16549
16550TARGET_OBJ=
16551for i in $SOURCES; do
16552 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16553done
16554
16555
16556
16557
16558
16559# Check whether --enable-debug was given.
16560if test "${enable_debug+set}" = set; then :
16561 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16562
16563$as_echo "#define FFI_DEBUG 1" >>confdefs.h
16564
16565 fi
16566fi
16567
16568 if test "$enable_debug" = "yes"; then
16569 FFI_DEBUG_TRUE=
16570 FFI_DEBUG_FALSE='#'
16571else
16572 FFI_DEBUG_TRUE='#'
16573 FFI_DEBUG_FALSE=
16574fi
16575
16576
16577# Check whether --enable-structs was given.
16578if test "${enable_structs+set}" = set; then :
16579 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16580
16581$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16582
16583 fi
16584fi
16585
16586 if test "$enable_debug" = "yes"; then
16587 FFI_DEBUG_TRUE=
16588 FFI_DEBUG_FALSE='#'
16589else
16590 FFI_DEBUG_TRUE='#'
16591 FFI_DEBUG_FALSE=
16592fi
16593
16594
16595# Check whether --enable-raw-api was given.
16596if test "${enable_raw_api+set}" = set; then :
16597 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16598
16599$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16600
16601 fi
16602fi
16603
16604
16605# Check whether --enable-exec-static-tramp was given.
16606if test "${enable_exec_static_tramp+set}" = set; then :
16607 enableval=$enable_exec_static_tramp;
16608fi
16609
16610
16611if test "$enable_exec_static_tramp" = yes; then
16612case "$target" in
16613 *-cygwin*)
16614 ;;
16615 *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
16616
16617$as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16618
16619 ;;
16620esac
16621fi
16622
16623# Check whether --enable-purify-safety was given.
16624if test "${enable_purify_safety+set}" = set; then :
16625 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16626
16627$as_echo "#define USING_PURIFY 1" >>confdefs.h
16628
16629 fi
16630fi
16631
16632
16633
16634# Check whether --with-toolexeclibdir was given.
16635if test "${with_toolexeclibdir+set}" = set; then :
16636 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16637 /)
16638 ;;
16639 */)
16640 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16641 ;;
16642esac
16643else
16644 with_toolexeclibdir=no
16645fi
16646
16647
16648
16649if test -n "$with_cross_host" &&
16650 test x"$with_cross_host" != x"no"; then
16651 toolexecdir='$(exec_prefix)/$(target_alias)'
16652 case ${with_toolexeclibdir} in
16653 no)
16654 toolexeclibdir='$(toolexecdir)/lib'
16655 ;;
16656 *)
16657 toolexeclibdir=${with_toolexeclibdir}
16658 ;;
16659 esac
16660else
16661 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16662 toolexeclibdir='$(libdir)'
16663fi
16664multi_os_directory=`$CC -print-multi-os-directory`
16665case $multi_os_directory in
16666 .) ;; # Avoid trailing /.
16667 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16668esac
16669
16670
16671
16672if test "${multilib}" = "yes"; then
16673 multilib_arg="--enable-multilib"
16674else
16675 multilib_arg=
16676fi
16677
16678# Check linker support.
16679
16680
16681# Check whether --with-gnu-ld was given.
16682if test "${with_gnu_ld+set}" = set; then :
16683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16684else
16685 with_gnu_ld=no
16686fi
16687
16688ac_prog=ld
16689if test "$GCC" = yes; then
16690 # Check if gcc -print-prog-name=ld gives a path.
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16692$as_echo_n "checking for ld used by $CC... " >&6; }
16693 case $host in
16694 *-*-mingw*)
16695 # gcc leaves a trailing carriage return which upsets mingw
16696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16697 *)
16698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16699 esac
16700 case $ac_prog in
16701 # Accept absolute paths.
16702 [\\/]* | ?:[\\/]*)
16703 re_direlt='/[^/][^/]*/\.\./'
16704 # Canonicalize the pathname of ld
16705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16708 done
16709 test -z "$LD" && LD="$ac_prog"
16710 ;;
16711 "")
16712 # If it fails, then pretend we aren't using GCC.
16713 ac_prog=ld
16714 ;;
16715 *)
16716 # If it is relative, then search for the first ld in PATH.
16717 with_gnu_ld=unknown
16718 ;;
16719 esac
16720elif test "$with_gnu_ld" = yes; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16722$as_echo_n "checking for GNU ld... " >&6; }
16723else
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16725$as_echo_n "checking for non-GNU ld... " >&6; }
16726fi
16727if ${lt_cv_path_LD+:} false; then :
16728 $as_echo_n "(cached) " >&6
16729else
16730 if test -z "$LD"; then
16731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16732 for ac_dir in $PATH; do
16733 IFS="$lt_save_ifs"
16734 test -z "$ac_dir" && ac_dir=.
16735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16736 lt_cv_path_LD="$ac_dir/$ac_prog"
16737 # Check to see if the program is GNU ld. I'd rather use --version,
16738 # but apparently some variants of GNU ld only accept -v.
16739 # Break only if it was the GNU/non-GNU ld that we prefer.
16740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16741 *GNU* | *'with BFD'*)
16742 test "$with_gnu_ld" != no && break
16743 ;;
16744 *)
16745 test "$with_gnu_ld" != yes && break
16746 ;;
16747 esac
16748 fi
16749 done
16750 IFS="$lt_save_ifs"
16751else
16752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16753fi
16754fi
16755
16756LD="$lt_cv_path_LD"
16757if test -n "$LD"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16759$as_echo "$LD" >&6; }
16760else
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762$as_echo "no" >&6; }
16763fi
16764test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16766$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16767if ${lt_cv_prog_gnu_ld+:} false; then :
16768 $as_echo_n "(cached) " >&6
16769else
16770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16771case `$LD -v 2>&1 </dev/null` in
16772*GNU* | *'with BFD'*)
16773 lt_cv_prog_gnu_ld=yes
16774 ;;
16775*)
16776 lt_cv_prog_gnu_ld=no
16777 ;;
16778esac
16779fi
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16781$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16782with_gnu_ld=$lt_cv_prog_gnu_ld
16783
16784
16785
16786
16787
16788
16789
16790 # If we're not using GNU ld, then there's no point in even trying these
16791 # tests. Check for that first. We should have already tested for gld
16792 # by now (in libtool), but require it now just to be safe...
16793 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16794 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16795
16796
16797
16798 # The name set by libtool depends on the version of libtool. Shame on us
16799 # for depending on an impl detail, but c'est la vie. Older versions used
16800 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16801 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16802 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16803 # set (hence we're using an older libtool), then set it.
16804 if test x${with_gnu_ld+set} != xset; then
16805 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16806 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16807 with_gnu_ld=no
16808 else
16809 with_gnu_ld=$ac_cv_prog_gnu_ld
16810 fi
16811 fi
16812
16813 # Start by getting the version number. I think the libtool test already
16814 # does some of this, but throws away the result.
16815 libat_ld_is_gold=no
16816 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16817 libat_ld_is_gold=yes
16818 fi
16819 libat_ld_is_lld=no
16820 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
16821 libat_ld_is_lld=yes
16822 fi
16823
16824 ldver=`$LD --version 2>/dev/null |
16825 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'`
16826
16827 libat_gnu_ld_version=`echo $ldver | \
16828 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16829
16830 # Set --gc-sections.
16831 if test "$with_gnu_ld" = "notbroken"; then
16832 # GNU ld it is! Joy and bunny rabbits!
16833
16834 # All these tests are for C++; save the language and the compiler flags.
16835 # Need to do this so that g++ won't try to link in libstdc++
16836 ac_test_CFLAGS="${CFLAGS+set}"
16837 ac_save_CFLAGS="$CFLAGS"
16838 CFLAGS='-x c++ -Wl,--gc-sections'
16839
16840 # Check for -Wl,--gc-sections
16841 # XXX This test is broken at the moment, as symbols required for linking
16842 # are now in libsupc++ (not built yet). In addition, this test has
16843 # cored on solaris in the past. In addition, --gc-sections doesn't
16844 # really work at the moment (keeps on discarding used sections, first
16845 # .eh_frame and now some of the glibc sections for iconv).
16846 # Bzzzzt. Thanks for playing, maybe next time.
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16848$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16849 if test "$cross_compiling" = yes; then :
16850 ac_sectionLDflags=yes
16851else
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h. */
16854
16855 int main(void)
16856 {
16857 try { throw 1; }
16858 catch (...) { };
16859 return 0;
16860 }
16861
16862_ACEOF
16863if ac_fn_c_try_run "$LINENO"; then :
16864 ac_sectionLDflags=yes
16865else
16866 ac_sectionLDflags=no
16867fi
16868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16869 conftest.$ac_objext conftest.beam conftest.$ac_ext
16870fi
16871
16872 if test "$ac_test_CFLAGS" = set; then
16873 CFLAGS="$ac_save_CFLAGS"
16874 else
16875 # this is the suspicious part
16876 CFLAGS=''
16877 fi
16878 if test "$ac_sectionLDflags" = "yes"; then
16879 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16882$as_echo "$ac_sectionLDflags" >&6; }
16883 fi
16884
16885 # Set linker optimization flags.
16886 if test x"$with_gnu_ld" = x"yes"; then
16887 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16888 fi
16889
16890
16891
16892
16893
16894
16895 # Check whether --enable-symvers was given.
16896if test "${enable_symvers+set}" = set; then :
16897 enableval=$enable_symvers;
16898 case "$enableval" in
16899 yes|no|gnu*|sun) ;;
16900 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16901 esac
16902
16903else
16904 enable_symvers=yes
16905fi
16906
16907
16908
16909# If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16910# don't know enough about $LD to do tricks...
16911
16912
16913# Turn a 'yes' into a suitable default.
16914if test x$enable_symvers = xyes ; then
16915 # FIXME The following test is too strict, in theory.
16916 if test $enable_shared = no || test "x$LD" = x; then
16917 enable_symvers=no
16918 else
16919 if test $with_gnu_ld = yes ; then
16920 enable_symvers=gnu
16921 else
16922 case ${target_os} in
16923 # Sun symbol versioning exists since Solaris 2.5.
16924 solaris2.[5-9]* | solaris2.1[0-9]*)
16925 enable_symvers=sun ;;
16926 *)
16927 enable_symvers=no ;;
16928 esac
16929 fi
16930 fi
16931fi
16932
16933# Check if 'sun' was requested on non-Solaris 2 platforms.
16934if test x$enable_symvers = xsun ; then
16935 case ${target_os} in
16936 solaris2*)
16937 # All fine.
16938 ;;
16939 *)
16940 # Unlikely to work.
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16942$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16944$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16946$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16947 enable_symvers=no
16948 ;;
16949 esac
16950fi
16951
16952# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16953if test $enable_symvers != no; then
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16955$as_echo_n "checking for shared libgcc... " >&6; }
16956 ac_save_CFLAGS="$CFLAGS"
16957 CFLAGS=' -lgcc_s'
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h. */
16960
16961int
16962main ()
16963{
16964return 0;
16965 ;
16966 return 0;
16967}
16968_ACEOF
16969if ac_fn_c_try_link "$LINENO"; then :
16970 libat_shared_libgcc=yes
16971else
16972 libat_shared_libgcc=no
16973fi
16974rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16976 CFLAGS="$ac_save_CFLAGS"
16977 if test $libat_shared_libgcc = no; then
16978 cat > conftest.c <<EOF
16979int main (void) { return 0; }
16980EOF
16981 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16982 -shared -shared-libgcc -o conftest.so \
16983 conftest.c -v 2>&1 >/dev/null \
16984 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16985 rm -f conftest.c conftest.so
16986 if test x${libat_libgcc_s_suffix+set} = xset; then
16987 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h. */
16990
16991int
16992main ()
16993{
16994return 0;
16995 ;
16996 return 0;
16997}
16998_ACEOF
16999if ac_fn_c_try_link "$LINENO"; then :
17000 libat_shared_libgcc=yes
17001fi
17002rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 CFLAGS="$ac_save_CFLAGS"
17005 fi
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
17008$as_echo "$libat_shared_libgcc" >&6; }
17009fi
17010
17011# For GNU ld, we need at least this version. The format is described in
17012# LIBFFI_CHECK_LINKER_FEATURES above.
17013libat_min_gnu_ld_version=21400
17014# XXXXXXXXXXX libat_gnu_ld_version=21390
17015
17016# Check to see if unspecified "yes" value can win, given results above.
17017# Change "yes" into either "no" or a style name.
17018if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
17019 if test $with_gnu_ld = yes; then
17020 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
17021 enable_symvers=gnu
17022 elif test $libat_ld_is_gold = yes ; then
17023 enable_symvers=gnu
17024 elif test $libat_ld_is_lld = yes ; then
17025 enable_symvers=gnu
17026 else
17027 # The right tools, the right setup, but too old. Fallbacks?
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
17029$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17031$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17033$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
17035$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
17036 if test $libat_gnu_ld_version -ge 21200 ; then
17037 # Globbing fix is present, proper block support is not.
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17039$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17040 enable_symvers=no
17041 else
17042 # 2.11 or older.
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17044$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17045 enable_symvers=no
17046 fi
17047 fi
17048 elif test $enable_symvers = sun; then
17049 : All interesting versions of Sun ld support sun style symbol versioning.
17050 else
17051 # just fail for now
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17053$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17055$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17057$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17059$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17060 enable_symvers=no
17061 fi
17062fi
17063if test $enable_symvers = gnu; then
17064
17065$as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17066
17067fi
17068
17069 if test $enable_symvers != no; then
17070 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
17071 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
17072else
17073 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
17074 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
17075fi
17076
17077 if test $enable_symvers = gnu; then
17078 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17079 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17080else
17081 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17082 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17083fi
17084
17085 if test $enable_symvers = sun; then
17086 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17087 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17088else
17089 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17090 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17091fi
17092
17093{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17094$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17095
17096
17097# Determine what GCC version number to use in filesystem paths.
17098
17099 get_gcc_base_ver="cat"
17100
17101# Check whether --with-gcc-major-version-only was given.
17102if test "${with_gcc_major_version_only+set}" = set; then :
17103 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17104 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17105 fi
17106
17107fi
17108
17109
17110
17111
17112ac_config_commands="$ac_config_commands include"
17113
17114ac_config_commands="$ac_config_commands src"
17115
17116
17117ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
17118
17119
17120ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
17121
17122
17123cat >confcache <<\_ACEOF
17124# This file is a shell script that caches the results of configure
17125# tests run on this system so they can be shared between configure
17126# scripts and configure runs, see configure's option --config-cache.
17127# It is not useful on other systems. If it contains results you don't
17128# want to keep, you may remove or edit it.
17129#
17130# config.status only pays attention to the cache file if you give it
17131# the --recheck option to rerun configure.
17132#
17133# `ac_cv_env_foo' variables (set or unset) will be overridden when
17134# loading this file, other *unset* `ac_cv_foo' will be assigned the
17135# following values.
17136
17137_ACEOF
17138
17139# The following way of writing the cache mishandles newlines in values,
17140# but we know of no workaround that is simple, portable, and efficient.
17141# So, we kill variables containing newlines.
17142# Ultrix sh set writes to stderr and can't be redirected directly,
17143# and sets the high bit in the cache file unless we assign to the vars.
17144(
17145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17146 eval ac_val=\$$ac_var
17147 case $ac_val in #(
17148 *${as_nl}*)
17149 case $ac_var in #(
17150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17151$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17152 esac
17153 case $ac_var in #(
17154 _ | IFS | as_nl) ;; #(
17155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17156 *) { eval $ac_var=; unset $ac_var;} ;;
17157 esac ;;
17158 esac
17159 done
17160
17161 (set) 2>&1 |
17162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17163 *${as_nl}ac_space=\ *)
17164 # `set' does not quote correctly, so add quotes: double-quote
17165 # substitution turns \\\\ into \\, and sed turns \\ into \.
17166 sed -n \
17167 "s/'/'\\\\''/g;
17168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17169 ;; #(
17170 *)
17171 # `set' quotes correctly as required by POSIX, so do not add quotes.
17172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17173 ;;
17174 esac |
17175 sort
17176) |
17177 sed '
17178 /^ac_cv_env_/b end
17179 t clear
17180 :clear
17181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17182 t end
17183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17184 :end' >>confcache
17185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17186 if test -w "$cache_file"; then
17187 if test "x$cache_file" != "x/dev/null"; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17189$as_echo "$as_me: updating cache $cache_file" >&6;}
17190 if test ! -f "$cache_file" || test -h "$cache_file"; then
17191 cat confcache >"$cache_file"
17192 else
17193 case $cache_file in #(
17194 */* | ?:*)
17195 mv -f confcache "$cache_file"$$ &&
17196 mv -f "$cache_file"$$ "$cache_file" ;; #(
17197 *)
17198 mv -f confcache "$cache_file" ;;
17199 esac
17200 fi
17201 fi
17202 else
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17204$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17205 fi
17206fi
17207rm -f confcache
17208
17209test "x$prefix" = xNONE && prefix=$ac_default_prefix
17210# Let make expand exec_prefix.
17211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17212
17213DEFS=-DHAVE_CONFIG_H
17214
17215ac_libobjs=
17216ac_ltlibobjs=
17217U=
17218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17219 # 1. Remove the extension, and $U if already installed.
17220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17223 # will be set to the directory where LIBOBJS objects are built.
17224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17226done
17227LIBOBJS=$ac_libobjs
17228
17229LTLIBOBJS=$ac_ltlibobjs
17230
17231
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17233$as_echo_n "checking that generated files are newer than configure... " >&6; }
17234 if test -n "$am_sleep_pid"; then
17235 # Hide warnings about reused PIDs.
17236 wait $am_sleep_pid 2>/dev/null
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17239$as_echo "done" >&6; }
17240 if test -n "$EXEEXT"; then
17241 am__EXEEXT_TRUE=
17242 am__EXEEXT_FALSE='#'
17243else
17244 am__EXEEXT_TRUE='#'
17245 am__EXEEXT_FALSE=
17246fi
17247
17248if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17249 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17250Usually this means the macro was only invoked conditionally." "$LINENO" 5
17251fi
17252if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17253 as_fn_error $? "conditional \"AMDEP\" was never defined.
17254Usually this means the macro was only invoked conditionally." "$LINENO" 5
17255fi
17256if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17257 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17258Usually this means the macro was only invoked conditionally." "$LINENO" 5
17259fi
17260if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17261 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17262Usually this means the macro was only invoked conditionally." "$LINENO" 5
17263fi
17264if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17265 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17266Usually this means the macro was only invoked conditionally." "$LINENO" 5
17267fi
6a6d3817
IS
17268if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
17269 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
17270Usually this means the macro was only invoked conditionally." "$LINENO" 5
17271fi
5be7b669
L
17272if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17273 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17274Usually this means the macro was only invoked conditionally." "$LINENO" 5
17275fi
17276if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17277 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
17278Usually this means the macro was only invoked conditionally." "$LINENO" 5
17279fi
17280
17281if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
17282 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
17283Usually this means the macro was only invoked conditionally." "$LINENO" 5
17284fi
17285if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17286 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17287Usually this means the macro was only invoked conditionally." "$LINENO" 5
17288fi
17289if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17290 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17291Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292fi
17293if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17294 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
17295Usually this means the macro was only invoked conditionally." "$LINENO" 5
17296fi
17297if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17298 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17299Usually this means the macro was only invoked conditionally." "$LINENO" 5
17300fi
17301if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17302 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17303Usually this means the macro was only invoked conditionally." "$LINENO" 5
17304fi
17305if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17306 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17307Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308fi
17309
17310: "${CONFIG_STATUS=./config.status}"
17311ac_write_fail=0
17312ac_clean_files_save=$ac_clean_files
17313ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17315$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17316as_write_fail=0
17317cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17318#! $SHELL
17319# Generated by $as_me.
17320# Run this file to recreate the current configuration.
17321# Compiler output produced by configure, useful for debugging
17322# configure, is in config.log if it exists.
17323
17324debug=false
17325ac_cs_recheck=false
17326ac_cs_silent=false
17327
17328SHELL=\${CONFIG_SHELL-$SHELL}
17329export SHELL
17330_ASEOF
17331cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17332## -------------------- ##
17333## M4sh Initialization. ##
17334## -------------------- ##
17335
17336# Be more Bourne compatible
17337DUALCASE=1; export DUALCASE # for MKS sh
17338if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17339 emulate sh
17340 NULLCMD=:
17341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17342 # is contrary to our usage. Disable this feature.
17343 alias -g '${1+"$@"}'='"$@"'
17344 setopt NO_GLOB_SUBST
17345else
17346 case `(set -o) 2>/dev/null` in #(
17347 *posix*) :
17348 set -o posix ;; #(
17349 *) :
17350 ;;
17351esac
17352fi
17353
17354
17355as_nl='
17356'
17357export as_nl
17358# Printing a long string crashes Solaris 7 /usr/bin/printf.
17359as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17360as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17361as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17362# Prefer a ksh shell builtin over an external printf program on Solaris,
17363# but without wasting forks for bash or zsh.
17364if test -z "$BASH_VERSION$ZSH_VERSION" \
17365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17366 as_echo='print -r --'
17367 as_echo_n='print -rn --'
17368elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17369 as_echo='printf %s\n'
17370 as_echo_n='printf %s'
17371else
17372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17373 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17374 as_echo_n='/usr/ucb/echo -n'
17375 else
17376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17377 as_echo_n_body='eval
17378 arg=$1;
17379 case $arg in #(
17380 *"$as_nl"*)
17381 expr "X$arg" : "X\\(.*\\)$as_nl";
17382 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17383 esac;
17384 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17385 '
17386 export as_echo_n_body
17387 as_echo_n='sh -c $as_echo_n_body as_echo'
17388 fi
17389 export as_echo_body
17390 as_echo='sh -c $as_echo_body as_echo'
17391fi
17392
17393# The user is always right.
17394if test "${PATH_SEPARATOR+set}" != set; then
17395 PATH_SEPARATOR=:
17396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17398 PATH_SEPARATOR=';'
17399 }
17400fi
17401
17402
17403# IFS
17404# We need space, tab and new line, in precisely that order. Quoting is
17405# there to prevent editors from complaining about space-tab.
17406# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17407# splitting by setting IFS to empty value.)
17408IFS=" "" $as_nl"
17409
17410# Find who we are. Look in the path if we contain no directory separator.
17411as_myself=
17412case $0 in #((
17413 *[\\/]* ) as_myself=$0 ;;
17414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415for as_dir in $PATH
17416do
17417 IFS=$as_save_IFS
17418 test -z "$as_dir" && as_dir=.
17419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17420 done
17421IFS=$as_save_IFS
17422
17423 ;;
17424esac
17425# We did not find ourselves, most probably we were run as `sh COMMAND'
17426# in which case we are not to be found in the path.
17427if test "x$as_myself" = x; then
17428 as_myself=$0
17429fi
17430if test ! -f "$as_myself"; then
17431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17432 exit 1
17433fi
17434
17435# Unset variables that we do not need and which cause bugs (e.g. in
17436# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17437# suppresses any "Segmentation fault" message there. '((' could
17438# trigger a bug in pdksh 5.2.14.
17439for as_var in BASH_ENV ENV MAIL MAILPATH
17440do eval test x\${$as_var+set} = xset \
17441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17442done
17443PS1='$ '
17444PS2='> '
17445PS4='+ '
17446
17447# NLS nuisances.
17448LC_ALL=C
17449export LC_ALL
17450LANGUAGE=C
17451export LANGUAGE
17452
17453# CDPATH.
17454(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17455
17456
17457# as_fn_error STATUS ERROR [LINENO LOG_FD]
17458# ----------------------------------------
17459# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17460# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17461# script with STATUS, using 1 if that was 0.
17462as_fn_error ()
17463{
17464 as_status=$1; test $as_status -eq 0 && as_status=1
17465 if test "$4"; then
17466 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17468 fi
17469 $as_echo "$as_me: error: $2" >&2
17470 as_fn_exit $as_status
17471} # as_fn_error
17472
17473
17474# as_fn_set_status STATUS
17475# -----------------------
17476# Set $? to STATUS, without forking.
17477as_fn_set_status ()
17478{
17479 return $1
17480} # as_fn_set_status
17481
17482# as_fn_exit STATUS
17483# -----------------
17484# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17485as_fn_exit ()
17486{
17487 set +e
17488 as_fn_set_status $1
17489 exit $1
17490} # as_fn_exit
17491
17492# as_fn_unset VAR
17493# ---------------
17494# Portably unset VAR.
17495as_fn_unset ()
17496{
17497 { eval $1=; unset $1;}
17498}
17499as_unset=as_fn_unset
17500# as_fn_append VAR VALUE
17501# ----------------------
17502# Append the text in VALUE to the end of the definition contained in VAR. Take
17503# advantage of any shell optimizations that allow amortized linear growth over
17504# repeated appends, instead of the typical quadratic growth present in naive
17505# implementations.
17506if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17507 eval 'as_fn_append ()
17508 {
17509 eval $1+=\$2
17510 }'
17511else
17512 as_fn_append ()
17513 {
17514 eval $1=\$$1\$2
17515 }
17516fi # as_fn_append
17517
17518# as_fn_arith ARG...
17519# ------------------
17520# Perform arithmetic evaluation on the ARGs, and store the result in the
17521# global $as_val. Take advantage of shells that can avoid forks. The arguments
17522# must be portable across $(()) and expr.
17523if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17524 eval 'as_fn_arith ()
17525 {
17526 as_val=$(( $* ))
17527 }'
17528else
17529 as_fn_arith ()
17530 {
17531 as_val=`expr "$@" || test $? -eq 1`
17532 }
17533fi # as_fn_arith
17534
17535
17536if expr a : '\(a\)' >/dev/null 2>&1 &&
17537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17538 as_expr=expr
17539else
17540 as_expr=false
17541fi
17542
17543if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17544 as_basename=basename
17545else
17546 as_basename=false
17547fi
17548
17549if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17550 as_dirname=dirname
17551else
17552 as_dirname=false
17553fi
17554
17555as_me=`$as_basename -- "$0" ||
17556$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17557 X"$0" : 'X\(//\)$' \| \
17558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17559$as_echo X/"$0" |
17560 sed '/^.*\/\([^/][^/]*\)\/*$/{
17561 s//\1/
17562 q
17563 }
17564 /^X\/\(\/\/\)$/{
17565 s//\1/
17566 q
17567 }
17568 /^X\/\(\/\).*/{
17569 s//\1/
17570 q
17571 }
17572 s/.*/./; q'`
17573
17574# Avoid depending upon Character Ranges.
17575as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17576as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17577as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17578as_cr_digits='0123456789'
17579as_cr_alnum=$as_cr_Letters$as_cr_digits
17580
17581ECHO_C= ECHO_N= ECHO_T=
17582case `echo -n x` in #(((((
17583-n*)
17584 case `echo 'xy\c'` in
17585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17586 xy) ECHO_C='\c';;
17587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17588 ECHO_T=' ';;
17589 esac;;
17590*)
17591 ECHO_N='-n';;
17592esac
17593
17594rm -f conf$$ conf$$.exe conf$$.file
17595if test -d conf$$.dir; then
17596 rm -f conf$$.dir/conf$$.file
17597else
17598 rm -f conf$$.dir
17599 mkdir conf$$.dir 2>/dev/null
17600fi
17601if (echo >conf$$.file) 2>/dev/null; then
17602 if ln -s conf$$.file conf$$ 2>/dev/null; then
17603 as_ln_s='ln -s'
17604 # ... but there are two gotchas:
17605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17607 # In both cases, we have to default to `cp -pR'.
17608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17609 as_ln_s='cp -pR'
17610 elif ln conf$$.file conf$$ 2>/dev/null; then
17611 as_ln_s=ln
17612 else
17613 as_ln_s='cp -pR'
17614 fi
17615else
17616 as_ln_s='cp -pR'
17617fi
17618rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17619rmdir conf$$.dir 2>/dev/null
17620
17621
17622# as_fn_mkdir_p
17623# -------------
17624# Create "$as_dir" as a directory, including parents if necessary.
17625as_fn_mkdir_p ()
17626{
17627
17628 case $as_dir in #(
17629 -*) as_dir=./$as_dir;;
17630 esac
17631 test -d "$as_dir" || eval $as_mkdir_p || {
17632 as_dirs=
17633 while :; do
17634 case $as_dir in #(
17635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17636 *) as_qdir=$as_dir;;
17637 esac
17638 as_dirs="'$as_qdir' $as_dirs"
17639 as_dir=`$as_dirname -- "$as_dir" ||
17640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17641 X"$as_dir" : 'X\(//\)[^/]' \| \
17642 X"$as_dir" : 'X\(//\)$' \| \
17643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17644$as_echo X"$as_dir" |
17645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17646 s//\1/
17647 q
17648 }
17649 /^X\(\/\/\)[^/].*/{
17650 s//\1/
17651 q
17652 }
17653 /^X\(\/\/\)$/{
17654 s//\1/
17655 q
17656 }
17657 /^X\(\/\).*/{
17658 s//\1/
17659 q
17660 }
17661 s/.*/./; q'`
17662 test -d "$as_dir" && break
17663 done
17664 test -z "$as_dirs" || eval "mkdir $as_dirs"
17665 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17666
17667
17668} # as_fn_mkdir_p
17669if mkdir -p . 2>/dev/null; then
17670 as_mkdir_p='mkdir -p "$as_dir"'
17671else
17672 test -d ./-p && rmdir ./-p
17673 as_mkdir_p=false
17674fi
17675
17676
17677# as_fn_executable_p FILE
17678# -----------------------
17679# Test if FILE is an executable regular file.
17680as_fn_executable_p ()
17681{
17682 test -f "$1" && test -x "$1"
17683} # as_fn_executable_p
17684as_test_x='test -x'
17685as_executable_p=as_fn_executable_p
17686
17687# Sed expression to map a string onto a valid CPP name.
17688as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17689
17690# Sed expression to map a string onto a valid variable name.
17691as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17692
17693
17694exec 6>&1
17695## ----------------------------------- ##
17696## Main body of $CONFIG_STATUS script. ##
17697## ----------------------------------- ##
17698_ASEOF
17699test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17700
17701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702# Save the log message, to keep $0 and so on meaningful, and to
17703# report actual input values of CONFIG_FILES etc. instead of their
17704# values after options handling.
17705ac_log="
17706This file was extended by libffi $as_me 3.4.2, which was
17707generated by GNU Autoconf 2.69. Invocation command line was
17708
17709 CONFIG_FILES = $CONFIG_FILES
17710 CONFIG_HEADERS = $CONFIG_HEADERS
17711 CONFIG_LINKS = $CONFIG_LINKS
17712 CONFIG_COMMANDS = $CONFIG_COMMANDS
17713 $ $0 $@
17714
17715on `(hostname || uname -n) 2>/dev/null | sed 1q`
17716"
17717
17718_ACEOF
17719
17720case $ac_config_files in *"
17721"*) set x $ac_config_files; shift; ac_config_files=$*;;
17722esac
17723
17724case $ac_config_headers in *"
17725"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17726esac
17727
17728
17729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730# Files that config.status was made for.
17731config_files="$ac_config_files"
17732config_headers="$ac_config_headers"
17733config_links="$ac_config_links"
17734config_commands="$ac_config_commands"
17735
17736_ACEOF
17737
17738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739ac_cs_usage="\
17740\`$as_me' instantiates files and other configuration actions
17741from templates according to the current configuration. Unless the files
17742and actions are specified as TAGs, all are instantiated by default.
17743
17744Usage: $0 [OPTION]... [TAG]...
17745
17746 -h, --help print this help, then exit
17747 -V, --version print version number and configuration settings, then exit
17748 --config print configuration, then exit
17749 -q, --quiet, --silent
17750 do not print progress messages
17751 -d, --debug don't remove temporary files
17752 --recheck update $as_me by reconfiguring in the same conditions
17753 --file=FILE[:TEMPLATE]
17754 instantiate the configuration file FILE
17755 --header=FILE[:TEMPLATE]
17756 instantiate the configuration header FILE
17757
17758Configuration files:
17759$config_files
17760
17761Configuration headers:
17762$config_headers
17763
17764Configuration links:
17765$config_links
17766
17767Configuration commands:
17768$config_commands
17769
17770Report bugs to <http://github.com/libffi/libffi/issues>."
17771
17772_ACEOF
17773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17774ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17775ac_cs_version="\\
17776libffi config.status 3.4.2
17777configured by $0, generated by GNU Autoconf 2.69,
17778 with options \\"\$ac_cs_config\\"
17779
17780Copyright (C) 2012 Free Software Foundation, Inc.
17781This config.status script is free software; the Free Software Foundation
17782gives unlimited permission to copy, distribute and modify it."
17783
17784ac_pwd='$ac_pwd'
17785srcdir='$srcdir'
17786INSTALL='$INSTALL'
17787MKDIR_P='$MKDIR_P'
17788AWK='$AWK'
17789test -n "\$AWK" || AWK=awk
17790_ACEOF
17791
17792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17793# The default lists apply if the user does not specify any file.
17794ac_need_defaults=:
17795while test $# != 0
17796do
17797 case $1 in
17798 --*=?*)
17799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17801 ac_shift=:
17802 ;;
17803 --*=)
17804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17805 ac_optarg=
17806 ac_shift=:
17807 ;;
17808 *)
17809 ac_option=$1
17810 ac_optarg=$2
17811 ac_shift=shift
17812 ;;
17813 esac
17814
17815 case $ac_option in
17816 # Handling of the options.
17817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17818 ac_cs_recheck=: ;;
17819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17820 $as_echo "$ac_cs_version"; exit ;;
17821 --config | --confi | --conf | --con | --co | --c )
17822 $as_echo "$ac_cs_config"; exit ;;
17823 --debug | --debu | --deb | --de | --d | -d )
17824 debug=: ;;
17825 --file | --fil | --fi | --f )
17826 $ac_shift
17827 case $ac_optarg in
17828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17829 '') as_fn_error $? "missing file argument" ;;
17830 esac
17831 as_fn_append CONFIG_FILES " '$ac_optarg'"
17832 ac_need_defaults=false;;
17833 --header | --heade | --head | --hea )
17834 $ac_shift
17835 case $ac_optarg in
17836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17837 esac
17838 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17839 ac_need_defaults=false;;
17840 --he | --h)
17841 # Conflict between --help and --header
17842 as_fn_error $? "ambiguous option: \`$1'
17843Try \`$0 --help' for more information.";;
17844 --help | --hel | -h )
17845 $as_echo "$ac_cs_usage"; exit ;;
17846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17848 ac_cs_silent=: ;;
17849
17850 # This is an error.
17851 -*) as_fn_error $? "unrecognized option: \`$1'
17852Try \`$0 --help' for more information." ;;
17853
17854 *) as_fn_append ac_config_targets " $1"
17855 ac_need_defaults=false ;;
17856
17857 esac
17858 shift
17859done
17860
17861ac_configure_extra_args=
17862
17863if $ac_cs_silent; then
17864 exec 6>/dev/null
17865 ac_configure_extra_args="$ac_configure_extra_args --silent"
17866fi
17867
17868_ACEOF
17869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17870if \$ac_cs_recheck; then
17871 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17872 shift
17873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17874 CONFIG_SHELL='$SHELL'
17875 export CONFIG_SHELL
17876 exec "\$@"
17877fi
17878
17879_ACEOF
17880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17881exec 5>>config.log
17882{
17883 echo
17884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17885## Running $as_me. ##
17886_ASBOX
17887 $as_echo "$ac_log"
17888} >&5
17889
17890_ACEOF
17891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17892#
17893# INIT-COMMANDS
17894#
17895
17896srcdir="$srcdir"
17897host="$host"
17898target="$target"
17899with_multisubdir="$with_multisubdir"
17900with_multisrctop="$with_multisrctop"
17901with_target_subdir="$with_target_subdir"
17902ac_configure_args="${multilib_arg} ${ac_configure_args}"
17903multi_basedir="$multi_basedir"
17904CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17905CC="$CC"
17906CXX="$CXX"
17907GFORTRAN="$GFORTRAN"
17908GDC="$GDC"
17909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17910
17911
17912# The HP-UX ksh and POSIX shell print the target directory to stdout
17913# if CDPATH is set.
17914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17915
17916sed_quote_subst='$sed_quote_subst'
17917double_quote_subst='$double_quote_subst'
17918delay_variable_subst='$delay_variable_subst'
17919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17921enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17922enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17927host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17928host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17929host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17930build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17931build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17932build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17933SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17934Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17935GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17936EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17937FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17938LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17939NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17940LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17941max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17942ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17943exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17944lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17945lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17946lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17947reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17948reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17949OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17950deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17951file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17952AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17953AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17954STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17955RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17956old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17957old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17958old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17959lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17960CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17961CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17962compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17963GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17964lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17965lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17966lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17967lt_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"`'
17968objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17969MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17970lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17971lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17972lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17973lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17974lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17975need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17976DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17977NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17978LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17979OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17980OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17981libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17982shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17983extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17984archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17985enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17986export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17987whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17988compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17989old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17990old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17991archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17992archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17993module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17994module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17995with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17996allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17997no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17998hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17999hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18000hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18001hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18002hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18003hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18004hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18005hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18006inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18007link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18008fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18009always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18010export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18011exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18012include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18013prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18014file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18015variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18016need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18017need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18018version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18019runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18020shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18021shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18022libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18023library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18024soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18025install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18026postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18027postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18028finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18029finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18030hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18031sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18032sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18033hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18034enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18035enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18036enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18037old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18038striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18039compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18040predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18041postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18042predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18043postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18044compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18045LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18046reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18047reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18048old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18049compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18050GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18051lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18052lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18053lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18054lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18055lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18056archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18057enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18058export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18059whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18060compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18061old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18062old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18063archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18064archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18065module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18066module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18067with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18068allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18069no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18070hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18071hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18072hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18073hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18074hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18075hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18076hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18077hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18078inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18079link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18080fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18081always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18082export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18083exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18084include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18085prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18087hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18088compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18089predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18090postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18091predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18092postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18093compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18094
18095LTCC='$LTCC'
18096LTCFLAGS='$LTCFLAGS'
18097compiler='$compiler_DEFAULT'
18098
18099# A function that is used when there is no print builtin or printf.
18100func_fallback_echo ()
18101{
18102 eval 'cat <<_LTECHO_EOF
18103\$1
18104_LTECHO_EOF'
18105}
18106
18107# Quote evaled strings.
18108for var in SHELL \
18109ECHO \
18110SED \
18111GREP \
18112EGREP \
18113FGREP \
18114LD \
18115NM \
18116LN_S \
18117lt_SP2NL \
18118lt_NL2SP \
18119reload_flag \
18120OBJDUMP \
18121deplibs_check_method \
18122file_magic_cmd \
18123AR \
18124AR_FLAGS \
18125STRIP \
18126RANLIB \
18127CC \
18128CFLAGS \
18129compiler \
18130lt_cv_sys_global_symbol_pipe \
18131lt_cv_sys_global_symbol_to_cdecl \
18132lt_cv_sys_global_symbol_to_c_name_address \
18133lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18134lt_prog_compiler_no_builtin_flag \
18135lt_prog_compiler_wl \
18136lt_prog_compiler_pic \
18137lt_prog_compiler_static \
18138lt_cv_prog_compiler_c_o \
18139need_locks \
18140DSYMUTIL \
18141NMEDIT \
18142LIPO \
18143OTOOL \
18144OTOOL64 \
18145shrext_cmds \
18146export_dynamic_flag_spec \
18147whole_archive_flag_spec \
18148compiler_needs_object \
18149with_gnu_ld \
18150allow_undefined_flag \
18151no_undefined_flag \
18152hardcode_libdir_flag_spec \
18153hardcode_libdir_flag_spec_ld \
18154hardcode_libdir_separator \
18155fix_srcfile_path \
18156exclude_expsyms \
18157include_expsyms \
18158file_list_spec \
18159variables_saved_for_relink \
18160libname_spec \
18161library_names_spec \
18162soname_spec \
18163install_override_mode \
18164finish_eval \
18165old_striplib \
18166striplib \
18167compiler_lib_search_dirs \
18168predep_objects \
18169postdep_objects \
18170predeps \
18171postdeps \
18172compiler_lib_search_path \
18173LD_CXX \
18174reload_flag_CXX \
18175compiler_CXX \
18176lt_prog_compiler_no_builtin_flag_CXX \
18177lt_prog_compiler_wl_CXX \
18178lt_prog_compiler_pic_CXX \
18179lt_prog_compiler_static_CXX \
18180lt_cv_prog_compiler_c_o_CXX \
18181export_dynamic_flag_spec_CXX \
18182whole_archive_flag_spec_CXX \
18183compiler_needs_object_CXX \
18184with_gnu_ld_CXX \
18185allow_undefined_flag_CXX \
18186no_undefined_flag_CXX \
18187hardcode_libdir_flag_spec_CXX \
18188hardcode_libdir_flag_spec_ld_CXX \
18189hardcode_libdir_separator_CXX \
18190fix_srcfile_path_CXX \
18191exclude_expsyms_CXX \
18192include_expsyms_CXX \
18193file_list_spec_CXX \
18194compiler_lib_search_dirs_CXX \
18195predep_objects_CXX \
18196postdep_objects_CXX \
18197predeps_CXX \
18198postdeps_CXX \
18199compiler_lib_search_path_CXX; do
18200 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18201 *[\\\\\\\`\\"\\\$]*)
18202 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18203 ;;
18204 *)
18205 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18206 ;;
18207 esac
18208done
18209
18210# Double-quote double-evaled strings.
18211for var in reload_cmds \
18212old_postinstall_cmds \
18213old_postuninstall_cmds \
18214old_archive_cmds \
18215extract_expsyms_cmds \
18216old_archive_from_new_cmds \
18217old_archive_from_expsyms_cmds \
18218archive_cmds \
18219archive_expsym_cmds \
18220module_cmds \
18221module_expsym_cmds \
18222export_symbols_cmds \
18223prelink_cmds \
18224postinstall_cmds \
18225postuninstall_cmds \
18226finish_cmds \
18227sys_lib_search_path_spec \
18228sys_lib_dlsearch_path_spec \
18229reload_cmds_CXX \
18230old_archive_cmds_CXX \
18231old_archive_from_new_cmds_CXX \
18232old_archive_from_expsyms_cmds_CXX \
18233archive_cmds_CXX \
18234archive_expsym_cmds_CXX \
18235module_cmds_CXX \
18236module_expsym_cmds_CXX \
18237export_symbols_cmds_CXX \
18238prelink_cmds_CXX; do
18239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18240 *[\\\\\\\`\\"\\\$]*)
18241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18242 ;;
18243 *)
18244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18245 ;;
18246 esac
18247done
18248
18249ac_aux_dir='$ac_aux_dir'
18250xsi_shell='$xsi_shell'
18251lt_shell_append='$lt_shell_append'
18252
18253# See if we are running on zsh, and set the options which allow our
18254# commands through without removal of \ escapes INIT.
18255if test -n "\${ZSH_VERSION+set}" ; then
18256 setopt NO_GLOB_SUBST
18257fi
18258
18259
18260 PACKAGE='$PACKAGE'
18261 VERSION='$VERSION'
18262 TIMESTAMP='$TIMESTAMP'
18263 RM='$RM'
18264 ofile='$ofile'
18265
18266
18267
18268
18269
18270TARGETDIR="$TARGETDIR"
18271
18272_ACEOF
18273
18274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18275
18276# Handling of arguments.
18277for ac_config_target in $ac_config_targets
18278do
18279 case $ac_config_target in
18280 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
18281 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18282 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18283 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18284 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
18285 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
18286 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18287 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
18288 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18289 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18290 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18291 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
18292 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18293
18294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18295 esac
18296done
18297
18298
18299# If the user did not use the arguments to specify the items to instantiate,
18300# then the envvar interface is used. Set only those that are not.
18301# We use the long form for the default assignment because of an extremely
18302# bizarre bug on SunOS 4.1.3.
18303if $ac_need_defaults; then
18304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18306 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18307 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18308fi
18309
18310# Have a temporary directory for convenience. Make it in the build tree
18311# simply because there is no reason against having it here, and in addition,
18312# creating and moving files from /tmp can sometimes cause problems.
18313# Hook for its removal unless debugging.
18314# Note that there is a small window in which the directory will not be cleaned:
18315# after its creation but before its name has been assigned to `$tmp'.
18316$debug ||
18317{
18318 tmp= ac_tmp=
18319 trap 'exit_status=$?
18320 : "${ac_tmp:=$tmp}"
18321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18322' 0
18323 trap 'as_fn_exit 1' 1 2 13 15
18324}
18325# Create a (secure) tmp directory for tmp files.
18326
18327{
18328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18329 test -d "$tmp"
18330} ||
18331{
18332 tmp=./conf$$-$RANDOM
18333 (umask 077 && mkdir "$tmp")
18334} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18335ac_tmp=$tmp
18336
18337# Set up the scripts for CONFIG_FILES section.
18338# No need to generate them if there are no CONFIG_FILES.
18339# This happens for instance with `./config.status config.h'.
18340if test -n "$CONFIG_FILES"; then
18341
18342
18343ac_cr=`echo X | tr X '\015'`
18344# On cygwin, bash can eat \r inside `` if the user requested igncr.
18345# But we know of no other shell where ac_cr would be empty at this
18346# point, so we can use a bashism as a fallback.
18347if test "x$ac_cr" = x; then
18348 eval ac_cr=\$\'\\r\'
18349fi
18350ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18351if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18352 ac_cs_awk_cr='\\r'
18353else
18354 ac_cs_awk_cr=$ac_cr
18355fi
18356
18357echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18358_ACEOF
18359
18360
18361{
18362 echo "cat >conf$$subs.awk <<_ACEOF" &&
18363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18364 echo "_ACEOF"
18365} >conf$$subs.sh ||
18366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18367ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18368ac_delim='%!_!# '
18369for ac_last_try in false false false false false :; do
18370 . ./conf$$subs.sh ||
18371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18372
18373 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18374 if test $ac_delim_n = $ac_delim_num; then
18375 break
18376 elif $ac_last_try; then
18377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18378 else
18379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18380 fi
18381done
18382rm -f conf$$subs.sh
18383
18384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18385cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18386_ACEOF
18387sed -n '
18388h
18389s/^/S["/; s/!.*/"]=/
18390p
18391g
18392s/^[^!]*!//
18393:repl
18394t repl
18395s/'"$ac_delim"'$//
18396t delim
18397:nl
18398h
18399s/\(.\{148\}\)..*/\1/
18400t more1
18401s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18402p
18403n
18404b repl
18405:more1
18406s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18407p
18408g
18409s/.\{148\}//
18410t nl
18411:delim
18412h
18413s/\(.\{148\}\)..*/\1/
18414t more2
18415s/["\\]/\\&/g; s/^/"/; s/$/"/
18416p
18417b
18418:more2
18419s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18420p
18421g
18422s/.\{148\}//
18423t delim
18424' <conf$$subs.awk | sed '
18425/^[^""]/{
18426 N
18427 s/\n//
18428}
18429' >>$CONFIG_STATUS || ac_write_fail=1
18430rm -f conf$$subs.awk
18431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18432_ACAWK
18433cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18434 for (key in S) S_is_set[key] = 1
18435 FS = "\a"
18436
18437}
18438{
18439 line = $ 0
18440 nfields = split(line, field, "@")
18441 substed = 0
18442 len = length(field[1])
18443 for (i = 2; i < nfields; i++) {
18444 key = field[i]
18445 keylen = length(key)
18446 if (S_is_set[key]) {
18447 value = S[key]
18448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18449 len += length(value) + length(field[++i])
18450 substed = 1
18451 } else
18452 len += 1 + keylen
18453 }
18454
18455 print line
18456}
18457
18458_ACAWK
18459_ACEOF
18460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18461if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18463else
18464 cat
18465fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18466 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18467_ACEOF
18468
18469# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18470# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18471# trailing colons and then remove the whole line if VPATH becomes empty
18472# (actually we leave an empty line to preserve line numbers).
18473if test "x$srcdir" = x.; then
18474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18475h
18476s///
18477s/^/:/
18478s/[ ]*$/:/
18479s/:\$(srcdir):/:/g
18480s/:\${srcdir}:/:/g
18481s/:@srcdir@:/:/g
18482s/^:*//
18483s/:*$//
18484x
18485s/\(=[ ]*\).*/\1/
18486G
18487s/\n//
18488s/^[^=]*=[ ]*$//
18489}'
18490fi
18491
18492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493fi # test -n "$CONFIG_FILES"
18494
18495# Set up the scripts for CONFIG_HEADERS section.
18496# No need to generate them if there are no CONFIG_HEADERS.
18497# This happens for instance with `./config.status Makefile'.
18498if test -n "$CONFIG_HEADERS"; then
18499cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18500BEGIN {
18501_ACEOF
18502
18503# Transform confdefs.h into an awk script `defines.awk', embedded as
18504# here-document in config.status, that substitutes the proper values into
18505# config.h.in to produce config.h.
18506
18507# Create a delimiter string that does not exist in confdefs.h, to ease
18508# handling of long lines.
18509ac_delim='%!_!# '
18510for ac_last_try in false false :; do
18511 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18512 if test -z "$ac_tt"; then
18513 break
18514 elif $ac_last_try; then
18515 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18516 else
18517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18518 fi
18519done
18520
18521# For the awk script, D is an array of macro values keyed by name,
18522# likewise P contains macro parameters if any. Preserve backslash
18523# newline sequences.
18524
18525ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18526sed -n '
18527s/.\{148\}/&'"$ac_delim"'/g
18528t rset
18529:rset
18530s/^[ ]*#[ ]*define[ ][ ]*/ /
18531t def
18532d
18533:def
18534s/\\$//
18535t bsnl
18536s/["\\]/\\&/g
18537s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18538D["\1"]=" \3"/p
18539s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18540d
18541:bsnl
18542s/["\\]/\\&/g
18543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18544D["\1"]=" \3\\\\\\n"\\/p
18545t cont
18546s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18547t cont
18548d
18549:cont
18550n
18551s/.\{148\}/&'"$ac_delim"'/g
18552t clear
18553:clear
18554s/\\$//
18555t bsnlc
18556s/["\\]/\\&/g; s/^/"/; s/$/"/p
18557d
18558:bsnlc
18559s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18560b cont
18561' <confdefs.h | sed '
18562s/'"$ac_delim"'/"\\\
18563"/g' >>$CONFIG_STATUS || ac_write_fail=1
18564
18565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18566 for (key in D) D_is_set[key] = 1
18567 FS = "\a"
18568}
18569/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18570 line = \$ 0
18571 split(line, arg, " ")
18572 if (arg[1] == "#") {
18573 defundef = arg[2]
18574 mac1 = arg[3]
18575 } else {
18576 defundef = substr(arg[1], 2)
18577 mac1 = arg[2]
18578 }
18579 split(mac1, mac2, "(") #)
18580 macro = mac2[1]
18581 prefix = substr(line, 1, index(line, defundef) - 1)
18582 if (D_is_set[macro]) {
18583 # Preserve the white space surrounding the "#".
18584 print prefix "define", macro P[macro] D[macro]
18585 next
18586 } else {
18587 # Replace #undef with comments. This is necessary, for example,
18588 # in the case of _POSIX_SOURCE, which is predefined and required
18589 # on some systems where configure will not decide to define it.
18590 if (defundef == "undef") {
18591 print "/*", prefix defundef, macro, "*/"
18592 next
18593 }
18594 }
18595}
18596{ print }
18597_ACAWK
18598_ACEOF
18599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18600 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18601fi # test -n "$CONFIG_HEADERS"
18602
18603
18604eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18605shift
18606for ac_tag
18607do
18608 case $ac_tag in
18609 :[FHLC]) ac_mode=$ac_tag; continue;;
18610 esac
18611 case $ac_mode$ac_tag in
18612 :[FHL]*:*);;
18613 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18614 :[FH]-) ac_tag=-:-;;
18615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18616 esac
18617 ac_save_IFS=$IFS
18618 IFS=:
18619 set x $ac_tag
18620 IFS=$ac_save_IFS
18621 shift
18622 ac_file=$1
18623 shift
18624
18625 case $ac_mode in
18626 :L) ac_source=$1;;
18627 :[FH])
18628 ac_file_inputs=
18629 for ac_f
18630 do
18631 case $ac_f in
18632 -) ac_f="$ac_tmp/stdin";;
18633 *) # Look for the file first in the build tree, then in the source tree
18634 # (if the path is not absolute). The absolute path cannot be DOS-style,
18635 # because $ac_f cannot contain `:'.
18636 test -f "$ac_f" ||
18637 case $ac_f in
18638 [\\/$]*) false;;
18639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18640 esac ||
18641 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18642 esac
18643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18644 as_fn_append ac_file_inputs " '$ac_f'"
18645 done
18646
18647 # Let's still pretend it is `configure' which instantiates (i.e., don't
18648 # use $as_me), people would be surprised to read:
18649 # /* config.h. Generated by config.status. */
18650 configure_input='Generated from '`
18651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18652 `' by configure.'
18653 if test x"$ac_file" != x-; then
18654 configure_input="$ac_file. $configure_input"
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18656$as_echo "$as_me: creating $ac_file" >&6;}
18657 fi
18658 # Neutralize special characters interpreted by sed in replacement strings.
18659 case $configure_input in #(
18660 *\&* | *\|* | *\\* )
18661 ac_sed_conf_input=`$as_echo "$configure_input" |
18662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18663 *) ac_sed_conf_input=$configure_input;;
18664 esac
18665
18666 case $ac_tag in
18667 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18669 esac
18670 ;;
18671 esac
18672
18673 ac_dir=`$as_dirname -- "$ac_file" ||
18674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18675 X"$ac_file" : 'X\(//\)[^/]' \| \
18676 X"$ac_file" : 'X\(//\)$' \| \
18677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18678$as_echo X"$ac_file" |
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18680 s//\1/
18681 q
18682 }
18683 /^X\(\/\/\)[^/].*/{
18684 s//\1/
18685 q
18686 }
18687 /^X\(\/\/\)$/{
18688 s//\1/
18689 q
18690 }
18691 /^X\(\/\).*/{
18692 s//\1/
18693 q
18694 }
18695 s/.*/./; q'`
18696 as_dir="$ac_dir"; as_fn_mkdir_p
18697 ac_builddir=.
18698
18699case "$ac_dir" in
18700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18701*)
18702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18703 # A ".." for each directory in $ac_dir_suffix.
18704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18705 case $ac_top_builddir_sub in
18706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18708 esac ;;
18709esac
18710ac_abs_top_builddir=$ac_pwd
18711ac_abs_builddir=$ac_pwd$ac_dir_suffix
18712# for backward compatibility:
18713ac_top_builddir=$ac_top_build_prefix
18714
18715case $srcdir in
18716 .) # We are building in place.
18717 ac_srcdir=.
18718 ac_top_srcdir=$ac_top_builddir_sub
18719 ac_abs_top_srcdir=$ac_pwd ;;
18720 [\\/]* | ?:[\\/]* ) # Absolute name.
18721 ac_srcdir=$srcdir$ac_dir_suffix;
18722 ac_top_srcdir=$srcdir
18723 ac_abs_top_srcdir=$srcdir ;;
18724 *) # Relative name.
18725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18726 ac_top_srcdir=$ac_top_build_prefix$srcdir
18727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18728esac
18729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18730
18731
18732 case $ac_mode in
18733 :F)
18734 #
18735 # CONFIG_FILE
18736 #
18737
18738 case $INSTALL in
18739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18741 esac
18742 ac_MKDIR_P=$MKDIR_P
18743 case $MKDIR_P in
18744 [\\/$]* | ?:[\\/]* ) ;;
18745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18746 esac
18747_ACEOF
18748
18749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18750# If the template does not know about datarootdir, expand it.
18751# FIXME: This hack should be removed a few years after 2.60.
18752ac_datarootdir_hack=; ac_datarootdir_seen=
18753ac_sed_dataroot='
18754/datarootdir/ {
18755 p
18756 q
18757}
18758/@datadir@/p
18759/@docdir@/p
18760/@infodir@/p
18761/@localedir@/p
18762/@mandir@/p'
18763case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18764*datarootdir*) ac_datarootdir_seen=yes;;
18765*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18767$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18768_ACEOF
18769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18770 ac_datarootdir_hack='
18771 s&@datadir@&$datadir&g
18772 s&@docdir@&$docdir&g
18773 s&@infodir@&$infodir&g
18774 s&@localedir@&$localedir&g
18775 s&@mandir@&$mandir&g
18776 s&\\\${datarootdir}&$datarootdir&g' ;;
18777esac
18778_ACEOF
18779
18780# Neutralize VPATH when `$srcdir' = `.'.
18781# Shell code in configure.ac might set extrasub.
18782# FIXME: do we really want to maintain this feature?
18783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18784ac_sed_extra="$ac_vpsub
18785$extrasub
18786_ACEOF
18787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18788:t
18789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18790s|@configure_input@|$ac_sed_conf_input|;t t
18791s&@top_builddir@&$ac_top_builddir_sub&;t t
18792s&@top_build_prefix@&$ac_top_build_prefix&;t t
18793s&@srcdir@&$ac_srcdir&;t t
18794s&@abs_srcdir@&$ac_abs_srcdir&;t t
18795s&@top_srcdir@&$ac_top_srcdir&;t t
18796s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18797s&@builddir@&$ac_builddir&;t t
18798s&@abs_builddir@&$ac_abs_builddir&;t t
18799s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18800s&@INSTALL@&$ac_INSTALL&;t t
18801s&@MKDIR_P@&$ac_MKDIR_P&;t t
18802$ac_datarootdir_hack
18803"
18804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18806
18807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18810 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18812which seems to be undefined. Please make sure it is defined" >&5
18813$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18814which seems to be undefined. Please make sure it is defined" >&2;}
18815
18816 rm -f "$ac_tmp/stdin"
18817 case $ac_file in
18818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18820 esac \
18821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18822 ;;
18823 :H)
18824 #
18825 # CONFIG_HEADER
18826 #
18827 if test x"$ac_file" != x-; then
18828 {
18829 $as_echo "/* $configure_input */" \
18830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18831 } >"$ac_tmp/config.h" \
18832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18835$as_echo "$as_me: $ac_file is unchanged" >&6;}
18836 else
18837 rm -f "$ac_file"
18838 mv "$ac_tmp/config.h" "$ac_file" \
18839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18840 fi
18841 else
18842 $as_echo "/* $configure_input */" \
18843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18844 || as_fn_error $? "could not create -" "$LINENO" 5
18845 fi
18846# Compute "$ac_file"'s index in $config_headers.
18847_am_arg="$ac_file"
18848_am_stamp_count=1
18849for _am_header in $config_headers :; do
18850 case $_am_header in
18851 $_am_arg | $_am_arg:* )
18852 break ;;
18853 * )
18854 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18855 esac
18856done
18857echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18858$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18859 X"$_am_arg" : 'X\(//\)[^/]' \| \
18860 X"$_am_arg" : 'X\(//\)$' \| \
18861 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18862$as_echo X"$_am_arg" |
18863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18864 s//\1/
18865 q
18866 }
18867 /^X\(\/\/\)[^/].*/{
18868 s//\1/
18869 q
18870 }
18871 /^X\(\/\/\)$/{
18872 s//\1/
18873 q
18874 }
18875 /^X\(\/\).*/{
18876 s//\1/
18877 q
18878 }
18879 s/.*/./; q'`/stamp-h$_am_stamp_count
18880 ;;
18881 :L)
18882 #
18883 # CONFIG_LINK
18884 #
18885
18886 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18887 :
18888 else
18889 # Prefer the file from the source tree if names are identical.
18890 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18891 ac_source=$srcdir/$ac_source
18892 fi
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18895$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18896
18897 if test ! -r "$ac_source"; then
18898 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18899 fi
18900 rm -f "$ac_file"
18901
18902 # Try a relative symlink, then a hard link, then a copy.
18903 case $ac_source in
18904 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18905 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18906 esac
18907 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18908 ln "$ac_source" "$ac_file" 2>/dev/null ||
18909 cp -p "$ac_source" "$ac_file" ||
18910 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18911 fi
18912 ;;
18913 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18914$as_echo "$as_me: executing $ac_file commands" >&6;}
18915 ;;
18916 esac
18917
18918
18919 case $ac_file$ac_mode in
18920 "default-1":C)
18921# Only add multilib support code if we just rebuilt the top-level
18922# Makefile.
18923case " $CONFIG_FILES " in
18924 *" Makefile "*)
18925 ac_file=Makefile . ${multi_basedir}/config-ml.in
18926 ;;
18927esac ;;
18928 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18929 # Older Autoconf quotes --file arguments for eval, but not when files
18930 # are listed without --file. Let's play safe and only enable the eval
18931 # if we detect the quoting.
18932 case $CONFIG_FILES in
18933 *\'*) eval set x "$CONFIG_FILES" ;;
18934 *) set x $CONFIG_FILES ;;
18935 esac
18936 shift
18937 for mf
18938 do
18939 # Strip MF so we end up with the name of the file.
18940 mf=`echo "$mf" | sed -e 's/:.*$//'`
18941 # Check whether this is an Automake generated Makefile or not.
18942 # We used to match only the files named 'Makefile.in', but
18943 # some people rename them; so instead we look at the file content.
18944 # Grep'ing the first line is not enough: some people post-process
18945 # each Makefile.in and add a new line on top of each file to say so.
18946 # Grep'ing the whole file is not good either: AIX grep has a line
18947 # limit of 2048, but all sed's we know have understand at least 4000.
18948 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18949 dirpart=`$as_dirname -- "$mf" ||
18950$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18951 X"$mf" : 'X\(//\)[^/]' \| \
18952 X"$mf" : 'X\(//\)$' \| \
18953 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18954$as_echo X"$mf" |
18955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18956 s//\1/
18957 q
18958 }
18959 /^X\(\/\/\)[^/].*/{
18960 s//\1/
18961 q
18962 }
18963 /^X\(\/\/\)$/{
18964 s//\1/
18965 q
18966 }
18967 /^X\(\/\).*/{
18968 s//\1/
18969 q
18970 }
18971 s/.*/./; q'`
18972 else
18973 continue
18974 fi
18975 # Extract the definition of DEPDIR, am__include, and am__quote
18976 # from the Makefile without running 'make'.
18977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18978 test -z "$DEPDIR" && continue
18979 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18980 test -z "$am__include" && continue
18981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18982 # Find all dependency output files, they are included files with
18983 # $(DEPDIR) in their names. We invoke sed twice because it is the
18984 # simplest approach to changing $(DEPDIR) to its actual value in the
18985 # expansion.
18986 for file in `sed -n "
18987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18989 # Make sure the directory exists.
18990 test -f "$dirpart/$file" && continue
18991 fdir=`$as_dirname -- "$file" ||
18992$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18993 X"$file" : 'X\(//\)[^/]' \| \
18994 X"$file" : 'X\(//\)$' \| \
18995 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18996$as_echo X"$file" |
18997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18998 s//\1/
18999 q
19000 }
19001 /^X\(\/\/\)[^/].*/{
19002 s//\1/
19003 q
19004 }
19005 /^X\(\/\/\)$/{
19006 s//\1/
19007 q
19008 }
19009 /^X\(\/\).*/{
19010 s//\1/
19011 q
19012 }
19013 s/.*/./; q'`
19014 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19015 # echo "creating $dirpart/$file"
19016 echo '# dummy' > "$dirpart/$file"
19017 done
19018 done
19019}
19020 ;;
19021 "libtool":C)
19022
19023 # See if we are running on zsh, and set the options which allow our
19024 # commands through without removal of \ escapes.
19025 if test -n "${ZSH_VERSION+set}" ; then
19026 setopt NO_GLOB_SUBST
19027 fi
19028
19029 cfgfile="${ofile}T"
19030 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19031 $RM "$cfgfile"
19032
19033 cat <<_LT_EOF >> "$cfgfile"
19034#! $SHELL
19035
19036# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19037# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19038# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19040#
19041# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19042# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19043# Written by Gordon Matzigkeit, 1996
19044#
19045# This file is part of GNU Libtool.
19046#
19047# GNU Libtool is free software; you can redistribute it and/or
19048# modify it under the terms of the GNU General Public License as
19049# published by the Free Software Foundation; either version 2 of
19050# the License, or (at your option) any later version.
19051#
19052# As a special exception to the GNU General Public License,
19053# if you distribute this file as part of a program or library that
19054# is built using GNU Libtool, you may include this file under the
19055# same distribution terms that you use for the rest of that program.
19056#
19057# GNU Libtool is distributed in the hope that it will be useful,
19058# but WITHOUT ANY WARRANTY; without even the implied warranty of
19059# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19060# GNU General Public License for more details.
19061#
19062# You should have received a copy of the GNU General Public License
19063# along with GNU Libtool; see the file COPYING. If not, a copy
19064# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19065# obtained by writing to the Free Software Foundation, Inc.,
19066# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19067
19068
19069# The names of the tagged configurations supported by this script.
19070available_tags="CXX "
19071
19072# ### BEGIN LIBTOOL CONFIG
19073
19074# Which release of libtool.m4 was used?
19075macro_version=$macro_version
19076macro_revision=$macro_revision
19077
19078# Whether or not to build shared libraries.
19079build_libtool_libs=$enable_shared
19080
19081# Whether or not to build static libraries.
19082build_old_libs=$enable_static
19083
19084# What type of objects to build.
19085pic_mode=$pic_mode
19086
19087# Whether or not to optimize for fast installation.
19088fast_install=$enable_fast_install
19089
19090# Shell to use when invoking shell scripts.
19091SHELL=$lt_SHELL
19092
19093# An echo program that protects backslashes.
19094ECHO=$lt_ECHO
19095
19096# The host system.
19097host_alias=$host_alias
19098host=$host
19099host_os=$host_os
19100
19101# The build system.
19102build_alias=$build_alias
19103build=$build
19104build_os=$build_os
19105
19106# A sed program that does not truncate output.
19107SED=$lt_SED
19108
19109# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19110Xsed="\$SED -e 1s/^X//"
19111
19112# A grep program that handles long lines.
19113GREP=$lt_GREP
19114
19115# An ERE matcher.
19116EGREP=$lt_EGREP
19117
19118# A literal string matcher.
19119FGREP=$lt_FGREP
19120
19121# A BSD- or MS-compatible name lister.
19122NM=$lt_NM
19123
19124# Whether we need soft or hard links.
19125LN_S=$lt_LN_S
19126
19127# What is the maximum length of a command?
19128max_cmd_len=$max_cmd_len
19129
19130# Object file suffix (normally "o").
19131objext=$ac_objext
19132
19133# Executable file suffix (normally "").
19134exeext=$exeext
19135
19136# whether the shell understands "unset".
19137lt_unset=$lt_unset
19138
19139# turn spaces into newlines.
19140SP2NL=$lt_lt_SP2NL
19141
19142# turn newlines into spaces.
19143NL2SP=$lt_lt_NL2SP
19144
19145# An object symbol dumper.
19146OBJDUMP=$lt_OBJDUMP
19147
19148# Method to check whether dependent libraries are shared objects.
19149deplibs_check_method=$lt_deplibs_check_method
19150
19151# Command to use when deplibs_check_method == "file_magic".
19152file_magic_cmd=$lt_file_magic_cmd
19153
19154# The archiver.
19155AR=$lt_AR
19156AR_FLAGS=$lt_AR_FLAGS
19157
19158# A symbol stripping program.
19159STRIP=$lt_STRIP
19160
19161# Commands used to install an old-style archive.
19162RANLIB=$lt_RANLIB
19163old_postinstall_cmds=$lt_old_postinstall_cmds
19164old_postuninstall_cmds=$lt_old_postuninstall_cmds
19165
19166# Whether to use a lock for old archive extraction.
19167lock_old_archive_extraction=$lock_old_archive_extraction
19168
19169# A C compiler.
19170LTCC=$lt_CC
19171
19172# LTCC compiler flags.
19173LTCFLAGS=$lt_CFLAGS
19174
19175# Take the output of nm and produce a listing of raw symbols and C names.
19176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19177
19178# Transform the output of nm in a proper C declaration.
19179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19180
19181# Transform the output of nm in a C name address pair.
19182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19183
19184# Transform the output of nm in a C name address pair when lib prefix is needed.
19185global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19186
19187# The name of the directory that contains temporary libtool files.
19188objdir=$objdir
19189
19190# Used to examine libraries when file_magic_cmd begins with "file".
19191MAGIC_CMD=$MAGIC_CMD
19192
19193# Must we lock files when doing compilation?
19194need_locks=$lt_need_locks
19195
19196# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19197DSYMUTIL=$lt_DSYMUTIL
19198
19199# Tool to change global to local symbols on Mac OS X.
19200NMEDIT=$lt_NMEDIT
19201
19202# Tool to manipulate fat objects and archives on Mac OS X.
19203LIPO=$lt_LIPO
19204
19205# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19206OTOOL=$lt_OTOOL
19207
19208# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19209OTOOL64=$lt_OTOOL64
19210
19211# Old archive suffix (normally "a").
19212libext=$libext
19213
19214# Shared library suffix (normally ".so").
19215shrext_cmds=$lt_shrext_cmds
19216
19217# The commands to extract the exported symbol list from a shared archive.
19218extract_expsyms_cmds=$lt_extract_expsyms_cmds
19219
19220# Variables whose values should be saved in libtool wrapper scripts and
19221# restored at link time.
19222variables_saved_for_relink=$lt_variables_saved_for_relink
19223
19224# Do we need the "lib" prefix for modules?
19225need_lib_prefix=$need_lib_prefix
19226
19227# Do we need a version for libraries?
19228need_version=$need_version
19229
19230# Library versioning type.
19231version_type=$version_type
19232
19233# Shared library runtime path variable.
19234runpath_var=$runpath_var
19235
19236# Shared library path variable.
19237shlibpath_var=$shlibpath_var
19238
19239# Is shlibpath searched before the hard-coded library search path?
19240shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19241
19242# Format of library name prefix.
19243libname_spec=$lt_libname_spec
19244
19245# List of archive names. First name is the real one, the rest are links.
19246# The last name is the one that the linker finds with -lNAME
19247library_names_spec=$lt_library_names_spec
19248
19249# The coded name of the library, if different from the real name.
19250soname_spec=$lt_soname_spec
19251
19252# Permission mode override for installation of shared libraries.
19253install_override_mode=$lt_install_override_mode
19254
19255# Command to use after installation of a shared archive.
19256postinstall_cmds=$lt_postinstall_cmds
19257
19258# Command to use after uninstallation of a shared archive.
19259postuninstall_cmds=$lt_postuninstall_cmds
19260
19261# Commands used to finish a libtool library installation in a directory.
19262finish_cmds=$lt_finish_cmds
19263
19264# As "finish_cmds", except a single script fragment to be evaled but
19265# not shown.
19266finish_eval=$lt_finish_eval
19267
19268# Whether we should hardcode library paths into libraries.
19269hardcode_into_libs=$hardcode_into_libs
19270
19271# Compile-time system search path for libraries.
19272sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19273
19274# Run-time system search path for libraries.
19275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19276
19277# Whether dlopen is supported.
19278dlopen_support=$enable_dlopen
19279
19280# Whether dlopen of programs is supported.
19281dlopen_self=$enable_dlopen_self
19282
19283# Whether dlopen of statically linked programs is supported.
19284dlopen_self_static=$enable_dlopen_self_static
19285
19286# Commands to strip libraries.
19287old_striplib=$lt_old_striplib
19288striplib=$lt_striplib
19289
19290
19291# The linker used to build libraries.
19292LD=$lt_LD
19293
19294# How to create reloadable object files.
19295reload_flag=$lt_reload_flag
19296reload_cmds=$lt_reload_cmds
19297
19298# Commands used to build an old-style archive.
19299old_archive_cmds=$lt_old_archive_cmds
19300
19301# A language specific compiler.
19302CC=$lt_compiler
19303
19304# Is the compiler the GNU compiler?
19305with_gcc=$GCC
19306
19307# Compiler flag to turn off builtin functions.
19308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19309
19310# How to pass a linker flag through the compiler.
19311wl=$lt_lt_prog_compiler_wl
19312
19313# Additional compiler flags for building library objects.
19314pic_flag=$lt_lt_prog_compiler_pic
19315
19316# Compiler flag to prevent dynamic linking.
19317link_static_flag=$lt_lt_prog_compiler_static
19318
19319# Does compiler simultaneously support -c and -o options?
19320compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19321
19322# Whether or not to add -lc for building shared libraries.
19323build_libtool_need_lc=$archive_cmds_need_lc
19324
19325# Whether or not to disallow shared libs when runtime libs are static.
19326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19327
19328# Compiler flag to allow reflexive dlopens.
19329export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19330
19331# Compiler flag to generate shared objects directly from archives.
19332whole_archive_flag_spec=$lt_whole_archive_flag_spec
19333
19334# Whether the compiler copes with passing no objects directly.
19335compiler_needs_object=$lt_compiler_needs_object
19336
19337# Create an old-style archive from a shared archive.
19338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19339
19340# Create a temporary old-style archive to link instead of a shared archive.
19341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19342
19343# Commands used to build a shared archive.
19344archive_cmds=$lt_archive_cmds
19345archive_expsym_cmds=$lt_archive_expsym_cmds
19346
19347# Commands used to build a loadable module if different from building
19348# a shared archive.
19349module_cmds=$lt_module_cmds
19350module_expsym_cmds=$lt_module_expsym_cmds
19351
19352# Whether we are building with GNU ld or not.
19353with_gnu_ld=$lt_with_gnu_ld
19354
19355# Flag that allows shared libraries with undefined symbols to be built.
19356allow_undefined_flag=$lt_allow_undefined_flag
19357
19358# Flag that enforces no undefined symbols.
19359no_undefined_flag=$lt_no_undefined_flag
19360
19361# Flag to hardcode \$libdir into a binary during linking.
19362# This must work even if \$libdir does not exist
19363hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19364
19365# If ld is used when linking, flag to hardcode \$libdir into a binary
19366# during linking. This must work even if \$libdir does not exist.
19367hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19368
19369# Whether we need a single "-rpath" flag with a separated argument.
19370hardcode_libdir_separator=$lt_hardcode_libdir_separator
19371
19372# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19373# DIR into the resulting binary.
19374hardcode_direct=$hardcode_direct
19375
19376# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19377# DIR into the resulting binary and the resulting library dependency is
19378# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19379# library is relocated.
19380hardcode_direct_absolute=$hardcode_direct_absolute
19381
19382# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19383# into the resulting binary.
19384hardcode_minus_L=$hardcode_minus_L
19385
19386# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19387# into the resulting binary.
19388hardcode_shlibpath_var=$hardcode_shlibpath_var
19389
19390# Set to "yes" if building a shared library automatically hardcodes DIR
19391# into the library and all subsequent libraries and executables linked
19392# against it.
19393hardcode_automatic=$hardcode_automatic
19394
19395# Set to yes if linker adds runtime paths of dependent libraries
19396# to runtime path list.
19397inherit_rpath=$inherit_rpath
19398
19399# Whether libtool must link a program against all its dependency libraries.
19400link_all_deplibs=$link_all_deplibs
19401
19402# Fix the shell variable \$srcfile for the compiler.
19403fix_srcfile_path=$lt_fix_srcfile_path
19404
19405# Set to "yes" if exported symbols are required.
19406always_export_symbols=$always_export_symbols
19407
19408# The commands to list exported symbols.
19409export_symbols_cmds=$lt_export_symbols_cmds
19410
19411# Symbols that should not be listed in the preloaded symbols.
19412exclude_expsyms=$lt_exclude_expsyms
19413
19414# Symbols that must always be exported.
19415include_expsyms=$lt_include_expsyms
19416
19417# Commands necessary for linking programs (against libraries) with templates.
19418prelink_cmds=$lt_prelink_cmds
19419
19420# Specify filename containing input files.
19421file_list_spec=$lt_file_list_spec
19422
19423# How to hardcode a shared library path into an executable.
19424hardcode_action=$hardcode_action
19425
19426# The directories searched by this compiler when creating a shared library.
19427compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19428
19429# Dependencies to place before and after the objects being linked to
19430# create a shared library.
19431predep_objects=$lt_predep_objects
19432postdep_objects=$lt_postdep_objects
19433predeps=$lt_predeps
19434postdeps=$lt_postdeps
19435
19436# The library search path used internally by the compiler when linking
19437# a shared library.
19438compiler_lib_search_path=$lt_compiler_lib_search_path
19439
19440# ### END LIBTOOL CONFIG
19441
19442_LT_EOF
19443
19444 case $host_os in
19445 aix3*)
19446 cat <<\_LT_EOF >> "$cfgfile"
19447# AIX sometimes has problems with the GCC collect2 program. For some
19448# reason, if we set the COLLECT_NAMES environment variable, the problems
19449# vanish in a puff of smoke.
19450if test "X${COLLECT_NAMES+set}" != Xset; then
19451 COLLECT_NAMES=
19452 export COLLECT_NAMES
19453fi
19454_LT_EOF
19455 ;;
19456 esac
19457
19458
19459ltmain="$ac_aux_dir/ltmain.sh"
19460
19461
19462 # We use sed instead of cat because bash on DJGPP gets confused if
19463 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19464 # text mode, it properly converts lines to CR/LF. This bash problem
19465 # is reportedly fixed, but why not run on old versions too?
19466 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19467 || (rm -f "$cfgfile"; exit 1)
19468
19469 case $xsi_shell in
19470 yes)
19471 cat << \_LT_EOF >> "$cfgfile"
19472
19473# func_dirname file append nondir_replacement
19474# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19475# otherwise set result to NONDIR_REPLACEMENT.
19476func_dirname ()
19477{
19478 case ${1} in
19479 */*) func_dirname_result="${1%/*}${2}" ;;
19480 * ) func_dirname_result="${3}" ;;
19481 esac
19482}
19483
19484# func_basename file
19485func_basename ()
19486{
19487 func_basename_result="${1##*/}"
19488}
19489
19490# func_dirname_and_basename file append nondir_replacement
19491# perform func_basename and func_dirname in a single function
19492# call:
19493# dirname: Compute the dirname of FILE. If nonempty,
19494# add APPEND to the result, otherwise set result
19495# to NONDIR_REPLACEMENT.
19496# value returned in "$func_dirname_result"
19497# basename: Compute filename of FILE.
19498# value retuned in "$func_basename_result"
19499# Implementation must be kept synchronized with func_dirname
19500# and func_basename. For efficiency, we do not delegate to
19501# those functions but instead duplicate the functionality here.
19502func_dirname_and_basename ()
19503{
19504 case ${1} in
19505 */*) func_dirname_result="${1%/*}${2}" ;;
19506 * ) func_dirname_result="${3}" ;;
19507 esac
19508 func_basename_result="${1##*/}"
19509}
19510
19511# func_stripname prefix suffix name
19512# strip PREFIX and SUFFIX off of NAME.
19513# PREFIX and SUFFIX must not contain globbing or regex special
19514# characters, hashes, percent signs, but SUFFIX may contain a leading
19515# dot (in which case that matches only a dot).
19516func_stripname ()
19517{
19518 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19519 # positional parameters, so assign one to ordinary parameter first.
19520 func_stripname_result=${3}
19521 func_stripname_result=${func_stripname_result#"${1}"}
19522 func_stripname_result=${func_stripname_result%"${2}"}
19523}
19524
19525# func_opt_split
19526func_opt_split ()
19527{
19528 func_opt_split_opt=${1%%=*}
19529 func_opt_split_arg=${1#*=}
19530}
19531
19532# func_lo2o object
19533func_lo2o ()
19534{
19535 case ${1} in
19536 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19537 *) func_lo2o_result=${1} ;;
19538 esac
19539}
19540
19541# func_xform libobj-or-source
19542func_xform ()
19543{
19544 func_xform_result=${1%.*}.lo
19545}
19546
19547# func_arith arithmetic-term...
19548func_arith ()
19549{
19550 func_arith_result=$(( $* ))
19551}
19552
19553# func_len string
19554# STRING may not start with a hyphen.
19555func_len ()
19556{
19557 func_len_result=${#1}
19558}
19559
19560_LT_EOF
19561 ;;
19562 *) # Bourne compatible functions.
19563 cat << \_LT_EOF >> "$cfgfile"
19564
19565# func_dirname file append nondir_replacement
19566# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19567# otherwise set result to NONDIR_REPLACEMENT.
19568func_dirname ()
19569{
19570 # Extract subdirectory from the argument.
19571 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19572 if test "X$func_dirname_result" = "X${1}"; then
19573 func_dirname_result="${3}"
19574 else
19575 func_dirname_result="$func_dirname_result${2}"
19576 fi
19577}
19578
19579# func_basename file
19580func_basename ()
19581{
19582 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19583}
19584
19585
19586# func_stripname prefix suffix name
19587# strip PREFIX and SUFFIX off of NAME.
19588# PREFIX and SUFFIX must not contain globbing or regex special
19589# characters, hashes, percent signs, but SUFFIX may contain a leading
19590# dot (in which case that matches only a dot).
19591# func_strip_suffix prefix name
19592func_stripname ()
19593{
19594 case ${2} in
19595 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19596 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19597 esac
19598}
19599
19600# sed scripts:
19601my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19602my_sed_long_arg='1s/^-[^=]*=//'
19603
19604# func_opt_split
19605func_opt_split ()
19606{
19607 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19608 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19609}
19610
19611# func_lo2o object
19612func_lo2o ()
19613{
19614 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19615}
19616
19617# func_xform libobj-or-source
19618func_xform ()
19619{
19620 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19621}
19622
19623# func_arith arithmetic-term...
19624func_arith ()
19625{
19626 func_arith_result=`expr "$@"`
19627}
19628
19629# func_len string
19630# STRING may not start with a hyphen.
19631func_len ()
19632{
19633 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19634}
19635
19636_LT_EOF
19637esac
19638
19639case $lt_shell_append in
19640 yes)
19641 cat << \_LT_EOF >> "$cfgfile"
19642
19643# func_append var value
19644# Append VALUE to the end of shell variable VAR.
19645func_append ()
19646{
19647 eval "$1+=\$2"
19648}
19649_LT_EOF
19650 ;;
19651 *)
19652 cat << \_LT_EOF >> "$cfgfile"
19653
19654# func_append var value
19655# Append VALUE to the end of shell variable VAR.
19656func_append ()
19657{
19658 eval "$1=\$$1\$2"
19659}
19660
19661_LT_EOF
19662 ;;
19663 esac
19664
19665
19666 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19667 || (rm -f "$cfgfile"; exit 1)
19668
19669 mv -f "$cfgfile" "$ofile" ||
19670 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19671 chmod +x "$ofile"
19672
19673
19674 cat <<_LT_EOF >> "$ofile"
19675
19676# ### BEGIN LIBTOOL TAG CONFIG: CXX
19677
19678# The linker used to build libraries.
19679LD=$lt_LD_CXX
19680
19681# How to create reloadable object files.
19682reload_flag=$lt_reload_flag_CXX
19683reload_cmds=$lt_reload_cmds_CXX
19684
19685# Commands used to build an old-style archive.
19686old_archive_cmds=$lt_old_archive_cmds_CXX
19687
19688# A language specific compiler.
19689CC=$lt_compiler_CXX
19690
19691# Is the compiler the GNU compiler?
19692with_gcc=$GCC_CXX
19693
19694# Compiler flag to turn off builtin functions.
19695no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19696
19697# How to pass a linker flag through the compiler.
19698wl=$lt_lt_prog_compiler_wl_CXX
19699
19700# Additional compiler flags for building library objects.
19701pic_flag=$lt_lt_prog_compiler_pic_CXX
19702
19703# Compiler flag to prevent dynamic linking.
19704link_static_flag=$lt_lt_prog_compiler_static_CXX
19705
19706# Does compiler simultaneously support -c and -o options?
19707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19708
19709# Whether or not to add -lc for building shared libraries.
19710build_libtool_need_lc=$archive_cmds_need_lc_CXX
19711
19712# Whether or not to disallow shared libs when runtime libs are static.
19713allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19714
19715# Compiler flag to allow reflexive dlopens.
19716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19717
19718# Compiler flag to generate shared objects directly from archives.
19719whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19720
19721# Whether the compiler copes with passing no objects directly.
19722compiler_needs_object=$lt_compiler_needs_object_CXX
19723
19724# Create an old-style archive from a shared archive.
19725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19726
19727# Create a temporary old-style archive to link instead of a shared archive.
19728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19729
19730# Commands used to build a shared archive.
19731archive_cmds=$lt_archive_cmds_CXX
19732archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19733
19734# Commands used to build a loadable module if different from building
19735# a shared archive.
19736module_cmds=$lt_module_cmds_CXX
19737module_expsym_cmds=$lt_module_expsym_cmds_CXX
19738
19739# Whether we are building with GNU ld or not.
19740with_gnu_ld=$lt_with_gnu_ld_CXX
19741
19742# Flag that allows shared libraries with undefined symbols to be built.
19743allow_undefined_flag=$lt_allow_undefined_flag_CXX
19744
19745# Flag that enforces no undefined symbols.
19746no_undefined_flag=$lt_no_undefined_flag_CXX
19747
19748# Flag to hardcode \$libdir into a binary during linking.
19749# This must work even if \$libdir does not exist
19750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19751
19752# If ld is used when linking, flag to hardcode \$libdir into a binary
19753# during linking. This must work even if \$libdir does not exist.
19754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19755
19756# Whether we need a single "-rpath" flag with a separated argument.
19757hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19758
19759# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19760# DIR into the resulting binary.
19761hardcode_direct=$hardcode_direct_CXX
19762
19763# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19764# DIR into the resulting binary and the resulting library dependency is
19765# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19766# library is relocated.
19767hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19768
19769# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19770# into the resulting binary.
19771hardcode_minus_L=$hardcode_minus_L_CXX
19772
19773# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19774# into the resulting binary.
19775hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19776
19777# Set to "yes" if building a shared library automatically hardcodes DIR
19778# into the library and all subsequent libraries and executables linked
19779# against it.
19780hardcode_automatic=$hardcode_automatic_CXX
19781
19782# Set to yes if linker adds runtime paths of dependent libraries
19783# to runtime path list.
19784inherit_rpath=$inherit_rpath_CXX
19785
19786# Whether libtool must link a program against all its dependency libraries.
19787link_all_deplibs=$link_all_deplibs_CXX
19788
19789# Fix the shell variable \$srcfile for the compiler.
19790fix_srcfile_path=$lt_fix_srcfile_path_CXX
19791
19792# Set to "yes" if exported symbols are required.
19793always_export_symbols=$always_export_symbols_CXX
19794
19795# The commands to list exported symbols.
19796export_symbols_cmds=$lt_export_symbols_cmds_CXX
19797
19798# Symbols that should not be listed in the preloaded symbols.
19799exclude_expsyms=$lt_exclude_expsyms_CXX
19800
19801# Symbols that must always be exported.
19802include_expsyms=$lt_include_expsyms_CXX
19803
19804# Commands necessary for linking programs (against libraries) with templates.
19805prelink_cmds=$lt_prelink_cmds_CXX
19806
19807# Specify filename containing input files.
19808file_list_spec=$lt_file_list_spec_CXX
19809
19810# How to hardcode a shared library path into an executable.
19811hardcode_action=$hardcode_action_CXX
19812
19813# The directories searched by this compiler when creating a shared library.
19814compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19815
19816# Dependencies to place before and after the objects being linked to
19817# create a shared library.
19818predep_objects=$lt_predep_objects_CXX
19819postdep_objects=$lt_postdep_objects_CXX
19820predeps=$lt_predeps_CXX
19821postdeps=$lt_postdeps_CXX
19822
19823# The library search path used internally by the compiler when linking
19824# a shared library.
19825compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19826
19827# ### END LIBTOOL TAG CONFIG: CXX
19828_LT_EOF
19829
19830 ;;
19831 "include":C) test -d include || mkdir include ;;
19832 "src":C)
19833test -d src || mkdir src
19834test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19835 ;;
19836
19837 esac
19838done # for ac_tag
19839
19840
19841as_fn_exit 0
19842_ACEOF
19843ac_clean_files=$ac_clean_files_save
19844
19845test $ac_write_fail = 0 ||
19846 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19847
19848
19849# configure is writing to config.log, and then calls config.status.
19850# config.status does its own redirection, appending to config.log.
19851# Unfortunately, on DOS this fails, as config.log is still kept open
19852# by configure, so config.status won't be able to write to it; its
19853# output is simply discarded. So we exec the FD to /dev/null,
19854# effectively closing config.log, so it can be properly (re)opened and
19855# appended to by config.status. When coming back to configure, we
19856# need to make the FD available again.
19857if test "$no_create" != yes; then
19858 ac_cs_success=:
19859 ac_config_status_args=
19860 test "$silent" = yes &&
19861 ac_config_status_args="$ac_config_status_args --quiet"
19862 exec 5>/dev/null
19863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19864 exec 5>>config.log
19865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19866 # would make configure fail if this is the last instruction.
19867 $ac_cs_success || as_fn_exit 1
19868fi
19869if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19871$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19872fi
19873
This page took 1.950346 seconds and 5 git commands to generate.