]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
* Makefile.am (ACLOCAL_AMFLAGS, TEXINFO_TEX, MAKEINFOFLAGS)
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
b4b575ce 3# Generated by GNU Autoconf 2.64 for libffi 3.0.11.
3ed8e5b6
AT
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
63e5e3e0 6#
5213506e
RW
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
63e5e3e0
AG
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
3ed8e5b6 16
5213506e
RW
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 :
3ed8e5b6
AT
20 emulate sh
21 NULLCMD=:
5213506e 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
3ed8e5b6 33fi
3ed8e5b6 34
5213506e
RW
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 }
3ed8e5b6
AT
81fi
82
83
5213506e
RW
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.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
3ed8e5b6
AT
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
5213506e
RW
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
43e02a8a
RW
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
182test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3ed8e5b6 194do
5213506e
RW
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
3ed8e5b6 238 else
5213506e
RW
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240$0: http://gcc.gnu.org/bugs.html about your system,
241$0: including any error possibly output before this
242$0: message. Then install a modern shell, or manually run
243$0: the script under such a shell if you do have one."
3ed8e5b6 244 fi
5213506e
RW
245 exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263 { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_fn_set_status ()
271{
272 return $1
273} # as_fn_set_status
274
275# as_fn_exit STATUS
276# -----------------
277# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278as_fn_exit ()
279{
280 set +e
281 as_fn_set_status $1
282 exit $1
283} # as_fn_exit
284
285# as_fn_mkdir_p
286# -------------
287# Create "$as_dir" as a directory, including parents if necessary.
288as_fn_mkdir_p ()
289{
290
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307$as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331} # as_fn_mkdir_p
332# as_fn_append VAR VALUE
333# ----------------------
334# Append the text in VALUE to the end of the definition contained in VAR. Take
335# advantage of any shell optimizations that allow amortized linear growth over
336# repeated appends, instead of the typical quadratic growth present in naive
337# implementations.
338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
340 {
341 eval $1+=\$2
342 }'
343else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348fi # as_fn_append
349
350# as_fn_arith ARG...
351# ------------------
352# Perform arithmetic evaluation on the ARGs, and store the result in the
353# global $as_val. Take advantage of shells that can avoid forks. The arguments
354# must be portable across $(()) and expr.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365fi # as_fn_arith
366
367
368# as_fn_error ERROR [LINENO LOG_FD]
369# ---------------------------------
370# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372# script with status $?, using 1 if that was 0.
373as_fn_error ()
374{
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382} # as_fn_error
3ed8e5b6 383
5213506e
RW
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
386 as_expr=expr
387else
388 as_expr=false
389fi
390
5213506e 391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
392 as_basename=basename
393else
394 as_basename=false
395fi
396
5213506e
RW
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399else
400 as_dirname=false
401fi
3ed8e5b6 402
5213506e 403as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
5213506e
RW
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407$as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
3ed8e5b6 421
3ed8e5b6
AT
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
428
3ed8e5b6 429
5213506e
RW
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
3ed8e5b6 439 sed '
5213506e
RW
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
3ed8e5b6 444 N
5213506e
RW
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3ed8e5b6 447 t loop
5213506e 448 s/-\n.*//
3ed8e5b6 449 ' >$as_me.lineno &&
5213506e
RW
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
3ed8e5b6
AT
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
3ed8e5b6
AT
457 # Exit status is that of the last command.
458 exit
459}
460
5213506e
RW
461ECHO_C= ECHO_N= ECHO_T=
462case `echo -n x` in #(((((
463-n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
470*)
471 ECHO_N='-n';;
3ed8e5b6
AT
472esac
473
5213506e
RW
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
3ed8e5b6 477else
5213506e
RW
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 480fi
5213506e
RW
481if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 483 as_ln_s='ln -s'
5213506e
RW
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
3ed8e5b6 494 fi
3ed8e5b6
AT
495else
496 as_ln_s='cp -p'
497fi
5213506e
RW
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
3ed8e5b6
AT
500
501if mkdir -p . 2>/dev/null; then
5213506e 502 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
503else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506fi
507
5213506e
RW
508if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
515 fi
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
527 '
528fi
529as_executable_p=$as_test_x
3ed8e5b6
AT
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
1cf3d07d
SE
537SHELL=${CONFIG_SHELL-/bin/sh}
538
1cf3d07d 539
5213506e
RW
540exec 7<&0 </dev/null 6>&1
541
3ed8e5b6
AT
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 546
3ed8e5b6
AT
547#
548# Initializations.
549#
63e5e3e0 550ac_default_prefix=/usr/local
5213506e 551ac_clean_files=
3ed8e5b6 552ac_config_libobj_dir=.
5213506e 553LIBOBJS=
3ed8e5b6
AT
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
3ed8e5b6
AT
558
559# Identity of this package.
560PACKAGE_NAME='libffi'
561PACKAGE_TARNAME='libffi'
b4b575ce
AG
562PACKAGE_VERSION='3.0.11'
563PACKAGE_STRING='libffi 3.0.11'
3ed8e5b6 564PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
5213506e 565PACKAGE_URL=''
3ed8e5b6 566
c9b93377
JB
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
5213506e 570#ifdef HAVE_SYS_TYPES_H
c9b93377
JB
571# include <sys/types.h>
572#endif
5213506e 573#ifdef HAVE_SYS_STAT_H
c9b93377
JB
574# include <sys/stat.h>
575#endif
5213506e 576#ifdef STDC_HEADERS
c9b93377
JB
577# include <stdlib.h>
578# include <stddef.h>
579#else
5213506e 580# ifdef HAVE_STDLIB_H
c9b93377
JB
581# include <stdlib.h>
582# endif
583#endif
5213506e
RW
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
c9b93377
JB
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
5213506e 590#ifdef HAVE_STRINGS_H
c9b93377
JB
591# include <strings.h>
592#endif
5213506e 593#ifdef HAVE_INTTYPES_H
c9b93377 594# include <inttypes.h>
c9b93377 595#endif
5213506e
RW
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
c9b93377
JB
600# include <unistd.h>
601#endif"
602
5213506e
RW
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607toolexeclibdir
608toolexecdir
b4b575ce
AG
609FFI_DEBUG_FALSE
610FFI_DEBUG_TRUE
5213506e
RW
611TARGETDIR
612TARGET
b4b575ce
AG
613FFI_EXEC_TRAMPOLINE_TABLE
614FFI_EXEC_TRAMPOLINE_TABLE_FALSE
615FFI_EXEC_TRAMPOLINE_TABLE_TRUE
5213506e
RW
616HAVE_LONG_DOUBLE
617ALLOCA
b4b575ce
AG
618TILE_FALSE
619TILE_TRUE
5213506e
RW
620PA64_HPUX_FALSE
621PA64_HPUX_TRUE
622PA_HPUX_FALSE
623PA_HPUX_TRUE
624PA_LINUX_FALSE
625PA_LINUX_TRUE
626SH64_FALSE
627SH64_TRUE
628SH_FALSE
629SH_TRUE
630X86_64_FALSE
631X86_64_TRUE
632S390_FALSE
633S390_TRUE
634FRV_FALSE
635FRV_TRUE
636LIBFFI_CRIS_FALSE
637LIBFFI_CRIS_TRUE
124f60ab
BS
638AVR32_FALSE
639AVR32_TRUE
5213506e
RW
640ARM_FALSE
641ARM_TRUE
b4b575ce
AG
642AARCH64_FALSE
643AARCH64_TRUE
5213506e
RW
644POWERPC_FREEBSD_FALSE
645POWERPC_FREEBSD_TRUE
646POWERPC_DARWIN_FALSE
647POWERPC_DARWIN_TRUE
648POWERPC_AIX_FALSE
649POWERPC_AIX_TRUE
650POWERPC_FALSE
651POWERPC_TRUE
652M68K_FALSE
653M68K_TRUE
654M32R_FALSE
655M32R_TRUE
656IA64_FALSE
657IA64_TRUE
658ALPHA_FALSE
659ALPHA_TRUE
660X86_DARWIN_FALSE
661X86_DARWIN_TRUE
662X86_WIN64_FALSE
663X86_WIN64_TRUE
664X86_WIN32_FALSE
665X86_WIN32_TRUE
666X86_FREEBSD_FALSE
667X86_FREEBSD_TRUE
668X86_FALSE
669X86_TRUE
670SPARC_FALSE
671SPARC_TRUE
b4b575ce
AG
672BFIN_FALSE
673BFIN_TRUE
5213506e
RW
674MIPS_FALSE
675MIPS_TRUE
a761df3d 676AM_LTLDFLAGS
5213506e
RW
677AM_RUNTESTFLAGS
678TESTSUBDIR_FALSE
679TESTSUBDIR_TRUE
680MAINT
681MAINTAINER_MODE_FALSE
682MAINTAINER_MODE_TRUE
683CPP
684OTOOL64
685OTOOL
686LIPO
687NMEDIT
688DSYMUTIL
5213506e
RW
689RANLIB
690AR
691OBJDUMP
692LN_S
693NM
694ac_ct_DUMPBIN
695DUMPBIN
696LD
697FGREP
698EGREP
699GREP
700SED
701LIBTOOL
702am__fastdepCCAS_FALSE
703am__fastdepCCAS_TRUE
704CCASDEPMODE
705CCASFLAGS
706CCAS
707am__fastdepCC_FALSE
708am__fastdepCC_TRUE
709CCDEPMODE
710AMDEPBACKSLASH
711AMDEP_FALSE
712AMDEP_TRUE
713am__quote
714am__include
715DEPDIR
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
4e70f25f
AS
723GENINSRC_FALSE
724GENINSRC_TRUE
725BUILD_INFO_FALSE
726BUILD_INFO_TRUE
5213506e
RW
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'
3ed8e5b6 801ac_subst_files=''
5213506e
RW
802ac_user_opts='
803enable_option_checking
804enable_multilib
4e70f25f 805enable_generated_files_in_srcdir
5213506e
RW
806enable_dependency_tracking
807enable_shared
808enable_static
809with_pic
810enable_fast_install
811with_gnu_ld
812enable_libtool_lock
813enable_maintainer_mode
b4b575ce 814enable_pax_emutramp
5213506e
RW
815enable_debug
816enable_structs
817enable_raw_api
818enable_purify_safety
819'
820 ac_precious_vars='build_alias
821host_alias
822target_alias
823CCAS
824CCASFLAGS
825CPP
826CPPFLAGS'
827
63e5e3e0
AG
828
829# Initialize some variables set by options.
3ed8e5b6
AT
830ac_init_help=
831ac_init_version=false
5213506e
RW
832ac_unrecognized_opts=
833ac_unrecognized_sep=
63e5e3e0
AG
834# The variables have the same names as the options, with
835# dashes changed to underlines.
3ed8e5b6 836cache_file=/dev/null
63e5e3e0 837exec_prefix=NONE
63e5e3e0 838no_create=
63e5e3e0
AG
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
63e5e3e0
AG
847verbose=
848x_includes=NONE
849x_libraries=NONE
3ed8e5b6
AT
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 856# (The list follows the same order as the GNU Coding Standards.)
63e5e3e0
AG
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
5213506e
RW
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
63e5e3e0
AG
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
63e5e3e0
AG
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
5213506e
RW
867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
63e5e3e0 876
63e5e3e0 877ac_prev=
5213506e 878ac_dashdash=
63e5e3e0
AG
879for ac_option
880do
63e5e3e0
AG
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
5213506e 883 eval $ac_prev=\$ac_option
63e5e3e0
AG
884 ac_prev=
885 continue
886 fi
887
5213506e
RW
888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
63e5e3e0
AG
892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
5213506e
RW
895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
63e5e3e0
AG
898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 902 bindir=$ac_optarg ;;
63e5e3e0
AG
903
904 -build | --build | --buil | --bui | --bu)
3ed8e5b6 905 ac_prev=build_alias ;;
63e5e3e0 906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 907 build_alias=$ac_optarg ;;
63e5e3e0
AG
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
63e5e3e0 918
5213506e 919 -datadir | --datadir | --datadi | --datad)
63e5e3e0 920 ac_prev=datadir ;;
5213506e 921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3ed8e5b6 922 datadir=$ac_optarg ;;
63e5e3e0 923
5213506e
RW
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
63e5e3e0 931 -disable-* | --disable-*)
5213506e 932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 933 # Reject names that are not valid shell variable names.
5213506e
RW
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
63e5e3e0
AG
956
957 -enable-* | --enable-*)
5213506e 958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 959 # Reject names that are not valid shell variable names.
5213506e
RW
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
63e5e3e0 970 esac
5213506e 971 eval enable_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 980 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
3ed8e5b6
AT
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
63e5e3e0
AG
992
993 -host | --host | --hos | --ho)
3ed8e5b6 994 ac_prev=host_alias ;;
63e5e3e0 995 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 996 host_alias=$ac_optarg ;;
63e5e3e0 997
5213506e
RW
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
63e5e3e0
AG
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 1009 includedir=$ac_optarg ;;
63e5e3e0
AG
1010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 1014 infodir=$ac_optarg ;;
63e5e3e0
AG
1015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 1019 libdir=$ac_optarg ;;
63e5e3e0
AG
1020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 1026 libexecdir=$ac_optarg ;;
63e5e3e0 1027
5213506e
RW
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
63e5e3e0 1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1034 | --localstate | --localstat | --localsta | --localst | --locals)
63e5e3e0
AG
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3ed8e5b6 1038 localstatedir=$ac_optarg ;;
63e5e3e0
AG
1039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 1043 mandir=$ac_optarg ;;
63e5e3e0
AG
1044
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 1050 | --no-cr | --no-c | -n)
63e5e3e0
AG
1051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 1064 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
1065
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 1069 prefix=$ac_optarg ;;
63e5e3e0
AG
1070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 1076 program_prefix=$ac_optarg ;;
63e5e3e0
AG
1077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 1083 program_suffix=$ac_optarg ;;
63e5e3e0
AG
1084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 1100 program_transform_name=$ac_optarg ;;
63e5e3e0 1101
5213506e
RW
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
63e5e3e0
AG
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
3ed8e5b6 1120 sbindir=$ac_optarg ;;
63e5e3e0
AG
1121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
3ed8e5b6 1131 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
1132
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
3ed8e5b6 1136 site=$ac_optarg ;;
63e5e3e0
AG
1137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 1141 srcdir=$ac_optarg ;;
63e5e3e0
AG
1142
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 1148 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
1149
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 1151 ac_prev=target_alias ;;
63e5e3e0 1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 1153 target_alias=$ac_optarg ;;
63e5e3e0
AG
1154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
3ed8e5b6
AT
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
63e5e3e0
AG
1160
1161 -with-* | --with-*)
5213506e 1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 1163 # Reject names that are not valid shell variable names.
5213506e
RW
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170"with_$ac_useropt"
1171"*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
63e5e3e0 1174 esac
5213506e 1175 eval with_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1176
1177 -without-* | --without-*)
5213506e 1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 1179 # Reject names that are not valid shell variable names.
5213506e
RW
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
63e5e3e0
AG
1192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 1202 x_includes=$ac_optarg ;;
63e5e3e0
AG
1203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 1209 x_libraries=$ac_optarg ;;
63e5e3e0 1210
5213506e
RW
1211 -*) as_fn_error "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information."
63e5e3e0
AG
1213 ;;
1214
3ed8e5b6
AT
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
5213506e
RW
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
3ed8e5b6
AT
1223 export $ac_envvar ;;
1224
63e5e3e0 1225 *)
3ed8e5b6 1226 # FIXME: should be removed in autoconf 3.0.
5213506e 1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3ed8e5b6 1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3ed8e5b6 1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
1231 ;;
1232
1233 esac
1234done
1235
1236if test -n "$ac_prev"; then
3ed8e5b6 1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1238 as_fn_error "missing argument to $ac_option"
63e5e3e0 1239fi
63e5e3e0 1240
5213506e
RW
1241if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3ed8e5b6 1246 esac
5213506e 1247fi
63e5e3e0 1248
5213506e
RW
1249# Check all directory arguments for consistency.
1250for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
63e5e3e0 1254do
5213506e
RW
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
3ed8e5b6 1263 case $ac_val in
5213506e
RW
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
63e5e3e0 1266 esac
5213506e 1267 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
63e5e3e0
AG
1268done
1269
3ed8e5b6
AT
1270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
1272# FIXME: To remove some day.
1273build=$build_alias
1274host=$host_alias
1275target=$target_alias
1276
1277# FIXME: To remove some day.
1278if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
5213506e 1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3ed8e5b6
AT
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286fi
63e5e3e0 1287
3ed8e5b6
AT
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
63e5e3e0 1292
63e5e3e0 1293
5213506e
RW
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error "pwd does not report name of working directory"
1300
1301
63e5e3e0
AG
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
5213506e
RW
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
63e5e3e0 1329 srcdir=$ac_confdir
5213506e 1330 if test ! -r "$srcdir/$ac_unique_file"; then
63e5e3e0
AG
1331 srcdir=..
1332 fi
1333else
1334 ac_srcdir_defaulted=no
1335fi
5213506e
RW
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1343 pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
63e5e3e0 1360
3ed8e5b6
AT
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
b4b575ce 1368\`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
63e5e3e0 1369
3ed8e5b6
AT
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
3ed8e5b6
AT
1388Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1390 [$ac_default_prefix]
3ed8e5b6 1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1392 [PREFIX]
3ed8e5b6
AT
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
5213506e
RW
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
3ed8e5b6
AT
1421_ACEOF
1422
1423 cat <<\_ACEOF
1424
1425Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
1430System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 --target=TARGET configure for building compilers for TARGET [HOST]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438 case $ac_init_help in
b4b575ce 1439 short | recursive ) echo "Configuration of libffi 3.0.11:";;
3ed8e5b6
AT
1440 esac
1441 cat <<\_ACEOF
1442
1443Optional Features:
5213506e 1444 --disable-option-checking ignore unrecognized --enable/--with options
3ed8e5b6
AT
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443 1447 --enable-multilib build many library versions (default)
4e70f25f
AS
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex
076e5443
PB
1452 --disable-dependency-tracking speeds up one-time build
1453 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
3ed8e5b6 1458 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1459 --enable-maintainer-mode enable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
b4b575ce 1461 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
3ed8e5b6
AT
1462 --enable-debug debugging mode
1463 --disable-structs omit code for struct support
1464 --disable-raw-api make the raw api unavailable
1465 --enable-purify-safety purify-safe mode
1466
1467Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1470 --with-pic try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
5213506e
RW
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
076e5443
PB
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1484 CPP C preprocessor
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to <http://gcc.gnu.org/bugs.html>.
1490_ACEOF
5213506e 1491ac_status=$?
63e5e3e0
AG
1492fi
1493
3ed8e5b6
AT
1494if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
3ed8e5b6 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
3ed8e5b6
AT
1500 ac_builddir=.
1501
5213506e
RW
1502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
63e5e3e0 1517
3ed8e5b6 1518case $srcdir in
5213506e 1519 .) # We are building in place.
3ed8e5b6 1520 ac_srcdir=.
5213506e
RW
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 1524 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 1531esac
5213506e
RW
1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
3ed8e5b6 1542 else
5213506e
RW
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
3ed8e5b6 1546 done
675cdab3
BM
1547fi
1548
5213506e 1549test -n "$ac_init_help" && exit $ac_status
3ed8e5b6
AT
1550if $ac_init_version; then
1551 cat <<\_ACEOF
b4b575ce 1552libffi configure 3.0.11
5213506e 1553generated by GNU Autoconf 2.64
675cdab3 1554
5213506e 1555Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
1556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558_ACEOF
5213506e 1559 exit
675cdab3
BM
1560fi
1561
5213506e
RW
1562## ------------------------ ##
1563## Autoconf initialization. ##
1564## ------------------------ ##
63e5e3e0 1565
5213506e
RW
1566# ac_fn_c_try_compile LINENO
1567# --------------------------
1568# Try to compile conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_compile ()
3ed8e5b6 1570{
5213506e
RW
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1596
5213506e
RW
1597 ac_retval=1
1598fi
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
3ed8e5b6 1601
5213506e 1602} # ac_fn_c_try_compile
3ed8e5b6 1603
5213506e
RW
1604# ac_fn_c_try_link LINENO
1605# -----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_link ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1637
5213506e
RW
1638 ac_retval=1
1639fi
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
3ed8e5b6 1647
5213506e
RW
1648} # ac_fn_c_try_link
1649
1650# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651# -------------------------------------------------------
1652# Tests whether HEADER exists and can be compiled using the include files in
1653# INCLUDES, setting the cache variable VAR accordingly.
1654ac_fn_c_check_header_compile ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
1659if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1660 $as_echo_n "(cached) " >&6
1661else
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663/* end confdefs.h. */
1664$4
1665#include <$2>
1666_ACEOF
1667if ac_fn_c_try_compile "$LINENO"; then :
1668 eval "$3=yes"
1669else
1670 eval "$3=no"
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673fi
1674eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676$as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678
1679} # ac_fn_c_check_header_compile
1680
1681# ac_fn_c_try_cpp LINENO
1682# ----------------------
1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_cpp ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } >/dev/null && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1715
1716} # ac_fn_c_try_cpp
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=$ac_status
1753fi
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_func LINENO FUNC VAR
1761# ----------------------------------
1762# Tests whether FUNC exists, setting the cache variable VAR accordingly
1763ac_fn_c_check_func ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1770else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775#define $2 innocuous_$2
1776
1777/* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1781
1782#ifdef __STDC__
1783# include <limits.h>
1784#else
1785# include <assert.h>
1786#endif
1787
1788#undef $2
1789
1790/* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1793#ifdef __cplusplus
1794extern "C"
1795#endif
1796char $2 ();
1797/* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800#if defined __stub_$2 || defined __stub___$2
1801choke me
1802#endif
1803
1804int
1805main ()
1806{
1807return $2 ();
1808 ;
1809 return 0;
1810}
1811_ACEOF
1812if ac_fn_c_try_link "$LINENO"; then :
1813 eval "$3=yes"
1814else
1815 eval "$3=no"
1816fi
1817rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825} # ac_fn_c_check_func
1826
1827# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828# -------------------------------------------------------
1829# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830# the include files in INCLUDES and setting the cache variable VAR
1831# accordingly.
1832ac_fn_c_check_header_mongrel ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840fi
1841eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844else
1845 # Is the header compilable?
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847$as_echo_n "checking $2 usability... " >&6; }
1848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850$4
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_header_compiler=yes
1855else
1856 ac_header_compiler=no
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860$as_echo "$ac_header_compiler" >&6; }
1861
1862# Is the header present?
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864$as_echo_n "checking $2 presence... " >&6; }
1865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867#include <$2>
1868_ACEOF
1869if ac_fn_c_try_cpp "$LINENO"; then :
1870 ac_header_preproc=yes
1871else
1872 ac_header_preproc=no
1873fi
1874rm -f conftest.err conftest.$ac_ext
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876$as_echo "$ac_header_preproc" >&6; }
1877
1878# So? What about this header?
1879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880 yes:no: )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886 no:yes:* )
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1890$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1894$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897( cat <<\_ASBOX
1898## ------------------------------------------- ##
1899## Report this to http://gcc.gnu.org/bugs.html ##
1900## ------------------------------------------- ##
1901_ASBOX
1902 ) | sed "s/^/$as_me: WARNING: /" >&2
1903 ;;
1904esac
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909else
1910 eval "$3=\$ac_header_compiler"
1911fi
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918} # ac_fn_c_check_header_mongrel
1919
1920# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1921# --------------------------------------------
1922# Tries to find the compile-time value of EXPR in a program that includes
1923# INCLUDES, setting VAR accordingly. Returns whether the value could be
1924# computed
1925ac_fn_c_compute_int ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if test "$cross_compiling" = yes; then
1929 # Depending upon the size, compute the lo and hi bounds.
1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933int
1934main ()
1935{
1936static int test_array [1 - 2 * !(($2) >= 0)];
1937test_array [0] = 0
1938
1939 ;
1940 return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=0 ac_mid=0
1945 while :; do
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953test_array [0] = 0
1954
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid; break
1961else
1962 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1963 if test $ac_lo -le $ac_mid; then
1964 ac_lo= ac_hi=
1965 break
1966 fi
1967 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 done
1971else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978static int test_array [1 - 2 * !(($2) < 0)];
1979test_array [0] = 0
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_hi=-1 ac_mid=-1
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1995test_array [0] = 0
1996
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=$ac_mid; break
2003else
2004 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005 if test $ac_mid -le $ac_hi; then
2006 ac_lo= ac_hi=
2007 break
2008 fi
2009 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013else
2014 ac_lo= ac_hi=
2015fi
2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019# Binary search between lo and hi bounds.
2020while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029test_array [0] = 0
2030
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid
2037else
2038 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 2041done
5213506e
RW
2042case $ac_lo in #((
2043?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2044'') ac_retval=1 ;;
2045esac
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050static long int longval () { return $2; }
2051static unsigned long int ulongval () { return $2; }
2052#include <stdio.h>
2053#include <stdlib.h>
2054int
2055main ()
2056{
2057
2058 FILE *f = fopen ("conftest.val", "w");
2059 if (! f)
2060 return 1;
2061 if (($2) < 0)
2062 {
2063 long int i = longval ();
2064 if (i != ($2))
2065 return 1;
2066 fprintf (f, "%ld", i);
2067 }
2068 else
2069 {
2070 unsigned long int i = ulongval ();
2071 if (i != ($2))
2072 return 1;
2073 fprintf (f, "%lu", i);
2074 }
2075 /* Do not output a trailing newline, as this causes \r\n confusion
2076 on some platforms. */
2077 return ferror (f) || fclose (f) != 0;
2078
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_run "$LINENO"; then :
2084 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2085else
2086 ac_retval=1
2087fi
2088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2089 conftest.$ac_objext conftest.beam conftest.$ac_ext
2090rm -f conftest.val
2091
2092 fi
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 return $ac_retval
2095
2096} # ac_fn_c_compute_int
2097cat >config.log <<_ACEOF
2098This file contains any messages produced by compilers while
2099running configure, to aid debugging if configure makes a mistake.
2100
b4b575ce 2101It was created by libffi $as_me 3.0.11, which was
5213506e
RW
2102generated by GNU Autoconf 2.64. Invocation command line was
2103
2104 $ $0 $@
2105
2106_ACEOF
2107exec 5>>config.log
2108{
2109cat <<_ASUNAME
2110## --------- ##
2111## Platform. ##
2112## --------- ##
2113
2114hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
2131_ASUNAME
2132
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140IFS=$as_save_IFS
63e5e3e0 2141
3ed8e5b6 2142} >&5
63e5e3e0 2143
3ed8e5b6 2144cat >&5 <<_ACEOF
63e5e3e0 2145
6706f116 2146
3ed8e5b6
AT
2147## ----------- ##
2148## Core tests. ##
2149## ----------- ##
3c18f2d1 2150
3ed8e5b6 2151_ACEOF
3c18f2d1 2152
3c18f2d1 2153
3ed8e5b6
AT
2154# Keep a trace of the command line.
2155# Strip out --no-create and --no-recursion so they do not pile up.
2156# Strip out --silent because we don't want to record it for future runs.
2157# Also quote any args containing shell meta-characters.
2158# Make two passes to allow for proper duplicate-argument suppression.
2159ac_configure_args=
2160ac_configure_args0=
2161ac_configure_args1=
3ed8e5b6
AT
2162ac_must_keep_next=false
2163for ac_pass in 1 2
2164do
2165 for ac_arg
2166 do
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
5213506e
RW
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2174 esac
2175 case $ac_pass in
5213506e 2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3ed8e5b6 2177 2)
5213506e 2178 as_fn_append ac_configure_args1 " '$ac_arg'"
3ed8e5b6
AT
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2190 ;;
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2193 fi
5213506e 2194 as_fn_append ac_configure_args " '$ac_arg'"
3ed8e5b6
AT
2195 ;;
2196 esac
2197 done
63e5e3e0 2198done
5213506e
RW
2199{ ac_configure_args0=; unset ac_configure_args0;}
2200{ ac_configure_args1=; unset ac_configure_args1;}
3ed8e5b6
AT
2201
2202# When interrupted or exit'd, cleanup temporary files, and complete
2203# config.log. We remove comments because anyway the quotes in there
2204# would cause problems or look ugly.
5213506e
RW
2205# WARNING: Use '\'' to represent an apostrophe within the trap.
2206# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3ed8e5b6
AT
2207trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2209 {
2210 echo
2211
2212 cat <<\_ASBOX
2213## ---------------- ##
2214## Cache variables. ##
2215## ---------------- ##
2216_ASBOX
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2219(
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
3ed8e5b6 2235 (set) 2>&1 |
5213506e
RW
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
3ed8e5b6 2238 sed -n \
5213506e
RW
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
3ed8e5b6 2242 *)
5213506e 2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 2244 ;;
5213506e
RW
2245 esac |
2246 sort
2247)
3ed8e5b6
AT
2248 echo
2249
2250 cat <<\_ASBOX
2251## ----------------- ##
2252## Output variables. ##
2253## ----------------- ##
2254_ASBOX
2255 echo
2256 for ac_var in $ac_subst_vars
2257 do
5213506e
RW
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2263 done | sort
2264 echo
2265
2266 if test -n "$ac_subst_files"; then
2267 cat <<\_ASBOX
5213506e
RW
2268## ------------------- ##
2269## File substitutions. ##
2270## ------------------- ##
3ed8e5b6
AT
2271_ASBOX
2272 echo
2273 for ac_var in $ac_subst_files
2274 do
5213506e
RW
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2280 done | sort
2281 echo
2282 fi
63e5e3e0 2283
3ed8e5b6
AT
2284 if test -s confdefs.h; then
2285 cat <<\_ASBOX
2286## ----------- ##
2287## confdefs.h. ##
2288## ----------- ##
2289_ASBOX
2290 echo
5213506e 2291 cat confdefs.h
3ed8e5b6
AT
2292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
5213506e
RW
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
3ed8e5b6 2297 } >&5
5213506e
RW
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3ed8e5b6 2300 exit $exit_status
5213506e 2301' 0
3ed8e5b6 2302for ac_signal in 1 2 13 15; do
5213506e 2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3ed8e5b6
AT
2304done
2305ac_signal=0
63e5e3e0 2306
3ed8e5b6 2307# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2308rm -f -r conftest* confdefs.h
2309
2310$as_echo "/* confdefs.h */" > confdefs.h
6bee5372 2311
3ed8e5b6 2312# Predefined preprocessor variables.
bbf3057b 2313
3ed8e5b6
AT
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_NAME "$PACKAGE_NAME"
2316_ACEOF
bbf3057b 2317
3ed8e5b6
AT
2318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320_ACEOF
63e5e3e0 2321
3ed8e5b6
AT
2322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_VERSION "$PACKAGE_VERSION"
2324_ACEOF
63e5e3e0 2325
3ed8e5b6
AT
2326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_STRING "$PACKAGE_STRING"
2328_ACEOF
bbf3057b 2329
3ed8e5b6
AT
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
5213506e
RW
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_URL "$PACKAGE_URL"
2336_ACEOF
2337
3ed8e5b6
AT
2338
2339# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2340# Prefer an explicitly selected file to automatically selected ones.
2341ac_site_file1=NONE
2342ac_site_file2=NONE
2343if test -n "$CONFIG_SITE"; then
2344 ac_site_file1=$CONFIG_SITE
2345elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351fi
2352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353do
2354 test "x$ac_site_file" = xNONE && continue
3ed8e5b6 2355 if test -r "$ac_site_file"; then
5213506e
RW
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3ed8e5b6
AT
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file"
2360 fi
2361done
2362
2363if test -r "$cache_file"; then
2364 # Some versions of bash will fail to source /dev/null (special
2365 # files actually), so we avoid doing that.
2366 if test -f "$cache_file"; then
5213506e
RW
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368$as_echo "$as_me: loading cache $cache_file" >&6;}
3ed8e5b6 2369 case $cache_file in
5213506e
RW
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
3ed8e5b6
AT
2372 esac
2373 fi
2374else
5213506e
RW
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376$as_echo "$as_me: creating cache $cache_file" >&6;}
3ed8e5b6
AT
2377 >$cache_file
2378fi
2379
2380# Check that the precious variables saved in the cache have kept the same
2381# value.
2382ac_cache_corrupted=false
5213506e 2383for ac_var in $ac_precious_vars; do
3ed8e5b6
AT
2384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
3ed8e5b6
AT
2388 case $ac_old_set,$ac_new_set in
2389 set,)
5213506e
RW
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3ed8e5b6
AT
2392 ac_cache_corrupted=: ;;
2393 ,set)
5213506e
RW
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3ed8e5b6
AT
2396 ac_cache_corrupted=: ;;
2397 ,);;
2398 *)
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
2416 fi;;
2417 esac
2418 # Pass precious variables to config.status.
2419 if test "$ac_new_set" = set; then
2420 case $ac_new_val in
5213506e 2421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2422 *) ac_arg=$ac_var=$ac_new_val ;;
2423 esac
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3ed8e5b6
AT
2427 esac
2428 fi
2429done
2430if $ac_cache_corrupted; then
5213506e
RW
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3ed8e5b6 2436fi
5213506e
RW
2437## -------------------- ##
2438## Main body of script. ##
2439## -------------------- ##
3ed8e5b6
AT
2440
2441ac_ext=c
2442ac_cpp='$CPP $CPPFLAGS'
2443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
2447
2448
2449
2450
5213506e 2451ac_config_headers="$ac_config_headers fficonfig.h"
3ed8e5b6
AT
2452
2453
2454# Default to --enable-multilib
5213506e
RW
2455# Check whether --enable-multilib was given.
2456if test "${enable_multilib+set}" = set; then :
2457 enableval=$enable_multilib; case "$enableval" in
3ed8e5b6
AT
2458 yes) multilib=yes ;;
2459 no) multilib=no ;;
5213506e 2460 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3ed8e5b6
AT
2461 esac
2462else
2463 multilib=yes
5213506e
RW
2464fi
2465
3ed8e5b6
AT
2466
2467# We may get other options which we leave undocumented:
2468# --with-target-subdir, --with-multisrctop, --with-multisubdir
2469# See config-ml.in if you want the gory details.
2470
2471if test "$srcdir" = "."; then
2472 if test "$with_target_subdir" != "."; then
2473 multi_basedir="$srcdir/$with_multisrctop../.."
2474 else
2475 multi_basedir="$srcdir/$with_multisrctop.."
2476 fi
2477else
2478 multi_basedir="$srcdir/.."
2479fi
2480
2481
8a489465
JH
2482# Even if the default multilib is not a cross compilation,
2483# it may be that some of the other multilibs are.
2484if test $cross_compiling = no && test $multilib = yes \
2485 && test "x${with_multisubdir}" != x ; then
2486 cross_compiling=maybe
2487fi
2488
5213506e 2489ac_config_commands="$ac_config_commands default-1"
3ed8e5b6 2490
3ed8e5b6 2491
076e5443 2492ac_aux_dir=
5213506e
RW
2493for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494 for ac_t in install-sh install.sh shtool; do
2495 if test -f "$ac_dir/$ac_t"; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/$ac_t -c"
2498 break 2
2499 fi
2500 done
3ed8e5b6
AT
2501done
2502if test -z "$ac_aux_dir"; then
5213506e 2503 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3ed8e5b6 2504fi
5213506e
RW
2505
2506# These three variables are undocumented and unsupported,
2507# and are intended to be withdrawn in a future Autoconf release.
2508# They can cause serious problems if a builder's source tree is in a directory
2509# whose full name contains unusual characters.
2510ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2513
3ed8e5b6 2514
3ed8e5b6 2515# Make sure we can run config.sub.
5213506e
RW
2516$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520$as_echo_n "checking build system type... " >&6; }
2521if test "${ac_cv_build+set}" = set; then :
2522 $as_echo_n "(cached) " >&6
2523else
2524 ac_build_alias=$build_alias
2525test "x$ac_build_alias" = x &&
2526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527test "x$ac_build_alias" = x &&
2528 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2529ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2531
2532fi
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534$as_echo "$ac_cv_build" >&6; }
2535case $ac_cv_build in
2536*-*-*) ;;
2537*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2538esac
3ed8e5b6 2539build=$ac_cv_build
5213506e
RW
2540ac_save_IFS=$IFS; IFS='-'
2541set x $ac_cv_build
2542shift
2543build_cpu=$1
2544build_vendor=$2
2545shift; shift
2546# Remember, the first character of IFS is used to create $*,
2547# except with old shells:
2548build_os=$*
2549IFS=$ac_save_IFS
2550case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2551
2552
5213506e
RW
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554$as_echo_n "checking host system type... " >&6; }
2555if test "${ac_cv_host+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
3ed8e5b6 2557else
5213506e
RW
2558 if test "x$host_alias" = x; then
2559 ac_cv_host=$ac_cv_build
2560else
2561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2563fi
3ed8e5b6
AT
2564
2565fi
5213506e
RW
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567$as_echo "$ac_cv_host" >&6; }
2568case $ac_cv_host in
2569*-*-*) ;;
2570*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2571esac
3ed8e5b6 2572host=$ac_cv_host
5213506e
RW
2573ac_save_IFS=$IFS; IFS='-'
2574set x $ac_cv_host
2575shift
2576host_cpu=$1
2577host_vendor=$2
2578shift; shift
2579# Remember, the first character of IFS is used to create $*,
2580# except with old shells:
2581host_os=$*
2582IFS=$ac_save_IFS
2583case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2584
2585
5213506e
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587$as_echo_n "checking target system type... " >&6; }
2588if test "${ac_cv_target+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590else
2591 if test "x$target_alias" = x; then
2592 ac_cv_target=$ac_cv_host
3ed8e5b6 2593else
5213506e
RW
2594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2596fi
3ed8e5b6
AT
2597
2598fi
5213506e
RW
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600$as_echo "$ac_cv_target" >&6; }
2601case $ac_cv_target in
2602*-*-*) ;;
2603*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2604esac
3ed8e5b6 2605target=$ac_cv_target
5213506e
RW
2606ac_save_IFS=$IFS; IFS='-'
2607set x $ac_cv_target
2608shift
2609target_cpu=$1
2610target_vendor=$2
2611shift; shift
2612# Remember, the first character of IFS is used to create $*,
2613# except with old shells:
2614target_os=$*
2615IFS=$ac_save_IFS
2616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2617
2618
2619# The aliases save the names the user supplied, while $host etc.
2620# will get canonicalized.
2621test -n "$target_alias" &&
bbf3057b
AT
2622 test "$program_prefix$program_suffix$program_transform_name" = \
2623 NONENONEs,x,x, &&
2624 program_prefix=${target_alias}-
5213506e 2625
3ed8e5b6
AT
2626target_alias=${target_alias-$host_alias}
2627
88d8c771
AG
2628. ${srcdir}/configure.host
2629
5213506e
RW
2630am__api_version='1.11'
2631
3ed8e5b6
AT
2632# Find a good install program. We prefer a C program (faster),
2633# so one script is as good as another. But avoid the broken or
2634# incompatible versions:
2635# SysV /etc/install, /usr/sbin/install
2636# SunOS /usr/etc/install
2637# IRIX /sbin/install
2638# AIX /bin/install
2639# AmigaOS /C/install, which installs bootblocks on floppy discs
2640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2641# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2643# OS/2's system install, which has a completely different semantic
2644# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2645# Reject install programs that cannot install multiple files.
5213506e
RW
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2647$as_echo_n "checking for a BSD-compatible install... " >&6; }
3ed8e5b6 2648if test -z "$INSTALL"; then
5213506e
RW
2649if test "${ac_cv_path_install+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2651else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
5213506e
RW
2657 # Account for people who put trailing slashes in PATH elements.
2658case $as_dir/ in #((
2659 ./ | .// | /[cC]/* | \
3ed8e5b6 2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2661 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3ed8e5b6
AT
2662 /usr/ucb/* ) ;;
2663 *)
2664 # OSF1 and SCO ODT 3.0 have their own names for install.
2665 # Don't use installbsd from OSF since it installs stuff as root
2666 # by default.
2667 for ac_prog in ginstall scoinst install; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2669 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3ed8e5b6
AT
2670 if test $ac_prog = install &&
2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # AIX install. It has an incompatible calling convention.
2673 :
2674 elif test $ac_prog = install &&
2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # program-specific install script used by HP pwplus--don't use.
2677 :
2678 else
38d24731
RW
2679 rm -rf conftest.one conftest.two conftest.dir
2680 echo one > conftest.one
2681 echo two > conftest.two
2682 mkdir conftest.dir
2683 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2684 test -s conftest.one && test -s conftest.two &&
2685 test -s conftest.dir/conftest.one &&
2686 test -s conftest.dir/conftest.two
2687 then
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2690 fi
3ed8e5b6
AT
2691 fi
2692 fi
2693 done
2694 done
2695 ;;
2696esac
5213506e
RW
2697
2698 done
2699IFS=$as_save_IFS
3ed8e5b6 2700
38d24731 2701rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
2702
2703fi
2704 if test "${ac_cv_path_install+set}" = set; then
2705 INSTALL=$ac_cv_path_install
2706 else
38d24731
RW
2707 # As a last resort, use the slow shell script. Don't cache a
2708 # value for INSTALL within a source directory, because that will
3ed8e5b6 2709 # break other packages using the cache if that directory is
38d24731 2710 # removed, or if the value is a relative name.
3ed8e5b6
AT
2711 INSTALL=$ac_install_sh
2712 fi
2713fi
5213506e
RW
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2715$as_echo "$INSTALL" >&6; }
3ed8e5b6
AT
2716
2717# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2718# It thinks the first close brace ends the variable substitution.
2719test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2720
2721test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2722
2723test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2724
5213506e
RW
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2726$as_echo_n "checking whether build environment is sane... " >&6; }
3ed8e5b6
AT
2727# Just in case
2728sleep 1
2729echo timestamp > conftest.file
5213506e
RW
2730# Reject unsafe characters in $srcdir or the absolute working directory
2731# name. Accept space and tab only in the latter.
2732am_lf='
2733'
2734case `pwd` in
2735 *[\\\"\#\$\&\'\`$am_lf]*)
2736 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2737esac
2738case $srcdir in
2739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2740 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2741esac
2742
3ed8e5b6
AT
2743# Do `set' in a subshell so we don't clobber the current shell's
2744# arguments. Must try -L first in case configure is actually a
2745# symlink; some systems play weird games with the mod time of symlinks
2746# (eg FreeBSD returns the mod time of the symlink's containing
2747# directory).
2748if (
5213506e 2749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3ed8e5b6
AT
2750 if test "$*" = "X"; then
2751 # -L didn't work.
5213506e 2752 set X `ls -t "$srcdir/configure" conftest.file`
3ed8e5b6
AT
2753 fi
2754 rm -f conftest.file
2755 if test "$*" != "X $srcdir/configure conftest.file" \
2756 && test "$*" != "X conftest.file $srcdir/configure"; then
2757
2758 # If neither matched, then we have a broken ls. This can happen
2759 # if, for instance, CONFIG_SHELL is bash and it inherits a
2760 # broken ls alias from the environment. This has actually
2761 # happened. Such a system could not be considered "sane".
5213506e
RW
2762 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2763alias in your environment" "$LINENO" 5
3ed8e5b6
AT
2764 fi
2765
2766 test "$2" = conftest.file
2767 )
2768then
2769 # Ok.
2770 :
2771else
5213506e
RW
2772 as_fn_error "newly created file is older than distributed files!
2773Check your system clock" "$LINENO" 5
3ed8e5b6 2774fi
5213506e
RW
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776$as_echo "yes" >&6; }
3ed8e5b6 2777test "$program_prefix" != NONE &&
5213506e 2778 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3ed8e5b6
AT
2779# Use a double $ so make ignores it.
2780test "$program_suffix" != NONE &&
5213506e
RW
2781 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2782# Double any \ or $.
3ed8e5b6 2783# By default was `s,x,x', remove it if useless.
5213506e
RW
2784ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2785program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3ed8e5b6 2786
3ed8e5b6
AT
2787# expand $ac_aux_dir to an absolute path
2788am_aux_dir=`cd $ac_aux_dir && pwd`
2789
5213506e
RW
2790if test x"${MISSING+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2794 *)
2795 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2796 esac
2797fi
3ed8e5b6
AT
2798# Use eval to expand $SHELL
2799if eval "$MISSING --run true"; then
2800 am_missing_run="$MISSING --run "
2801else
2802 am_missing_run=
5213506e
RW
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2804$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2805fi
2806
2807if test x"${install_sh}" != xset; then
2808 case $am_aux_dir in
2809 *\ * | *\ *)
2810 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2811 *)
2812 install_sh="\${SHELL} $am_aux_dir/install-sh"
2813 esac
2814fi
2815
2816# Installed binaries are usually stripped using `strip' when the user
2817# run `make install-strip'. However `strip' might not be the right
2818# tool to use in cross-compilation environments, therefore Automake
2819# will honor the `STRIP' environment variable to overrule this program.
2820if test "$cross_compiling" != no; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2823set dummy ${ac_tool_prefix}strip; ac_word=$2
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825$as_echo_n "checking for $ac_word... " >&6; }
2826if test "${ac_cv_prog_STRIP+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828else
2829 if test -n "$STRIP"; then
2830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844 done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849STRIP=$ac_cv_prog_STRIP
2850if test -n "$STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852$as_echo "$STRIP" >&6; }
2853else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855$as_echo "no" >&6; }
2856fi
2857
2858
2859fi
2860if test -z "$ac_cv_prog_STRIP"; then
2861 ac_ct_STRIP=$STRIP
2862 # Extract the first word of "strip", so it can be a program name with args.
2863set dummy strip; ac_word=$2
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865$as_echo_n "checking for $ac_word... " >&6; }
2866if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868else
2869 if test -n "$ac_ct_STRIP"; then
2870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_STRIP="strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883done
2884 done
2885IFS=$as_save_IFS
2886
2887fi
2888fi
2889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2890if test -n "$ac_ct_STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2892$as_echo "$ac_ct_STRIP" >&6; }
2893else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896fi
2897
2898 if test "x$ac_ct_STRIP" = x; then
2899 STRIP=":"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902yes:)
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905ac_tool_warned=yes ;;
2906esac
2907 STRIP=$ac_ct_STRIP
2908 fi
2909else
2910 STRIP="$ac_cv_prog_STRIP"
2911fi
2912
2913fi
2914INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2915
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2917$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2918if test -z "$MKDIR_P"; then
2919 if test "${ac_cv_path_mkdir+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_prog in mkdir gmkdir; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2930 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2931 'mkdir (GNU coreutils) '* | \
2932 'mkdir (coreutils) '* | \
2933 'mkdir (fileutils) '4.1*)
2934 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2935 break 3;;
2936 esac
2937 done
2938 done
076e5443 2939 done
5213506e
RW
2940IFS=$as_save_IFS
2941
2942fi
2943
2944 if test "${ac_cv_path_mkdir+set}" = set; then
2945 MKDIR_P="$ac_cv_path_mkdir -p"
076e5443 2946 else
5213506e
RW
2947 # As a last resort, use the slow shell script. Don't cache a
2948 # value for MKDIR_P within a source directory, because that will
2949 # break other packages using the cache if that directory is
2950 # removed, or if the value is a relative name.
2951 test -d ./--version && rmdir ./--version
2952 MKDIR_P="$ac_install_sh -d"
076e5443
PB
2953 fi
2954fi
5213506e
RW
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2956$as_echo "$MKDIR_P" >&6; }
2957
2958mkdir_p="$MKDIR_P"
2959case $mkdir_p in
2960 [\\/$]* | ?:[\\/]*) ;;
2961 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2962esac
076e5443 2963
3ed8e5b6
AT
2964for ac_prog in gawk mawk nawk awk
2965do
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967set dummy $ac_prog; ac_word=$2
5213506e
RW
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_AWK+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2972else
2973 if test -n "$AWK"; then
2974 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
5213506e
RW
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 2983 ac_cv_prog_AWK="$ac_prog"
5213506e 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
2985 break 2
2986 fi
2987done
5213506e
RW
2988 done
2989IFS=$as_save_IFS
3ed8e5b6
AT
2990
2991fi
2992fi
2993AWK=$ac_cv_prog_AWK
2994if test -n "$AWK"; then
5213506e
RW
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996$as_echo "$AWK" >&6; }
3ed8e5b6 2997else
5213506e
RW
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3ed8e5b6
AT
3000fi
3001
5213506e 3002
3ed8e5b6
AT
3003 test -n "$AWK" && break
3004done
3005
5213506e
RW
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3008set x ${MAKE-make}
3009ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3011 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3012else
3013 cat >conftest.make <<\_ACEOF
5213506e 3014SHELL = /bin/sh
3ed8e5b6 3015all:
5213506e 3016 @echo '@@@%%%=$(MAKE)=@@@%%%'
3ed8e5b6
AT
3017_ACEOF
3018# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
3019case `${MAKE-make} -f conftest.make 2>/dev/null` in
3020 *@@@%%%=?*=@@@%%%*)
3021 eval ac_cv_prog_make_${ac_make}_set=yes;;
3022 *)
3023 eval ac_cv_prog_make_${ac_make}_set=no;;
3024esac
3ed8e5b6
AT
3025rm -f conftest.make
3026fi
5213506e
RW
3027if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029$as_echo "yes" >&6; }
3ed8e5b6
AT
3030 SET_MAKE=
3031else
5213506e
RW
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3ed8e5b6
AT
3034 SET_MAKE="MAKE=${MAKE-make}"
3035fi
3036
3037rm -rf .tst 2>/dev/null
3038mkdir .tst 2>/dev/null
3039if test -d .tst; then
3040 am__leading_dot=.
3041else
3042 am__leading_dot=_
3043fi
3044rmdir .tst 2>/dev/null
3045
5213506e
RW
3046if test "`cd $srcdir && pwd`" != "`pwd`"; then
3047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3048 # is not polluted with repeated "-I."
3049 am__isrc=' -I$(srcdir)'
3050 # test to see if srcdir already configured
3051 if test -f $srcdir/config.status; then
3052 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3053 fi
3ed8e5b6
AT
3054fi
3055
3056# test whether we have cygpath
3057if test -z "$CYGPATH_W"; then
3058 if (cygpath --version) >/dev/null 2>/dev/null; then
3059 CYGPATH_W='cygpath -w'
3060 else
3061 CYGPATH_W=echo
3062 fi
3063fi
3064
3065
3066# Define the identity of the package.
3067 PACKAGE='libffi'
b4b575ce 3068 VERSION='3.0.11'
3ed8e5b6
AT
3069
3070
3071cat >>confdefs.h <<_ACEOF
3072#define PACKAGE "$PACKAGE"
3073_ACEOF
3074
3075
3076cat >>confdefs.h <<_ACEOF
3077#define VERSION "$VERSION"
3078_ACEOF
3079
3080# Some tools Automake needs.
3081
3082ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3083
3084
3085AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3086
3087
3088AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3089
3090
3091AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3092
3093
3094MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3095
3ed8e5b6
AT
3096# We need awk for the "check" target. The system "awk" is bad on
3097# some platforms.
b85e31b9
KC
3098# Always define AMTAR for backward compatibility.
3099
3100AMTAR=${AMTAR-"${am_missing_run}tar"}
3101
3102am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3103
3104
3ed8e5b6
AT
3105
3106
3107
3108
4e70f25f
AS
3109# See if makeinfo has been installed and is modern enough
3110# that we can use it.
3111
3112 # Extract the first word of "makeinfo", so it can be a program name with args.
3113set dummy makeinfo; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118else
3119 if test -n "$MAKEINFO"; then
3120 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_MAKEINFO="makeinfo"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133done
3134 done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139MAKEINFO=$ac_cv_prog_MAKEINFO
3140if test -n "$MAKEINFO"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3142$as_echo "$MAKEINFO" >&6; }
3143else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149 if test -n "$MAKEINFO"; then
3150 # Found it, now check the version.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3152$as_echo_n "checking for modern makeinfo... " >&6; }
3153if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155else
3156 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3157 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3158
3159 case $ac_prog_version in
3160 '') gcc_cv_prog_makeinfo_modern=no;;
3161 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3162 *) gcc_cv_prog_makeinfo_modern=no;;
3163 esac
3164
3165fi
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3167$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3168 else
3169 gcc_cv_prog_makeinfo_modern=no
3170 fi
3171 if test $gcc_cv_prog_makeinfo_modern = no; then
3172 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3173 fi
3174
3175 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3176 BUILD_INFO_TRUE=
3177 BUILD_INFO_FALSE='#'
3178else
3179 BUILD_INFO_TRUE='#'
3180 BUILD_INFO_FALSE=
3181fi
3182
3183
3184# We would like our source tree to be readonly. However when releases or
3185# pre-releases are generated, the flex/bison generated files as well as the
3186# various formats of manuals need to be included along with the rest of the
3187# sources. Therefore we have --enable-generated-files-in-srcdir to do
3188# just that.
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3190$as_echo_n "checking generated-files-in-srcdir... " >&6; }
3191# Check whether --enable-generated-files-in-srcdir was given.
3192if test "${enable_generated_files_in_srcdir+set}" = set; then :
3193 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3194 yes) enable_generated_files_in_srcdir=yes ;;
3195 no) enable_generated_files_in_srcdir=no ;;
3196 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3197 esac
3198else
3199 enable_generated_files_in_srcdir=no
3200fi
3201
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3203$as_echo "$enable_generated_files_in_srcdir" >&6; }
3204 if test "$enable_generated_files_in_srcdir" = yes; then
3205 GENINSRC_TRUE=
3206 GENINSRC_FALSE='#'
3207else
3208 GENINSRC_TRUE='#'
3209 GENINSRC_FALSE=
3210fi
3211
3212
3ed8e5b6
AT
3213# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3214# We must force CC to /not/ be precious variables; otherwise
3215# the wrong, non-multilib-adjusted value will be used in multilibs.
3216# As a side effect, we have to subst CFLAGS ourselves.
3217
3218
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3232else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
5213506e
RW
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3245 break 2
3246 fi
3247done
5213506e
RW
3248 done
3249IFS=$as_save_IFS
3ed8e5b6
AT
3250
3251fi
3252fi
3253CC=$ac_cv_prog_CC
3254if test -n "$CC"; then
5213506e
RW
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256$as_echo "$CC" >&6; }
3ed8e5b6 3257else
5213506e
RW
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3ed8e5b6
AT
3260fi
3261
5213506e 3262
3ed8e5b6
AT
3263fi
3264if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267set dummy gcc; ac_word=$2
5213506e
RW
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3272else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
5213506e
RW
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3283 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3285 break 2
3286 fi
3287done
5213506e
RW
3288 done
3289IFS=$as_save_IFS
3ed8e5b6
AT
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
5213506e
RW
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3297else
5213506e
RW
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3ed8e5b6
AT
3300fi
3301
5213506e
RW
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306yes:)
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309ac_tool_warned=yes ;;
3310esac
3311 CC=$ac_ct_CC
3312 fi
3ed8e5b6
AT
3313else
3314 CC="$ac_cv_prog_CC"
3315fi
3316
3317if test -z "$CC"; then
5213506e
RW
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3ed8e5b6 3320set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3325else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
5213506e
RW
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3338 break 2
3339 fi
3340done
5213506e
RW
3341 done
3342IFS=$as_save_IFS
3ed8e5b6
AT
3343
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
5213506e
RW
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3ed8e5b6 3350else
5213506e
RW
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3ed8e5b6
AT
3353fi
3354
3ed8e5b6 3355
5213506e 3356 fi
3ed8e5b6
AT
3357fi
3358if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360set dummy cc; ac_word=$2
5213506e
RW
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3365else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369 ac_prog_rejected=no
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
5213506e
RW
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6
AT
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected=yes
3379 continue
3380 fi
3381 ac_cv_prog_CC="cc"
5213506e 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3383 break 2
3384 fi
3385done
5213506e
RW
3386 done
3387IFS=$as_save_IFS
3ed8e5b6
AT
3388
3389if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3392 shift
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3397 shift
3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399 fi
3400fi
3401fi
3402fi
3403CC=$ac_cv_prog_CC
3404if test -n "$CC"; then
5213506e
RW
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406$as_echo "$CC" >&6; }
3ed8e5b6 3407else
5213506e
RW
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3ed8e5b6
AT
3410fi
3411
5213506e 3412
3ed8e5b6
AT
3413fi
3414if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
5213506e 3416 for ac_prog in cl.exe
3ed8e5b6
AT
3417 do
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421$as_echo_n "checking for $ac_word... " >&6; }
3422if test "${ac_cv_prog_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3424else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
5213506e
RW
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3437 break 2
3438 fi
3439done
5213506e
RW
3440 done
3441IFS=$as_save_IFS
3ed8e5b6
AT
3442
3443fi
3444fi
3445CC=$ac_cv_prog_CC
3446if test -n "$CC"; then
5213506e
RW
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448$as_echo "$CC" >&6; }
3ed8e5b6 3449else
5213506e
RW
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451$as_echo "no" >&6; }
3ed8e5b6
AT
3452fi
3453
5213506e 3454
3ed8e5b6
AT
3455 test -n "$CC" && break
3456 done
3457fi
3458if test -z "$CC"; then
3459 ac_ct_CC=$CC
5213506e 3460 for ac_prog in cl.exe
3ed8e5b6
AT
3461do
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463set dummy $ac_prog; ac_word=$2
5213506e
RW
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3468else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
5213506e
RW
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3479 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3481 break 2
3482 fi
3483done
5213506e
RW
3484 done
3485IFS=$as_save_IFS
3ed8e5b6
AT
3486
3487fi
3488fi
3489ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490if test -n "$ac_ct_CC"; then
5213506e
RW
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3493else
5213506e
RW
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3ed8e5b6
AT
3496fi
3497
5213506e 3498
3ed8e5b6
AT
3499 test -n "$ac_ct_CC" && break
3500done
3501
5213506e
RW
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506yes:)
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509ac_tool_warned=yes ;;
3510esac
3511 CC=$ac_ct_CC
3512 fi
3ed8e5b6
AT
3513fi
3514
3515fi
3516
3517
5213506e
RW
3518test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520as_fn_error "no acceptable C compiler found in \$PATH
3521See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3522
3523# Provide some information about the compiler.
5213506e
RW
3524$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525set X $ac_compile
3526ac_compiler=$2
3527for ac_option in --version -v -V -qversion; do
3528 { { ac_try="$ac_compiler $ac_option >&5"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3ed8e5b6 3536 ac_status=$?
5213506e
RW
3537 if test -s conftest.err; then
3538 sed '10a\
3539... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3542 rm -f conftest.er1 conftest.err
3543 fi
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546done
3ed8e5b6 3547
5213506e 3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3549/* end confdefs.h. */
3550
3551int
3552main ()
3553{
3554
3555 ;
3556 return 0;
3557}
3558_ACEOF
3559ac_clean_files_save=$ac_clean_files
5213506e 3560ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3ed8e5b6
AT
3561# Try to create an executable without -o first, disregard a.out.
3562# It will help us diagnose broken compilers, and finding out an intuition
3563# of exeext.
5213506e
RW
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565$as_echo_n "checking for C compiler default output file name... " >&6; }
3566ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3567
3568# The possible output files:
3569ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3570
3571ac_rmfiles=
3572for ac_file in $ac_files
3573do
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578done
3579rm -f $ac_rmfiles
3580
3581if { { ac_try="$ac_link_default"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594# in a Makefile. We should not override ac_cv_exeext if it was cached,
3595# so that the user can short-circuit this test for compilers unknown to
3596# Autoconf.
3597for ac_file in $ac_files ''
3ed8e5b6
AT
3598do
3599 test -f "$ac_file" || continue
3600 case $ac_file in
5213506e 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3ed8e5b6
AT
3602 ;;
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
5213506e
RW
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 fi
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3ed8e5b6
AT
3617 break;;
3618 * )
3619 break;;
3620 esac
3621done
5213506e
RW
3622test "$ac_cv_exeext" = no && ac_cv_exeext=
3623
3ed8e5b6 3624else
5213506e
RW
3625 ac_file=''
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628$as_echo "$ac_file" >&6; }
3629if test -z "$ac_file"; then :
3630 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
5213506e
RW
3633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635{ as_fn_set_status 77
3636as_fn_error "C compiler cannot create executables
3637See \`config.log' for more details." "$LINENO" 5; }; }
3ed8e5b6 3638fi
3ed8e5b6 3639ac_exeext=$ac_cv_exeext
3ed8e5b6 3640
5213506e 3641# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3642# the compiler is broken, or we cross compile.
5213506e
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644$as_echo_n "checking whether the C compiler works... " >&6; }
3ed8e5b6
AT
3645# If not cross compiling, check that we can run a simple program.
3646if test "$cross_compiling" != yes; then
3647 if { ac_try='./$ac_file'
5213506e
RW
3648 { { case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651esac
3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653$as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3ed8e5b6 3655 ac_status=$?
5213506e
RW
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3ed8e5b6
AT
3658 cross_compiling=no
3659 else
3660 if test "$cross_compiling" = maybe; then
3661 cross_compiling=yes
3662 else
5213506e
RW
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665as_fn_error "cannot run C compiled programs.
3ed8e5b6 3666If you meant to cross compile, use \`--host'.
5213506e 3667See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3668 fi
3669 fi
3670fi
5213506e
RW
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3ed8e5b6 3673
5213506e 3674rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3ed8e5b6 3675ac_clean_files=$ac_clean_files_save
5213506e 3676# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3677# the compiler is broken, or we cross compile.
5213506e
RW
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679$as_echo_n "checking whether we are cross compiling... " >&6; }
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681$as_echo "$cross_compiling" >&6; }
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684$as_echo_n "checking for suffix of executables... " >&6; }
3685if { { ac_try="$ac_link"
3686case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691$as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3ed8e5b6 3693 ac_status=$?
5213506e
RW
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3ed8e5b6
AT
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698# work properly (i.e., refer to `conftest.exe'), while it won't with
3699# `rm'.
3700for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
5213506e 3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3ed8e5b6 3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3ed8e5b6
AT
3705 break;;
3706 * ) break;;
3707 esac
3708done
3709else
5213506e
RW
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712as_fn_error "cannot compute suffix of executables: cannot compile and link
3713See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3714fi
3ed8e5b6 3715rm -f conftest$ac_cv_exeext
5213506e
RW
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717$as_echo "$ac_cv_exeext" >&6; }
3ed8e5b6
AT
3718
3719rm -f conftest.$ac_ext
3720EXEEXT=$ac_cv_exeext
3721ac_exeext=$EXEEXT
5213506e
RW
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723$as_echo_n "checking for suffix of object files... " >&6; }
3724if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3ed8e5b6 3726else
5213506e 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3728/* end confdefs.h. */
3729
3730int
3731main ()
3732{
3733
3734 ;
3735 return 0;
3736}
3737_ACEOF
3738rm -f conftest.o conftest.obj
5213506e
RW
3739if { { ac_try="$ac_compile"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745$as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3ed8e5b6 3752 case $ac_file in
5213506e 3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3ed8e5b6
AT
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 break;;
3756 esac
3757done
3758else
5213506e 3759 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
5213506e
RW
3762{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764as_fn_error "cannot compute suffix of object files: cannot compile
3765See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3766fi
3ed8e5b6
AT
3767rm -f conftest.$ac_cv_objext conftest.$ac_ext
3768fi
5213506e
RW
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770$as_echo "$ac_cv_objext" >&6; }
3ed8e5b6
AT
3771OBJEXT=$ac_cv_objext
3772ac_objext=$OBJEXT
5213506e
RW
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3ed8e5b6 3777else
5213506e 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3779/* end confdefs.h. */
3780
3781int
3782main ()
3783{
3784#ifndef __GNUC__
3785 choke me
3786#endif
3787
3788 ;
3789 return 0;
3790}
3791_ACEOF
5213506e 3792if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3793 ac_compiler_gnu=yes
3794else
5213506e 3795 ac_compiler_gnu=no
3ed8e5b6 3796fi
5213506e 3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
3798ac_cv_c_compiler_gnu=$ac_compiler_gnu
3799
3800fi
5213506e
RW
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803if test $ac_compiler_gnu = yes; then
3804 GCC=yes
3805else
3806 GCC=
3807fi
3ed8e5b6
AT
3808ac_test_CFLAGS=${CFLAGS+set}
3809ac_save_CFLAGS=$CFLAGS
5213506e
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811$as_echo_n "checking whether $CC accepts -g... " >&6; }
3812if test "${ac_cv_prog_cc_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 ac_save_c_werror_flag=$ac_c_werror_flag
3816 ac_c_werror_flag=yes
3817 ac_cv_prog_cc_g=no
3818 CFLAGS="-g"
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3820/* end confdefs.h. */
3821
3822int
3823main ()
3824{
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
5213506e 3830if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3831 ac_cv_prog_cc_g=yes
3832else
5213506e
RW
3833 CFLAGS=""
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836
3837int
3838main ()
3839{
3840
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845if ac_fn_c_try_compile "$LINENO"; then :
3846
3847else
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3849 CFLAGS="-g"
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h. */
3ed8e5b6 3852
5213506e
RW
3853int
3854main ()
3855{
3856
3857 ;
3858 return 0;
3859}
3860_ACEOF
3861if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_prog_cc_g=yes
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3865fi
5213506e 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3867fi
5213506e
RW
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872$as_echo "$ac_cv_prog_cc_g" >&6; }
3ed8e5b6
AT
3873if test "$ac_test_CFLAGS" = set; then
3874 CFLAGS=$ac_save_CFLAGS
3875elif test $ac_cv_prog_cc_g = yes; then
3876 if test "$GCC" = yes; then
3877 CFLAGS="-g -O2"
3878 else
3879 CFLAGS="-g"
3880 fi
3881else
3882 if test "$GCC" = yes; then
3883 CFLAGS="-O2"
3884 else
3885 CFLAGS=
3886 fi
3887fi
5213506e
RW
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890if test "${ac_cv_prog_cc_c89+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3ed8e5b6 3892else
5213506e 3893 ac_cv_prog_cc_c89=no
3ed8e5b6 3894ac_save_CC=$CC
5213506e 3895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3896/* end confdefs.h. */
3897#include <stdarg.h>
3898#include <stdio.h>
3899#include <sys/types.h>
3900#include <sys/stat.h>
3901/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3902struct buf { int x; };
3903FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904static char *e (p, i)
3905 char **p;
3906 int i;
3907{
3908 return p[i];
3909}
3910static char *f (char * (*g) (char **, int), char **p, ...)
3911{
3912 char *s;
3913 va_list v;
3914 va_start (v,p);
3915 s = g (p, va_arg (v,int));
3916 va_end (v);
3917 return s;
3918}
3919
3920/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3921 function prototypes and stuff, but not '\xHH' hex character constants.
3922 These don't provoke an error unfortunately, instead are silently treated
5213506e 3923 as 'x'. The following induces an error, until -std is added to get
3ed8e5b6
AT
3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3925 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3926 that's true only with -std. */
3ed8e5b6
AT
3927int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3928
5213506e
RW
3929/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930 inside strings and character constants. */
3931#define FOO(x) 'x'
3932int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3933
3ed8e5b6
AT
3934int test (int i, double x);
3935struct s1 {int (*f) (int a);};
3936struct s2 {int (*f) (double a);};
3937int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938int argc;
3939char **argv;
3940int
3941main ()
3942{
3943return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3944 ;
3945 return 0;
3946}
3947_ACEOF
5213506e
RW
3948for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3ed8e5b6
AT
3950do
3951 CC="$ac_save_CC $ac_arg"
5213506e
RW
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_prog_cc_c89=$ac_arg
3ed8e5b6 3954fi
5213506e
RW
3955rm -f core conftest.err conftest.$ac_objext
3956 test "x$ac_cv_prog_cc_c89" != "xno" && break
3ed8e5b6 3957done
5213506e 3958rm -f conftest.$ac_ext
3ed8e5b6
AT
3959CC=$ac_save_CC
3960
3961fi
5213506e
RW
3962# AC_CACHE_VAL
3963case "x$ac_cv_prog_cc_c89" in
3964 x)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966$as_echo "none needed" >&6; } ;;
3967 xno)
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3969$as_echo "unsupported" >&6; } ;;
3ed8e5b6 3970 *)
5213506e
RW
3971 CC="$CC $ac_cv_prog_cc_c89"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3ed8e5b6 3974esac
5213506e 3975if test "x$ac_cv_prog_cc_c89" != xno; then :
3ed8e5b6
AT
3976
3977fi
3ed8e5b6 3978
3ed8e5b6
AT
3979ac_ext=c
3980ac_cpp='$CPP $CPPFLAGS'
3981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984DEPDIR="${am__leading_dot}deps"
3985
5213506e 3986ac_config_commands="$ac_config_commands depfiles"
3ed8e5b6
AT
3987
3988
3989am_make=${MAKE-make}
3990cat > confinc << 'END'
3991am__doit:
5213506e 3992 @echo this is the am__doit target
3ed8e5b6
AT
3993.PHONY: am__doit
3994END
3995# If we don't find an include directive, just comment out the code.
5213506e
RW
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3997$as_echo_n "checking for style of include used by $am_make... " >&6; }
3ed8e5b6
AT
3998am__include="#"
3999am__quote=
4000_am_result=none
4001# First try GNU make style include.
4002echo "include confinc" > confmf
5213506e
RW
4003# Ignore all kinds of additional output from `make'.
4004case `$am_make -s -f confmf 2> /dev/null` in #(
4005*the\ am__doit\ target*)
4006 am__include=include
4007 am__quote=
4008 _am_result=GNU
4009 ;;
4010esac
3ed8e5b6
AT
4011# Now try BSD make style include.
4012if test "$am__include" = "#"; then
4013 echo '.include "confinc"' > confmf
5213506e
RW
4014 case `$am_make -s -f confmf 2> /dev/null` in #(
4015 *the\ am__doit\ target*)
4016 am__include=.include
4017 am__quote="\""
4018 _am_result=BSD
4019 ;;
4020 esac
3ed8e5b6
AT
4021fi
4022
4023
5213506e
RW
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4025$as_echo "$_am_result" >&6; }
3ed8e5b6
AT
4026rm -f confinc confmf
4027
5213506e
RW
4028# Check whether --enable-dependency-tracking was given.
4029if test "${enable_dependency_tracking+set}" = set; then :
4030 enableval=$enable_dependency_tracking;
4031fi
3ed8e5b6 4032
3ed8e5b6
AT
4033if test "x$enable_dependency_tracking" != xno; then
4034 am_depcomp="$ac_aux_dir/depcomp"
4035 AMDEPBACKSLASH='\'
4036fi
5213506e 4037 if test "x$enable_dependency_tracking" != xno; then
3ed8e5b6
AT
4038 AMDEP_TRUE=
4039 AMDEP_FALSE='#'
4040else
4041 AMDEP_TRUE='#'
4042 AMDEP_FALSE=
4043fi
4044
4045
4046
3ed8e5b6
AT
4047depcc="$CC" am_compiler_list=
4048
5213506e
RW
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4050$as_echo_n "checking dependency style of $depcc... " >&6; }
4051if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
4053else
4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4055 # We make a subdir and do the tests there. Otherwise we can end up
4056 # making bogus files that we don't know about and never remove. For
4057 # instance it was reported that on HP-UX the gcc test will end up
4058 # making a dummy file named `D' -- because `-MD' means `put the output
4059 # in D'.
4060 mkdir conftest.dir
4061 # Copy depcomp to subdir because otherwise we won't find it if we're
4062 # using a relative directory.
4063 cp "$am_depcomp" conftest.dir
4064 cd conftest.dir
4065 # We will build objects and dependencies in a subdirectory because
4066 # it helps to detect inapplicable dependency modes. For instance
4067 # both Tru64's cc and ICC support -MD to output dependencies as a
4068 # side effect of compilation, but ICC will put the dependencies in
4069 # the current directory while Tru64 will put them in the object
4070 # directory.
4071 mkdir sub
4072
4073 am_cv_CC_dependencies_compiler_type=none
4074 if test "$am_compiler_list" = ""; then
4075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4076 fi
5213506e
RW
4077 am__universal=false
4078 case " $depcc " in #(
4079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4080 esac
4081
3ed8e5b6
AT
4082 for depmode in $am_compiler_list; do
4083 # Setup a source with many dependencies, because some compilers
4084 # like to wrap large dependency lists on column 80 (with \), and
4085 # we should not choose a depcomp mode which is confused by this.
4086 #
4087 # We need to recreate these files for each test, as the compiler may
4088 # overwrite some of them when testing with obscure command lines.
4089 # This happens at least with the AIX C compiler.
4090 : > sub/conftest.c
4091 for i in 1 2 3 4 5 6; do
4092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
4093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4094 # Solaris 8's {/usr,}/bin/sh.
4095 touch sub/conftst$i.h
3ed8e5b6
AT
4096 done
4097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4098
5213506e
RW
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this. Also, some Intel
4102 # versions had trouble with output in subdirs
4103 am__obj=sub/conftest.${OBJEXT-o}
4104 am__minus_obj="-o $am__obj"
3ed8e5b6 4105 case $depmode in
5213506e
RW
4106 gcc)
4107 # This depmode causes a compiler race in universal mode.
4108 test "$am__universal" = false || continue
4109 ;;
3ed8e5b6
AT
4110 nosideeffect)
4111 # after this tag, mechanisms are not by side-effect, so they'll
4112 # only be used when explicitly requested
4113 if test "x$enable_dependency_tracking" = xyes; then
4114 continue
4115 else
4116 break
4117 fi
4118 ;;
5213506e
RW
4119 msvisualcpp | msvcmsys)
4120 # This compiler won't grok `-c -o', but also, the minuso test has
4121 # not run yet. These depmodes are late enough in the game, and
4122 # so weak that their functioning should not be impacted.
4123 am__obj=conftest.${OBJEXT-o}
4124 am__minus_obj=
4125 ;;
3ed8e5b6
AT
4126 none) break ;;
4127 esac
3ed8e5b6 4128 if depmode=$depmode \
5213506e 4129 source=sub/conftest.c object=$am__obj \
3ed8e5b6 4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3ed8e5b6 4132 >/dev/null 2>conftest.err &&
5213506e 4133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6 4134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6
AT
4136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4137 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
4138 # or remarks (even with -Werror). So we grep stderr for any message
4139 # that says an option was ignored or not supported.
4140 # When given -MP, icc 7.0 and 7.1 complain thusly:
4141 # icc: Command line warning: ignoring option '-M'; no argument required
4142 # The diagnosis changed in icc 8.0:
4143 # icc: Command line remark: option '-MP' not supported
4144 if (grep 'ignoring option' conftest.err ||
4145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
4146 am_cv_CC_dependencies_compiler_type=$depmode
4147 break
4148 fi
4149 fi
4150 done
bbf3057b 4151
3ed8e5b6
AT
4152 cd ..
4153 rm -rf conftest.dir
4154else
4155 am_cv_CC_dependencies_compiler_type=none
4156fi
4157
4158fi
5213506e
RW
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4160$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3ed8e5b6
AT
4161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4162
5213506e 4163 if
3ed8e5b6
AT
4164 test "x$enable_dependency_tracking" != xno \
4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4166 am__fastdepCC_TRUE=
4167 am__fastdepCC_FALSE='#'
4168else
4169 am__fastdepCC_TRUE='#'
4170 am__fastdepCC_FALSE=
4171fi
4172
4173
4174
4175
4176
4177
4178# By default we simply use the C compiler to build assembly code.
4179
076e5443
PB
4180test "${CCAS+set}" = set || CCAS=$CC
4181test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4182
3ed8e5b6
AT
4183
4184
5213506e
RW
4185depcc="$CCAS" am_compiler_list=
4186
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188$as_echo_n "checking dependency style of $depcc... " >&6; }
4189if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
3ed8e5b6 4191else
5213506e
RW
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4197 # in D'.
4198 mkdir conftest.dir
4199 # Copy depcomp to subdir because otherwise we won't find it if we're
4200 # using a relative directory.
4201 cp "$am_depcomp" conftest.dir
4202 cd conftest.dir
4203 # We will build objects and dependencies in a subdirectory because
4204 # it helps to detect inapplicable dependency modes. For instance
4205 # both Tru64's cc and ICC support -MD to output dependencies as a
4206 # side effect of compilation, but ICC will put the dependencies in
4207 # the current directory while Tru64 will put them in the object
4208 # directory.
4209 mkdir sub
3ed8e5b6 4210
5213506e
RW
4211 am_cv_CCAS_dependencies_compiler_type=none
4212 if test "$am_compiler_list" = ""; then
4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4214 fi
4215 am__universal=false
3ed8e5b6 4216
5213506e
RW
4217
4218 for depmode in $am_compiler_list; do
4219 # Setup a source with many dependencies, because some compilers
4220 # like to wrap large dependency lists on column 80 (with \), and
4221 # we should not choose a depcomp mode which is confused by this.
4222 #
4223 # We need to recreate these files for each test, as the compiler may
4224 # overwrite some of them when testing with obscure command lines.
4225 # This happens at least with the AIX C compiler.
4226 : > sub/conftest.c
4227 for i in 1 2 3 4 5 6; do
4228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4230 # Solaris 8's {/usr,}/bin/sh.
4231 touch sub/conftst$i.h
4232 done
4233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4234
4235 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4236 # mode. It turns out that the SunPro C++ compiler does not properly
4237 # handle `-M -o', and we need to detect this. Also, some Intel
4238 # versions had trouble with output in subdirs
4239 am__obj=sub/conftest.${OBJEXT-o}
4240 am__minus_obj="-o $am__obj"
4241 case $depmode in
4242 gcc)
4243 # This depmode causes a compiler race in universal mode.
4244 test "$am__universal" = false || continue
4245 ;;
4246 nosideeffect)
4247 # after this tag, mechanisms are not by side-effect, so they'll
4248 # only be used when explicitly requested
4249 if test "x$enable_dependency_tracking" = xyes; then
4250 continue
4251 else
4252 break
4253 fi
4254 ;;
4255 msvisualcpp | msvcmsys)
4256 # This compiler won't grok `-c -o', but also, the minuso test has
4257 # not run yet. These depmodes are late enough in the game, and
4258 # so weak that their functioning should not be impacted.
4259 am__obj=conftest.${OBJEXT-o}
4260 am__minus_obj=
4261 ;;
4262 none) break ;;
4263 esac
4264 if depmode=$depmode \
4265 source=sub/conftest.c object=$am__obj \
4266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268 >/dev/null 2>conftest.err &&
4269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273 # icc doesn't choke on unknown options, it will just issue warnings
4274 # or remarks (even with -Werror). So we grep stderr for any message
4275 # that says an option was ignored or not supported.
4276 # When given -MP, icc 7.0 and 7.1 complain thusly:
4277 # icc: Command line warning: ignoring option '-M'; no argument required
4278 # The diagnosis changed in icc 8.0:
4279 # icc: Command line remark: option '-MP' not supported
4280 if (grep 'ignoring option' conftest.err ||
4281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282 am_cv_CCAS_dependencies_compiler_type=$depmode
4283 break
4284 fi
4285 fi
4286 done
4287
4288 cd ..
4289 rm -rf conftest.dir
4290else
4291 am_cv_CCAS_dependencies_compiler_type=none
4292fi
4293
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4296$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4297CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4298
4299 if
4300 test "x$enable_dependency_tracking" != xno \
4301 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4302 am__fastdepCCAS_TRUE=
4303 am__fastdepCCAS_FALSE='#'
4304else
4305 am__fastdepCCAS_TRUE='#'
4306 am__fastdepCCAS_FALSE=
4307fi
4308
4309
4310if test "x$CC" != xcc; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4313else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4316fi
4317set dummy $CC; ac_cc=`$as_echo "$2" |
4318 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h. */
4324
4325int
4326main ()
4327{
4328
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333# Make sure it works both with $CC and with simple cc.
4334# We do the test twice because some compilers refuse to overwrite an
4335# existing .o file with -o, though they will create one.
4336ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4337rm -f conftest2.*
4338if { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343$as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
3ed8e5b6 4355 ac_status=$?
5213506e
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
3ed8e5b6
AT
4358then
4359 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360 if test "x$CC" != xcc; then
4361 # Test first that cc exists at all.
4362 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4363 { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368$as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4373 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4374 rm -f conftest2.*
4375 if { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; } &&
4385 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390$as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
3ed8e5b6 4392 ac_status=$?
5213506e
RW
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; };
3ed8e5b6
AT
4395 then
4396 # cc works too.
4397 :
4398 else
4399 # cc exists but doesn't like -o.
4400 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4401 fi
4402 fi
4403 fi
4404else
4405 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4406fi
5213506e 4407rm -f core conftest*
3ed8e5b6
AT
4408
4409fi
5213506e
RW
4410if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412$as_echo "yes" >&6; }
3ed8e5b6 4413else
5213506e
RW
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
3ed8e5b6 4416
5213506e 4417$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3ed8e5b6
AT
4418
4419fi
4420
4421# FIXME: we rely on the cache variable name because
4422# there is no other way.
4423set dummy $CC
5213506e
RW
4424am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4425eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4426if test "$am_t" != yes; then
3ed8e5b6
AT
4427 # Losing compiler, so override with the script.
4428 # FIXME: It is wrong to rewrite CC.
4429 # But if we don't then we get into trouble of one sort or another.
4430 # A longer-term fix would be to have automake use am__CC in this case,
4431 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4432 CC="$am_aux_dir/compile $CC"
4433fi
63e5e3e0 4434
5213506e 4435
80c6c2cb
PG
4436case `pwd` in
4437 *\ * | *\ *)
5213506e
RW
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4439$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
80c6c2cb 4440esac
1cf3d07d
SE
4441
4442
1cf3d07d 4443
43e02a8a
RW
4444macro_version='2.2.7a'
4445macro_revision='1.3134'
1cf3d07d
SE
4446
4447
4448
4449
4450
4451
63e5e3e0 4452
1cf3d07d
SE
4453
4454
4455
4456
4457
4458
80c6c2cb 4459ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4460
43e02a8a
RW
4461# Backslashify metacharacters that are still active within
4462# double-quoted strings.
4463sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4464
4465# Same as above, but do not quote variable references.
4466double_quote_subst='s/\(["`\\]\)/\\\1/g'
4467
4468# Sed substitution to delay expansion of an escaped shell variable in a
4469# double_quote_subst'ed string.
4470delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4471
4472# Sed substitution to delay expansion of an escaped single quote.
4473delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4474
4475# Sed substitution to avoid accidental globbing in evaled expressions
4476no_glob_subst='s/\*/\\\*/g'
4477
4478ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4479ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4480ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4483$as_echo_n "checking how to print strings... " >&6; }
4484# Test print first, because it will be a builtin if present.
4485if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4486 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4487 ECHO='print -r --'
4488elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4489 ECHO='printf %s\n'
4490else
4491 # Use this function as a fallback that always works.
4492 func_fallback_echo ()
4493 {
4494 eval 'cat <<_LTECHO_EOF
4495$1
4496_LTECHO_EOF'
4497 }
4498 ECHO='func_fallback_echo'
4499fi
4500
4501# func_echo_all arg...
4502# Invoke $ECHO with all args, space-separated.
4503func_echo_all ()
4504{
4505 $ECHO ""
4506}
4507
4508case "$ECHO" in
4509 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4510$as_echo "printf" >&6; } ;;
4511 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4512$as_echo "print -r" >&6; } ;;
4513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4514$as_echo "cat" >&6; } ;;
4515esac
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
5213506e
RW
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532if test "${ac_cv_path_SED+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536 for ac_i in 1 2 3 4 5 6 7; do
4537 ac_script="$ac_script$as_nl$ac_script"
4538 done
4539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4540 { ac_script=; unset ac_script;}
4541 if test -z "$SED"; then
4542 ac_path_SED_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
5213506e 4549 for ac_prog in sed gsed; do
1cf3d07d 4550 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4553# Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555case `"$ac_path_SED" --version 2>&1` in
4556*GNU*)
4557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558*)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED="$ac_path_SED"
4573 ac_path_SED_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579esac
4580
4581 $ac_path_SED_found && break 3
1cf3d07d
SE
4582 done
4583 done
5213506e 4584 done
1cf3d07d 4585IFS=$as_save_IFS
5213506e
RW
4586 if test -z "$ac_cv_path_SED"; then
4587 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4588 fi
5213506e
RW
4589else
4590 ac_cv_path_SED=$SED
1cf3d07d
SE
4591fi
4592
5213506e
RW
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595$as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597 rm -f conftest.sed
1cf3d07d
SE
4598
4599test -z "$SED" && SED=sed
4600Xsed="$SED -e 1s/^X//"
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
5213506e
RW
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614if test "${ac_cv_path_GREP+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616else
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in grep ggrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4629# Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631case `"$ac_path_GREP" --version 2>&1` in
4632*GNU*)
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4634*)
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4638 do
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4650 fi
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
4656
4657 $ac_path_GREP_found && break 3
4658 done
4659 done
4660 done
4661IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4664 fi
4665else
4666 ac_cv_path_GREP=$GREP
4667fi
4668
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671$as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676$as_echo_n "checking for egrep... " >&6; }
4677if test "${ac_cv_path_EGREP+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
1cf3d07d 4679else
5213506e
RW
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4682 else
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695# Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697case `"$ac_path_EGREP" --version 2>&1` in
4698*GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4700*)
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4704 do
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
1cf3d07d 4716 fi
5213506e
RW
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
4722
4723 $ac_path_EGREP_found && break 3
4724 done
4725 done
4726 done
4727IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730 fi
4731else
4732 ac_cv_path_EGREP=$EGREP
4733fi
4734
4735 fi
1cf3d07d 4736fi
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738$as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
4740
4741
5213506e
RW
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4743$as_echo_n "checking for fgrep... " >&6; }
4744if test "${ac_cv_path_FGREP+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
1cf3d07d 4746else
5213506e
RW
4747 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4748 then ac_cv_path_FGREP="$GREP -F"
4749 else
4750 if test -z "$FGREP"; then
4751 ac_path_FGREP_found=false
4752 # Loop through the user's path and test for each of PROGNAME-LIST
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_prog in fgrep; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4761 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4762# Check for GNU ac_path_FGREP and select it if it is found.
4763 # Check for GNU $ac_path_FGREP
4764case `"$ac_path_FGREP" --version 2>&1` in
4765*GNU*)
4766 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4767*)
4768 ac_count=0
4769 $as_echo_n 0123456789 >"conftest.in"
4770 while :
4771 do
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 $as_echo 'FGREP' >> "conftest.nl"
4776 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_FGREP="$ac_path_FGREP"
4782 ac_path_FGREP_max=$ac_count
1cf3d07d 4783 fi
5213506e
RW
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788esac
4789
4790 $ac_path_FGREP_found && break 3
4791 done
4792 done
4793 done
4794IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_FGREP"; then
4796 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797 fi
4798else
4799 ac_cv_path_FGREP=$FGREP
4800fi
4801
4802 fi
1cf3d07d 4803fi
5213506e
RW
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4805$as_echo "$ac_cv_path_FGREP" >&6; }
4806 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4807
4808
4809test -z "$GREP" && GREP=grep
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
5213506e
RW
4829# Check whether --with-gnu-ld was given.
4830if test "${with_gnu_ld+set}" = set; then :
4831 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
63e5e3e0 4832else
675cdab3 4833 with_gnu_ld=no
5213506e
RW
4834fi
4835
63e5e3e0 4836ac_prog=ld
675cdab3 4837if test "$GCC" = yes; then
63e5e3e0 4838 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4840$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
4841 case $host in
4842 *-*-mingw*)
4843 # gcc leaves a trailing carriage return which upsets mingw
4844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4845 *)
4846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4847 esac
675cdab3 4848 case $ac_prog in
63e5e3e0 4849 # Accept absolute paths.
1cf3d07d 4850 [\\/]* | ?:[\\/]*)
63e5e3e0 4851 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4852 # Canonicalize the pathname of ld
4853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
4856 done
4857 test -z "$LD" && LD="$ac_prog"
4858 ;;
4859 "")
4860 # If it fails, then pretend we aren't using GCC.
4861 ac_prog=ld
4862 ;;
4863 *)
4864 # If it is relative, then search for the first ld in PATH.
4865 with_gnu_ld=unknown
4866 ;;
4867 esac
4868elif test "$with_gnu_ld" = yes; then
5213506e
RW
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4870$as_echo_n "checking for GNU ld... " >&6; }
63e5e3e0 4871else
5213506e
RW
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4873$as_echo_n "checking for non-GNU ld... " >&6; }
63e5e3e0 4874fi
5213506e
RW
4875if test "${lt_cv_path_LD+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4877else
4878 if test -z "$LD"; then
1cf3d07d 4879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 4880 for ac_dir in $PATH; do
1cf3d07d 4881 IFS="$lt_save_ifs"
63e5e3e0 4882 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 4883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 4884 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 4885 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4886 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 4887 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4889 *GNU* | *'with BFD'*)
63e5e3e0 4890 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4891 ;;
4892 *)
63e5e3e0 4893 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4894 ;;
4895 esac
63e5e3e0
AG
4896 fi
4897 done
1cf3d07d 4898 IFS="$lt_save_ifs"
63e5e3e0 4899else
675cdab3 4900 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
4901fi
4902fi
4903
675cdab3 4904LD="$lt_cv_path_LD"
63e5e3e0 4905if test -n "$LD"; then
5213506e
RW
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4907$as_echo "$LD" >&6; }
63e5e3e0 4908else
5213506e
RW
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
63e5e3e0 4911fi
5213506e
RW
4912test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4915if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
63e5e3e0 4917else
1cf3d07d
SE
4918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4919case `$LD -v 2>&1 </dev/null` in
4920*GNU* | *'with BFD'*)
675cdab3 4921 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4922 ;;
4923*)
675cdab3 4924 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4925 ;;
4926esac
63e5e3e0 4927fi
5213506e
RW
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4929$as_echo "$lt_cv_prog_gnu_ld" >&6; }
675cdab3 4930with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 4931
63e5e3e0
AG
4932
4933
1cf3d07d
SE
4934
4935
4936
4937
4938
4939
5213506e
RW
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4941$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4942if test "${lt_cv_path_NM+set}" = set; then :
4943 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4944else
4945 if test -n "$NM"; then
4946 # Let the user override the test.
675cdab3 4947 lt_cv_path_NM="$NM"
63e5e3e0 4948else
1cf3d07d
SE
4949 lt_nm_to_check="${ac_tool_prefix}nm"
4950 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4951 lt_nm_to_check="$lt_nm_to_check nm"
4952 fi
4953 for lt_tmp_nm in $lt_nm_to_check; do
4954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4955 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4956 IFS="$lt_save_ifs"
4957 test -z "$ac_dir" && ac_dir=.
4958 tmp_nm="$ac_dir/$lt_tmp_nm"
4959 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4960 # Check to see if the nm accepts a BSD-compat flag.
4961 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4962 # nm: unknown option "B" ignored
4963 # Tru64's nm complains that /dev/null is an invalid object file
4964 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4965 */dev/null* | *'Invalid file or object type'*)
4966 lt_cv_path_NM="$tmp_nm -B"
4967 break
4968 ;;
4969 *)
4970 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4971 */dev/null*)
4972 lt_cv_path_NM="$tmp_nm -p"
4973 break
4974 ;;
4975 *)
4976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4977 continue # so that we can try to find one that supports BSD flags
4978 ;;
4979 esac
4980 ;;
4981 esac
63e5e3e0 4982 fi
1cf3d07d
SE
4983 done
4984 IFS="$lt_save_ifs"
63e5e3e0 4985 done
1cf3d07d 4986 : ${lt_cv_path_NM=no}
63e5e3e0
AG
4987fi
4988fi
5213506e
RW
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4990$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4991if test "$lt_cv_path_NM" != "no"; then
4992 NM="$lt_cv_path_NM"
63e5e3e0 4993else
1cf3d07d 4994 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4995 if test -n "$DUMPBIN"; then :
4996 # Let the user override the test.
4997 else
4998 if test -n "$ac_tool_prefix"; then
4999 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5000 do
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
2f7bf5b7 5007else
1cf3d07d
SE
5008 if test -n "$DUMPBIN"; then
5009 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5213506e
RW
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5018 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5020 break 2
5021 fi
5022done
5213506e
RW
5023 done
5024IFS=$as_save_IFS
2f7bf5b7 5025
1cf3d07d
SE
5026fi
5027fi
5028DUMPBIN=$ac_cv_prog_DUMPBIN
5029if test -n "$DUMPBIN"; then
5213506e
RW
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5031$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5032else
5213506e
RW
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
1cf3d07d 5035fi
675cdab3 5036
5213506e 5037
1cf3d07d
SE
5038 test -n "$DUMPBIN" && break
5039 done
5040fi
5041if test -z "$DUMPBIN"; then
5042 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 5043 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5044do
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046set dummy $ac_prog; ac_word=$2
5213506e
RW
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5051else
5052 if test -n "$ac_ct_DUMPBIN"; then
5053 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5213506e
RW
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5064 break 2
2f7bf5b7 5065 fi
1cf3d07d 5066done
5213506e
RW
5067 done
5068IFS=$as_save_IFS
2f7bf5b7 5069
1cf3d07d
SE
5070fi
5071fi
5072ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5073if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5075$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5076else
5213506e
RW
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
1cf3d07d 5079fi
2f7bf5b7 5080
5213506e 5081
1cf3d07d
SE
5082 test -n "$ac_ct_DUMPBIN" && break
5083done
2f7bf5b7 5084
5213506e
RW
5085 if test "x$ac_ct_DUMPBIN" = x; then
5086 DUMPBIN=":"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092ac_tool_warned=yes ;;
5093esac
5094 DUMPBIN=$ac_ct_DUMPBIN
5095 fi
1cf3d07d 5096fi
2f7bf5b7 5097
43e02a8a
RW
5098 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5099 *COFF*)
5100 DUMPBIN="$DUMPBIN -symbols"
5101 ;;
5102 *)
5103 DUMPBIN=:
5104 ;;
5105 esac
5106 fi
2f7bf5b7 5107
1cf3d07d
SE
5108 if test "$DUMPBIN" != ":"; then
5109 NM="$DUMPBIN"
2f7bf5b7 5110 fi
1cf3d07d
SE
5111fi
5112test -z "$NM" && NM=nm
2f7bf5b7 5113
2f7bf5b7 5114
2f7bf5b7 5115
2f7bf5b7 5116
33456445 5117
2f7bf5b7 5118
5213506e
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5120$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5121if test "${lt_cv_nm_interface+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5123else
5124 lt_cv_nm_interface="BSD nm"
5125 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 5126 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
5127 (eval "$ac_compile" 2>conftest.err)
5128 cat conftest.err >&5
43e02a8a 5129 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5130 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5131 cat conftest.err >&5
43e02a8a 5132 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5133 cat conftest.out >&5
5134 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5135 lt_cv_nm_interface="MS dumpbin"
5136 fi
5137 rm -f conftest*
2f7bf5b7 5138fi
5213506e
RW
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5140$as_echo "$lt_cv_nm_interface" >&6; }
2f7bf5b7 5141
5213506e
RW
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5143$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5144LN_S=$as_ln_s
5145if test "$LN_S" = "ln -s"; then
5213506e
RW
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147$as_echo "yes" >&6; }
1cf3d07d 5148else
5213506e
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5150$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5151fi
2f7bf5b7 5152
6dab073b 5153# find the maximum length of command line arguments
5213506e
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
6dab073b
MS
5158else
5159 i=0
5160 teststring="ABCD"
5161
5162 case $build_os in
5163 msdosdjgpp*)
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5169 ;;
5170
1cf3d07d
SE
5171 gnu*)
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5176 ;;
5177
80c6c2cb 5178 cygwin* | mingw* | cegcc*)
6dab073b
MS
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
43e02a8a
RW
5189 mint*)
5190 # On MiNT this can take a long time and run out of memory.
5191 lt_cv_sys_max_cmd_len=8192;
5192 ;;
5193
6dab073b
MS
5194 amigaos*)
5195 # On AmigaOS with pdksh, this test takes hours, literally.
5196 # So we just punt and use a minimum line length of 8192.
5197 lt_cv_sys_max_cmd_len=8192;
5198 ;;
5199
5200 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5201 # This has been around since 386BSD, at least. Likely further.
5202 if test -x /sbin/sysctl; then
5203 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5204 elif test -x /usr/sbin/sysctl; then
5205 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5206 else
1cf3d07d 5207 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5208 fi
5209 # And add a safety zone
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5212 ;;
1cf3d07d
SE
5213
5214 interix*)
5215 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5216 lt_cv_sys_max_cmd_len=196608
5217 ;;
5218
5219 osf*)
5220 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5221 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5222 # nice to cause kernel panics so lets avoid the loop below.
5223 # First set a reasonable default.
5224 lt_cv_sys_max_cmd_len=16384
5225 #
5226 if test -x /sbin/sysconfig; then
5227 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5228 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5229 esac
5230 fi
5231 ;;
5232 sco3.2v5*)
5233 lt_cv_sys_max_cmd_len=102400
5234 ;;
5235 sysv5* | sco5v6* | sysv4.2uw2*)
5236 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5237 if test -n "$kargmax"; then
5238 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5239 else
5240 lt_cv_sys_max_cmd_len=32768
5241 fi
5242 ;;
5243 *)
80c6c2cb
PG
5244 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5245 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5248 else
5249 # Make teststring a little bigger before we do anything with it.
5250 # a 1K string should be a reasonable start.
5251 for i in 1 2 3 4 5 6 7 8 ; do
5252 teststring=$teststring$teststring
5253 done
5254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5255 # If test is not a shell built-in, we'll probably end up computing a
5256 # maximum length that is only half of the actual maximum length, but
5257 # we can't tell.
43e02a8a
RW
5258 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5259 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5260 test $i != 17 # 1/2 MB should be enough
5261 do
5262 i=`expr $i + 1`
5263 teststring=$teststring$teststring
5264 done
5265 # Only check the string length outside the loop.
5266 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5267 teststring=
5268 # Add a significant safety factor because C++ compilers can tack on
5269 # massive amounts of additional arguments before passing them to the
5270 # linker. It appears as though 1/2 is a usable value.
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5272 fi
1cf3d07d 5273 ;;
6dab073b
MS
5274 esac
5275
5276fi
5277
1cf3d07d 5278if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5280$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5281else
5213506e
RW
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5283$as_echo "none" >&6; }
6dab073b 5284fi
1cf3d07d 5285max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5286
5287
2f7bf5b7 5288
2f7bf5b7 5289
2f7bf5b7 5290
1cf3d07d 5291
1cf3d07d
SE
5292: ${CP="cp -f"}
5293: ${MV="mv -f"}
5294: ${RM="rm -f"}
5295
5213506e
RW
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5297$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5298# Try some XSI features
5299xsi_shell=no
5300( _lt_dummy="a/b/c"
5301 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
5302 = c,a/b,, \
5303 && eval 'test $(( 1 + 1 )) -eq 2 \
5304 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5305 && xsi_shell=yes
5213506e
RW
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5307$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5308
5309
5213506e
RW
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5311$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5312lt_shell_append=no
5313( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5314 >/dev/null 2>&1 \
5315 && lt_shell_append=yes
5213506e
RW
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5317$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5318
5319
5320if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5321 lt_unset=unset
2f7bf5b7 5322else
1cf3d07d 5323 lt_unset=false
2f7bf5b7
AO
5324fi
5325
1cf3d07d
SE
5326
5327
5328
5329
5330# test EBCDIC or ASCII
5331case `echo X|tr X '\101'` in
5332 A) # ASCII based system
5333 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5334 lt_SP2NL='tr \040 \012'
5335 lt_NL2SP='tr \015\012 \040\040'
5336 ;;
5337 *) # EBCDIC based system
5338 lt_SP2NL='tr \100 \n'
5339 lt_NL2SP='tr \r\n \100\100'
5340 ;;
5341esac
5342
5343
5344
5345
5346
5347
5348
5349
5350
5213506e
RW
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5352$as_echo_n "checking for $LD option to reload object files... " >&6; }
5353if test "${lt_cv_ld_reload_flag+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
2f7bf5b7 5355else
1cf3d07d
SE
5356 lt_cv_ld_reload_flag='-r'
5357fi
5213506e
RW
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5359$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5360reload_flag=$lt_cv_ld_reload_flag
5361case $reload_flag in
5362"" | " "*) ;;
5363*) reload_flag=" $reload_flag" ;;
5364esac
5365reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366case $host_os in
5367 darwin*)
5368 if test "$GCC" = yes; then
5369 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5370 else
5371 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5372 fi
5373 ;;
5374esac
5375
5376
5377
5378
5379
5380
5381
5382
5383
80c6c2cb
PG
5384if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5391else
5392 if test -n "$OBJDUMP"; then
5393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5213506e
RW
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5404 break 2
5405 fi
5406done
5213506e
RW
5407 done
5408IFS=$as_save_IFS
80c6c2cb
PG
5409
5410fi
5411fi
5412OBJDUMP=$ac_cv_prog_OBJDUMP
5413if test -n "$OBJDUMP"; then
5213506e
RW
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5415$as_echo "$OBJDUMP" >&6; }
80c6c2cb 5416else
5213506e
RW
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }
80c6c2cb
PG
5419fi
5420
5213506e 5421
80c6c2cb
PG
5422fi
5423if test -z "$ac_cv_prog_OBJDUMP"; then
5424 ac_ct_OBJDUMP=$OBJDUMP
5425 # Extract the first word of "objdump", so it can be a program name with args.
5426set dummy objdump; ac_word=$2
5213506e
RW
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428$as_echo_n "checking for $ac_word... " >&6; }
5429if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5431else
5432 if test -n "$ac_ct_OBJDUMP"; then
5433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5213506e
RW
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5444 break 2
5445 fi
5446done
5213506e
RW
5447 done
5448IFS=$as_save_IFS
80c6c2cb 5449
80c6c2cb
PG
5450fi
5451fi
5452ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5453if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5455$as_echo "$ac_ct_OBJDUMP" >&6; }
80c6c2cb 5456else
5213506e
RW
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458$as_echo "no" >&6; }
80c6c2cb
PG
5459fi
5460
5213506e
RW
5461 if test "x$ac_ct_OBJDUMP" = x; then
5462 OBJDUMP="false"
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465yes:)
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468ac_tool_warned=yes ;;
5469esac
5470 OBJDUMP=$ac_ct_OBJDUMP
5471 fi
80c6c2cb
PG
5472else
5473 OBJDUMP="$ac_cv_prog_OBJDUMP"
5474fi
5475
5476test -z "$OBJDUMP" && OBJDUMP=objdump
5477
5478
5479
5480
5481
5482
5483
5484
1cf3d07d 5485
5213506e
RW
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5487$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5488if test "${lt_cv_deplibs_check_method+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5490else
5491 lt_cv_file_magic_cmd='$MAGIC_CMD'
5492lt_cv_file_magic_test_file=
5493lt_cv_deplibs_check_method='unknown'
5494# Need to set the preceding variable on all platforms that support
5495# interlibrary dependencies.
5496# 'none' -- dependencies not supported.
5497# `unknown' -- same as none, but documents that we really don't know.
5498# 'pass_all' -- all dependencies passed with no checks.
5499# 'test_compile' -- check by making test program.
5500# 'file_magic [[regex]]' -- check by looking for files in library path
5501# which responds to the $file_magic_cmd with a given extended regex.
5502# If you have `file' or equivalent on your system and you're not sure
5503# whether `pass_all' will *always* work, you probably want this one.
5504
5505case $host_os in
95d4f544 5506aix[4-9]*)
1cf3d07d
SE
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510beos*)
5511 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5512 ;;
1cf3d07d
SE
5513
5514bsdi[45]*)
5515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5516 lt_cv_file_magic_cmd='/usr/bin/file -L'
5517 lt_cv_file_magic_test_file=/shlib/libc.so
5518 ;;
5519
5520cygwin*)
5521 # func_win32_libid is a shell function defined in ltmain.sh
5522 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5523 lt_cv_file_magic_cmd='func_win32_libid'
5524 ;;
5525
5526mingw* | pw32*)
5527 # Base MSYS/MinGW do not provide the 'file' command needed by
5528 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5529 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5530 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5531 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5533 lt_cv_file_magic_cmd='func_win32_libid'
5534 else
5535 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5536 lt_cv_file_magic_cmd='$OBJDUMP -f'
5537 fi
5538 ;;
5539
43e02a8a 5540cegcc*)
80c6c2cb
PG
5541 # use the weaker test based on 'objdump'. See mingw*.
5542 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5543 lt_cv_file_magic_cmd='$OBJDUMP -f'
5544 ;;
5545
1cf3d07d
SE
5546darwin* | rhapsody*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550freebsd* | dragonfly*)
5551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5552 case $host_cpu in
5553 i*86 )
5554 # Not sure whether the presence of OpenBSD here was a mistake.
5555 # Let's accept both of them until this is cleared up.
5556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5557 lt_cv_file_magic_cmd=/usr/bin/file
5558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5559 ;;
5560 esac
5561 else
5562 lt_cv_deplibs_check_method=pass_all
5563 fi
5564 ;;
5565
5566gnu*)
5567 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5568 ;;
1cf3d07d 5569
43e02a8a
RW
5570haiku*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
1cf3d07d
SE
5574hpux10.20* | hpux11*)
5575 lt_cv_file_magic_cmd=/usr/bin/file
5576 case $host_cpu in
5577 ia64*)
5578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5580 ;;
5581 hppa*64*)
43e02a8a 5582 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]'
1cf3d07d
SE
5583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5584 ;;
2f7bf5b7 5585 *)
43e02a8a 5586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5588 ;;
5589 esac
5590 ;;
2f7bf5b7 5591
1cf3d07d
SE
5592interix[3-9]*)
5593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5595 ;;
2f7bf5b7 5596
1cf3d07d
SE
5597irix5* | irix6* | nonstopux*)
5598 case $LD in
5599 *-32|*"-32 ") libmagic=32-bit;;
5600 *-n32|*"-n32 ") libmagic=N32;;
5601 *-64|*"-64 ") libmagic=64-bit;;
5602 *) libmagic=never-match;;
5603 esac
5604 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5605 ;;
2f7bf5b7 5606
1cf3d07d 5607# This must be Linux ELF.
7a9d3fe8 5608linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5609 lt_cv_deplibs_check_method=pass_all
5610 ;;
2f7bf5b7 5611
1cf3d07d
SE
5612netbsd*)
5613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 5615 else
1cf3d07d 5616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 5617 fi
1cf3d07d
SE
5618 ;;
5619
5620newos6*)
5621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5622 lt_cv_file_magic_cmd=/usr/bin/file
5623 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5624 ;;
5625
5626*nto* | *qnx*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
63e5e3e0 5629
1cf3d07d
SE
5630openbsd*)
5631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5633 else
5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
5635 fi
5636 ;;
1cf3d07d
SE
5637
5638osf3* | osf4* | osf5*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641
5642rdos*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646solaris*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654sysv4 | sysv4.3*)
5655 case $host_vendor in
5656 motorola)
5657 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]'
5658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5659 ;;
5660 ncr)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663 sequent)
5664 lt_cv_file_magic_cmd='/bin/file'
5665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5666 ;;
5667 sni)
5668 lt_cv_file_magic_cmd='/bin/file'
5669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5670 lt_cv_file_magic_test_file=/lib/libc.so
5671 ;;
5672 siemens)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675 pc)
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678 esac
5679 ;;
5680
5681tpf*)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
dc5de370
HB
5684esac
5685
1cf3d07d 5686fi
5213506e
RW
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5688$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5689file_magic_cmd=$lt_cv_file_magic_cmd
5690deplibs_check_method=$lt_cv_deplibs_check_method
5691test -z "$deplibs_check_method" && deplibs_check_method=unknown
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
3ed8e5b6 5704if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5705 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5706set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708$as_echo_n "checking for $ac_word... " >&6; }
5709if test "${ac_cv_prog_AR+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
2f7bf5b7 5711else
1cf3d07d
SE
5712 if test -n "$AR"; then
5713 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 5714else
3ed8e5b6
AT
5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716for as_dir in $PATH
5717do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5213506e
RW
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5722 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5724 break 2
5725 fi
5726done
5213506e
RW
5727 done
5728IFS=$as_save_IFS
3ed8e5b6 5729
2f7bf5b7
AO
5730fi
5731fi
1cf3d07d
SE
5732AR=$ac_cv_prog_AR
5733if test -n "$AR"; then
5213506e
RW
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5735$as_echo "$AR" >&6; }
2f7bf5b7 5736else
5213506e
RW
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738$as_echo "no" >&6; }
2f7bf5b7
AO
5739fi
5740
5213506e 5741
3ed8e5b6 5742fi
1cf3d07d
SE
5743if test -z "$ac_cv_prog_AR"; then
5744 ac_ct_AR=$AR
5745 # Extract the first word of "ar", so it can be a program name with args.
5746set dummy ar; ac_word=$2
5213506e
RW
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748$as_echo_n "checking for $ac_word... " >&6; }
5749if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
2f7bf5b7 5751else
1cf3d07d
SE
5752 if test -n "$ac_ct_AR"; then
5753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 5754else
3ed8e5b6
AT
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5213506e
RW
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5762 ac_cv_prog_ac_ct_AR="ar"
5213506e 5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5764 break 2
5765 fi
5766done
5213506e
RW
5767 done
5768IFS=$as_save_IFS
3ed8e5b6 5769
2f7bf5b7
AO
5770fi
5771fi
1cf3d07d
SE
5772ac_ct_AR=$ac_cv_prog_ac_ct_AR
5773if test -n "$ac_ct_AR"; then
5213506e
RW
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5775$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 5776else
5213506e
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778$as_echo "no" >&6; }
2f7bf5b7
AO
5779fi
5780
5213506e
RW
5781 if test "x$ac_ct_AR" = x; then
5782 AR="false"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785yes:)
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788ac_tool_warned=yes ;;
5789esac
5790 AR=$ac_ct_AR
5791 fi
2f7bf5b7 5792else
1cf3d07d 5793 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
5794fi
5795
1cf3d07d
SE
5796test -z "$AR" && AR=ar
5797test -z "$AR_FLAGS" && AR_FLAGS=cru
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
3ed8e5b6
AT
5809if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 5811set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if test "${ac_cv_prog_STRIP+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
5816else
5817 if test -n "$STRIP"; then
5818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
3ed8e5b6
AT
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5213506e
RW
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5829 break 2
5830 fi
5831done
5213506e
RW
5832 done
5833IFS=$as_save_IFS
3ed8e5b6 5834
2f7bf5b7
AO
5835fi
5836fi
3ed8e5b6 5837STRIP=$ac_cv_prog_STRIP
2f7bf5b7 5838if test -n "$STRIP"; then
5213506e
RW
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5840$as_echo "$STRIP" >&6; }
2f7bf5b7 5841else
5213506e
RW
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
2f7bf5b7
AO
5844fi
5845
5213506e 5846
3ed8e5b6 5847fi
2f7bf5b7 5848if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 5849 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
5850 # Extract the first word of "strip", so it can be a program name with args.
5851set dummy strip; ac_word=$2
5213506e
RW
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
2f7bf5b7 5856else
3ed8e5b6
AT
5857 if test -n "$ac_ct_STRIP"; then
5858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 5859else
3ed8e5b6
AT
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5213506e
RW
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5867 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5869 break 2
5870 fi
5871done
5213506e
RW
5872 done
5873IFS=$as_save_IFS
3ed8e5b6 5874
2f7bf5b7
AO
5875fi
5876fi
3ed8e5b6
AT
5877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5878if test -n "$ac_ct_STRIP"; then
5213506e
RW
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5880$as_echo "$ac_ct_STRIP" >&6; }
675cdab3 5881else
5213506e
RW
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
675cdab3
BM
5884fi
5885
5213506e
RW
5886 if test "x$ac_ct_STRIP" = x; then
5887 STRIP=":"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890yes:)
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893ac_tool_warned=yes ;;
5894esac
5895 STRIP=$ac_ct_STRIP
5896 fi
675cdab3 5897else
3ed8e5b6 5898 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
5899fi
5900
1cf3d07d 5901test -z "$STRIP" && STRIP=:
675cdab3 5902
675cdab3
BM
5903
5904
675cdab3 5905
675cdab3 5906
3ed8e5b6 5907
1cf3d07d
SE
5908if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if test "${ac_cv_prog_RANLIB+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
675cdab3 5915else
1cf3d07d
SE
5916 if test -n "$RANLIB"; then
5917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5213506e
RW
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5928 break 2
5929 fi
5930done
5213506e
RW
5931 done
5932IFS=$as_save_IFS
1cf3d07d
SE
5933
5934fi
5935fi
5936RANLIB=$ac_cv_prog_RANLIB
5937if test -n "$RANLIB"; then
5213506e
RW
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5939$as_echo "$RANLIB" >&6; }
1cf3d07d 5940else
5213506e
RW
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
1cf3d07d
SE
5943fi
5944
5213506e 5945
1cf3d07d
SE
5946fi
5947if test -z "$ac_cv_prog_RANLIB"; then
5948 ac_ct_RANLIB=$RANLIB
5949 # Extract the first word of "ranlib", so it can be a program name with args.
5950set dummy ranlib; ac_word=$2
5213506e
RW
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5955else
5956 if test -n "$ac_ct_RANLIB"; then
5957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5213506e
RW
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5966 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5968 break 2
5969 fi
5970done
5213506e
RW
5971 done
5972IFS=$as_save_IFS
1cf3d07d 5973
1cf3d07d
SE
5974fi
5975fi
5976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5977if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5979$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5980else
5213506e
RW
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
1cf3d07d
SE
5983fi
5984
5213506e
RW
5985 if test "x$ac_ct_RANLIB" = x; then
5986 RANLIB=":"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992ac_tool_warned=yes ;;
5993esac
5994 RANLIB=$ac_ct_RANLIB
5995 fi
1cf3d07d
SE
5996else
5997 RANLIB="$ac_cv_prog_RANLIB"
5998fi
5999
6000test -z "$RANLIB" && RANLIB=:
6001
6002
6003
6004
6005
6006
6007# Determine commands to create old-style static archives.
80c6c2cb 6008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6009old_postinstall_cmds='chmod 644 $oldlib'
6010old_postuninstall_cmds=
6011
6012if test -n "$RANLIB"; then
6013 case $host_os in
6014 openbsd*)
6015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6016 ;;
6017 *)
6018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6019 ;;
6020 esac
6021 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6022fi
6023
43e02a8a
RW
6024case $host_os in
6025 darwin*)
6026 lock_old_archive_extraction=yes ;;
6027 *)
6028 lock_old_archive_extraction=no ;;
6029esac
6030
6031
6032
6033
6034
6035
1cf3d07d
SE
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069# If no C compiler was specified, use CC.
6070LTCC=${LTCC-"$CC"}
6071
6072# If no C compiler flags were specified, use CFLAGS.
6073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6074
6075# Allow CC to be a program name with arguments.
6076compiler=$CC
6077
6078
6079# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6084else
6085
6086# These are sane defaults that work on at least a few old systems.
6087# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6088
6089# Character class describing NM global symbol codes.
6090symcode='[BCDEGRST]'
6091
6092# Regexp to match symbols that can be accessed directly from C.
6093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6094
6095# Define system-specific variables.
6096case $host_os in
6097aix*)
6098 symcode='[BCDT]'
6099 ;;
80c6c2cb 6100cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6101 symcode='[ABCDGISTW]'
6102 ;;
6103hpux*)
6104 if test "$host_cpu" = ia64; then
6105 symcode='[ABCDEGRST]'
6106 fi
6107 ;;
6108irix* | nonstopux*)
6109 symcode='[BCDEGRST]'
6110 ;;
6111osf*)
6112 symcode='[BCDEGQRST]'
6113 ;;
6114solaris*)
6115 symcode='[BDRT]'
6116 ;;
6117sco3.2v5*)
6118 symcode='[DT]'
6119 ;;
6120sysv4.2uw2*)
6121 symcode='[DT]'
6122 ;;
6123sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124 symcode='[ABDT]'
6125 ;;
6126sysv4)
6127 symcode='[DFNSTU]'
6128 ;;
6129esac
6130
6131# If we're using GNU nm, then use its standard symbol codes.
6132case `$NM -V 2>&1` in
6133*GNU* | *'with BFD'*)
6134 symcode='[ABCDGIRSTW]' ;;
6135esac
6136
6137# Transform an extracted symbol line into a proper C declaration.
6138# Some systems (esp. on ia64) link data and code symbols differently,
6139# so use this general approach.
6140lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6141
6142# Transform an extracted symbol line into symbol name and symbol address
6143lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 6144lt_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'"
1cf3d07d
SE
6145
6146# Handle CRLF in mingw tool chain
6147opt_cr=
6148case $build_os in
6149mingw*)
6150 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6151 ;;
6152esac
6153
6154# Try without a prefix underscore, then with it.
6155for ac_symprfx in "" "_"; do
6156
6157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6158 symxfrm="\\1 $ac_symprfx\\2 \\2"
6159
6160 # Write the raw and C identifiers.
6161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162 # Fake it for dumpbin and say T for any non-static function
6163 # and D for any global variable.
6164 # Also find C++ and __fastcall symbols from MSVC++,
6165 # which start with @ or ?.
6166 lt_cv_sys_global_symbol_pipe="$AWK '"\
6167" {last_section=section; section=\$ 3};"\
6168" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6169" \$ 0!~/External *\|/{next};"\
6170" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6171" {if(hide[section]) next};"\
6172" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6173" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6174" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6175" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6176" ' prfx=^$ac_symprfx"
6177 else
6178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6179 fi
6180
6181 # Check to see that the pipe works correctly.
6182 pipe_works=no
6183
6184 rm -f conftest*
6185 cat > conftest.$ac_ext <<_LT_EOF
6186#ifdef __cplusplus
6187extern "C" {
6188#endif
6189char nm_test_var;
6190void nm_test_func(void);
6191void nm_test_func(void){}
6192#ifdef __cplusplus
6193}
6194#endif
6195int main(){nm_test_var='a';nm_test_func();return(0);}
6196_LT_EOF
6197
5213506e 6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6199 (eval $ac_compile) 2>&5
6200 ac_status=$?
5213506e
RW
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }; then
1cf3d07d
SE
6203 # Now try to grab the symbols.
6204 nlist=conftest.nm
43e02a8a
RW
6205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6206 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6207 ac_status=$?
5213506e
RW
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6210 # Try sorting and uniquifying the output.
6211 if sort "$nlist" | uniq > "$nlist"T; then
6212 mv -f "$nlist"T "$nlist"
6213 else
6214 rm -f "$nlist"T
6215 fi
6216
6217 # Make sure that we snagged all the symbols we need.
6218 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220 cat <<_LT_EOF > conftest.$ac_ext
6221#ifdef __cplusplus
6222extern "C" {
6223#endif
6224
6225_LT_EOF
6226 # Now generate the symbol file.
6227 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6228
6229 cat <<_LT_EOF >> conftest.$ac_ext
6230
6231/* The mapping between symbol names and symbols. */
6232const struct {
6233 const char *name;
6234 void *address;
6235}
6236lt__PROGRAM__LTX_preloaded_symbols[] =
6237{
6238 { "@PROGRAM@", (void *) 0 },
6239_LT_EOF
6240 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6241 cat <<\_LT_EOF >> conftest.$ac_ext
6242 {0, (void *) 0}
6243};
6244
6245/* This works around a problem in FreeBSD linker */
6246#ifdef FREEBSD_WORKAROUND
6247static const void *lt_preloaded_setup() {
6248 return lt__PROGRAM__LTX_preloaded_symbols;
6249}
6250#endif
6251
6252#ifdef __cplusplus
6253}
6254#endif
6255_LT_EOF
6256 # Now try linking the two files.
6257 mv conftest.$ac_objext conftstm.$ac_objext
6258 lt_save_LIBS="$LIBS"
6259 lt_save_CFLAGS="$CFLAGS"
6260 LIBS="conftstm.$ac_objext"
6261 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6263 (eval $ac_link) 2>&5
6264 ac_status=$?
5213506e
RW
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6267 pipe_works=yes
6268 fi
6269 LIBS="$lt_save_LIBS"
6270 CFLAGS="$lt_save_CFLAGS"
6271 else
6272 echo "cannot find nm_test_func in $nlist" >&5
6273 fi
6274 else
6275 echo "cannot find nm_test_var in $nlist" >&5
6276 fi
6277 else
6278 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6279 fi
6280 else
6281 echo "$progname: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 fi
80c6c2cb 6284 rm -rf conftest* conftst*
1cf3d07d
SE
6285
6286 # Do not use the global_symbol_pipe unless it works.
6287 if test "$pipe_works" = yes; then
6288 break
6289 else
6290 lt_cv_sys_global_symbol_pipe=
6291 fi
6292done
6293
6294fi
6295
6296if test -z "$lt_cv_sys_global_symbol_pipe"; then
6297 lt_cv_sys_global_symbol_to_cdecl=
6298fi
6299if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6301$as_echo "failed" >&6; }
1cf3d07d 6302else
5213506e
RW
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6304$as_echo "ok" >&6; }
1cf3d07d
SE
6305fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
80c6c2cb
PG
6321
6322
6323
6324
6325
1cf3d07d
SE
6326
6327
6328
5213506e
RW
6329# Check whether --enable-libtool-lock was given.
6330if test "${enable_libtool_lock+set}" = set; then :
6331 enableval=$enable_libtool_lock;
6332fi
1cf3d07d 6333
1cf3d07d 6334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
6335
6336# Some flags need to be propagated to the compiler or linker for good
6337# libtool support.
6338case $host in
1cf3d07d 6339ia64-*-hpux*)
675cdab3 6340 # Find out which ABI we are using.
1cf3d07d 6341 echo 'int i;' > conftest.$ac_ext
5213506e 6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3ed8e5b6
AT
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
5213506e
RW
6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; then
675cdab3 6347 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6348 *ELF-32*)
6349 HPUX_IA64_MODE="32"
6350 ;;
6351 *ELF-64*)
6352 HPUX_IA64_MODE="64"
6353 ;;
3ed8e5b6 6354 esac
3ed8e5b6
AT
6355 fi
6356 rm -rf conftest*
6357 ;;
1cf3d07d
SE
6358*-*-irix6*)
6359 # Find out which ABI we are using.
43e02a8a 6360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6362 (eval $ac_compile) 2>&5
6363 ac_status=$?
5213506e
RW
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
1cf3d07d
SE
6366 if test "$lt_cv_prog_gnu_ld" = yes; then
6367 case `/usr/bin/file conftest.$ac_objext` in
6368 *32-bit*)
6369 LD="${LD-ld} -melf32bsmip"
6370 ;;
6371 *N32*)
6372 LD="${LD-ld} -melf32bmipn32"
6373 ;;
6374 *64-bit*)
6375 LD="${LD-ld} -melf64bmip"
6376 ;;
6377 esac
6378 else
6379 case `/usr/bin/file conftest.$ac_objext` in
6380 *32-bit*)
6381 LD="${LD-ld} -32"
6382 ;;
6383 *N32*)
6384 LD="${LD-ld} -n32"
6385 ;;
6386 *64-bit*)
6387 LD="${LD-ld} -64"
6388 ;;
6389 esac
6390 fi
6391 fi
6392 rm -rf conftest*
6393 ;;
6394
6395x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6396s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6397 # Find out which ABI we are using.
6398 echo 'int i;' > conftest.$ac_ext
5213506e 6399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
5213506e
RW
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; then
1cf3d07d
SE
6404 case `/usr/bin/file conftest.o` in
6405 *32-bit*)
6406 case $host in
6407 x86_64-*kfreebsd*-gnu)
6408 LD="${LD-ld} -m elf_i386_fbsd"
6409 ;;
6410 x86_64-*linux*)
e6d5f8c9
L
6411 case `/usr/bin/file conftest.o` in
6412 *x86-64*)
6413 LD="${LD-ld} -m elf32_x86_64"
6414 ;;
6415 *)
6416 LD="${LD-ld} -m elf_i386"
6417 ;;
6418 esac
1cf3d07d
SE
6419 ;;
6420 ppc64-*linux*|powerpc64-*linux*)
6421 LD="${LD-ld} -m elf32ppclinux"
6422 ;;
6423 s390x-*linux*)
6424 LD="${LD-ld} -m elf_s390"
6425 ;;
6426 sparc64-*linux*)
6427 LD="${LD-ld} -m elf32_sparc"
6428 ;;
6429 esac
6430 ;;
6431 *64-bit*)
6432 case $host in
6433 x86_64-*kfreebsd*-gnu)
6434 LD="${LD-ld} -m elf_x86_64_fbsd"
6435 ;;
6436 x86_64-*linux*)
6437 LD="${LD-ld} -m elf_x86_64"
6438 ;;
6439 ppc*-*linux*|powerpc*-*linux*)
6440 LD="${LD-ld} -m elf64ppc"
6441 ;;
6442 s390*-*linux*|s390*-*tpf*)
6443 LD="${LD-ld} -m elf64_s390"
6444 ;;
6445 sparc*-*linux*)
6446 LD="${LD-ld} -m elf64_sparc"
6447 ;;
6448 esac
6449 ;;
6450 esac
6451 fi
6452 rm -rf conftest*
6453 ;;
6454
6455*-*-sco3.2v5*)
6456 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6457 SAVE_CFLAGS="$CFLAGS"
6458 CFLAGS="$CFLAGS -belf"
5213506e
RW
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6460$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6461if test "${lt_cv_cc_needs_belf+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6463else
6464 ac_ext=c
6465ac_cpp='$CPP $CPPFLAGS'
6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
5213506e 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6471/* end confdefs.h. */
6472
6473int
6474main ()
6475{
6476
6477 ;
6478 return 0;
6479}
6480_ACEOF
5213506e 6481if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6482 lt_cv_cc_needs_belf=yes
6483else
5213506e 6484 lt_cv_cc_needs_belf=no
1cf3d07d 6485fi
5213506e
RW
6486rm -f core conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6488 ac_ext=c
6489ac_cpp='$CPP $CPPFLAGS'
6490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493
6494fi
5213506e
RW
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6496$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6497 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6499 CFLAGS="$SAVE_CFLAGS"
6500 fi
6501 ;;
6502sparc*-*solaris*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
5213506e 6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
5213506e
RW
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
1cf3d07d
SE
6510 case `/usr/bin/file conftest.o` in
6511 *64-bit*)
6512 case $lt_cv_prog_gnu_ld in
6513 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
6514 *)
6515 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6516 LD="${LD-ld} -64"
6517 fi
6518 ;;
1cf3d07d
SE
6519 esac
6520 ;;
6521 esac
6522 fi
6523 rm -rf conftest*
6524 ;;
6525esac
6526
6527need_locks="$enable_libtool_lock"
6528
80c6c2cb
PG
6529
6530 case $host_os in
6531 rhapsody* | darwin*)
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6534set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
1cf3d07d 6539else
80c6c2cb
PG
6540 if test -n "$DSYMUTIL"; then
6541 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
1cf3d07d 6545do
80c6c2cb
PG
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
5213506e
RW
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6550 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb 6552 break 2
1cf3d07d 6553 fi
80c6c2cb 6554done
5213506e
RW
6555 done
6556IFS=$as_save_IFS
6557
80c6c2cb
PG
6558fi
6559fi
6560DSYMUTIL=$ac_cv_prog_DSYMUTIL
6561if test -n "$DSYMUTIL"; then
5213506e
RW
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6563$as_echo "$DSYMUTIL" >&6; }
80c6c2cb 6564else
5213506e
RW
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
80c6c2cb
PG
6567fi
6568
5213506e 6569
80c6c2cb
PG
6570fi
6571if test -z "$ac_cv_prog_DSYMUTIL"; then
6572 ac_ct_DSYMUTIL=$DSYMUTIL
6573 # Extract the first word of "dsymutil", so it can be a program name with args.
6574set dummy dsymutil; ac_word=$2
5213506e
RW
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6579else
6580 if test -n "$ac_ct_DSYMUTIL"; then
6581 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
5213506e
RW
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6590 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6592 break 2
6593 fi
6594done
5213506e
RW
6595 done
6596IFS=$as_save_IFS
80c6c2cb 6597
80c6c2cb
PG
6598fi
6599fi
6600ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6601if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6603$as_echo "$ac_ct_DSYMUTIL" >&6; }
80c6c2cb 6604else
5213506e
RW
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
80c6c2cb
PG
6607fi
6608
5213506e
RW
6609 if test "x$ac_ct_DSYMUTIL" = x; then
6610 DSYMUTIL=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618 DSYMUTIL=$ac_ct_DSYMUTIL
6619 fi
80c6c2cb
PG
6620else
6621 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6622fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6631else
6632 if test -n "$NMEDIT"; then
6633 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
5213506e
RW
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6642 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6644 break 2
6645 fi
6646done
5213506e
RW
6647 done
6648IFS=$as_save_IFS
80c6c2cb
PG
6649
6650fi
6651fi
6652NMEDIT=$ac_cv_prog_NMEDIT
6653if test -n "$NMEDIT"; then
5213506e
RW
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6655$as_echo "$NMEDIT" >&6; }
80c6c2cb 6656else
5213506e
RW
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
80c6c2cb
PG
6659fi
6660
5213506e 6661
80c6c2cb
PG
6662fi
6663if test -z "$ac_cv_prog_NMEDIT"; then
6664 ac_ct_NMEDIT=$NMEDIT
6665 # Extract the first word of "nmedit", so it can be a program name with args.
6666set dummy nmedit; ac_word=$2
5213506e
RW
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6671else
6672 if test -n "$ac_ct_NMEDIT"; then
6673 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
5213506e
RW
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6682 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6684 break 2
6685 fi
6686done
5213506e
RW
6687 done
6688IFS=$as_save_IFS
80c6c2cb 6689
80c6c2cb
PG
6690fi
6691fi
6692ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6693if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6695$as_echo "$ac_ct_NMEDIT" >&6; }
80c6c2cb 6696else
5213506e
RW
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
80c6c2cb
PG
6699fi
6700
5213506e
RW
6701 if test "x$ac_ct_NMEDIT" = x; then
6702 NMEDIT=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 NMEDIT=$ac_ct_NMEDIT
6711 fi
80c6c2cb
PG
6712else
6713 NMEDIT="$ac_cv_prog_NMEDIT"
6714fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if test "${ac_cv_prog_LIPO+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6723else
6724 if test -n "$LIPO"; then
6725 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
5213506e
RW
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6734 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6736 break 2
6737 fi
6738done
5213506e
RW
6739 done
6740IFS=$as_save_IFS
80c6c2cb
PG
6741
6742fi
6743fi
6744LIPO=$ac_cv_prog_LIPO
6745if test -n "$LIPO"; then
5213506e
RW
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6747$as_echo "$LIPO" >&6; }
80c6c2cb 6748else
5213506e
RW
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
80c6c2cb
PG
6751fi
6752
5213506e 6753
80c6c2cb
PG
6754fi
6755if test -z "$ac_cv_prog_LIPO"; then
6756 ac_ct_LIPO=$LIPO
6757 # Extract the first word of "lipo", so it can be a program name with args.
6758set dummy lipo; ac_word=$2
5213506e
RW
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6763else
6764 if test -n "$ac_ct_LIPO"; then
6765 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
5213506e
RW
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6774 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6776 break 2
6777 fi
6778done
5213506e
RW
6779 done
6780IFS=$as_save_IFS
80c6c2cb 6781
80c6c2cb
PG
6782fi
6783fi
6784ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6785if test -n "$ac_ct_LIPO"; then
5213506e
RW
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6787$as_echo "$ac_ct_LIPO" >&6; }
80c6c2cb 6788else
5213506e
RW
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
80c6c2cb
PG
6791fi
6792
5213506e
RW
6793 if test "x$ac_ct_LIPO" = x; then
6794 LIPO=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802 LIPO=$ac_ct_LIPO
6803 fi
80c6c2cb
PG
6804else
6805 LIPO="$ac_cv_prog_LIPO"
6806fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if test "${ac_cv_prog_OTOOL+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6815else
6816 if test -n "$OTOOL"; then
6817 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
5213506e
RW
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6826 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6828 break 2
6829 fi
6830done
5213506e
RW
6831 done
6832IFS=$as_save_IFS
80c6c2cb
PG
6833
6834fi
6835fi
6836OTOOL=$ac_cv_prog_OTOOL
6837if test -n "$OTOOL"; then
5213506e
RW
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6839$as_echo "$OTOOL" >&6; }
80c6c2cb 6840else
5213506e
RW
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
80c6c2cb
PG
6843fi
6844
5213506e 6845
80c6c2cb
PG
6846fi
6847if test -z "$ac_cv_prog_OTOOL"; then
6848 ac_ct_OTOOL=$OTOOL
6849 # Extract the first word of "otool", so it can be a program name with args.
6850set dummy otool; ac_word=$2
5213506e
RW
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6855else
6856 if test -n "$ac_ct_OTOOL"; then
6857 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
5213506e
RW
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6866 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6868 break 2
6869 fi
6870done
5213506e
RW
6871 done
6872IFS=$as_save_IFS
80c6c2cb 6873
80c6c2cb
PG
6874fi
6875fi
6876ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6877if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6879$as_echo "$ac_ct_OTOOL" >&6; }
80c6c2cb 6880else
5213506e
RW
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
80c6c2cb
PG
6883fi
6884
5213506e
RW
6885 if test "x$ac_ct_OTOOL" = x; then
6886 OTOOL=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894 OTOOL=$ac_ct_OTOOL
6895 fi
80c6c2cb
PG
6896else
6897 OTOOL="$ac_cv_prog_OTOOL"
6898fi
6899
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6902set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6907else
6908 if test -n "$OTOOL64"; then
6909 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
5213506e
RW
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6918 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6920 break 2
6921 fi
6922done
5213506e
RW
6923 done
6924IFS=$as_save_IFS
80c6c2cb
PG
6925
6926fi
6927fi
6928OTOOL64=$ac_cv_prog_OTOOL64
6929if test -n "$OTOOL64"; then
5213506e
RW
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6931$as_echo "$OTOOL64" >&6; }
80c6c2cb 6932else
5213506e
RW
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
80c6c2cb
PG
6935fi
6936
5213506e 6937
80c6c2cb
PG
6938fi
6939if test -z "$ac_cv_prog_OTOOL64"; then
6940 ac_ct_OTOOL64=$OTOOL64
6941 # Extract the first word of "otool64", so it can be a program name with args.
6942set dummy otool64; ac_word=$2
5213506e
RW
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944$as_echo_n "checking for $ac_word... " >&6; }
6945if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6947else
6948 if test -n "$ac_ct_OTOOL64"; then
6949 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6950else
6951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952for as_dir in $PATH
6953do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
5213506e
RW
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6958 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6960 break 2
6961 fi
6962done
5213506e
RW
6963 done
6964IFS=$as_save_IFS
80c6c2cb 6965
80c6c2cb
PG
6966fi
6967fi
6968ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6969if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6971$as_echo "$ac_ct_OTOOL64" >&6; }
80c6c2cb 6972else
5213506e
RW
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
80c6c2cb
PG
6975fi
6976
5213506e
RW
6977 if test "x$ac_ct_OTOOL64" = x; then
6978 OTOOL64=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981yes:)
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984ac_tool_warned=yes ;;
6985esac
6986 OTOOL64=$ac_ct_OTOOL64
6987 fi
80c6c2cb
PG
6988else
6989 OTOOL64="$ac_cv_prog_OTOOL64"
6990fi
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
5213506e
RW
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7019$as_echo_n "checking for -single_module linker flag... " >&6; }
7020if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7022else
7023 lt_cv_apple_cc_single_mod=no
7024 if test -z "${LT_MULTI_MODULE}"; then
7025 # By default we will add the -single_module flag. You can override
7026 # by either setting the environment variable LT_MULTI_MODULE
7027 # non-empty at configure time, or by adding -multi_module to the
7028 # link flags.
7029 rm -rf libconftest.dylib*
7030 echo "int foo(void){return 1;}" > conftest.c
7031 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7032-dynamiclib -Wl,-single_module conftest.c" >&5
7033 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7034 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7035 _lt_result=$?
7036 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7037 lt_cv_apple_cc_single_mod=yes
7038 else
7039 cat conftest.err >&5
7040 fi
7041 rm -rf libconftest.dylib*
7042 rm -f conftest.*
7043 fi
7044fi
5213506e
RW
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7046$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7048$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7049if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7051else
7052 lt_cv_ld_exported_symbols_list=no
7053 save_LDFLAGS=$LDFLAGS
7054 echo "_main" > conftest.sym
7055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7057/* end confdefs.h. */
7058
7059int
7060main ()
7061{
7062
7063 ;
7064 return 0;
7065}
7066_ACEOF
5213506e 7067if ac_fn_c_try_link "$LINENO"; then :
80c6c2cb
PG
7068 lt_cv_ld_exported_symbols_list=yes
7069else
5213506e 7070 lt_cv_ld_exported_symbols_list=no
80c6c2cb 7071fi
5213506e
RW
7072rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
80c6c2cb
PG
7074 LDFLAGS="$save_LDFLAGS"
7075
7076fi
5213506e
RW
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7078$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7080$as_echo_n "checking for -force_load linker flag... " >&6; }
7081if test "${lt_cv_ld_force_load+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083else
7084 lt_cv_ld_force_load=no
7085 cat > conftest.c << _LT_EOF
7086int forced_loaded() { return 2;}
7087_LT_EOF
7088 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7089 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7090 echo "$AR cru libconftest.a conftest.o" >&5
7091 $AR cru libconftest.a conftest.o 2>&5
7092 cat > conftest.c << _LT_EOF
7093int main() { return 0;}
7094_LT_EOF
7095 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7096 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7097 _lt_result=$?
7098 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7099 lt_cv_ld_force_load=yes
7100 else
7101 cat conftest.err >&5
7102 fi
7103 rm -f conftest.err libconftest.a conftest conftest.c
7104 rm -rf conftest.dSYM
7105
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7108$as_echo "$lt_cv_ld_force_load" >&6; }
80c6c2cb
PG
7109 case $host_os in
7110 rhapsody* | darwin1.[012])
7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7112 darwin1.*)
7113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7114 darwin*) # darwin 5.x on
7115 # if running on 10.5 or later, the deployment target defaults
7116 # to the OS version, if on x86, and 10.4, the deployment
7117 # target defaults to 10.4. Don't you love it?
7118 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7119 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7121 10.[012]*)
7122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7123 10.*)
7124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7125 esac
7126 ;;
7127 esac
7128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7129 _lt_dar_single_mod='$single_module'
7130 fi
7131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7133 else
7134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7135 fi
43e02a8a 7136 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
80c6c2cb
PG
7137 _lt_dsymutil='~$DSYMUTIL $lib || :'
7138 else
7139 _lt_dsymutil=
7140 fi
7141 ;;
7142 esac
7143
7144ac_ext=c
7145ac_cpp='$CPP $CPPFLAGS'
7146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7150$as_echo_n "checking how to run the C preprocessor... " >&6; }
80c6c2cb
PG
7151# On Suns, sometimes $CPP names a directory.
7152if test -n "$CPP" && test -d "$CPP"; then
7153 CPP=
7154fi
7155if test -z "$CPP"; then
5213506e
RW
7156 if test "${ac_cv_prog_CPP+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7158else
7159 # Double quotes because CPP needs to be expanded
7160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7161 do
7162 ac_preproc_ok=false
7163for ac_c_preproc_warn_flag in '' yes
7164do
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7172/* end confdefs.h. */
7173#ifdef __STDC__
7174# include <limits.h>
7175#else
7176# include <assert.h>
7177#endif
7178 Syntax error
7179_ACEOF
5213506e 7180if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7181
5213506e 7182else
1cf3d07d
SE
7183 # Broken: fails on valid input.
7184continue
7185fi
7186rm -f conftest.err conftest.$ac_ext
7187
5213506e 7188 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7189 # can be detected and how.
5213506e 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7191/* end confdefs.h. */
7192#include <ac_nonexistent.h>
7193_ACEOF
5213506e 7194if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7195 # Broken: success on invalid input.
7196continue
7197else
1cf3d07d
SE
7198 # Passes both tests.
7199ac_preproc_ok=:
7200break
7201fi
7202rm -f conftest.err conftest.$ac_ext
7203
7204done
7205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206rm -f conftest.err conftest.$ac_ext
5213506e 7207if $ac_preproc_ok; then :
1cf3d07d
SE
7208 break
7209fi
7210
7211 done
7212 ac_cv_prog_CPP=$CPP
7213
7214fi
7215 CPP=$ac_cv_prog_CPP
7216else
7217 ac_cv_prog_CPP=$CPP
7218fi
5213506e
RW
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7220$as_echo "$CPP" >&6; }
1cf3d07d
SE
7221ac_preproc_ok=false
7222for ac_c_preproc_warn_flag in '' yes
7223do
7224 # Use a header file that comes with gcc, so configuring glibc
7225 # with a fresh cross-compiler works.
7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 # <limits.h> exists even on freestanding compilers.
7228 # On the NeXT, cc -E runs the code through the compiler's parser,
7229 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7231/* end confdefs.h. */
7232#ifdef __STDC__
7233# include <limits.h>
7234#else
7235# include <assert.h>
7236#endif
7237 Syntax error
7238_ACEOF
5213506e 7239if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7240
5213506e 7241else
1cf3d07d
SE
7242 # Broken: fails on valid input.
7243continue
7244fi
7245rm -f conftest.err conftest.$ac_ext
7246
5213506e 7247 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7248 # can be detected and how.
5213506e 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7250/* end confdefs.h. */
7251#include <ac_nonexistent.h>
7252_ACEOF
5213506e 7253if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7254 # Broken: success on invalid input.
7255continue
7256else
1cf3d07d
SE
7257 # Passes both tests.
7258ac_preproc_ok=:
7259break
7260fi
7261rm -f conftest.err conftest.$ac_ext
7262
7263done
7264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265rm -f conftest.err conftest.$ac_ext
5213506e
RW
7266if $ac_preproc_ok; then :
7267
1cf3d07d 7268else
5213506e
RW
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271as_fn_error "C preprocessor \"$CPP\" fails sanity check
7272See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7273fi
7274
7275ac_ext=c
7276ac_cpp='$CPP $CPPFLAGS'
7277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279ac_compiler_gnu=$ac_cv_c_compiler_gnu
7280
7281
5213506e
RW
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7283$as_echo_n "checking for ANSI C header files... " >&6; }
7284if test "${ac_cv_header_stdc+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
1cf3d07d 7286else
5213506e 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7288/* end confdefs.h. */
7289#include <stdlib.h>
7290#include <stdarg.h>
7291#include <string.h>
7292#include <float.h>
7293
7294int
7295main ()
7296{
7297
7298 ;
7299 return 0;
7300}
7301_ACEOF
5213506e 7302if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7303 ac_cv_header_stdc=yes
7304else
5213506e 7305 ac_cv_header_stdc=no
1cf3d07d 7306fi
5213506e 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7308
7309if test $ac_cv_header_stdc = yes; then
7310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7312/* end confdefs.h. */
7313#include <string.h>
7314
7315_ACEOF
7316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7317 $EGREP "memchr" >/dev/null 2>&1; then :
7318
1cf3d07d
SE
7319else
7320 ac_cv_header_stdc=no
7321fi
7322rm -f conftest*
7323
7324fi
7325
7326if test $ac_cv_header_stdc = yes; then
7327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7329/* end confdefs.h. */
7330#include <stdlib.h>
7331
7332_ACEOF
7333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7334 $EGREP "free" >/dev/null 2>&1; then :
7335
1cf3d07d
SE
7336else
7337 ac_cv_header_stdc=no
7338fi
7339rm -f conftest*
7340
7341fi
7342
7343if test $ac_cv_header_stdc = yes; then
7344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7345 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7346 :
7347else
5213506e 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7349/* end confdefs.h. */
7350#include <ctype.h>
5213506e 7351#include <stdlib.h>
1cf3d07d
SE
7352#if ((' ' & 0x0FF) == 0x020)
7353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7355#else
7356# define ISLOWER(c) \
7357 (('a' <= (c) && (c) <= 'i') \
7358 || ('j' <= (c) && (c) <= 'r') \
7359 || ('s' <= (c) && (c) <= 'z'))
7360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7361#endif
7362
7363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7364int
7365main ()
7366{
7367 int i;
7368 for (i = 0; i < 256; i++)
7369 if (XOR (islower (i), ISLOWER (i))
7370 || toupper (i) != TOUPPER (i))
5213506e
RW
7371 return 2;
7372 return 0;
1cf3d07d
SE
7373}
7374_ACEOF
5213506e 7375if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7376
5213506e
RW
7377else
7378 ac_cv_header_stdc=no
1cf3d07d 7379fi
5213506e
RW
7380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7381 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7382fi
5213506e 7383
1cf3d07d
SE
7384fi
7385fi
5213506e
RW
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7387$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7388if test $ac_cv_header_stdc = yes; then
7389
5213506e 7390$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7391
7392fi
7393
7394# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7395for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7396 inttypes.h stdint.h unistd.h
5213506e
RW
7397do :
7398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7399ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7400"
7401eval as_val=\$$as_ac_Header
7402 if test "x$as_val" = x""yes; then :
80c6c2cb 7403 cat >>confdefs.h <<_ACEOF
5213506e 7404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
80c6c2cb
PG
7405_ACEOF
7406
7407fi
7408
7409done
7410
7411
80c6c2cb 7412for ac_header in dlfcn.h
5213506e
RW
7413do :
7414 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7415"
7416if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
80c6c2cb 7417 cat >>confdefs.h <<_ACEOF
5213506e 7418#define HAVE_DLFCN_H 1
80c6c2cb
PG
7419_ACEOF
7420
7421fi
7422
7423done
7424
7425
7426
43e02a8a
RW
7427
7428
80c6c2cb
PG
7429# Set options
7430
7431
7432
7433 enable_dlopen=no
7434
7435
7436 enable_win32_dll=no
7437
7438
5213506e
RW
7439 # Check whether --enable-shared was given.
7440if test "${enable_shared+set}" = set; then :
7441 enableval=$enable_shared; p=${PACKAGE-default}
80c6c2cb
PG
7442 case $enableval in
7443 yes) enable_shared=yes ;;
7444 no) enable_shared=no ;;
7445 *)
7446 enable_shared=no
7447 # Look at the argument we got. We use all the common list separators.
7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449 for pkg in $enableval; do
7450 IFS="$lt_save_ifs"
7451 if test "X$pkg" = "X$p"; then
7452 enable_shared=yes
7453 fi
7454 done
7455 IFS="$lt_save_ifs"
7456 ;;
7457 esac
7458else
7459 enable_shared=yes
5213506e
RW
7460fi
7461
80c6c2cb
PG
7462
7463
7464
7465
7466
7467
7468
7469
5213506e
RW
7470 # Check whether --enable-static was given.
7471if test "${enable_static+set}" = set; then :
7472 enableval=$enable_static; p=${PACKAGE-default}
80c6c2cb
PG
7473 case $enableval in
7474 yes) enable_static=yes ;;
7475 no) enable_static=no ;;
7476 *)
7477 enable_static=no
7478 # Look at the argument we got. We use all the common list separators.
7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480 for pkg in $enableval; do
7481 IFS="$lt_save_ifs"
7482 if test "X$pkg" = "X$p"; then
7483 enable_static=yes
7484 fi
7485 done
7486 IFS="$lt_save_ifs"
7487 ;;
7488 esac
7489else
7490 enable_static=yes
5213506e
RW
7491fi
7492
80c6c2cb
PG
7493
7494
7495
7496
7497
7498
7499
7500
7501
5213506e
RW
7502# Check whether --with-pic was given.
7503if test "${with_pic+set}" = set; then :
7504 withval=$with_pic; pic_mode="$withval"
80c6c2cb
PG
7505else
7506 pic_mode=default
5213506e
RW
7507fi
7508
1cf3d07d 7509
80c6c2cb 7510test -z "$pic_mode" && pic_mode=default
1cf3d07d 7511
1cf3d07d 7512
1cf3d07d
SE
7513
7514
7515
1cf3d07d 7516
80c6c2cb 7517
5213506e
RW
7518 # Check whether --enable-fast-install was given.
7519if test "${enable_fast_install+set}" = set; then :
7520 enableval=$enable_fast_install; p=${PACKAGE-default}
80c6c2cb
PG
7521 case $enableval in
7522 yes) enable_fast_install=yes ;;
7523 no) enable_fast_install=no ;;
7524 *)
7525 enable_fast_install=no
7526 # Look at the argument we got. We use all the common list separators.
7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528 for pkg in $enableval; do
7529 IFS="$lt_save_ifs"
7530 if test "X$pkg" = "X$p"; then
7531 enable_fast_install=yes
7532 fi
7533 done
7534 IFS="$lt_save_ifs"
7535 ;;
7536 esac
1cf3d07d 7537else
80c6c2cb 7538 enable_fast_install=yes
5213506e
RW
7539fi
7540
80c6c2cb
PG
7541
7542
7543
7544
1cf3d07d 7545
1cf3d07d 7546
1cf3d07d 7547
1cf3d07d
SE
7548
7549
7550
7551# This can be used to rebuild libtool when needed
7552LIBTOOL_DEPS="$ltmain"
7553
7554# Always use our own libtool.
7555LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
43e02a8a 7579
1cf3d07d
SE
7580
7581
7582test -z "$LN_S" && LN_S="ln -s"
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597if test -n "${ZSH_VERSION+set}" ; then
7598 setopt NO_GLOB_SUBST
7599fi
7600
5213506e
RW
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7602$as_echo_n "checking for objdir... " >&6; }
7603if test "${lt_cv_objdir+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7605else
7606 rm -f .libs 2>/dev/null
7607mkdir .libs 2>/dev/null
7608if test -d .libs; then
7609 lt_cv_objdir=.libs
7610else
7611 # MS-DOS does not allow filenames that begin with a dot.
7612 lt_cv_objdir=_libs
7613fi
7614rmdir .libs 2>/dev/null
7615fi
5213506e
RW
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7617$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7618objdir=$lt_cv_objdir
7619
7620
7621
7622
7623
7624cat >>confdefs.h <<_ACEOF
7625#define LT_OBJDIR "$lt_cv_objdir/"
7626_ACEOF
7627
7628
7629
7630
1cf3d07d
SE
7631case $host_os in
7632aix3*)
7633 # AIX sometimes has problems with the GCC collect2 program. For some
7634 # reason, if we set the COLLECT_NAMES environment variable, the problems
7635 # vanish in a puff of smoke.
7636 if test "X${COLLECT_NAMES+set}" != Xset; then
7637 COLLECT_NAMES=
7638 export COLLECT_NAMES
7639 fi
7640 ;;
7641esac
7642
1cf3d07d
SE
7643# Global variables:
7644ofile=libtool
7645can_build_shared=yes
7646
7647# All known linkers require a `.a' archive for static linking (except MSVC,
7648# which needs '.lib').
7649libext=a
7650
7651with_gnu_ld="$lt_cv_prog_gnu_ld"
7652
7653old_CC="$CC"
7654old_CFLAGS="$CFLAGS"
7655
7656# Set sane defaults for various variables
7657test -z "$CC" && CC=cc
7658test -z "$LTCC" && LTCC=$CC
7659test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7660test -z "$LD" && LD=ld
7661test -z "$ac_objext" && ac_objext=o
7662
7663for cc_temp in $compiler""; do
7664 case $cc_temp in
7665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667 \-*) ;;
7668 *) break;;
7669 esac
7670done
43e02a8a 7671cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7672
7673
7674# Only perform the check for file, if the check method requires it
7675test -z "$MAGIC_CMD" && MAGIC_CMD=file
7676case $deplibs_check_method in
7677file_magic*)
7678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7680$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7681if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7683else
7684 case $MAGIC_CMD in
7685[\\/*] | ?:[\\/]*)
7686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7687 ;;
7688*)
7689 lt_save_MAGIC_CMD="$MAGIC_CMD"
7690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692 for ac_dir in $ac_dummy; do
7693 IFS="$lt_save_ifs"
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/${ac_tool_prefix}file; then
7696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7697 if test -n "$file_magic_test_file"; then
7698 case $deplibs_check_method in
7699 "file_magic "*)
7700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703 $EGREP "$file_magic_regex" > /dev/null; then
7704 :
7705 else
7706 cat <<_LT_EOF 1>&2
7707
7708*** Warning: the command libtool uses to detect shared libraries,
7709*** $file_magic_cmd, produces output that libtool cannot recognize.
7710*** The result is that libtool may fail to recognize shared libraries
7711*** as such. This will affect the creation of libtool libraries that
7712*** depend on shared libraries, but programs linked with such libtool
7713*** libraries will work regardless of this problem. Nevertheless, you
7714*** may want to report the problem to your system manager and/or to
7715*** bug-libtool@gnu.org
7716
7717_LT_EOF
7718 fi ;;
7719 esac
7720 fi
7721 break
7722 fi
7723 done
7724 IFS="$lt_save_ifs"
7725 MAGIC_CMD="$lt_save_MAGIC_CMD"
7726 ;;
7727esac
7728fi
7729
7730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731if test -n "$MAGIC_CMD"; then
5213506e
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7733$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7734else
5213506e
RW
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
1cf3d07d
SE
7737fi
7738
7739
7740
7741
7742
7743if test -z "$lt_cv_path_MAGIC_CMD"; then
7744 if test -n "$ac_tool_prefix"; then
5213506e
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7746$as_echo_n "checking for file... " >&6; }
7747if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7749else
7750 case $MAGIC_CMD in
7751[\\/*] | ?:[\\/]*)
7752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7753 ;;
7754*)
7755 lt_save_MAGIC_CMD="$MAGIC_CMD"
7756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7758 for ac_dir in $ac_dummy; do
7759 IFS="$lt_save_ifs"
7760 test -z "$ac_dir" && ac_dir=.
7761 if test -f $ac_dir/file; then
7762 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7763 if test -n "$file_magic_test_file"; then
7764 case $deplibs_check_method in
7765 "file_magic "*)
7766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7769 $EGREP "$file_magic_regex" > /dev/null; then
7770 :
7771 else
7772 cat <<_LT_EOF 1>&2
7773
7774*** Warning: the command libtool uses to detect shared libraries,
7775*** $file_magic_cmd, produces output that libtool cannot recognize.
7776*** The result is that libtool may fail to recognize shared libraries
7777*** as such. This will affect the creation of libtool libraries that
7778*** depend on shared libraries, but programs linked with such libtool
7779*** libraries will work regardless of this problem. Nevertheless, you
7780*** may want to report the problem to your system manager and/or to
7781*** bug-libtool@gnu.org
7782
7783_LT_EOF
7784 fi ;;
7785 esac
7786 fi
7787 break
7788 fi
7789 done
7790 IFS="$lt_save_ifs"
7791 MAGIC_CMD="$lt_save_MAGIC_CMD"
7792 ;;
7793esac
7794fi
7795
7796MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797if test -n "$MAGIC_CMD"; then
5213506e
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7799$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7800else
5213506e
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
1cf3d07d
SE
7803fi
7804
7805
7806 else
7807 MAGIC_CMD=:
7808 fi
7809fi
7810
7811 fi
7812 ;;
7813esac
7814
7815# Use C for the default configuration in the libtool script
7816
7817lt_save_CC="$CC"
7818ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824
7825# Source file extension for C test sources.
7826ac_ext=c
7827
7828# Object file extension for compiled C test sources.
7829objext=o
7830objext=$objext
7831
7832# Code to be used in simple compile tests
7833lt_simple_compile_test_code="int some_variable = 0;"
7834
7835# Code to be used in simple link tests
7836lt_simple_link_test_code='int main(){return(0);}'
7837
7838
7839
7840
7841
7842
7843
7844# If no C compiler was specified, use CC.
7845LTCC=${LTCC-"$CC"}
7846
7847# If no C compiler flags were specified, use CFLAGS.
7848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849
7850# Allow CC to be a program name with arguments.
7851compiler=$CC
7852
7853# Save the default compiler, since it gets overwritten when the other
7854# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7855compiler_DEFAULT=$CC
7856
7857# save warnings/boilerplate of simple test code
7858ac_outfile=conftest.$ac_objext
7859echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7860eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861_lt_compiler_boilerplate=`cat conftest.err`
7862$RM conftest*
7863
7864ac_outfile=conftest.$ac_objext
7865echo "$lt_simple_link_test_code" >conftest.$ac_ext
7866eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 7868$RM -r conftest*
1cf3d07d
SE
7869
7870
7871## CAVEAT EMPTOR:
7872## There is no encapsulation within the following macros, do not change
7873## the running order or otherwise move them around unless you know exactly
7874## what you are doing...
7875if test -n "$compiler"; then
7876
7877lt_prog_compiler_no_builtin_flag=
7878
7879if test "$GCC" = yes; then
43e02a8a
RW
7880 case $cc_basename in
7881 nvcc*)
7882 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7883 *)
7884 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7885 esac
1cf3d07d 7886
5213506e
RW
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7888$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7889if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7891else
7892 lt_cv_prog_compiler_rtti_exceptions=no
7893 ac_outfile=conftest.$ac_objext
7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7895 lt_compiler_flag="-fno-rtti -fno-exceptions"
7896 # Insert the option either (1) after the last *FLAGS variable, or
7897 # (2) before a word containing "conftest.", or (3) at the end.
7898 # Note that $ac_compile itself does not contain backslashes and begins
7899 # with a dollar sign (not a hyphen), so the echo should work correctly.
7900 # The option is referenced via a variable to avoid confusing sed.
7901 lt_compile=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7906 (eval "$lt_compile" 2>conftest.err)
7907 ac_status=$?
7908 cat conftest.err >&5
43e02a8a 7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7910 if (exit $ac_status) && test -s "$ac_outfile"; then
7911 # The compiler can only warn and ignore the option if not recognized
7912 # So say no if there are warnings other than the usual output.
43e02a8a 7913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7916 lt_cv_prog_compiler_rtti_exceptions=yes
7917 fi
7918 fi
7919 $RM conftest*
7920
7921fi
5213506e
RW
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7923$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7924
7925if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7926 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7927else
7928 :
7929fi
7930
7931fi
7932
7933
7934
7935
7936
7937
7938 lt_prog_compiler_wl=
7939lt_prog_compiler_pic=
7940lt_prog_compiler_static=
7941
5213506e
RW
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7944
7945 if test "$GCC" = yes; then
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_static='-static'
7948
7949 case $host_os in
7950 aix*)
7951 # All AIX code is PIC.
7952 if test "$host_cpu" = ia64; then
7953 # AIX 5 now supports IA64 processor
7954 lt_prog_compiler_static='-Bstatic'
7955 fi
cbbd536a 7956 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
7957 ;;
7958
7959 amigaos*)
80c6c2cb
PG
7960 case $host_cpu in
7961 powerpc)
7962 # see comment about AmigaOS4 .so support
7963 lt_prog_compiler_pic='-fPIC'
7964 ;;
7965 m68k)
7966 # FIXME: we need at least 68020 code to build shared libraries, but
7967 # adding the `-m68020' flag to GCC prevents building anything better,
7968 # like `-m68040'.
7969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7970 ;;
7971 esac
1cf3d07d
SE
7972 ;;
7973
7974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7975 # PIC is the default for these OSes.
7976 ;;
7977
80c6c2cb 7978 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7982 # (--disable-auto-import) libraries
7983 lt_prog_compiler_pic='-DDLL_EXPORT'
7984 ;;
7985
7986 darwin* | rhapsody*)
7987 # PIC is the default on this platform
7988 # Common symbols not allowed in MH_DYLIB files
7989 lt_prog_compiler_pic='-fno-common'
7990 ;;
7991
43e02a8a
RW
7992 haiku*)
7993 # PIC is the default for Haiku.
7994 # The "-static" flag exists, but is broken.
7995 lt_prog_compiler_static=
7996 ;;
7997
1cf3d07d 7998 hpux*)
80c6c2cb
PG
7999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8001 # sets the default TLS model and affects inlining.
1cf3d07d 8002 case $host_cpu in
80c6c2cb 8003 hppa*64*)
1cf3d07d
SE
8004 # +Z the default
8005 ;;
8006 *)
8007 lt_prog_compiler_pic='-fPIC'
8008 ;;
8009 esac
8010 ;;
8011
8012 interix[3-9]*)
8013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8014 # Instead, we relocate shared libraries at runtime.
8015 ;;
8016
8017 msdosdjgpp*)
8018 # Just because we use GCC doesn't mean we suddenly get shared libraries
8019 # on systems that don't support them.
8020 lt_prog_compiler_can_build_shared=no
8021 enable_shared=no
8022 ;;
8023
8024 *nto* | *qnx*)
8025 # QNX uses GNU C++, but need to define -shared option too, otherwise
8026 # it will coredump.
8027 lt_prog_compiler_pic='-fPIC -shared'
8028 ;;
8029
8030 sysv4*MP*)
8031 if test -d /usr/nec; then
8032 lt_prog_compiler_pic=-Kconform_pic
8033 fi
8034 ;;
8035
8036 *)
8037 lt_prog_compiler_pic='-fPIC'
8038 ;;
8039 esac
43e02a8a
RW
8040
8041 case $cc_basename in
8042 nvcc*) # Cuda Compiler Driver 2.2
8043 lt_prog_compiler_wl='-Xlinker '
8044 lt_prog_compiler_pic='-Xcompiler -fPIC'
8045 ;;
8046 esac
1cf3d07d
SE
8047 else
8048 # PORTME Check for flag to pass linker flags through the system compiler.
8049 case $host_os in
8050 aix*)
8051 lt_prog_compiler_wl='-Wl,'
8052 if test "$host_cpu" = ia64; then
8053 # AIX 5 now supports IA64 processor
8054 lt_prog_compiler_static='-Bstatic'
8055 else
8056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8057 fi
8058 ;;
1cf3d07d 8059
80c6c2cb 8060 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8061 # This hack is so that the source file can tell whether it is being
8062 # built for inclusion in a dll (and should export symbols for example).
8063 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 ;;
8065
8066 hpux9* | hpux10* | hpux11*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8069 # not for PA HP-UX.
8070 case $host_cpu in
8071 hppa*64*|ia64*)
8072 # +Z the default
8073 ;;
8074 *)
8075 lt_prog_compiler_pic='+Z'
8076 ;;
8077 esac
8078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8079 lt_prog_compiler_static='${wl}-a ${wl}archive'
8080 ;;
8081
8082 irix5* | irix6* | nonstopux*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # PIC (with -KPIC) is the default.
8085 lt_prog_compiler_static='-non_shared'
8086 ;;
8087
7a9d3fe8 8088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 8089 case $cc_basename in
80c6c2cb
PG
8090 # old Intel for x86_64 which still supported -KPIC.
8091 ecc*)
1cf3d07d
SE
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-static'
8095 ;;
80c6c2cb
PG
8096 # icc used to be incompatible with GCC.
8097 # ICC 10 doesn't accept -KPIC any more.
8098 icc* | ifort*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-fPIC'
8101 lt_prog_compiler_static='-static'
8102 ;;
8103 # Lahey Fortran 8.1.
8104 lf95*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='--shared'
8107 lt_prog_compiler_static='--static'
8108 ;;
43e02a8a 8109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
8110 # Portland Group compilers (*not* the Pentium gcc compiler,
8111 # which looks to be a dead project)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-fpic'
8114 lt_prog_compiler_static='-Bstatic'
8115 ;;
8116 ccc*)
8117 lt_prog_compiler_wl='-Wl,'
8118 # All Alpha code is PIC.
8119 lt_prog_compiler_static='-non_shared'
8120 ;;
43e02a8a
RW
8121 xl* | bgxl* | bgf* | mpixl*)
8122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
80c6c2cb
PG
8123 lt_prog_compiler_wl='-Wl,'
8124 lt_prog_compiler_pic='-qpic'
8125 lt_prog_compiler_static='-qstaticlink'
8126 ;;
1cf3d07d
SE
8127 *)
8128 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
8129 *Sun\ F* | *Sun*Fortran*)
8130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
43e02a8a 8133 lt_prog_compiler_wl=''
1cf3d07d 8134 ;;
43e02a8a
RW
8135 *Sun\ C*)
8136 # Sun C 5.9
1cf3d07d
SE
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
43e02a8a 8139 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8140 ;;
8141 esac
8142 ;;
8143 esac
8144 ;;
8145
8146 newsos6)
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8149 ;;
8150
8151 *nto* | *qnx*)
8152 # QNX uses GNU C++, but need to define -shared option too, otherwise
8153 # it will coredump.
8154 lt_prog_compiler_pic='-fPIC -shared'
8155 ;;
8156
8157 osf3* | osf4* | osf5*)
8158 lt_prog_compiler_wl='-Wl,'
8159 # All OSF/1 code is PIC.
8160 lt_prog_compiler_static='-non_shared'
8161 ;;
8162
8163 rdos*)
8164 lt_prog_compiler_static='-non_shared'
8165 ;;
8166
8167 solaris*)
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 case $cc_basename in
8171 f77* | f90* | f95*)
8172 lt_prog_compiler_wl='-Qoption ld ';;
8173 *)
8174 lt_prog_compiler_wl='-Wl,';;
8175 esac
8176 ;;
8177
8178 sunos4*)
8179 lt_prog_compiler_wl='-Qoption ld '
8180 lt_prog_compiler_pic='-PIC'
8181 lt_prog_compiler_static='-Bstatic'
8182 ;;
8183
8184 sysv4 | sysv4.2uw2* | sysv4.3*)
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-KPIC'
8187 lt_prog_compiler_static='-Bstatic'
8188 ;;
8189
8190 sysv4*MP*)
8191 if test -d /usr/nec ;then
8192 lt_prog_compiler_pic='-Kconform_pic'
8193 lt_prog_compiler_static='-Bstatic'
8194 fi
8195 ;;
8196
8197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8198 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8201 ;;
8202
8203 unicos*)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_can_build_shared=no
8206 ;;
8207
8208 uts4*)
8209 lt_prog_compiler_pic='-pic'
8210 lt_prog_compiler_static='-Bstatic'
8211 ;;
8212
8213 *)
8214 lt_prog_compiler_can_build_shared=no
8215 ;;
8216 esac
8217 fi
8218
8219case $host_os in
8220 # For platforms which do not support PIC, -DPIC is meaningless:
8221 *djgpp*)
8222 lt_prog_compiler_pic=
8223 ;;
8224 *)
8225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8226 ;;
8227esac
5213506e
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8229$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8230
8231
8232
8233
8234
8235
8236#
8237# Check to make sure the PIC flag actually works.
8238#
8239if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8241$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8242if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
1cf3d07d 8244else
80c6c2cb 8245 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8259 (eval "$lt_compile" 2>conftest.err)
8260 ac_status=$?
8261 cat conftest.err >&5
43e02a8a 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
43e02a8a 8266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8269 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8270 fi
8271 fi
8272 $RM conftest*
8273
8274fi
5213506e
RW
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8276$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8277
80c6c2cb 8278if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8279 case $lt_prog_compiler_pic in
8280 "" | " "*) ;;
8281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8282 esac
8283else
8284 lt_prog_compiler_pic=
8285 lt_prog_compiler_can_build_shared=no
8286fi
8287
8288fi
8289
8290
8291
8292
8293
8294
8295#
8296# Check to make sure the static flag actually works.
8297#
8298wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8300$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8301if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
1cf3d07d 8303else
80c6c2cb 8304 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8305 save_LDFLAGS="$LDFLAGS"
8306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8309 # The linker can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 if test -s conftest.err; then
8312 # Append any errors to the config.log.
8313 cat conftest.err 1>&5
43e02a8a 8314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8317 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8318 fi
8319 else
80c6c2cb 8320 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8321 fi
8322 fi
80c6c2cb 8323 $RM -r conftest*
1cf3d07d
SE
8324 LDFLAGS="$save_LDFLAGS"
8325
8326fi
5213506e
RW
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8328$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8329
80c6c2cb 8330if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8331 :
8332else
8333 lt_prog_compiler_static=
8334fi
8335
8336
8337
8338
8339
8340
8341
5213506e
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8343$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8344if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8346else
8347 lt_cv_prog_compiler_c_o=no
8348 $RM -r conftest 2>/dev/null
8349 mkdir conftest
8350 cd conftest
8351 mkdir out
8352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353
8354 lt_compiler_flag="-o out/conftest2.$ac_objext"
8355 # Insert the option either (1) after the last *FLAGS variable, or
8356 # (2) before a word containing "conftest.", or (3) at the end.
8357 # Note that $ac_compile itself does not contain backslashes and begins
8358 # with a dollar sign (not a hyphen), so the echo should work correctly.
8359 lt_compile=`echo "$ac_compile" | $SED \
8360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8364 (eval "$lt_compile" 2>out/conftest.err)
8365 ac_status=$?
8366 cat out/conftest.err >&5
43e02a8a 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8369 then
8370 # The compiler can only warn and ignore the option if not recognized
8371 # So say no if there are warnings
43e02a8a 8372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8375 lt_cv_prog_compiler_c_o=yes
8376 fi
8377 fi
8378 chmod u+w . 2>&5
8379 $RM conftest*
8380 # SGI C++ compiler will create directory out/ii_files/ for
8381 # template instantiation
8382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8383 $RM out/* && rmdir out
8384 cd ..
8385 $RM -r conftest
8386 $RM conftest*
8387
8388fi
5213506e
RW
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8390$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8391
8392
8393
8394
8395
8396
5213506e
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8401else
8402 lt_cv_prog_compiler_c_o=no
8403 $RM -r conftest 2>/dev/null
8404 mkdir conftest
8405 cd conftest
8406 mkdir out
8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408
8409 lt_compiler_flag="-o out/conftest2.$ac_objext"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 lt_compile=`echo "$ac_compile" | $SED \
8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8419 (eval "$lt_compile" 2>out/conftest.err)
8420 ac_status=$?
8421 cat out/conftest.err >&5
43e02a8a 8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424 then
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings
43e02a8a 8427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_c_o=yes
8431 fi
8432 fi
8433 chmod u+w . 2>&5
8434 $RM conftest*
8435 # SGI C++ compiler will create directory out/ii_files/ for
8436 # template instantiation
8437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438 $RM out/* && rmdir out
8439 cd ..
8440 $RM -r conftest
8441 $RM conftest*
8442
8443fi
5213506e
RW
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8446
8447
8448
8449
8450hard_links="nottested"
8451if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8452 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8454$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8455 hard_links=yes
8456 $RM conftest*
8457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458 touch conftest.a
8459 ln conftest.a conftest.b 2>&5 || hard_links=no
8460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8462$as_echo "$hard_links" >&6; }
1cf3d07d 8463 if test "$hard_links" = no; then
5213506e
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8465$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8466 need_locks=warn
8467 fi
8468else
8469 need_locks=no
8470fi
8471
8472
8473
8474
8475
8476
5213506e
RW
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8478$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8479
8480 runpath_var=
8481 allow_undefined_flag=
8482 always_export_symbols=no
8483 archive_cmds=
8484 archive_expsym_cmds=
8485 compiler_needs_object=no
8486 enable_shared_with_static_runtimes=no
8487 export_dynamic_flag_spec=
8488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8489 hardcode_automatic=no
8490 hardcode_direct=no
8491 hardcode_direct_absolute=no
8492 hardcode_libdir_flag_spec=
8493 hardcode_libdir_flag_spec_ld=
8494 hardcode_libdir_separator=
8495 hardcode_minus_L=no
8496 hardcode_shlibpath_var=unsupported
8497 inherit_rpath=no
8498 link_all_deplibs=unknown
8499 module_cmds=
8500 module_expsym_cmds=
8501 old_archive_from_new_cmds=
8502 old_archive_from_expsyms_cmds=
8503 thread_safe_flag_spec=
8504 whole_archive_flag_spec=
8505 # include_expsyms should be a list of space-separated symbols to be *always*
8506 # included in the symbol list
8507 include_expsyms=
8508 # exclude_expsyms can be an extended regexp of symbols to exclude
8509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8511 # as well as any symbol that contains `d'.
80c6c2cb 8512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8514 # platforms (ab)use it in PIC code, but their linkers get confused if
8515 # the symbol is explicitly referenced. Since portable code cannot
8516 # rely on this symbol name, it's probably fine to never include it in
8517 # preloaded symbol tables.
80c6c2cb 8518 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8519 extract_expsyms_cmds=
8520
8521 case $host_os in
80c6c2cb 8522 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8524 # When not using gcc, we currently assume that we are using
8525 # Microsoft Visual C++.
8526 if test "$GCC" != yes; then
8527 with_gnu_ld=no
8528 fi
8529 ;;
8530 interix*)
8531 # we just hope/assume this is gcc and not c89 (= MSVC++)
8532 with_gnu_ld=yes
8533 ;;
8534 openbsd*)
8535 with_gnu_ld=no
8536 ;;
8537 esac
8538
8539 ld_shlibs=yes
43e02a8a
RW
8540
8541 # On some targets, GNU ld is compatible enough with the native linker
8542 # that we're better off using the native interface for both.
8543 lt_use_gnu_ld_interface=no
1cf3d07d 8544 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8545 case $host_os in
8546 aix*)
8547 # The AIX port of GNU ld has always aspired to compatibility
8548 # with the native linker. However, as the warning in the GNU ld
8549 # block says, versions before 2.19.5* couldn't really create working
8550 # shared libraries, regardless of the interface used.
8551 case `$LD -v 2>&1` in
8552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8555 *)
8556 lt_use_gnu_ld_interface=yes
8557 ;;
8558 esac
8559 ;;
8560 *)
8561 lt_use_gnu_ld_interface=yes
8562 ;;
8563 esac
8564 fi
8565
8566 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8567 # If archive_cmds runs LD, not CC, wlarc should be empty
8568 wlarc='${wl}'
8569
8570 # Set some defaults for GNU ld with shared library support. These
8571 # are reset later if shared libraries are not supported. Putting them
8572 # here allows them to be overridden if necessary.
8573 runpath_var=LD_RUN_PATH
8574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8575 export_dynamic_flag_spec='${wl}--export-dynamic'
8576 # ancient GNU ld didn't support --whole-archive et. al.
8577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8579 else
8580 whole_archive_flag_spec=
8581 fi
8582 supports_anon_versioning=no
8583 case `$LD -v 2>&1` in
43e02a8a 8584 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8588 *\ 2.11.*) ;; # other 2.11 versions
8589 *) supports_anon_versioning=yes ;;
8590 esac
8591
8592 # See if GNU ld supports shared libraries.
8593 case $host_os in
95d4f544 8594 aix[3-9]*)
1cf3d07d
SE
8595 # On AIX/PPC, the GNU linker is very broken
8596 if test "$host_cpu" != ia64; then
8597 ld_shlibs=no
8598 cat <<_LT_EOF 1>&2
8599
43e02a8a 8600*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8601*** to be unable to reliably create shared libraries on AIX.
8602*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8603*** really care for shared libraries, you may want to install binutils
8604*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8605*** You will then need to restart the configuration process.
1cf3d07d
SE
8606
8607_LT_EOF
8608 fi
8609 ;;
8610
8611 amigaos*)
80c6c2cb
PG
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
1cf3d07d
SE
8624 ;;
8625
8626 beos*)
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 allow_undefined_flag=unsupported
8629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
80c6c2cb 8637 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8641 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8642 allow_undefined_flag=unsupported
8643 always_export_symbols=no
8644 enable_shared_with_static_runtimes=yes
8645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8646
8647 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8649 # If the export-symbols file already is a .def file (1st line
8650 # is EXPORTS), use it as is; otherwise, prepend...
8651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8652 cp $export_symbols $output_objdir/$soname.def;
8653 else
8654 echo EXPORTS > $output_objdir/$soname.def;
8655 cat $export_symbols >> $output_objdir/$soname.def;
8656 fi~
8657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8658 else
8659 ld_shlibs=no
8660 fi
8661 ;;
8662
43e02a8a
RW
8663 haiku*)
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 link_all_deplibs=yes
8666 ;;
8667
1cf3d07d
SE
8668 interix[3-9]*)
8669 hardcode_direct=no
8670 hardcode_shlibpath_var=no
8671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8672 export_dynamic_flag_spec='${wl}-E'
8673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8674 # Instead, shared libraries are loaded at an image base (0x10000000 by
8675 # default) and relocated if they conflict, which is a slow very memory
8676 # consuming and fragmenting process. To avoid this, we pick a random,
8677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8680 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'
8681 ;;
8682
7a9d3fe8 8683 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8684 tmp_diet=no
8685 if test "$host_os" = linux-dietlibc; then
8686 case $cc_basename in
8687 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8688 esac
8689 fi
8690 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8691 && test "$tmp_diet" = no
8692 then
8693 tmp_addflag=
80c6c2cb 8694 tmp_sharedflag='-shared'
1cf3d07d
SE
8695 case $cc_basename,$host_cpu in
8696 pgcc*) # Portland Group C compiler
43e02a8a 8697 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'
1cf3d07d
SE
8698 tmp_addflag=' $pic_flag'
8699 ;;
43e02a8a
RW
8700 pgf77* | pgf90* | pgf95* | pgfortran*)
8701 # Portland Group f77 and f90 compilers
8702 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'
1cf3d07d
SE
8703 tmp_addflag=' $pic_flag -Mnomain' ;;
8704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8705 tmp_addflag=' -i_dynamic' ;;
8706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8707 tmp_addflag=' -i_dynamic -nofor_main' ;;
8708 ifc* | ifort*) # Intel Fortran compiler
8709 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
8710 lf95*) # Lahey Fortran 8.1
8711 whole_archive_flag_spec=
8712 tmp_sharedflag='--shared' ;;
43e02a8a 8713 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
80c6c2cb
PG
8714 tmp_sharedflag='-qmkshrobj'
8715 tmp_addflag= ;;
43e02a8a
RW
8716 nvcc*) # Cuda Compiler Driver 2.2
8717 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'
8718 compiler_needs_object=yes
8719 ;;
1cf3d07d
SE
8720 esac
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ C*) # Sun C 5.9
43e02a8a 8723 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'
1cf3d07d
SE
8724 compiler_needs_object=yes
8725 tmp_sharedflag='-G' ;;
8726 *Sun\ F*) # Sun Fortran 8.3
8727 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8728 esac
8729 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730
8731 if test "x$supports_anon_versioning" = xyes; then
8732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8734 echo "local: *; };" >> $output_objdir/$libname.ver~
8735 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8736 fi
80c6c2cb
PG
8737
8738 case $cc_basename in
43e02a8a 8739 xlf* | bgf* | bgxlf* | mpixlf*)
80c6c2cb
PG
8740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8741 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8742 hardcode_libdir_flag_spec=
8743 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8744 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8745 if test "x$supports_anon_versioning" = xyes; then
8746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748 echo "local: *; };" >> $output_objdir/$libname.ver~
8749 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8750 fi
8751 ;;
8752 esac
1cf3d07d
SE
8753 else
8754 ld_shlibs=no
8755 fi
8756 ;;
8757
8758 netbsd*)
8759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8761 wlarc=
8762 else
8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765 fi
8766 ;;
8767
8768 solaris*)
8769 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8770 ld_shlibs=no
8771 cat <<_LT_EOF 1>&2
8772
8773*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8774*** create shared libraries on Solaris systems. Therefore, libtool
8775*** is disabling shared libraries support. We urge you to upgrade GNU
8776*** binutils to release 2.9.1 or newer. Another option is to modify
8777*** your PATH or compiler configuration so that the native linker is
8778*** used, and then restart.
8779
8780_LT_EOF
8781 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784 else
8785 ld_shlibs=no
8786 fi
8787 ;;
8788
8789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8790 case `$LD -v 2>&1` in
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8792 ld_shlibs=no
8793 cat <<_LT_EOF 1>&2
8794
8795*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8796*** reliably create shared libraries on SCO systems. Therefore, libtool
8797*** is disabling shared libraries support. We urge you to upgrade GNU
8798*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8799*** your PATH or compiler configuration so that the native linker is
8800*** used, and then restart.
8801
8802_LT_EOF
8803 ;;
8804 *)
8805 # For security reasons, it is highly recommended that you always
8806 # use absolute paths for naming shared libraries, and exclude the
8807 # DT_RUNPATH tag from executables and libraries. But doing so
8808 # requires that you compile everything twice, which is a pain.
8809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 else
8814 ld_shlibs=no
8815 fi
8816 ;;
8817 esac
8818 ;;
8819
8820 sunos4*)
8821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822 wlarc=
8823 hardcode_direct=yes
8824 hardcode_shlibpath_var=no
8825 ;;
8826
8827 *)
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 else
8832 ld_shlibs=no
8833 fi
8834 ;;
8835 esac
8836
8837 if test "$ld_shlibs" = no; then
8838 runpath_var=
8839 hardcode_libdir_flag_spec=
8840 export_dynamic_flag_spec=
8841 whole_archive_flag_spec=
8842 fi
8843 else
8844 # PORTME fill in a description of your system's linker (not GNU ld)
8845 case $host_os in
8846 aix3*)
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=yes
8849 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'
8850 # Note: this linker hardcodes the directories in LIBPATH if there
8851 # are no directories specified by -L.
8852 hardcode_minus_L=yes
8853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8854 # Neither direct hardcoding nor static linking is supported with a
8855 # broken collect2.
8856 hardcode_direct=unsupported
8857 fi
8858 ;;
8859
95d4f544 8860 aix[4-9]*)
1cf3d07d
SE
8861 if test "$host_cpu" = ia64; then
8862 # On IA64, the linker does run time linking by default, so we don't
8863 # have to do anything special.
8864 aix_use_runtimelinking=no
8865 exp_sym_flag='-Bexport'
8866 no_entry_flag=""
8867 else
8868 # If we're using GNU nm, then we don't want the "-C" option.
8869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8870 # Also, AIX nm treats weak defined symbols like other global
8871 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8873 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'
1cf3d07d
SE
8874 else
8875 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8876 fi
8877 aix_use_runtimelinking=no
8878
8879 # Test if we are trying to use run time linking or normal
8880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8881 # need to do runtime linking.
95d4f544 8882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8883 for ld_flag in $LDFLAGS; do
8884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8885 aix_use_runtimelinking=yes
8886 break
8887 fi
8888 done
8889 ;;
8890 esac
8891
8892 exp_sym_flag='-bexport'
8893 no_entry_flag='-bnoentry'
8894 fi
8895
8896 # When large executables or shared objects are built, AIX ld can
8897 # have problems creating the table of contents. If linking a library
8898 # or program results in "error TOC overflow" add -mminimal-toc to
8899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8901
8902 archive_cmds=''
8903 hardcode_direct=yes
8904 hardcode_direct_absolute=yes
8905 hardcode_libdir_separator=':'
8906 link_all_deplibs=yes
8907 file_list_spec='${wl}-f,'
8908
8909 if test "$GCC" = yes; then
8910 case $host_os in aix4.[012]|aix4.[012].*)
8911 # We only want to do this on AIX 4.2 and lower, the check
8912 # below for broken collect2 doesn't work under 4.3+
8913 collect2name=`${CC} -print-prog-name=collect2`
8914 if test -f "$collect2name" &&
8915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8916 then
8917 # We have reworked collect2
8918 :
8919 else
8920 # We have old collect2
8921 hardcode_direct=unsupported
8922 # It fails to find uninstalled libraries when the uninstalled
8923 # path is not listed in the libpath. Setting hardcode_minus_L
8924 # to unsupported forces relinking
8925 hardcode_minus_L=yes
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_libdir_separator=
8928 fi
8929 ;;
8930 esac
8931 shared_flag='-shared'
8932 if test "$aix_use_runtimelinking" = yes; then
8933 shared_flag="$shared_flag "'${wl}-G'
8934 fi
8935 else
8936 # not using gcc
8937 if test "$host_cpu" = ia64; then
8938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8939 # chokes on -Wl,-G. The following line is correct:
8940 shared_flag='-G'
8941 else
8942 if test "$aix_use_runtimelinking" = yes; then
8943 shared_flag='${wl}-G'
8944 else
8945 shared_flag='${wl}-bM:SRE'
8946 fi
8947 fi
8948 fi
8949
80c6c2cb 8950 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8951 # It seems that -bexpall does not export symbols beginning with
8952 # underscore (_), so it is better to generate a list of symbols to export.
8953 always_export_symbols=yes
8954 if test "$aix_use_runtimelinking" = yes; then
8955 # Warning - without using the other runtime loading flags (-brtl),
8956 # -berok will link without error, but may produce a broken library.
8957 allow_undefined_flag='-berok'
8958 # Determine the default libpath from the value encoded in an
8959 # empty executable.
5213506e 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8961/* end confdefs.h. */
8962
8963int
8964main ()
8965{
8966
8967 ;
8968 return 0;
8969}
8970_ACEOF
5213506e 8971if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8972
8973lt_aix_libpath_sed='
8974 /Import File Strings/,/^$/ {
8975 /^0/ {
8976 s/^0 *\(.*\)$/\1/
8977 p
8978 }
8979 }'
8980aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981# Check for a 64-bit object if we didn't find anything.
8982if test -z "$aix_libpath"; then
8983 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984fi
1cf3d07d 8985fi
5213506e
RW
8986rm -f core conftest.err conftest.$ac_objext \
8987 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8989
8990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8991 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"
1cf3d07d
SE
8992 else
8993 if test "$host_cpu" = ia64; then
8994 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8995 allow_undefined_flag="-z nodefs"
8996 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"
8997 else
8998 # Determine the default libpath from the value encoded in an
8999 # empty executable.
5213506e 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9001/* end confdefs.h. */
9002
9003int
9004main ()
9005{
9006
9007 ;
9008 return 0;
9009}
9010_ACEOF
5213506e 9011if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9012
9013lt_aix_libpath_sed='
9014 /Import File Strings/,/^$/ {
9015 /^0/ {
9016 s/^0 *\(.*\)$/\1/
9017 p
9018 }
9019 }'
9020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021# Check for a 64-bit object if we didn't find anything.
9022if test -z "$aix_libpath"; then
9023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024fi
1cf3d07d 9025fi
5213506e
RW
9026rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9029
9030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031 # Warning - without using the other run time loading flags,
9032 # -berok will link without error, but may produce a broken library.
9033 no_undefined_flag=' ${wl}-bernotok'
9034 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
9035 if test "$with_gnu_ld" = yes; then
9036 # We only use this code for GNU lds that support --whole-archive.
9037 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9038 else
9039 # Exported symbols can be pulled into shared objects from archives
9040 whole_archive_flag_spec='$convenience'
9041 fi
1cf3d07d
SE
9042 archive_cmds_need_lc=yes
9043 # This is similar to how AIX traditionally builds its shared libraries.
9044 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'
9045 fi
9046 fi
9047 ;;
9048
9049 amigaos*)
80c6c2cb
PG
9050 case $host_cpu in
9051 powerpc)
9052 # see comment about AmigaOS4 .so support
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds=''
9055 ;;
9056 m68k)
9057 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)'
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9060 ;;
9061 esac
1cf3d07d
SE
9062 ;;
9063
9064 bsdi[45]*)
9065 export_dynamic_flag_spec=-rdynamic
9066 ;;
9067
80c6c2cb 9068 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9069 # When not using gcc, we currently assume that we are using
9070 # Microsoft Visual C++.
9071 # hardcode_libdir_flag_spec is actually meaningless, as there is
9072 # no search path for DLLs.
9073 hardcode_libdir_flag_spec=' '
9074 allow_undefined_flag=unsupported
9075 # Tell ltmain to make .lib files, not .a files.
9076 libext=lib
9077 # Tell ltmain to make .dll files, not .so files.
9078 shrext_cmds=".dll"
9079 # FIXME: Setting linknames here is a bad hack.
43e02a8a 9080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
9081 # The linker will automatically build a .lib file if we build a DLL.
9082 old_archive_from_new_cmds='true'
9083 # FIXME: Should let the user specify the lib program.
9084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085 fix_srcfile_path='`cygpath -w "$srcfile"`'
9086 enable_shared_with_static_runtimes=yes
9087 ;;
9088
9089 darwin* | rhapsody*)
1cf3d07d 9090
80c6c2cb
PG
9091
9092 archive_cmds_need_lc=no
9093 hardcode_direct=no
9094 hardcode_automatic=yes
9095 hardcode_shlibpath_var=unsupported
43e02a8a
RW
9096 if test "$lt_cv_ld_force_load" = "yes"; then
9097 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\"`'
9098 else
9099 whole_archive_flag_spec=''
9100 fi
80c6c2cb
PG
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 9108 output_verbose_link_cmd=func_echo_all
80c6c2cb
PG
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9112 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}"
9113
9114 else
9115 ld_shlibs=no
9116 fi
9117
1cf3d07d
SE
9118 ;;
9119
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9124 ;;
9125
1cf3d07d
SE
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9129 # extra space).
9130 freebsd2.2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9135 ;;
9136
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 9138 freebsd2.*)
1cf3d07d
SE
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9143 ;;
9144
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_direct=yes
9150 hardcode_shlibpath_var=no
9151 ;;
9152
9153 hpux9*)
9154 if test "$GCC" = yes; then
9155 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'
9156 else
9157 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'
9158 fi
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9162
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 ;;
9168
9169 hpux10*)
43e02a8a 9170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9174 fi
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_flag_spec_ld='+b $libdir'
9178 hardcode_libdir_separator=:
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9185 fi
9186 ;;
9187
9188 hpux11*)
43e02a8a 9189 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9190 case $host_cpu in
9191 hppa*64*)
9192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 ;;
9194 ia64*)
80c6c2cb 9195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9196 ;;
9197 *)
9198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9199 ;;
9200 esac
9201 else
9202 case $host_cpu in
9203 hppa*64*)
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 ;;
9206 ia64*)
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9208 ;;
9209 *)
43e02a8a
RW
9210
9211 # Older versions of the 11.00 compiler do not understand -b yet
9212 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9214$as_echo_n "checking if $CC understands -b... " >&6; }
9215if test "${lt_cv_prog_compiler__b+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217else
9218 lt_cv_prog_compiler__b=no
9219 save_LDFLAGS="$LDFLAGS"
9220 LDFLAGS="$LDFLAGS -b"
9221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9223 # The linker can only warn and ignore the option if not recognized
9224 # So say no if there are warnings
9225 if test -s conftest.err; then
9226 # Append any errors to the config.log.
9227 cat conftest.err 1>&5
9228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230 if diff conftest.exp conftest.er2 >/dev/null; then
9231 lt_cv_prog_compiler__b=yes
9232 fi
9233 else
9234 lt_cv_prog_compiler__b=yes
9235 fi
9236 fi
9237 $RM -r conftest*
9238 LDFLAGS="$save_LDFLAGS"
9239
9240fi
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9242$as_echo "$lt_cv_prog_compiler__b" >&6; }
9243
9244if test x"$lt_cv_prog_compiler__b" = xyes; then
9245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246else
9247 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9248fi
9249
1cf3d07d
SE
9250 ;;
9251 esac
9252 fi
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256
9257 case $host_cpu in
9258 hppa*64*|ia64*)
9259 hardcode_direct=no
9260 hardcode_shlibpath_var=no
9261 ;;
9262 *)
9263 hardcode_direct=yes
9264 hardcode_direct_absolute=yes
9265 export_dynamic_flag_spec='${wl}-E'
9266
9267 # hardcode_minus_L: Not really in the search PATH,
9268 # but as the default location of the library.
9269 hardcode_minus_L=yes
9270 ;;
9271 esac
9272 fi
9273 ;;
9274
9275 irix5* | irix6* | nonstopux*)
9276 if test "$GCC" = yes; then
43e02a8a 9277 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'
1cf3d07d
SE
9278 # Try to use the -exported_symbol ld option, if it does not
9279 # work, assume that -exports_file does not work either and
9280 # implicitly export all symbols.
9281 save_LDFLAGS="$LDFLAGS"
9282 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h. */
1cf3d07d
SE
9285int foo(void) {}
9286_ACEOF
5213506e 9287if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9288 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'
1cf3d07d 9289
1cf3d07d 9290fi
5213506e
RW
9291rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9293 LDFLAGS="$save_LDFLAGS"
9294 else
43e02a8a
RW
9295 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'
9296 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'
1cf3d07d
SE
9297 fi
9298 archive_cmds_need_lc='no'
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 hardcode_libdir_separator=:
9301 inherit_rpath=yes
9302 link_all_deplibs=yes
9303 ;;
9304
9305 netbsd*)
9306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9308 else
9309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9310 fi
9311 hardcode_libdir_flag_spec='-R$libdir'
9312 hardcode_direct=yes
9313 hardcode_shlibpath_var=no
9314 ;;
9315
9316 newsos6)
9317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_direct=yes
9319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320 hardcode_libdir_separator=:
9321 hardcode_shlibpath_var=no
9322 ;;
9323
9324 *nto* | *qnx*)
9325 ;;
9326
9327 openbsd*)
80c6c2cb
PG
9328 if test -f /usr/libexec/ld.so; then
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9331 hardcode_direct_absolute=yes
9332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 9334 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
9336 export_dynamic_flag_spec='${wl}-E'
9337 else
9338 case $host_os in
9339 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-R$libdir'
9342 ;;
9343 *)
9344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346 ;;
9347 esac
9348 fi
9349 else
9350 ld_shlibs=no
1cf3d07d
SE
9351 fi
9352 ;;
9353
9354 os2*)
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 allow_undefined_flag=unsupported
43e02a8a 9358 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'
1cf3d07d
SE
9359 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9360 ;;
9361
9362 osf3*)
9363 if test "$GCC" = yes; then
9364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9365 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'
1cf3d07d
SE
9366 else
9367 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9368 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'
1cf3d07d
SE
9369 fi
9370 archive_cmds_need_lc='no'
9371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372 hardcode_libdir_separator=:
9373 ;;
9374
9375 osf4* | osf5*) # as osf3* with the addition of -msym flag
9376 if test "$GCC" = yes; then
9377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9378 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'
1cf3d07d
SE
9379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380 else
9381 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9382 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'
1cf3d07d 9383 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~
43e02a8a 9384 $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'
1cf3d07d
SE
9385
9386 # Both c and cxx compiler support -rpath directly
9387 hardcode_libdir_flag_spec='-rpath $libdir'
9388 fi
9389 archive_cmds_need_lc='no'
9390 hardcode_libdir_separator=:
9391 ;;
9392
9393 solaris*)
9394 no_undefined_flag=' -z defs'
9395 if test "$GCC" = yes; then
9396 wlarc='${wl}'
9397 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9400 else
9401 case `$CC -V 2>&1` in
9402 *"Compilers 5.0"*)
9403 wlarc=''
9404 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9407 ;;
9408 *)
9409 wlarc='${wl}'
9410 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9412 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9413 ;;
9414 esac
9415 fi
9416 hardcode_libdir_flag_spec='-R$libdir'
9417 hardcode_shlibpath_var=no
9418 case $host_os in
9419 solaris2.[0-5] | solaris2.[0-5].*) ;;
9420 *)
9421 # The compiler driver will combine and reorder linker options,
9422 # but understands `-z linker_flag'. GCC discards it without `$wl',
9423 # but is careful enough not to reorder.
9424 # Supported since Solaris 2.6 (maybe 2.5.1?)
9425 if test "$GCC" = yes; then
9426 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9427 else
9428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9429 fi
9430 ;;
9431 esac
9432 link_all_deplibs=yes
9433 ;;
9434
9435 sunos4*)
9436 if test "x$host_vendor" = xsequent; then
9437 # Use $CC to link under sequent, because it throws in some extra .o
9438 # files that make .init and .fini sections work.
9439 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9442 fi
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_direct=yes
9445 hardcode_minus_L=yes
9446 hardcode_shlibpath_var=no
9447 ;;
9448
9449 sysv4)
9450 case $host_vendor in
9451 sni)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_direct=yes # is this really true???
9454 ;;
9455 siemens)
9456 ## LD is ld it makes a PLAMLIB
9457 ## CC just makes a GrossModule.
9458 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9459 reload_cmds='$CC -r -o $output$reload_objs'
9460 hardcode_direct=no
9461 ;;
9462 motorola)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9465 ;;
9466 esac
9467 runpath_var='LD_RUN_PATH'
9468 hardcode_shlibpath_var=no
9469 ;;
9470
9471 sysv4.3*)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_shlibpath_var=no
9474 export_dynamic_flag_spec='-Bexport'
9475 ;;
9476
9477 sysv4*MP*)
9478 if test -d /usr/nec; then
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_shlibpath_var=no
9481 runpath_var=LD_RUN_PATH
9482 hardcode_runpath_var=yes
9483 ld_shlibs=yes
9484 fi
9485 ;;
9486
9487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9488 no_undefined_flag='${wl}-z,text'
9489 archive_cmds_need_lc=no
9490 hardcode_shlibpath_var=no
9491 runpath_var='LD_RUN_PATH'
9492
9493 if test "$GCC" = yes; then
9494 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 else
9497 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 fi
9500 ;;
9501
9502 sysv5* | sco3.2v5* | sco5v6*)
9503 # Note: We can NOT use -z defs as we might desire, because we do not
9504 # link with -lc, and that would cause any symbols used from libc to
9505 # always be unresolved, which means just about no library would
9506 # ever link correctly. If we're not using GNU ld we use -z text
9507 # though, which does catch some bad symbols but isn't as heavy-handed
9508 # as -z defs.
9509 no_undefined_flag='${wl}-z,text'
9510 allow_undefined_flag='${wl}-z,nodefs'
9511 archive_cmds_need_lc=no
9512 hardcode_shlibpath_var=no
9513 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9514 hardcode_libdir_separator=':'
9515 link_all_deplibs=yes
9516 export_dynamic_flag_spec='${wl}-Bexport'
9517 runpath_var='LD_RUN_PATH'
9518
9519 if test "$GCC" = yes; then
9520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 else
9523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 fi
9526 ;;
9527
9528 uts4*)
9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 *)
9535 ld_shlibs=no
9536 ;;
9537 esac
9538
9539 if test x$host_vendor = xsni; then
9540 case $host in
9541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9542 export_dynamic_flag_spec='${wl}-Blargedynsym'
9543 ;;
9544 esac
9545 fi
9546 fi
9547
5213506e
RW
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9549$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9550test "$ld_shlibs" = no && can_build_shared=no
9551
9552with_gnu_ld=$with_gnu_ld
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568#
9569# Do we need to explicitly link libc?
9570#
9571case "x$archive_cmds_need_lc" in
9572x|xyes)
9573 # Assume -lc should be added
9574 archive_cmds_need_lc=yes
9575
9576 if test "$enable_shared" = yes && test "$GCC" = yes; then
9577 case $archive_cmds in
9578 *'~'*)
9579 # FIXME: we may have to deal with multi-command sequences.
9580 ;;
9581 '$CC '*)
9582 # Test whether the compiler implicitly links with -lc since on some
9583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9584 # to ld, don't add -lc before -lgcc.
5213506e
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9586$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9587if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
baafc534
RW
9589else
9590 $RM conftest*
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9592
5213506e 9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9594 (eval $ac_compile) 2>&5
9595 ac_status=$?
5213506e
RW
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9598 soname=conftest
9599 lib=conftest
9600 libobjs=conftest.$ac_objext
9601 deplibs=
9602 wl=$lt_prog_compiler_wl
9603 pic_flag=$lt_prog_compiler_pic
9604 compiler_flags=-v
9605 linker_flags=-v
9606 verstring=
9607 output_objdir=.
9608 libname=conftest
9609 lt_save_allow_undefined_flag=$allow_undefined_flag
9610 allow_undefined_flag=
5213506e 9611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9612 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9613 ac_status=$?
5213506e
RW
9614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; }
baafc534
RW
9616 then
9617 lt_cv_archive_cmds_need_lc=no
9618 else
9619 lt_cv_archive_cmds_need_lc=yes
9620 fi
9621 allow_undefined_flag=$lt_save_allow_undefined_flag
9622 else
9623 cat conftest.err 1>&5
9624 fi
9625 $RM conftest*
9626
9627fi
5213506e
RW
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9629$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9630 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9631 ;;
9632 esac
9633 fi
9634 ;;
9635esac
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
5213506e
RW
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9794$as_echo_n "checking dynamic linker characteristics... " >&6; }
80c6c2cb
PG
9795
9796if test "$GCC" = yes; then
1cf3d07d
SE
9797 case $host_os in
9798 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9799 *) lt_awk_arg="/^libraries:/" ;;
9800 esac
43e02a8a
RW
9801 case $host_os in
9802 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9803 *) lt_sed_strip_eq="s,=/,/,g" ;;
9804 esac
9805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9806 case $lt_search_path_spec in
9807 *\;*)
1cf3d07d
SE
9808 # if the path contains ";" then we assume it to be the separator
9809 # otherwise default to the standard path separator (i.e. ":") - it is
9810 # assumed that no part of a normal pathname contains ";" but that should
9811 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9813 ;;
9814 *)
9815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9816 ;;
9817 esac
1cf3d07d
SE
9818 # Ok, now we have the path, separated by spaces, we can step through it
9819 # and add multilib dir if necessary.
9820 lt_tmp_lt_search_path_spec=
9821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9822 for lt_sys_path in $lt_search_path_spec; do
9823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9825 else
9826 test -d "$lt_sys_path" && \
9827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9828 fi
9829 done
43e02a8a 9830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9831BEGIN {RS=" "; FS="/|\n";} {
9832 lt_foo="";
9833 lt_count=0;
9834 for (lt_i = NF; lt_i > 0; lt_i--) {
9835 if ($lt_i != "" && $lt_i != ".") {
9836 if ($lt_i == "..") {
9837 lt_count++;
9838 } else {
9839 if (lt_count == 0) {
9840 lt_foo="/" $lt_i lt_foo;
9841 } else {
9842 lt_count--;
9843 }
9844 }
9845 }
9846 }
9847 if (lt_foo != "") { lt_freq[lt_foo]++; }
9848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9849}'`
43e02a8a
RW
9850 # AWK program above erroneously prepends '/' to C:/dos/paths
9851 # for these hosts.
9852 case $host_os in
9853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9855 esac
9856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9857else
9858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9859fi
9860library_names_spec=
9861libname_spec='lib$name'
9862soname_spec=
9863shrext_cmds=".so"
9864postinstall_cmds=
9865postuninstall_cmds=
9866finish_cmds=
9867finish_eval=
9868shlibpath_var=
9869shlibpath_overrides_runpath=unknown
9870version_type=none
9871dynamic_linker="$host_os ld.so"
9872sys_lib_dlsearch_path_spec="/lib /usr/lib"
9873need_lib_prefix=unknown
9874hardcode_into_libs=no
9875
9876# when you set need_version to no, make sure it does not cause -set_version
9877# flags to be left without arguments
9878need_version=unknown
9879
9880case $host_os in
9881aix3*)
9882 version_type=linux
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9884 shlibpath_var=LIBPATH
9885
9886 # AIX 3 has no versioning support, so we append a major version to the name.
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 ;;
9889
95d4f544 9890aix[4-9]*)
1cf3d07d
SE
9891 version_type=linux
9892 need_lib_prefix=no
9893 need_version=no
9894 hardcode_into_libs=yes
9895 if test "$host_cpu" = ia64; then
9896 # AIX 5 supports IA64
9897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 else
9900 # With GCC up to 2.95.x, collect2 would create an import file
9901 # for dependence libraries. The import file would start with
9902 # the line `#! .'. This would cause the generated library to
9903 # depend on `.', always an invalid library. This was fixed in
9904 # development snapshots of GCC prior to 3.0.
9905 case $host_os in
9906 aix4 | aix4.[01] | aix4.[01].*)
9907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9908 echo ' yes '
9909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9910 :
9911 else
9912 can_build_shared=no
9913 fi
9914 ;;
9915 esac
9916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9917 # soname into executable. Probably we can add versioning support to
9918 # collect2, so additional links can be useful in future.
9919 if test "$aix_use_runtimelinking" = yes; then
9920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9921 # instead of lib<name>.a to let people know that these are not
9922 # typical AIX shared libraries.
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 else
9925 # We preserve .a as extension for shared libraries through AIX4.2
9926 # and later when we are not doing run time linking.
9927 library_names_spec='${libname}${release}.a $libname.a'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 fi
9930 shlibpath_var=LIBPATH
9931 fi
9932 ;;
9933
9934amigaos*)
80c6c2cb
PG
9935 case $host_cpu in
9936 powerpc)
9937 # Since July 2007 AmigaOS4 officially supports .so libraries.
9938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 ;;
9941 m68k)
1cf3d07d
SE
9942 library_names_spec='$libname.ixlibrary $libname.a'
9943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9944 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'
80c6c2cb
PG
9945 ;;
9946 esac
1cf3d07d
SE
9947 ;;
9948
9949beos*)
9950 library_names_spec='${libname}${shared_ext}'
9951 dynamic_linker="$host_os ld.so"
9952 shlibpath_var=LIBRARY_PATH
9953 ;;
9954
9955bsdi[45]*)
9956 version_type=linux
9957 need_version=no
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9964 # the default ld.so.conf also contains /usr/contrib/lib and
9965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9966 # libtool to hard-code these into programs
9967 ;;
9968
80c6c2cb 9969cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9970 version_type=windows
9971 shrext_cmds=".dll"
9972 need_version=no
9973 need_lib_prefix=no
9974
80c6c2cb
PG
9975 case $GCC,$host_os in
9976 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9977 library_names_spec='$libname.dll.a'
9978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9979 postinstall_cmds='base_file=`basename \${file}`~
9980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9981 dldir=$destdir/`dirname \$dlpath`~
9982 test -d \$dldir || mkdir -p \$dldir~
9983 $install_prog $dir/$dlname \$dldir/$dlname~
9984 chmod a+x \$dldir/$dlname~
9985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9987 fi'
9988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989 dlpath=$dir/\$dldll~
9990 $RM \$dlpath'
9991 shlibpath_overrides_runpath=yes
9992
9993 case $host_os in
9994 cygwin*)
9995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9997
9998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9999 ;;
80c6c2cb 10000 mingw* | cegcc*)
1cf3d07d
SE
10001 # MinGW DLLs use traditional 'lib' prefix
10002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
10003 ;;
10004 pw32*)
10005 # pw32 DLLs use 'pw' prefix rather than 'lib'
10006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10007 ;;
10008 esac
10009 ;;
10010
10011 *)
10012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10013 ;;
10014 esac
10015 dynamic_linker='Win32 ld.exe'
10016 # FIXME: first we should search . and the directory the executable is in
10017 shlibpath_var=PATH
10018 ;;
10019
10020darwin* | rhapsody*)
10021 dynamic_linker="$host_os dyld"
10022 version_type=darwin
10023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10026 soname_spec='${libname}${release}${major}$shared_ext'
10027 shlibpath_overrides_runpath=yes
10028 shlibpath_var=DYLD_LIBRARY_PATH
10029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10030
10031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10033 ;;
10034
10035dgux*)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 ;;
10043
1cf3d07d
SE
10044freebsd* | dragonfly*)
10045 # DragonFly does not have aout. When/if they implement a new
10046 # versioning mechanism, adjust this.
10047 if test -x /usr/bin/objformat; then
10048 objformat=`/usr/bin/objformat`
10049 else
10050 case $host_os in
c6084f68 10051 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
10052 *) objformat=elf ;;
10053 esac
10054 fi
10055 version_type=freebsd-$objformat
10056 case $version_type in
10057 freebsd-elf*)
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 need_version=no
10060 need_lib_prefix=no
10061 ;;
10062 freebsd-*)
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10064 need_version=yes
10065 ;;
10066 esac
10067 shlibpath_var=LD_LIBRARY_PATH
10068 case $host_os in
c6084f68 10069 freebsd2.*)
1cf3d07d
SE
10070 shlibpath_overrides_runpath=yes
10071 ;;
10072 freebsd3.[01]* | freebsdelf3.[01]*)
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10075 ;;
10076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10078 shlibpath_overrides_runpath=no
10079 hardcode_into_libs=yes
10080 ;;
10081 *) # from 4.6 on, and DragonFly
10082 shlibpath_overrides_runpath=yes
10083 hardcode_into_libs=yes
10084 ;;
10085 esac
10086 ;;
10087
10088gnu*)
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 hardcode_into_libs=yes
10096 ;;
10097
43e02a8a
RW
10098haiku*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 dynamic_linker="$host_os runtime_loader"
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LIBRARY_PATH
10106 shlibpath_overrides_runpath=yes
10107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10108 hardcode_into_libs=yes
10109 ;;
10110
1cf3d07d
SE
10111hpux9* | hpux10* | hpux11*)
10112 # Give a soname corresponding to the major version so that dld.sl refuses to
10113 # link against other versions.
10114 version_type=sunos
10115 need_lib_prefix=no
10116 need_version=no
10117 case $host_cpu in
10118 ia64*)
10119 shrext_cmds='.so'
10120 hardcode_into_libs=yes
10121 dynamic_linker="$host_os dld.so"
10122 shlibpath_var=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 if test "X$HPUX_IA64_MODE" = X32; then
10127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10128 else
10129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10130 fi
10131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10132 ;;
10133 hppa*64*)
10134 shrext_cmds='.sl'
10135 hardcode_into_libs=yes
10136 dynamic_linker="$host_os dld.sl"
10137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10143 ;;
10144 *)
10145 shrext_cmds='.sl'
10146 dynamic_linker="$host_os dld.sl"
10147 shlibpath_var=SHLIB_PATH
10148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 ;;
10152 esac
43e02a8a 10153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10154 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10155 # or fails outright, so override atomically:
10156 install_override_mode=555
1cf3d07d 10157 ;;
675cdab3 10158
1cf3d07d
SE
10159interix[3-9]*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=no
10168 hardcode_into_libs=yes
3ed8e5b6 10169 ;;
675cdab3 10170
1cf3d07d
SE
10171irix5* | irix6* | nonstopux*)
10172 case $host_os in
10173 nonstopux*) version_type=nonstopux ;;
10174 *)
10175 if test "$lt_cv_prog_gnu_ld" = yes; then
10176 version_type=linux
10177 else
10178 version_type=irix
10179 fi ;;
10180 esac
10181 need_lib_prefix=no
10182 need_version=no
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10185 case $host_os in
10186 irix5* | nonstopux*)
10187 libsuff= shlibsuff=
10188 ;;
10189 *)
10190 case $LD in # libtool.m4 will add one of these switches to LD
10191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10192 libsuff= shlibsuff= libmagic=32-bit;;
10193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10194 libsuff=32 shlibsuff=N32 libmagic=N32;;
10195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10197 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 10198 esac
1cf3d07d
SE
10199 ;;
10200 esac
10201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10202 shlibpath_overrides_runpath=no
10203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10205 hardcode_into_libs=yes
3ed8e5b6 10206 ;;
675cdab3 10207
1cf3d07d
SE
10208# No shared lib support for Linux oldld, aout, or coff.
10209linux*oldld* | linux*aout* | linux*coff*)
10210 dynamic_linker=no
10211 ;;
3ed8e5b6 10212
1cf3d07d 10213# This must be Linux ELF.
7a9d3fe8 10214linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
baafc534 10223
1cf3d07d 10224 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10225 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
baafc534
RW
10227else
10228 lt_cv_shlibpath_overrides_runpath=no
10229 save_LDFLAGS=$LDFLAGS
10230 save_libdir=$libdir
10231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
10234/* end confdefs.h. */
10235
10236int
10237main ()
10238{
675cdab3 10239
3ed8e5b6
AT
10240 ;
10241 return 0;
10242}
10243_ACEOF
5213506e
RW
10244if ac_fn_c_try_link "$LINENO"; then :
10245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10246 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10247fi
675cdab3 10248fi
5213506e
RW
10249rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10251 LDFLAGS=$save_LDFLAGS
10252 libdir=$save_libdir
10253
10254fi
10255
10256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10257
10258 # This implies no fast_install, which is unacceptable.
10259 # Some rework will be needed to allow for fast_install
10260 # before this can be enabled.
10261 hardcode_into_libs=yes
10262
10263 # Append ld.so.conf contents to the search path
10264 if test -f /etc/ld.so.conf; then
43e02a8a 10265 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' ' '`
1cf3d07d
SE
10266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10267 fi
675cdab3 10268
1cf3d07d
SE
10269 # We used to test for /lib/ld.so.1 and disable shared libraries on
10270 # powerpc, because MkLinux only supported shared libraries with the
10271 # GNU dynamic linker. Since this was broken with cross compilers,
10272 # most powerpc-linux boxes support dynamic linking these days and
10273 # people can always --disable-shared, the test was removed, and we
10274 # assume the GNU/Linux dynamic linker is in use.
10275 dynamic_linker='GNU/Linux ld.so'
10276 ;;
10277
10278netbsd*)
10279 version_type=sunos
10280 need_lib_prefix=no
10281 need_version=no
10282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 dynamic_linker='NetBSD (a.out) ld.so'
10286 else
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 10290 fi
1cf3d07d
SE
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
3ed8e5b6 10294 ;;
675cdab3 10295
1cf3d07d
SE
10296newsos6)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10301 ;;
675cdab3 10302
1cf3d07d
SE
10303*nto* | *qnx*)
10304 version_type=qnx
10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 dynamic_linker='ldqnx.so'
10313 ;;
675cdab3 10314
1cf3d07d
SE
10315openbsd*)
10316 version_type=sunos
10317 sys_lib_dlsearch_path_spec="/usr/lib"
10318 need_lib_prefix=no
10319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10320 case $host_os in
10321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10322 *) need_version=no ;;
10323 esac
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10328 case $host_os in
10329 openbsd2.[89] | openbsd2.[89].*)
10330 shlibpath_overrides_runpath=no
10331 ;;
10332 *)
10333 shlibpath_overrides_runpath=yes
10334 ;;
10335 esac
10336 else
10337 shlibpath_overrides_runpath=yes
10338 fi
10339 ;;
675cdab3 10340
1cf3d07d
SE
10341os2*)
10342 libname_spec='$name'
10343 shrext_cmds=".dll"
10344 need_lib_prefix=no
10345 library_names_spec='$libname${shared_ext} $libname.a'
10346 dynamic_linker='OS/2 ld.exe'
10347 shlibpath_var=LIBPATH
10348 ;;
675cdab3 10349
1cf3d07d
SE
10350osf3* | osf4* | osf5*)
10351 version_type=osf
10352 need_lib_prefix=no
10353 need_version=no
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359 ;;
675cdab3 10360
1cf3d07d
SE
10361rdos*)
10362 dynamic_linker=no
10363 ;;
10364
10365solaris*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 hardcode_into_libs=yes
10374 # ldd complains unless libraries are executable
10375 postinstall_cmds='chmod +x $lib'
10376 ;;
10377
10378sunos4*)
10379 version_type=sunos
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes
10384 if test "$with_gnu_ld" = yes; then
10385 need_lib_prefix=no
10386 fi
10387 need_version=yes
10388 ;;
10389
10390sysv4 | sysv4.3*)
10391 version_type=linux
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 case $host_vendor in
10396 sni)
10397 shlibpath_overrides_runpath=no
10398 need_lib_prefix=no
10399 runpath_var=LD_RUN_PATH
3ed8e5b6 10400 ;;
1cf3d07d
SE
10401 siemens)
10402 need_lib_prefix=no
3ed8e5b6 10403 ;;
1cf3d07d
SE
10404 motorola)
10405 need_lib_prefix=no
10406 need_version=no
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10409 ;;
10410 esac
10411 ;;
10412
10413sysv4*MP*)
10414 if test -d /usr/nec ;then
10415 version_type=linux
10416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417 soname_spec='$libname${shared_ext}.$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 fi
10420 ;;
10421
10422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10423 version_type=freebsd-elf
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10431 if test "$with_gnu_ld" = yes; then
10432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 10433 else
1cf3d07d
SE
10434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435 case $host_os in
10436 sco3.2v5*)
10437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10438 ;;
10439 esac
675cdab3 10440 fi
1cf3d07d
SE
10441 sys_lib_dlsearch_path_spec='/usr/lib'
10442 ;;
10443
10444tpf*)
10445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10446 version_type=linux
10447 need_lib_prefix=no
10448 need_version=no
80c6c2cb 10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=no
10452 hardcode_into_libs=yes
10453 ;;
10454
10455uts4*)
10456 version_type=linux
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 ;;
10461
10462*)
10463 dynamic_linker=no
10464 ;;
10465esac
5213506e
RW
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10467$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10468test "$dynamic_linker" = no && can_build_shared=no
10469
10470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471if test "$GCC" = yes; then
10472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
10473fi
10474
80c6c2cb
PG
10475if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10477fi
10478if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10480fi
10481
675cdab3 10482
1cf3d07d
SE
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
43e02a8a
RW
10562
10563
10564
10565
10566
1cf3d07d
SE
10567
10568
10569
10570
10571
10572
5213506e
RW
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10574$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10575hardcode_action=
10576if test -n "$hardcode_libdir_flag_spec" ||
10577 test -n "$runpath_var" ||
10578 test "X$hardcode_automatic" = "Xyes" ; then
10579
10580 # We can hardcode non-existent directories.
10581 if test "$hardcode_direct" != no &&
10582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583 # have to relink, otherwise we might link with an installed library
10584 # when we should be linking with a yet-to-be-installed one
10585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586 test "$hardcode_minus_L" != no; then
10587 # Linking always hardcodes the temporary library directory.
10588 hardcode_action=relink
10589 else
10590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591 hardcode_action=immediate
63e5e3e0 10592 fi
3ed8e5b6 10593else
1cf3d07d
SE
10594 # We cannot hardcode anything, or else we can only hardcode existing
10595 # directories.
10596 hardcode_action=unsupported
675cdab3 10597fi
5213506e
RW
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10599$as_echo "$hardcode_action" >&6; }
63e5e3e0 10600
1cf3d07d
SE
10601if test "$hardcode_action" = relink ||
10602 test "$inherit_rpath" = yes; then
10603 # Fast installation is not supported
10604 enable_fast_install=no
10605elif test "$shlibpath_overrides_runpath" = yes ||
10606 test "$enable_shared" = no; then
10607 # Fast installation is not necessary
10608 enable_fast_install=needless
10609fi
675cdab3 10610
63e5e3e0 10611
63e5e3e0 10612
2f7bf5b7 10613
63e5e3e0 10614
63e5e3e0 10615
1cf3d07d
SE
10616 if test "x$enable_dlopen" != xyes; then
10617 enable_dlopen=unknown
10618 enable_dlopen_self=unknown
10619 enable_dlopen_self_static=unknown
10620else
10621 lt_cv_dlopen=no
10622 lt_cv_dlopen_libs=
63e5e3e0 10623
1cf3d07d
SE
10624 case $host_os in
10625 beos*)
10626 lt_cv_dlopen="load_add_on"
10627 lt_cv_dlopen_libs=
10628 lt_cv_dlopen_self=yes
10629 ;;
63e5e3e0 10630
80c6c2cb 10631 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10632 lt_cv_dlopen="LoadLibrary"
10633 lt_cv_dlopen_libs=
10634 ;;
63e5e3e0 10635
1cf3d07d
SE
10636 cygwin*)
10637 lt_cv_dlopen="dlopen"
10638 lt_cv_dlopen_libs=
10639 ;;
63e5e3e0 10640
1cf3d07d
SE
10641 darwin*)
10642 # if libdl is installed we need to link against it
5213506e
RW
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10644$as_echo_n "checking for dlopen in -ldl... " >&6; }
10645if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
675cdab3 10647else
1cf3d07d
SE
10648 ac_check_lib_save_LIBS=$LIBS
10649LIBS="-ldl $LIBS"
5213506e 10650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 10651/* end confdefs.h. */
3ed8e5b6 10652
5213506e
RW
10653/* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10656#ifdef __cplusplus
10657extern "C"
10658#endif
1cf3d07d
SE
10659char dlopen ();
10660int
10661main ()
10662{
5213506e 10663return dlopen ();
1cf3d07d
SE
10664 ;
10665 return 0;
10666}
10667_ACEOF
5213506e 10668if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10669 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 10670else
5213506e 10671 ac_cv_lib_dl_dlopen=no
675cdab3 10672fi
5213506e
RW
10673rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10675LIBS=$ac_check_lib_save_LIBS
10676fi
5213506e
RW
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10678$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681else
63e5e3e0 10682
1cf3d07d
SE
10683 lt_cv_dlopen="dyld"
10684 lt_cv_dlopen_libs=
10685 lt_cv_dlopen_self=yes
bbf3057b 10686
1cf3d07d 10687fi
2f7bf5b7 10688
1cf3d07d 10689 ;;
2f7bf5b7 10690
1cf3d07d 10691 *)
5213506e
RW
10692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10693if test "x$ac_cv_func_shl_load" = x""yes; then :
10694 lt_cv_dlopen="shl_load"
3ed8e5b6 10695else
5213506e
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10697$as_echo_n "checking for shl_load in -ldld... " >&6; }
10698if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700else
10701 ac_check_lib_save_LIBS=$LIBS
10702LIBS="-ldld $LIBS"
10703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10704/* end confdefs.h. */
1cf3d07d 10705
5213506e
RW
10706/* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
1cf3d07d 10708 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10709#ifdef __cplusplus
10710extern "C"
10711#endif
1cf3d07d
SE
10712char shl_load ();
10713int
10714main ()
10715{
5213506e 10716return shl_load ();
1cf3d07d
SE
10717 ;
10718 return 0;
10719}
c9b93377 10720_ACEOF
5213506e 10721if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10722 ac_cv_lib_dld_shl_load=yes
c9b93377 10723else
5213506e 10724 ac_cv_lib_dld_shl_load=no
3eee102e 10725fi
5213506e
RW
10726rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10728LIBS=$ac_check_lib_save_LIBS
bbf3057b 10729fi
5213506e
RW
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10731$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10732if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
80c6c2cb 10733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10734else
5213506e
RW
10735 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10736if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10737 lt_cv_dlopen="dlopen"
10738else
5213506e
RW
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10740$as_echo_n "checking for dlopen in -ldl... " >&6; }
10741if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10743else
10744 ac_check_lib_save_LIBS=$LIBS
10745LIBS="-ldl $LIBS"
5213506e 10746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10747/* end confdefs.h. */
1cf3d07d 10748
5213506e
RW
10749/* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10752#ifdef __cplusplus
10753extern "C"
10754#endif
1cf3d07d
SE
10755char dlopen ();
10756int
10757main ()
10758{
5213506e 10759return dlopen ();
1cf3d07d
SE
10760 ;
10761 return 0;
10762}
3ed8e5b6 10763_ACEOF
5213506e 10764if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10765 ac_cv_lib_dl_dlopen=yes
c9b93377 10766else
5213506e 10767 ac_cv_lib_dl_dlopen=no
c9b93377 10768fi
5213506e
RW
10769rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10771LIBS=$ac_check_lib_save_LIBS
c9b93377 10772fi
5213506e
RW
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10774$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10775if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 10776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 10777else
5213506e
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10779$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10780if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
c9b93377 10782else
1cf3d07d
SE
10783 ac_check_lib_save_LIBS=$LIBS
10784LIBS="-lsvld $LIBS"
5213506e 10785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10786/* end confdefs.h. */
c9b93377 10787
5213506e
RW
10788/* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10791#ifdef __cplusplus
10792extern "C"
10793#endif
1cf3d07d 10794char dlopen ();
c9b93377
JB
10795int
10796main ()
10797{
5213506e 10798return dlopen ();
c9b93377
JB
10799 ;
10800 return 0;
10801}
10802_ACEOF
5213506e 10803if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10804 ac_cv_lib_svld_dlopen=yes
c9b93377 10805else
5213506e 10806 ac_cv_lib_svld_dlopen=no
c9b93377 10807fi
5213506e
RW
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10810LIBS=$ac_check_lib_save_LIBS
c9b93377 10811fi
5213506e
RW
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10813$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10814if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d 10815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 10816else
5213506e
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10818$as_echo_n "checking for dld_link in -ldld... " >&6; }
10819if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
c9b93377 10821else
1cf3d07d
SE
10822 ac_check_lib_save_LIBS=$LIBS
10823LIBS="-ldld $LIBS"
5213506e 10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10825/* end confdefs.h. */
c9b93377 10826
5213506e
RW
10827/* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10830#ifdef __cplusplus
10831extern "C"
10832#endif
1cf3d07d 10833char dld_link ();
c9b93377
JB
10834int
10835main ()
10836{
5213506e 10837return dld_link ();
1cf3d07d
SE
10838 ;
10839 return 0;
c9b93377
JB
10840}
10841_ACEOF
5213506e 10842if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10843 ac_cv_lib_dld_dld_link=yes
c9b93377 10844else
5213506e 10845 ac_cv_lib_dld_dld_link=no
c9b93377 10846fi
5213506e
RW
10847rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10849LIBS=$ac_check_lib_save_LIBS
c9b93377 10850fi
5213506e
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10852$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10853if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
80c6c2cb 10854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 10855fi
1cf3d07d
SE
10856
10857
c9b93377 10858fi
c9b93377 10859
c9b93377
JB
10860
10861fi
10862
c9b93377 10863
1cf3d07d 10864fi
c9b93377
JB
10865
10866
1cf3d07d 10867fi
c9b93377
JB
10868
10869
1cf3d07d 10870fi
c9b93377 10871
1cf3d07d
SE
10872 ;;
10873 esac
c9b93377 10874
1cf3d07d
SE
10875 if test "x$lt_cv_dlopen" != xno; then
10876 enable_dlopen=yes
10877 else
10878 enable_dlopen=no
10879 fi
c9b93377 10880
1cf3d07d
SE
10881 case $lt_cv_dlopen in
10882 dlopen)
10883 save_CPPFLAGS="$CPPFLAGS"
10884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 10885
1cf3d07d
SE
10886 save_LDFLAGS="$LDFLAGS"
10887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10888
10889 save_LIBS="$LIBS"
10890 LIBS="$lt_cv_dlopen_libs $LIBS"
10891
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10893$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10894if test "${lt_cv_dlopen_self+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
c9b93377 10896else
1cf3d07d
SE
10897 if test "$cross_compiling" = yes; then :
10898 lt_cv_dlopen_self=cross
10899else
10900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901 lt_status=$lt_dlunknown
10902 cat > conftest.$ac_ext <<_LT_EOF
4e70f25f 10903#line 10903 "configure"
1cf3d07d 10904#include "confdefs.h"
c9b93377 10905
1cf3d07d
SE
10906#if HAVE_DLFCN_H
10907#include <dlfcn.h>
10908#endif
10909
10910#include <stdio.h>
10911
10912#ifdef RTLD_GLOBAL
10913# define LT_DLGLOBAL RTLD_GLOBAL
10914#else
10915# ifdef DL_GLOBAL
10916# define LT_DLGLOBAL DL_GLOBAL
10917# else
10918# define LT_DLGLOBAL 0
10919# endif
10920#endif
10921
10922/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923 find out it does not work in some platform. */
10924#ifndef LT_DLLAZY_OR_NOW
10925# ifdef RTLD_LAZY
10926# define LT_DLLAZY_OR_NOW RTLD_LAZY
10927# else
10928# ifdef DL_LAZY
10929# define LT_DLLAZY_OR_NOW DL_LAZY
10930# else
10931# ifdef RTLD_NOW
10932# define LT_DLLAZY_OR_NOW RTLD_NOW
10933# else
10934# ifdef DL_NOW
10935# define LT_DLLAZY_OR_NOW DL_NOW
10936# else
10937# define LT_DLLAZY_OR_NOW 0
10938# endif
10939# endif
10940# endif
10941# endif
10942#endif
10943
43e02a8a
RW
10944/* When -fvisbility=hidden is used, assume the code has been annotated
10945 correspondingly for the symbols needed. */
10946#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10947void fnord () __attribute__((visibility("default")));
10948#endif
10949
10950void fnord () { int i=42; }
1cf3d07d
SE
10951int main ()
10952{
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10955
10956 if (self)
10957 {
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10959 else
10960 {
10961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10962 else puts (dlerror ());
10963 }
1cf3d07d
SE
10964 /* dlclose (self); */
10965 }
10966 else
10967 puts (dlerror ());
10968
80c6c2cb 10969 return status;
1cf3d07d
SE
10970}
10971_LT_EOF
5213506e 10972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10973 (eval $ac_link) 2>&5
c9b93377 10974 ac_status=$?
5213506e
RW
10975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10977 (./conftest; exit; ) >&5 2>/dev/null
10978 lt_status=$?
10979 case x$lt_status in
10980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983 esac
10984 else :
10985 # compilation failed
10986 lt_cv_dlopen_self=no
10987 fi
10988fi
10989rm -fr conftest*
10990
10991
10992fi
5213506e
RW
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10994$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
10995
10996 if test "x$lt_cv_dlopen_self" = xyes; then
10997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10999$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11000if test "${lt_cv_dlopen_self_static+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11002else
11003 if test "$cross_compiling" = yes; then :
11004 lt_cv_dlopen_self_static=cross
11005else
11006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007 lt_status=$lt_dlunknown
11008 cat > conftest.$ac_ext <<_LT_EOF
4e70f25f 11009#line 11009 "configure"
1cf3d07d
SE
11010#include "confdefs.h"
11011
11012#if HAVE_DLFCN_H
11013#include <dlfcn.h>
11014#endif
11015
11016#include <stdio.h>
11017
11018#ifdef RTLD_GLOBAL
11019# define LT_DLGLOBAL RTLD_GLOBAL
11020#else
11021# ifdef DL_GLOBAL
11022# define LT_DLGLOBAL DL_GLOBAL
11023# else
11024# define LT_DLGLOBAL 0
11025# endif
11026#endif
11027
11028/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029 find out it does not work in some platform. */
11030#ifndef LT_DLLAZY_OR_NOW
11031# ifdef RTLD_LAZY
11032# define LT_DLLAZY_OR_NOW RTLD_LAZY
11033# else
11034# ifdef DL_LAZY
11035# define LT_DLLAZY_OR_NOW DL_LAZY
11036# else
11037# ifdef RTLD_NOW
11038# define LT_DLLAZY_OR_NOW RTLD_NOW
11039# else
11040# ifdef DL_NOW
11041# define LT_DLLAZY_OR_NOW DL_NOW
11042# else
11043# define LT_DLLAZY_OR_NOW 0
11044# endif
11045# endif
11046# endif
11047# endif
11048#endif
11049
43e02a8a
RW
11050/* When -fvisbility=hidden is used, assume the code has been annotated
11051 correspondingly for the symbols needed. */
11052#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053void fnord () __attribute__((visibility("default")));
11054#endif
11055
11056void fnord () { int i=42; }
1cf3d07d
SE
11057int main ()
11058{
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11061
11062 if (self)
11063 {
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11065 else
11066 {
11067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11068 else puts (dlerror ());
11069 }
1cf3d07d
SE
11070 /* dlclose (self); */
11071 }
11072 else
11073 puts (dlerror ());
11074
80c6c2cb 11075 return status;
1cf3d07d
SE
11076}
11077_LT_EOF
5213506e 11078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 11079 (eval $ac_link) 2>&5
c9b93377 11080 ac_status=$?
5213506e
RW
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11083 (./conftest; exit; ) >&5 2>/dev/null
11084 lt_status=$?
11085 case x$lt_status in
11086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11089 esac
11090 else :
11091 # compilation failed
11092 lt_cv_dlopen_self_static=no
11093 fi
11094fi
11095rm -fr conftest*
11096
11097
11098fi
5213506e
RW
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11100$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11101 fi
11102
11103 CPPFLAGS="$save_CPPFLAGS"
11104 LDFLAGS="$save_LDFLAGS"
11105 LIBS="$save_LIBS"
11106 ;;
11107 esac
11108
11109 case $lt_cv_dlopen_self in
11110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11111 *) enable_dlopen_self=unknown ;;
11112 esac
11113
11114 case $lt_cv_dlopen_self_static in
11115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11116 *) enable_dlopen_self_static=unknown ;;
11117 esac
11118fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136striplib=
11137old_striplib=
5213506e
RW
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11139$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11140if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144$as_echo "yes" >&6; }
1cf3d07d
SE
11145else
11146# FIXME - insert some real tests, host_os isn't really good enough
11147 case $host_os in
11148 darwin*)
11149 if test -n "$STRIP" ; then
11150 striplib="$STRIP -x"
11151 old_striplib="$STRIP -S"
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153$as_echo "yes" >&6; }
1cf3d07d 11154 else
5213506e
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
1cf3d07d
SE
11157 fi
11158 ;;
11159 *)
5213506e
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
1cf3d07d
SE
11162 ;;
11163 esac
11164fi
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177 # Report which library types will actually be built
5213506e
RW
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11179$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11181$as_echo "$can_build_shared" >&6; }
1cf3d07d 11182
5213506e
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11184$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11185 test "$can_build_shared" = "no" && enable_shared=no
11186
11187 # On AIX, shared libraries and static libraries use the same namespace, and
11188 # are all built from PIC.
11189 case $host_os in
11190 aix3*)
11191 test "$enable_shared" = yes && enable_static=no
11192 if test -n "$RANLIB"; then
11193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11194 postinstall_cmds='$RANLIB $lib'
11195 fi
11196 ;;
11197
95d4f544 11198 aix[4-9]*)
1cf3d07d
SE
11199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11200 test "$enable_shared" = yes && enable_static=no
11201 fi
11202 ;;
11203 esac
5213506e
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11205$as_echo "$enable_shared" >&6; }
1cf3d07d 11206
5213506e
RW
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11208$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11209 # Make sure either enable_shared or enable_static is yes.
11210 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11212$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11213
11214
11215
11216
11217fi
11218ac_ext=c
11219ac_cpp='$CPP $CPPFLAGS'
11220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222ac_compiler_gnu=$ac_cv_c_compiler_gnu
11223
11224CC="$lt_save_CC"
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
5213506e 11238 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11239
11240
11241
11242
11243# Only expand once:
11244
11245
11246
5213506e
RW
11247
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11249$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11250 # Check whether --enable-maintainer-mode was given.
11251if test "${enable_maintainer_mode+set}" = set; then :
11252 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
c9b93377 11253else
1cf3d07d 11254 USE_MAINTAINER_MODE=no
5213506e 11255fi
c9b93377 11256
5213506e
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11258$as_echo "$USE_MAINTAINER_MODE" >&6; }
11259 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11260 MAINTAINER_MODE_TRUE=
11261 MAINTAINER_MODE_FALSE='#'
11262else
11263 MAINTAINER_MODE_TRUE='#'
11264 MAINTAINER_MODE_FALSE=
c9b93377
JB
11265fi
11266
1cf3d07d
SE
11267 MAINT=$MAINTAINER_MODE_TRUE
11268
c9b93377
JB
11269
11270
c9b93377 11271for ac_header in sys/mman.h
5213506e
RW
11272do :
11273 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11274if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
c9b93377 11275 cat >>confdefs.h <<_ACEOF
5213506e 11276#define HAVE_SYS_MMAN_H 1
c9b93377
JB
11277_ACEOF
11278
11279fi
11280
11281done
11282
c9b93377 11283for ac_func in mmap
5213506e
RW
11284do :
11285 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11286if test "x$ac_cv_func_mmap" = x""yes; then :
11287 cat >>confdefs.h <<_ACEOF
11288#define HAVE_MMAP 1
c9b93377 11289_ACEOF
c9b93377 11290
5213506e
RW
11291fi
11292done
c9b93377 11293
c9b93377 11294
5213506e
RW
11295ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11296if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11297 libffi_header_sys_mman_h=yes
11298else
11299 libffi_header_sys_mman_h=no
11300fi
c9b93377 11301
c9b93377 11302
5213506e
RW
11303ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11304if test "x$ac_cv_func_mmap" = x""yes; then :
11305 libffi_func_mmap=yes
c9b93377 11306else
5213506e 11307 libffi_func_mmap=no
4d447364
MR
11308fi
11309
11310if test "$libffi_header_sys_mman_h" != yes \
11311 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
11312 ac_cv_func_mmap_file=no
11313 ac_cv_func_mmap_dev_zero=no
11314 ac_cv_func_mmap_anon=no
11315else
5213506e
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11317$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11318if test "${ac_cv_func_mmap_file+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
c9b93377
JB
11320else
11321 # Add a system to this blacklist if
11322 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11323 # memory area containing the same data that you'd get if you applied
11324 # read() to the same fd. The only system known to have a problem here
11325 # is VMS, where text files have record structure.
11326 case "$host_os" in
11327 vms* | ultrix*)
11328 ac_cv_func_mmap_file=no ;;
11329 *)
11330 ac_cv_func_mmap_file=yes;;
11331 esac
11332fi
5213506e
RW
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11334$as_echo "$ac_cv_func_mmap_file" >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11336$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11337if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
c9b93377
JB
11339else
11340 # Add a system to this blacklist if it has mmap() but /dev/zero
11341 # does not exist, or if mmapping /dev/zero does not give anonymous
11342 # zeroed pages with both the following properties:
11343 # 1. If you map N consecutive pages in with one call, and then
11344 # unmap any subset of those pages, the pages that were not
11345 # explicitly unmapped remain accessible.
11346 # 2. If you map two adjacent blocks of memory and then unmap them
11347 # both at once, they must both go away.
11348 # Systems known to be in this category are Windows (all variants),
11349 # VMS, and Darwin.
11350 case "$host_os" in
11351 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11352 ac_cv_func_mmap_dev_zero=no ;;
11353 *)
11354 ac_cv_func_mmap_dev_zero=yes;;
11355 esac
11356fi
5213506e
RW
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11358$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
c9b93377
JB
11359
11360 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5213506e
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11362$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11363if test "${ac_cv_decl_map_anon+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
c9b93377 11365else
5213506e 11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377
JB
11367/* end confdefs.h. */
11368#include <sys/types.h>
11369#include <sys/mman.h>
11370#include <unistd.h>
11371
11372#ifndef MAP_ANONYMOUS
11373#define MAP_ANONYMOUS MAP_ANON
11374#endif
11375
11376int
11377main ()
11378{
11379int n = MAP_ANONYMOUS;
11380 ;
11381 return 0;
11382}
11383_ACEOF
5213506e 11384if ac_fn_c_try_compile "$LINENO"; then :
c9b93377
JB
11385 ac_cv_decl_map_anon=yes
11386else
5213506e 11387 ac_cv_decl_map_anon=no
c9b93377 11388fi
5213506e 11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9b93377 11390fi
5213506e
RW
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11392$as_echo "$ac_cv_decl_map_anon" >&6; }
c9b93377
JB
11393
11394 if test $ac_cv_decl_map_anon = no; then
11395 ac_cv_func_mmap_anon=no
11396 else
5213506e
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11398$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11399if test "${ac_cv_func_mmap_anon+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
c9b93377
JB
11401else
11402 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11403 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11404 # doesn't give anonymous zeroed pages with the same properties listed
11405 # above for use of /dev/zero.
11406 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11407 case "$host_os" in
11408 vms* | cygwin* | pe | mingw* | sco* | udk* )
11409 ac_cv_func_mmap_anon=no ;;
11410 *)
11411 ac_cv_func_mmap_anon=yes;;
11412 esac
11413fi
5213506e
RW
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11415$as_echo "$ac_cv_func_mmap_anon" >&6; }
c9b93377
JB
11416 fi
11417fi
11418
11419if test $ac_cv_func_mmap_file = yes; then
11420
5213506e 11421$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
c9b93377
JB
11422
11423fi
11424if test $ac_cv_func_mmap_dev_zero = yes; then
11425
5213506e 11426$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
c9b93377
JB
11427
11428fi
11429if test $ac_cv_func_mmap_anon = yes; then
11430
5213506e 11431$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
c9b93377
JB
11432
11433fi
11434
11435
5213506e 11436 if test -d $srcdir/testsuite; then
c9b93377
JB
11437 TESTSUBDIR_TRUE=
11438 TESTSUBDIR_FALSE='#'
11439else
11440 TESTSUBDIR_TRUE='#'
11441 TESTSUBDIR_FALSE=
11442fi
11443
11444
11445TARGETDIR="unknown"
11446case "$host" in
b4b575ce
AG
11447 aarch64*-*-*)
11448 TARGET=AARCH64; TARGETDIR=aarch64
11449 ;;
11450
bf8da5fc
RH
11451 alpha*-*-*)
11452 TARGET=ALPHA; TARGETDIR=alpha;
0af23729 11453 # Support 128-bit long double, changeable via command-line switch.
bf8da5fc
RH
11454 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11455 ;;
11456
11457 arm*-*-*)
11458 TARGET=ARM; TARGETDIR=arm
11459 ;;
11460
cb14fcb8 11461 amd64-*-freebsd* | amd64-*-openbsd*)
b4b575ce
AG
11462 TARGET=X86_64; TARGETDIR=x86
11463 ;;
11464
11465 amd64-*-freebsd*)
2e250fa2
BK
11466 TARGET=X86_64; TARGETDIR=x86
11467 ;;
11468
124f60ab
BS
11469 avr32*-*-*)
11470 TARGET=AVR32; TARGETDIR=avr32
11471 ;;
11472
b4b575ce
AG
11473 bfin*)
11474 TARGET=BFIN; TARGETDIR=bfin
11475 ;;
11476
bf8da5fc
RH
11477 cris-*-*)
11478 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11479 ;;
11480
11481 frv-*-*)
11482 TARGET=FRV; TARGETDIR=frv
11483 ;;
11484
b4b575ce 11485 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
bf8da5fc
RH
11486 TARGET=PA_LINUX; TARGETDIR=pa
11487 ;;
11488 hppa*64-*-hpux*)
11489 TARGET=PA64_HPUX; TARGETDIR=pa
11490 ;;
11491 hppa*-*-hpux*)
11492 TARGET=PA_HPUX; TARGETDIR=pa
11493 ;;
11494
938a483f 11495 i?86-*-freebsd* | i?86-*-openbsd*)
b7b857bb
AH
11496 TARGET=X86_FREEBSD; TARGETDIR=x86
11497 ;;
b4b575ce 11498 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
bf8da5fc 11499 TARGET=X86_WIN32; TARGETDIR=x86
214dab66
DK
11500 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11501 # We must also check with_cross_host to decide if this is a native
11502 # or cross-build and select where to install dlls appropriately.
11503 if test -n "$with_cross_host" &&
11504 test x"$with_cross_host" != x"no"; then
11505 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11506 else
11507 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11508 fi
bf8da5fc
RH
11509 ;;
11510 i?86-*-darwin*)
11511 TARGET=X86_DARWIN; TARGETDIR=x86
11512 ;;
04a49983
RO
11513 i?86-*-solaris2.1[0-9]*)
11514 TARGET=X86_64; TARGETDIR=x86
11515 ;;
bf8da5fc 11516 i?86-*-*)
51a9af17 11517 TARGET=X86_64; TARGETDIR=x86
bf8da5fc
RH
11518 ;;
11519
11520 ia64*-*-*)
11521 TARGET=IA64; TARGETDIR=ia64
11522 ;;
11523
11524 m32r*-*-*)
11525 TARGET=M32R; TARGETDIR=m32r
11526 ;;
11527
11528 m68k-*-*)
11529 TARGET=M68K; TARGETDIR=m68k
11530 ;;
11531
38db4d09 11532 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
8d5c5e35 11533 TARGET=MIPS; TARGETDIR=mips
bf8da5fc 11534 ;;
b4b575ce 11535 mips*-*-linux* | mips*-*-openbsd*)
50117ecb
MK
11536 # Support 128-bit long double for NewABI.
11537 HAVE_LONG_DOUBLE='defined(__mips64)'
8d5c5e35 11538 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11539 ;;
11540
b7b857bb
AH
11541 powerpc*-*-linux* | powerpc-*-sysv*)
11542 TARGET=POWERPC; TARGETDIR=powerpc
11543 ;;
b4b575ce
AG
11544 powerpc-*-amigaos*)
11545 TARGET=POWERPC; TARGETDIR=powerpc
11546 ;;
b7b857bb 11547 powerpc-*-beos*)
bf8da5fc
RH
11548 TARGET=POWERPC; TARGETDIR=powerpc
11549 ;;
b4b575ce 11550 powerpc-*-darwin* | powerpc64-*-darwin*)
bf8da5fc
RH
11551 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11552 ;;
11553 powerpc-*-aix* | rs6000-*-aix*)
11554 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11555 ;;
b4b575ce 11556 powerpc-*-freebsd* | powerpc-*-openbsd*)
bf8da5fc
RH
11557 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11558 ;;
b4b575ce 11559 powerpc64-*-freebsd*)
87d072e0
AT
11560 TARGET=POWERPC; TARGETDIR=powerpc
11561 ;;
bf8da5fc
RH
11562 powerpc*-*-rtems*)
11563 TARGET=POWERPC; TARGETDIR=powerpc
11564 ;;
11565
11566 s390-*-* | s390x-*-*)
11567 TARGET=S390; TARGETDIR=s390
11568 ;;
11569
11570 sh-*-* | sh[34]*-*-*)
11571 TARGET=SH; TARGETDIR=sh
11572 ;;
11573 sh64-*-* | sh5*-*-*)
11574 TARGET=SH64; TARGETDIR=sh64
11575 ;;
11576
11577 sparc*-*-*)
11578 TARGET=SPARC; TARGETDIR=sparc
11579 ;;
11580
b4b575ce
AG
11581 tile*-*)
11582 TARGET=TILE; TARGETDIR=tile
11583 ;;
11584
bf8da5fc
RH
11585 x86_64-*-darwin*)
11586 TARGET=X86_DARWIN; TARGETDIR=x86
11587 ;;
fe673cc9 11588
bf8da5fc 11589 x86_64-*-cygwin* | x86_64-*-mingw*)
fe673cc9 11590 TARGET=X86_WIN64; TARGETDIR=x86
1e98f62d
KT
11591 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11592 # We must also check with_cross_host to decide if this is a native
11593 # or cross-build and select where to install dlls appropriately.
11594 if test -n "$with_cross_host" &&
11595 test x"$with_cross_host" != x"no"; then
11596 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11597 else
11598 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11599 fi
bf8da5fc 11600 ;;
fe673cc9 11601
bf8da5fc
RH
11602 x86_64-*-*)
11603 TARGET=X86_64; TARGETDIR=x86
11604 ;;
c9b93377
JB
11605esac
11606
11607
11608
a761df3d 11609
c9b93377 11610if test $TARGETDIR = unknown; then
5213506e 11611 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
c9b93377
JB
11612fi
11613
5213506e 11614 if test x$TARGET = xMIPS; then
8d5c5e35
MR
11615 MIPS_TRUE=
11616 MIPS_FALSE='#'
c9b93377 11617else
8d5c5e35
MR
11618 MIPS_TRUE='#'
11619 MIPS_FALSE=
c9b93377
JB
11620fi
11621
b4b575ce
AG
11622 if test x$TARGET = xBFIN; then
11623 BFIN_TRUE=
11624 BFIN_FALSE='#'
11625else
11626 BFIN_TRUE='#'
11627 BFIN_FALSE=
11628fi
11629
5213506e 11630 if test x$TARGET = xSPARC; then
c9b93377
JB
11631 SPARC_TRUE=
11632 SPARC_FALSE='#'
11633else
11634 SPARC_TRUE='#'
11635 SPARC_FALSE=
11636fi
11637
5213506e 11638 if test x$TARGET = xX86; then
c9b93377
JB
11639 X86_TRUE=
11640 X86_FALSE='#'
11641else
11642 X86_TRUE='#'
11643 X86_FALSE=
63e5e3e0 11644fi
c9b93377 11645
5213506e 11646 if test x$TARGET = xX86_FREEBSD; then
b7b857bb
AH
11647 X86_FREEBSD_TRUE=
11648 X86_FREEBSD_FALSE='#'
11649else
11650 X86_FREEBSD_TRUE='#'
11651 X86_FREEBSD_FALSE=
11652fi
11653
5213506e 11654 if test x$TARGET = xX86_WIN32; then
c9b93377
JB
11655 X86_WIN32_TRUE=
11656 X86_WIN32_FALSE='#'
3ed8e5b6 11657else
c9b93377
JB
11658 X86_WIN32_TRUE='#'
11659 X86_WIN32_FALSE=
11660fi
3ed8e5b6 11661
5213506e 11662 if test x$TARGET = xX86_WIN64; then
fe673cc9
AH
11663 X86_WIN64_TRUE=
11664 X86_WIN64_FALSE='#'
11665else
11666 X86_WIN64_TRUE='#'
11667 X86_WIN64_FALSE=
11668fi
11669
5213506e 11670 if test x$TARGET = xX86_DARWIN; then
a3bd50cc
PB
11671 X86_DARWIN_TRUE=
11672 X86_DARWIN_FALSE='#'
11673else
11674 X86_DARWIN_TRUE='#'
11675 X86_DARWIN_FALSE=
11676fi
11677
5213506e 11678 if test x$TARGET = xALPHA; then
c9b93377
JB
11679 ALPHA_TRUE=
11680 ALPHA_FALSE='#'
11681else
11682 ALPHA_TRUE='#'
11683 ALPHA_FALSE=
63e5e3e0 11684fi
3ed8e5b6 11685
5213506e 11686 if test x$TARGET = xIA64; then
c9b93377
JB
11687 IA64_TRUE=
11688 IA64_FALSE='#'
11689else
11690 IA64_TRUE='#'
11691 IA64_FALSE=
63e5e3e0 11692fi
3ed8e5b6 11693
5213506e 11694 if test x$TARGET = xM32R; then
a472e9d4
KI
11695 M32R_TRUE=
11696 M32R_FALSE='#'
11697else
11698 M32R_TRUE='#'
11699 M32R_FALSE=
11700fi
11701
5213506e 11702 if test x$TARGET = xM68K; then
c9b93377
JB
11703 M68K_TRUE=
11704 M68K_FALSE='#'
11705else
11706 M68K_TRUE='#'
11707 M68K_FALSE=
3ed8e5b6 11708fi
c9b93377 11709
5213506e 11710 if test x$TARGET = xPOWERPC; then
c9b93377
JB
11711 POWERPC_TRUE=
11712 POWERPC_FALSE='#'
3ed8e5b6 11713else
c9b93377
JB
11714 POWERPC_TRUE='#'
11715 POWERPC_FALSE=
3ed8e5b6 11716fi
c9b93377 11717
5213506e 11718 if test x$TARGET = xPOWERPC_AIX; then
c9b93377
JB
11719 POWERPC_AIX_TRUE=
11720 POWERPC_AIX_FALSE='#'
3ed8e5b6 11721else
c9b93377
JB
11722 POWERPC_AIX_TRUE='#'
11723 POWERPC_AIX_FALSE=
3ed8e5b6 11724fi
c9b93377 11725
5213506e 11726 if test x$TARGET = xPOWERPC_DARWIN; then
c9b93377
JB
11727 POWERPC_DARWIN_TRUE=
11728 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 11729else
c9b93377
JB
11730 POWERPC_DARWIN_TRUE='#'
11731 POWERPC_DARWIN_FALSE=
11732fi
3ed8e5b6 11733
5213506e 11734 if test x$TARGET = xPOWERPC_FREEBSD; then
97067642
AT
11735 POWERPC_FREEBSD_TRUE=
11736 POWERPC_FREEBSD_FALSE='#'
11737else
11738 POWERPC_FREEBSD_TRUE='#'
11739 POWERPC_FREEBSD_FALSE=
11740fi
11741
b4b575ce
AG
11742 if test x$TARGET = xAARCH64; then
11743 AARCH64_TRUE=
11744 AARCH64_FALSE='#'
11745else
11746 AARCH64_TRUE='#'
11747 AARCH64_FALSE=
11748fi
11749
5213506e 11750 if test x$TARGET = xARM; then
c9b93377
JB
11751 ARM_TRUE=
11752 ARM_FALSE='#'
11753else
11754 ARM_TRUE='#'
11755 ARM_FALSE=
3ed8e5b6 11756fi
3ed8e5b6 11757
124f60ab
BS
11758 if test x$TARGET = xAVR32; then
11759 AVR32_TRUE=
11760 AVR32_FALSE='#'
11761else
11762 AVR32_TRUE='#'
11763 AVR32_FALSE=
11764fi
11765
5213506e 11766 if test x$TARGET = xLIBFFI_CRIS; then
614348bb
SP
11767 LIBFFI_CRIS_TRUE=
11768 LIBFFI_CRIS_FALSE='#'
11769else
11770 LIBFFI_CRIS_TRUE='#'
11771 LIBFFI_CRIS_FALSE=
11772fi
11773
5213506e 11774 if test x$TARGET = xFRV; then
88d8c771
AG
11775 FRV_TRUE=
11776 FRV_FALSE='#'
11777else
11778 FRV_TRUE='#'
11779 FRV_FALSE=
11780fi
11781
5213506e 11782 if test x$TARGET = xS390; then
c9b93377
JB
11783 S390_TRUE=
11784 S390_FALSE='#'
3ed8e5b6 11785else
c9b93377
JB
11786 S390_TRUE='#'
11787 S390_FALSE=
3ed8e5b6 11788fi
c9b93377 11789
5213506e 11790 if test x$TARGET = xX86_64; then
c9b93377
JB
11791 X86_64_TRUE=
11792 X86_64_FALSE='#'
3ed8e5b6 11793else
c9b93377
JB
11794 X86_64_TRUE='#'
11795 X86_64_FALSE=
11796fi
3ed8e5b6 11797
5213506e 11798 if test x$TARGET = xSH; then
c9b93377
JB
11799 SH_TRUE=
11800 SH_FALSE='#'
11801else
11802 SH_TRUE='#'
11803 SH_FALSE=
63e5e3e0 11804fi
3ed8e5b6 11805
5213506e 11806 if test x$TARGET = xSH64; then
c9b93377
JB
11807 SH64_TRUE=
11808 SH64_FALSE='#'
63e5e3e0 11809else
c9b93377
JB
11810 SH64_TRUE='#'
11811 SH64_FALSE=
63e5e3e0 11812fi
63e5e3e0 11813
5213506e 11814 if test x$TARGET = xPA_LINUX; then
e6c300ef
JDA
11815 PA_LINUX_TRUE=
11816 PA_LINUX_FALSE='#'
63e5e3e0 11817else
e6c300ef
JDA
11818 PA_LINUX_TRUE='#'
11819 PA_LINUX_FALSE=
11820fi
11821
5213506e 11822 if test x$TARGET = xPA_HPUX; then
e6c300ef
JDA
11823 PA_HPUX_TRUE=
11824 PA_HPUX_FALSE='#'
11825else
11826 PA_HPUX_TRUE='#'
11827 PA_HPUX_FALSE=
11828fi
11829
5213506e 11830 if test x$TARGET = xPA64_HPUX; then
e6c300ef
JDA
11831 PA64_HPUX_TRUE=
11832 PA64_HPUX_FALSE='#'
11833else
11834 PA64_HPUX_TRUE='#'
11835 PA64_HPUX_FALSE=
3ed8e5b6 11836fi
3ed8e5b6 11837
b4b575ce
AG
11838 if test x$TARGET = xTILE; then
11839 TILE_TRUE=
11840 TILE_FALSE='#'
11841else
11842 TILE_TRUE='#'
11843 TILE_FALSE=
11844fi
11845
3ed8e5b6 11846
5213506e
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11848$as_echo_n "checking for ANSI C header files... " >&6; }
11849if test "${ac_cv_header_stdc+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
3ed8e5b6 11851else
5213506e 11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11853/* end confdefs.h. */
63e5e3e0
AG
11854#include <stdlib.h>
11855#include <stdarg.h>
11856#include <string.h>
11857#include <float.h>
3ed8e5b6
AT
11858
11859int
11860main ()
11861{
11862
11863 ;
11864 return 0;
11865}
11866_ACEOF
5213506e 11867if ac_fn_c_try_compile "$LINENO"; then :
63e5e3e0
AG
11868 ac_cv_header_stdc=yes
11869else
5213506e 11870 ac_cv_header_stdc=no
63e5e3e0 11871fi
5213506e 11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
11873
11874if test $ac_cv_header_stdc = yes; then
11875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11877/* end confdefs.h. */
63e5e3e0 11878#include <string.h>
3ed8e5b6
AT
11879
11880_ACEOF
63e5e3e0 11881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11882 $EGREP "memchr" >/dev/null 2>&1; then :
11883
63e5e3e0 11884else
63e5e3e0
AG
11885 ac_cv_header_stdc=no
11886fi
11887rm -f conftest*
11888
11889fi
11890
11891if test $ac_cv_header_stdc = yes; then
11892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11894/* end confdefs.h. */
63e5e3e0 11895#include <stdlib.h>
3ed8e5b6
AT
11896
11897_ACEOF
63e5e3e0 11898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11899 $EGREP "free" >/dev/null 2>&1; then :
11900
63e5e3e0 11901else
63e5e3e0
AG
11902 ac_cv_header_stdc=no
11903fi
11904rm -f conftest*
11905
11906fi
11907
11908if test $ac_cv_header_stdc = yes; then
11909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 11910 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11911 :
11912else
5213506e 11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11914/* end confdefs.h. */
63e5e3e0 11915#include <ctype.h>
5213506e 11916#include <stdlib.h>
3ed8e5b6
AT
11917#if ((' ' & 0x0FF) == 0x020)
11918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11920#else
11921# define ISLOWER(c) \
11922 (('a' <= (c) && (c) <= 'i') \
11923 || ('j' <= (c) && (c) <= 'r') \
11924 || ('s' <= (c) && (c) <= 'z'))
11925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11926#endif
63e5e3e0 11927
3ed8e5b6
AT
11928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11929int
11930main ()
11931{
11932 int i;
11933 for (i = 0; i < 256; i++)
11934 if (XOR (islower (i), ISLOWER (i))
11935 || toupper (i) != TOUPPER (i))
5213506e
RW
11936 return 2;
11937 return 0;
3ed8e5b6
AT
11938}
11939_ACEOF
5213506e 11940if ac_fn_c_try_run "$LINENO"; then :
3ed8e5b6 11941
5213506e
RW
11942else
11943 ac_cv_header_stdc=no
63e5e3e0 11944fi
5213506e
RW
11945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11946 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 11947fi
5213506e 11948
63e5e3e0
AG
11949fi
11950fi
5213506e
RW
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11952$as_echo "$ac_cv_header_stdc" >&6; }
63e5e3e0 11953if test $ac_cv_header_stdc = yes; then
3ed8e5b6 11954
5213506e 11955$as_echo "#define STDC_HEADERS 1" >>confdefs.h
63e5e3e0
AG
11956
11957fi
11958
11959for ac_func in memcpy
5213506e
RW
11960do :
11961 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11962if test "x$ac_cv_func_memcpy" = x""yes; then :
11963 cat >>confdefs.h <<_ACEOF
11964#define HAVE_MEMCPY 1
3ed8e5b6 11965_ACEOF
3ed8e5b6 11966
5213506e
RW
11967fi
11968done
63e5e3e0 11969
5213506e
RW
11970# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11971# for constant arguments. Useless!
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11973$as_echo_n "checking for working alloca.h... " >&6; }
11974if test "${ac_cv_working_alloca_h+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976else
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978/* end confdefs.h. */
11979#include <alloca.h>
3ed8e5b6
AT
11980int
11981main ()
11982{
5213506e
RW
11983char *p = (char *) alloca (2 * sizeof (int));
11984 if (p) return 0;
3ed8e5b6
AT
11985 ;
11986 return 0;
11987}
11988_ACEOF
5213506e 11989if ac_fn_c_try_link "$LINENO"; then :
3ed8e5b6
AT
11990 ac_cv_working_alloca_h=yes
11991else
5213506e 11992 ac_cv_working_alloca_h=no
3ed8e5b6 11993fi
5213506e
RW
11994rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
3ed8e5b6 11996fi
5213506e
RW
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11998$as_echo "$ac_cv_working_alloca_h" >&6; }
3ed8e5b6
AT
11999if test $ac_cv_working_alloca_h = yes; then
12000
5213506e 12001$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
63e5e3e0
AG
12002
12003fi
12004
5213506e
RW
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12006$as_echo_n "checking for alloca... " >&6; }
12007if test "${ac_cv_func_alloca_works+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
63e5e3e0 12009else
5213506e 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12011/* end confdefs.h. */
63e5e3e0
AG
12012#ifdef __GNUC__
12013# define alloca __builtin_alloca
12014#else
12015# ifdef _MSC_VER
12016# include <malloc.h>
12017# define alloca _alloca
12018# else
5213506e 12019# ifdef HAVE_ALLOCA_H
63e5e3e0
AG
12020# include <alloca.h>
12021# else
12022# ifdef _AIX
12023 #pragma alloca
12024# else
12025# ifndef alloca /* predefined by HP cc +Olibcalls */
12026char *alloca ();
12027# endif
12028# endif
12029# endif
12030# endif
12031#endif
12032
3ed8e5b6
AT
12033int
12034main ()
12035{
12036char *p = (char *) alloca (1);
5213506e 12037 if (p) return 0;
3ed8e5b6
AT
12038 ;
12039 return 0;
12040}
12041_ACEOF
5213506e 12042if ac_fn_c_try_link "$LINENO"; then :
63e5e3e0
AG
12043 ac_cv_func_alloca_works=yes
12044else
5213506e 12045 ac_cv_func_alloca_works=no
63e5e3e0 12046fi
5213506e
RW
12047rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 12049fi
5213506e
RW
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12051$as_echo "$ac_cv_func_alloca_works" >&6; }
63e5e3e0 12052
63e5e3e0 12053if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 12054
5213506e 12055$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
63e5e3e0 12056
3ed8e5b6 12057else
63e5e3e0 12058 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
12059# that cause trouble. Some versions do not even contain alloca or
12060# contain a buggy version. If you still want to use their alloca,
12061# use ar to extract alloca.o from them instead of compiling alloca.c.
12062
5213506e 12063ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3ed8e5b6 12064
5213506e 12065$as_echo "#define C_ALLOCA 1" >>confdefs.h
63e5e3e0
AG
12066
12067
5213506e
RW
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12069$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12070if test "${ac_cv_os_cray+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
63e5e3e0 12072else
5213506e 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12074/* end confdefs.h. */
5213506e 12075#if defined CRAY && ! defined CRAY2
63e5e3e0
AG
12076webecray
12077#else
12078wenotbecray
12079#endif
12080
3ed8e5b6 12081_ACEOF
63e5e3e0 12082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 12083 $EGREP "webecray" >/dev/null 2>&1; then :
63e5e3e0
AG
12084 ac_cv_os_cray=yes
12085else
63e5e3e0
AG
12086 ac_cv_os_cray=no
12087fi
12088rm -f conftest*
12089
12090fi
5213506e
RW
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12092$as_echo "$ac_cv_os_cray" >&6; }
63e5e3e0 12093if test $ac_cv_os_cray = yes; then
3ed8e5b6 12094 for ac_func in _getb67 GETB67 getb67; do
5213506e
RW
12095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12097eval as_val=\$$as_ac_var
12098 if test "x$as_val" = x""yes; then :
3ed8e5b6
AT
12099
12100cat >>confdefs.h <<_ACEOF
63e5e3e0 12101#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 12102_ACEOF
63e5e3e0 12103
3ed8e5b6 12104 break
63e5e3e0
AG
12105fi
12106
3ed8e5b6 12107 done
63e5e3e0
AG
12108fi
12109
5213506e
RW
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12111$as_echo_n "checking stack direction for C alloca... " >&6; }
12112if test "${ac_cv_c_stack_direction+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
63e5e3e0 12114else
5213506e 12115 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
12116 ac_cv_c_stack_direction=0
12117else
5213506e 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12119/* end confdefs.h. */
5213506e 12120$ac_includes_default
3ed8e5b6 12121int
63e5e3e0
AG
12122find_stack_direction ()
12123{
12124 static char *addr = 0;
12125 auto char dummy;
12126 if (addr == 0)
12127 {
12128 addr = &dummy;
12129 return find_stack_direction ();
12130 }
12131 else
12132 return (&dummy > addr) ? 1 : -1;
12133}
3ed8e5b6
AT
12134
12135int
63e5e3e0
AG
12136main ()
12137{
5213506e 12138 return find_stack_direction () < 0;
63e5e3e0 12139}
3ed8e5b6 12140_ACEOF
5213506e 12141if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
12142 ac_cv_c_stack_direction=1
12143else
5213506e 12144 ac_cv_c_stack_direction=-1
63e5e3e0 12145fi
5213506e
RW
12146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12147 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0
AG
12148fi
12149
5213506e
RW
12150fi
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12152$as_echo "$ac_cv_c_stack_direction" >&6; }
3ed8e5b6 12153cat >>confdefs.h <<_ACEOF
63e5e3e0 12154#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
12155_ACEOF
12156
63e5e3e0
AG
12157
12158fi
12159
12160
5213506e
RW
12161# The cast to long int works around a bug in the HP C Compiler
12162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12164# This bug is HP SR number 8606223364.
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12166$as_echo_n "checking size of double... " >&6; }
12167if test "${ac_cv_sizeof_double+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
a097ef55 12169else
5213506e
RW
12170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12171
12172else
12173 if test "$ac_cv_type_double" = yes; then
12174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12176{ as_fn_set_status 77
12177as_fn_error "cannot compute sizeof (double)
12178See \`config.log' for more details." "$LINENO" 5; }; }
12179 else
12180 ac_cv_sizeof_double=0
12181 fi
12182fi
12183
12184fi
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12186$as_echo "$ac_cv_sizeof_double" >&6; }
12187
12188
12189
12190cat >>confdefs.h <<_ACEOF
12191#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a097ef55 12192_ACEOF
5213506e
RW
12193
12194
12195# The cast to long int works around a bug in the HP C Compiler
12196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12198# This bug is HP SR number 8606223364.
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12200$as_echo_n "checking size of long double... " >&6; }
12201if test "${ac_cv_sizeof_long_double+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
a097ef55 12203else
5213506e 12204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
a097ef55 12205
5213506e
RW
12206else
12207 if test "$ac_cv_type_long_double" = yes; then
12208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12210{ as_fn_set_status 77
12211as_fn_error "cannot compute sizeof (long double)
12212See \`config.log' for more details." "$LINENO" 5; }; }
12213 else
12214 ac_cv_sizeof_long_double=0
12215 fi
a097ef55 12216fi
5213506e 12217
a097ef55 12218fi
5213506e
RW
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12220$as_echo "$ac_cv_sizeof_long_double" >&6; }
a097ef55 12221
5213506e
RW
12222
12223
12224cat >>confdefs.h <<_ACEOF
12225#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
a097ef55 12226_ACEOF
5213506e
RW
12227
12228
12229
12230# Also AC_SUBST this variable for ffi.h.
12231if test -z "$HAVE_LONG_DOUBLE"; then
12232 HAVE_LONG_DOUBLE=0
12233 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12234 if test $ac_cv_sizeof_long_double != 0; then
12235 HAVE_LONG_DOUBLE=1
12236
12237$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12238
12239 fi
12240 fi
12241fi
12242
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12245$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12246if test "${ac_cv_c_bigendian+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248else
12249 ac_cv_c_bigendian=unknown
12250 # See if we're dealing with a universal compiler.
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12252/* end confdefs.h. */
5213506e
RW
12253#ifndef __APPLE_CC__
12254 not a universal capable compiler
12255 #endif
12256 typedef int dummy;
12257
12258_ACEOF
12259if ac_fn_c_try_compile "$LINENO"; then :
12260
12261 # Check for potential -arch flags. It is not universal unless
12262 # there are at least two -arch flags with different values.
12263 ac_arch=
12264 ac_prev=
12265 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12266 if test -n "$ac_prev"; then
12267 case $ac_word in
12268 i?86 | x86_64 | ppc | ppc64)
12269 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12270 ac_arch=$ac_word
12271 else
12272 ac_cv_c_bigendian=universal
12273 break
12274 fi
12275 ;;
12276 esac
12277 ac_prev=
12278 elif test "x$ac_word" = "x-arch"; then
12279 ac_prev=arch
12280 fi
12281 done
12282fi
12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 if test $ac_cv_c_bigendian = unknown; then
12285 # See if sys/param.h defines the BYTE_ORDER macro.
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287/* end confdefs.h. */
12288#include <sys/types.h>
12289 #include <sys/param.h>
12290
a097ef55
KC
12291int
12292main ()
12293{
5213506e
RW
12294#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12295 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12296 && LITTLE_ENDIAN)
12297 bogus endian macros
12298 #endif
a097ef55
KC
12299
12300 ;
12301 return 0;
12302}
12303_ACEOF
5213506e
RW
12304if ac_fn_c_try_compile "$LINENO"; then :
12305 # It does; now see whether it defined to BIG_ENDIAN or not.
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12307/* end confdefs.h. */
5213506e
RW
12308#include <sys/types.h>
12309 #include <sys/param.h>
12310
a097ef55
KC
12311int
12312main ()
12313{
5213506e
RW
12314#if BYTE_ORDER != BIG_ENDIAN
12315 not big endian
12316 #endif
a097ef55
KC
12317
12318 ;
12319 return 0;
12320}
12321_ACEOF
5213506e
RW
12322if ac_fn_c_try_compile "$LINENO"; then :
12323 ac_cv_c_bigendian=yes
a097ef55 12324else
5213506e 12325 ac_cv_c_bigendian=no
a097ef55 12326fi
5213506e
RW
12327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328fi
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 fi
12331 if test $ac_cv_c_bigendian = unknown; then
12332 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12334/* end confdefs.h. */
5213506e
RW
12335#include <limits.h>
12336
a097ef55
KC
12337int
12338main ()
12339{
5213506e
RW
12340#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12341 bogus endian macros
12342 #endif
a097ef55
KC
12343
12344 ;
12345 return 0;
12346}
12347_ACEOF
5213506e
RW
12348if ac_fn_c_try_compile "$LINENO"; then :
12349 # It does; now see whether it defined to _BIG_ENDIAN or not.
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12351/* end confdefs.h. */
5213506e
RW
12352#include <limits.h>
12353
a097ef55
KC
12354int
12355main ()
12356{
5213506e
RW
12357#ifndef _BIG_ENDIAN
12358 not big endian
12359 #endif
a097ef55
KC
12360
12361 ;
12362 return 0;
12363}
12364_ACEOF
5213506e
RW
12365if ac_fn_c_try_compile "$LINENO"; then :
12366 ac_cv_c_bigendian=yes
a097ef55 12367else
5213506e 12368 ac_cv_c_bigendian=no
a097ef55 12369fi
5213506e 12370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12371fi
5213506e
RW
12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 if test $ac_cv_c_bigendian = unknown; then
12375 # Compile a test program.
12376 if test "$cross_compiling" = yes; then :
12377 # Try to guess by grepping values from an object file.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12379/* end confdefs.h. */
5213506e
RW
12380short int ascii_mm[] =
12381 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12382 short int ascii_ii[] =
12383 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12384 int use_ascii (int i) {
12385 return ascii_mm[i] + ascii_ii[i];
12386 }
12387 short int ebcdic_ii[] =
12388 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12389 short int ebcdic_mm[] =
12390 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12391 int use_ebcdic (int i) {
12392 return ebcdic_mm[i] + ebcdic_ii[i];
12393 }
12394 extern int foo;
12395
a097ef55
KC
12396int
12397main ()
12398{
5213506e 12399return use_ascii (foo) == use_ebcdic (foo);
a097ef55
KC
12400 ;
12401 return 0;
12402}
12403_ACEOF
5213506e
RW
12404if ac_fn_c_try_compile "$LINENO"; then :
12405 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12406 ac_cv_c_bigendian=yes
12407 fi
12408 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12409 if test "$ac_cv_c_bigendian" = unknown; then
12410 ac_cv_c_bigendian=no
12411 else
12412 # finding both strings is unlikely to happen, but who knows?
12413 ac_cv_c_bigendian=unknown
12414 fi
12415 fi
63e5e3e0 12416fi
5213506e 12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12418else
5213506e 12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55
KC
12420/* end confdefs.h. */
12421$ac_includes_default
3ed8e5b6
AT
12422int
12423main ()
12424{
3ed8e5b6 12425
5213506e
RW
12426 /* Are we little or big endian? From Harbison&Steele. */
12427 union
12428 {
12429 long int l;
12430 char c[sizeof (long int)];
12431 } u;
12432 u.l = 1;
12433 return u.c[sizeof (long int) - 1] == 1;
3ed8e5b6 12434
a097ef55
KC
12435 ;
12436 return 0;
12437}
12438_ACEOF
5213506e 12439if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
12440 ac_cv_c_bigendian=no
12441else
5213506e 12442 ac_cv_c_bigendian=yes
63e5e3e0 12443fi
5213506e
RW
12444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12445 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 12446fi
3ed8e5b6 12447
5213506e
RW
12448 fi
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12451$as_echo "$ac_cv_c_bigendian" >&6; }
12452 case $ac_cv_c_bigendian in #(
12453 yes)
12454 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12455;; #(
12456 no)
12457 ;; #(
12458 universal)
12459
12460$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12461
12462 ;; #(
12463 *)
12464 as_fn_error "unknown endianness
12465 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12466 esac
63e5e3e0
AG
12467
12468
5213506e
RW
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12470$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
8b01bdb0 12471if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
5213506e 12472 $as_echo_n "(cached) " >&6
e6fbf387
RZ
12473else
12474
8b01bdb0 12475 gcc_cv_as_cfi_pseudo_op=unknown
5213506e 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e6fbf387
RZ
12477/* end confdefs.h. */
12478asm (".cfi_startproc\n\t.cfi_endproc");
12479int
12480main ()
12481{
12482
12483 ;
12484 return 0;
12485}
12486_ACEOF
5213506e 12487if ac_fn_c_try_compile "$LINENO"; then :
8b01bdb0 12488 gcc_cv_as_cfi_pseudo_op=yes
e6fbf387 12489else
8b01bdb0 12490 gcc_cv_as_cfi_pseudo_op=no
e6fbf387 12491fi
5213506e 12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e6fbf387
RZ
12493
12494fi
8b01bdb0
RH
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12496$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12497 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
e6fbf387 12498
5213506e 12499$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
e6fbf387 12500
8b01bdb0
RH
12501 fi
12502
e6fbf387 12503
189ab118 12504if test x$TARGET = xSPARC; then
5213506e
RW
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12506$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12507if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
5d84cf0b 12509else
3ed8e5b6 12510
5d84cf0b
JJ
12511 save_CFLAGS="$CFLAGS"
12512 save_LDFLAGS="$LDFLAGS"
12513 CFLAGS="$CFLAGS -fpic"
12514 LDFLAGS="$LDFLAGS -shared"
5213506e 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12516/* end confdefs.h. */
5d84cf0b 12517asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12518int
12519main ()
12520{
5d84cf0b 12521
3ed8e5b6
AT
12522 ;
12523 return 0;
12524}
12525_ACEOF
5213506e 12526if ac_fn_c_try_link "$LINENO"; then :
5d84cf0b
JJ
12527 libffi_cv_as_sparc_ua_pcrel=yes
12528else
5213506e 12529 libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12530fi
5213506e
RW
12531rm -f core conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12533 CFLAGS="$save_CFLAGS"
12534 LDFLAGS="$save_LDFLAGS"
12535fi
5213506e
RW
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12537$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
5d84cf0b 12538 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6 12539
5213506e 12540$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
bd19c9f4
JS
12541
12542 fi
12543
5213506e
RW
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12545$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12546if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
bd19c9f4 12548else
3ed8e5b6 12549
bd19c9f4
JS
12550 libffi_cv_as_register_pseudo_op=unknown
12551 # Check if we have .register
5213506e 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12553/* end confdefs.h. */
bd19c9f4 12554asm (".register %g2, #scratch");
3ed8e5b6
AT
12555int
12556main ()
12557{
bd19c9f4 12558
3ed8e5b6
AT
12559 ;
12560 return 0;
12561}
12562_ACEOF
5213506e 12563if ac_fn_c_try_compile "$LINENO"; then :
bd19c9f4
JS
12564 libffi_cv_as_register_pseudo_op=yes
12565else
5213506e 12566 libffi_cv_as_register_pseudo_op=no
bd19c9f4 12567fi
5213506e 12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12569
3ed8e5b6 12570fi
5213506e
RW
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12572$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
bd19c9f4 12573 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6 12574
5213506e 12575$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
5d84cf0b
JJ
12576
12577 fi
12578fi
12579
8353cd27 12580if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12582$as_echo_n "checking assembler supports pc related relocs... " >&6; }
12583if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
4d3d4078
RO
12585else
12586
12587 libffi_cv_as_x86_pcrel=yes
12588 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
d416abb4 12589 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
4d3d4078
RO
12590 libffi_cv_as_x86_pcrel=no
12591 fi
12592
12593fi
5213506e
RW
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12595$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
4d3d4078
RO
12596 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12597
5213506e 12598$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
4d3d4078
RO
12599
12600 fi
d416abb4
RO
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12603$as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12604if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606else
12607
12608 libffi_cv_as_ascii_pseudo_op=unknown
12609 # Check if we have .ascii
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h. */
b62305b0 12612asm (".ascii \\"string\\"");
d416abb4
RO
12613int
12614main ()
12615{
12616
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621if ac_fn_c_try_compile "$LINENO"; then :
12622 libffi_cv_as_ascii_pseudo_op=yes
12623else
12624 libffi_cv_as_ascii_pseudo_op=no
12625fi
12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627
12628fi
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12630$as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12631 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12632
12633$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12634
12635 fi
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12638$as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12639if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641else
12642
12643 libffi_cv_as_string_pseudo_op=unknown
12644 # Check if we have .string
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h. */
b62305b0 12647asm (".string \\"string\\"");
d416abb4
RO
12648int
12649main ()
12650{
12651
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656if ac_fn_c_try_compile "$LINENO"; then :
12657 libffi_cv_as_string_pseudo_op=yes
12658else
12659 libffi_cv_as_string_pseudo_op=no
12660fi
12661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12665$as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12666 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12667
12668$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12669
12670 fi
4d3d4078
RO
12671fi
12672
b4b575ce
AG
12673# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12674# Check whether --enable-pax_emutramp was given.
12675if test "${enable_pax_emutramp+set}" = set; then :
12676 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12677
12678$as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12679
12680 fi
12681fi
12682
12683
12684FFI_EXEC_TRAMPOLINE_TABLE=0
99fba2c4 12685case "$target" in
b4b575ce
AG
12686 *arm*-apple-darwin*)
12687 FFI_EXEC_TRAMPOLINE_TABLE=1
12688
12689$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12690
12691 ;;
12692 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
99fba2c4
AT
12693
12694$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12695
12696 ;;
12697esac
b4b575ce
AG
12698 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12699 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12700 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12701else
12702 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12703 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12704fi
12705
12706
99fba2c4 12707
f4b130bb
RO
12708if test x$TARGET = xX86_64; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12710$as_echo_n "checking assembler supports unwind section type... " >&6; }
12711if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713else
12714
12715 libffi_cv_as_x86_64_unwind_section_type=yes
12716 echo '.section .eh_frame,"a",@unwind' > conftest.s
12717 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12718 libffi_cv_as_x86_64_unwind_section_type=no
12719 fi
12720
12721fi
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12723$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12724 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12725
12726$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12727
12728 fi
12729fi
12730
b4b575ce
AG
12731if test "x$GCC" = "xyes"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
5213506e
RW
12733$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12734if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
a733b15e 12736else
3ed8e5b6 12737
b4b575ce
AG
12738 libffi_cv_ro_eh_frame=no
12739 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12740 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12741 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12742 libffi_cv_ro_eh_frame=yes
12743 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12744 | grep -v '#write' > /dev/null; then
12745 libffi_cv_ro_eh_frame=yes
12746 fi
12747 fi
12748 rm -f conftest.*
a733b15e 12749
3ed8e5b6 12750fi
5213506e
RW
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12752$as_echo "$libffi_cv_ro_eh_frame" >&6; }
b4b575ce 12753 if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6 12754
5213506e 12755$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
1450eb7a 12756
3ed8e5b6 12757
5213506e 12758$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
1450eb7a 12759
b4b575ce 12760 else
3ed8e5b6 12761
5213506e 12762$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
a733b15e 12763
b4b575ce 12764 fi
a733b15e 12765
b4b575ce 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5213506e
RW
12767$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12768if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
8a42356f
JJ
12770else
12771
b4b575ce
AG
12772 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
12773 libffi_cv_hidden_visibility_attribute=no
12774 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 12775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8a42356f
JJ
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
5213506e
RW
12778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; }; }; then
b4b575ce
AG
12780 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12781 libffi_cv_hidden_visibility_attribute=yes
12782 fi
12783 fi
12784 rm -f conftest.*
8a42356f
JJ
12785
12786fi
5213506e
RW
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12788$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
b4b575ce 12789 if test $libffi_cv_hidden_visibility_attribute = yes; then
8a42356f 12790
5213506e 12791$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
8a42356f 12792
b4b575ce 12793 fi
8a42356f
JJ
12794fi
12795
12796
12797
12798
63e5e3e0
AG
12799
12800
12801
12802
5213506e
RW
12803# Check whether --enable-debug was given.
12804if test "${enable_debug+set}" = set; then :
12805 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
63e5e3e0 12806
5213506e 12807$as_echo "#define FFI_DEBUG 1" >>confdefs.h
3ed8e5b6
AT
12808
12809 fi
5213506e 12810fi
3ed8e5b6 12811
b4b575ce
AG
12812 if test "$enable_debug" = "yes"; then
12813 FFI_DEBUG_TRUE=
12814 FFI_DEBUG_FALSE='#'
12815else
12816 FFI_DEBUG_TRUE='#'
12817 FFI_DEBUG_FALSE=
12818fi
12819
3ed8e5b6 12820
5213506e
RW
12821# Check whether --enable-structs was given.
12822if test "${enable_structs+set}" = set; then :
12823 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12824
12825$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
3ed8e5b6
AT
12826
12827 fi
5213506e 12828fi
3ed8e5b6 12829
3ed8e5b6 12830
5213506e
RW
12831# Check whether --enable-raw-api was given.
12832if test "${enable_raw_api+set}" = set; then :
12833 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12834
12835$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
3ed8e5b6
AT
12836
12837 fi
5213506e 12838fi
3ed8e5b6 12839
3ed8e5b6 12840
5213506e
RW
12841# Check whether --enable-purify-safety was given.
12842if test "${enable_purify_safety+set}" = set; then :
12843 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12844
12845$as_echo "#define USING_PURIFY 1" >>confdefs.h
3ed8e5b6
AT
12846
12847 fi
5213506e
RW
12848fi
12849
3ed8e5b6
AT
12850
12851if test -n "$with_cross_host" &&
12852 test x"$with_cross_host" != x"no"; then
12853 toolexecdir='$(exec_prefix)/$(target_alias)'
12854 toolexeclibdir='$(toolexecdir)/lib'
12855else
12856 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12857 toolexeclibdir='$(libdir)'
12858fi
12859multi_os_directory=`$CC -print-multi-os-directory`
12860case $multi_os_directory in
12861 .) ;; # Avoid trailing /.
12862 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12863esac
12864
12865
12866
3ed8e5b6
AT
12867if test "${multilib}" = "yes"; then
12868 multilib_arg="--enable-multilib"
12869else
12870 multilib_arg=
12871fi
12872
5213506e 12873ac_config_commands="$ac_config_commands include"
3ed8e5b6 12874
5213506e 12875ac_config_commands="$ac_config_commands src"
3ed8e5b6
AT
12876
12877
5213506e 12878ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
3ed8e5b6
AT
12879
12880
5213506e 12881ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
3ed8e5b6
AT
12882
12883
12884cat >confcache <<\_ACEOF
12885# This file is a shell script that caches the results of configure
12886# tests run on this system so they can be shared between configure
12887# scripts and configure runs, see configure's option --config-cache.
12888# It is not useful on other systems. If it contains results you don't
12889# want to keep, you may remove or edit it.
12890#
12891# config.status only pays attention to the cache file if you give it
12892# the --recheck option to rerun configure.
12893#
12894# `ac_cv_env_foo' variables (set or unset) will be overridden when
12895# loading this file, other *unset* `ac_cv_foo' will be assigned the
12896# following values.
12897
12898_ACEOF
12899
12900# The following way of writing the cache mishandles newlines in values,
12901# but we know of no workaround that is simple, portable, and efficient.
5213506e 12902# So, we kill variables containing newlines.
3ed8e5b6
AT
12903# Ultrix sh set writes to stderr and can't be redirected directly,
12904# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
12905(
12906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12907 eval ac_val=\$$ac_var
12908 case $ac_val in #(
12909 *${as_nl}*)
12910 case $ac_var in #(
12911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12912$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12913 esac
12914 case $ac_var in #(
12915 _ | IFS | as_nl) ;; #(
12916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12917 *) { eval $ac_var=; unset $ac_var;} ;;
12918 esac ;;
12919 esac
12920 done
12921
3ed8e5b6 12922 (set) 2>&1 |
5213506e
RW
12923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12924 *${as_nl}ac_space=\ *)
12925 # `set' does not quote correctly, so add quotes: double-quote
12926 # substitution turns \\\\ into \\, and sed turns \\ into \.
3ed8e5b6
AT
12927 sed -n \
12928 "s/'/'\\\\''/g;
12929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 12930 ;; #(
3ed8e5b6
AT
12931 *)
12932 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 12933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 12934 ;;
5213506e
RW
12935 esac |
12936 sort
12937) |
3ed8e5b6 12938 sed '
5213506e 12939 /^ac_cv_env_/b end
3ed8e5b6 12940 t clear
5213506e 12941 :clear
3ed8e5b6
AT
12942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12943 t end
5213506e
RW
12944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12945 :end' >>confcache
12946if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12947 if test -w "$cache_file"; then
12948 test "x$cache_file" != "x/dev/null" &&
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12950$as_echo "$as_me: updating cache $cache_file" >&6;}
3ed8e5b6
AT
12951 cat confcache >$cache_file
12952 else
5213506e
RW
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12954$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3ed8e5b6
AT
12955 fi
12956fi
12957rm -f confcache
12958
12959test "x$prefix" = xNONE && prefix=$ac_default_prefix
12960# Let make expand exec_prefix.
12961test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12962
3ed8e5b6
AT
12963DEFS=-DHAVE_CONFIG_H
12964
12965ac_libobjs=
12966ac_ltlibobjs=
12967for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12968 # 1. Remove the extension, and $U if already installed.
5213506e
RW
12969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12972 # will be set to the directory where LIBOBJS objects are built.
12973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3ed8e5b6
AT
12975done
12976LIBOBJS=$ac_libobjs
12977
12978LTLIBOBJS=$ac_ltlibobjs
12979
12980
5213506e
RW
12981 if test -n "$EXEEXT"; then
12982 am__EXEEXT_TRUE=
12983 am__EXEEXT_FALSE='#'
12984else
12985 am__EXEEXT_TRUE='#'
12986 am__EXEEXT_FALSE=
12987fi
12988
4e70f25f
AS
12989if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12990 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12991Usually this means the macro was only invoked conditionally." "$LINENO" 5
12992fi
12993if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12994 as_fn_error "conditional \"GENINSRC\" was never defined.
12995Usually this means the macro was only invoked conditionally." "$LINENO" 5
12996fi
3ed8e5b6 12997if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
12998 as_fn_error "conditional \"AMDEP\" was never defined.
12999Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13000fi
13001if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
13002 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13003Usually this means the macro was only invoked conditionally." "$LINENO" 5
13004fi
13005if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13006 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13007Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13008fi
13009if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
13010 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13011Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13012fi
13013if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
13014 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
13015Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13016fi
8d5c5e35 13017if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
5213506e
RW
13018 as_fn_error "conditional \"MIPS\" was never defined.
13019Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13020fi
b4b575ce
AG
13021if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13022 as_fn_error "conditional \"BFIN\" was never defined.
13023Usually this means the macro was only invoked conditionally." "$LINENO" 5
13024fi
3ed8e5b6 13025if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
5213506e
RW
13026 as_fn_error "conditional \"SPARC\" was never defined.
13027Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13028fi
13029if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
5213506e
RW
13030 as_fn_error "conditional \"X86\" was never defined.
13031Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13032fi
b7b857bb 13033if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
5213506e
RW
13034 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
13035Usually this means the macro was only invoked conditionally." "$LINENO" 5
b7b857bb 13036fi
3ed8e5b6 13037if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
5213506e
RW
13038 as_fn_error "conditional \"X86_WIN32\" was never defined.
13039Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13040fi
fe673cc9 13041if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
5213506e
RW
13042 as_fn_error "conditional \"X86_WIN64\" was never defined.
13043Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe673cc9 13044fi
a3bd50cc 13045if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
5213506e
RW
13046 as_fn_error "conditional \"X86_DARWIN\" was never defined.
13047Usually this means the macro was only invoked conditionally." "$LINENO" 5
a3bd50cc 13048fi
3ed8e5b6 13049if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
5213506e
RW
13050 as_fn_error "conditional \"ALPHA\" was never defined.
13051Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13052fi
13053if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
5213506e
RW
13054 as_fn_error "conditional \"IA64\" was never defined.
13055Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13056fi
a472e9d4 13057if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
5213506e
RW
13058 as_fn_error "conditional \"M32R\" was never defined.
13059Usually this means the macro was only invoked conditionally." "$LINENO" 5
a472e9d4 13060fi
3ed8e5b6 13061if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
5213506e
RW
13062 as_fn_error "conditional \"M68K\" was never defined.
13063Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13064fi
13065if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
5213506e
RW
13066 as_fn_error "conditional \"POWERPC\" was never defined.
13067Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13068fi
13069if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
5213506e
RW
13070 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
13071Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13072fi
13073if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
13074 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
13075Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13076fi
97067642 13077if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
5213506e
RW
13078 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
13079Usually this means the macro was only invoked conditionally." "$LINENO" 5
97067642 13080fi
b4b575ce
AG
13081if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
13082 as_fn_error "conditional \"AARCH64\" was never defined.
13083Usually this means the macro was only invoked conditionally." "$LINENO" 5
13084fi
3ed8e5b6 13085if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
5213506e
RW
13086 as_fn_error "conditional \"ARM\" was never defined.
13087Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13088fi
124f60ab
BS
13089if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13090 as_fn_error "conditional \"AVR32\" was never defined.
13091Usually this means the macro was only invoked conditionally." "$LINENO" 5
13092fi
614348bb 13093if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
5213506e
RW
13094 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
13095Usually this means the macro was only invoked conditionally." "$LINENO" 5
614348bb 13096fi
88d8c771 13097if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
5213506e
RW
13098 as_fn_error "conditional \"FRV\" was never defined.
13099Usually this means the macro was only invoked conditionally." "$LINENO" 5
88d8c771 13100fi
3ed8e5b6 13101if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
5213506e
RW
13102 as_fn_error "conditional \"S390\" was never defined.
13103Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13104fi
13105if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
5213506e
RW
13106 as_fn_error "conditional \"X86_64\" was never defined.
13107Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13108fi
13109if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
5213506e
RW
13110 as_fn_error "conditional \"SH\" was never defined.
13111Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
13112fi
13113if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
5213506e
RW
13114 as_fn_error "conditional \"SH64\" was never defined.
13115Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 13116fi
e6c300ef 13117if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
5213506e
RW
13118 as_fn_error "conditional \"PA_LINUX\" was never defined.
13119Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
13120fi
13121if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
5213506e
RW
13122 as_fn_error "conditional \"PA_HPUX\" was never defined.
13123Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
13124fi
13125if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
5213506e
RW
13126 as_fn_error "conditional \"PA64_HPUX\" was never defined.
13127Usually this means the macro was only invoked conditionally." "$LINENO" 5
d65a810f 13128fi
b4b575ce
AG
13129if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13130 as_fn_error "conditional \"TILE\" was never defined.
13131Usually this means the macro was only invoked conditionally." "$LINENO" 5
13132fi
3ed8e5b6 13133
b4b575ce
AG
13134if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13135 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13136Usually this means the macro was only invoked conditionally." "$LINENO" 5
13137fi
13138if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13139 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13140Usually this means the macro was only invoked conditionally." "$LINENO" 5
13141fi
5213506e 13142
3ed8e5b6 13143: ${CONFIG_STATUS=./config.status}
5213506e 13144ac_write_fail=0
3ed8e5b6
AT
13145ac_clean_files_save=$ac_clean_files
13146ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13148$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13149as_write_fail=0
13150cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3ed8e5b6
AT
13151#! $SHELL
13152# Generated by $as_me.
13153# Run this file to recreate the current configuration.
13154# Compiler output produced by configure, useful for debugging
13155# configure, is in config.log if it exists.
13156
13157debug=false
13158ac_cs_recheck=false
13159ac_cs_silent=false
3ed8e5b6 13160
5213506e
RW
13161SHELL=\${CONFIG_SHELL-$SHELL}
13162export SHELL
13163_ASEOF
13164cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13165## -------------------- ##
13166## M4sh Initialization. ##
13167## -------------------- ##
13168
13169# Be more Bourne compatible
13170DUALCASE=1; export DUALCASE # for MKS sh
13171if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
13172 emulate sh
13173 NULLCMD=:
5213506e 13174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
13175 # is contrary to our usage. Disable this feature.
13176 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
13177 setopt NO_GLOB_SUBST
13178else
13179 case `(set -o) 2>/dev/null` in #(
13180 *posix*) :
13181 set -o posix ;; #(
13182 *) :
13183 ;;
13184esac
3ed8e5b6 13185fi
3ed8e5b6 13186
5213506e
RW
13187
13188as_nl='
13189'
13190export as_nl
13191# Printing a long string crashes Solaris 7 /usr/bin/printf.
13192as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13193as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13194as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13195# Prefer a ksh shell builtin over an external printf program on Solaris,
13196# but without wasting forks for bash or zsh.
13197if test -z "$BASH_VERSION$ZSH_VERSION" \
13198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13199 as_echo='print -r --'
13200 as_echo_n='print -rn --'
13201elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13202 as_echo='printf %s\n'
13203 as_echo_n='printf %s'
13204else
13205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13206 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13207 as_echo_n='/usr/ucb/echo -n'
13208 else
13209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13210 as_echo_n_body='eval
13211 arg=$1;
13212 case $arg in #(
13213 *"$as_nl"*)
13214 expr "X$arg" : "X\\(.*\\)$as_nl";
13215 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13216 esac;
13217 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13218 '
13219 export as_echo_n_body
13220 as_echo_n='sh -c $as_echo_n_body as_echo'
13221 fi
13222 export as_echo_body
13223 as_echo='sh -c $as_echo_body as_echo'
13224fi
13225
13226# The user is always right.
13227if test "${PATH_SEPARATOR+set}" != set; then
13228 PATH_SEPARATOR=:
13229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13231 PATH_SEPARATOR=';'
13232 }
3ed8e5b6
AT
13233fi
13234
13235
5213506e
RW
13236# IFS
13237# We need space, tab and new line, in precisely that order. Quoting is
13238# there to prevent editors from complaining about space-tab.
13239# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13240# splitting by setting IFS to empty value.)
13241IFS=" "" $as_nl"
13242
13243# Find who we are. Look in the path if we contain no directory separator.
13244case $0 in #((
13245 *[\\/]* ) as_myself=$0 ;;
13246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13252 done
13253IFS=$as_save_IFS
13254
13255 ;;
13256esac
13257# We did not find ourselves, most probably we were run as `sh COMMAND'
13258# in which case we are not to be found in the path.
13259if test "x$as_myself" = x; then
13260 as_myself=$0
13261fi
13262if test ! -f "$as_myself"; then
13263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13264 exit 1
13265fi
13266
13267# Unset variables that we do not need and which cause bugs (e.g. in
13268# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13269# suppresses any "Segmentation fault" message there. '((' could
13270# trigger a bug in pdksh 5.2.14.
13271for as_var in BASH_ENV ENV MAIL MAILPATH
13272do eval test x\${$as_var+set} = xset \
13273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13274done
3ed8e5b6
AT
13275PS1='$ '
13276PS2='> '
13277PS4='+ '
13278
13279# NLS nuisances.
5213506e
RW
13280LC_ALL=C
13281export LC_ALL
13282LANGUAGE=C
13283export LANGUAGE
13284
13285# CDPATH.
13286(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13287
13288
13289# as_fn_error ERROR [LINENO LOG_FD]
13290# ---------------------------------
13291# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13292# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13293# script with status $?, using 1 if that was 0.
13294as_fn_error ()
13295{
13296 as_status=$?; test $as_status -eq 0 && as_status=1
13297 if test "$3"; then
13298 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3ed8e5b6 13300 fi
5213506e
RW
13301 $as_echo "$as_me: error: $1" >&2
13302 as_fn_exit $as_status
13303} # as_fn_error
13304
13305
13306# as_fn_set_status STATUS
13307# -----------------------
13308# Set $? to STATUS, without forking.
13309as_fn_set_status ()
13310{
13311 return $1
13312} # as_fn_set_status
13313
13314# as_fn_exit STATUS
13315# -----------------
13316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13317as_fn_exit ()
13318{
13319 set +e
13320 as_fn_set_status $1
13321 exit $1
13322} # as_fn_exit
13323
13324# as_fn_unset VAR
13325# ---------------
13326# Portably unset VAR.
13327as_fn_unset ()
13328{
13329 { eval $1=; unset $1;}
13330}
13331as_unset=as_fn_unset
13332# as_fn_append VAR VALUE
13333# ----------------------
13334# Append the text in VALUE to the end of the definition contained in VAR. Take
13335# advantage of any shell optimizations that allow amortized linear growth over
13336# repeated appends, instead of the typical quadratic growth present in naive
13337# implementations.
13338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13339 eval 'as_fn_append ()
13340 {
13341 eval $1+=\$2
13342 }'
13343else
13344 as_fn_append ()
13345 {
13346 eval $1=\$$1\$2
13347 }
13348fi # as_fn_append
13349
13350# as_fn_arith ARG...
13351# ------------------
13352# Perform arithmetic evaluation on the ARGs, and store the result in the
13353# global $as_val. Take advantage of shells that can avoid forks. The arguments
13354# must be portable across $(()) and expr.
13355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13356 eval 'as_fn_arith ()
13357 {
13358 as_val=$(( $* ))
13359 }'
13360else
13361 as_fn_arith ()
13362 {
13363 as_val=`expr "$@" || test $? -eq 1`
13364 }
13365fi # as_fn_arith
13366
3ed8e5b6 13367
5213506e
RW
13368if expr a : '\(a\)' >/dev/null 2>&1 &&
13369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
13370 as_expr=expr
13371else
13372 as_expr=false
13373fi
13374
5213506e 13375if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
13376 as_basename=basename
13377else
13378 as_basename=false
13379fi
13380
5213506e
RW
13381if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13382 as_dirname=dirname
13383else
13384 as_dirname=false
13385fi
3ed8e5b6 13386
5213506e 13387as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
13388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13389 X"$0" : 'X\(//\)$' \| \
5213506e
RW
13390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13391$as_echo X/"$0" |
13392 sed '/^.*\/\([^/][^/]*\)\/*$/{
13393 s//\1/
13394 q
13395 }
13396 /^X\/\(\/\/\)$/{
13397 s//\1/
13398 q
13399 }
13400 /^X\/\(\/\).*/{
13401 s//\1/
13402 q
13403 }
13404 s/.*/./; q'`
3ed8e5b6 13405
3ed8e5b6
AT
13406# Avoid depending upon Character Ranges.
13407as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13408as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13409as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13410as_cr_digits='0123456789'
13411as_cr_alnum=$as_cr_Letters$as_cr_digits
13412
5213506e
RW
13413ECHO_C= ECHO_N= ECHO_T=
13414case `echo -n x` in #(((((
13415-n*)
13416 case `echo 'xy\c'` in
13417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13418 xy) ECHO_C='\c';;
13419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13420 ECHO_T=' ';;
13421 esac;;
13422*)
13423 ECHO_N='-n';;
3ed8e5b6
AT
13424esac
13425
5213506e
RW
13426rm -f conf$$ conf$$.exe conf$$.file
13427if test -d conf$$.dir; then
13428 rm -f conf$$.dir/conf$$.file
3ed8e5b6 13429else
5213506e
RW
13430 rm -f conf$$.dir
13431 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 13432fi
5213506e
RW
13433if (echo >conf$$.file) 2>/dev/null; then
13434 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 13435 as_ln_s='ln -s'
5213506e
RW
13436 # ... but there are two gotchas:
13437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13439 # In both cases, we have to default to `cp -p'.
13440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13441 as_ln_s='cp -p'
13442 elif ln conf$$.file conf$$ 2>/dev/null; then
13443 as_ln_s=ln
13444 else
13445 as_ln_s='cp -p'
7d45b968 13446 fi
3ed8e5b6
AT
13447else
13448 as_ln_s='cp -p'
13449fi
5213506e
RW
13450rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13451rmdir conf$$.dir 2>/dev/null
13452
13453
13454# as_fn_mkdir_p
13455# -------------
13456# Create "$as_dir" as a directory, including parents if necessary.
13457as_fn_mkdir_p ()
13458{
13459
13460 case $as_dir in #(
13461 -*) as_dir=./$as_dir;;
13462 esac
13463 test -d "$as_dir" || eval $as_mkdir_p || {
13464 as_dirs=
13465 while :; do
13466 case $as_dir in #(
13467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13468 *) as_qdir=$as_dir;;
13469 esac
13470 as_dirs="'$as_qdir' $as_dirs"
13471 as_dir=`$as_dirname -- "$as_dir" ||
13472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13473 X"$as_dir" : 'X\(//\)[^/]' \| \
13474 X"$as_dir" : 'X\(//\)$' \| \
13475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13476$as_echo X"$as_dir" |
13477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13478 s//\1/
13479 q
13480 }
13481 /^X\(\/\/\)[^/].*/{
13482 s//\1/
13483 q
13484 }
13485 /^X\(\/\/\)$/{
13486 s//\1/
13487 q
13488 }
13489 /^X\(\/\).*/{
13490 s//\1/
13491 q
13492 }
13493 s/.*/./; q'`
13494 test -d "$as_dir" && break
13495 done
13496 test -z "$as_dirs" || eval "mkdir $as_dirs"
13497 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13498
3ed8e5b6 13499
5213506e 13500} # as_fn_mkdir_p
3ed8e5b6 13501if mkdir -p . 2>/dev/null; then
5213506e 13502 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
13503else
13504 test -d ./-p && rmdir ./-p
13505 as_mkdir_p=false
63e5e3e0
AG
13506fi
13507
5213506e
RW
13508if test -x / >/dev/null 2>&1; then
13509 as_test_x='test -x'
13510else
13511 if ls -dL / >/dev/null 2>&1; then
13512 as_ls_L_option=L
13513 else
13514 as_ls_L_option=
13515 fi
13516 as_test_x='
13517 eval sh -c '\''
13518 if test -d "$1"; then
13519 test -d "$1/.";
13520 else
13521 case $1 in #(
13522 -*)set "./$1";;
13523 esac;
13524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13525 ???[sx]*):;;*)false;;esac;fi
13526 '\'' sh
13527 '
13528fi
13529as_executable_p=$as_test_x
3ed8e5b6
AT
13530
13531# Sed expression to map a string onto a valid CPP name.
13532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13533
13534# Sed expression to map a string onto a valid variable name.
13535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13536
13537
3ed8e5b6 13538exec 6>&1
5213506e
RW
13539## ----------------------------------- ##
13540## Main body of $CONFIG_STATUS script. ##
13541## ----------------------------------- ##
13542_ASEOF
13543test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13544
13545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13546# Save the log message, to keep $0 and so on meaningful, and to
3ed8e5b6 13547# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
13548# values after options handling.
13549ac_log="
b4b575ce 13550This file was extended by libffi $as_me 3.0.11, which was
5213506e 13551generated by GNU Autoconf 2.64. Invocation command line was
63e5e3e0 13552
3ed8e5b6
AT
13553 CONFIG_FILES = $CONFIG_FILES
13554 CONFIG_HEADERS = $CONFIG_HEADERS
13555 CONFIG_LINKS = $CONFIG_LINKS
13556 CONFIG_COMMANDS = $CONFIG_COMMANDS
13557 $ $0 $@
63e5e3e0 13558
5213506e
RW
13559on `(hostname || uname -n) 2>/dev/null | sed 1q`
13560"
13561
3ed8e5b6 13562_ACEOF
63e5e3e0 13563
5213506e
RW
13564case $ac_config_files in *"
13565"*) set x $ac_config_files; shift; ac_config_files=$*;;
13566esac
63e5e3e0 13567
5213506e
RW
13568case $ac_config_headers in *"
13569"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13570esac
63e5e3e0 13571
63e5e3e0 13572
5213506e
RW
13573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13574# Files that config.status was made for.
13575config_files="$ac_config_files"
13576config_headers="$ac_config_headers"
13577config_links="$ac_config_links"
13578config_commands="$ac_config_commands"
63e5e3e0 13579
5213506e 13580_ACEOF
63e5e3e0 13581
5213506e 13582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13583ac_cs_usage="\
5213506e
RW
13584\`$as_me' instantiates files and other configuration actions
13585from templates according to the current configuration. Unless the files
13586and actions are specified as TAGs, all are instantiated by default.
db2cd5e6 13587
5213506e 13588Usage: $0 [OPTION]... [TAG]...
db2cd5e6 13589
3ed8e5b6 13590 -h, --help print this help, then exit
5213506e
RW
13591 -V, --version print version number and configuration settings, then exit
13592 -q, --quiet, --silent
13593 do not print progress messages
3ed8e5b6
AT
13594 -d, --debug don't remove temporary files
13595 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
13596 --file=FILE[:TEMPLATE]
13597 instantiate the configuration file FILE
13598 --header=FILE[:TEMPLATE]
13599 instantiate the configuration header FILE
0721f64e 13600
3ed8e5b6
AT
13601Configuration files:
13602$config_files
ea81d2a3 13603
3ed8e5b6
AT
13604Configuration headers:
13605$config_headers
ea81d2a3 13606
3ed8e5b6
AT
13607Configuration links:
13608$config_links
ea81d2a3 13609
3ed8e5b6
AT
13610Configuration commands:
13611$config_commands
ea81d2a3 13612
5213506e 13613Report bugs to <http://gcc.gnu.org/bugs.html>."
3c18f2d1 13614
5213506e
RW
13615_ACEOF
13616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13617ac_cs_version="\\
b4b575ce 13618libffi config.status 3.0.11
5213506e
RW
13619configured by $0, generated by GNU Autoconf 2.64,
13620 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3ed8e5b6 13621
5213506e 13622Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
13623This config.status script is free software; the Free Software Foundation
13624gives unlimited permission to copy, distribute and modify it."
5213506e
RW
13625
13626ac_pwd='$ac_pwd'
13627srcdir='$srcdir'
13628INSTALL='$INSTALL'
13629MKDIR_P='$MKDIR_P'
13630AWK='$AWK'
13631test -n "\$AWK" || AWK=awk
3ed8e5b6
AT
13632_ACEOF
13633
5213506e
RW
13634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635# The default lists apply if the user does not specify any file.
3ed8e5b6
AT
13636ac_need_defaults=:
13637while test $# != 0
13638do
13639 case $1 in
13640 --*=*)
5213506e
RW
13641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3ed8e5b6 13643 ac_shift=:
63e5e3e0 13644 ;;
5213506e 13645 *)
3ed8e5b6
AT
13646 ac_option=$1
13647 ac_optarg=$2
13648 ac_shift=shift
63e5e3e0 13649 ;;
3ed8e5b6
AT
13650 esac
13651
13652 case $ac_option in
13653 # Handling of the options.
3ed8e5b6
AT
13654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13655 ac_cs_recheck=: ;;
5213506e
RW
13656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13657 $as_echo "$ac_cs_version"; exit ;;
13658 --debug | --debu | --deb | --de | --d | -d )
3ed8e5b6
AT
13659 debug=: ;;
13660 --file | --fil | --fi | --f )
13661 $ac_shift
5213506e
RW
13662 case $ac_optarg in
13663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13664 esac
13665 as_fn_append CONFIG_FILES " '$ac_optarg'"
3ed8e5b6
AT
13666 ac_need_defaults=false;;
13667 --header | --heade | --head | --hea )
13668 $ac_shift
5213506e
RW
13669 case $ac_optarg in
13670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13671 esac
13672 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3ed8e5b6 13673 ac_need_defaults=false;;
5213506e
RW
13674 --he | --h)
13675 # Conflict between --help and --header
13676 as_fn_error "ambiguous option: \`$1'
13677Try \`$0 --help' for more information.";;
13678 --help | --hel | -h )
13679 $as_echo "$ac_cs_usage"; exit ;;
3ed8e5b6
AT
13680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13682 ac_cs_silent=: ;;
63e5e3e0 13683
3ed8e5b6 13684 # This is an error.
5213506e
RW
13685 -*) as_fn_error "unrecognized option: \`$1'
13686Try \`$0 --help' for more information." ;;
63e5e3e0 13687
5213506e
RW
13688 *) as_fn_append ac_config_targets " $1"
13689 ac_need_defaults=false ;;
63e5e3e0 13690
3ed8e5b6
AT
13691 esac
13692 shift
13693done
63e5e3e0 13694
3ed8e5b6 13695ac_configure_extra_args=
63e5e3e0 13696
3ed8e5b6
AT
13697if $ac_cs_silent; then
13698 exec 6>/dev/null
13699 ac_configure_extra_args="$ac_configure_extra_args --silent"
13700fi
63e5e3e0 13701
3ed8e5b6 13702_ACEOF
5213506e 13703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13704if \$ac_cs_recheck; then
5213506e
RW
13705 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13706 shift
13707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13708 CONFIG_SHELL='$SHELL'
13709 export CONFIG_SHELL
13710 exec "\$@"
3ed8e5b6 13711fi
63e5e3e0 13712
3ed8e5b6 13713_ACEOF
5213506e
RW
13714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715exec 5>>config.log
13716{
13717 echo
13718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13719## Running $as_me. ##
13720_ASBOX
13721 $as_echo "$ac_log"
13722} >&5
13723
13724_ACEOF
13725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63e5e3e0 13726#
5213506e 13727# INIT-COMMANDS
63e5e3e0 13728#
63e5e3e0 13729
3ed8e5b6
AT
13730srcdir="$srcdir"
13731host="$host"
13732target="$target"
13733with_multisubdir="$with_multisubdir"
13734with_multisrctop="$with_multisrctop"
13735with_target_subdir="$with_target_subdir"
13736ac_configure_args="${multilib_arg} ${ac_configure_args}"
13737multi_basedir="$multi_basedir"
13738CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13739CC="$CC"
fe673cc9
AH
13740CXX="$CXX"
13741GFORTRAN="$GFORTRAN"
13742GCJ="$GCJ"
3ed8e5b6 13743AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13744
13745
13746# The HP-UX ksh and POSIX shell print the target directory to stdout
13747# if CDPATH is set.
13748(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13749
13750sed_quote_subst='$sed_quote_subst'
13751double_quote_subst='$double_quote_subst'
13752delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
13753macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13754macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13755enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13756enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13757pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13758enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13759SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13760ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13761host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13762host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13763host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13764build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13765build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13766build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13767SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13768Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13769GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13770EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13771FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13772LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13773NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13774LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13775max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13776ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13777exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13778lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13779lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13780lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13781reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13782reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13783OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13784deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13785file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13786AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13787AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13788STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13789RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13790old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13791old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13792old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13793lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13794CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13795CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13796compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13797GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13798lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13799lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13800lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13801lt_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"`'
13802objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13803MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13804lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13805lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13806lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13807lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13808lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13809need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13810DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13811NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13812LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13813OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13814OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13815libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13816shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13817extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13818archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13819enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13820export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13821whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13822compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13823old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13824old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13825archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13826archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13827module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13828module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13829with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13830allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13831no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13832hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13833hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13834hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13835hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13836hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13837hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13838hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13839hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13840inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13841link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13842fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13843always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13844export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13845exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13846include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13847prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13848file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13849variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13850need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13851need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13852version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13853runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13854shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13855shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13856libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13857library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13858soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13859install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13860postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13861postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13862finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13863finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13864hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13865sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13866sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13867hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13868enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13869enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13870enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13871old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13872striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
13873
13874LTCC='$LTCC'
13875LTCFLAGS='$LTCFLAGS'
13876compiler='$compiler_DEFAULT'
13877
43e02a8a
RW
13878# A function that is used when there is no print builtin or printf.
13879func_fallback_echo ()
13880{
13881 eval 'cat <<_LTECHO_EOF
13882\$1
13883_LTECHO_EOF'
13884}
13885
1cf3d07d 13886# Quote evaled strings.
43e02a8a
RW
13887for var in SHELL \
13888ECHO \
13889SED \
1cf3d07d
SE
13890GREP \
13891EGREP \
13892FGREP \
13893LD \
13894NM \
13895LN_S \
13896lt_SP2NL \
13897lt_NL2SP \
13898reload_flag \
80c6c2cb 13899OBJDUMP \
1cf3d07d
SE
13900deplibs_check_method \
13901file_magic_cmd \
13902AR \
13903AR_FLAGS \
13904STRIP \
13905RANLIB \
13906CC \
13907CFLAGS \
13908compiler \
13909lt_cv_sys_global_symbol_pipe \
13910lt_cv_sys_global_symbol_to_cdecl \
13911lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 13912lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
13913lt_prog_compiler_no_builtin_flag \
13914lt_prog_compiler_wl \
13915lt_prog_compiler_pic \
13916lt_prog_compiler_static \
13917lt_cv_prog_compiler_c_o \
13918need_locks \
80c6c2cb
PG
13919DSYMUTIL \
13920NMEDIT \
13921LIPO \
13922OTOOL \
13923OTOOL64 \
1cf3d07d
SE
13924shrext_cmds \
13925export_dynamic_flag_spec \
13926whole_archive_flag_spec \
13927compiler_needs_object \
13928with_gnu_ld \
13929allow_undefined_flag \
13930no_undefined_flag \
13931hardcode_libdir_flag_spec \
13932hardcode_libdir_flag_spec_ld \
13933hardcode_libdir_separator \
13934fix_srcfile_path \
13935exclude_expsyms \
13936include_expsyms \
13937file_list_spec \
13938variables_saved_for_relink \
13939libname_spec \
13940library_names_spec \
13941soname_spec \
43e02a8a 13942install_override_mode \
1cf3d07d
SE
13943finish_eval \
13944old_striplib \
13945striplib; do
43e02a8a 13946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13947 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13949 ;;
13950 *)
13951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13952 ;;
13953 esac
13954done
13955
13956# Double-quote double-evaled strings.
13957for var in reload_cmds \
13958old_postinstall_cmds \
13959old_postuninstall_cmds \
13960old_archive_cmds \
13961extract_expsyms_cmds \
13962old_archive_from_new_cmds \
13963old_archive_from_expsyms_cmds \
13964archive_cmds \
13965archive_expsym_cmds \
13966module_cmds \
13967module_expsym_cmds \
13968export_symbols_cmds \
13969prelink_cmds \
13970postinstall_cmds \
13971postuninstall_cmds \
13972finish_cmds \
13973sys_lib_search_path_spec \
13974sys_lib_dlsearch_path_spec; do
43e02a8a 13975 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13976 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13977 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13978 ;;
13979 *)
13980 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13981 ;;
13982 esac
13983done
13984
1cf3d07d
SE
13985ac_aux_dir='$ac_aux_dir'
13986xsi_shell='$xsi_shell'
13987lt_shell_append='$lt_shell_append'
13988
13989# See if we are running on zsh, and set the options which allow our
13990# commands through without removal of \ escapes INIT.
13991if test -n "\${ZSH_VERSION+set}" ; then
13992 setopt NO_GLOB_SUBST
13993fi
13994
13995
13996 PACKAGE='$PACKAGE'
13997 VERSION='$VERSION'
13998 TIMESTAMP='$TIMESTAMP'
13999 RM='$RM'
14000 ofile='$ofile'
14001
14002
14003
3ed8e5b6
AT
14004TARGETDIR="$TARGETDIR"
14005
14006_ACEOF
14007
5213506e 14008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 14009
5213506e 14010# Handling of arguments.
3ed8e5b6 14011for ac_config_target in $ac_config_targets
63e5e3e0 14012do
5213506e
RW
14013 case $ac_config_target in
14014 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14015 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14017 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14018 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14019 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14020 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14021 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14022 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14023 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14024 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14025 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14026
14027 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
63e5e3e0
AG
14028 esac
14029done
14030
5213506e 14031
3ed8e5b6
AT
14032# If the user did not use the arguments to specify the items to instantiate,
14033# then the envvar interface is used. Set only those that are not.
14034# We use the long form for the default assignment because of an extremely
14035# bizarre bug on SunOS 4.1.3.
14036if $ac_need_defaults; then
14037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14039 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14041fi
14042
14043# Have a temporary directory for convenience. Make it in the build tree
5213506e 14044# simply because there is no reason against having it here, and in addition,
3ed8e5b6 14045# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14046# Hook for its removal unless debugging.
14047# Note that there is a small window in which the directory will not be cleaned:
14048# after its creation but before its name has been assigned to `$tmp'.
3ed8e5b6
AT
14049$debug ||
14050{
5213506e
RW
14051 tmp=
14052 trap 'exit_status=$?
14053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14054' 0
14055 trap 'as_fn_exit 1' 1 2 13 15
3ed8e5b6 14056}
3ed8e5b6 14057# Create a (secure) tmp directory for tmp files.
63e5e3e0 14058
3ed8e5b6 14059{
5213506e 14060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3ed8e5b6
AT
14061 test -n "$tmp" && test -d "$tmp"
14062} ||
14063{
5213506e
RW
14064 tmp=./conf$$-$RANDOM
14065 (umask 077 && mkdir "$tmp")
14066} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14067
14068# Set up the scripts for CONFIG_FILES section.
14069# No need to generate them if there are no CONFIG_FILES.
14070# This happens for instance with `./config.status config.h'.
14071if test -n "$CONFIG_FILES"; then
14072
14073
14074ac_cr=`echo X | tr X '\015'`
14075# On cygwin, bash can eat \r inside `` if the user requested igncr.
14076# But we know of no other shell where ac_cr would be empty at this
14077# point, so we can use a bashism as a fallback.
14078if test "x$ac_cr" = x; then
14079 eval ac_cr=\$\'\\r\'
14080fi
14081ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14082if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14083 ac_cs_awk_cr='\r'
14084else
14085 ac_cs_awk_cr=$ac_cr
14086fi
14087
14088echo 'BEGIN {' >"$tmp/subs1.awk" &&
14089_ACEOF
14090
14091
3ed8e5b6 14092{
5213506e
RW
14093 echo "cat >conf$$subs.awk <<_ACEOF" &&
14094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14095 echo "_ACEOF"
14096} >conf$$subs.sh ||
14097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14098ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14099ac_delim='%!_!# '
14100for ac_last_try in false false false false false :; do
14101 . ./conf$$subs.sh ||
14102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14103
14104 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14105 if test $ac_delim_n = $ac_delim_num; then
14106 break
14107 elif $ac_last_try; then
14108 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14109 else
14110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14111 fi
14112done
14113rm -f conf$$subs.sh
14114
14115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14117_ACEOF
14118sed -n '
14119h
14120s/^/S["/; s/!.*/"]=/
14121p
14122g
14123s/^[^!]*!//
14124:repl
14125t repl
14126s/'"$ac_delim"'$//
14127t delim
14128:nl
14129h
14130s/\(.\{148\}\).*/\1/
14131t more1
14132s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14133p
14134n
14135b repl
14136:more1
14137s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14138p
14139g
14140s/.\{148\}//
14141t nl
14142:delim
14143h
14144s/\(.\{148\}\).*/\1/
14145t more2
14146s/["\\]/\\&/g; s/^/"/; s/$/"/
14147p
14148b
14149:more2
14150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14151p
14152g
14153s/.\{148\}//
14154t delim
14155' <conf$$subs.awk | sed '
14156/^[^""]/{
14157 N
14158 s/\n//
3ed8e5b6 14159}
5213506e
RW
14160' >>$CONFIG_STATUS || ac_write_fail=1
14161rm -f conf$$subs.awk
14162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14163_ACAWK
14164cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14165 for (key in S) S_is_set[key] = 1
14166 FS = "\a"
3ed8e5b6 14167
5213506e
RW
14168}
14169{
14170 line = $ 0
14171 nfields = split(line, field, "@")
14172 substed = 0
14173 len = length(field[1])
14174 for (i = 2; i < nfields; i++) {
14175 key = field[i]
14176 keylen = length(key)
14177 if (S_is_set[key]) {
14178 value = S[key]
14179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14180 len += length(value) + length(field[++i])
14181 substed = 1
14182 } else
14183 len += 1 + keylen
14184 }
3ed8e5b6 14185
5213506e
RW
14186 print line
14187}
3ed8e5b6 14188
5213506e
RW
14189_ACAWK
14190_ACEOF
14191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14193 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14194else
14195 cat
14196fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14197 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14198_ACEOF
14199
14200# VPATH may cause trouble with some makes, so we remove $(srcdir),
14201# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14202# trailing colons and then remove the whole line if VPATH becomes empty
14203# (actually we leave an empty line to preserve line numbers).
14204if test "x$srcdir" = x.; then
14205 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14206s/:*\$(srcdir):*/:/
14207s/:*\${srcdir}:*/:/
14208s/:*@srcdir@:*/:/
14209s/^\([^=]*=[ ]*\):*/\1/
14210s/:*$//
14211s/^[^=]*=[ ]*$//
14212}'
14213fi
63e5e3e0 14214
5213506e
RW
14215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216fi # test -n "$CONFIG_FILES"
63e5e3e0 14217
5213506e
RW
14218# Set up the scripts for CONFIG_HEADERS section.
14219# No need to generate them if there are no CONFIG_HEADERS.
14220# This happens for instance with `./config.status Makefile'.
14221if test -n "$CONFIG_HEADERS"; then
14222cat >"$tmp/defines.awk" <<\_ACAWK ||
14223BEGIN {
3ed8e5b6
AT
14224_ACEOF
14225
5213506e
RW
14226# Transform confdefs.h into an awk script `defines.awk', embedded as
14227# here-document in config.status, that substitutes the proper values into
14228# config.h.in to produce config.h.
14229
14230# Create a delimiter string that does not exist in confdefs.h, to ease
14231# handling of long lines.
14232ac_delim='%!_!# '
14233for ac_last_try in false false :; do
14234 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14235 if test -z "$ac_t"; then
14236 break
14237 elif $ac_last_try; then
14238 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14239 else
14240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63e5e3e0 14241 fi
5213506e 14242done
63e5e3e0 14243
5213506e
RW
14244# For the awk script, D is an array of macro values keyed by name,
14245# likewise P contains macro parameters if any. Preserve backslash
14246# newline sequences.
14247
14248ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14249sed -n '
14250s/.\{148\}/&'"$ac_delim"'/g
14251t rset
14252:rset
14253s/^[ ]*#[ ]*define[ ][ ]*/ /
14254t def
14255d
14256:def
14257s/\\$//
14258t bsnl
14259s/["\\]/\\&/g
14260s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14261D["\1"]=" \3"/p
14262s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14263d
14264:bsnl
14265s/["\\]/\\&/g
14266s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14267D["\1"]=" \3\\\\\\n"\\/p
14268t cont
14269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14270t cont
14271d
14272:cont
14273n
14274s/.\{148\}/&'"$ac_delim"'/g
14275t clear
14276:clear
14277s/\\$//
14278t bsnlc
14279s/["\\]/\\&/g; s/^/"/; s/$/"/p
14280d
14281:bsnlc
14282s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14283b cont
14284' <confdefs.h | sed '
14285s/'"$ac_delim"'/"\\\
14286"/g' >>$CONFIG_STATUS || ac_write_fail=1
14287
14288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289 for (key in D) D_is_set[key] = 1
14290 FS = "\a"
14291}
14292/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14293 line = \$ 0
14294 split(line, arg, " ")
14295 if (arg[1] == "#") {
14296 defundef = arg[2]
14297 mac1 = arg[3]
14298 } else {
14299 defundef = substr(arg[1], 2)
14300 mac1 = arg[2]
14301 }
14302 split(mac1, mac2, "(") #)
14303 macro = mac2[1]
14304 prefix = substr(line, 1, index(line, defundef) - 1)
14305 if (D_is_set[macro]) {
14306 # Preserve the white space surrounding the "#".
14307 print prefix "define", macro P[macro] D[macro]
14308 next
14309 } else {
14310 # Replace #undef with comments. This is necessary, for example,
14311 # in the case of _POSIX_SOURCE, which is predefined and required
14312 # on some systems where configure will not decide to define it.
14313 if (defundef == "undef") {
14314 print "/*", prefix defundef, macro, "*/"
14315 next
14316 }
14317 }
14318}
14319{ print }
14320_ACAWK
3ed8e5b6 14321_ACEOF
5213506e
RW
14322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14324fi # test -n "$CONFIG_HEADERS"
14325
14326
14327eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14328shift
14329for ac_tag
14330do
14331 case $ac_tag in
14332 :[FHLC]) ac_mode=$ac_tag; continue;;
14333 esac
14334 case $ac_mode$ac_tag in
14335 :[FHL]*:*);;
14336 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14337 :[FH]-) ac_tag=-:-;;
14338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14339 esac
14340 ac_save_IFS=$IFS
14341 IFS=:
14342 set x $ac_tag
14343 IFS=$ac_save_IFS
14344 shift
14345 ac_file=$1
14346 shift
14347
14348 case $ac_mode in
14349 :L) ac_source=$1;;
14350 :[FH])
14351 ac_file_inputs=
14352 for ac_f
14353 do
14354 case $ac_f in
14355 -) ac_f="$tmp/stdin";;
14356 *) # Look for the file first in the build tree, then in the source tree
14357 # (if the path is not absolute). The absolute path cannot be DOS-style,
14358 # because $ac_f cannot contain `:'.
14359 test -f "$ac_f" ||
14360 case $ac_f in
14361 [\\/$]*) false;;
14362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14363 esac ||
14364 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14365 esac
14366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14367 as_fn_append ac_file_inputs " '$ac_f'"
14368 done
14369
14370 # Let's still pretend it is `configure' which instantiates (i.e., don't
14371 # use $as_me), people would be surprised to read:
14372 # /* config.h. Generated by config.status. */
14373 configure_input='Generated from '`
14374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14375 `' by configure.'
14376 if test x"$ac_file" != x-; then
14377 configure_input="$ac_file. $configure_input"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14379$as_echo "$as_me: creating $ac_file" >&6;}
14380 fi
14381 # Neutralize special characters interpreted by sed in replacement strings.
14382 case $configure_input in #(
14383 *\&* | *\|* | *\\* )
14384 ac_sed_conf_input=`$as_echo "$configure_input" |
14385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14386 *) ac_sed_conf_input=$configure_input;;
14387 esac
14388
14389 case $ac_tag in
14390 *:-:* | *:-) cat >"$tmp/stdin" \
14391 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14392 esac
14393 ;;
63e5e3e0
AG
14394 esac
14395
5213506e 14396 ac_dir=`$as_dirname -- "$ac_file" ||
3ed8e5b6
AT
14397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14398 X"$ac_file" : 'X\(//\)[^/]' \| \
14399 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14401$as_echo X"$ac_file" |
14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14403 s//\1/
14404 q
14405 }
14406 /^X\(\/\/\)[^/].*/{
14407 s//\1/
14408 q
14409 }
14410 /^X\(\/\/\)$/{
14411 s//\1/
14412 q
14413 }
14414 /^X\(\/\).*/{
14415 s//\1/
14416 q
14417 }
14418 s/.*/./; q'`
14419 as_dir="$ac_dir"; as_fn_mkdir_p
3ed8e5b6
AT
14420 ac_builddir=.
14421
5213506e
RW
14422case "$ac_dir" in
14423.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14424*)
14425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14426 # A ".." for each directory in $ac_dir_suffix.
14427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14428 case $ac_top_builddir_sub in
14429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14431 esac ;;
14432esac
14433ac_abs_top_builddir=$ac_pwd
14434ac_abs_builddir=$ac_pwd$ac_dir_suffix
14435# for backward compatibility:
14436ac_top_builddir=$ac_top_build_prefix
63e5e3e0 14437
3ed8e5b6 14438case $srcdir in
5213506e 14439 .) # We are building in place.
3ed8e5b6 14440 ac_srcdir=.
5213506e
RW
14441 ac_top_srcdir=$ac_top_builddir_sub
14442 ac_abs_top_srcdir=$ac_pwd ;;
14443 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 14444 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14445 ac_top_srcdir=$srcdir
14446 ac_abs_top_srcdir=$srcdir ;;
14447 *) # Relative name.
14448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14449 ac_top_srcdir=$ac_top_build_prefix$srcdir
14450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 14451esac
5213506e 14452ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3ed8e5b6 14453
63e5e3e0 14454
5213506e
RW
14455 case $ac_mode in
14456 :F)
14457 #
14458 # CONFIG_FILE
14459 #
63e5e3e0 14460
3ed8e5b6
AT
14461 case $INSTALL in
14462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
14463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14464 esac
14465 ac_MKDIR_P=$MKDIR_P
14466 case $MKDIR_P in
14467 [\\/$]* | ?:[\\/]* ) ;;
14468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
63e5e3e0 14469 esac
5213506e 14470_ACEOF
63e5e3e0 14471
5213506e
RW
14472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473# If the template does not know about datarootdir, expand it.
14474# FIXME: This hack should be removed a few years after 2.60.
14475ac_datarootdir_hack=; ac_datarootdir_seen=
14476ac_sed_dataroot='
14477/datarootdir/ {
14478 p
14479 q
14480}
14481/@datadir@/p
14482/@docdir@/p
14483/@infodir@/p
14484/@localedir@/p
14485/@mandir@/p'
14486case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14487*datarootdir*) ac_datarootdir_seen=yes;;
14488*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14490$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14491_ACEOF
14492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14493 ac_datarootdir_hack='
14494 s&@datadir@&$datadir&g
14495 s&@docdir@&$docdir&g
14496 s&@infodir@&$infodir&g
14497 s&@localedir@&$localedir&g
14498 s&@mandir@&$mandir&g
14499 s&\\\${datarootdir}&$datarootdir&g' ;;
14500esac
3ed8e5b6 14501_ACEOF
5213506e
RW
14502
14503# Neutralize VPATH when `$srcdir' = `.'.
14504# Shell code in configure.ac might set extrasub.
14505# FIXME: do we really want to maintain this feature?
14506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507ac_sed_extra="$ac_vpsub
3ed8e5b6
AT
14508$extrasub
14509_ACEOF
5213506e 14510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6
AT
14511:t
14512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14513s|@configure_input@|$ac_sed_conf_input|;t t
14514s&@top_builddir@&$ac_top_builddir_sub&;t t
14515s&@top_build_prefix@&$ac_top_build_prefix&;t t
14516s&@srcdir@&$ac_srcdir&;t t
14517s&@abs_srcdir@&$ac_abs_srcdir&;t t
14518s&@top_srcdir@&$ac_top_srcdir&;t t
14519s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14520s&@builddir@&$ac_builddir&;t t
14521s&@abs_builddir@&$ac_abs_builddir&;t t
14522s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14523s&@INSTALL@&$ac_INSTALL&;t t
14524s&@MKDIR_P@&$ac_MKDIR_P&;t t
14525$ac_datarootdir_hack
14526"
14527eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14528 || as_fn_error "could not create $ac_file" "$LINENO" 5
14529
14530test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14531 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14534which seems to be undefined. Please make sure it is defined." >&5
14535$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14536which seems to be undefined. Please make sure it is defined." >&2;}
14537
14538 rm -f "$tmp/stdin"
3ed8e5b6 14539 case $ac_file in
5213506e
RW
14540 -) cat "$tmp/out" && rm -f "$tmp/out";;
14541 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14542 esac \
14543 || as_fn_error "could not create $ac_file" "$LINENO" 5
14544 ;;
14545 :H)
14546 #
14547 # CONFIG_HEADER
14548 #
3ed8e5b6 14549 if test x"$ac_file" != x-; then
5213506e
RW
14550 {
14551 $as_echo "/* $configure_input */" \
14552 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14553 } >"$tmp/config.h" \
14554 || as_fn_error "could not create $ac_file" "$LINENO" 5
14555 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14557$as_echo "$as_me: $ac_file is unchanged" >&6;}
3ed8e5b6 14558 else
5213506e
RW
14559 rm -f "$ac_file"
14560 mv "$tmp/config.h" "$ac_file" \
14561 || as_fn_error "could not create $ac_file" "$LINENO" 5
3ed8e5b6
AT
14562 fi
14563 else
5213506e
RW
14564 $as_echo "/* $configure_input */" \
14565 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14566 || as_fn_error "could not create -" "$LINENO" 5
3ed8e5b6 14567 fi
5213506e
RW
14568# Compute "$ac_file"'s index in $config_headers.
14569_am_arg="$ac_file"
3ed8e5b6
AT
14570_am_stamp_count=1
14571for _am_header in $config_headers :; do
14572 case $_am_header in
5213506e 14573 $_am_arg | $_am_arg:* )
3ed8e5b6
AT
14574 break ;;
14575 * )
14576 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14577 esac
14578done
5213506e
RW
14579echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14580$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$_am_arg" : 'X\(//\)[^/]' \| \
14582 X"$_am_arg" : 'X\(//\)$' \| \
14583 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14584$as_echo X"$_am_arg" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\/\)$/{
14594 s//\1/
14595 q
14596 }
14597 /^X\(\/\).*/{
14598 s//\1/
14599 q
14600 }
14601 s/.*/./; q'`/stamp-h$_am_stamp_count
14602 ;;
14603 :L)
14604 #
14605 # CONFIG_LINK
14606 #
1450eb7a 14607
5213506e
RW
14608 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14609 :
1450eb7a 14610 else
5213506e
RW
14611 # Prefer the file from the source tree if names are identical.
14612 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14613 ac_source=$srcdir/$ac_source
14614 fi
3ed8e5b6 14615
5213506e
RW
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14617$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
3ed8e5b6 14618
5213506e
RW
14619 if test ! -r "$ac_source"; then
14620 as_fn_error "$ac_source: file not found" "$LINENO" 5
14621 fi
14622 rm -f "$ac_file"
1450eb7a 14623
5213506e
RW
14624 # Try a relative symlink, then a hard link, then a copy.
14625 case $srcdir in
14626 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14627 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14628 esac
14629 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14630 ln "$ac_source" "$ac_file" 2>/dev/null ||
14631 cp -p "$ac_source" "$ac_file" ||
14632 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14633 fi
14634 ;;
14635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14636$as_echo "$as_me: executing $ac_file commands" >&6;}
14637 ;;
1450eb7a
AT
14638 esac
14639
63e5e3e0 14640
5213506e
RW
14641 case $ac_file$ac_mode in
14642 "default-1":C)
3ed8e5b6
AT
14643# Only add multilib support code if we just rebuilt the top-level
14644# Makefile.
14645case " $CONFIG_FILES " in
14646 *" Makefile "*)
14647 ac_file=Makefile . ${multi_basedir}/config-ml.in
14648 ;;
14649esac ;;
5213506e
RW
14650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14651 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14652 # are listed without --file. Let's play safe and only enable the eval
14653 # if we detect the quoting.
14654 case $CONFIG_FILES in
14655 *\'*) eval set x "$CONFIG_FILES" ;;
14656 *) set x $CONFIG_FILES ;;
14657 esac
14658 shift
14659 for mf
14660 do
14661 # Strip MF so we end up with the name of the file.
14662 mf=`echo "$mf" | sed -e 's/:.*$//'`
14663 # Check whether this is an Automake generated Makefile or not.
14664 # We used to match only the files named `Makefile.in', but
14665 # some people rename them; so instead we look at the file content.
14666 # Grep'ing the first line is not enough: some people post-process
14667 # each Makefile.in and add a new line on top of each file to say so.
14668 # Grep'ing the whole file is not good either: AIX grep has a line
14669 # limit of 2048, but all sed's we know have understand at least 4000.
14670 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14671 dirpart=`$as_dirname -- "$mf" ||
3ed8e5b6
AT
14672$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$mf" : 'X\(//\)[^/]' \| \
14674 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
14675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14676$as_echo X"$mf" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678 s//\1/
14679 q
14680 }
14681 /^X\(\/\/\)[^/].*/{
14682 s//\1/
14683 q
14684 }
14685 /^X\(\/\/\)$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\).*/{
14690 s//\1/
14691 q
14692 }
14693 s/.*/./; q'`
14694 else
14695 continue
14696 fi
14697 # Extract the definition of DEPDIR, am__include, and am__quote
14698 # from the Makefile without running `make'.
14699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14700 test -z "$DEPDIR" && continue
14701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14702 test -z "am__include" && continue
14703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14704 # When using ansi2knr, U may be empty or an underscore; expand it
14705 U=`sed -n 's/^U = //p' < "$mf"`
14706 # Find all dependency output files, they are included files with
14707 # $(DEPDIR) in their names. We invoke sed twice because it is the
14708 # simplest approach to changing $(DEPDIR) to its actual value in the
14709 # expansion.
14710 for file in `sed -n "
14711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14713 # Make sure the directory exists.
14714 test -f "$dirpart/$file" && continue
14715 fdir=`$as_dirname -- "$file" ||
3ed8e5b6
AT
14716$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14717 X"$file" : 'X\(//\)[^/]' \| \
14718 X"$file" : 'X\(//\)$' \| \
5213506e
RW
14719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14720$as_echo X"$file" |
14721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\(\/\/\)[^/].*/{
14726 s//\1/
14727 q
14728 }
14729 /^X\(\/\/\)$/{
14730 s//\1/
14731 q
14732 }
14733 /^X\(\/\).*/{
14734 s//\1/
14735 q
14736 }
14737 s/.*/./; q'`
14738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14739 # echo "creating $dirpart/$file"
14740 echo '# dummy' > "$dirpart/$file"
3ed8e5b6 14741 done
3ed8e5b6 14742 done
5213506e 14743}
1cf3d07d 14744 ;;
5213506e 14745 "libtool":C)
1cf3d07d
SE
14746
14747 # See if we are running on zsh, and set the options which allow our
14748 # commands through without removal of \ escapes.
14749 if test -n "${ZSH_VERSION+set}" ; then
14750 setopt NO_GLOB_SUBST
14751 fi
14752
14753 cfgfile="${ofile}T"
14754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14755 $RM "$cfgfile"
14756
14757 cat <<_LT_EOF >> "$cfgfile"
14758#! $SHELL
14759
14760# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 14761# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
14762# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14763# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14764#
80c6c2cb 14765# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 14766# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
80c6c2cb 14767# Written by Gordon Matzigkeit, 1996
1cf3d07d 14768#
80c6c2cb 14769# This file is part of GNU Libtool.
1cf3d07d 14770#
80c6c2cb
PG
14771# GNU Libtool is free software; you can redistribute it and/or
14772# modify it under the terms of the GNU General Public License as
14773# published by the Free Software Foundation; either version 2 of
14774# the License, or (at your option) any later version.
1cf3d07d 14775#
80c6c2cb
PG
14776# As a special exception to the GNU General Public License,
14777# if you distribute this file as part of a program or library that
14778# is built using GNU Libtool, you may include this file under the
14779# same distribution terms that you use for the rest of that program.
1cf3d07d 14780#
80c6c2cb
PG
14781# GNU Libtool is distributed in the hope that it will be useful,
14782# but WITHOUT ANY WARRANTY; without even the implied warranty of
14783# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14784# GNU General Public License for more details.
1cf3d07d 14785#
80c6c2cb
PG
14786# You should have received a copy of the GNU General Public License
14787# along with GNU Libtool; see the file COPYING. If not, a copy
14788# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14789# obtained by writing to the Free Software Foundation, Inc.,
14790# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
14791
14792
14793# The names of the tagged configurations supported by this script.
14794available_tags=""
14795
14796# ### BEGIN LIBTOOL CONFIG
14797
14798# Which release of libtool.m4 was used?
14799macro_version=$macro_version
14800macro_revision=$macro_revision
14801
14802# Whether or not to build shared libraries.
14803build_libtool_libs=$enable_shared
14804
14805# Whether or not to build static libraries.
14806build_old_libs=$enable_static
14807
14808# What type of objects to build.
14809pic_mode=$pic_mode
14810
14811# Whether or not to optimize for fast installation.
14812fast_install=$enable_fast_install
14813
43e02a8a
RW
14814# Shell to use when invoking shell scripts.
14815SHELL=$lt_SHELL
14816
14817# An echo program that protects backslashes.
14818ECHO=$lt_ECHO
14819
1cf3d07d
SE
14820# The host system.
14821host_alias=$host_alias
14822host=$host
14823host_os=$host_os
14824
14825# The build system.
14826build_alias=$build_alias
14827build=$build
14828build_os=$build_os
14829
14830# A sed program that does not truncate output.
14831SED=$lt_SED
14832
14833# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14834Xsed="\$SED -e 1s/^X//"
14835
14836# A grep program that handles long lines.
14837GREP=$lt_GREP
14838
14839# An ERE matcher.
14840EGREP=$lt_EGREP
14841
14842# A literal string matcher.
14843FGREP=$lt_FGREP
14844
14845# A BSD- or MS-compatible name lister.
14846NM=$lt_NM
14847
14848# Whether we need soft or hard links.
14849LN_S=$lt_LN_S
14850
14851# What is the maximum length of a command?
14852max_cmd_len=$max_cmd_len
14853
14854# Object file suffix (normally "o").
14855objext=$ac_objext
14856
14857# Executable file suffix (normally "").
14858exeext=$exeext
14859
14860# whether the shell understands "unset".
14861lt_unset=$lt_unset
14862
14863# turn spaces into newlines.
14864SP2NL=$lt_lt_SP2NL
14865
14866# turn newlines into spaces.
14867NL2SP=$lt_lt_NL2SP
14868
80c6c2cb
PG
14869# An object symbol dumper.
14870OBJDUMP=$lt_OBJDUMP
14871
1cf3d07d
SE
14872# Method to check whether dependent libraries are shared objects.
14873deplibs_check_method=$lt_deplibs_check_method
14874
14875# Command to use when deplibs_check_method == "file_magic".
14876file_magic_cmd=$lt_file_magic_cmd
14877
14878# The archiver.
14879AR=$lt_AR
14880AR_FLAGS=$lt_AR_FLAGS
14881
14882# A symbol stripping program.
14883STRIP=$lt_STRIP
14884
14885# Commands used to install an old-style archive.
14886RANLIB=$lt_RANLIB
14887old_postinstall_cmds=$lt_old_postinstall_cmds
14888old_postuninstall_cmds=$lt_old_postuninstall_cmds
14889
43e02a8a
RW
14890# Whether to use a lock for old archive extraction.
14891lock_old_archive_extraction=$lock_old_archive_extraction
14892
1cf3d07d
SE
14893# A C compiler.
14894LTCC=$lt_CC
14895
14896# LTCC compiler flags.
14897LTCFLAGS=$lt_CFLAGS
14898
14899# Take the output of nm and produce a listing of raw symbols and C names.
14900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14901
14902# Transform the output of nm in a proper C declaration.
14903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14904
14905# Transform the output of nm in a C name address pair.
14906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14907
80c6c2cb
PG
14908# Transform the output of nm in a C name address pair when lib prefix is needed.
14909global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14910
1cf3d07d
SE
14911# The name of the directory that contains temporary libtool files.
14912objdir=$objdir
14913
1cf3d07d
SE
14914# Used to examine libraries when file_magic_cmd begins with "file".
14915MAGIC_CMD=$MAGIC_CMD
14916
14917# Must we lock files when doing compilation?
14918need_locks=$lt_need_locks
14919
80c6c2cb
PG
14920# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14921DSYMUTIL=$lt_DSYMUTIL
14922
14923# Tool to change global to local symbols on Mac OS X.
14924NMEDIT=$lt_NMEDIT
14925
14926# Tool to manipulate fat objects and archives on Mac OS X.
14927LIPO=$lt_LIPO
14928
14929# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14930OTOOL=$lt_OTOOL
14931
14932# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14933OTOOL64=$lt_OTOOL64
14934
1cf3d07d
SE
14935# Old archive suffix (normally "a").
14936libext=$libext
14937
14938# Shared library suffix (normally ".so").
14939shrext_cmds=$lt_shrext_cmds
14940
14941# The commands to extract the exported symbol list from a shared archive.
14942extract_expsyms_cmds=$lt_extract_expsyms_cmds
14943
14944# Variables whose values should be saved in libtool wrapper scripts and
14945# restored at link time.
14946variables_saved_for_relink=$lt_variables_saved_for_relink
14947
14948# Do we need the "lib" prefix for modules?
14949need_lib_prefix=$need_lib_prefix
14950
14951# Do we need a version for libraries?
14952need_version=$need_version
14953
14954# Library versioning type.
14955version_type=$version_type
14956
14957# Shared library runtime path variable.
14958runpath_var=$runpath_var
14959
14960# Shared library path variable.
14961shlibpath_var=$shlibpath_var
14962
14963# Is shlibpath searched before the hard-coded library search path?
14964shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14965
14966# Format of library name prefix.
14967libname_spec=$lt_libname_spec
14968
14969# List of archive names. First name is the real one, the rest are links.
14970# The last name is the one that the linker finds with -lNAME
14971library_names_spec=$lt_library_names_spec
14972
14973# The coded name of the library, if different from the real name.
14974soname_spec=$lt_soname_spec
14975
43e02a8a
RW
14976# Permission mode override for installation of shared libraries.
14977install_override_mode=$lt_install_override_mode
14978
1cf3d07d
SE
14979# Command to use after installation of a shared archive.
14980postinstall_cmds=$lt_postinstall_cmds
14981
14982# Command to use after uninstallation of a shared archive.
14983postuninstall_cmds=$lt_postuninstall_cmds
14984
14985# Commands used to finish a libtool library installation in a directory.
14986finish_cmds=$lt_finish_cmds
14987
14988# As "finish_cmds", except a single script fragment to be evaled but
14989# not shown.
14990finish_eval=$lt_finish_eval
14991
14992# Whether we should hardcode library paths into libraries.
14993hardcode_into_libs=$hardcode_into_libs
14994
14995# Compile-time system search path for libraries.
14996sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14997
14998# Run-time system search path for libraries.
14999sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15000
15001# Whether dlopen is supported.
15002dlopen_support=$enable_dlopen
15003
15004# Whether dlopen of programs is supported.
15005dlopen_self=$enable_dlopen_self
15006
15007# Whether dlopen of statically linked programs is supported.
15008dlopen_self_static=$enable_dlopen_self_static
15009
15010# Commands to strip libraries.
15011old_striplib=$lt_old_striplib
15012striplib=$lt_striplib
15013
15014
15015# The linker used to build libraries.
15016LD=$lt_LD
15017
43e02a8a
RW
15018# How to create reloadable object files.
15019reload_flag=$lt_reload_flag
15020reload_cmds=$lt_reload_cmds
15021
1cf3d07d
SE
15022# Commands used to build an old-style archive.
15023old_archive_cmds=$lt_old_archive_cmds
15024
15025# A language specific compiler.
15026CC=$lt_compiler
15027
15028# Is the compiler the GNU compiler?
15029with_gcc=$GCC
15030
15031# Compiler flag to turn off builtin functions.
15032no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15033
15034# How to pass a linker flag through the compiler.
15035wl=$lt_lt_prog_compiler_wl
15036
15037# Additional compiler flags for building library objects.
15038pic_flag=$lt_lt_prog_compiler_pic
15039
15040# Compiler flag to prevent dynamic linking.
15041link_static_flag=$lt_lt_prog_compiler_static
15042
15043# Does compiler simultaneously support -c and -o options?
15044compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15045
15046# Whether or not to add -lc for building shared libraries.
15047build_libtool_need_lc=$archive_cmds_need_lc
15048
15049# Whether or not to disallow shared libs when runtime libs are static.
15050allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15051
15052# Compiler flag to allow reflexive dlopens.
15053export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15054
15055# Compiler flag to generate shared objects directly from archives.
15056whole_archive_flag_spec=$lt_whole_archive_flag_spec
15057
15058# Whether the compiler copes with passing no objects directly.
15059compiler_needs_object=$lt_compiler_needs_object
15060
15061# Create an old-style archive from a shared archive.
15062old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15063
15064# Create a temporary old-style archive to link instead of a shared archive.
15065old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15066
15067# Commands used to build a shared archive.
15068archive_cmds=$lt_archive_cmds
15069archive_expsym_cmds=$lt_archive_expsym_cmds
15070
15071# Commands used to build a loadable module if different from building
15072# a shared archive.
15073module_cmds=$lt_module_cmds
15074module_expsym_cmds=$lt_module_expsym_cmds
15075
15076# Whether we are building with GNU ld or not.
15077with_gnu_ld=$lt_with_gnu_ld
15078
15079# Flag that allows shared libraries with undefined symbols to be built.
15080allow_undefined_flag=$lt_allow_undefined_flag
15081
15082# Flag that enforces no undefined symbols.
15083no_undefined_flag=$lt_no_undefined_flag
15084
15085# Flag to hardcode \$libdir into a binary during linking.
15086# This must work even if \$libdir does not exist
15087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15088
15089# If ld is used when linking, flag to hardcode \$libdir into a binary
15090# during linking. This must work even if \$libdir does not exist.
15091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15092
15093# Whether we need a single "-rpath" flag with a separated argument.
15094hardcode_libdir_separator=$lt_hardcode_libdir_separator
15095
15096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15097# DIR into the resulting binary.
15098hardcode_direct=$hardcode_direct
15099
15100# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15101# DIR into the resulting binary and the resulting library dependency is
15102# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15103# library is relocated.
15104hardcode_direct_absolute=$hardcode_direct_absolute
15105
15106# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15107# into the resulting binary.
15108hardcode_minus_L=$hardcode_minus_L
15109
15110# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15111# into the resulting binary.
15112hardcode_shlibpath_var=$hardcode_shlibpath_var
15113
15114# Set to "yes" if building a shared library automatically hardcodes DIR
15115# into the library and all subsequent libraries and executables linked
15116# against it.
15117hardcode_automatic=$hardcode_automatic
15118
15119# Set to yes if linker adds runtime paths of dependent libraries
15120# to runtime path list.
15121inherit_rpath=$inherit_rpath
15122
15123# Whether libtool must link a program against all its dependency libraries.
15124link_all_deplibs=$link_all_deplibs
15125
15126# Fix the shell variable \$srcfile for the compiler.
15127fix_srcfile_path=$lt_fix_srcfile_path
15128
15129# Set to "yes" if exported symbols are required.
15130always_export_symbols=$always_export_symbols
15131
15132# The commands to list exported symbols.
15133export_symbols_cmds=$lt_export_symbols_cmds
15134
15135# Symbols that should not be listed in the preloaded symbols.
15136exclude_expsyms=$lt_exclude_expsyms
15137
15138# Symbols that must always be exported.
15139include_expsyms=$lt_include_expsyms
15140
15141# Commands necessary for linking programs (against libraries) with templates.
15142prelink_cmds=$lt_prelink_cmds
15143
15144# Specify filename containing input files.
15145file_list_spec=$lt_file_list_spec
15146
15147# How to hardcode a shared library path into an executable.
15148hardcode_action=$hardcode_action
15149
15150# ### END LIBTOOL CONFIG
15151
15152_LT_EOF
15153
15154 case $host_os in
15155 aix3*)
15156 cat <<\_LT_EOF >> "$cfgfile"
15157# AIX sometimes has problems with the GCC collect2 program. For some
15158# reason, if we set the COLLECT_NAMES environment variable, the problems
15159# vanish in a puff of smoke.
15160if test "X${COLLECT_NAMES+set}" != Xset; then
15161 COLLECT_NAMES=
15162 export COLLECT_NAMES
15163fi
15164_LT_EOF
15165 ;;
15166 esac
15167
15168
15169ltmain="$ac_aux_dir/ltmain.sh"
15170
15171
15172 # We use sed instead of cat because bash on DJGPP gets confused if
15173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15174 # text mode, it properly converts lines to CR/LF. This bash problem
15175 # is reportedly fixed, but why not run on old versions too?
15176 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15177 || (rm -f "$cfgfile"; exit 1)
15178
15179 case $xsi_shell in
15180 yes)
15181 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 15182
1cf3d07d
SE
15183# func_dirname file append nondir_replacement
15184# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15185# otherwise set result to NONDIR_REPLACEMENT.
15186func_dirname ()
15187{
15188 case ${1} in
15189 */*) func_dirname_result="${1%/*}${2}" ;;
15190 * ) func_dirname_result="${3}" ;;
15191 esac
15192}
15193
15194# func_basename file
15195func_basename ()
15196{
15197 func_basename_result="${1##*/}"
15198}
15199
80c6c2cb
PG
15200# func_dirname_and_basename file append nondir_replacement
15201# perform func_basename and func_dirname in a single function
15202# call:
15203# dirname: Compute the dirname of FILE. If nonempty,
15204# add APPEND to the result, otherwise set result
15205# to NONDIR_REPLACEMENT.
15206# value returned in "$func_dirname_result"
15207# basename: Compute filename of FILE.
15208# value retuned in "$func_basename_result"
15209# Implementation must be kept synchronized with func_dirname
15210# and func_basename. For efficiency, we do not delegate to
15211# those functions but instead duplicate the functionality here.
15212func_dirname_and_basename ()
15213{
15214 case ${1} in
15215 */*) func_dirname_result="${1%/*}${2}" ;;
15216 * ) func_dirname_result="${3}" ;;
15217 esac
15218 func_basename_result="${1##*/}"
15219}
15220
1cf3d07d
SE
15221# func_stripname prefix suffix name
15222# strip PREFIX and SUFFIX off of NAME.
15223# PREFIX and SUFFIX must not contain globbing or regex special
15224# characters, hashes, percent signs, but SUFFIX may contain a leading
15225# dot (in which case that matches only a dot).
15226func_stripname ()
15227{
15228 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15229 # positional parameters, so assign one to ordinary parameter first.
15230 func_stripname_result=${3}
15231 func_stripname_result=${func_stripname_result#"${1}"}
15232 func_stripname_result=${func_stripname_result%"${2}"}
15233}
15234
15235# func_opt_split
15236func_opt_split ()
15237{
15238 func_opt_split_opt=${1%%=*}
15239 func_opt_split_arg=${1#*=}
15240}
15241
15242# func_lo2o object
15243func_lo2o ()
15244{
15245 case ${1} in
15246 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15247 *) func_lo2o_result=${1} ;;
15248 esac
15249}
80c6c2cb
PG
15250
15251# func_xform libobj-or-source
15252func_xform ()
15253{
15254 func_xform_result=${1%.*}.lo
15255}
15256
15257# func_arith arithmetic-term...
15258func_arith ()
15259{
15260 func_arith_result=$(( $* ))
15261}
15262
15263# func_len string
15264# STRING may not start with a hyphen.
15265func_len ()
15266{
15267 func_len_result=${#1}
15268}
15269
1cf3d07d
SE
15270_LT_EOF
15271 ;;
15272 *) # Bourne compatible functions.
15273 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 15274
1cf3d07d
SE
15275# func_dirname file append nondir_replacement
15276# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15277# otherwise set result to NONDIR_REPLACEMENT.
15278func_dirname ()
15279{
15280 # Extract subdirectory from the argument.
43e02a8a 15281 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
15282 if test "X$func_dirname_result" = "X${1}"; then
15283 func_dirname_result="${3}"
15284 else
15285 func_dirname_result="$func_dirname_result${2}"
15286 fi
15287}
15288
15289# func_basename file
15290func_basename ()
15291{
43e02a8a 15292 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
15293}
15294
80c6c2cb 15295
1cf3d07d
SE
15296# func_stripname prefix suffix name
15297# strip PREFIX and SUFFIX off of NAME.
15298# PREFIX and SUFFIX must not contain globbing or regex special
15299# characters, hashes, percent signs, but SUFFIX may contain a leading
15300# dot (in which case that matches only a dot).
15301# func_strip_suffix prefix name
15302func_stripname ()
15303{
15304 case ${2} in
43e02a8a
RW
15305 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15306 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
15307 esac
15308}
15309
15310# sed scripts:
15311my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15312my_sed_long_arg='1s/^-[^=]*=//'
15313
15314# func_opt_split
15315func_opt_split ()
15316{
43e02a8a
RW
15317 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15318 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
15319}
15320
15321# func_lo2o object
15322func_lo2o ()
15323{
43e02a8a 15324 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 15325}
80c6c2cb
PG
15326
15327# func_xform libobj-or-source
15328func_xform ()
15329{
43e02a8a 15330 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
80c6c2cb
PG
15331}
15332
15333# func_arith arithmetic-term...
15334func_arith ()
15335{
15336 func_arith_result=`expr "$@"`
15337}
15338
15339# func_len string
15340# STRING may not start with a hyphen.
15341func_len ()
15342{
15343 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15344}
15345
1cf3d07d
SE
15346_LT_EOF
15347esac
15348
15349case $lt_shell_append in
15350 yes)
15351 cat << \_LT_EOF >> "$cfgfile"
15352
15353# func_append var value
15354# Append VALUE to the end of shell variable VAR.
15355func_append ()
15356{
15357 eval "$1+=\$2"
15358}
15359_LT_EOF
15360 ;;
15361 *)
15362 cat << \_LT_EOF >> "$cfgfile"
15363
15364# func_append var value
15365# Append VALUE to the end of shell variable VAR.
15366func_append ()
15367{
15368 eval "$1=\$$1\$2"
15369}
80c6c2cb 15370
1cf3d07d
SE
15371_LT_EOF
15372 ;;
15373 esac
15374
15375
15376 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15377 || (rm -f "$cfgfile"; exit 1)
15378
15379 mv -f "$cfgfile" "$ofile" ||
15380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15381 chmod +x "$ofile"
15382
3ed8e5b6 15383 ;;
5213506e
RW
15384 "include":C) test -d include || mkdir include ;;
15385 "src":C)
3ed8e5b6
AT
15386test -d src || mkdir src
15387test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15388 ;;
5213506e 15389
3ed8e5b6 15390 esac
5213506e 15391done # for ac_tag
3ed8e5b6 15392
3ed8e5b6 15393
5213506e 15394as_fn_exit 0
3ed8e5b6 15395_ACEOF
3ed8e5b6
AT
15396ac_clean_files=$ac_clean_files_save
15397
5213506e
RW
15398test $ac_write_fail = 0 ||
15399 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15400
3ed8e5b6
AT
15401
15402# configure is writing to config.log, and then calls config.status.
15403# config.status does its own redirection, appending to config.log.
15404# Unfortunately, on DOS this fails, as config.log is still kept open
15405# by configure, so config.status won't be able to write to it; its
15406# output is simply discarded. So we exec the FD to /dev/null,
15407# effectively closing config.log, so it can be properly (re)opened and
15408# appended to by config.status. When coming back to configure, we
15409# need to make the FD available again.
15410if test "$no_create" != yes; then
15411 ac_cs_success=:
15412 ac_config_status_args=
15413 test "$silent" = yes &&
15414 ac_config_status_args="$ac_config_status_args --quiet"
15415 exec 5>/dev/null
15416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15417 exec 5>>config.log
15418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15419 # would make configure fail if this is the last instruction.
5213506e
RW
15420 $ac_cs_success || as_fn_exit $?
15421fi
15422if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15424$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3ed8e5b6 15425fi
63e5e3e0 15426