]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
Define libffi macros carefully
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
a761df3d 3# Generated by GNU Autoconf 2.64 for libffi 3.0.9.
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'
a761df3d
AG
562PACKAGE_VERSION='3.0.9'
563PACKAGE_STRING='libffi 3.0.9'
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
609TARGETDIR
610TARGET
611HAVE_LONG_DOUBLE
612ALLOCA
613PA64_HPUX_FALSE
614PA64_HPUX_TRUE
615PA_HPUX_FALSE
616PA_HPUX_TRUE
617PA_LINUX_FALSE
618PA_LINUX_TRUE
619SH64_FALSE
620SH64_TRUE
621SH_FALSE
622SH_TRUE
623X86_64_FALSE
624X86_64_TRUE
625S390_FALSE
626S390_TRUE
627FRV_FALSE
628FRV_TRUE
629LIBFFI_CRIS_FALSE
630LIBFFI_CRIS_TRUE
124f60ab
BS
631AVR32_FALSE
632AVR32_TRUE
5213506e
RW
633ARM_FALSE
634ARM_TRUE
635POWERPC_FREEBSD_FALSE
636POWERPC_FREEBSD_TRUE
637POWERPC_DARWIN_FALSE
638POWERPC_DARWIN_TRUE
639POWERPC_AIX_FALSE
640POWERPC_AIX_TRUE
641POWERPC_FALSE
642POWERPC_TRUE
643M68K_FALSE
644M68K_TRUE
645M32R_FALSE
646M32R_TRUE
647IA64_FALSE
648IA64_TRUE
649ALPHA_FALSE
650ALPHA_TRUE
651X86_DARWIN_FALSE
652X86_DARWIN_TRUE
653X86_WIN64_FALSE
654X86_WIN64_TRUE
655X86_WIN32_FALSE
656X86_WIN32_TRUE
657X86_FREEBSD_FALSE
658X86_FREEBSD_TRUE
659X86_FALSE
660X86_TRUE
661SPARC_FALSE
662SPARC_TRUE
663MIPS_FALSE
664MIPS_TRUE
a761df3d 665AM_LTLDFLAGS
5213506e
RW
666AM_RUNTESTFLAGS
667TESTSUBDIR_FALSE
668TESTSUBDIR_TRUE
669MAINT
670MAINTAINER_MODE_FALSE
671MAINTAINER_MODE_TRUE
672CPP
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
5213506e
RW
678RANLIB
679AR
680OBJDUMP
681LN_S
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
687EGREP
688GREP
689SED
690LIBTOOL
691am__fastdepCCAS_FALSE
692am__fastdepCCAS_TRUE
693CCASDEPMODE
694CCASFLAGS
695CCAS
696am__fastdepCC_FALSE
697am__fastdepCC_TRUE
698CCDEPMODE
699AMDEPBACKSLASH
700AMDEP_FALSE
701AMDEP_TRUE
702am__quote
703am__include
704DEPDIR
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747multi_basedir
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
3ed8e5b6 786ac_subst_files=''
5213506e
RW
787ac_user_opts='
788enable_option_checking
789enable_multilib
790enable_dependency_tracking
791enable_shared
792enable_static
793with_pic
794enable_fast_install
795with_gnu_ld
796enable_libtool_lock
797enable_maintainer_mode
798enable_debug
799enable_structs
800enable_raw_api
801enable_purify_safety
802'
803 ac_precious_vars='build_alias
804host_alias
805target_alias
806CCAS
807CCASFLAGS
808CPP
809CPPFLAGS'
810
63e5e3e0
AG
811
812# Initialize some variables set by options.
3ed8e5b6
AT
813ac_init_help=
814ac_init_version=false
5213506e
RW
815ac_unrecognized_opts=
816ac_unrecognized_sep=
63e5e3e0
AG
817# The variables have the same names as the options, with
818# dashes changed to underlines.
3ed8e5b6 819cache_file=/dev/null
63e5e3e0 820exec_prefix=NONE
63e5e3e0 821no_create=
63e5e3e0
AG
822no_recursion=
823prefix=NONE
824program_prefix=NONE
825program_suffix=NONE
826program_transform_name=s,x,x,
827silent=
828site=
829srcdir=
63e5e3e0
AG
830verbose=
831x_includes=NONE
832x_libraries=NONE
3ed8e5b6
AT
833
834# Installation directory options.
835# These are left unexpanded so users can "make install exec_prefix=/foo"
836# and all the variables that are supposed to be based on exec_prefix
837# by default will actually change.
838# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 839# (The list follows the same order as the GNU Coding Standards.)
63e5e3e0
AG
840bindir='${exec_prefix}/bin'
841sbindir='${exec_prefix}/sbin'
842libexecdir='${exec_prefix}/libexec'
5213506e
RW
843datarootdir='${prefix}/share'
844datadir='${datarootdir}'
63e5e3e0
AG
845sysconfdir='${prefix}/etc'
846sharedstatedir='${prefix}/com'
847localstatedir='${prefix}/var'
63e5e3e0
AG
848includedir='${prefix}/include'
849oldincludedir='/usr/include'
5213506e
RW
850docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851infodir='${datarootdir}/info'
852htmldir='${docdir}'
853dvidir='${docdir}'
854pdfdir='${docdir}'
855psdir='${docdir}'
856libdir='${exec_prefix}/lib'
857localedir='${datarootdir}/locale'
858mandir='${datarootdir}/man'
63e5e3e0 859
63e5e3e0 860ac_prev=
5213506e 861ac_dashdash=
63e5e3e0
AG
862for ac_option
863do
63e5e3e0
AG
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
5213506e 866 eval $ac_prev=\$ac_option
63e5e3e0
AG
867 ac_prev=
868 continue
869 fi
870
5213506e
RW
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
63e5e3e0
AG
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
5213506e
RW
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
63e5e3e0
AG
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 885 bindir=$ac_optarg ;;
63e5e3e0
AG
886
887 -build | --build | --buil | --bui | --bu)
3ed8e5b6 888 ac_prev=build_alias ;;
63e5e3e0 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 890 build_alias=$ac_optarg ;;
63e5e3e0
AG
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
63e5e3e0 901
5213506e 902 -datadir | --datadir | --datadi | --datad)
63e5e3e0 903 ac_prev=datadir ;;
5213506e 904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3ed8e5b6 905 datadir=$ac_optarg ;;
63e5e3e0 906
5213506e
RW
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
63e5e3e0 914 -disable-* | --disable-*)
5213506e 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 916 # Reject names that are not valid shell variable names.
5213506e
RW
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
63e5e3e0
AG
939
940 -enable-* | --enable-*)
5213506e 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 942 # Reject names that are not valid shell variable names.
5213506e
RW
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
63e5e3e0 953 esac
5213506e 954 eval enable_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 963 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
3ed8e5b6
AT
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
63e5e3e0
AG
975
976 -host | --host | --hos | --ho)
3ed8e5b6 977 ac_prev=host_alias ;;
63e5e3e0 978 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 979 host_alias=$ac_optarg ;;
63e5e3e0 980
5213506e
RW
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
63e5e3e0
AG
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 992 includedir=$ac_optarg ;;
63e5e3e0
AG
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 997 infodir=$ac_optarg ;;
63e5e3e0
AG
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 1002 libdir=$ac_optarg ;;
63e5e3e0
AG
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 1009 libexecdir=$ac_optarg ;;
63e5e3e0 1010
5213506e
RW
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
63e5e3e0 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1017 | --localstate | --localstat | --localsta | --localst | --locals)
63e5e3e0
AG
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3ed8e5b6 1021 localstatedir=$ac_optarg ;;
63e5e3e0
AG
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 1026 mandir=$ac_optarg ;;
63e5e3e0
AG
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 1033 | --no-cr | --no-c | -n)
63e5e3e0
AG
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 1047 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 1052 prefix=$ac_optarg ;;
63e5e3e0
AG
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 1059 program_prefix=$ac_optarg ;;
63e5e3e0
AG
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 1066 program_suffix=$ac_optarg ;;
63e5e3e0
AG
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 1083 program_transform_name=$ac_optarg ;;
63e5e3e0 1084
5213506e
RW
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
63e5e3e0
AG
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
3ed8e5b6 1103 sbindir=$ac_optarg ;;
63e5e3e0
AG
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
3ed8e5b6 1114 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
3ed8e5b6 1119 site=$ac_optarg ;;
63e5e3e0
AG
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 1124 srcdir=$ac_optarg ;;
63e5e3e0
AG
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 1131 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 1134 ac_prev=target_alias ;;
63e5e3e0 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 1136 target_alias=$ac_optarg ;;
63e5e3e0
AG
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
3ed8e5b6
AT
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
63e5e3e0
AG
1143
1144 -with-* | --with-*)
5213506e 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 1146 # Reject names that are not valid shell variable names.
5213506e
RW
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
63e5e3e0 1157 esac
5213506e 1158 eval with_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1159
1160 -without-* | --without-*)
5213506e 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 1162 # Reject names that are not valid shell variable names.
5213506e
RW
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
63e5e3e0
AG
1175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 1185 x_includes=$ac_optarg ;;
63e5e3e0
AG
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 1192 x_libraries=$ac_optarg ;;
63e5e3e0 1193
5213506e
RW
1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information."
63e5e3e0
AG
1196 ;;
1197
3ed8e5b6
AT
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
5213506e
RW
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
3ed8e5b6
AT
1206 export $ac_envvar ;;
1207
63e5e3e0 1208 *)
3ed8e5b6 1209 # FIXME: should be removed in autoconf 3.0.
5213506e 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3ed8e5b6 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3ed8e5b6 1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
1214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
3ed8e5b6 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1221 as_fn_error "missing argument to $ac_option"
63e5e3e0 1222fi
63e5e3e0 1223
5213506e
RW
1224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3ed8e5b6 1229 esac
5213506e 1230fi
63e5e3e0 1231
5213506e
RW
1232# Check all directory arguments for consistency.
1233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
63e5e3e0 1237do
5213506e
RW
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
3ed8e5b6 1246 case $ac_val in
5213506e
RW
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
63e5e3e0 1249 esac
5213506e 1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
63e5e3e0
AG
1251done
1252
3ed8e5b6
AT
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
5213506e 1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3ed8e5b6
AT
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269fi
63e5e3e0 1270
3ed8e5b6
AT
1271ac_tool_prefix=
1272test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274test "$silent" = yes && exec 6>/dev/null
63e5e3e0 1275
63e5e3e0 1276
5213506e
RW
1277ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278ac_ls_di=`ls -di .` &&
1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1283
1284
63e5e3e0
AG
1285# Find the source files, if location was not specified.
1286if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
5213506e
RW
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294$as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
63e5e3e0 1312 srcdir=$ac_confdir
5213506e 1313 if test ! -r "$srcdir/$ac_unique_file"; then
63e5e3e0
AG
1314 srcdir=..
1315 fi
1316else
1317 ac_srcdir_defaulted=no
1318fi
5213506e
RW
1319if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322fi
1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327# When building in place, set srcdir=.
1328if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330fi
1331# Remove unnecessary trailing slashes from srcdir.
1332# Double slashes in file names in object file debugging info
1333# mess up M-x gdb in Emacs.
1334case $srcdir in
1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336esac
1337for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342done
63e5e3e0 1343
3ed8e5b6
AT
1344#
1345# Report the --help message.
1346#
1347if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
a761df3d 1351\`configure' configures libffi 3.0.9 to adapt to many kinds of systems.
63e5e3e0 1352
3ed8e5b6
AT
1353Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358Defaults for the options are specified in brackets.
1359
1360Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
3ed8e5b6
AT
1371Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1373 [$ac_default_prefix]
3ed8e5b6 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1375 [PREFIX]
3ed8e5b6
AT
1376
1377By default, \`make install' will install all the files in
1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380for instance \`--prefix=\$HOME'.
1381
1382For better control, use the options below.
1383
1384Fine tuning of the installation directories:
5213506e
RW
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
3ed8e5b6
AT
1404_ACEOF
1405
1406 cat <<\_ACEOF
1407
1408Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417_ACEOF
1418fi
1419
1420if test -n "$ac_init_help"; then
1421 case $ac_init_help in
a761df3d 1422 short | recursive ) echo "Configuration of libffi 3.0.9:";;
3ed8e5b6
AT
1423 esac
1424 cat <<\_ACEOF
1425
1426Optional Features:
5213506e 1427 --disable-option-checking ignore unrecognized --enable/--with options
3ed8e5b6
AT
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1430 --enable-multilib build many library versions (default)
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
3ed8e5b6 1437 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1440 --enable-debug debugging mode
1441 --disable-structs omit code for struct support
1442 --disable-raw-api make the raw api unavailable
1443 --enable-purify-safety purify-safe mode
1444
1445Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1448 --with-pic try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1451
1452Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
5213506e
RW
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
076e5443
PB
1460 CCAS assembler compiler command (defaults to CC)
1461 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1462 CPP C preprocessor
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to <http://gcc.gnu.org/bugs.html>.
1468_ACEOF
5213506e 1469ac_status=$?
63e5e3e0
AG
1470fi
1471
3ed8e5b6
AT
1472if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
3ed8e5b6 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
3ed8e5b6
AT
1478 ac_builddir=.
1479
5213506e
RW
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
63e5e3e0 1495
3ed8e5b6 1496case $srcdir in
5213506e 1497 .) # We are building in place.
3ed8e5b6 1498 ac_srcdir=.
5213506e
RW
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 1502 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 1509esac
5213506e
RW
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
3ed8e5b6 1520 else
5213506e
RW
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
3ed8e5b6 1524 done
675cdab3
BM
1525fi
1526
5213506e 1527test -n "$ac_init_help" && exit $ac_status
3ed8e5b6
AT
1528if $ac_init_version; then
1529 cat <<\_ACEOF
a761df3d 1530libffi configure 3.0.9
5213506e 1531generated by GNU Autoconf 2.64
675cdab3 1532
5213506e 1533Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
5213506e 1537 exit
675cdab3
BM
1538fi
1539
5213506e
RW
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
63e5e3e0 1543
5213506e
RW
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
3ed8e5b6 1548{
5213506e
RW
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571else
1572 $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1574
5213506e
RW
1575 ac_retval=1
1576fi
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 return $ac_retval
3ed8e5b6 1579
5213506e 1580} # ac_fn_c_try_compile
3ed8e5b6 1581
5213506e
RW
1582# ac_fn_c_try_link LINENO
1583# -----------------------
1584# Try to link conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_link ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 $as_test_x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612else
1613 $as_echo "$as_me: failed program was:" >&5
1614sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1615
5213506e
RW
1616 ac_retval=1
1617fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 return $ac_retval
3ed8e5b6 1625
5213506e
RW
1626} # ac_fn_c_try_link
1627
1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists and can be compiled using the include files in
1631# INCLUDES, setting the cache variable VAR accordingly.
1632ac_fn_c_check_header_compile ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
1637if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1639else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647else
1648 eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656
1657} # ac_fn_c_check_header_compile
1658
1659# ac_fn_c_try_cpp LINENO
1660# ----------------------
1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_cpp ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } >/dev/null && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685else
1686 $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690fi
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 return $ac_retval
1693
1694} # ac_fn_c_try_cpp
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 return $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_func LINENO FUNC VAR
1739# ----------------------------------
1740# Tests whether FUNC exists, setting the cache variable VAR accordingly
1741ac_fn_c_check_func ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 $as_echo_n "(cached) " >&6
1748else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753#define $2 innocuous_$2
1754
1755/* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760#ifdef __STDC__
1761# include <limits.h>
1762#else
1763# include <assert.h>
1764#endif
1765
1766#undef $2
1767
1768/* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771#ifdef __cplusplus
1772extern "C"
1773#endif
1774char $2 ();
1775/* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778#if defined __stub_$2 || defined __stub___$2
1779choke me
1780#endif
1781
1782int
1783main ()
1784{
1785return $2 ();
1786 ;
1787 return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792else
1793 eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803} # ac_fn_c_check_func
1804
1805# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806# -------------------------------------------------------
1807# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808# the include files in INCLUDES and setting the cache variable VAR
1809# accordingly.
1810ac_fn_c_check_header_mongrel ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818fi
1819eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822else
1823 # Is the header compilable?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825$as_echo_n "checking $2 usability... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h. */
1828$4
1829#include <$2>
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833else
1834 ac_header_compiler=no
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838$as_echo "$ac_header_compiler" >&6; }
1839
1840# Is the header present?
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842$as_echo_n "checking $2 presence... " >&6; }
1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849else
1850 ac_header_preproc=no
1851fi
1852rm -f conftest.err conftest.$ac_ext
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854$as_echo "$ac_header_preproc" >&6; }
1855
1856# So? What about this header?
1857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ;;
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875( cat <<\_ASBOX
1876## ------------------------------------------- ##
1877## Report this to http://gcc.gnu.org/bugs.html ##
1878## ------------------------------------------- ##
1879_ASBOX
1880 ) | sed "s/^/$as_me: WARNING: /" >&2
1881 ;;
1882esac
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 eval "$3=\$ac_header_compiler"
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893fi
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896} # ac_fn_c_check_header_mongrel
1897
1898# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1899# --------------------------------------------
1900# Tries to find the compile-time value of EXPR in a program that includes
1901# INCLUDES, setting VAR accordingly. Returns whether the value could be
1902# computed
1903ac_fn_c_compute_int ()
1904{
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if test "$cross_compiling" = yes; then
1907 # Depending upon the size, compute the lo and hi bounds.
1908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910$4
1911int
1912main ()
1913{
1914static int test_array [1 - 2 * !(($2) >= 0)];
1915test_array [0] = 0
1916
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_lo=0 ac_mid=0
1923 while :; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926$4
1927int
1928main ()
1929{
1930static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1931test_array [0] = 0
1932
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_hi=$ac_mid; break
1939else
1940 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1941 if test $ac_lo -le $ac_mid; then
1942 ac_lo= ac_hi=
1943 break
1944 fi
1945 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 done
1949else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$4
1953int
1954main ()
1955{
1956static int test_array [1 - 2 * !(($2) < 0)];
1957test_array [0] = 0
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_hi=-1 ac_mid=-1
1965 while :; do
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1973test_array [0] = 0
1974
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_lo=$ac_mid; break
1981else
1982 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1983 if test $ac_mid -le $ac_hi; then
1984 ac_lo= ac_hi=
1985 break
1986 fi
1987 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 done
1991else
1992 ac_lo= ac_hi=
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997# Binary search between lo and hi bounds.
1998while test "x$ac_lo" != "x$ac_hi"; do
1999 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007test_array [0] = 0
2008
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid
2015else
2016 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 2019done
5213506e
RW
2020case $ac_lo in #((
2021?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2022'') ac_retval=1 ;;
2023esac
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027$4
2028static long int longval () { return $2; }
2029static unsigned long int ulongval () { return $2; }
2030#include <stdio.h>
2031#include <stdlib.h>
2032int
2033main ()
2034{
2035
2036 FILE *f = fopen ("conftest.val", "w");
2037 if (! f)
2038 return 1;
2039 if (($2) < 0)
2040 {
2041 long int i = longval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%ld", i);
2045 }
2046 else
2047 {
2048 unsigned long int i = ulongval ();
2049 if (i != ($2))
2050 return 1;
2051 fprintf (f, "%lu", i);
2052 }
2053 /* Do not output a trailing newline, as this causes \r\n confusion
2054 on some platforms. */
2055 return ferror (f) || fclose (f) != 0;
2056
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_run "$LINENO"; then :
2062 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2063else
2064 ac_retval=1
2065fi
2066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2067 conftest.$ac_objext conftest.beam conftest.$ac_ext
2068rm -f conftest.val
2069
2070 fi
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 return $ac_retval
2073
2074} # ac_fn_c_compute_int
2075cat >config.log <<_ACEOF
2076This file contains any messages produced by compilers while
2077running configure, to aid debugging if configure makes a mistake.
2078
a761df3d 2079It was created by libffi $as_me 3.0.9, which was
5213506e
RW
2080generated by GNU Autoconf 2.64. Invocation command line was
2081
2082 $ $0 $@
2083
2084_ACEOF
2085exec 5>>config.log
2086{
2087cat <<_ASUNAME
2088## --------- ##
2089## Platform. ##
2090## --------- ##
2091
2092hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100
2101/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2108
2109_ASUNAME
2110
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir"
2117 done
2118IFS=$as_save_IFS
63e5e3e0 2119
3ed8e5b6 2120} >&5
63e5e3e0 2121
3ed8e5b6 2122cat >&5 <<_ACEOF
63e5e3e0 2123
6706f116 2124
3ed8e5b6
AT
2125## ----------- ##
2126## Core tests. ##
2127## ----------- ##
3c18f2d1 2128
3ed8e5b6 2129_ACEOF
3c18f2d1 2130
3c18f2d1 2131
3ed8e5b6
AT
2132# Keep a trace of the command line.
2133# Strip out --no-create and --no-recursion so they do not pile up.
2134# Strip out --silent because we don't want to record it for future runs.
2135# Also quote any args containing shell meta-characters.
2136# Make two passes to allow for proper duplicate-argument suppression.
2137ac_configure_args=
2138ac_configure_args0=
2139ac_configure_args1=
3ed8e5b6
AT
2140ac_must_keep_next=false
2141for ac_pass in 1 2
2142do
2143 for ac_arg
2144 do
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
5213506e
RW
2150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2152 esac
2153 case $ac_pass in
5213506e 2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3ed8e5b6 2155 2)
5213506e 2156 as_fn_append ac_configure_args1 " '$ac_arg'"
3ed8e5b6
AT
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2159 else
2160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2168 ;;
2169 -* ) ac_must_keep_next=true ;;
2170 esac
2171 fi
5213506e 2172 as_fn_append ac_configure_args " '$ac_arg'"
3ed8e5b6
AT
2173 ;;
2174 esac
2175 done
63e5e3e0 2176done
5213506e
RW
2177{ ac_configure_args0=; unset ac_configure_args0;}
2178{ ac_configure_args1=; unset ac_configure_args1;}
3ed8e5b6
AT
2179
2180# When interrupted or exit'd, cleanup temporary files, and complete
2181# config.log. We remove comments because anyway the quotes in there
2182# would cause problems or look ugly.
5213506e
RW
2183# WARNING: Use '\'' to represent an apostrophe within the trap.
2184# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3ed8e5b6
AT
2185trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2187 {
2188 echo
2189
2190 cat <<\_ASBOX
2191## ---------------- ##
2192## Cache variables. ##
2193## ---------------- ##
2194_ASBOX
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2197(
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
3ed8e5b6 2213 (set) 2>&1 |
5213506e
RW
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
3ed8e5b6 2216 sed -n \
5213506e
RW
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
3ed8e5b6 2220 *)
5213506e 2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 2222 ;;
5213506e
RW
2223 esac |
2224 sort
2225)
3ed8e5b6
AT
2226 echo
2227
2228 cat <<\_ASBOX
2229## ----------------- ##
2230## Output variables. ##
2231## ----------------- ##
2232_ASBOX
2233 echo
2234 for ac_var in $ac_subst_vars
2235 do
5213506e
RW
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2241 done | sort
2242 echo
2243
2244 if test -n "$ac_subst_files"; then
2245 cat <<\_ASBOX
5213506e
RW
2246## ------------------- ##
2247## File substitutions. ##
2248## ------------------- ##
3ed8e5b6
AT
2249_ASBOX
2250 echo
2251 for ac_var in $ac_subst_files
2252 do
5213506e
RW
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2258 done | sort
2259 echo
2260 fi
63e5e3e0 2261
3ed8e5b6
AT
2262 if test -s confdefs.h; then
2263 cat <<\_ASBOX
2264## ----------- ##
2265## confdefs.h. ##
2266## ----------- ##
2267_ASBOX
2268 echo
5213506e 2269 cat confdefs.h
3ed8e5b6
AT
2270 echo
2271 fi
2272 test "$ac_signal" != 0 &&
5213506e
RW
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
3ed8e5b6 2275 } >&5
5213506e
RW
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3ed8e5b6 2278 exit $exit_status
5213506e 2279' 0
3ed8e5b6 2280for ac_signal in 1 2 13 15; do
5213506e 2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3ed8e5b6
AT
2282done
2283ac_signal=0
63e5e3e0 2284
3ed8e5b6 2285# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2286rm -f -r conftest* confdefs.h
2287
2288$as_echo "/* confdefs.h */" > confdefs.h
6bee5372 2289
3ed8e5b6 2290# Predefined preprocessor variables.
bbf3057b 2291
3ed8e5b6
AT
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_NAME "$PACKAGE_NAME"
2294_ACEOF
bbf3057b 2295
3ed8e5b6
AT
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298_ACEOF
63e5e3e0 2299
3ed8e5b6
AT
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_VERSION "$PACKAGE_VERSION"
2302_ACEOF
63e5e3e0 2303
3ed8e5b6
AT
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_STRING "$PACKAGE_STRING"
2306_ACEOF
bbf3057b 2307
3ed8e5b6
AT
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310_ACEOF
2311
5213506e
RW
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_URL "$PACKAGE_URL"
2314_ACEOF
2315
3ed8e5b6
AT
2316
2317# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2318# Prefer an explicitly selected file to automatically selected ones.
2319ac_site_file1=NONE
2320ac_site_file2=NONE
2321if test -n "$CONFIG_SITE"; then
2322 ac_site_file1=$CONFIG_SITE
2323elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2329fi
2330for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do
2332 test "x$ac_site_file" = xNONE && continue
3ed8e5b6 2333 if test -r "$ac_site_file"; then
5213506e
RW
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3ed8e5b6
AT
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file"
2338 fi
2339done
2340
2341if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then
5213506e
RW
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346$as_echo "$as_me: loading cache $cache_file" >&6;}
3ed8e5b6 2347 case $cache_file in
5213506e
RW
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
3ed8e5b6
AT
2350 esac
2351 fi
2352else
5213506e
RW
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354$as_echo "$as_me: creating cache $cache_file" >&6;}
3ed8e5b6
AT
2355 >$cache_file
2356fi
2357
2358# Check that the precious variables saved in the cache have kept the same
2359# value.
2360ac_cache_corrupted=false
5213506e 2361for ac_var in $ac_precious_vars; do
3ed8e5b6
AT
2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365 eval ac_new_val=\$ac_env_${ac_var}_value
3ed8e5b6
AT
2366 case $ac_old_set,$ac_new_set in
2367 set,)
5213506e
RW
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3ed8e5b6
AT
2370 ac_cache_corrupted=: ;;
2371 ,set)
5213506e
RW
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3ed8e5b6
AT
2374 ac_cache_corrupted=: ;;
2375 ,);;
2376 *)
2377 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2378 # differences in whitespace do not lead to failure.
2379 ac_old_val_w=`echo x $ac_old_val`
2380 ac_new_val_w=`echo x $ac_new_val`
2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384 ac_cache_corrupted=:
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388 eval $ac_var=\$ac_old_val
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2391$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2393$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
2394 fi;;
2395 esac
2396 # Pass precious variables to config.status.
2397 if test "$ac_new_set" = set; then
2398 case $ac_new_val in
5213506e 2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2400 *) ac_arg=$ac_var=$ac_new_val ;;
2401 esac
2402 case " $ac_configure_args " in
2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3ed8e5b6
AT
2405 esac
2406 fi
2407done
2408if $ac_cache_corrupted; then
5213506e
RW
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3ed8e5b6 2414fi
5213506e
RW
2415## -------------------- ##
2416## Main body of script. ##
2417## -------------------- ##
3ed8e5b6
AT
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427
2428
5213506e 2429ac_config_headers="$ac_config_headers fficonfig.h"
3ed8e5b6
AT
2430
2431
2432# Default to --enable-multilib
5213506e
RW
2433# Check whether --enable-multilib was given.
2434if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
3ed8e5b6
AT
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
5213506e 2438 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3ed8e5b6
AT
2439 esac
2440else
2441 multilib=yes
5213506e
RW
2442fi
2443
3ed8e5b6
AT
2444
2445# We may get other options which we leave undocumented:
2446# --with-target-subdir, --with-multisrctop, --with-multisubdir
2447# See config-ml.in if you want the gory details.
2448
2449if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2454 fi
2455else
2456 multi_basedir="$srcdir/.."
2457fi
2458
2459
8a489465
JH
2460# Even if the default multilib is not a cross compilation,
2461# it may be that some of the other multilibs are.
2462if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2465fi
2466
5213506e 2467ac_config_commands="$ac_config_commands default-1"
3ed8e5b6 2468
3ed8e5b6 2469
076e5443 2470ac_aux_dir=
5213506e
RW
2471for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472 for ac_t in install-sh install.sh shtool; do
2473 if test -f "$ac_dir/$ac_t"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/$ac_t -c"
2476 break 2
2477 fi
2478 done
3ed8e5b6
AT
2479done
2480if test -z "$ac_aux_dir"; then
5213506e 2481 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3ed8e5b6 2482fi
5213506e
RW
2483
2484# These three variables are undocumented and unsupported,
2485# and are intended to be withdrawn in a future Autoconf release.
2486# They can cause serious problems if a builder's source tree is in a directory
2487# whose full name contains unusual characters.
2488ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491
3ed8e5b6 2492
3ed8e5b6 2493# Make sure we can run config.sub.
5213506e
RW
2494$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2495 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2496
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2498$as_echo_n "checking build system type... " >&6; }
2499if test "${ac_cv_build+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
2501else
2502 ac_build_alias=$build_alias
2503test "x$ac_build_alias" = x &&
2504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2505test "x$ac_build_alias" = x &&
2506 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2507ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2508 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2509
2510fi
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2512$as_echo "$ac_cv_build" >&6; }
2513case $ac_cv_build in
2514*-*-*) ;;
2515*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2516esac
3ed8e5b6 2517build=$ac_cv_build
5213506e
RW
2518ac_save_IFS=$IFS; IFS='-'
2519set x $ac_cv_build
2520shift
2521build_cpu=$1
2522build_vendor=$2
2523shift; shift
2524# Remember, the first character of IFS is used to create $*,
2525# except with old shells:
2526build_os=$*
2527IFS=$ac_save_IFS
2528case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2529
2530
5213506e
RW
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2532$as_echo_n "checking host system type... " >&6; }
2533if test "${ac_cv_host+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
3ed8e5b6 2535else
5213506e
RW
2536 if test "x$host_alias" = x; then
2537 ac_cv_host=$ac_cv_build
2538else
2539 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2540 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2541fi
3ed8e5b6
AT
2542
2543fi
5213506e
RW
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2545$as_echo "$ac_cv_host" >&6; }
2546case $ac_cv_host in
2547*-*-*) ;;
2548*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2549esac
3ed8e5b6 2550host=$ac_cv_host
5213506e
RW
2551ac_save_IFS=$IFS; IFS='-'
2552set x $ac_cv_host
2553shift
2554host_cpu=$1
2555host_vendor=$2
2556shift; shift
2557# Remember, the first character of IFS is used to create $*,
2558# except with old shells:
2559host_os=$*
2560IFS=$ac_save_IFS
2561case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2562
2563
5213506e
RW
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2565$as_echo_n "checking target system type... " >&6; }
2566if test "${ac_cv_target+set}" = set; then :
2567 $as_echo_n "(cached) " >&6
2568else
2569 if test "x$target_alias" = x; then
2570 ac_cv_target=$ac_cv_host
3ed8e5b6 2571else
5213506e
RW
2572 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2574fi
3ed8e5b6
AT
2575
2576fi
5213506e
RW
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2578$as_echo "$ac_cv_target" >&6; }
2579case $ac_cv_target in
2580*-*-*) ;;
2581*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2582esac
3ed8e5b6 2583target=$ac_cv_target
5213506e
RW
2584ac_save_IFS=$IFS; IFS='-'
2585set x $ac_cv_target
2586shift
2587target_cpu=$1
2588target_vendor=$2
2589shift; shift
2590# Remember, the first character of IFS is used to create $*,
2591# except with old shells:
2592target_os=$*
2593IFS=$ac_save_IFS
2594case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2595
2596
2597# The aliases save the names the user supplied, while $host etc.
2598# will get canonicalized.
2599test -n "$target_alias" &&
bbf3057b
AT
2600 test "$program_prefix$program_suffix$program_transform_name" = \
2601 NONENONEs,x,x, &&
2602 program_prefix=${target_alias}-
5213506e 2603
3ed8e5b6
AT
2604target_alias=${target_alias-$host_alias}
2605
88d8c771
AG
2606. ${srcdir}/configure.host
2607
5213506e
RW
2608am__api_version='1.11'
2609
3ed8e5b6
AT
2610# Find a good install program. We prefer a C program (faster),
2611# so one script is as good as another. But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2623# Reject install programs that cannot install multiple files.
5213506e
RW
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625$as_echo_n "checking for a BSD-compatible install... " >&6; }
3ed8e5b6 2626if test -z "$INSTALL"; then
5213506e
RW
2627if test "${ac_cv_path_install+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2629else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
5213506e
RW
2635 # Account for people who put trailing slashes in PATH elements.
2636case $as_dir/ in #((
2637 ./ | .// | /[cC]/* | \
3ed8e5b6 2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3ed8e5b6
AT
2640 /usr/ucb/* ) ;;
2641 *)
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2647 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3ed8e5b6
AT
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2651 :
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2655 :
2656 else
38d24731
RW
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667 break 3
2668 fi
3ed8e5b6
AT
2669 fi
2670 fi
2671 done
2672 done
2673 ;;
2674esac
5213506e
RW
2675
2676 done
2677IFS=$as_save_IFS
3ed8e5b6 2678
38d24731 2679rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
2680
2681fi
2682 if test "${ac_cv_path_install+set}" = set; then
2683 INSTALL=$ac_cv_path_install
2684 else
38d24731
RW
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for INSTALL within a source directory, because that will
3ed8e5b6 2687 # break other packages using the cache if that directory is
38d24731 2688 # removed, or if the value is a relative name.
3ed8e5b6
AT
2689 INSTALL=$ac_install_sh
2690 fi
2691fi
5213506e
RW
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2693$as_echo "$INSTALL" >&6; }
3ed8e5b6
AT
2694
2695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2696# It thinks the first close brace ends the variable substitution.
2697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698
2699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2700
2701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702
5213506e
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2704$as_echo_n "checking whether build environment is sane... " >&6; }
3ed8e5b6
AT
2705# Just in case
2706sleep 1
2707echo timestamp > conftest.file
5213506e
RW
2708# Reject unsafe characters in $srcdir or the absolute working directory
2709# name. Accept space and tab only in the latter.
2710am_lf='
2711'
2712case `pwd` in
2713 *[\\\"\#\$\&\'\`$am_lf]*)
2714 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2715esac
2716case $srcdir in
2717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2718 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2719esac
2720
3ed8e5b6
AT
2721# Do `set' in a subshell so we don't clobber the current shell's
2722# arguments. Must try -L first in case configure is actually a
2723# symlink; some systems play weird games with the mod time of symlinks
2724# (eg FreeBSD returns the mod time of the symlink's containing
2725# directory).
2726if (
5213506e 2727 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3ed8e5b6
AT
2728 if test "$*" = "X"; then
2729 # -L didn't work.
5213506e 2730 set X `ls -t "$srcdir/configure" conftest.file`
3ed8e5b6
AT
2731 fi
2732 rm -f conftest.file
2733 if test "$*" != "X $srcdir/configure conftest.file" \
2734 && test "$*" != "X conftest.file $srcdir/configure"; then
2735
2736 # If neither matched, then we have a broken ls. This can happen
2737 # if, for instance, CONFIG_SHELL is bash and it inherits a
2738 # broken ls alias from the environment. This has actually
2739 # happened. Such a system could not be considered "sane".
5213506e
RW
2740 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2741alias in your environment" "$LINENO" 5
3ed8e5b6
AT
2742 fi
2743
2744 test "$2" = conftest.file
2745 )
2746then
2747 # Ok.
2748 :
2749else
5213506e
RW
2750 as_fn_error "newly created file is older than distributed files!
2751Check your system clock" "$LINENO" 5
3ed8e5b6 2752fi
5213506e
RW
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754$as_echo "yes" >&6; }
3ed8e5b6 2755test "$program_prefix" != NONE &&
5213506e 2756 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3ed8e5b6
AT
2757# Use a double $ so make ignores it.
2758test "$program_suffix" != NONE &&
5213506e
RW
2759 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2760# Double any \ or $.
3ed8e5b6 2761# By default was `s,x,x', remove it if useless.
5213506e
RW
2762ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2763program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3ed8e5b6 2764
3ed8e5b6
AT
2765# expand $ac_aux_dir to an absolute path
2766am_aux_dir=`cd $ac_aux_dir && pwd`
2767
5213506e
RW
2768if test x"${MISSING+set}" != xset; then
2769 case $am_aux_dir in
2770 *\ * | *\ *)
2771 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2772 *)
2773 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2774 esac
2775fi
3ed8e5b6
AT
2776# Use eval to expand $SHELL
2777if eval "$MISSING --run true"; then
2778 am_missing_run="$MISSING --run "
2779else
2780 am_missing_run=
5213506e
RW
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2782$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2783fi
2784
2785if test x"${install_sh}" != xset; then
2786 case $am_aux_dir in
2787 *\ * | *\ *)
2788 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2789 *)
2790 install_sh="\${SHELL} $am_aux_dir/install-sh"
2791 esac
2792fi
2793
2794# Installed binaries are usually stripped using `strip' when the user
2795# run `make install-strip'. However `strip' might not be the right
2796# tool to use in cross-compilation environments, therefore Automake
2797# will honor the `STRIP' environment variable to overrule this program.
2798if test "$cross_compiling" != no; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2801set dummy ${ac_tool_prefix}strip; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_STRIP+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2806else
2807 if test -n "$STRIP"; then
2808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821done
2822 done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827STRIP=$ac_cv_prog_STRIP
2828if test -n "$STRIP"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2830$as_echo "$STRIP" >&6; }
2831else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836
2837fi
2838if test -z "$ac_cv_prog_STRIP"; then
2839 ac_ct_STRIP=$STRIP
2840 # Extract the first word of "strip", so it can be a program name with args.
2841set dummy strip; ac_word=$2
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843$as_echo_n "checking for $ac_word... " >&6; }
2844if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846else
2847 if test -n "$ac_ct_STRIP"; then
2848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_STRIP="strip"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861done
2862 done
2863IFS=$as_save_IFS
2864
2865fi
2866fi
2867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2868if test -n "$ac_ct_STRIP"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2870$as_echo "$ac_ct_STRIP" >&6; }
2871else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873$as_echo "no" >&6; }
2874fi
2875
2876 if test "x$ac_ct_STRIP" = x; then
2877 STRIP=":"
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880yes:)
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883ac_tool_warned=yes ;;
2884esac
2885 STRIP=$ac_ct_STRIP
2886 fi
2887else
2888 STRIP="$ac_cv_prog_STRIP"
2889fi
2890
2891fi
2892INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2893
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2895$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2896if test -z "$MKDIR_P"; then
2897 if test "${ac_cv_path_mkdir+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2902do
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_prog in mkdir gmkdir; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2908 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909 'mkdir (GNU coreutils) '* | \
2910 'mkdir (coreutils) '* | \
2911 'mkdir (fileutils) '4.1*)
2912 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2913 break 3;;
2914 esac
2915 done
2916 done
076e5443 2917 done
5213506e
RW
2918IFS=$as_save_IFS
2919
2920fi
2921
2922 if test "${ac_cv_path_mkdir+set}" = set; then
2923 MKDIR_P="$ac_cv_path_mkdir -p"
076e5443 2924 else
5213506e
RW
2925 # As a last resort, use the slow shell script. Don't cache a
2926 # value for MKDIR_P within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the value is a relative name.
2929 test -d ./--version && rmdir ./--version
2930 MKDIR_P="$ac_install_sh -d"
076e5443
PB
2931 fi
2932fi
5213506e
RW
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2934$as_echo "$MKDIR_P" >&6; }
2935
2936mkdir_p="$MKDIR_P"
2937case $mkdir_p in
2938 [\\/$]* | ?:[\\/]*) ;;
2939 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2940esac
076e5443 2941
3ed8e5b6
AT
2942for ac_prog in gawk mawk nawk awk
2943do
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945set dummy $ac_prog; ac_word=$2
5213506e
RW
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_AWK+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2950else
2951 if test -n "$AWK"; then
2952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
5213506e
RW
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 2961 ac_cv_prog_AWK="$ac_prog"
5213506e 2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
2963 break 2
2964 fi
2965done
5213506e
RW
2966 done
2967IFS=$as_save_IFS
3ed8e5b6
AT
2968
2969fi
2970fi
2971AWK=$ac_cv_prog_AWK
2972if test -n "$AWK"; then
5213506e
RW
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2974$as_echo "$AWK" >&6; }
3ed8e5b6 2975else
5213506e
RW
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
3ed8e5b6
AT
2978fi
2979
5213506e 2980
3ed8e5b6
AT
2981 test -n "$AWK" && break
2982done
2983
5213506e
RW
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2985$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2986set x ${MAKE-make}
2987ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2988if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2989 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2990else
2991 cat >conftest.make <<\_ACEOF
5213506e 2992SHELL = /bin/sh
3ed8e5b6 2993all:
5213506e 2994 @echo '@@@%%%=$(MAKE)=@@@%%%'
3ed8e5b6
AT
2995_ACEOF
2996# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
2997case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 *@@@%%%=?*=@@@%%%*)
2999 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 *)
3001 eval ac_cv_prog_make_${ac_make}_set=no;;
3002esac
3ed8e5b6
AT
3003rm -f conftest.make
3004fi
5213506e
RW
3005if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007$as_echo "yes" >&6; }
3ed8e5b6
AT
3008 SET_MAKE=
3009else
5213506e
RW
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011$as_echo "no" >&6; }
3ed8e5b6
AT
3012 SET_MAKE="MAKE=${MAKE-make}"
3013fi
3014
3015rm -rf .tst 2>/dev/null
3016mkdir .tst 2>/dev/null
3017if test -d .tst; then
3018 am__leading_dot=.
3019else
3020 am__leading_dot=_
3021fi
3022rmdir .tst 2>/dev/null
3023
5213506e
RW
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 fi
3ed8e5b6
AT
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='libffi'
a761df3d 3046 VERSION='3.0.9'
3ed8e5b6
AT
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define PACKAGE "$PACKAGE"
3051_ACEOF
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define VERSION "$VERSION"
3056_ACEOF
3057
3058# Some tools Automake needs.
3059
3060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061
3062
3063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064
3065
3066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067
3068
3069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070
3071
3072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073
3ed8e5b6
AT
3074# We need awk for the "check" target. The system "awk" is bad on
3075# some platforms.
b85e31b9
KC
3076# Always define AMTAR for backward compatibility.
3077
3078AMTAR=${AMTAR-"${am_missing_run}tar"}
3079
3080am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3081
3082
3ed8e5b6
AT
3083
3084
3085
3086
3087# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3088# We must force CC to /not/ be precious variables; otherwise
3089# the wrong, non-multilib-adjusted value will be used in multilibs.
3090# As a side effect, we have to subst CFLAGS ourselves.
3091
3092
3093
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3106else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
5213506e
RW
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3119 break 2
3120 fi
3121done
5213506e
RW
3122 done
3123IFS=$as_save_IFS
3ed8e5b6
AT
3124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
5213506e
RW
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
3ed8e5b6 3131else
5213506e
RW
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3ed8e5b6
AT
3134fi
3135
5213506e 3136
3ed8e5b6
AT
3137fi
3138if test -z "$ac_cv_prog_CC"; then
3139 ac_ct_CC=$CC
3140 # Extract the first word of "gcc", so it can be a program name with args.
3141set dummy gcc; ac_word=$2
5213506e
RW
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3146else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
5213506e
RW
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3157 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3159 break 2
3160 fi
3161done
5213506e
RW
3162 done
3163IFS=$as_save_IFS
3ed8e5b6
AT
3164
3165fi
3166fi
3167ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168if test -n "$ac_ct_CC"; then
5213506e
RW
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3171else
5213506e
RW
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3ed8e5b6
AT
3174fi
3175
5213506e
RW
3176 if test "x$ac_ct_CC" = x; then
3177 CC=""
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180yes:)
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183ac_tool_warned=yes ;;
3184esac
3185 CC=$ac_ct_CC
3186 fi
3ed8e5b6
AT
3187else
3188 CC="$ac_cv_prog_CC"
3189fi
3190
3191if test -z "$CC"; then
5213506e
RW
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3ed8e5b6 3194set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196$as_echo_n "checking for $ac_word... " >&6; }
3197if test "${ac_cv_prog_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3199else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
5213506e
RW
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3210 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3212 break 2
3213 fi
3214done
5213506e
RW
3215 done
3216IFS=$as_save_IFS
3ed8e5b6
AT
3217
3218fi
3219fi
3220CC=$ac_cv_prog_CC
3221if test -n "$CC"; then
5213506e
RW
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223$as_echo "$CC" >&6; }
3ed8e5b6 3224else
5213506e
RW
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3ed8e5b6
AT
3227fi
3228
3ed8e5b6 3229
5213506e 3230 fi
3ed8e5b6
AT
3231fi
3232if test -z "$CC"; then
3233 # Extract the first word of "cc", so it can be a program name with args.
3234set dummy cc; ac_word=$2
5213506e
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if test "${ac_cv_prog_CC+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243 ac_prog_rejected=no
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
5213506e
RW
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6
AT
3251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252 ac_prog_rejected=yes
3253 continue
3254 fi
3255 ac_cv_prog_CC="cc"
5213506e 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3257 break 2
3258 fi
3259done
5213506e
RW
3260 done
3261IFS=$as_save_IFS
3ed8e5b6
AT
3262
3263if test $ac_prog_rejected = yes; then
3264 # We found a bogon in the path, so make sure we never use it.
3265 set dummy $ac_cv_prog_CC
3266 shift
3267 if test $# != 0; then
3268 # We chose a different compiler from the bogus one.
3269 # However, it has the same basename, so the bogon will be chosen
3270 # first if we set CC to just the basename; use the full file name.
3271 shift
3272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3273 fi
3274fi
3275fi
3276fi
3277CC=$ac_cv_prog_CC
3278if test -n "$CC"; then
5213506e
RW
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280$as_echo "$CC" >&6; }
3ed8e5b6 3281else
5213506e
RW
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3ed8e5b6
AT
3284fi
3285
5213506e 3286
3ed8e5b6
AT
3287fi
3288if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
5213506e 3290 for ac_prog in cl.exe
3ed8e5b6
AT
3291 do
3292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if test "${ac_cv_prog_CC+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3298else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
5213506e
RW
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3311 break 2
3312 fi
3313done
5213506e
RW
3314 done
3315IFS=$as_save_IFS
3ed8e5b6
AT
3316
3317fi
3318fi
3319CC=$ac_cv_prog_CC
3320if test -n "$CC"; then
5213506e
RW
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322$as_echo "$CC" >&6; }
3ed8e5b6 3323else
5213506e
RW
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3ed8e5b6
AT
3326fi
3327
5213506e 3328
3ed8e5b6
AT
3329 test -n "$CC" && break
3330 done
3331fi
3332if test -z "$CC"; then
3333 ac_ct_CC=$CC
5213506e 3334 for ac_prog in cl.exe
3ed8e5b6
AT
3335do
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337set dummy $ac_prog; ac_word=$2
5213506e
RW
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3342else
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
5213506e
RW
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3353 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3355 break 2
3356 fi
3357done
5213506e
RW
3358 done
3359IFS=$as_save_IFS
3ed8e5b6
AT
3360
3361fi
3362fi
3363ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364if test -n "$ac_ct_CC"; then
5213506e
RW
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3367else
5213506e
RW
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3ed8e5b6
AT
3370fi
3371
5213506e 3372
3ed8e5b6
AT
3373 test -n "$ac_ct_CC" && break
3374done
3375
5213506e
RW
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380yes:)
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383ac_tool_warned=yes ;;
3384esac
3385 CC=$ac_ct_CC
3386 fi
3ed8e5b6
AT
3387fi
3388
3389fi
3390
3391
5213506e
RW
3392test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394as_fn_error "no acceptable C compiler found in \$PATH
3395See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3396
3397# Provide some information about the compiler.
5213506e
RW
3398$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3399set X $ac_compile
3400ac_compiler=$2
3401for ac_option in --version -v -V -qversion; do
3402 { { ac_try="$ac_compiler $ac_option >&5"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3ed8e5b6 3410 ac_status=$?
5213506e
RW
3411 if test -s conftest.err; then
3412 sed '10a\
3413... rest of stderr output deleted ...
3414 10q' conftest.err >conftest.er1
3415 cat conftest.er1 >&5
3416 rm -f conftest.er1 conftest.err
3417 fi
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420done
3ed8e5b6 3421
5213506e 3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3423/* end confdefs.h. */
3424
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433ac_clean_files_save=$ac_clean_files
5213506e 3434ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3ed8e5b6
AT
3435# Try to create an executable without -o first, disregard a.out.
3436# It will help us diagnose broken compilers, and finding out an intuition
3437# of exeext.
5213506e
RW
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3439$as_echo_n "checking for C compiler default output file name... " >&6; }
3440ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441
3442# The possible output files:
3443ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444
3445ac_rmfiles=
3446for ac_file in $ac_files
3447do
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451 esac
3452done
3453rm -f $ac_rmfiles
3454
3455if { { ac_try="$ac_link_default"
3456case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link_default") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468# in a Makefile. We should not override ac_cv_exeext if it was cached,
3469# so that the user can short-circuit this test for compilers unknown to
3470# Autoconf.
3471for ac_file in $ac_files ''
3ed8e5b6
AT
3472do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
5213506e 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3ed8e5b6
AT
3476 ;;
3477 [ab].out )
3478 # We found the default executable, but exeext='' is most
3479 # certainly right.
3480 break;;
3481 *.* )
5213506e
RW
3482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3483 then :; else
3484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 fi
3486 # We set ac_cv_exeext here because the later test for it is not
3487 # safe: cross compilers may not add the suffix if given an `-o'
3488 # argument, so we may need to know it at that point already.
3489 # Even if this section looks crufty: it has the advantage of
3490 # actually working.
3ed8e5b6
AT
3491 break;;
3492 * )
3493 break;;
3494 esac
3495done
5213506e
RW
3496test "$ac_cv_exeext" = no && ac_cv_exeext=
3497
3ed8e5b6 3498else
5213506e
RW
3499 ac_file=''
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3502$as_echo "$ac_file" >&6; }
3503if test -z "$ac_file"; then :
3504 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
5213506e
RW
3507{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509{ as_fn_set_status 77
3510as_fn_error "C compiler cannot create executables
3511See \`config.log' for more details." "$LINENO" 5; }; }
3ed8e5b6 3512fi
3ed8e5b6 3513ac_exeext=$ac_cv_exeext
3ed8e5b6 3514
5213506e 3515# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3516# the compiler is broken, or we cross compile.
5213506e
RW
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3518$as_echo_n "checking whether the C compiler works... " >&6; }
3ed8e5b6
AT
3519# If not cross compiling, check that we can run a simple program.
3520if test "$cross_compiling" != yes; then
3521 if { ac_try='./$ac_file'
5213506e
RW
3522 { { case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_try") 2>&5
3ed8e5b6 3529 ac_status=$?
5213506e
RW
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; }; then
3ed8e5b6
AT
3532 cross_compiling=no
3533 else
3534 if test "$cross_compiling" = maybe; then
3535 cross_compiling=yes
3536 else
5213506e
RW
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error "cannot run C compiled programs.
3ed8e5b6 3540If you meant to cross compile, use \`--host'.
5213506e 3541See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3542 fi
3543 fi
3544fi
5213506e
RW
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546$as_echo "yes" >&6; }
3ed8e5b6 3547
5213506e 3548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3ed8e5b6 3549ac_clean_files=$ac_clean_files_save
5213506e 3550# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3551# the compiler is broken, or we cross compile.
5213506e
RW
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553$as_echo_n "checking whether we are cross compiling... " >&6; }
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3555$as_echo "$cross_compiling" >&6; }
3556
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3558$as_echo_n "checking for suffix of executables... " >&6; }
3559if { { ac_try="$ac_link"
3560case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_link") 2>&5
3ed8e5b6 3567 ac_status=$?
5213506e
RW
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3ed8e5b6
AT
3570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3571# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3572# work properly (i.e., refer to `conftest.exe'), while it won't with
3573# `rm'.
3574for ac_file in conftest.exe conftest conftest.*; do
3575 test -f "$ac_file" || continue
3576 case $ac_file in
5213506e 3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3ed8e5b6 3578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3ed8e5b6
AT
3579 break;;
3580 * ) break;;
3581 esac
3582done
3583else
5213506e
RW
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586as_fn_error "cannot compute suffix of executables: cannot compile and link
3587See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3588fi
3ed8e5b6 3589rm -f conftest$ac_cv_exeext
5213506e
RW
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3591$as_echo "$ac_cv_exeext" >&6; }
3ed8e5b6
AT
3592
3593rm -f conftest.$ac_ext
3594EXEEXT=$ac_cv_exeext
3595ac_exeext=$EXEEXT
5213506e
RW
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597$as_echo_n "checking for suffix of object files... " >&6; }
3598if test "${ac_cv_objext+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3ed8e5b6 3600else
5213506e 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.o conftest.obj
5213506e
RW
3613if { { ac_try="$ac_compile"
3614case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617esac
3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619$as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3ed8e5b6 3626 case $ac_file in
5213506e 3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3ed8e5b6
AT
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 break;;
3630 esac
3631done
3632else
5213506e 3633 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
5213506e
RW
3636{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638as_fn_error "cannot compute suffix of object files: cannot compile
3639See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3640fi
3ed8e5b6
AT
3641rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642fi
5213506e
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644$as_echo "$ac_cv_objext" >&6; }
3ed8e5b6
AT
3645OBJEXT=$ac_cv_objext
3646ac_objext=$OBJEXT
5213506e
RW
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3ed8e5b6 3651else
5213506e 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3653/* end confdefs.h. */
3654
3655int
3656main ()
3657{
3658#ifndef __GNUC__
3659 choke me
3660#endif
3661
3662 ;
3663 return 0;
3664}
3665_ACEOF
5213506e 3666if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3667 ac_compiler_gnu=yes
3668else
5213506e 3669 ac_compiler_gnu=no
3ed8e5b6 3670fi
5213506e 3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
3672ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674fi
5213506e
RW
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679else
3680 GCC=
3681fi
3ed8e5b6
AT
3682ac_test_CFLAGS=${CFLAGS+set}
3683ac_save_CFLAGS=$CFLAGS
5213506e
RW
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685$as_echo_n "checking whether $CC accepts -g... " >&6; }
3686if test "${ac_cv_prog_cc_g+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3694/* end confdefs.h. */
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
5213506e 3704if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3705 ac_cv_prog_cc_g=yes
3706else
5213506e
RW
3707 CFLAGS=""
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h. */
3710
3711int
3712main ()
3713{
3714
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_compile "$LINENO"; then :
3720
3721else
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h. */
3ed8e5b6 3726
5213506e
RW
3727int
3728main ()
3729{
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3737fi
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3739fi
5213506e 3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3741fi
5213506e
RW
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746$as_echo "$ac_cv_prog_cc_g" >&6; }
3ed8e5b6
AT
3747if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3754 fi
3755else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3760 fi
3761fi
5213506e
RW
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764if test "${ac_cv_prog_cc_c89+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3ed8e5b6 3766else
5213506e 3767 ac_cv_prog_cc_c89=no
3ed8e5b6 3768ac_save_CC=$CC
5213506e 3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3770/* end confdefs.h. */
3771#include <stdarg.h>
3772#include <stdio.h>
3773#include <sys/types.h>
3774#include <sys/stat.h>
3775/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776struct buf { int x; };
3777FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778static char *e (p, i)
3779 char **p;
3780 int i;
3781{
3782 return p[i];
3783}
3784static char *f (char * (*g) (char **, int), char **p, ...)
3785{
3786 char *s;
3787 va_list v;
3788 va_start (v,p);
3789 s = g (p, va_arg (v,int));
3790 va_end (v);
3791 return s;
3792}
3793
3794/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
5213506e 3797 as 'x'. The following induces an error, until -std is added to get
3ed8e5b6
AT
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3800 that's true only with -std. */
3ed8e5b6
AT
3801int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802
5213506e
RW
3803/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3805#define FOO(x) 'x'
3806int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807
3ed8e5b6
AT
3808int test (int i, double x);
3809struct s1 {int (*f) (int a);};
3810struct s2 {int (*f) (double a);};
3811int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812int argc;
3813char **argv;
3814int
3815main ()
3816{
3817return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 ;
3819 return 0;
3820}
3821_ACEOF
5213506e
RW
3822for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3ed8e5b6
AT
3824do
3825 CC="$ac_save_CC $ac_arg"
5213506e
RW
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3ed8e5b6 3828fi
5213506e
RW
3829rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3ed8e5b6 3831done
5213506e 3832rm -f conftest.$ac_ext
3ed8e5b6
AT
3833CC=$ac_save_CC
3834
3835fi
5213506e
RW
3836# AC_CACHE_VAL
3837case "x$ac_cv_prog_cc_c89" in
3838 x)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840$as_echo "none needed" >&6; } ;;
3841 xno)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843$as_echo "unsupported" >&6; } ;;
3ed8e5b6 3844 *)
5213506e
RW
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3ed8e5b6 3848esac
5213506e 3849if test "x$ac_cv_prog_cc_c89" != xno; then :
3ed8e5b6
AT
3850
3851fi
3ed8e5b6 3852
3ed8e5b6
AT
3853ac_ext=c
3854ac_cpp='$CPP $CPPFLAGS'
3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858DEPDIR="${am__leading_dot}deps"
3859
5213506e 3860ac_config_commands="$ac_config_commands depfiles"
3ed8e5b6
AT
3861
3862
3863am_make=${MAKE-make}
3864cat > confinc << 'END'
3865am__doit:
5213506e 3866 @echo this is the am__doit target
3ed8e5b6
AT
3867.PHONY: am__doit
3868END
3869# If we don't find an include directive, just comment out the code.
5213506e
RW
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3871$as_echo_n "checking for style of include used by $am_make... " >&6; }
3ed8e5b6
AT
3872am__include="#"
3873am__quote=
3874_am_result=none
3875# First try GNU make style include.
3876echo "include confinc" > confmf
5213506e
RW
3877# Ignore all kinds of additional output from `make'.
3878case `$am_make -s -f confmf 2> /dev/null` in #(
3879*the\ am__doit\ target*)
3880 am__include=include
3881 am__quote=
3882 _am_result=GNU
3883 ;;
3884esac
3ed8e5b6
AT
3885# Now try BSD make style include.
3886if test "$am__include" = "#"; then
3887 echo '.include "confinc"' > confmf
5213506e
RW
3888 case `$am_make -s -f confmf 2> /dev/null` in #(
3889 *the\ am__doit\ target*)
3890 am__include=.include
3891 am__quote="\""
3892 _am_result=BSD
3893 ;;
3894 esac
3ed8e5b6
AT
3895fi
3896
3897
5213506e
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3899$as_echo "$_am_result" >&6; }
3ed8e5b6
AT
3900rm -f confinc confmf
3901
5213506e
RW
3902# Check whether --enable-dependency-tracking was given.
3903if test "${enable_dependency_tracking+set}" = set; then :
3904 enableval=$enable_dependency_tracking;
3905fi
3ed8e5b6 3906
3ed8e5b6
AT
3907if test "x$enable_dependency_tracking" != xno; then
3908 am_depcomp="$ac_aux_dir/depcomp"
3909 AMDEPBACKSLASH='\'
3910fi
5213506e 3911 if test "x$enable_dependency_tracking" != xno; then
3ed8e5b6
AT
3912 AMDEP_TRUE=
3913 AMDEP_FALSE='#'
3914else
3915 AMDEP_TRUE='#'
3916 AMDEP_FALSE=
3917fi
3918
3919
3920
3ed8e5b6
AT
3921depcc="$CC" am_compiler_list=
3922
5213506e
RW
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924$as_echo_n "checking dependency style of $depcc... " >&6; }
3925if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3927else
3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929 # We make a subdir and do the tests there. Otherwise we can end up
3930 # making bogus files that we don't know about and never remove. For
3931 # instance it was reported that on HP-UX the gcc test will end up
3932 # making a dummy file named `D' -- because `-MD' means `put the output
3933 # in D'.
3934 mkdir conftest.dir
3935 # Copy depcomp to subdir because otherwise we won't find it if we're
3936 # using a relative directory.
3937 cp "$am_depcomp" conftest.dir
3938 cd conftest.dir
3939 # We will build objects and dependencies in a subdirectory because
3940 # it helps to detect inapplicable dependency modes. For instance
3941 # both Tru64's cc and ICC support -MD to output dependencies as a
3942 # side effect of compilation, but ICC will put the dependencies in
3943 # the current directory while Tru64 will put them in the object
3944 # directory.
3945 mkdir sub
3946
3947 am_cv_CC_dependencies_compiler_type=none
3948 if test "$am_compiler_list" = ""; then
3949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3950 fi
5213506e
RW
3951 am__universal=false
3952 case " $depcc " in #(
3953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3954 esac
3955
3ed8e5b6
AT
3956 for depmode in $am_compiler_list; do
3957 # Setup a source with many dependencies, because some compilers
3958 # like to wrap large dependency lists on column 80 (with \), and
3959 # we should not choose a depcomp mode which is confused by this.
3960 #
3961 # We need to recreate these files for each test, as the compiler may
3962 # overwrite some of them when testing with obscure command lines.
3963 # This happens at least with the AIX C compiler.
3964 : > sub/conftest.c
3965 for i in 1 2 3 4 5 6; do
3966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3967 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3968 # Solaris 8's {/usr,}/bin/sh.
3969 touch sub/conftst$i.h
3ed8e5b6
AT
3970 done
3971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972
5213506e
RW
3973 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3974 # mode. It turns out that the SunPro C++ compiler does not properly
3975 # handle `-M -o', and we need to detect this. Also, some Intel
3976 # versions had trouble with output in subdirs
3977 am__obj=sub/conftest.${OBJEXT-o}
3978 am__minus_obj="-o $am__obj"
3ed8e5b6 3979 case $depmode in
5213506e
RW
3980 gcc)
3981 # This depmode causes a compiler race in universal mode.
3982 test "$am__universal" = false || continue
3983 ;;
3ed8e5b6
AT
3984 nosideeffect)
3985 # after this tag, mechanisms are not by side-effect, so they'll
3986 # only be used when explicitly requested
3987 if test "x$enable_dependency_tracking" = xyes; then
3988 continue
3989 else
3990 break
3991 fi
3992 ;;
5213506e
RW
3993 msvisualcpp | msvcmsys)
3994 # This compiler won't grok `-c -o', but also, the minuso test has
3995 # not run yet. These depmodes are late enough in the game, and
3996 # so weak that their functioning should not be impacted.
3997 am__obj=conftest.${OBJEXT-o}
3998 am__minus_obj=
3999 ;;
3ed8e5b6
AT
4000 none) break ;;
4001 esac
3ed8e5b6 4002 if depmode=$depmode \
5213506e 4003 source=sub/conftest.c object=$am__obj \
3ed8e5b6 4004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3ed8e5b6 4006 >/dev/null 2>conftest.err &&
5213506e 4007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6 4008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6
AT
4010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4011 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
4012 # or remarks (even with -Werror). So we grep stderr for any message
4013 # that says an option was ignored or not supported.
4014 # When given -MP, icc 7.0 and 7.1 complain thusly:
4015 # icc: Command line warning: ignoring option '-M'; no argument required
4016 # The diagnosis changed in icc 8.0:
4017 # icc: Command line remark: option '-MP' not supported
4018 if (grep 'ignoring option' conftest.err ||
4019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
4020 am_cv_CC_dependencies_compiler_type=$depmode
4021 break
4022 fi
4023 fi
4024 done
bbf3057b 4025
3ed8e5b6
AT
4026 cd ..
4027 rm -rf conftest.dir
4028else
4029 am_cv_CC_dependencies_compiler_type=none
4030fi
4031
4032fi
5213506e
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4034$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3ed8e5b6
AT
4035CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4036
5213506e 4037 if
3ed8e5b6
AT
4038 test "x$enable_dependency_tracking" != xno \
4039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040 am__fastdepCC_TRUE=
4041 am__fastdepCC_FALSE='#'
4042else
4043 am__fastdepCC_TRUE='#'
4044 am__fastdepCC_FALSE=
4045fi
4046
4047
4048
4049
4050
4051
4052# By default we simply use the C compiler to build assembly code.
4053
076e5443
PB
4054test "${CCAS+set}" = set || CCAS=$CC
4055test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4056
3ed8e5b6
AT
4057
4058
5213506e
RW
4059depcc="$CCAS" am_compiler_list=
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062$as_echo_n "checking dependency style of $depcc... " >&6; }
4063if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
3ed8e5b6 4065else
5213506e
RW
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named `D' -- because `-MD' means `put the output
4071 # in D'.
4072 mkdir conftest.dir
4073 # Copy depcomp to subdir because otherwise we won't find it if we're
4074 # using a relative directory.
4075 cp "$am_depcomp" conftest.dir
4076 cd conftest.dir
4077 # We will build objects and dependencies in a subdirectory because
4078 # it helps to detect inapplicable dependency modes. For instance
4079 # both Tru64's cc and ICC support -MD to output dependencies as a
4080 # side effect of compilation, but ICC will put the dependencies in
4081 # the current directory while Tru64 will put them in the object
4082 # directory.
4083 mkdir sub
3ed8e5b6 4084
5213506e
RW
4085 am_cv_CCAS_dependencies_compiler_type=none
4086 if test "$am_compiler_list" = ""; then
4087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4088 fi
4089 am__universal=false
3ed8e5b6 4090
5213506e
RW
4091
4092 for depmode in $am_compiler_list; do
4093 # Setup a source with many dependencies, because some compilers
4094 # like to wrap large dependency lists on column 80 (with \), and
4095 # we should not choose a depcomp mode which is confused by this.
4096 #
4097 # We need to recreate these files for each test, as the compiler may
4098 # overwrite some of them when testing with obscure command lines.
4099 # This happens at least with the AIX C compiler.
4100 : > sub/conftest.c
4101 for i in 1 2 3 4 5 6; do
4102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4104 # Solaris 8's {/usr,}/bin/sh.
4105 touch sub/conftst$i.h
4106 done
4107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4108
4109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4110 # mode. It turns out that the SunPro C++ compiler does not properly
4111 # handle `-M -o', and we need to detect this. Also, some Intel
4112 # versions had trouble with output in subdirs
4113 am__obj=sub/conftest.${OBJEXT-o}
4114 am__minus_obj="-o $am__obj"
4115 case $depmode in
4116 gcc)
4117 # This depmode causes a compiler race in universal mode.
4118 test "$am__universal" = false || continue
4119 ;;
4120 nosideeffect)
4121 # after this tag, mechanisms are not by side-effect, so they'll
4122 # only be used when explicitly requested
4123 if test "x$enable_dependency_tracking" = xyes; then
4124 continue
4125 else
4126 break
4127 fi
4128 ;;
4129 msvisualcpp | msvcmsys)
4130 # This compiler won't grok `-c -o', but also, the minuso test has
4131 # not run yet. These depmodes are late enough in the game, and
4132 # so weak that their functioning should not be impacted.
4133 am__obj=conftest.${OBJEXT-o}
4134 am__minus_obj=
4135 ;;
4136 none) break ;;
4137 esac
4138 if depmode=$depmode \
4139 source=sub/conftest.c object=$am__obj \
4140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4142 >/dev/null 2>conftest.err &&
4143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147 # icc doesn't choke on unknown options, it will just issue warnings
4148 # or remarks (even with -Werror). So we grep stderr for any message
4149 # that says an option was ignored or not supported.
4150 # When given -MP, icc 7.0 and 7.1 complain thusly:
4151 # icc: Command line warning: ignoring option '-M'; no argument required
4152 # The diagnosis changed in icc 8.0:
4153 # icc: Command line remark: option '-MP' not supported
4154 if (grep 'ignoring option' conftest.err ||
4155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156 am_cv_CCAS_dependencies_compiler_type=$depmode
4157 break
4158 fi
4159 fi
4160 done
4161
4162 cd ..
4163 rm -rf conftest.dir
4164else
4165 am_cv_CCAS_dependencies_compiler_type=none
4166fi
4167
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4170$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4171CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4172
4173 if
4174 test "x$enable_dependency_tracking" != xno \
4175 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4176 am__fastdepCCAS_TRUE=
4177 am__fastdepCCAS_FALSE='#'
4178else
4179 am__fastdepCCAS_TRUE='#'
4180 am__fastdepCCAS_FALSE=
4181fi
4182
4183
4184if test "x$CC" != xcc; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4186$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4187else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4189$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4190fi
4191set dummy $CC; ac_cc=`$as_echo "$2" |
4192 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4193if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4194 $as_echo_n "(cached) " >&6
4195else
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h. */
4198
4199int
4200main ()
4201{
4202
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207# Make sure it works both with $CC and with simple cc.
4208# We do the test twice because some compilers refuse to overwrite an
4209# existing .o file with -o, though they will create one.
4210ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211rm -f conftest2.*
4212if { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217$as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4219 ac_status=$?
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; } &&
4222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_try") 2>&5
3ed8e5b6 4229 ac_status=$?
5213506e
RW
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; };
3ed8e5b6
AT
4232then
4233 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4234 if test "x$CC" != xcc; then
4235 # Test first that cc exists at all.
4236 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4237 { { case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242$as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }; }; then
4247 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4248 rm -f conftest2.*
4249 if { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254$as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; } &&
4259 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264$as_echo "$ac_try_echo"; } >&5
4265 (eval "$ac_try") 2>&5
3ed8e5b6 4266 ac_status=$?
5213506e
RW
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; };
3ed8e5b6
AT
4269 then
4270 # cc works too.
4271 :
4272 else
4273 # cc exists but doesn't like -o.
4274 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4275 fi
4276 fi
4277 fi
4278else
4279 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4280fi
5213506e 4281rm -f core conftest*
3ed8e5b6
AT
4282
4283fi
5213506e
RW
4284if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286$as_echo "yes" >&6; }
3ed8e5b6 4287else
5213506e
RW
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
3ed8e5b6 4290
5213506e 4291$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3ed8e5b6
AT
4292
4293fi
4294
4295# FIXME: we rely on the cache variable name because
4296# there is no other way.
4297set dummy $CC
5213506e
RW
4298am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4299eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4300if test "$am_t" != yes; then
3ed8e5b6
AT
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4307fi
63e5e3e0 4308
5213506e 4309
80c6c2cb
PG
4310case `pwd` in
4311 *\ * | *\ *)
5213506e
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4313$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
80c6c2cb 4314esac
1cf3d07d
SE
4315
4316
1cf3d07d 4317
43e02a8a
RW
4318macro_version='2.2.7a'
4319macro_revision='1.3134'
1cf3d07d
SE
4320
4321
4322
4323
4324
4325
63e5e3e0 4326
1cf3d07d
SE
4327
4328
4329
4330
4331
4332
80c6c2cb 4333ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4334
43e02a8a
RW
4335# Backslashify metacharacters that are still active within
4336# double-quoted strings.
4337sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4338
4339# Same as above, but do not quote variable references.
4340double_quote_subst='s/\(["`\\]\)/\\\1/g'
4341
4342# Sed substitution to delay expansion of an escaped shell variable in a
4343# double_quote_subst'ed string.
4344delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4345
4346# Sed substitution to delay expansion of an escaped single quote.
4347delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4348
4349# Sed substitution to avoid accidental globbing in evaled expressions
4350no_glob_subst='s/\*/\\\*/g'
4351
4352ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4353ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4354ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4355
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4357$as_echo_n "checking how to print strings... " >&6; }
4358# Test print first, because it will be a builtin if present.
4359if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4361 ECHO='print -r --'
4362elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4363 ECHO='printf %s\n'
4364else
4365 # Use this function as a fallback that always works.
4366 func_fallback_echo ()
4367 {
4368 eval 'cat <<_LTECHO_EOF
4369$1
4370_LTECHO_EOF'
4371 }
4372 ECHO='func_fallback_echo'
4373fi
4374
4375# func_echo_all arg...
4376# Invoke $ECHO with all args, space-separated.
4377func_echo_all ()
4378{
4379 $ECHO ""
4380}
4381
4382case "$ECHO" in
4383 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4384$as_echo "printf" >&6; } ;;
4385 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4386$as_echo "print -r" >&6; } ;;
4387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4388$as_echo "cat" >&6; } ;;
4389esac
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
5213506e
RW
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4405$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4406if test "${ac_cv_path_SED+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408else
4409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4410 for ac_i in 1 2 3 4 5 6 7; do
4411 ac_script="$ac_script$as_nl$ac_script"
4412 done
4413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4414 { ac_script=; unset ac_script;}
4415 if test -z "$SED"; then
4416 ac_path_SED_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
5213506e 4423 for ac_prog in sed gsed; do
1cf3d07d 4424 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4425 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4426 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4427# Check for GNU ac_path_SED and select it if it is found.
4428 # Check for GNU $ac_path_SED
4429case `"$ac_path_SED" --version 2>&1` in
4430*GNU*)
4431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4432*)
4433 ac_count=0
4434 $as_echo_n 0123456789 >"conftest.in"
4435 while :
4436 do
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo '' >> "conftest.nl"
4441 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_SED_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_SED="$ac_path_SED"
4447 ac_path_SED_max=$ac_count
4448 fi
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4451 done
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453esac
4454
4455 $ac_path_SED_found && break 3
1cf3d07d
SE
4456 done
4457 done
5213506e 4458 done
1cf3d07d 4459IFS=$as_save_IFS
5213506e
RW
4460 if test -z "$ac_cv_path_SED"; then
4461 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4462 fi
5213506e
RW
4463else
4464 ac_cv_path_SED=$SED
1cf3d07d
SE
4465fi
4466
5213506e
RW
4467fi
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4469$as_echo "$ac_cv_path_SED" >&6; }
4470 SED="$ac_cv_path_SED"
4471 rm -f conftest.sed
1cf3d07d
SE
4472
4473test -z "$SED" && SED=sed
4474Xsed="$SED -e 1s/^X//"
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
5213506e
RW
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4487$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4488if test "${ac_cv_path_GREP+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 if test -z "$GREP"; then
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503# Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505case `"$ac_path_GREP" --version 2>&1` in
4506*GNU*)
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4508*)
4509 ac_count=0
4510 $as_echo_n 0123456789 >"conftest.in"
4511 while :
4512 do
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 $as_echo 'GREP' >> "conftest.nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 as_fn_arith $ac_count + 1 && ac_count=$as_val
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4524 fi
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4527 done
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529esac
4530
4531 $ac_path_GREP_found && break 3
4532 done
4533 done
4534 done
4535IFS=$as_save_IFS
4536 if test -z "$ac_cv_path_GREP"; then
4537 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4538 fi
4539else
4540 ac_cv_path_GREP=$GREP
4541fi
4542
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4545$as_echo "$ac_cv_path_GREP" >&6; }
4546 GREP="$ac_cv_path_GREP"
4547
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4550$as_echo_n "checking for egrep... " >&6; }
4551if test "${ac_cv_path_EGREP+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
1cf3d07d 4553else
5213506e
RW
4554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4555 then ac_cv_path_EGREP="$GREP -E"
4556 else
4557 if test -z "$EGREP"; then
4558 ac_path_EGREP_found=false
4559 # Loop through the user's path and test for each of PROGNAME-LIST
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_prog in egrep; do
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4568 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4569# Check for GNU ac_path_EGREP and select it if it is found.
4570 # Check for GNU $ac_path_EGREP
4571case `"$ac_path_EGREP" --version 2>&1` in
4572*GNU*)
4573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4574*)
4575 ac_count=0
4576 $as_echo_n 0123456789 >"conftest.in"
4577 while :
4578 do
4579 cat "conftest.in" "conftest.in" >"conftest.tmp"
4580 mv "conftest.tmp" "conftest.in"
4581 cp "conftest.in" "conftest.nl"
4582 $as_echo 'EGREP' >> "conftest.nl"
4583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585 as_fn_arith $ac_count + 1 && ac_count=$as_val
4586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4587 # Best one so far, save it but keep looking for a better one
4588 ac_cv_path_EGREP="$ac_path_EGREP"
4589 ac_path_EGREP_max=$ac_count
1cf3d07d 4590 fi
5213506e
RW
4591 # 10*(2^10) chars as input seems more than enough
4592 test $ac_count -gt 10 && break
4593 done
4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595esac
4596
4597 $ac_path_EGREP_found && break 3
4598 done
4599 done
4600 done
4601IFS=$as_save_IFS
4602 if test -z "$ac_cv_path_EGREP"; then
4603 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4604 fi
4605else
4606 ac_cv_path_EGREP=$EGREP
4607fi
4608
4609 fi
1cf3d07d 4610fi
5213506e
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4612$as_echo "$ac_cv_path_EGREP" >&6; }
4613 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
4614
4615
5213506e
RW
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4617$as_echo_n "checking for fgrep... " >&6; }
4618if test "${ac_cv_path_FGREP+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
1cf3d07d 4620else
5213506e
RW
4621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4622 then ac_cv_path_FGREP="$GREP -F"
4623 else
4624 if test -z "$FGREP"; then
4625 ac_path_FGREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in fgrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4636# Check for GNU ac_path_FGREP and select it if it is found.
4637 # Check for GNU $ac_path_FGREP
4638case `"$ac_path_FGREP" --version 2>&1` in
4639*GNU*)
4640 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4641*)
4642 ac_count=0
4643 $as_echo_n 0123456789 >"conftest.in"
4644 while :
4645 do
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'FGREP' >> "conftest.nl"
4650 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_FGREP="$ac_path_FGREP"
4656 ac_path_FGREP_max=$ac_count
1cf3d07d 4657 fi
5213506e
RW
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662esac
4663
4664 $ac_path_FGREP_found && break 3
4665 done
4666 done
4667 done
4668IFS=$as_save_IFS
4669 if test -z "$ac_cv_path_FGREP"; then
4670 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 fi
4672else
4673 ac_cv_path_FGREP=$FGREP
4674fi
4675
4676 fi
1cf3d07d 4677fi
5213506e
RW
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4679$as_echo "$ac_cv_path_FGREP" >&6; }
4680 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4681
4682
4683test -z "$GREP" && GREP=grep
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
5213506e
RW
4703# Check whether --with-gnu-ld was given.
4704if test "${with_gnu_ld+set}" = set; then :
4705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
63e5e3e0 4706else
675cdab3 4707 with_gnu_ld=no
5213506e
RW
4708fi
4709
63e5e3e0 4710ac_prog=ld
675cdab3 4711if test "$GCC" = yes; then
63e5e3e0 4712 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4714$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
4715 case $host in
4716 *-*-mingw*)
4717 # gcc leaves a trailing carriage return which upsets mingw
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4719 *)
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4721 esac
675cdab3 4722 case $ac_prog in
63e5e3e0 4723 # Accept absolute paths.
1cf3d07d 4724 [\\/]* | ?:[\\/]*)
63e5e3e0 4725 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4726 # Canonicalize the pathname of ld
4727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
4730 done
4731 test -z "$LD" && LD="$ac_prog"
4732 ;;
4733 "")
4734 # If it fails, then pretend we aren't using GCC.
4735 ac_prog=ld
4736 ;;
4737 *)
4738 # If it is relative, then search for the first ld in PATH.
4739 with_gnu_ld=unknown
4740 ;;
4741 esac
4742elif test "$with_gnu_ld" = yes; then
5213506e
RW
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4744$as_echo_n "checking for GNU ld... " >&6; }
63e5e3e0 4745else
5213506e
RW
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4747$as_echo_n "checking for non-GNU ld... " >&6; }
63e5e3e0 4748fi
5213506e
RW
4749if test "${lt_cv_path_LD+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4751else
4752 if test -z "$LD"; then
1cf3d07d 4753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 4754 for ac_dir in $PATH; do
1cf3d07d 4755 IFS="$lt_save_ifs"
63e5e3e0 4756 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 4757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 4758 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 4759 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4760 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 4761 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
63e5e3e0 4764 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4765 ;;
4766 *)
63e5e3e0 4767 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4768 ;;
4769 esac
63e5e3e0
AG
4770 fi
4771 done
1cf3d07d 4772 IFS="$lt_save_ifs"
63e5e3e0 4773else
675cdab3 4774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
4775fi
4776fi
4777
675cdab3 4778LD="$lt_cv_path_LD"
63e5e3e0 4779if test -n "$LD"; then
5213506e
RW
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4781$as_echo "$LD" >&6; }
63e5e3e0 4782else
5213506e
RW
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
63e5e3e0 4785fi
5213506e
RW
4786test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4788$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4789if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
63e5e3e0 4791else
1cf3d07d
SE
4792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793case `$LD -v 2>&1 </dev/null` in
4794*GNU* | *'with BFD'*)
675cdab3 4795 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4796 ;;
4797*)
675cdab3 4798 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4799 ;;
4800esac
63e5e3e0 4801fi
5213506e
RW
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4803$as_echo "$lt_cv_prog_gnu_ld" >&6; }
675cdab3 4804with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 4805
63e5e3e0
AG
4806
4807
1cf3d07d
SE
4808
4809
4810
4811
4812
4813
5213506e
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4815$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4816if test "${lt_cv_path_NM+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4818else
4819 if test -n "$NM"; then
4820 # Let the user override the test.
675cdab3 4821 lt_cv_path_NM="$NM"
63e5e3e0 4822else
1cf3d07d
SE
4823 lt_nm_to_check="${ac_tool_prefix}nm"
4824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4825 lt_nm_to_check="$lt_nm_to_check nm"
4826 fi
4827 for lt_tmp_nm in $lt_nm_to_check; do
4828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4830 IFS="$lt_save_ifs"
4831 test -z "$ac_dir" && ac_dir=.
4832 tmp_nm="$ac_dir/$lt_tmp_nm"
4833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4834 # Check to see if the nm accepts a BSD-compat flag.
4835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4836 # nm: unknown option "B" ignored
4837 # Tru64's nm complains that /dev/null is an invalid object file
4838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4839 */dev/null* | *'Invalid file or object type'*)
4840 lt_cv_path_NM="$tmp_nm -B"
4841 break
4842 ;;
4843 *)
4844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4845 */dev/null*)
4846 lt_cv_path_NM="$tmp_nm -p"
4847 break
4848 ;;
4849 *)
4850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4851 continue # so that we can try to find one that supports BSD flags
4852 ;;
4853 esac
4854 ;;
4855 esac
63e5e3e0 4856 fi
1cf3d07d
SE
4857 done
4858 IFS="$lt_save_ifs"
63e5e3e0 4859 done
1cf3d07d 4860 : ${lt_cv_path_NM=no}
63e5e3e0
AG
4861fi
4862fi
5213506e
RW
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4864$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4865if test "$lt_cv_path_NM" != "no"; then
4866 NM="$lt_cv_path_NM"
63e5e3e0 4867else
1cf3d07d 4868 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
4869 if test -n "$DUMPBIN"; then :
4870 # Let the user override the test.
4871 else
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4874 do
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878$as_echo_n "checking for $ac_word... " >&6; }
4879if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
2f7bf5b7 4881else
1cf3d07d
SE
4882 if test -n "$DUMPBIN"; then
4883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4884else
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
5213506e
RW
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4894 break 2
4895 fi
4896done
5213506e
RW
4897 done
4898IFS=$as_save_IFS
2f7bf5b7 4899
1cf3d07d
SE
4900fi
4901fi
4902DUMPBIN=$ac_cv_prog_DUMPBIN
4903if test -n "$DUMPBIN"; then
5213506e
RW
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4905$as_echo "$DUMPBIN" >&6; }
1cf3d07d 4906else
5213506e
RW
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
1cf3d07d 4909fi
675cdab3 4910
5213506e 4911
1cf3d07d
SE
4912 test -n "$DUMPBIN" && break
4913 done
4914fi
4915if test -z "$DUMPBIN"; then
4916 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 4917 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
4918do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920set dummy $ac_prog; ac_word=$2
5213506e
RW
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4925else
4926 if test -n "$ac_ct_DUMPBIN"; then
4927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
5213506e
RW
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 4938 break 2
2f7bf5b7 4939 fi
1cf3d07d 4940done
5213506e
RW
4941 done
4942IFS=$as_save_IFS
2f7bf5b7 4943
1cf3d07d
SE
4944fi
4945fi
4946ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4947if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4949$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 4950else
5213506e
RW
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
1cf3d07d 4953fi
2f7bf5b7 4954
5213506e 4955
1cf3d07d
SE
4956 test -n "$ac_ct_DUMPBIN" && break
4957done
2f7bf5b7 4958
5213506e
RW
4959 if test "x$ac_ct_DUMPBIN" = x; then
4960 DUMPBIN=":"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963yes:)
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966ac_tool_warned=yes ;;
4967esac
4968 DUMPBIN=$ac_ct_DUMPBIN
4969 fi
1cf3d07d 4970fi
2f7bf5b7 4971
43e02a8a
RW
4972 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4973 *COFF*)
4974 DUMPBIN="$DUMPBIN -symbols"
4975 ;;
4976 *)
4977 DUMPBIN=:
4978 ;;
4979 esac
4980 fi
2f7bf5b7 4981
1cf3d07d
SE
4982 if test "$DUMPBIN" != ":"; then
4983 NM="$DUMPBIN"
2f7bf5b7 4984 fi
1cf3d07d
SE
4985fi
4986test -z "$NM" && NM=nm
2f7bf5b7 4987
2f7bf5b7 4988
2f7bf5b7 4989
2f7bf5b7 4990
33456445 4991
2f7bf5b7 4992
5213506e
RW
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4994$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4995if test "${lt_cv_nm_interface+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4997else
4998 lt_cv_nm_interface="BSD nm"
4999 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 5000 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
5001 (eval "$ac_compile" 2>conftest.err)
5002 cat conftest.err >&5
43e02a8a 5003 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5005 cat conftest.err >&5
43e02a8a 5006 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5007 cat conftest.out >&5
5008 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5009 lt_cv_nm_interface="MS dumpbin"
5010 fi
5011 rm -f conftest*
2f7bf5b7 5012fi
5213506e
RW
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5014$as_echo "$lt_cv_nm_interface" >&6; }
2f7bf5b7 5015
5213506e
RW
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5017$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5018LN_S=$as_ln_s
5019if test "$LN_S" = "ln -s"; then
5213506e
RW
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5021$as_echo "yes" >&6; }
1cf3d07d 5022else
5213506e
RW
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5024$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5025fi
2f7bf5b7 5026
6dab073b 5027# find the maximum length of command line arguments
5213506e
RW
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5029$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5030if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
6dab073b
MS
5032else
5033 i=0
5034 teststring="ABCD"
5035
5036 case $build_os in
5037 msdosdjgpp*)
5038 # On DJGPP, this test can blow up pretty badly due to problems in libc
5039 # (any single argument exceeding 2000 bytes causes a buffer overrun
5040 # during glob expansion). Even if it were fixed, the result of this
5041 # check would be larger than it should be.
5042 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5043 ;;
5044
1cf3d07d
SE
5045 gnu*)
5046 # Under GNU Hurd, this test is not required because there is
5047 # no limit to the length of command line arguments.
5048 # Libtool will interpret -1 as no limit whatsoever
5049 lt_cv_sys_max_cmd_len=-1;
5050 ;;
5051
80c6c2cb 5052 cygwin* | mingw* | cegcc*)
6dab073b
MS
5053 # On Win9x/ME, this test blows up -- it succeeds, but takes
5054 # about 5 minutes as the teststring grows exponentially.
5055 # Worse, since 9x/ME are not pre-emptively multitasking,
5056 # you end up with a "frozen" computer, even though with patience
5057 # the test eventually succeeds (with a max line length of 256k).
5058 # Instead, let's just punt: use the minimum linelength reported by
5059 # all of the supported platforms: 8192 (on NT/2K/XP).
5060 lt_cv_sys_max_cmd_len=8192;
5061 ;;
5062
43e02a8a
RW
5063 mint*)
5064 # On MiNT this can take a long time and run out of memory.
5065 lt_cv_sys_max_cmd_len=8192;
5066 ;;
5067
6dab073b
MS
5068 amigaos*)
5069 # On AmigaOS with pdksh, this test takes hours, literally.
5070 # So we just punt and use a minimum line length of 8192.
5071 lt_cv_sys_max_cmd_len=8192;
5072 ;;
5073
5074 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5075 # This has been around since 386BSD, at least. Likely further.
5076 if test -x /sbin/sysctl; then
5077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5078 elif test -x /usr/sbin/sysctl; then
5079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5080 else
1cf3d07d 5081 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5082 fi
5083 # And add a safety zone
5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5086 ;;
1cf3d07d
SE
5087
5088 interix*)
5089 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5090 lt_cv_sys_max_cmd_len=196608
5091 ;;
5092
5093 osf*)
5094 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5095 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5096 # nice to cause kernel panics so lets avoid the loop below.
5097 # First set a reasonable default.
5098 lt_cv_sys_max_cmd_len=16384
5099 #
5100 if test -x /sbin/sysconfig; then
5101 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5102 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5103 esac
5104 fi
5105 ;;
5106 sco3.2v5*)
5107 lt_cv_sys_max_cmd_len=102400
5108 ;;
5109 sysv5* | sco5v6* | sysv4.2uw2*)
5110 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5111 if test -n "$kargmax"; then
5112 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5113 else
5114 lt_cv_sys_max_cmd_len=32768
5115 fi
5116 ;;
5117 *)
80c6c2cb
PG
5118 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5119 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5122 else
5123 # Make teststring a little bigger before we do anything with it.
5124 # a 1K string should be a reasonable start.
5125 for i in 1 2 3 4 5 6 7 8 ; do
5126 teststring=$teststring$teststring
5127 done
5128 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5129 # If test is not a shell built-in, we'll probably end up computing a
5130 # maximum length that is only half of the actual maximum length, but
5131 # we can't tell.
43e02a8a
RW
5132 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5133 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5134 test $i != 17 # 1/2 MB should be enough
5135 do
5136 i=`expr $i + 1`
5137 teststring=$teststring$teststring
5138 done
5139 # Only check the string length outside the loop.
5140 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5141 teststring=
5142 # Add a significant safety factor because C++ compilers can tack on
5143 # massive amounts of additional arguments before passing them to the
5144 # linker. It appears as though 1/2 is a usable value.
5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5146 fi
1cf3d07d 5147 ;;
6dab073b
MS
5148 esac
5149
5150fi
5151
1cf3d07d 5152if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5154$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5155else
5213506e
RW
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5157$as_echo "none" >&6; }
6dab073b 5158fi
1cf3d07d 5159max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5160
5161
2f7bf5b7 5162
2f7bf5b7 5163
2f7bf5b7 5164
1cf3d07d 5165
1cf3d07d
SE
5166: ${CP="cp -f"}
5167: ${MV="mv -f"}
5168: ${RM="rm -f"}
5169
5213506e
RW
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5171$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5172# Try some XSI features
5173xsi_shell=no
5174( _lt_dummy="a/b/c"
5175 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
5176 = c,a/b,, \
5177 && eval 'test $(( 1 + 1 )) -eq 2 \
5178 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5179 && xsi_shell=yes
5213506e
RW
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5181$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5182
5183
5213506e
RW
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5185$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5186lt_shell_append=no
5187( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5188 >/dev/null 2>&1 \
5189 && lt_shell_append=yes
5213506e
RW
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5191$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5192
5193
5194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5195 lt_unset=unset
2f7bf5b7 5196else
1cf3d07d 5197 lt_unset=false
2f7bf5b7
AO
5198fi
5199
1cf3d07d
SE
5200
5201
5202
5203
5204# test EBCDIC or ASCII
5205case `echo X|tr X '\101'` in
5206 A) # ASCII based system
5207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5208 lt_SP2NL='tr \040 \012'
5209 lt_NL2SP='tr \015\012 \040\040'
5210 ;;
5211 *) # EBCDIC based system
5212 lt_SP2NL='tr \100 \n'
5213 lt_NL2SP='tr \r\n \100\100'
5214 ;;
5215esac
5216
5217
5218
5219
5220
5221
5222
5223
5224
5213506e
RW
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5226$as_echo_n "checking for $LD option to reload object files... " >&6; }
5227if test "${lt_cv_ld_reload_flag+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
2f7bf5b7 5229else
1cf3d07d
SE
5230 lt_cv_ld_reload_flag='-r'
5231fi
5213506e
RW
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5233$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5234reload_flag=$lt_cv_ld_reload_flag
5235case $reload_flag in
5236"" | " "*) ;;
5237*) reload_flag=" $reload_flag" ;;
5238esac
5239reload_cmds='$LD$reload_flag -o $output$reload_objs'
5240case $host_os in
5241 darwin*)
5242 if test "$GCC" = yes; then
5243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5244 else
5245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5246 fi
5247 ;;
5248esac
5249
5250
5251
5252
5253
5254
5255
5256
5257
80c6c2cb
PG
5258if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5260set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
5263if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5265else
5266 if test -n "$OBJDUMP"; then
5267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5213506e
RW
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5278 break 2
5279 fi
5280done
5213506e
RW
5281 done
5282IFS=$as_save_IFS
80c6c2cb
PG
5283
5284fi
5285fi
5286OBJDUMP=$ac_cv_prog_OBJDUMP
5287if test -n "$OBJDUMP"; then
5213506e
RW
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5289$as_echo "$OBJDUMP" >&6; }
80c6c2cb 5290else
5213506e
RW
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
80c6c2cb
PG
5293fi
5294
5213506e 5295
80c6c2cb
PG
5296fi
5297if test -z "$ac_cv_prog_OBJDUMP"; then
5298 ac_ct_OBJDUMP=$OBJDUMP
5299 # Extract the first word of "objdump", so it can be a program name with args.
5300set dummy objdump; ac_word=$2
5213506e
RW
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302$as_echo_n "checking for $ac_word... " >&6; }
5303if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5305else
5306 if test -n "$ac_ct_OBJDUMP"; then
5307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5213506e
RW
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5316 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5318 break 2
5319 fi
5320done
5213506e
RW
5321 done
5322IFS=$as_save_IFS
80c6c2cb 5323
80c6c2cb
PG
5324fi
5325fi
5326ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5327if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5329$as_echo "$ac_ct_OBJDUMP" >&6; }
80c6c2cb 5330else
5213506e
RW
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
80c6c2cb
PG
5333fi
5334
5213506e
RW
5335 if test "x$ac_ct_OBJDUMP" = x; then
5336 OBJDUMP="false"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339yes:)
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342ac_tool_warned=yes ;;
5343esac
5344 OBJDUMP=$ac_ct_OBJDUMP
5345 fi
80c6c2cb
PG
5346else
5347 OBJDUMP="$ac_cv_prog_OBJDUMP"
5348fi
5349
5350test -z "$OBJDUMP" && OBJDUMP=objdump
5351
5352
5353
5354
5355
5356
5357
5358
1cf3d07d 5359
5213506e
RW
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5361$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5362if test "${lt_cv_deplibs_check_method+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5364else
5365 lt_cv_file_magic_cmd='$MAGIC_CMD'
5366lt_cv_file_magic_test_file=
5367lt_cv_deplibs_check_method='unknown'
5368# Need to set the preceding variable on all platforms that support
5369# interlibrary dependencies.
5370# 'none' -- dependencies not supported.
5371# `unknown' -- same as none, but documents that we really don't know.
5372# 'pass_all' -- all dependencies passed with no checks.
5373# 'test_compile' -- check by making test program.
5374# 'file_magic [[regex]]' -- check by looking for files in library path
5375# which responds to the $file_magic_cmd with a given extended regex.
5376# If you have `file' or equivalent on your system and you're not sure
5377# whether `pass_all' will *always* work, you probably want this one.
5378
5379case $host_os in
95d4f544 5380aix[4-9]*)
1cf3d07d
SE
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383
5384beos*)
5385 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5386 ;;
1cf3d07d
SE
5387
5388bsdi[45]*)
5389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5390 lt_cv_file_magic_cmd='/usr/bin/file -L'
5391 lt_cv_file_magic_test_file=/shlib/libc.so
5392 ;;
5393
5394cygwin*)
5395 # func_win32_libid is a shell function defined in ltmain.sh
5396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5397 lt_cv_file_magic_cmd='func_win32_libid'
5398 ;;
5399
5400mingw* | pw32*)
5401 # Base MSYS/MinGW do not provide the 'file' command needed by
5402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5403 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
5404 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5405 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
5406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5407 lt_cv_file_magic_cmd='func_win32_libid'
5408 else
5409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5410 lt_cv_file_magic_cmd='$OBJDUMP -f'
5411 fi
5412 ;;
5413
43e02a8a 5414cegcc*)
80c6c2cb
PG
5415 # use the weaker test based on 'objdump'. See mingw*.
5416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5417 lt_cv_file_magic_cmd='$OBJDUMP -f'
5418 ;;
5419
1cf3d07d
SE
5420darwin* | rhapsody*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424freebsd* | dragonfly*)
5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5426 case $host_cpu in
5427 i*86 )
5428 # Not sure whether the presence of OpenBSD here was a mistake.
5429 # Let's accept both of them until this is cleared up.
5430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5431 lt_cv_file_magic_cmd=/usr/bin/file
5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5433 ;;
5434 esac
5435 else
5436 lt_cv_deplibs_check_method=pass_all
5437 fi
5438 ;;
5439
5440gnu*)
5441 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5442 ;;
1cf3d07d 5443
43e02a8a
RW
5444haiku*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
1cf3d07d
SE
5448hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 case $host_cpu in
5451 ia64*)
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5454 ;;
5455 hppa*64*)
43e02a8a 5456 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
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5458 ;;
2f7bf5b7 5459 *)
43e02a8a 5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d
SE
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5462 ;;
5463 esac
5464 ;;
2f7bf5b7 5465
1cf3d07d
SE
5466interix[3-9]*)
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5469 ;;
2f7bf5b7 5470
1cf3d07d
SE
5471irix5* | irix6* | nonstopux*)
5472 case $LD in
5473 *-32|*"-32 ") libmagic=32-bit;;
5474 *-n32|*"-n32 ") libmagic=N32;;
5475 *-64|*"-64 ") libmagic=64-bit;;
5476 *) libmagic=never-match;;
5477 esac
5478 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5479 ;;
2f7bf5b7 5480
1cf3d07d 5481# This must be Linux ELF.
7a9d3fe8 5482linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
2f7bf5b7 5485
1cf3d07d
SE
5486netbsd*)
5487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 5489 else
1cf3d07d 5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 5491 fi
1cf3d07d
SE
5492 ;;
5493
5494newos6*)
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd=/usr/bin/file
5497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5498 ;;
5499
5500*nto* | *qnx*)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
63e5e3e0 5503
1cf3d07d
SE
5504openbsd*)
5505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507 else
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
5509 fi
5510 ;;
1cf3d07d
SE
5511
5512osf3* | osf4* | osf5*)
5513 lt_cv_deplibs_check_method=pass_all
5514 ;;
5515
5516rdos*)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520solaris*)
5521 lt_cv_deplibs_check_method=pass_all
5522 ;;
5523
5524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527
5528sysv4 | sysv4.3*)
5529 case $host_vendor in
5530 motorola)
5531 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]'
5532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5533 ;;
5534 ncr)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537 sequent)
5538 lt_cv_file_magic_cmd='/bin/file'
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5540 ;;
5541 sni)
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544 lt_cv_file_magic_test_file=/lib/libc.so
5545 ;;
5546 siemens)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549 pc)
5550 lt_cv_deplibs_check_method=pass_all
5551 ;;
5552 esac
5553 ;;
5554
5555tpf*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
dc5de370
HB
5558esac
5559
1cf3d07d 5560fi
5213506e
RW
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5562$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5563file_magic_cmd=$lt_cv_file_magic_cmd
5564deplibs_check_method=$lt_cv_deplibs_check_method
5565test -z "$deplibs_check_method" && deplibs_check_method=unknown
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
3ed8e5b6 5578if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if test "${ac_cv_prog_AR+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
2f7bf5b7 5585else
1cf3d07d
SE
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 5588else
3ed8e5b6
AT
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5213506e
RW
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5598 break 2
5599 fi
5600done
5213506e
RW
5601 done
5602IFS=$as_save_IFS
3ed8e5b6 5603
2f7bf5b7
AO
5604fi
5605fi
1cf3d07d
SE
5606AR=$ac_cv_prog_AR
5607if test -n "$AR"; then
5213506e
RW
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5609$as_echo "$AR" >&6; }
2f7bf5b7 5610else
5213506e
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
2f7bf5b7
AO
5613fi
5614
5213506e 5615
3ed8e5b6 5616fi
1cf3d07d
SE
5617if test -z "$ac_cv_prog_AR"; then
5618 ac_ct_AR=$AR
5619 # Extract the first word of "ar", so it can be a program name with args.
5620set dummy ar; ac_word=$2
5213506e
RW
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
2f7bf5b7 5625else
1cf3d07d
SE
5626 if test -n "$ac_ct_AR"; then
5627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 5628else
3ed8e5b6
AT
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5213506e
RW
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5636 ac_cv_prog_ac_ct_AR="ar"
5213506e 5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5638 break 2
5639 fi
5640done
5213506e
RW
5641 done
5642IFS=$as_save_IFS
3ed8e5b6 5643
2f7bf5b7
AO
5644fi
5645fi
1cf3d07d
SE
5646ac_ct_AR=$ac_cv_prog_ac_ct_AR
5647if test -n "$ac_ct_AR"; then
5213506e
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5649$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 5650else
5213506e
RW
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
2f7bf5b7
AO
5653fi
5654
5213506e
RW
5655 if test "x$ac_ct_AR" = x; then
5656 AR="false"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659yes:)
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662ac_tool_warned=yes ;;
5663esac
5664 AR=$ac_ct_AR
5665 fi
2f7bf5b7 5666else
1cf3d07d 5667 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
5668fi
5669
1cf3d07d
SE
5670test -z "$AR" && AR=ar
5671test -z "$AR_FLAGS" && AR_FLAGS=cru
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
3ed8e5b6
AT
5683if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 5685set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if test "${ac_cv_prog_STRIP+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
5690else
5691 if test -n "$STRIP"; then
5692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5693else
3ed8e5b6
AT
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5213506e
RW
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5703 break 2
5704 fi
5705done
5213506e
RW
5706 done
5707IFS=$as_save_IFS
3ed8e5b6 5708
2f7bf5b7
AO
5709fi
5710fi
3ed8e5b6 5711STRIP=$ac_cv_prog_STRIP
2f7bf5b7 5712if test -n "$STRIP"; then
5213506e
RW
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5714$as_echo "$STRIP" >&6; }
2f7bf5b7 5715else
5213506e
RW
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
2f7bf5b7
AO
5718fi
5719
5213506e 5720
3ed8e5b6 5721fi
2f7bf5b7 5722if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 5723 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
5724 # Extract the first word of "strip", so it can be a program name with args.
5725set dummy strip; ac_word=$2
5213506e
RW
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727$as_echo_n "checking for $ac_word... " >&6; }
5728if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
2f7bf5b7 5730else
3ed8e5b6
AT
5731 if test -n "$ac_ct_STRIP"; then
5732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 5733else
3ed8e5b6
AT
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5213506e
RW
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5741 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5743 break 2
5744 fi
5745done
5213506e
RW
5746 done
5747IFS=$as_save_IFS
3ed8e5b6 5748
2f7bf5b7
AO
5749fi
5750fi
3ed8e5b6
AT
5751ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5752if test -n "$ac_ct_STRIP"; then
5213506e
RW
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5754$as_echo "$ac_ct_STRIP" >&6; }
675cdab3 5755else
5213506e
RW
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
675cdab3
BM
5758fi
5759
5213506e
RW
5760 if test "x$ac_ct_STRIP" = x; then
5761 STRIP=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764yes:)
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767ac_tool_warned=yes ;;
5768esac
5769 STRIP=$ac_ct_STRIP
5770 fi
675cdab3 5771else
3ed8e5b6 5772 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
5773fi
5774
1cf3d07d 5775test -z "$STRIP" && STRIP=:
675cdab3 5776
675cdab3
BM
5777
5778
675cdab3 5779
675cdab3 5780
3ed8e5b6 5781
1cf3d07d
SE
5782if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786$as_echo_n "checking for $ac_word... " >&6; }
5787if test "${ac_cv_prog_RANLIB+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
675cdab3 5789else
1cf3d07d
SE
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5213506e
RW
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5802 break 2
5803 fi
5804done
5213506e
RW
5805 done
5806IFS=$as_save_IFS
1cf3d07d
SE
5807
5808fi
5809fi
5810RANLIB=$ac_cv_prog_RANLIB
5811if test -n "$RANLIB"; then
5213506e
RW
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5813$as_echo "$RANLIB" >&6; }
1cf3d07d 5814else
5213506e
RW
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816$as_echo "no" >&6; }
1cf3d07d
SE
5817fi
5818
5213506e 5819
1cf3d07d
SE
5820fi
5821if test -z "$ac_cv_prog_RANLIB"; then
5822 ac_ct_RANLIB=$RANLIB
5823 # Extract the first word of "ranlib", so it can be a program name with args.
5824set dummy ranlib; ac_word=$2
5213506e
RW
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5829else
5830 if test -n "$ac_ct_RANLIB"; then
5831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5213506e
RW
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5840 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5842 break 2
5843 fi
5844done
5213506e
RW
5845 done
5846IFS=$as_save_IFS
1cf3d07d 5847
1cf3d07d
SE
5848fi
5849fi
5850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5853$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5854else
5213506e
RW
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
1cf3d07d
SE
5857fi
5858
5213506e
RW
5859 if test "x$ac_ct_RANLIB" = x; then
5860 RANLIB=":"
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863yes:)
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866ac_tool_warned=yes ;;
5867esac
5868 RANLIB=$ac_ct_RANLIB
5869 fi
1cf3d07d
SE
5870else
5871 RANLIB="$ac_cv_prog_RANLIB"
5872fi
5873
5874test -z "$RANLIB" && RANLIB=:
5875
5876
5877
5878
5879
5880
5881# Determine commands to create old-style static archives.
80c6c2cb 5882old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5883old_postinstall_cmds='chmod 644 $oldlib'
5884old_postuninstall_cmds=
5885
5886if test -n "$RANLIB"; then
5887 case $host_os in
5888 openbsd*)
5889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5890 ;;
5891 *)
5892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5893 ;;
5894 esac
5895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5896fi
5897
43e02a8a
RW
5898case $host_os in
5899 darwin*)
5900 lock_old_archive_extraction=yes ;;
5901 *)
5902 lock_old_archive_extraction=no ;;
5903esac
5904
5905
5906
5907
5908
5909
1cf3d07d
SE
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943# If no C compiler was specified, use CC.
5944LTCC=${LTCC-"$CC"}
5945
5946# If no C compiler flags were specified, use CFLAGS.
5947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5948
5949# Allow CC to be a program name with arguments.
5950compiler=$CC
5951
5952
5953# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5955$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5956if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5958else
5959
5960# These are sane defaults that work on at least a few old systems.
5961# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5962
5963# Character class describing NM global symbol codes.
5964symcode='[BCDEGRST]'
5965
5966# Regexp to match symbols that can be accessed directly from C.
5967sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5968
5969# Define system-specific variables.
5970case $host_os in
5971aix*)
5972 symcode='[BCDT]'
5973 ;;
80c6c2cb 5974cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
5975 symcode='[ABCDGISTW]'
5976 ;;
5977hpux*)
5978 if test "$host_cpu" = ia64; then
5979 symcode='[ABCDEGRST]'
5980 fi
5981 ;;
5982irix* | nonstopux*)
5983 symcode='[BCDEGRST]'
5984 ;;
5985osf*)
5986 symcode='[BCDEGQRST]'
5987 ;;
5988solaris*)
5989 symcode='[BDRT]'
5990 ;;
5991sco3.2v5*)
5992 symcode='[DT]'
5993 ;;
5994sysv4.2uw2*)
5995 symcode='[DT]'
5996 ;;
5997sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998 symcode='[ABDT]'
5999 ;;
6000sysv4)
6001 symcode='[DFNSTU]'
6002 ;;
6003esac
6004
6005# If we're using GNU nm, then use its standard symbol codes.
6006case `$NM -V 2>&1` in
6007*GNU* | *'with BFD'*)
6008 symcode='[ABCDGIRSTW]' ;;
6009esac
6010
6011# Transform an extracted symbol line into a proper C declaration.
6012# Some systems (esp. on ia64) link data and code symbols differently,
6013# so use this general approach.
6014lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6015
6016# Transform an extracted symbol line into symbol name and symbol address
6017lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 6018lt_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
6019
6020# Handle CRLF in mingw tool chain
6021opt_cr=
6022case $build_os in
6023mingw*)
6024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6025 ;;
6026esac
6027
6028# Try without a prefix underscore, then with it.
6029for ac_symprfx in "" "_"; do
6030
6031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6032 symxfrm="\\1 $ac_symprfx\\2 \\2"
6033
6034 # Write the raw and C identifiers.
6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6036 # Fake it for dumpbin and say T for any non-static function
6037 # and D for any global variable.
6038 # Also find C++ and __fastcall symbols from MSVC++,
6039 # which start with @ or ?.
6040 lt_cv_sys_global_symbol_pipe="$AWK '"\
6041" {last_section=section; section=\$ 3};"\
6042" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6043" \$ 0!~/External *\|/{next};"\
6044" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6045" {if(hide[section]) next};"\
6046" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6047" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6048" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6049" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6050" ' prfx=^$ac_symprfx"
6051 else
6052 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6053 fi
6054
6055 # Check to see that the pipe works correctly.
6056 pipe_works=no
6057
6058 rm -f conftest*
6059 cat > conftest.$ac_ext <<_LT_EOF
6060#ifdef __cplusplus
6061extern "C" {
6062#endif
6063char nm_test_var;
6064void nm_test_func(void);
6065void nm_test_func(void){}
6066#ifdef __cplusplus
6067}
6068#endif
6069int main(){nm_test_var='a';nm_test_func();return(0);}
6070_LT_EOF
6071
5213506e 6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
5213506e
RW
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }; then
1cf3d07d
SE
6077 # Now try to grab the symbols.
6078 nlist=conftest.nm
43e02a8a
RW
6079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6081 ac_status=$?
5213506e
RW
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6084 # Try sorting and uniquifying the output.
6085 if sort "$nlist" | uniq > "$nlist"T; then
6086 mv -f "$nlist"T "$nlist"
6087 else
6088 rm -f "$nlist"T
6089 fi
6090
6091 # Make sure that we snagged all the symbols we need.
6092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6094 cat <<_LT_EOF > conftest.$ac_ext
6095#ifdef __cplusplus
6096extern "C" {
6097#endif
6098
6099_LT_EOF
6100 # Now generate the symbol file.
6101 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6102
6103 cat <<_LT_EOF >> conftest.$ac_ext
6104
6105/* The mapping between symbol names and symbols. */
6106const struct {
6107 const char *name;
6108 void *address;
6109}
6110lt__PROGRAM__LTX_preloaded_symbols[] =
6111{
6112 { "@PROGRAM@", (void *) 0 },
6113_LT_EOF
6114 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6115 cat <<\_LT_EOF >> conftest.$ac_ext
6116 {0, (void *) 0}
6117};
6118
6119/* This works around a problem in FreeBSD linker */
6120#ifdef FREEBSD_WORKAROUND
6121static const void *lt_preloaded_setup() {
6122 return lt__PROGRAM__LTX_preloaded_symbols;
6123}
6124#endif
6125
6126#ifdef __cplusplus
6127}
6128#endif
6129_LT_EOF
6130 # Now try linking the two files.
6131 mv conftest.$ac_objext conftstm.$ac_objext
6132 lt_save_LIBS="$LIBS"
6133 lt_save_CFLAGS="$CFLAGS"
6134 LIBS="conftstm.$ac_objext"
6135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6137 (eval $ac_link) 2>&5
6138 ac_status=$?
5213506e
RW
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6141 pipe_works=yes
6142 fi
6143 LIBS="$lt_save_LIBS"
6144 CFLAGS="$lt_save_CFLAGS"
6145 else
6146 echo "cannot find nm_test_func in $nlist" >&5
6147 fi
6148 else
6149 echo "cannot find nm_test_var in $nlist" >&5
6150 fi
6151 else
6152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6153 fi
6154 else
6155 echo "$progname: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6157 fi
80c6c2cb 6158 rm -rf conftest* conftst*
1cf3d07d
SE
6159
6160 # Do not use the global_symbol_pipe unless it works.
6161 if test "$pipe_works" = yes; then
6162 break
6163 else
6164 lt_cv_sys_global_symbol_pipe=
6165 fi
6166done
6167
6168fi
6169
6170if test -z "$lt_cv_sys_global_symbol_pipe"; then
6171 lt_cv_sys_global_symbol_to_cdecl=
6172fi
6173if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6175$as_echo "failed" >&6; }
1cf3d07d 6176else
5213506e
RW
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6178$as_echo "ok" >&6; }
1cf3d07d
SE
6179fi
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
80c6c2cb
PG
6195
6196
6197
6198
6199
1cf3d07d
SE
6200
6201
6202
5213506e
RW
6203# Check whether --enable-libtool-lock was given.
6204if test "${enable_libtool_lock+set}" = set; then :
6205 enableval=$enable_libtool_lock;
6206fi
1cf3d07d 6207
1cf3d07d 6208test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
6209
6210# Some flags need to be propagated to the compiler or linker for good
6211# libtool support.
6212case $host in
1cf3d07d 6213ia64-*-hpux*)
675cdab3 6214 # Find out which ABI we are using.
1cf3d07d 6215 echo 'int i;' > conftest.$ac_ext
5213506e 6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3ed8e5b6
AT
6217 (eval $ac_compile) 2>&5
6218 ac_status=$?
5213506e
RW
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; }; then
675cdab3 6221 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6222 *ELF-32*)
6223 HPUX_IA64_MODE="32"
6224 ;;
6225 *ELF-64*)
6226 HPUX_IA64_MODE="64"
6227 ;;
3ed8e5b6 6228 esac
3ed8e5b6
AT
6229 fi
6230 rm -rf conftest*
6231 ;;
1cf3d07d
SE
6232*-*-irix6*)
6233 # Find out which ABI we are using.
43e02a8a 6234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
5213506e
RW
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
1cf3d07d
SE
6240 if test "$lt_cv_prog_gnu_ld" = yes; then
6241 case `/usr/bin/file conftest.$ac_objext` in
6242 *32-bit*)
6243 LD="${LD-ld} -melf32bsmip"
6244 ;;
6245 *N32*)
6246 LD="${LD-ld} -melf32bmipn32"
6247 ;;
6248 *64-bit*)
6249 LD="${LD-ld} -melf64bmip"
6250 ;;
6251 esac
6252 else
6253 case `/usr/bin/file conftest.$ac_objext` in
6254 *32-bit*)
6255 LD="${LD-ld} -32"
6256 ;;
6257 *N32*)
6258 LD="${LD-ld} -n32"
6259 ;;
6260 *64-bit*)
6261 LD="${LD-ld} -64"
6262 ;;
6263 esac
6264 fi
6265 fi
6266 rm -rf conftest*
6267 ;;
6268
6269x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6270s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6271 # Find out which ABI we are using.
6272 echo 'int i;' > conftest.$ac_ext
5213506e 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
5213506e
RW
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
1cf3d07d
SE
6278 case `/usr/bin/file conftest.o` in
6279 *32-bit*)
6280 case $host in
6281 x86_64-*kfreebsd*-gnu)
6282 LD="${LD-ld} -m elf_i386_fbsd"
6283 ;;
6284 x86_64-*linux*)
6285 LD="${LD-ld} -m elf_i386"
6286 ;;
6287 ppc64-*linux*|powerpc64-*linux*)
6288 LD="${LD-ld} -m elf32ppclinux"
6289 ;;
6290 s390x-*linux*)
6291 LD="${LD-ld} -m elf_s390"
6292 ;;
6293 sparc64-*linux*)
6294 LD="${LD-ld} -m elf32_sparc"
6295 ;;
6296 esac
6297 ;;
6298 *64-bit*)
6299 case $host in
6300 x86_64-*kfreebsd*-gnu)
6301 LD="${LD-ld} -m elf_x86_64_fbsd"
6302 ;;
6303 x86_64-*linux*)
6304 LD="${LD-ld} -m elf_x86_64"
6305 ;;
6306 ppc*-*linux*|powerpc*-*linux*)
6307 LD="${LD-ld} -m elf64ppc"
6308 ;;
6309 s390*-*linux*|s390*-*tpf*)
6310 LD="${LD-ld} -m elf64_s390"
6311 ;;
6312 sparc*-*linux*)
6313 LD="${LD-ld} -m elf64_sparc"
6314 ;;
6315 esac
6316 ;;
6317 esac
6318 fi
6319 rm -rf conftest*
6320 ;;
6321
6322*-*-sco3.2v5*)
6323 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6324 SAVE_CFLAGS="$CFLAGS"
6325 CFLAGS="$CFLAGS -belf"
5213506e
RW
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6327$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6328if test "${lt_cv_cc_needs_belf+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6330else
6331 ac_ext=c
6332ac_cpp='$CPP $CPPFLAGS'
6333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336
5213506e 6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6338/* end confdefs.h. */
6339
6340int
6341main ()
6342{
6343
6344 ;
6345 return 0;
6346}
6347_ACEOF
5213506e 6348if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6349 lt_cv_cc_needs_belf=yes
6350else
5213506e 6351 lt_cv_cc_needs_belf=no
1cf3d07d 6352fi
5213506e
RW
6353rm -f core conftest.err conftest.$ac_objext \
6354 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6355 ac_ext=c
6356ac_cpp='$CPP $CPPFLAGS'
6357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359ac_compiler_gnu=$ac_cv_c_compiler_gnu
6360
6361fi
5213506e
RW
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6363$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6364 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6366 CFLAGS="$SAVE_CFLAGS"
6367 fi
6368 ;;
6369sparc*-*solaris*)
6370 # Find out which ABI we are using.
6371 echo 'int i;' > conftest.$ac_ext
5213506e 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6373 (eval $ac_compile) 2>&5
6374 ac_status=$?
5213506e
RW
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }; then
1cf3d07d
SE
6377 case `/usr/bin/file conftest.o` in
6378 *64-bit*)
6379 case $lt_cv_prog_gnu_ld in
6380 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
6381 *)
6382 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6383 LD="${LD-ld} -64"
6384 fi
6385 ;;
1cf3d07d
SE
6386 esac
6387 ;;
6388 esac
6389 fi
6390 rm -rf conftest*
6391 ;;
6392esac
6393
6394need_locks="$enable_libtool_lock"
6395
80c6c2cb
PG
6396
6397 case $host_os in
6398 rhapsody* | darwin*)
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
1cf3d07d 6406else
80c6c2cb
PG
6407 if test -n "$DSYMUTIL"; then
6408 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
1cf3d07d 6412do
80c6c2cb
PG
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
5213506e
RW
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6417 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb 6419 break 2
1cf3d07d 6420 fi
80c6c2cb 6421done
5213506e
RW
6422 done
6423IFS=$as_save_IFS
6424
80c6c2cb
PG
6425fi
6426fi
6427DSYMUTIL=$ac_cv_prog_DSYMUTIL
6428if test -n "$DSYMUTIL"; then
5213506e
RW
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6430$as_echo "$DSYMUTIL" >&6; }
80c6c2cb 6431else
5213506e
RW
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
80c6c2cb
PG
6434fi
6435
5213506e 6436
80c6c2cb
PG
6437fi
6438if test -z "$ac_cv_prog_DSYMUTIL"; then
6439 ac_ct_DSYMUTIL=$DSYMUTIL
6440 # Extract the first word of "dsymutil", so it can be a program name with args.
6441set dummy dsymutil; ac_word=$2
5213506e
RW
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6446else
6447 if test -n "$ac_ct_DSYMUTIL"; then
6448 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
5213506e
RW
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6457 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6459 break 2
6460 fi
6461done
5213506e
RW
6462 done
6463IFS=$as_save_IFS
80c6c2cb 6464
80c6c2cb
PG
6465fi
6466fi
6467ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6468if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6470$as_echo "$ac_ct_DSYMUTIL" >&6; }
80c6c2cb 6471else
5213506e
RW
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
80c6c2cb
PG
6474fi
6475
5213506e
RW
6476 if test "x$ac_ct_DSYMUTIL" = x; then
6477 DSYMUTIL=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485 DSYMUTIL=$ac_ct_DSYMUTIL
6486 fi
80c6c2cb
PG
6487else
6488 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6489fi
6490
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6493set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
6496if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6498else
6499 if test -n "$NMEDIT"; then
6500 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
5213506e
RW
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6509 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6511 break 2
6512 fi
6513done
5213506e
RW
6514 done
6515IFS=$as_save_IFS
80c6c2cb
PG
6516
6517fi
6518fi
6519NMEDIT=$ac_cv_prog_NMEDIT
6520if test -n "$NMEDIT"; then
5213506e
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6522$as_echo "$NMEDIT" >&6; }
80c6c2cb 6523else
5213506e
RW
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
80c6c2cb
PG
6526fi
6527
5213506e 6528
80c6c2cb
PG
6529fi
6530if test -z "$ac_cv_prog_NMEDIT"; then
6531 ac_ct_NMEDIT=$NMEDIT
6532 # Extract the first word of "nmedit", so it can be a program name with args.
6533set dummy nmedit; ac_word=$2
5213506e
RW
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6538else
6539 if test -n "$ac_ct_NMEDIT"; then
6540 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
5213506e
RW
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6549 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6551 break 2
6552 fi
6553done
5213506e
RW
6554 done
6555IFS=$as_save_IFS
80c6c2cb 6556
80c6c2cb
PG
6557fi
6558fi
6559ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6560if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6562$as_echo "$ac_ct_NMEDIT" >&6; }
80c6c2cb 6563else
5213506e
RW
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
80c6c2cb
PG
6566fi
6567
5213506e
RW
6568 if test "x$ac_ct_NMEDIT" = x; then
6569 NMEDIT=":"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 NMEDIT=$ac_ct_NMEDIT
6578 fi
80c6c2cb
PG
6579else
6580 NMEDIT="$ac_cv_prog_NMEDIT"
6581fi
6582
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6585set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587$as_echo_n "checking for $ac_word... " >&6; }
6588if test "${ac_cv_prog_LIPO+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6590else
6591 if test -n "$LIPO"; then
6592 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
5213506e
RW
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6601 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6603 break 2
6604 fi
6605done
5213506e
RW
6606 done
6607IFS=$as_save_IFS
80c6c2cb
PG
6608
6609fi
6610fi
6611LIPO=$ac_cv_prog_LIPO
6612if test -n "$LIPO"; then
5213506e
RW
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6614$as_echo "$LIPO" >&6; }
80c6c2cb 6615else
5213506e
RW
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
80c6c2cb
PG
6618fi
6619
5213506e 6620
80c6c2cb
PG
6621fi
6622if test -z "$ac_cv_prog_LIPO"; then
6623 ac_ct_LIPO=$LIPO
6624 # Extract the first word of "lipo", so it can be a program name with args.
6625set dummy lipo; ac_word=$2
5213506e
RW
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6630else
6631 if test -n "$ac_ct_LIPO"; then
6632 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
5213506e
RW
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6641 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6643 break 2
6644 fi
6645done
5213506e
RW
6646 done
6647IFS=$as_save_IFS
80c6c2cb 6648
80c6c2cb
PG
6649fi
6650fi
6651ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6652if test -n "$ac_ct_LIPO"; then
5213506e
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6654$as_echo "$ac_ct_LIPO" >&6; }
80c6c2cb 6655else
5213506e
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
80c6c2cb
PG
6658fi
6659
5213506e
RW
6660 if test "x$ac_ct_LIPO" = x; then
6661 LIPO=":"
6662 else
6663 case $cross_compiling:$ac_tool_warned in
6664yes:)
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667ac_tool_warned=yes ;;
6668esac
6669 LIPO=$ac_ct_LIPO
6670 fi
80c6c2cb
PG
6671else
6672 LIPO="$ac_cv_prog_LIPO"
6673fi
6674
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if test "${ac_cv_prog_OTOOL+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6682else
6683 if test -n "$OTOOL"; then
6684 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
5213506e
RW
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6693 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6695 break 2
6696 fi
6697done
5213506e
RW
6698 done
6699IFS=$as_save_IFS
80c6c2cb
PG
6700
6701fi
6702fi
6703OTOOL=$ac_cv_prog_OTOOL
6704if test -n "$OTOOL"; then
5213506e
RW
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6706$as_echo "$OTOOL" >&6; }
80c6c2cb 6707else
5213506e
RW
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
80c6c2cb
PG
6710fi
6711
5213506e 6712
80c6c2cb
PG
6713fi
6714if test -z "$ac_cv_prog_OTOOL"; then
6715 ac_ct_OTOOL=$OTOOL
6716 # Extract the first word of "otool", so it can be a program name with args.
6717set dummy otool; ac_word=$2
5213506e
RW
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6721 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6722else
6723 if test -n "$ac_ct_OTOOL"; then
6724 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
5213506e
RW
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6733 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6735 break 2
6736 fi
6737done
5213506e
RW
6738 done
6739IFS=$as_save_IFS
80c6c2cb 6740
80c6c2cb
PG
6741fi
6742fi
6743ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6744if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6746$as_echo "$ac_ct_OTOOL" >&6; }
80c6c2cb 6747else
5213506e
RW
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
80c6c2cb
PG
6750fi
6751
5213506e
RW
6752 if test "x$ac_ct_OTOOL" = x; then
6753 OTOOL=":"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759ac_tool_warned=yes ;;
6760esac
6761 OTOOL=$ac_ct_OTOOL
6762 fi
80c6c2cb
PG
6763else
6764 OTOOL="$ac_cv_prog_OTOOL"
6765fi
6766
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6774else
6775 if test -n "$OTOOL64"; then
6776 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
5213506e
RW
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6785 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6787 break 2
6788 fi
6789done
5213506e
RW
6790 done
6791IFS=$as_save_IFS
80c6c2cb
PG
6792
6793fi
6794fi
6795OTOOL64=$ac_cv_prog_OTOOL64
6796if test -n "$OTOOL64"; then
5213506e
RW
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6798$as_echo "$OTOOL64" >&6; }
80c6c2cb 6799else
5213506e
RW
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
80c6c2cb
PG
6802fi
6803
5213506e 6804
80c6c2cb
PG
6805fi
6806if test -z "$ac_cv_prog_OTOOL64"; then
6807 ac_ct_OTOOL64=$OTOOL64
6808 # Extract the first word of "otool64", so it can be a program name with args.
6809set dummy otool64; ac_word=$2
5213506e
RW
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6814else
6815 if test -n "$ac_ct_OTOOL64"; then
6816 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
5213506e
RW
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6825 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6827 break 2
6828 fi
6829done
5213506e
RW
6830 done
6831IFS=$as_save_IFS
80c6c2cb 6832
80c6c2cb
PG
6833fi
6834fi
6835ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6836if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6838$as_echo "$ac_ct_OTOOL64" >&6; }
80c6c2cb 6839else
5213506e
RW
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
80c6c2cb
PG
6842fi
6843
5213506e
RW
6844 if test "x$ac_ct_OTOOL64" = x; then
6845 OTOOL64=":"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853 OTOOL64=$ac_ct_OTOOL64
6854 fi
80c6c2cb
PG
6855else
6856 OTOOL64="$ac_cv_prog_OTOOL64"
6857fi
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
5213506e
RW
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6886$as_echo_n "checking for -single_module linker flag... " >&6; }
6887if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6889else
6890 lt_cv_apple_cc_single_mod=no
6891 if test -z "${LT_MULTI_MODULE}"; then
6892 # By default we will add the -single_module flag. You can override
6893 # by either setting the environment variable LT_MULTI_MODULE
6894 # non-empty at configure time, or by adding -multi_module to the
6895 # link flags.
6896 rm -rf libconftest.dylib*
6897 echo "int foo(void){return 1;}" > conftest.c
6898 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6899-dynamiclib -Wl,-single_module conftest.c" >&5
6900 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6901 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6902 _lt_result=$?
6903 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6904 lt_cv_apple_cc_single_mod=yes
6905 else
6906 cat conftest.err >&5
6907 fi
6908 rm -rf libconftest.dylib*
6909 rm -f conftest.*
6910 fi
6911fi
5213506e
RW
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6913$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6915$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6916if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6918else
6919 lt_cv_ld_exported_symbols_list=no
6920 save_LDFLAGS=$LDFLAGS
6921 echo "_main" > conftest.sym
6922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
6924/* end confdefs.h. */
6925
6926int
6927main ()
6928{
6929
6930 ;
6931 return 0;
6932}
6933_ACEOF
5213506e 6934if ac_fn_c_try_link "$LINENO"; then :
80c6c2cb
PG
6935 lt_cv_ld_exported_symbols_list=yes
6936else
5213506e 6937 lt_cv_ld_exported_symbols_list=no
80c6c2cb 6938fi
5213506e
RW
6939rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
80c6c2cb
PG
6941 LDFLAGS="$save_LDFLAGS"
6942
6943fi
5213506e
RW
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6945$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6947$as_echo_n "checking for -force_load linker flag... " >&6; }
6948if test "${lt_cv_ld_force_load+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950else
6951 lt_cv_ld_force_load=no
6952 cat > conftest.c << _LT_EOF
6953int forced_loaded() { return 2;}
6954_LT_EOF
6955 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6956 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6957 echo "$AR cru libconftest.a conftest.o" >&5
6958 $AR cru libconftest.a conftest.o 2>&5
6959 cat > conftest.c << _LT_EOF
6960int main() { return 0;}
6961_LT_EOF
6962 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6963 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6964 _lt_result=$?
6965 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6966 lt_cv_ld_force_load=yes
6967 else
6968 cat conftest.err >&5
6969 fi
6970 rm -f conftest.err libconftest.a conftest conftest.c
6971 rm -rf conftest.dSYM
6972
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6975$as_echo "$lt_cv_ld_force_load" >&6; }
80c6c2cb
PG
6976 case $host_os in
6977 rhapsody* | darwin1.[012])
6978 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6979 darwin1.*)
6980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6981 darwin*) # darwin 5.x on
6982 # if running on 10.5 or later, the deployment target defaults
6983 # to the OS version, if on x86, and 10.4, the deployment
6984 # target defaults to 10.4. Don't you love it?
6985 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6986 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6987 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6988 10.[012]*)
6989 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990 10.*)
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992 esac
6993 ;;
6994 esac
6995 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6996 _lt_dar_single_mod='$single_module'
6997 fi
6998 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6999 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7000 else
7001 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7002 fi
43e02a8a 7003 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
80c6c2cb
PG
7004 _lt_dsymutil='~$DSYMUTIL $lib || :'
7005 else
7006 _lt_dsymutil=
7007 fi
7008 ;;
7009 esac
7010
7011ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7017$as_echo_n "checking how to run the C preprocessor... " >&6; }
80c6c2cb
PG
7018# On Suns, sometimes $CPP names a directory.
7019if test -n "$CPP" && test -d "$CPP"; then
7020 CPP=
7021fi
7022if test -z "$CPP"; then
5213506e
RW
7023 if test "${ac_cv_prog_CPP+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7025else
7026 # Double quotes because CPP needs to be expanded
7027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7028 do
7029 ac_preproc_ok=false
7030for ac_c_preproc_warn_flag in '' yes
7031do
7032 # Use a header file that comes with gcc, so configuring glibc
7033 # with a fresh cross-compiler works.
7034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 # <limits.h> exists even on freestanding compilers.
7036 # On the NeXT, cc -E runs the code through the compiler's parser,
7037 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7039/* end confdefs.h. */
7040#ifdef __STDC__
7041# include <limits.h>
7042#else
7043# include <assert.h>
7044#endif
7045 Syntax error
7046_ACEOF
5213506e 7047if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7048
5213506e 7049else
1cf3d07d
SE
7050 # Broken: fails on valid input.
7051continue
7052fi
7053rm -f conftest.err conftest.$ac_ext
7054
5213506e 7055 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7056 # can be detected and how.
5213506e 7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7058/* end confdefs.h. */
7059#include <ac_nonexistent.h>
7060_ACEOF
5213506e 7061if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7062 # Broken: success on invalid input.
7063continue
7064else
1cf3d07d
SE
7065 # Passes both tests.
7066ac_preproc_ok=:
7067break
7068fi
7069rm -f conftest.err conftest.$ac_ext
7070
7071done
7072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073rm -f conftest.err conftest.$ac_ext
5213506e 7074if $ac_preproc_ok; then :
1cf3d07d
SE
7075 break
7076fi
7077
7078 done
7079 ac_cv_prog_CPP=$CPP
7080
7081fi
7082 CPP=$ac_cv_prog_CPP
7083else
7084 ac_cv_prog_CPP=$CPP
7085fi
5213506e
RW
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7087$as_echo "$CPP" >&6; }
1cf3d07d
SE
7088ac_preproc_ok=false
7089for ac_c_preproc_warn_flag in '' yes
7090do
7091 # Use a header file that comes with gcc, so configuring glibc
7092 # with a fresh cross-compiler works.
7093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094 # <limits.h> exists even on freestanding compilers.
7095 # On the NeXT, cc -E runs the code through the compiler's parser,
7096 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7098/* end confdefs.h. */
7099#ifdef __STDC__
7100# include <limits.h>
7101#else
7102# include <assert.h>
7103#endif
7104 Syntax error
7105_ACEOF
5213506e 7106if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7107
5213506e 7108else
1cf3d07d
SE
7109 # Broken: fails on valid input.
7110continue
7111fi
7112rm -f conftest.err conftest.$ac_ext
7113
5213506e 7114 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7115 # can be detected and how.
5213506e 7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7117/* end confdefs.h. */
7118#include <ac_nonexistent.h>
7119_ACEOF
5213506e 7120if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7121 # Broken: success on invalid input.
7122continue
7123else
1cf3d07d
SE
7124 # Passes both tests.
7125ac_preproc_ok=:
7126break
7127fi
7128rm -f conftest.err conftest.$ac_ext
7129
7130done
7131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7132rm -f conftest.err conftest.$ac_ext
5213506e
RW
7133if $ac_preproc_ok; then :
7134
1cf3d07d 7135else
5213506e
RW
7136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7138as_fn_error "C preprocessor \"$CPP\" fails sanity check
7139See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7140fi
7141
7142ac_ext=c
7143ac_cpp='$CPP $CPPFLAGS'
7144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148
5213506e
RW
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7150$as_echo_n "checking for ANSI C header files... " >&6; }
7151if test "${ac_cv_header_stdc+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
1cf3d07d 7153else
5213506e 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7155/* end confdefs.h. */
7156#include <stdlib.h>
7157#include <stdarg.h>
7158#include <string.h>
7159#include <float.h>
7160
7161int
7162main ()
7163{
7164
7165 ;
7166 return 0;
7167}
7168_ACEOF
5213506e 7169if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7170 ac_cv_header_stdc=yes
7171else
5213506e 7172 ac_cv_header_stdc=no
1cf3d07d 7173fi
5213506e 7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7175
7176if test $ac_cv_header_stdc = yes; then
7177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7179/* end confdefs.h. */
7180#include <string.h>
7181
7182_ACEOF
7183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7184 $EGREP "memchr" >/dev/null 2>&1; then :
7185
1cf3d07d
SE
7186else
7187 ac_cv_header_stdc=no
7188fi
7189rm -f conftest*
7190
7191fi
7192
7193if test $ac_cv_header_stdc = yes; then
7194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7196/* end confdefs.h. */
7197#include <stdlib.h>
7198
7199_ACEOF
7200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7201 $EGREP "free" >/dev/null 2>&1; then :
7202
1cf3d07d
SE
7203else
7204 ac_cv_header_stdc=no
7205fi
7206rm -f conftest*
7207
7208fi
7209
7210if test $ac_cv_header_stdc = yes; then
7211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7212 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7213 :
7214else
5213506e 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7216/* end confdefs.h. */
7217#include <ctype.h>
5213506e 7218#include <stdlib.h>
1cf3d07d
SE
7219#if ((' ' & 0x0FF) == 0x020)
7220# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7221# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7222#else
7223# define ISLOWER(c) \
7224 (('a' <= (c) && (c) <= 'i') \
7225 || ('j' <= (c) && (c) <= 'r') \
7226 || ('s' <= (c) && (c) <= 'z'))
7227# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7228#endif
7229
7230#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7231int
7232main ()
7233{
7234 int i;
7235 for (i = 0; i < 256; i++)
7236 if (XOR (islower (i), ISLOWER (i))
7237 || toupper (i) != TOUPPER (i))
5213506e
RW
7238 return 2;
7239 return 0;
1cf3d07d
SE
7240}
7241_ACEOF
5213506e 7242if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7243
5213506e
RW
7244else
7245 ac_cv_header_stdc=no
1cf3d07d 7246fi
5213506e
RW
7247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7248 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7249fi
5213506e 7250
1cf3d07d
SE
7251fi
7252fi
5213506e
RW
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7254$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7255if test $ac_cv_header_stdc = yes; then
7256
5213506e 7257$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7258
7259fi
7260
7261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7263 inttypes.h stdint.h unistd.h
5213506e
RW
7264do :
7265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7266ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7267"
7268eval as_val=\$$as_ac_Header
7269 if test "x$as_val" = x""yes; then :
80c6c2cb 7270 cat >>confdefs.h <<_ACEOF
5213506e 7271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
80c6c2cb
PG
7272_ACEOF
7273
7274fi
7275
7276done
7277
7278
80c6c2cb 7279for ac_header in dlfcn.h
5213506e
RW
7280do :
7281 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7282"
7283if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
80c6c2cb 7284 cat >>confdefs.h <<_ACEOF
5213506e 7285#define HAVE_DLFCN_H 1
80c6c2cb
PG
7286_ACEOF
7287
7288fi
7289
7290done
7291
7292
7293
43e02a8a
RW
7294
7295
80c6c2cb
PG
7296# Set options
7297
7298
7299
7300 enable_dlopen=no
7301
7302
7303 enable_win32_dll=no
7304
7305
5213506e
RW
7306 # Check whether --enable-shared was given.
7307if test "${enable_shared+set}" = set; then :
7308 enableval=$enable_shared; p=${PACKAGE-default}
80c6c2cb
PG
7309 case $enableval in
7310 yes) enable_shared=yes ;;
7311 no) enable_shared=no ;;
7312 *)
7313 enable_shared=no
7314 # Look at the argument we got. We use all the common list separators.
7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316 for pkg in $enableval; do
7317 IFS="$lt_save_ifs"
7318 if test "X$pkg" = "X$p"; then
7319 enable_shared=yes
7320 fi
7321 done
7322 IFS="$lt_save_ifs"
7323 ;;
7324 esac
7325else
7326 enable_shared=yes
5213506e
RW
7327fi
7328
80c6c2cb
PG
7329
7330
7331
7332
7333
7334
7335
7336
5213506e
RW
7337 # Check whether --enable-static was given.
7338if test "${enable_static+set}" = set; then :
7339 enableval=$enable_static; p=${PACKAGE-default}
80c6c2cb
PG
7340 case $enableval in
7341 yes) enable_static=yes ;;
7342 no) enable_static=no ;;
7343 *)
7344 enable_static=no
7345 # Look at the argument we got. We use all the common list separators.
7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7347 for pkg in $enableval; do
7348 IFS="$lt_save_ifs"
7349 if test "X$pkg" = "X$p"; then
7350 enable_static=yes
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 ;;
7355 esac
7356else
7357 enable_static=yes
5213506e
RW
7358fi
7359
80c6c2cb
PG
7360
7361
7362
7363
7364
7365
7366
7367
7368
5213506e
RW
7369# Check whether --with-pic was given.
7370if test "${with_pic+set}" = set; then :
7371 withval=$with_pic; pic_mode="$withval"
80c6c2cb
PG
7372else
7373 pic_mode=default
5213506e
RW
7374fi
7375
1cf3d07d 7376
80c6c2cb 7377test -z "$pic_mode" && pic_mode=default
1cf3d07d 7378
1cf3d07d 7379
1cf3d07d
SE
7380
7381
7382
1cf3d07d 7383
80c6c2cb 7384
5213506e
RW
7385 # Check whether --enable-fast-install was given.
7386if test "${enable_fast_install+set}" = set; then :
7387 enableval=$enable_fast_install; p=${PACKAGE-default}
80c6c2cb
PG
7388 case $enableval in
7389 yes) enable_fast_install=yes ;;
7390 no) enable_fast_install=no ;;
7391 *)
7392 enable_fast_install=no
7393 # Look at the argument we got. We use all the common list separators.
7394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7395 for pkg in $enableval; do
7396 IFS="$lt_save_ifs"
7397 if test "X$pkg" = "X$p"; then
7398 enable_fast_install=yes
7399 fi
7400 done
7401 IFS="$lt_save_ifs"
7402 ;;
7403 esac
1cf3d07d 7404else
80c6c2cb 7405 enable_fast_install=yes
5213506e
RW
7406fi
7407
80c6c2cb
PG
7408
7409
7410
7411
1cf3d07d 7412
1cf3d07d 7413
1cf3d07d 7414
1cf3d07d
SE
7415
7416
7417
7418# This can be used to rebuild libtool when needed
7419LIBTOOL_DEPS="$ltmain"
7420
7421# Always use our own libtool.
7422LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
43e02a8a 7446
1cf3d07d
SE
7447
7448
7449test -z "$LN_S" && LN_S="ln -s"
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464if test -n "${ZSH_VERSION+set}" ; then
7465 setopt NO_GLOB_SUBST
7466fi
7467
5213506e
RW
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7469$as_echo_n "checking for objdir... " >&6; }
7470if test "${lt_cv_objdir+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7472else
7473 rm -f .libs 2>/dev/null
7474mkdir .libs 2>/dev/null
7475if test -d .libs; then
7476 lt_cv_objdir=.libs
7477else
7478 # MS-DOS does not allow filenames that begin with a dot.
7479 lt_cv_objdir=_libs
7480fi
7481rmdir .libs 2>/dev/null
7482fi
5213506e
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7484$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7485objdir=$lt_cv_objdir
7486
7487
7488
7489
7490
7491cat >>confdefs.h <<_ACEOF
7492#define LT_OBJDIR "$lt_cv_objdir/"
7493_ACEOF
7494
7495
7496
7497
1cf3d07d
SE
7498case $host_os in
7499aix3*)
7500 # AIX sometimes has problems with the GCC collect2 program. For some
7501 # reason, if we set the COLLECT_NAMES environment variable, the problems
7502 # vanish in a puff of smoke.
7503 if test "X${COLLECT_NAMES+set}" != Xset; then
7504 COLLECT_NAMES=
7505 export COLLECT_NAMES
7506 fi
7507 ;;
7508esac
7509
1cf3d07d
SE
7510# Global variables:
7511ofile=libtool
7512can_build_shared=yes
7513
7514# All known linkers require a `.a' archive for static linking (except MSVC,
7515# which needs '.lib').
7516libext=a
7517
7518with_gnu_ld="$lt_cv_prog_gnu_ld"
7519
7520old_CC="$CC"
7521old_CFLAGS="$CFLAGS"
7522
7523# Set sane defaults for various variables
7524test -z "$CC" && CC=cc
7525test -z "$LTCC" && LTCC=$CC
7526test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7527test -z "$LD" && LD=ld
7528test -z "$ac_objext" && ac_objext=o
7529
7530for cc_temp in $compiler""; do
7531 case $cc_temp in
7532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7534 \-*) ;;
7535 *) break;;
7536 esac
7537done
43e02a8a 7538cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
7539
7540
7541# Only perform the check for file, if the check method requires it
7542test -z "$MAGIC_CMD" && MAGIC_CMD=file
7543case $deplibs_check_method in
7544file_magic*)
7545 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7547$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7550else
7551 case $MAGIC_CMD in
7552[\\/*] | ?:[\\/]*)
7553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7554 ;;
7555*)
7556 lt_save_MAGIC_CMD="$MAGIC_CMD"
7557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7559 for ac_dir in $ac_dummy; do
7560 IFS="$lt_save_ifs"
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f $ac_dir/${ac_tool_prefix}file; then
7563 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7564 if test -n "$file_magic_test_file"; then
7565 case $deplibs_check_method in
7566 "file_magic "*)
7567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7570 $EGREP "$file_magic_regex" > /dev/null; then
7571 :
7572 else
7573 cat <<_LT_EOF 1>&2
7574
7575*** Warning: the command libtool uses to detect shared libraries,
7576*** $file_magic_cmd, produces output that libtool cannot recognize.
7577*** The result is that libtool may fail to recognize shared libraries
7578*** as such. This will affect the creation of libtool libraries that
7579*** depend on shared libraries, but programs linked with such libtool
7580*** libraries will work regardless of this problem. Nevertheless, you
7581*** may want to report the problem to your system manager and/or to
7582*** bug-libtool@gnu.org
7583
7584_LT_EOF
7585 fi ;;
7586 esac
7587 fi
7588 break
7589 fi
7590 done
7591 IFS="$lt_save_ifs"
7592 MAGIC_CMD="$lt_save_MAGIC_CMD"
7593 ;;
7594esac
7595fi
7596
7597MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7598if test -n "$MAGIC_CMD"; then
5213506e
RW
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7600$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7601else
5213506e
RW
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
1cf3d07d
SE
7604fi
7605
7606
7607
7608
7609
7610if test -z "$lt_cv_path_MAGIC_CMD"; then
7611 if test -n "$ac_tool_prefix"; then
5213506e
RW
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7613$as_echo_n "checking for file... " >&6; }
7614if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7616else
7617 case $MAGIC_CMD in
7618[\\/*] | ?:[\\/]*)
7619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7620 ;;
7621*)
7622 lt_save_MAGIC_CMD="$MAGIC_CMD"
7623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7624 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7625 for ac_dir in $ac_dummy; do
7626 IFS="$lt_save_ifs"
7627 test -z "$ac_dir" && ac_dir=.
7628 if test -f $ac_dir/file; then
7629 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7630 if test -n "$file_magic_test_file"; then
7631 case $deplibs_check_method in
7632 "file_magic "*)
7633 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7636 $EGREP "$file_magic_regex" > /dev/null; then
7637 :
7638 else
7639 cat <<_LT_EOF 1>&2
7640
7641*** Warning: the command libtool uses to detect shared libraries,
7642*** $file_magic_cmd, produces output that libtool cannot recognize.
7643*** The result is that libtool may fail to recognize shared libraries
7644*** as such. This will affect the creation of libtool libraries that
7645*** depend on shared libraries, but programs linked with such libtool
7646*** libraries will work regardless of this problem. Nevertheless, you
7647*** may want to report the problem to your system manager and/or to
7648*** bug-libtool@gnu.org
7649
7650_LT_EOF
7651 fi ;;
7652 esac
7653 fi
7654 break
7655 fi
7656 done
7657 IFS="$lt_save_ifs"
7658 MAGIC_CMD="$lt_save_MAGIC_CMD"
7659 ;;
7660esac
7661fi
7662
7663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7664if test -n "$MAGIC_CMD"; then
5213506e
RW
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7666$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7667else
5213506e
RW
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
1cf3d07d
SE
7670fi
7671
7672
7673 else
7674 MAGIC_CMD=:
7675 fi
7676fi
7677
7678 fi
7679 ;;
7680esac
7681
7682# Use C for the default configuration in the libtool script
7683
7684lt_save_CC="$CC"
7685ac_ext=c
7686ac_cpp='$CPP $CPPFLAGS'
7687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691
7692# Source file extension for C test sources.
7693ac_ext=c
7694
7695# Object file extension for compiled C test sources.
7696objext=o
7697objext=$objext
7698
7699# Code to be used in simple compile tests
7700lt_simple_compile_test_code="int some_variable = 0;"
7701
7702# Code to be used in simple link tests
7703lt_simple_link_test_code='int main(){return(0);}'
7704
7705
7706
7707
7708
7709
7710
7711# If no C compiler was specified, use CC.
7712LTCC=${LTCC-"$CC"}
7713
7714# If no C compiler flags were specified, use CFLAGS.
7715LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7716
7717# Allow CC to be a program name with arguments.
7718compiler=$CC
7719
7720# Save the default compiler, since it gets overwritten when the other
7721# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7722compiler_DEFAULT=$CC
7723
7724# save warnings/boilerplate of simple test code
7725ac_outfile=conftest.$ac_objext
7726echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728_lt_compiler_boilerplate=`cat conftest.err`
7729$RM conftest*
7730
7731ac_outfile=conftest.$ac_objext
7732echo "$lt_simple_link_test_code" >conftest.$ac_ext
7733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 7735$RM -r conftest*
1cf3d07d
SE
7736
7737
7738## CAVEAT EMPTOR:
7739## There is no encapsulation within the following macros, do not change
7740## the running order or otherwise move them around unless you know exactly
7741## what you are doing...
7742if test -n "$compiler"; then
7743
7744lt_prog_compiler_no_builtin_flag=
7745
7746if test "$GCC" = yes; then
43e02a8a
RW
7747 case $cc_basename in
7748 nvcc*)
7749 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7750 *)
7751 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7752 esac
1cf3d07d 7753
5213506e
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7755$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7756if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7758else
7759 lt_cv_prog_compiler_rtti_exceptions=no
7760 ac_outfile=conftest.$ac_objext
7761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7762 lt_compiler_flag="-fno-rtti -fno-exceptions"
7763 # Insert the option either (1) after the last *FLAGS variable, or
7764 # (2) before a word containing "conftest.", or (3) at the end.
7765 # Note that $ac_compile itself does not contain backslashes and begins
7766 # with a dollar sign (not a hyphen), so the echo should work correctly.
7767 # The option is referenced via a variable to avoid confusing sed.
7768 lt_compile=`echo "$ac_compile" | $SED \
7769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7771 -e 's:$: $lt_compiler_flag:'`
43e02a8a 7772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
7773 (eval "$lt_compile" 2>conftest.err)
7774 ac_status=$?
7775 cat conftest.err >&5
43e02a8a 7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
7777 if (exit $ac_status) && test -s "$ac_outfile"; then
7778 # The compiler can only warn and ignore the option if not recognized
7779 # So say no if there are warnings other than the usual output.
43e02a8a 7780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
7781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7783 lt_cv_prog_compiler_rtti_exceptions=yes
7784 fi
7785 fi
7786 $RM conftest*
7787
7788fi
5213506e
RW
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7790$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7791
7792if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7793 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7794else
7795 :
7796fi
7797
7798fi
7799
7800
7801
7802
7803
7804
7805 lt_prog_compiler_wl=
7806lt_prog_compiler_pic=
7807lt_prog_compiler_static=
7808
5213506e
RW
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7810$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7811
7812 if test "$GCC" = yes; then
7813 lt_prog_compiler_wl='-Wl,'
7814 lt_prog_compiler_static='-static'
7815
7816 case $host_os in
7817 aix*)
7818 # All AIX code is PIC.
7819 if test "$host_cpu" = ia64; then
7820 # AIX 5 now supports IA64 processor
7821 lt_prog_compiler_static='-Bstatic'
7822 fi
7823 ;;
7824
7825 amigaos*)
80c6c2cb
PG
7826 case $host_cpu in
7827 powerpc)
7828 # see comment about AmigaOS4 .so support
7829 lt_prog_compiler_pic='-fPIC'
7830 ;;
7831 m68k)
7832 # FIXME: we need at least 68020 code to build shared libraries, but
7833 # adding the `-m68020' flag to GCC prevents building anything better,
7834 # like `-m68040'.
7835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7836 ;;
7837 esac
1cf3d07d
SE
7838 ;;
7839
7840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7841 # PIC is the default for these OSes.
7842 ;;
7843
80c6c2cb 7844 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7845 # This hack is so that the source file can tell whether it is being
7846 # built for inclusion in a dll (and should export symbols for example).
7847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7848 # (--disable-auto-import) libraries
7849 lt_prog_compiler_pic='-DDLL_EXPORT'
7850 ;;
7851
7852 darwin* | rhapsody*)
7853 # PIC is the default on this platform
7854 # Common symbols not allowed in MH_DYLIB files
7855 lt_prog_compiler_pic='-fno-common'
7856 ;;
7857
43e02a8a
RW
7858 haiku*)
7859 # PIC is the default for Haiku.
7860 # The "-static" flag exists, but is broken.
7861 lt_prog_compiler_static=
7862 ;;
7863
1cf3d07d 7864 hpux*)
80c6c2cb
PG
7865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7867 # sets the default TLS model and affects inlining.
1cf3d07d 7868 case $host_cpu in
80c6c2cb 7869 hppa*64*)
1cf3d07d
SE
7870 # +Z the default
7871 ;;
7872 *)
7873 lt_prog_compiler_pic='-fPIC'
7874 ;;
7875 esac
7876 ;;
7877
7878 interix[3-9]*)
7879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7880 # Instead, we relocate shared libraries at runtime.
7881 ;;
7882
7883 msdosdjgpp*)
7884 # Just because we use GCC doesn't mean we suddenly get shared libraries
7885 # on systems that don't support them.
7886 lt_prog_compiler_can_build_shared=no
7887 enable_shared=no
7888 ;;
7889
7890 *nto* | *qnx*)
7891 # QNX uses GNU C++, but need to define -shared option too, otherwise
7892 # it will coredump.
7893 lt_prog_compiler_pic='-fPIC -shared'
7894 ;;
7895
7896 sysv4*MP*)
7897 if test -d /usr/nec; then
7898 lt_prog_compiler_pic=-Kconform_pic
7899 fi
7900 ;;
7901
7902 *)
7903 lt_prog_compiler_pic='-fPIC'
7904 ;;
7905 esac
43e02a8a
RW
7906
7907 case $cc_basename in
7908 nvcc*) # Cuda Compiler Driver 2.2
7909 lt_prog_compiler_wl='-Xlinker '
7910 lt_prog_compiler_pic='-Xcompiler -fPIC'
7911 ;;
7912 esac
1cf3d07d
SE
7913 else
7914 # PORTME Check for flag to pass linker flags through the system compiler.
7915 case $host_os in
7916 aix*)
7917 lt_prog_compiler_wl='-Wl,'
7918 if test "$host_cpu" = ia64; then
7919 # AIX 5 now supports IA64 processor
7920 lt_prog_compiler_static='-Bstatic'
7921 else
7922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7923 fi
7924 ;;
1cf3d07d 7925
80c6c2cb 7926 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7927 # This hack is so that the source file can tell whether it is being
7928 # built for inclusion in a dll (and should export symbols for example).
7929 lt_prog_compiler_pic='-DDLL_EXPORT'
7930 ;;
7931
7932 hpux9* | hpux10* | hpux11*)
7933 lt_prog_compiler_wl='-Wl,'
7934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7935 # not for PA HP-UX.
7936 case $host_cpu in
7937 hppa*64*|ia64*)
7938 # +Z the default
7939 ;;
7940 *)
7941 lt_prog_compiler_pic='+Z'
7942 ;;
7943 esac
7944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7945 lt_prog_compiler_static='${wl}-a ${wl}archive'
7946 ;;
7947
7948 irix5* | irix6* | nonstopux*)
7949 lt_prog_compiler_wl='-Wl,'
7950 # PIC (with -KPIC) is the default.
7951 lt_prog_compiler_static='-non_shared'
7952 ;;
7953
7a9d3fe8 7954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7955 case $cc_basename in
80c6c2cb
PG
7956 # old Intel for x86_64 which still supported -KPIC.
7957 ecc*)
1cf3d07d
SE
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-static'
7961 ;;
80c6c2cb
PG
7962 # icc used to be incompatible with GCC.
7963 # ICC 10 doesn't accept -KPIC any more.
7964 icc* | ifort*)
7965 lt_prog_compiler_wl='-Wl,'
7966 lt_prog_compiler_pic='-fPIC'
7967 lt_prog_compiler_static='-static'
7968 ;;
7969 # Lahey Fortran 8.1.
7970 lf95*)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='--shared'
7973 lt_prog_compiler_static='--static'
7974 ;;
43e02a8a 7975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
7976 # Portland Group compilers (*not* the Pentium gcc compiler,
7977 # which looks to be a dead project)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-fpic'
7980 lt_prog_compiler_static='-Bstatic'
7981 ;;
7982 ccc*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # All Alpha code is PIC.
7985 lt_prog_compiler_static='-non_shared'
7986 ;;
43e02a8a
RW
7987 xl* | bgxl* | bgf* | mpixl*)
7988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
80c6c2cb
PG
7989 lt_prog_compiler_wl='-Wl,'
7990 lt_prog_compiler_pic='-qpic'
7991 lt_prog_compiler_static='-qstaticlink'
7992 ;;
1cf3d07d
SE
7993 *)
7994 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
7995 *Sun\ F* | *Sun*Fortran*)
7996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
7997 lt_prog_compiler_pic='-KPIC'
7998 lt_prog_compiler_static='-Bstatic'
43e02a8a 7999 lt_prog_compiler_wl=''
1cf3d07d 8000 ;;
43e02a8a
RW
8001 *Sun\ C*)
8002 # Sun C 5.9
1cf3d07d
SE
8003 lt_prog_compiler_pic='-KPIC'
8004 lt_prog_compiler_static='-Bstatic'
43e02a8a 8005 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8006 ;;
8007 esac
8008 ;;
8009 esac
8010 ;;
8011
8012 newsos6)
8013 lt_prog_compiler_pic='-KPIC'
8014 lt_prog_compiler_static='-Bstatic'
8015 ;;
8016
8017 *nto* | *qnx*)
8018 # QNX uses GNU C++, but need to define -shared option too, otherwise
8019 # it will coredump.
8020 lt_prog_compiler_pic='-fPIC -shared'
8021 ;;
8022
8023 osf3* | osf4* | osf5*)
8024 lt_prog_compiler_wl='-Wl,'
8025 # All OSF/1 code is PIC.
8026 lt_prog_compiler_static='-non_shared'
8027 ;;
8028
8029 rdos*)
8030 lt_prog_compiler_static='-non_shared'
8031 ;;
8032
8033 solaris*)
8034 lt_prog_compiler_pic='-KPIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 case $cc_basename in
8037 f77* | f90* | f95*)
8038 lt_prog_compiler_wl='-Qoption ld ';;
8039 *)
8040 lt_prog_compiler_wl='-Wl,';;
8041 esac
8042 ;;
8043
8044 sunos4*)
8045 lt_prog_compiler_wl='-Qoption ld '
8046 lt_prog_compiler_pic='-PIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 ;;
8049
8050 sysv4 | sysv4.2uw2* | sysv4.3*)
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-KPIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 ;;
8055
8056 sysv4*MP*)
8057 if test -d /usr/nec ;then
8058 lt_prog_compiler_pic='-Kconform_pic'
8059 lt_prog_compiler_static='-Bstatic'
8060 fi
8061 ;;
8062
8063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 unicos*)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_can_build_shared=no
8072 ;;
8073
8074 uts4*)
8075 lt_prog_compiler_pic='-pic'
8076 lt_prog_compiler_static='-Bstatic'
8077 ;;
8078
8079 *)
8080 lt_prog_compiler_can_build_shared=no
8081 ;;
8082 esac
8083 fi
8084
8085case $host_os in
8086 # For platforms which do not support PIC, -DPIC is meaningless:
8087 *djgpp*)
8088 lt_prog_compiler_pic=
8089 ;;
8090 *)
8091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8092 ;;
8093esac
5213506e
RW
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8095$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8096
8097
8098
8099
8100
8101
8102#
8103# Check to make sure the PIC flag actually works.
8104#
8105if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8107$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8108if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
1cf3d07d 8110else
80c6c2cb 8111 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8112 ac_outfile=conftest.$ac_objext
8113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8115 # Insert the option either (1) after the last *FLAGS variable, or
8116 # (2) before a word containing "conftest.", or (3) at the end.
8117 # Note that $ac_compile itself does not contain backslashes and begins
8118 # with a dollar sign (not a hyphen), so the echo should work correctly.
8119 # The option is referenced via a variable to avoid confusing sed.
8120 lt_compile=`echo "$ac_compile" | $SED \
8121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8123 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8125 (eval "$lt_compile" 2>conftest.err)
8126 ac_status=$?
8127 cat conftest.err >&5
43e02a8a 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8129 if (exit $ac_status) && test -s "$ac_outfile"; then
8130 # The compiler can only warn and ignore the option if not recognized
8131 # So say no if there are warnings other than the usual output.
43e02a8a 8132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8135 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8136 fi
8137 fi
8138 $RM conftest*
8139
8140fi
5213506e
RW
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8142$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8143
80c6c2cb 8144if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8145 case $lt_prog_compiler_pic in
8146 "" | " "*) ;;
8147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8148 esac
8149else
8150 lt_prog_compiler_pic=
8151 lt_prog_compiler_can_build_shared=no
8152fi
8153
8154fi
8155
8156
8157
8158
8159
8160
8161#
8162# Check to make sure the static flag actually works.
8163#
8164wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8166$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8167if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
1cf3d07d 8169else
80c6c2cb 8170 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8171 save_LDFLAGS="$LDFLAGS"
8172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8175 # The linker can only warn and ignore the option if not recognized
8176 # So say no if there are warnings
8177 if test -s conftest.err; then
8178 # Append any errors to the config.log.
8179 cat conftest.err 1>&5
43e02a8a 8180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8182 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8183 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8184 fi
8185 else
80c6c2cb 8186 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8187 fi
8188 fi
80c6c2cb 8189 $RM -r conftest*
1cf3d07d
SE
8190 LDFLAGS="$save_LDFLAGS"
8191
8192fi
5213506e
RW
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8194$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8195
80c6c2cb 8196if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8197 :
8198else
8199 lt_prog_compiler_static=
8200fi
8201
8202
8203
8204
8205
8206
8207
5213506e
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8209$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8210if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8212else
8213 lt_cv_prog_compiler_c_o=no
8214 $RM -r conftest 2>/dev/null
8215 mkdir conftest
8216 cd conftest
8217 mkdir out
8218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219
8220 lt_compiler_flag="-o out/conftest2.$ac_objext"
8221 # Insert the option either (1) after the last *FLAGS variable, or
8222 # (2) before a word containing "conftest.", or (3) at the end.
8223 # Note that $ac_compile itself does not contain backslashes and begins
8224 # with a dollar sign (not a hyphen), so the echo should work correctly.
8225 lt_compile=`echo "$ac_compile" | $SED \
8226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8228 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8230 (eval "$lt_compile" 2>out/conftest.err)
8231 ac_status=$?
8232 cat out/conftest.err >&5
43e02a8a 8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8235 then
8236 # The compiler can only warn and ignore the option if not recognized
8237 # So say no if there are warnings
43e02a8a 8238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8241 lt_cv_prog_compiler_c_o=yes
8242 fi
8243 fi
8244 chmod u+w . 2>&5
8245 $RM conftest*
8246 # SGI C++ compiler will create directory out/ii_files/ for
8247 # template instantiation
8248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8249 $RM out/* && rmdir out
8250 cd ..
8251 $RM -r conftest
8252 $RM conftest*
8253
8254fi
5213506e
RW
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8256$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8257
8258
8259
8260
8261
8262
5213506e
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8264$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8265if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8267else
8268 lt_cv_prog_compiler_c_o=no
8269 $RM -r conftest 2>/dev/null
8270 mkdir conftest
8271 cd conftest
8272 mkdir out
8273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274
8275 lt_compiler_flag="-o out/conftest2.$ac_objext"
8276 # Insert the option either (1) after the last *FLAGS variable, or
8277 # (2) before a word containing "conftest.", or (3) at the end.
8278 # Note that $ac_compile itself does not contain backslashes and begins
8279 # with a dollar sign (not a hyphen), so the echo should work correctly.
8280 lt_compile=`echo "$ac_compile" | $SED \
8281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8285 (eval "$lt_compile" 2>out/conftest.err)
8286 ac_status=$?
8287 cat out/conftest.err >&5
43e02a8a 8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290 then
8291 # The compiler can only warn and ignore the option if not recognized
8292 # So say no if there are warnings
43e02a8a 8293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8296 lt_cv_prog_compiler_c_o=yes
8297 fi
8298 fi
8299 chmod u+w . 2>&5
8300 $RM conftest*
8301 # SGI C++ compiler will create directory out/ii_files/ for
8302 # template instantiation
8303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8304 $RM out/* && rmdir out
8305 cd ..
8306 $RM -r conftest
8307 $RM conftest*
8308
8309fi
5213506e
RW
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8311$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8312
8313
8314
8315
8316hard_links="nottested"
8317if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8318 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8320$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8321 hard_links=yes
8322 $RM conftest*
8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 touch conftest.a
8325 ln conftest.a conftest.b 2>&5 || hard_links=no
8326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8328$as_echo "$hard_links" >&6; }
1cf3d07d 8329 if test "$hard_links" = no; then
5213506e
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8331$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8332 need_locks=warn
8333 fi
8334else
8335 need_locks=no
8336fi
8337
8338
8339
8340
8341
8342
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8344$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8345
8346 runpath_var=
8347 allow_undefined_flag=
8348 always_export_symbols=no
8349 archive_cmds=
8350 archive_expsym_cmds=
8351 compiler_needs_object=no
8352 enable_shared_with_static_runtimes=no
8353 export_dynamic_flag_spec=
8354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8355 hardcode_automatic=no
8356 hardcode_direct=no
8357 hardcode_direct_absolute=no
8358 hardcode_libdir_flag_spec=
8359 hardcode_libdir_flag_spec_ld=
8360 hardcode_libdir_separator=
8361 hardcode_minus_L=no
8362 hardcode_shlibpath_var=unsupported
8363 inherit_rpath=no
8364 link_all_deplibs=unknown
8365 module_cmds=
8366 module_expsym_cmds=
8367 old_archive_from_new_cmds=
8368 old_archive_from_expsyms_cmds=
8369 thread_safe_flag_spec=
8370 whole_archive_flag_spec=
8371 # include_expsyms should be a list of space-separated symbols to be *always*
8372 # included in the symbol list
8373 include_expsyms=
8374 # exclude_expsyms can be an extended regexp of symbols to exclude
8375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8377 # as well as any symbol that contains `d'.
80c6c2cb 8378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8380 # platforms (ab)use it in PIC code, but their linkers get confused if
8381 # the symbol is explicitly referenced. Since portable code cannot
8382 # rely on this symbol name, it's probably fine to never include it in
8383 # preloaded symbol tables.
80c6c2cb 8384 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8385 extract_expsyms_cmds=
8386
8387 case $host_os in
80c6c2cb 8388 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8390 # When not using gcc, we currently assume that we are using
8391 # Microsoft Visual C++.
8392 if test "$GCC" != yes; then
8393 with_gnu_ld=no
8394 fi
8395 ;;
8396 interix*)
8397 # we just hope/assume this is gcc and not c89 (= MSVC++)
8398 with_gnu_ld=yes
8399 ;;
8400 openbsd*)
8401 with_gnu_ld=no
8402 ;;
8403 esac
8404
8405 ld_shlibs=yes
43e02a8a
RW
8406
8407 # On some targets, GNU ld is compatible enough with the native linker
8408 # that we're better off using the native interface for both.
8409 lt_use_gnu_ld_interface=no
1cf3d07d 8410 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
8411 case $host_os in
8412 aix*)
8413 # The AIX port of GNU ld has always aspired to compatibility
8414 # with the native linker. However, as the warning in the GNU ld
8415 # block says, versions before 2.19.5* couldn't really create working
8416 # shared libraries, regardless of the interface used.
8417 case `$LD -v 2>&1` in
8418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8420 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8421 *)
8422 lt_use_gnu_ld_interface=yes
8423 ;;
8424 esac
8425 ;;
8426 *)
8427 lt_use_gnu_ld_interface=yes
8428 ;;
8429 esac
8430 fi
8431
8432 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
8433 # If archive_cmds runs LD, not CC, wlarc should be empty
8434 wlarc='${wl}'
8435
8436 # Set some defaults for GNU ld with shared library support. These
8437 # are reset later if shared libraries are not supported. Putting them
8438 # here allows them to be overridden if necessary.
8439 runpath_var=LD_RUN_PATH
8440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8441 export_dynamic_flag_spec='${wl}--export-dynamic'
8442 # ancient GNU ld didn't support --whole-archive et. al.
8443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8445 else
8446 whole_archive_flag_spec=
8447 fi
8448 supports_anon_versioning=no
8449 case `$LD -v 2>&1` in
43e02a8a 8450 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
8451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8454 *\ 2.11.*) ;; # other 2.11 versions
8455 *) supports_anon_versioning=yes ;;
8456 esac
8457
8458 # See if GNU ld supports shared libraries.
8459 case $host_os in
95d4f544 8460 aix[3-9]*)
1cf3d07d
SE
8461 # On AIX/PPC, the GNU linker is very broken
8462 if test "$host_cpu" != ia64; then
8463 ld_shlibs=no
8464 cat <<_LT_EOF 1>&2
8465
43e02a8a 8466*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
8467*** to be unable to reliably create shared libraries on AIX.
8468*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
8469*** really care for shared libraries, you may want to install binutils
8470*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8471*** You will then need to restart the configuration process.
1cf3d07d
SE
8472
8473_LT_EOF
8474 fi
8475 ;;
8476
8477 amigaos*)
80c6c2cb
PG
8478 case $host_cpu in
8479 powerpc)
8480 # see comment about AmigaOS4 .so support
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 archive_expsym_cmds=''
8483 ;;
8484 m68k)
8485 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)'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_minus_L=yes
8488 ;;
8489 esac
1cf3d07d
SE
8490 ;;
8491
8492 beos*)
8493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8494 allow_undefined_flag=unsupported
8495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8496 # support --undefined. This deserves some investigation. FIXME
8497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 else
8499 ld_shlibs=no
8500 fi
8501 ;;
8502
80c6c2cb 8503 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8505 # as there is no search path for DLLs.
8506 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 8507 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
8508 allow_undefined_flag=unsupported
8509 always_export_symbols=no
8510 enable_shared_with_static_runtimes=yes
8511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8512
8513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8515 # If the export-symbols file already is a .def file (1st line
8516 # is EXPORTS), use it as is; otherwise, prepend...
8517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8518 cp $export_symbols $output_objdir/$soname.def;
8519 else
8520 echo EXPORTS > $output_objdir/$soname.def;
8521 cat $export_symbols >> $output_objdir/$soname.def;
8522 fi~
8523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8524 else
8525 ld_shlibs=no
8526 fi
8527 ;;
8528
43e02a8a
RW
8529 haiku*)
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531 link_all_deplibs=yes
8532 ;;
8533
1cf3d07d
SE
8534 interix[3-9]*)
8535 hardcode_direct=no
8536 hardcode_shlibpath_var=no
8537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8538 export_dynamic_flag_spec='${wl}-E'
8539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8540 # Instead, shared libraries are loaded at an image base (0x10000000 by
8541 # default) and relocated if they conflict, which is a slow very memory
8542 # consuming and fragmenting process. To avoid this, we pick a random,
8543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8546 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'
8547 ;;
8548
7a9d3fe8 8549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8550 tmp_diet=no
8551 if test "$host_os" = linux-dietlibc; then
8552 case $cc_basename in
8553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8554 esac
8555 fi
8556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8557 && test "$tmp_diet" = no
8558 then
8559 tmp_addflag=
80c6c2cb 8560 tmp_sharedflag='-shared'
1cf3d07d
SE
8561 case $cc_basename,$host_cpu in
8562 pgcc*) # Portland Group C compiler
43e02a8a 8563 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
8564 tmp_addflag=' $pic_flag'
8565 ;;
43e02a8a
RW
8566 pgf77* | pgf90* | pgf95* | pgfortran*)
8567 # Portland Group f77 and f90 compilers
8568 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
8569 tmp_addflag=' $pic_flag -Mnomain' ;;
8570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8571 tmp_addflag=' -i_dynamic' ;;
8572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8573 tmp_addflag=' -i_dynamic -nofor_main' ;;
8574 ifc* | ifort*) # Intel Fortran compiler
8575 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
8576 lf95*) # Lahey Fortran 8.1
8577 whole_archive_flag_spec=
8578 tmp_sharedflag='--shared' ;;
43e02a8a 8579 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
80c6c2cb
PG
8580 tmp_sharedflag='-qmkshrobj'
8581 tmp_addflag= ;;
43e02a8a
RW
8582 nvcc*) # Cuda Compiler Driver 2.2
8583 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'
8584 compiler_needs_object=yes
8585 ;;
1cf3d07d
SE
8586 esac
8587 case `$CC -V 2>&1 | sed 5q` in
8588 *Sun\ C*) # Sun C 5.9
43e02a8a 8589 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
8590 compiler_needs_object=yes
8591 tmp_sharedflag='-G' ;;
8592 *Sun\ F*) # Sun Fortran 8.3
8593 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8594 esac
8595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596
8597 if test "x$supports_anon_versioning" = xyes; then
8598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8600 echo "local: *; };" >> $output_objdir/$libname.ver~
8601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8602 fi
80c6c2cb
PG
8603
8604 case $cc_basename in
43e02a8a 8605 xlf* | bgf* | bgxlf* | mpixlf*)
80c6c2cb
PG
8606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8608 hardcode_libdir_flag_spec=
8609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8611 if test "x$supports_anon_versioning" = xyes; then
8612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8614 echo "local: *; };" >> $output_objdir/$libname.ver~
8615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8616 fi
8617 ;;
8618 esac
1cf3d07d
SE
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623
8624 netbsd*)
8625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8627 wlarc=
8628 else
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631 fi
8632 ;;
8633
8634 solaris*)
8635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8636 ld_shlibs=no
8637 cat <<_LT_EOF 1>&2
8638
8639*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8640*** create shared libraries on Solaris systems. Therefore, libtool
8641*** is disabling shared libraries support. We urge you to upgrade GNU
8642*** binutils to release 2.9.1 or newer. Another option is to modify
8643*** your PATH or compiler configuration so that the native linker is
8644*** used, and then restart.
8645
8646_LT_EOF
8647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650 else
8651 ld_shlibs=no
8652 fi
8653 ;;
8654
8655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8656 case `$LD -v 2>&1` in
8657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8658 ld_shlibs=no
8659 cat <<_LT_EOF 1>&2
8660
8661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8662*** reliably create shared libraries on SCO systems. Therefore, libtool
8663*** is disabling shared libraries support. We urge you to upgrade GNU
8664*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8665*** your PATH or compiler configuration so that the native linker is
8666*** used, and then restart.
8667
8668_LT_EOF
8669 ;;
8670 *)
8671 # For security reasons, it is highly recommended that you always
8672 # use absolute paths for naming shared libraries, and exclude the
8673 # DT_RUNPATH tag from executables and libraries. But doing so
8674 # requires that you compile everything twice, which is a pain.
8675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679 else
8680 ld_shlibs=no
8681 fi
8682 ;;
8683 esac
8684 ;;
8685
8686 sunos4*)
8687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8688 wlarc=
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 *)
8694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697 else
8698 ld_shlibs=no
8699 fi
8700 ;;
8701 esac
8702
8703 if test "$ld_shlibs" = no; then
8704 runpath_var=
8705 hardcode_libdir_flag_spec=
8706 export_dynamic_flag_spec=
8707 whole_archive_flag_spec=
8708 fi
8709 else
8710 # PORTME fill in a description of your system's linker (not GNU ld)
8711 case $host_os in
8712 aix3*)
8713 allow_undefined_flag=unsupported
8714 always_export_symbols=yes
8715 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'
8716 # Note: this linker hardcodes the directories in LIBPATH if there
8717 # are no directories specified by -L.
8718 hardcode_minus_L=yes
8719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8720 # Neither direct hardcoding nor static linking is supported with a
8721 # broken collect2.
8722 hardcode_direct=unsupported
8723 fi
8724 ;;
8725
95d4f544 8726 aix[4-9]*)
1cf3d07d
SE
8727 if test "$host_cpu" = ia64; then
8728 # On IA64, the linker does run time linking by default, so we don't
8729 # have to do anything special.
8730 aix_use_runtimelinking=no
8731 exp_sym_flag='-Bexport'
8732 no_entry_flag=""
8733 else
8734 # If we're using GNU nm, then we don't want the "-C" option.
8735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
8736 # Also, AIX nm treats weak defined symbols like other global
8737 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 8738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 8739 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
8740 else
8741 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'
8742 fi
8743 aix_use_runtimelinking=no
8744
8745 # Test if we are trying to use run time linking or normal
8746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8747 # need to do runtime linking.
95d4f544 8748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8749 for ld_flag in $LDFLAGS; do
8750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8751 aix_use_runtimelinking=yes
8752 break
8753 fi
8754 done
8755 ;;
8756 esac
8757
8758 exp_sym_flag='-bexport'
8759 no_entry_flag='-bnoentry'
8760 fi
8761
8762 # When large executables or shared objects are built, AIX ld can
8763 # have problems creating the table of contents. If linking a library
8764 # or program results in "error TOC overflow" add -mminimal-toc to
8765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8767
8768 archive_cmds=''
8769 hardcode_direct=yes
8770 hardcode_direct_absolute=yes
8771 hardcode_libdir_separator=':'
8772 link_all_deplibs=yes
8773 file_list_spec='${wl}-f,'
8774
8775 if test "$GCC" = yes; then
8776 case $host_os in aix4.[012]|aix4.[012].*)
8777 # We only want to do this on AIX 4.2 and lower, the check
8778 # below for broken collect2 doesn't work under 4.3+
8779 collect2name=`${CC} -print-prog-name=collect2`
8780 if test -f "$collect2name" &&
8781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8782 then
8783 # We have reworked collect2
8784 :
8785 else
8786 # We have old collect2
8787 hardcode_direct=unsupported
8788 # It fails to find uninstalled libraries when the uninstalled
8789 # path is not listed in the libpath. Setting hardcode_minus_L
8790 # to unsupported forces relinking
8791 hardcode_minus_L=yes
8792 hardcode_libdir_flag_spec='-L$libdir'
8793 hardcode_libdir_separator=
8794 fi
8795 ;;
8796 esac
8797 shared_flag='-shared'
8798 if test "$aix_use_runtimelinking" = yes; then
8799 shared_flag="$shared_flag "'${wl}-G'
8800 fi
8801 else
8802 # not using gcc
8803 if test "$host_cpu" = ia64; then
8804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8805 # chokes on -Wl,-G. The following line is correct:
8806 shared_flag='-G'
8807 else
8808 if test "$aix_use_runtimelinking" = yes; then
8809 shared_flag='${wl}-G'
8810 else
8811 shared_flag='${wl}-bM:SRE'
8812 fi
8813 fi
8814 fi
8815
80c6c2cb 8816 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8817 # It seems that -bexpall does not export symbols beginning with
8818 # underscore (_), so it is better to generate a list of symbols to export.
8819 always_export_symbols=yes
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # Warning - without using the other runtime loading flags (-brtl),
8822 # -berok will link without error, but may produce a broken library.
8823 allow_undefined_flag='-berok'
8824 # Determine the default libpath from the value encoded in an
8825 # empty executable.
5213506e 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8827/* end confdefs.h. */
8828
8829int
8830main ()
8831{
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
5213506e 8837if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8838
8839lt_aix_libpath_sed='
8840 /Import File Strings/,/^$/ {
8841 /^0/ {
8842 s/^0 *\(.*\)$/\1/
8843 p
8844 }
8845 }'
8846aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847# Check for a 64-bit object if we didn't find anything.
8848if test -z "$aix_libpath"; then
8849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850fi
1cf3d07d 8851fi
5213506e
RW
8852rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8854if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8855
8856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 8857 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
8858 else
8859 if test "$host_cpu" = ia64; then
8860 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8861 allow_undefined_flag="-z nodefs"
8862 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"
8863 else
8864 # Determine the default libpath from the value encoded in an
8865 # empty executable.
5213506e 8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8867/* end confdefs.h. */
8868
8869int
8870main ()
8871{
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
5213506e 8877if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8878
8879lt_aix_libpath_sed='
8880 /Import File Strings/,/^$/ {
8881 /^0/ {
8882 s/^0 *\(.*\)$/\1/
8883 p
8884 }
8885 }'
8886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887# Check for a 64-bit object if we didn't find anything.
8888if test -z "$aix_libpath"; then
8889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8890fi
1cf3d07d 8891fi
5213506e
RW
8892rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8895
8896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8897 # Warning - without using the other run time loading flags,
8898 # -berok will link without error, but may produce a broken library.
8899 no_undefined_flag=' ${wl}-bernotok'
8900 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
8901 if test "$with_gnu_ld" = yes; then
8902 # We only use this code for GNU lds that support --whole-archive.
8903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8904 else
8905 # Exported symbols can be pulled into shared objects from archives
8906 whole_archive_flag_spec='$convenience'
8907 fi
1cf3d07d
SE
8908 archive_cmds_need_lc=yes
8909 # This is similar to how AIX traditionally builds its shared libraries.
8910 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'
8911 fi
8912 fi
8913 ;;
8914
8915 amigaos*)
80c6c2cb
PG
8916 case $host_cpu in
8917 powerpc)
8918 # see comment about AmigaOS4 .so support
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds=''
8921 ;;
8922 m68k)
8923 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)'
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_minus_L=yes
8926 ;;
8927 esac
1cf3d07d
SE
8928 ;;
8929
8930 bsdi[45]*)
8931 export_dynamic_flag_spec=-rdynamic
8932 ;;
8933
80c6c2cb 8934 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8935 # When not using gcc, we currently assume that we are using
8936 # Microsoft Visual C++.
8937 # hardcode_libdir_flag_spec is actually meaningless, as there is
8938 # no search path for DLLs.
8939 hardcode_libdir_flag_spec=' '
8940 allow_undefined_flag=unsupported
8941 # Tell ltmain to make .lib files, not .a files.
8942 libext=lib
8943 # Tell ltmain to make .dll files, not .so files.
8944 shrext_cmds=".dll"
8945 # FIXME: Setting linknames here is a bad hack.
43e02a8a 8946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
8947 # The linker will automatically build a .lib file if we build a DLL.
8948 old_archive_from_new_cmds='true'
8949 # FIXME: Should let the user specify the lib program.
8950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8951 fix_srcfile_path='`cygpath -w "$srcfile"`'
8952 enable_shared_with_static_runtimes=yes
8953 ;;
8954
8955 darwin* | rhapsody*)
1cf3d07d 8956
80c6c2cb
PG
8957
8958 archive_cmds_need_lc=no
8959 hardcode_direct=no
8960 hardcode_automatic=yes
8961 hardcode_shlibpath_var=unsupported
43e02a8a
RW
8962 if test "$lt_cv_ld_force_load" = "yes"; then
8963 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\"`'
8964 else
8965 whole_archive_flag_spec=''
8966 fi
80c6c2cb
PG
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 8974 output_verbose_link_cmd=func_echo_all
80c6c2cb
PG
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 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}"
8978 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}"
8979
8980 else
8981 ld_shlibs=no
8982 fi
8983
1cf3d07d
SE
8984 ;;
8985
8986 dgux*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 freebsd1*)
8993 ld_shlibs=no
8994 ;;
8995
8996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997 # support. Future versions do this automatically, but an explicit c++rt0.o
8998 # does not break anything, and helps significantly (at the cost of a little
8999 # extra space).
9000 freebsd2.2*)
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9005 ;;
9006
9007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 freebsd2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_direct=yes
9011 hardcode_minus_L=yes
9012 hardcode_shlibpath_var=no
9013 ;;
9014
9015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9016 freebsd* | dragonfly*)
9017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 hpux9*)
9024 if test "$GCC" = yes; then
9025 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'
9026 else
9027 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'
9028 fi
9029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_direct=yes
9032
9033 # hardcode_minus_L: Not really in the search PATH,
9034 # but as the default location of the library.
9035 hardcode_minus_L=yes
9036 export_dynamic_flag_spec='${wl}-E'
9037 ;;
9038
9039 hpux10*)
43e02a8a 9040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9041 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042 else
9043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9044 fi
9045 if test "$with_gnu_ld" = no; then
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_flag_spec_ld='+b $libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 export_dynamic_flag_spec='${wl}-E'
9052 # hardcode_minus_L: Not really in the search PATH,
9053 # but as the default location of the library.
9054 hardcode_minus_L=yes
9055 fi
9056 ;;
9057
9058 hpux11*)
43e02a8a 9059 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9060 case $host_cpu in
9061 hppa*64*)
9062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 ;;
9064 ia64*)
80c6c2cb 9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9066 ;;
9067 *)
9068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9069 ;;
9070 esac
9071 else
9072 case $host_cpu in
9073 hppa*64*)
9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 ia64*)
9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 *)
43e02a8a
RW
9080
9081 # Older versions of the 11.00 compiler do not understand -b yet
9082 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9084$as_echo_n "checking if $CC understands -b... " >&6; }
9085if test "${lt_cv_prog_compiler__b+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087else
9088 lt_cv_prog_compiler__b=no
9089 save_LDFLAGS="$LDFLAGS"
9090 LDFLAGS="$LDFLAGS -b"
9091 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9092 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9093 # The linker can only warn and ignore the option if not recognized
9094 # So say no if there are warnings
9095 if test -s conftest.err; then
9096 # Append any errors to the config.log.
9097 cat conftest.err 1>&5
9098 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100 if diff conftest.exp conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler__b=yes
9102 fi
9103 else
9104 lt_cv_prog_compiler__b=yes
9105 fi
9106 fi
9107 $RM -r conftest*
9108 LDFLAGS="$save_LDFLAGS"
9109
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9112$as_echo "$lt_cv_prog_compiler__b" >&6; }
9113
9114if test x"$lt_cv_prog_compiler__b" = xyes; then
9115 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116else
9117 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118fi
9119
1cf3d07d
SE
9120 ;;
9121 esac
9122 fi
9123 if test "$with_gnu_ld" = no; then
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_separator=:
9126
9127 case $host_cpu in
9128 hppa*64*|ia64*)
9129 hardcode_direct=no
9130 hardcode_shlibpath_var=no
9131 ;;
9132 *)
9133 hardcode_direct=yes
9134 hardcode_direct_absolute=yes
9135 export_dynamic_flag_spec='${wl}-E'
9136
9137 # hardcode_minus_L: Not really in the search PATH,
9138 # but as the default location of the library.
9139 hardcode_minus_L=yes
9140 ;;
9141 esac
9142 fi
9143 ;;
9144
9145 irix5* | irix6* | nonstopux*)
9146 if test "$GCC" = yes; then
43e02a8a 9147 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
9148 # Try to use the -exported_symbol ld option, if it does not
9149 # work, assume that -exports_file does not work either and
9150 # implicitly export all symbols.
9151 save_LDFLAGS="$LDFLAGS"
9152 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h. */
1cf3d07d
SE
9155int foo(void) {}
9156_ACEOF
5213506e 9157if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9158 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 9159
1cf3d07d 9160fi
5213506e
RW
9161rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9163 LDFLAGS="$save_LDFLAGS"
9164 else
43e02a8a
RW
9165 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'
9166 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
9167 fi
9168 archive_cmds_need_lc='no'
9169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9170 hardcode_libdir_separator=:
9171 inherit_rpath=yes
9172 link_all_deplibs=yes
9173 ;;
9174
9175 netbsd*)
9176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9178 else
9179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9180 fi
9181 hardcode_libdir_flag_spec='-R$libdir'
9182 hardcode_direct=yes
9183 hardcode_shlibpath_var=no
9184 ;;
9185
9186 newsos6)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_direct=yes
9189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9190 hardcode_libdir_separator=:
9191 hardcode_shlibpath_var=no
9192 ;;
9193
9194 *nto* | *qnx*)
9195 ;;
9196
9197 openbsd*)
80c6c2cb
PG
9198 if test -f /usr/libexec/ld.so; then
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9201 hardcode_direct_absolute=yes
9202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 9204 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
9206 export_dynamic_flag_spec='${wl}-E'
9207 else
9208 case $host_os in
9209 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_libdir_flag_spec='-R$libdir'
9212 ;;
9213 *)
9214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9216 ;;
9217 esac
9218 fi
9219 else
9220 ld_shlibs=no
1cf3d07d
SE
9221 fi
9222 ;;
9223
9224 os2*)
9225 hardcode_libdir_flag_spec='-L$libdir'
9226 hardcode_minus_L=yes
9227 allow_undefined_flag=unsupported
43e02a8a 9228 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
9229 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9230 ;;
9231
9232 osf3*)
9233 if test "$GCC" = yes; then
9234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9235 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
9236 else
9237 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9238 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
9239 fi
9240 archive_cmds_need_lc='no'
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 hardcode_libdir_separator=:
9243 ;;
9244
9245 osf4* | osf5*) # as osf3* with the addition of -msym flag
9246 if test "$GCC" = yes; then
9247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9248 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
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 else
9251 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9252 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 9253 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 9254 $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
9255
9256 # Both c and cxx compiler support -rpath directly
9257 hardcode_libdir_flag_spec='-rpath $libdir'
9258 fi
9259 archive_cmds_need_lc='no'
9260 hardcode_libdir_separator=:
9261 ;;
9262
9263 solaris*)
9264 no_undefined_flag=' -z defs'
9265 if test "$GCC" = yes; then
9266 wlarc='${wl}'
9267 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270 else
9271 case `$CC -V 2>&1` in
9272 *"Compilers 5.0"*)
9273 wlarc=''
9274 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9277 ;;
9278 *)
9279 wlarc='${wl}'
9280 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9282 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9283 ;;
9284 esac
9285 fi
9286 hardcode_libdir_flag_spec='-R$libdir'
9287 hardcode_shlibpath_var=no
9288 case $host_os in
9289 solaris2.[0-5] | solaris2.[0-5].*) ;;
9290 *)
9291 # The compiler driver will combine and reorder linker options,
9292 # but understands `-z linker_flag'. GCC discards it without `$wl',
9293 # but is careful enough not to reorder.
9294 # Supported since Solaris 2.6 (maybe 2.5.1?)
9295 if test "$GCC" = yes; then
9296 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9297 else
9298 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9299 fi
9300 ;;
9301 esac
9302 link_all_deplibs=yes
9303 ;;
9304
9305 sunos4*)
9306 if test "x$host_vendor" = xsequent; then
9307 # Use $CC to link under sequent, because it throws in some extra .o
9308 # files that make .init and .fini sections work.
9309 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9310 else
9311 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9312 fi
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_direct=yes
9315 hardcode_minus_L=yes
9316 hardcode_shlibpath_var=no
9317 ;;
9318
9319 sysv4)
9320 case $host_vendor in
9321 sni)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_direct=yes # is this really true???
9324 ;;
9325 siemens)
9326 ## LD is ld it makes a PLAMLIB
9327 ## CC just makes a GrossModule.
9328 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9329 reload_cmds='$CC -r -o $output$reload_objs'
9330 hardcode_direct=no
9331 ;;
9332 motorola)
9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9335 ;;
9336 esac
9337 runpath_var='LD_RUN_PATH'
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 sysv4.3*)
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_shlibpath_var=no
9344 export_dynamic_flag_spec='-Bexport'
9345 ;;
9346
9347 sysv4*MP*)
9348 if test -d /usr/nec; then
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_shlibpath_var=no
9351 runpath_var=LD_RUN_PATH
9352 hardcode_runpath_var=yes
9353 ld_shlibs=yes
9354 fi
9355 ;;
9356
9357 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9358 no_undefined_flag='${wl}-z,text'
9359 archive_cmds_need_lc=no
9360 hardcode_shlibpath_var=no
9361 runpath_var='LD_RUN_PATH'
9362
9363 if test "$GCC" = yes; then
9364 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 else
9367 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369 fi
9370 ;;
9371
9372 sysv5* | sco3.2v5* | sco5v6*)
9373 # Note: We can NOT use -z defs as we might desire, because we do not
9374 # link with -lc, and that would cause any symbols used from libc to
9375 # always be unresolved, which means just about no library would
9376 # ever link correctly. If we're not using GNU ld we use -z text
9377 # though, which does catch some bad symbols but isn't as heavy-handed
9378 # as -z defs.
9379 no_undefined_flag='${wl}-z,text'
9380 allow_undefined_flag='${wl}-z,nodefs'
9381 archive_cmds_need_lc=no
9382 hardcode_shlibpath_var=no
9383 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9384 hardcode_libdir_separator=':'
9385 link_all_deplibs=yes
9386 export_dynamic_flag_spec='${wl}-Bexport'
9387 runpath_var='LD_RUN_PATH'
9388
9389 if test "$GCC" = yes; then
9390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 else
9393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 fi
9396 ;;
9397
9398 uts4*)
9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_libdir_flag_spec='-L$libdir'
9401 hardcode_shlibpath_var=no
9402 ;;
9403
9404 *)
9405 ld_shlibs=no
9406 ;;
9407 esac
9408
9409 if test x$host_vendor = xsni; then
9410 case $host in
9411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9412 export_dynamic_flag_spec='${wl}-Blargedynsym'
9413 ;;
9414 esac
9415 fi
9416 fi
9417
5213506e
RW
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9419$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9420test "$ld_shlibs" = no && can_build_shared=no
9421
9422with_gnu_ld=$with_gnu_ld
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438#
9439# Do we need to explicitly link libc?
9440#
9441case "x$archive_cmds_need_lc" in
9442x|xyes)
9443 # Assume -lc should be added
9444 archive_cmds_need_lc=yes
9445
9446 if test "$enable_shared" = yes && test "$GCC" = yes; then
9447 case $archive_cmds in
9448 *'~'*)
9449 # FIXME: we may have to deal with multi-command sequences.
9450 ;;
9451 '$CC '*)
9452 # Test whether the compiler implicitly links with -lc since on some
9453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9454 # to ld, don't add -lc before -lgcc.
5213506e
RW
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9456$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9457if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
baafc534
RW
9459else
9460 $RM conftest*
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9462
5213506e 9463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9464 (eval $ac_compile) 2>&5
9465 ac_status=$?
5213506e
RW
9466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9468 soname=conftest
9469 lib=conftest
9470 libobjs=conftest.$ac_objext
9471 deplibs=
9472 wl=$lt_prog_compiler_wl
9473 pic_flag=$lt_prog_compiler_pic
9474 compiler_flags=-v
9475 linker_flags=-v
9476 verstring=
9477 output_objdir=.
9478 libname=conftest
9479 lt_save_allow_undefined_flag=$allow_undefined_flag
9480 allow_undefined_flag=
5213506e 9481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9482 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9483 ac_status=$?
5213506e
RW
9484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9485 test $ac_status = 0; }
baafc534
RW
9486 then
9487 lt_cv_archive_cmds_need_lc=no
9488 else
9489 lt_cv_archive_cmds_need_lc=yes
9490 fi
9491 allow_undefined_flag=$lt_save_allow_undefined_flag
9492 else
9493 cat conftest.err 1>&5
9494 fi
9495 $RM conftest*
9496
9497fi
5213506e
RW
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9499$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9500 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9501 ;;
9502 esac
9503 fi
9504 ;;
9505esac
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
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
5213506e
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9664$as_echo_n "checking dynamic linker characteristics... " >&6; }
80c6c2cb
PG
9665
9666if test "$GCC" = yes; then
1cf3d07d
SE
9667 case $host_os in
9668 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9669 *) lt_awk_arg="/^libraries:/" ;;
9670 esac
43e02a8a
RW
9671 case $host_os in
9672 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9673 *) lt_sed_strip_eq="s,=/,/,g" ;;
9674 esac
9675 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9676 case $lt_search_path_spec in
9677 *\;*)
1cf3d07d
SE
9678 # if the path contains ";" then we assume it to be the separator
9679 # otherwise default to the standard path separator (i.e. ":") - it is
9680 # assumed that no part of a normal pathname contains ";" but that should
9681 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
9682 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9683 ;;
9684 *)
9685 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9686 ;;
9687 esac
1cf3d07d
SE
9688 # Ok, now we have the path, separated by spaces, we can step through it
9689 # and add multilib dir if necessary.
9690 lt_tmp_lt_search_path_spec=
9691 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9692 for lt_sys_path in $lt_search_path_spec; do
9693 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9694 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9695 else
9696 test -d "$lt_sys_path" && \
9697 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9698 fi
9699 done
43e02a8a 9700 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
9701BEGIN {RS=" "; FS="/|\n";} {
9702 lt_foo="";
9703 lt_count=0;
9704 for (lt_i = NF; lt_i > 0; lt_i--) {
9705 if ($lt_i != "" && $lt_i != ".") {
9706 if ($lt_i == "..") {
9707 lt_count++;
9708 } else {
9709 if (lt_count == 0) {
9710 lt_foo="/" $lt_i lt_foo;
9711 } else {
9712 lt_count--;
9713 }
9714 }
9715 }
9716 }
9717 if (lt_foo != "") { lt_freq[lt_foo]++; }
9718 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9719}'`
43e02a8a
RW
9720 # AWK program above erroneously prepends '/' to C:/dos/paths
9721 # for these hosts.
9722 case $host_os in
9723 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9724 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9725 esac
9726 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
9727else
9728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9729fi
9730library_names_spec=
9731libname_spec='lib$name'
9732soname_spec=
9733shrext_cmds=".so"
9734postinstall_cmds=
9735postuninstall_cmds=
9736finish_cmds=
9737finish_eval=
9738shlibpath_var=
9739shlibpath_overrides_runpath=unknown
9740version_type=none
9741dynamic_linker="$host_os ld.so"
9742sys_lib_dlsearch_path_spec="/lib /usr/lib"
9743need_lib_prefix=unknown
9744hardcode_into_libs=no
9745
9746# when you set need_version to no, make sure it does not cause -set_version
9747# flags to be left without arguments
9748need_version=unknown
9749
9750case $host_os in
9751aix3*)
9752 version_type=linux
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9754 shlibpath_var=LIBPATH
9755
9756 # AIX 3 has no versioning support, so we append a major version to the name.
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 ;;
9759
95d4f544 9760aix[4-9]*)
1cf3d07d
SE
9761 version_type=linux
9762 need_lib_prefix=no
9763 need_version=no
9764 hardcode_into_libs=yes
9765 if test "$host_cpu" = ia64; then
9766 # AIX 5 supports IA64
9767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 else
9770 # With GCC up to 2.95.x, collect2 would create an import file
9771 # for dependence libraries. The import file would start with
9772 # the line `#! .'. This would cause the generated library to
9773 # depend on `.', always an invalid library. This was fixed in
9774 # development snapshots of GCC prior to 3.0.
9775 case $host_os in
9776 aix4 | aix4.[01] | aix4.[01].*)
9777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9778 echo ' yes '
9779 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9780 :
9781 else
9782 can_build_shared=no
9783 fi
9784 ;;
9785 esac
9786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9787 # soname into executable. Probably we can add versioning support to
9788 # collect2, so additional links can be useful in future.
9789 if test "$aix_use_runtimelinking" = yes; then
9790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9791 # instead of lib<name>.a to let people know that these are not
9792 # typical AIX shared libraries.
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 else
9795 # We preserve .a as extension for shared libraries through AIX4.2
9796 # and later when we are not doing run time linking.
9797 library_names_spec='${libname}${release}.a $libname.a'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 fi
9800 shlibpath_var=LIBPATH
9801 fi
9802 ;;
9803
9804amigaos*)
80c6c2cb
PG
9805 case $host_cpu in
9806 powerpc)
9807 # Since July 2007 AmigaOS4 officially supports .so libraries.
9808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 ;;
9811 m68k)
1cf3d07d
SE
9812 library_names_spec='$libname.ixlibrary $libname.a'
9813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 9814 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
9815 ;;
9816 esac
1cf3d07d
SE
9817 ;;
9818
9819beos*)
9820 library_names_spec='${libname}${shared_ext}'
9821 dynamic_linker="$host_os ld.so"
9822 shlibpath_var=LIBRARY_PATH
9823 ;;
9824
9825bsdi[45]*)
9826 version_type=linux
9827 need_version=no
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9831 shlibpath_var=LD_LIBRARY_PATH
9832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9834 # the default ld.so.conf also contains /usr/contrib/lib and
9835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9836 # libtool to hard-code these into programs
9837 ;;
9838
80c6c2cb 9839cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9840 version_type=windows
9841 shrext_cmds=".dll"
9842 need_version=no
9843 need_lib_prefix=no
9844
80c6c2cb
PG
9845 case $GCC,$host_os in
9846 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9847 library_names_spec='$libname.dll.a'
9848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9849 postinstall_cmds='base_file=`basename \${file}`~
9850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9851 dldir=$destdir/`dirname \$dlpath`~
9852 test -d \$dldir || mkdir -p \$dldir~
9853 $install_prog $dir/$dlname \$dldir/$dlname~
9854 chmod a+x \$dldir/$dlname~
9855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9857 fi'
9858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9859 dlpath=$dir/\$dldll~
9860 $RM \$dlpath'
9861 shlibpath_overrides_runpath=yes
9862
9863 case $host_os in
9864 cygwin*)
9865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
9867
9868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 9869 ;;
80c6c2cb 9870 mingw* | cegcc*)
1cf3d07d
SE
9871 # MinGW DLLs use traditional 'lib' prefix
9872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
9873 ;;
9874 pw32*)
9875 # pw32 DLLs use 'pw' prefix rather than 'lib'
9876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9877 ;;
9878 esac
9879 ;;
9880
9881 *)
9882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9883 ;;
9884 esac
9885 dynamic_linker='Win32 ld.exe'
9886 # FIXME: first we should search . and the directory the executable is in
9887 shlibpath_var=PATH
9888 ;;
9889
9890darwin* | rhapsody*)
9891 dynamic_linker="$host_os dyld"
9892 version_type=darwin
9893 need_lib_prefix=no
9894 need_version=no
9895 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9896 soname_spec='${libname}${release}${major}$shared_ext'
9897 shlibpath_overrides_runpath=yes
9898 shlibpath_var=DYLD_LIBRARY_PATH
9899 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9900
9901 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9903 ;;
9904
9905dgux*)
9906 version_type=linux
9907 need_lib_prefix=no
9908 need_version=no
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 shlibpath_var=LD_LIBRARY_PATH
9912 ;;
9913
9914freebsd1*)
9915 dynamic_linker=no
9916 ;;
9917
9918freebsd* | dragonfly*)
9919 # DragonFly does not have aout. When/if they implement a new
9920 # versioning mechanism, adjust this.
9921 if test -x /usr/bin/objformat; then
9922 objformat=`/usr/bin/objformat`
9923 else
9924 case $host_os in
9925 freebsd[123]*) objformat=aout ;;
9926 *) objformat=elf ;;
9927 esac
9928 fi
9929 version_type=freebsd-$objformat
9930 case $version_type in
9931 freebsd-elf*)
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9933 need_version=no
9934 need_lib_prefix=no
9935 ;;
9936 freebsd-*)
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9938 need_version=yes
9939 ;;
9940 esac
9941 shlibpath_var=LD_LIBRARY_PATH
9942 case $host_os in
9943 freebsd2*)
9944 shlibpath_overrides_runpath=yes
9945 ;;
9946 freebsd3.[01]* | freebsdelf3.[01]*)
9947 shlibpath_overrides_runpath=yes
9948 hardcode_into_libs=yes
9949 ;;
9950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9952 shlibpath_overrides_runpath=no
9953 hardcode_into_libs=yes
9954 ;;
9955 *) # from 4.6 on, and DragonFly
9956 shlibpath_overrides_runpath=yes
9957 hardcode_into_libs=yes
9958 ;;
9959 esac
9960 ;;
9961
9962gnu*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9970 ;;
9971
43e02a8a
RW
9972haiku*)
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 dynamic_linker="$host_os runtime_loader"
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes
9981 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9982 hardcode_into_libs=yes
9983 ;;
9984
1cf3d07d
SE
9985hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9988 version_type=sunos
9989 need_lib_prefix=no
9990 need_version=no
9991 case $host_cpu in
9992 ia64*)
9993 shrext_cmds='.so'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 else
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004 fi
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006 ;;
10007 hppa*64*)
10008 shrext_cmds='.sl'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017 ;;
10018 *)
10019 shrext_cmds='.sl'
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 ;;
10026 esac
43e02a8a 10027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10028 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10029 # or fails outright, so override atomically:
10030 install_override_mode=555
1cf3d07d 10031 ;;
675cdab3 10032
1cf3d07d
SE
10033interix[3-9]*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=no
10042 hardcode_into_libs=yes
3ed8e5b6 10043 ;;
675cdab3 10044
1cf3d07d
SE
10045irix5* | irix6* | nonstopux*)
10046 case $host_os in
10047 nonstopux*) version_type=nonstopux ;;
10048 *)
10049 if test "$lt_cv_prog_gnu_ld" = yes; then
10050 version_type=linux
10051 else
10052 version_type=irix
10053 fi ;;
10054 esac
10055 need_lib_prefix=no
10056 need_version=no
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 case $host_os in
10060 irix5* | nonstopux*)
10061 libsuff= shlibsuff=
10062 ;;
10063 *)
10064 case $LD in # libtool.m4 will add one of these switches to LD
10065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10066 libsuff= shlibsuff= libmagic=32-bit;;
10067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10068 libsuff=32 shlibsuff=N32 libmagic=N32;;
10069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10071 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 10072 esac
1cf3d07d
SE
10073 ;;
10074 esac
10075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10076 shlibpath_overrides_runpath=no
10077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10079 hardcode_into_libs=yes
3ed8e5b6 10080 ;;
675cdab3 10081
1cf3d07d
SE
10082# No shared lib support for Linux oldld, aout, or coff.
10083linux*oldld* | linux*aout* | linux*coff*)
10084 dynamic_linker=no
10085 ;;
3ed8e5b6 10086
1cf3d07d 10087# This must be Linux ELF.
7a9d3fe8 10088linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=no
baafc534 10097
1cf3d07d 10098 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10099 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
baafc534
RW
10101else
10102 lt_cv_shlibpath_overrides_runpath=no
10103 save_LDFLAGS=$LDFLAGS
10104 save_libdir=$libdir
10105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
10108/* end confdefs.h. */
10109
10110int
10111main ()
10112{
675cdab3 10113
3ed8e5b6
AT
10114 ;
10115 return 0;
10116}
10117_ACEOF
5213506e
RW
10118if ac_fn_c_try_link "$LINENO"; then :
10119 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10120 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10121fi
675cdab3 10122fi
5213506e
RW
10123rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10125 LDFLAGS=$save_LDFLAGS
10126 libdir=$save_libdir
10127
10128fi
10129
10130 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10131
10132 # This implies no fast_install, which is unacceptable.
10133 # Some rework will be needed to allow for fast_install
10134 # before this can be enabled.
10135 hardcode_into_libs=yes
10136
10137 # Append ld.so.conf contents to the search path
10138 if test -f /etc/ld.so.conf; then
43e02a8a 10139 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
10140 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10141 fi
675cdab3 10142
1cf3d07d
SE
10143 # We used to test for /lib/ld.so.1 and disable shared libraries on
10144 # powerpc, because MkLinux only supported shared libraries with the
10145 # GNU dynamic linker. Since this was broken with cross compilers,
10146 # most powerpc-linux boxes support dynamic linking these days and
10147 # people can always --disable-shared, the test was removed, and we
10148 # assume the GNU/Linux dynamic linker is in use.
10149 dynamic_linker='GNU/Linux ld.so'
10150 ;;
10151
10152netbsd*)
10153 version_type=sunos
10154 need_lib_prefix=no
10155 need_version=no
10156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10159 dynamic_linker='NetBSD (a.out) ld.so'
10160 else
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 10164 fi
1cf3d07d
SE
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
3ed8e5b6 10168 ;;
675cdab3 10169
1cf3d07d
SE
10170newsos6)
10171 version_type=linux
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 ;;
675cdab3 10176
1cf3d07d
SE
10177*nto* | *qnx*)
10178 version_type=qnx
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10186 dynamic_linker='ldqnx.so'
10187 ;;
675cdab3 10188
1cf3d07d
SE
10189openbsd*)
10190 version_type=sunos
10191 sys_lib_dlsearch_path_spec="/usr/lib"
10192 need_lib_prefix=no
10193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10194 case $host_os in
10195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10196 *) need_version=no ;;
10197 esac
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202 case $host_os in
10203 openbsd2.[89] | openbsd2.[89].*)
10204 shlibpath_overrides_runpath=no
10205 ;;
10206 *)
10207 shlibpath_overrides_runpath=yes
10208 ;;
10209 esac
10210 else
10211 shlibpath_overrides_runpath=yes
10212 fi
10213 ;;
675cdab3 10214
1cf3d07d
SE
10215os2*)
10216 libname_spec='$name'
10217 shrext_cmds=".dll"
10218 need_lib_prefix=no
10219 library_names_spec='$libname${shared_ext} $libname.a'
10220 dynamic_linker='OS/2 ld.exe'
10221 shlibpath_var=LIBPATH
10222 ;;
675cdab3 10223
1cf3d07d
SE
10224osf3* | osf4* | osf5*)
10225 version_type=osf
10226 need_lib_prefix=no
10227 need_version=no
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10233 ;;
675cdab3 10234
1cf3d07d
SE
10235rdos*)
10236 dynamic_linker=no
10237 ;;
10238
10239solaris*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10250 ;;
10251
10252sunos4*)
10253 version_type=sunos
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10259 need_lib_prefix=no
10260 fi
10261 need_version=yes
10262 ;;
10263
10264sysv4 | sysv4.3*)
10265 version_type=linux
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10270 sni)
10271 shlibpath_overrides_runpath=no
10272 need_lib_prefix=no
10273 runpath_var=LD_RUN_PATH
3ed8e5b6 10274 ;;
1cf3d07d
SE
10275 siemens)
10276 need_lib_prefix=no
3ed8e5b6 10277 ;;
1cf3d07d
SE
10278 motorola)
10279 need_lib_prefix=no
10280 need_version=no
10281 shlibpath_overrides_runpath=no
10282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10283 ;;
10284 esac
10285 ;;
10286
10287sysv4*MP*)
10288 if test -d /usr/nec ;then
10289 version_type=linux
10290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10291 soname_spec='$libname${shared_ext}.$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 fi
10294 ;;
10295
10296sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10297 version_type=freebsd-elf
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 10307 else
1cf3d07d
SE
10308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10309 case $host_os in
10310 sco3.2v5*)
10311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10312 ;;
10313 esac
675cdab3 10314 fi
1cf3d07d
SE
10315 sys_lib_dlsearch_path_spec='/usr/lib'
10316 ;;
10317
10318tpf*)
10319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
80c6c2cb 10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328
10329uts4*)
10330 version_type=linux
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 ;;
10335
10336*)
10337 dynamic_linker=no
10338 ;;
10339esac
5213506e
RW
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10341$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10342test "$dynamic_linker" = no && can_build_shared=no
10343
10344variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10345if test "$GCC" = yes; then
10346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
10347fi
10348
80c6c2cb
PG
10349if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10351fi
10352if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10354fi
10355
675cdab3 10356
1cf3d07d
SE
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
43e02a8a
RW
10436
10437
10438
10439
10440
1cf3d07d
SE
10441
10442
10443
10444
10445
10446
5213506e
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10448$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10449hardcode_action=
10450if test -n "$hardcode_libdir_flag_spec" ||
10451 test -n "$runpath_var" ||
10452 test "X$hardcode_automatic" = "Xyes" ; then
10453
10454 # We can hardcode non-existent directories.
10455 if test "$hardcode_direct" != no &&
10456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10457 # have to relink, otherwise we might link with an installed library
10458 # when we should be linking with a yet-to-be-installed one
10459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10460 test "$hardcode_minus_L" != no; then
10461 # Linking always hardcodes the temporary library directory.
10462 hardcode_action=relink
10463 else
10464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10465 hardcode_action=immediate
63e5e3e0 10466 fi
3ed8e5b6 10467else
1cf3d07d
SE
10468 # We cannot hardcode anything, or else we can only hardcode existing
10469 # directories.
10470 hardcode_action=unsupported
675cdab3 10471fi
5213506e
RW
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10473$as_echo "$hardcode_action" >&6; }
63e5e3e0 10474
1cf3d07d
SE
10475if test "$hardcode_action" = relink ||
10476 test "$inherit_rpath" = yes; then
10477 # Fast installation is not supported
10478 enable_fast_install=no
10479elif test "$shlibpath_overrides_runpath" = yes ||
10480 test "$enable_shared" = no; then
10481 # Fast installation is not necessary
10482 enable_fast_install=needless
10483fi
675cdab3 10484
63e5e3e0 10485
63e5e3e0 10486
2f7bf5b7 10487
63e5e3e0 10488
63e5e3e0 10489
1cf3d07d
SE
10490 if test "x$enable_dlopen" != xyes; then
10491 enable_dlopen=unknown
10492 enable_dlopen_self=unknown
10493 enable_dlopen_self_static=unknown
10494else
10495 lt_cv_dlopen=no
10496 lt_cv_dlopen_libs=
63e5e3e0 10497
1cf3d07d
SE
10498 case $host_os in
10499 beos*)
10500 lt_cv_dlopen="load_add_on"
10501 lt_cv_dlopen_libs=
10502 lt_cv_dlopen_self=yes
10503 ;;
63e5e3e0 10504
80c6c2cb 10505 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10506 lt_cv_dlopen="LoadLibrary"
10507 lt_cv_dlopen_libs=
10508 ;;
63e5e3e0 10509
1cf3d07d
SE
10510 cygwin*)
10511 lt_cv_dlopen="dlopen"
10512 lt_cv_dlopen_libs=
10513 ;;
63e5e3e0 10514
1cf3d07d
SE
10515 darwin*)
10516 # if libdl is installed we need to link against it
5213506e
RW
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518$as_echo_n "checking for dlopen in -ldl... " >&6; }
10519if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
675cdab3 10521else
1cf3d07d
SE
10522 ac_check_lib_save_LIBS=$LIBS
10523LIBS="-ldl $LIBS"
5213506e 10524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 10525/* end confdefs.h. */
3ed8e5b6 10526
5213506e
RW
10527/* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10530#ifdef __cplusplus
10531extern "C"
10532#endif
1cf3d07d
SE
10533char dlopen ();
10534int
10535main ()
10536{
5213506e 10537return dlopen ();
1cf3d07d
SE
10538 ;
10539 return 0;
10540}
10541_ACEOF
5213506e 10542if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10543 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 10544else
5213506e 10545 ac_cv_lib_dl_dlopen=no
675cdab3 10546fi
5213506e
RW
10547rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10549LIBS=$ac_check_lib_save_LIBS
10550fi
5213506e
RW
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10553if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10555else
63e5e3e0 10556
1cf3d07d
SE
10557 lt_cv_dlopen="dyld"
10558 lt_cv_dlopen_libs=
10559 lt_cv_dlopen_self=yes
bbf3057b 10560
1cf3d07d 10561fi
2f7bf5b7 10562
1cf3d07d 10563 ;;
2f7bf5b7 10564
1cf3d07d 10565 *)
5213506e
RW
10566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10567if test "x$ac_cv_func_shl_load" = x""yes; then :
10568 lt_cv_dlopen="shl_load"
3ed8e5b6 10569else
5213506e
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10571$as_echo_n "checking for shl_load in -ldld... " >&6; }
10572if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
10574else
10575 ac_check_lib_save_LIBS=$LIBS
10576LIBS="-ldld $LIBS"
10577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10578/* end confdefs.h. */
1cf3d07d 10579
5213506e
RW
10580/* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
1cf3d07d 10582 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10583#ifdef __cplusplus
10584extern "C"
10585#endif
1cf3d07d
SE
10586char shl_load ();
10587int
10588main ()
10589{
5213506e 10590return shl_load ();
1cf3d07d
SE
10591 ;
10592 return 0;
10593}
c9b93377 10594_ACEOF
5213506e 10595if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10596 ac_cv_lib_dld_shl_load=yes
c9b93377 10597else
5213506e 10598 ac_cv_lib_dld_shl_load=no
3eee102e 10599fi
5213506e
RW
10600rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10602LIBS=$ac_check_lib_save_LIBS
bbf3057b 10603fi
5213506e
RW
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10605$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10606if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
80c6c2cb 10607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10608else
5213506e
RW
10609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10610if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10611 lt_cv_dlopen="dlopen"
10612else
5213506e
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10614$as_echo_n "checking for dlopen in -ldl... " >&6; }
10615if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10617else
10618 ac_check_lib_save_LIBS=$LIBS
10619LIBS="-ldl $LIBS"
5213506e 10620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10621/* end confdefs.h. */
1cf3d07d 10622
5213506e
RW
10623/* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10626#ifdef __cplusplus
10627extern "C"
10628#endif
1cf3d07d
SE
10629char dlopen ();
10630int
10631main ()
10632{
5213506e 10633return dlopen ();
1cf3d07d
SE
10634 ;
10635 return 0;
10636}
3ed8e5b6 10637_ACEOF
5213506e 10638if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10639 ac_cv_lib_dl_dlopen=yes
c9b93377 10640else
5213506e 10641 ac_cv_lib_dl_dlopen=no
c9b93377 10642fi
5213506e
RW
10643rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10645LIBS=$ac_check_lib_save_LIBS
c9b93377 10646fi
5213506e
RW
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10648$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10649if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 10651else
5213506e
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10653$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10654if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
c9b93377 10656else
1cf3d07d
SE
10657 ac_check_lib_save_LIBS=$LIBS
10658LIBS="-lsvld $LIBS"
5213506e 10659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10660/* end confdefs.h. */
c9b93377 10661
5213506e
RW
10662/* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10665#ifdef __cplusplus
10666extern "C"
10667#endif
1cf3d07d 10668char dlopen ();
c9b93377
JB
10669int
10670main ()
10671{
5213506e 10672return dlopen ();
c9b93377
JB
10673 ;
10674 return 0;
10675}
10676_ACEOF
5213506e 10677if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10678 ac_cv_lib_svld_dlopen=yes
c9b93377 10679else
5213506e 10680 ac_cv_lib_svld_dlopen=no
c9b93377 10681fi
5213506e
RW
10682rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10684LIBS=$ac_check_lib_save_LIBS
c9b93377 10685fi
5213506e
RW
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10687$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10688if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d 10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 10690else
5213506e
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10692$as_echo_n "checking for dld_link in -ldld... " >&6; }
10693if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
c9b93377 10695else
1cf3d07d
SE
10696 ac_check_lib_save_LIBS=$LIBS
10697LIBS="-ldld $LIBS"
5213506e 10698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10699/* end confdefs.h. */
c9b93377 10700
5213506e
RW
10701/* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10704#ifdef __cplusplus
10705extern "C"
10706#endif
1cf3d07d 10707char dld_link ();
c9b93377
JB
10708int
10709main ()
10710{
5213506e 10711return dld_link ();
1cf3d07d
SE
10712 ;
10713 return 0;
c9b93377
JB
10714}
10715_ACEOF
5213506e 10716if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10717 ac_cv_lib_dld_dld_link=yes
c9b93377 10718else
5213506e 10719 ac_cv_lib_dld_dld_link=no
c9b93377 10720fi
5213506e
RW
10721rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10723LIBS=$ac_check_lib_save_LIBS
c9b93377 10724fi
5213506e
RW
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10726$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10727if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
80c6c2cb 10728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 10729fi
1cf3d07d
SE
10730
10731
c9b93377 10732fi
c9b93377 10733
c9b93377
JB
10734
10735fi
10736
c9b93377 10737
1cf3d07d 10738fi
c9b93377
JB
10739
10740
1cf3d07d 10741fi
c9b93377
JB
10742
10743
1cf3d07d 10744fi
c9b93377 10745
1cf3d07d
SE
10746 ;;
10747 esac
c9b93377 10748
1cf3d07d
SE
10749 if test "x$lt_cv_dlopen" != xno; then
10750 enable_dlopen=yes
10751 else
10752 enable_dlopen=no
10753 fi
c9b93377 10754
1cf3d07d
SE
10755 case $lt_cv_dlopen in
10756 dlopen)
10757 save_CPPFLAGS="$CPPFLAGS"
10758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 10759
1cf3d07d
SE
10760 save_LDFLAGS="$LDFLAGS"
10761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10762
10763 save_LIBS="$LIBS"
10764 LIBS="$lt_cv_dlopen_libs $LIBS"
10765
5213506e
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10767$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10768if test "${lt_cv_dlopen_self+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
c9b93377 10770else
1cf3d07d
SE
10771 if test "$cross_compiling" = yes; then :
10772 lt_cv_dlopen_self=cross
10773else
10774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775 lt_status=$lt_dlunknown
10776 cat > conftest.$ac_ext <<_LT_EOF
a761df3d 10777#line 10777 "configure"
1cf3d07d 10778#include "confdefs.h"
c9b93377 10779
1cf3d07d
SE
10780#if HAVE_DLFCN_H
10781#include <dlfcn.h>
10782#endif
10783
10784#include <stdio.h>
10785
10786#ifdef RTLD_GLOBAL
10787# define LT_DLGLOBAL RTLD_GLOBAL
10788#else
10789# ifdef DL_GLOBAL
10790# define LT_DLGLOBAL DL_GLOBAL
10791# else
10792# define LT_DLGLOBAL 0
10793# endif
10794#endif
10795
10796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797 find out it does not work in some platform. */
10798#ifndef LT_DLLAZY_OR_NOW
10799# ifdef RTLD_LAZY
10800# define LT_DLLAZY_OR_NOW RTLD_LAZY
10801# else
10802# ifdef DL_LAZY
10803# define LT_DLLAZY_OR_NOW DL_LAZY
10804# else
10805# ifdef RTLD_NOW
10806# define LT_DLLAZY_OR_NOW RTLD_NOW
10807# else
10808# ifdef DL_NOW
10809# define LT_DLLAZY_OR_NOW DL_NOW
10810# else
10811# define LT_DLLAZY_OR_NOW 0
10812# endif
10813# endif
10814# endif
10815# endif
10816#endif
10817
43e02a8a
RW
10818/* When -fvisbility=hidden is used, assume the code has been annotated
10819 correspondingly for the symbols needed. */
10820#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10821void fnord () __attribute__((visibility("default")));
10822#endif
10823
10824void fnord () { int i=42; }
1cf3d07d
SE
10825int main ()
10826{
10827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828 int status = $lt_dlunknown;
10829
10830 if (self)
10831 {
10832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10833 else
10834 {
10835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10836 else puts (dlerror ());
10837 }
1cf3d07d
SE
10838 /* dlclose (self); */
10839 }
10840 else
10841 puts (dlerror ());
10842
80c6c2cb 10843 return status;
1cf3d07d
SE
10844}
10845_LT_EOF
5213506e 10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10847 (eval $ac_link) 2>&5
c9b93377 10848 ac_status=$?
5213506e
RW
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10851 (./conftest; exit; ) >&5 2>/dev/null
10852 lt_status=$?
10853 case x$lt_status in
10854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10857 esac
10858 else :
10859 # compilation failed
10860 lt_cv_dlopen_self=no
10861 fi
10862fi
10863rm -fr conftest*
10864
10865
10866fi
5213506e
RW
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10868$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
10869
10870 if test "x$lt_cv_dlopen_self" = xyes; then
10871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10873$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10874if test "${lt_cv_dlopen_self_static+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10876else
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self_static=cross
10879else
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<_LT_EOF
a761df3d 10883#line 10883 "configure"
1cf3d07d
SE
10884#include "confdefs.h"
10885
10886#if HAVE_DLFCN_H
10887#include <dlfcn.h>
10888#endif
10889
10890#include <stdio.h>
10891
10892#ifdef RTLD_GLOBAL
10893# define LT_DLGLOBAL RTLD_GLOBAL
10894#else
10895# ifdef DL_GLOBAL
10896# define LT_DLGLOBAL DL_GLOBAL
10897# else
10898# define LT_DLGLOBAL 0
10899# endif
10900#endif
10901
10902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904#ifndef LT_DLLAZY_OR_NOW
10905# ifdef RTLD_LAZY
10906# define LT_DLLAZY_OR_NOW RTLD_LAZY
10907# else
10908# ifdef DL_LAZY
10909# define LT_DLLAZY_OR_NOW DL_LAZY
10910# else
10911# ifdef RTLD_NOW
10912# define LT_DLLAZY_OR_NOW RTLD_NOW
10913# else
10914# ifdef DL_NOW
10915# define LT_DLLAZY_OR_NOW DL_NOW
10916# else
10917# define LT_DLLAZY_OR_NOW 0
10918# endif
10919# endif
10920# endif
10921# endif
10922#endif
10923
43e02a8a
RW
10924/* When -fvisbility=hidden is used, assume the code has been annotated
10925 correspondingly for the symbols needed. */
10926#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927void fnord () __attribute__((visibility("default")));
10928#endif
10929
10930void fnord () { int i=42; }
1cf3d07d
SE
10931int main ()
10932{
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10935
10936 if (self)
10937 {
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
10939 else
10940 {
10941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10942 else puts (dlerror ());
10943 }
1cf3d07d
SE
10944 /* dlclose (self); */
10945 }
10946 else
10947 puts (dlerror ());
10948
80c6c2cb 10949 return status;
1cf3d07d
SE
10950}
10951_LT_EOF
5213506e 10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10953 (eval $ac_link) 2>&5
c9b93377 10954 ac_status=$?
5213506e
RW
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10957 (./conftest; exit; ) >&5 2>/dev/null
10958 lt_status=$?
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10963 esac
10964 else :
10965 # compilation failed
10966 lt_cv_dlopen_self_static=no
10967 fi
10968fi
10969rm -fr conftest*
10970
10971
10972fi
5213506e
RW
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10974$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
10975 fi
10976
10977 CPPFLAGS="$save_CPPFLAGS"
10978 LDFLAGS="$save_LDFLAGS"
10979 LIBS="$save_LIBS"
10980 ;;
10981 esac
10982
10983 case $lt_cv_dlopen_self in
10984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985 *) enable_dlopen_self=unknown ;;
10986 esac
10987
10988 case $lt_cv_dlopen_self_static in
10989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990 *) enable_dlopen_self_static=unknown ;;
10991 esac
10992fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010striplib=
11011old_striplib=
5213506e
RW
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11013$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11014if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
1cf3d07d
SE
11019else
11020# FIXME - insert some real tests, host_os isn't really good enough
11021 case $host_os in
11022 darwin*)
11023 if test -n "$STRIP" ; then
11024 striplib="$STRIP -x"
11025 old_striplib="$STRIP -S"
5213506e
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027$as_echo "yes" >&6; }
1cf3d07d 11028 else
5213506e
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030$as_echo "no" >&6; }
1cf3d07d
SE
11031 fi
11032 ;;
11033 *)
5213506e
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
1cf3d07d
SE
11036 ;;
11037 esac
11038fi
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051 # Report which library types will actually be built
5213506e
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11053$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11055$as_echo "$can_build_shared" >&6; }
1cf3d07d 11056
5213506e
RW
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11058$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11059 test "$can_build_shared" = "no" && enable_shared=no
11060
11061 # On AIX, shared libraries and static libraries use the same namespace, and
11062 # are all built from PIC.
11063 case $host_os in
11064 aix3*)
11065 test "$enable_shared" = yes && enable_static=no
11066 if test -n "$RANLIB"; then
11067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11068 postinstall_cmds='$RANLIB $lib'
11069 fi
11070 ;;
11071
95d4f544 11072 aix[4-9]*)
1cf3d07d
SE
11073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11074 test "$enable_shared" = yes && enable_static=no
11075 fi
11076 ;;
11077 esac
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11079$as_echo "$enable_shared" >&6; }
1cf3d07d 11080
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11082$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11083 # Make sure either enable_shared or enable_static is yes.
11084 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11086$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11087
11088
11089
11090
11091fi
11092ac_ext=c
11093ac_cpp='$CPP $CPPFLAGS'
11094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097
11098CC="$lt_save_CC"
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
5213506e 11112 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11113
11114
11115
11116
11117# Only expand once:
11118
11119
11120
5213506e
RW
11121
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11123$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11124 # Check whether --enable-maintainer-mode was given.
11125if test "${enable_maintainer_mode+set}" = set; then :
11126 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
c9b93377 11127else
1cf3d07d 11128 USE_MAINTAINER_MODE=no
5213506e 11129fi
c9b93377 11130
5213506e
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11132$as_echo "$USE_MAINTAINER_MODE" >&6; }
11133 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11134 MAINTAINER_MODE_TRUE=
11135 MAINTAINER_MODE_FALSE='#'
11136else
11137 MAINTAINER_MODE_TRUE='#'
11138 MAINTAINER_MODE_FALSE=
c9b93377
JB
11139fi
11140
1cf3d07d
SE
11141 MAINT=$MAINTAINER_MODE_TRUE
11142
c9b93377
JB
11143
11144
c9b93377 11145for ac_header in sys/mman.h
5213506e
RW
11146do :
11147 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11148if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
c9b93377 11149 cat >>confdefs.h <<_ACEOF
5213506e 11150#define HAVE_SYS_MMAN_H 1
c9b93377
JB
11151_ACEOF
11152
11153fi
11154
11155done
11156
c9b93377 11157for ac_func in mmap
5213506e
RW
11158do :
11159 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11160if test "x$ac_cv_func_mmap" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162#define HAVE_MMAP 1
c9b93377 11163_ACEOF
c9b93377 11164
5213506e
RW
11165fi
11166done
c9b93377 11167
c9b93377 11168
5213506e
RW
11169ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11170if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11171 libffi_header_sys_mman_h=yes
11172else
11173 libffi_header_sys_mman_h=no
11174fi
c9b93377 11175
c9b93377 11176
5213506e
RW
11177ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11178if test "x$ac_cv_func_mmap" = x""yes; then :
11179 libffi_func_mmap=yes
c9b93377 11180else
5213506e 11181 libffi_func_mmap=no
4d447364
MR
11182fi
11183
11184if test "$libffi_header_sys_mman_h" != yes \
11185 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
11186 ac_cv_func_mmap_file=no
11187 ac_cv_func_mmap_dev_zero=no
11188 ac_cv_func_mmap_anon=no
11189else
5213506e
RW
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11191$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11192if test "${ac_cv_func_mmap_file+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
c9b93377
JB
11194else
11195 # Add a system to this blacklist if
11196 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11197 # memory area containing the same data that you'd get if you applied
11198 # read() to the same fd. The only system known to have a problem here
11199 # is VMS, where text files have record structure.
11200 case "$host_os" in
11201 vms* | ultrix*)
11202 ac_cv_func_mmap_file=no ;;
11203 *)
11204 ac_cv_func_mmap_file=yes;;
11205 esac
11206fi
5213506e
RW
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11208$as_echo "$ac_cv_func_mmap_file" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11210$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11211if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
c9b93377
JB
11213else
11214 # Add a system to this blacklist if it has mmap() but /dev/zero
11215 # does not exist, or if mmapping /dev/zero does not give anonymous
11216 # zeroed pages with both the following properties:
11217 # 1. If you map N consecutive pages in with one call, and then
11218 # unmap any subset of those pages, the pages that were not
11219 # explicitly unmapped remain accessible.
11220 # 2. If you map two adjacent blocks of memory and then unmap them
11221 # both at once, they must both go away.
11222 # Systems known to be in this category are Windows (all variants),
11223 # VMS, and Darwin.
11224 case "$host_os" in
11225 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11226 ac_cv_func_mmap_dev_zero=no ;;
11227 *)
11228 ac_cv_func_mmap_dev_zero=yes;;
11229 esac
11230fi
5213506e
RW
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11232$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
c9b93377
JB
11233
11234 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5213506e
RW
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11236$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11237if test "${ac_cv_decl_map_anon+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
c9b93377 11239else
5213506e 11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377
JB
11241/* end confdefs.h. */
11242#include <sys/types.h>
11243#include <sys/mman.h>
11244#include <unistd.h>
11245
11246#ifndef MAP_ANONYMOUS
11247#define MAP_ANONYMOUS MAP_ANON
11248#endif
11249
11250int
11251main ()
11252{
11253int n = MAP_ANONYMOUS;
11254 ;
11255 return 0;
11256}
11257_ACEOF
5213506e 11258if ac_fn_c_try_compile "$LINENO"; then :
c9b93377
JB
11259 ac_cv_decl_map_anon=yes
11260else
5213506e 11261 ac_cv_decl_map_anon=no
c9b93377 11262fi
5213506e 11263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9b93377 11264fi
5213506e
RW
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11266$as_echo "$ac_cv_decl_map_anon" >&6; }
c9b93377
JB
11267
11268 if test $ac_cv_decl_map_anon = no; then
11269 ac_cv_func_mmap_anon=no
11270 else
5213506e
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11272$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11273if test "${ac_cv_func_mmap_anon+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
c9b93377
JB
11275else
11276 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11277 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11278 # doesn't give anonymous zeroed pages with the same properties listed
11279 # above for use of /dev/zero.
11280 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11281 case "$host_os" in
11282 vms* | cygwin* | pe | mingw* | sco* | udk* )
11283 ac_cv_func_mmap_anon=no ;;
11284 *)
11285 ac_cv_func_mmap_anon=yes;;
11286 esac
11287fi
5213506e
RW
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11289$as_echo "$ac_cv_func_mmap_anon" >&6; }
c9b93377
JB
11290 fi
11291fi
11292
11293if test $ac_cv_func_mmap_file = yes; then
11294
5213506e 11295$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
c9b93377
JB
11296
11297fi
11298if test $ac_cv_func_mmap_dev_zero = yes; then
11299
5213506e 11300$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
c9b93377
JB
11301
11302fi
11303if test $ac_cv_func_mmap_anon = yes; then
11304
5213506e 11305$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
c9b93377
JB
11306
11307fi
11308
11309
5213506e 11310 if test -d $srcdir/testsuite; then
c9b93377
JB
11311 TESTSUBDIR_TRUE=
11312 TESTSUBDIR_FALSE='#'
11313else
11314 TESTSUBDIR_TRUE='#'
11315 TESTSUBDIR_FALSE=
11316fi
11317
11318
11319TARGETDIR="unknown"
11320case "$host" in
bf8da5fc
RH
11321 alpha*-*-*)
11322 TARGET=ALPHA; TARGETDIR=alpha;
0af23729 11323 # Support 128-bit long double, changeable via command-line switch.
bf8da5fc
RH
11324 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11325 ;;
11326
11327 arm*-*-*)
11328 TARGET=ARM; TARGETDIR=arm
11329 ;;
11330
cb14fcb8 11331 amd64-*-freebsd* | amd64-*-openbsd*)
2e250fa2
BK
11332 TARGET=X86_64; TARGETDIR=x86
11333 ;;
11334
124f60ab
BS
11335 avr32*-*-*)
11336 TARGET=AVR32; TARGETDIR=avr32
11337 ;;
11338
bf8da5fc
RH
11339 cris-*-*)
11340 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11341 ;;
11342
11343 frv-*-*)
11344 TARGET=FRV; TARGETDIR=frv
11345 ;;
11346
b7b857bb 11347 hppa*-*-linux* | parisc*-*-linux*)
bf8da5fc
RH
11348 TARGET=PA_LINUX; TARGETDIR=pa
11349 ;;
11350 hppa*64-*-hpux*)
11351 TARGET=PA64_HPUX; TARGETDIR=pa
11352 ;;
11353 hppa*-*-hpux*)
11354 TARGET=PA_HPUX; TARGETDIR=pa
11355 ;;
11356
938a483f 11357 i?86-*-freebsd* | i?86-*-openbsd*)
b7b857bb
AH
11358 TARGET=X86_FREEBSD; TARGETDIR=x86
11359 ;;
bf8da5fc
RH
11360 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11361 TARGET=X86_WIN32; TARGETDIR=x86
a761df3d
AG
11362 # All mingw/cygwin/win32 builds require this for sharedlib
11363 AM_LTLDFLAGS="-no-undefined"
bf8da5fc
RH
11364 ;;
11365 i?86-*-darwin*)
11366 TARGET=X86_DARWIN; TARGETDIR=x86
11367 ;;
04a49983
RO
11368 i?86-*-solaris2.1[0-9]*)
11369 TARGET=X86_64; TARGETDIR=x86
11370 ;;
bf8da5fc
RH
11371 i?86-*-*)
11372 TARGET=X86; TARGETDIR=x86
11373 ;;
11374
11375 ia64*-*-*)
11376 TARGET=IA64; TARGETDIR=ia64
11377 ;;
11378
11379 m32r*-*-*)
11380 TARGET=M32R; TARGETDIR=m32r
11381 ;;
11382
11383 m68k-*-*)
11384 TARGET=M68K; TARGETDIR=m68k
11385 ;;
11386
bf8da5fc 11387 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 11388 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11389 ;;
11390 mips*-*-linux*)
50117ecb
MK
11391 # Support 128-bit long double for NewABI.
11392 HAVE_LONG_DOUBLE='defined(__mips64)'
8d5c5e35 11393 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11394 ;;
11395
b7b857bb
AH
11396 powerpc*-*-linux* | powerpc-*-sysv*)
11397 TARGET=POWERPC; TARGETDIR=powerpc
11398 ;;
11399 powerpc-*-beos*)
bf8da5fc
RH
11400 TARGET=POWERPC; TARGETDIR=powerpc
11401 ;;
11402 powerpc-*-darwin*)
11403 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11404 ;;
11405 powerpc-*-aix* | rs6000-*-aix*)
11406 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11407 ;;
11408 powerpc-*-freebsd*)
11409 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11410 ;;
11411 powerpc*-*-rtems*)
11412 TARGET=POWERPC; TARGETDIR=powerpc
11413 ;;
11414
11415 s390-*-* | s390x-*-*)
11416 TARGET=S390; TARGETDIR=s390
11417 ;;
11418
11419 sh-*-* | sh[34]*-*-*)
11420 TARGET=SH; TARGETDIR=sh
11421 ;;
11422 sh64-*-* | sh5*-*-*)
11423 TARGET=SH64; TARGETDIR=sh64
11424 ;;
11425
11426 sparc*-*-*)
11427 TARGET=SPARC; TARGETDIR=sparc
11428 ;;
11429
11430 x86_64-*-darwin*)
11431 TARGET=X86_DARWIN; TARGETDIR=x86
11432 ;;
fe673cc9 11433
bf8da5fc 11434 x86_64-*-cygwin* | x86_64-*-mingw*)
fe673cc9 11435 TARGET=X86_WIN64; TARGETDIR=x86
bf8da5fc 11436 ;;
fe673cc9 11437
bf8da5fc
RH
11438 x86_64-*-*)
11439 TARGET=X86_64; TARGETDIR=x86
11440 ;;
c9b93377
JB
11441esac
11442
11443
11444
a761df3d 11445
c9b93377 11446if test $TARGETDIR = unknown; then
5213506e 11447 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
c9b93377
JB
11448fi
11449
5213506e 11450 if test x$TARGET = xMIPS; then
8d5c5e35
MR
11451 MIPS_TRUE=
11452 MIPS_FALSE='#'
c9b93377 11453else
8d5c5e35
MR
11454 MIPS_TRUE='#'
11455 MIPS_FALSE=
c9b93377
JB
11456fi
11457
5213506e 11458 if test x$TARGET = xSPARC; then
c9b93377
JB
11459 SPARC_TRUE=
11460 SPARC_FALSE='#'
11461else
11462 SPARC_TRUE='#'
11463 SPARC_FALSE=
11464fi
11465
5213506e 11466 if test x$TARGET = xX86; then
c9b93377
JB
11467 X86_TRUE=
11468 X86_FALSE='#'
11469else
11470 X86_TRUE='#'
11471 X86_FALSE=
63e5e3e0 11472fi
c9b93377 11473
5213506e 11474 if test x$TARGET = xX86_FREEBSD; then
b7b857bb
AH
11475 X86_FREEBSD_TRUE=
11476 X86_FREEBSD_FALSE='#'
11477else
11478 X86_FREEBSD_TRUE='#'
11479 X86_FREEBSD_FALSE=
11480fi
11481
5213506e 11482 if test x$TARGET = xX86_WIN32; then
c9b93377
JB
11483 X86_WIN32_TRUE=
11484 X86_WIN32_FALSE='#'
3ed8e5b6 11485else
c9b93377
JB
11486 X86_WIN32_TRUE='#'
11487 X86_WIN32_FALSE=
11488fi
3ed8e5b6 11489
5213506e 11490 if test x$TARGET = xX86_WIN64; then
fe673cc9
AH
11491 X86_WIN64_TRUE=
11492 X86_WIN64_FALSE='#'
11493else
11494 X86_WIN64_TRUE='#'
11495 X86_WIN64_FALSE=
11496fi
11497
5213506e 11498 if test x$TARGET = xX86_DARWIN; then
a3bd50cc
PB
11499 X86_DARWIN_TRUE=
11500 X86_DARWIN_FALSE='#'
11501else
11502 X86_DARWIN_TRUE='#'
11503 X86_DARWIN_FALSE=
11504fi
11505
5213506e 11506 if test x$TARGET = xALPHA; then
c9b93377
JB
11507 ALPHA_TRUE=
11508 ALPHA_FALSE='#'
11509else
11510 ALPHA_TRUE='#'
11511 ALPHA_FALSE=
63e5e3e0 11512fi
3ed8e5b6 11513
5213506e 11514 if test x$TARGET = xIA64; then
c9b93377
JB
11515 IA64_TRUE=
11516 IA64_FALSE='#'
11517else
11518 IA64_TRUE='#'
11519 IA64_FALSE=
63e5e3e0 11520fi
3ed8e5b6 11521
5213506e 11522 if test x$TARGET = xM32R; then
a472e9d4
KI
11523 M32R_TRUE=
11524 M32R_FALSE='#'
11525else
11526 M32R_TRUE='#'
11527 M32R_FALSE=
11528fi
11529
5213506e 11530 if test x$TARGET = xM68K; then
c9b93377
JB
11531 M68K_TRUE=
11532 M68K_FALSE='#'
11533else
11534 M68K_TRUE='#'
11535 M68K_FALSE=
3ed8e5b6 11536fi
c9b93377 11537
5213506e 11538 if test x$TARGET = xPOWERPC; then
c9b93377
JB
11539 POWERPC_TRUE=
11540 POWERPC_FALSE='#'
3ed8e5b6 11541else
c9b93377
JB
11542 POWERPC_TRUE='#'
11543 POWERPC_FALSE=
3ed8e5b6 11544fi
c9b93377 11545
5213506e 11546 if test x$TARGET = xPOWERPC_AIX; then
c9b93377
JB
11547 POWERPC_AIX_TRUE=
11548 POWERPC_AIX_FALSE='#'
3ed8e5b6 11549else
c9b93377
JB
11550 POWERPC_AIX_TRUE='#'
11551 POWERPC_AIX_FALSE=
3ed8e5b6 11552fi
c9b93377 11553
5213506e 11554 if test x$TARGET = xPOWERPC_DARWIN; then
c9b93377
JB
11555 POWERPC_DARWIN_TRUE=
11556 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 11557else
c9b93377
JB
11558 POWERPC_DARWIN_TRUE='#'
11559 POWERPC_DARWIN_FALSE=
11560fi
3ed8e5b6 11561
5213506e 11562 if test x$TARGET = xPOWERPC_FREEBSD; then
97067642
AT
11563 POWERPC_FREEBSD_TRUE=
11564 POWERPC_FREEBSD_FALSE='#'
11565else
11566 POWERPC_FREEBSD_TRUE='#'
11567 POWERPC_FREEBSD_FALSE=
11568fi
11569
5213506e 11570 if test x$TARGET = xARM; then
c9b93377
JB
11571 ARM_TRUE=
11572 ARM_FALSE='#'
11573else
11574 ARM_TRUE='#'
11575 ARM_FALSE=
3ed8e5b6 11576fi
3ed8e5b6 11577
124f60ab
BS
11578 if test x$TARGET = xAVR32; then
11579 AVR32_TRUE=
11580 AVR32_FALSE='#'
11581else
11582 AVR32_TRUE='#'
11583 AVR32_FALSE=
11584fi
11585
5213506e 11586 if test x$TARGET = xLIBFFI_CRIS; then
614348bb
SP
11587 LIBFFI_CRIS_TRUE=
11588 LIBFFI_CRIS_FALSE='#'
11589else
11590 LIBFFI_CRIS_TRUE='#'
11591 LIBFFI_CRIS_FALSE=
11592fi
11593
5213506e 11594 if test x$TARGET = xFRV; then
88d8c771
AG
11595 FRV_TRUE=
11596 FRV_FALSE='#'
11597else
11598 FRV_TRUE='#'
11599 FRV_FALSE=
11600fi
11601
5213506e 11602 if test x$TARGET = xS390; then
c9b93377
JB
11603 S390_TRUE=
11604 S390_FALSE='#'
3ed8e5b6 11605else
c9b93377
JB
11606 S390_TRUE='#'
11607 S390_FALSE=
3ed8e5b6 11608fi
c9b93377 11609
5213506e 11610 if test x$TARGET = xX86_64; then
c9b93377
JB
11611 X86_64_TRUE=
11612 X86_64_FALSE='#'
3ed8e5b6 11613else
c9b93377
JB
11614 X86_64_TRUE='#'
11615 X86_64_FALSE=
11616fi
3ed8e5b6 11617
5213506e 11618 if test x$TARGET = xSH; then
c9b93377
JB
11619 SH_TRUE=
11620 SH_FALSE='#'
11621else
11622 SH_TRUE='#'
11623 SH_FALSE=
63e5e3e0 11624fi
3ed8e5b6 11625
5213506e 11626 if test x$TARGET = xSH64; then
c9b93377
JB
11627 SH64_TRUE=
11628 SH64_FALSE='#'
63e5e3e0 11629else
c9b93377
JB
11630 SH64_TRUE='#'
11631 SH64_FALSE=
63e5e3e0 11632fi
63e5e3e0 11633
5213506e 11634 if test x$TARGET = xPA_LINUX; then
e6c300ef
JDA
11635 PA_LINUX_TRUE=
11636 PA_LINUX_FALSE='#'
63e5e3e0 11637else
e6c300ef
JDA
11638 PA_LINUX_TRUE='#'
11639 PA_LINUX_FALSE=
11640fi
11641
5213506e 11642 if test x$TARGET = xPA_HPUX; then
e6c300ef
JDA
11643 PA_HPUX_TRUE=
11644 PA_HPUX_FALSE='#'
11645else
11646 PA_HPUX_TRUE='#'
11647 PA_HPUX_FALSE=
11648fi
11649
5213506e 11650 if test x$TARGET = xPA64_HPUX; then
e6c300ef
JDA
11651 PA64_HPUX_TRUE=
11652 PA64_HPUX_FALSE='#'
11653else
11654 PA64_HPUX_TRUE='#'
11655 PA64_HPUX_FALSE=
3ed8e5b6 11656fi
3ed8e5b6
AT
11657
11658
5213506e
RW
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11660$as_echo_n "checking for ANSI C header files... " >&6; }
11661if test "${ac_cv_header_stdc+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
3ed8e5b6 11663else
5213506e 11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11665/* end confdefs.h. */
63e5e3e0
AG
11666#include <stdlib.h>
11667#include <stdarg.h>
11668#include <string.h>
11669#include <float.h>
3ed8e5b6
AT
11670
11671int
11672main ()
11673{
11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
5213506e 11679if ac_fn_c_try_compile "$LINENO"; then :
63e5e3e0
AG
11680 ac_cv_header_stdc=yes
11681else
5213506e 11682 ac_cv_header_stdc=no
63e5e3e0 11683fi
5213506e 11684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
11685
11686if test $ac_cv_header_stdc = yes; then
11687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11689/* end confdefs.h. */
63e5e3e0 11690#include <string.h>
3ed8e5b6
AT
11691
11692_ACEOF
63e5e3e0 11693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11694 $EGREP "memchr" >/dev/null 2>&1; then :
11695
63e5e3e0 11696else
63e5e3e0
AG
11697 ac_cv_header_stdc=no
11698fi
11699rm -f conftest*
11700
11701fi
11702
11703if test $ac_cv_header_stdc = yes; then
11704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11706/* end confdefs.h. */
63e5e3e0 11707#include <stdlib.h>
3ed8e5b6
AT
11708
11709_ACEOF
63e5e3e0 11710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11711 $EGREP "free" >/dev/null 2>&1; then :
11712
63e5e3e0 11713else
63e5e3e0
AG
11714 ac_cv_header_stdc=no
11715fi
11716rm -f conftest*
11717
11718fi
11719
11720if test $ac_cv_header_stdc = yes; then
11721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 11722 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11723 :
11724else
5213506e 11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11726/* end confdefs.h. */
63e5e3e0 11727#include <ctype.h>
5213506e 11728#include <stdlib.h>
3ed8e5b6
AT
11729#if ((' ' & 0x0FF) == 0x020)
11730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11732#else
11733# define ISLOWER(c) \
11734 (('a' <= (c) && (c) <= 'i') \
11735 || ('j' <= (c) && (c) <= 'r') \
11736 || ('s' <= (c) && (c) <= 'z'))
11737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11738#endif
63e5e3e0 11739
3ed8e5b6
AT
11740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11741int
11742main ()
11743{
11744 int i;
11745 for (i = 0; i < 256; i++)
11746 if (XOR (islower (i), ISLOWER (i))
11747 || toupper (i) != TOUPPER (i))
5213506e
RW
11748 return 2;
11749 return 0;
3ed8e5b6
AT
11750}
11751_ACEOF
5213506e 11752if ac_fn_c_try_run "$LINENO"; then :
3ed8e5b6 11753
5213506e
RW
11754else
11755 ac_cv_header_stdc=no
63e5e3e0 11756fi
5213506e
RW
11757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11758 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 11759fi
5213506e 11760
63e5e3e0
AG
11761fi
11762fi
5213506e
RW
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11764$as_echo "$ac_cv_header_stdc" >&6; }
63e5e3e0 11765if test $ac_cv_header_stdc = yes; then
3ed8e5b6 11766
5213506e 11767$as_echo "#define STDC_HEADERS 1" >>confdefs.h
63e5e3e0
AG
11768
11769fi
11770
11771for ac_func in memcpy
5213506e
RW
11772do :
11773 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11774if test "x$ac_cv_func_memcpy" = x""yes; then :
11775 cat >>confdefs.h <<_ACEOF
11776#define HAVE_MEMCPY 1
3ed8e5b6 11777_ACEOF
3ed8e5b6 11778
5213506e
RW
11779fi
11780done
63e5e3e0 11781
5213506e
RW
11782# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11783# for constant arguments. Useless!
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11785$as_echo_n "checking for working alloca.h... " >&6; }
11786if test "${ac_cv_working_alloca_h+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h. */
11791#include <alloca.h>
3ed8e5b6
AT
11792int
11793main ()
11794{
5213506e
RW
11795char *p = (char *) alloca (2 * sizeof (int));
11796 if (p) return 0;
3ed8e5b6
AT
11797 ;
11798 return 0;
11799}
11800_ACEOF
5213506e 11801if ac_fn_c_try_link "$LINENO"; then :
3ed8e5b6
AT
11802 ac_cv_working_alloca_h=yes
11803else
5213506e 11804 ac_cv_working_alloca_h=no
3ed8e5b6 11805fi
5213506e
RW
11806rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
3ed8e5b6 11808fi
5213506e
RW
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11810$as_echo "$ac_cv_working_alloca_h" >&6; }
3ed8e5b6
AT
11811if test $ac_cv_working_alloca_h = yes; then
11812
5213506e 11813$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
63e5e3e0
AG
11814
11815fi
11816
5213506e
RW
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11818$as_echo_n "checking for alloca... " >&6; }
11819if test "${ac_cv_func_alloca_works+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
63e5e3e0 11821else
5213506e 11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11823/* end confdefs.h. */
63e5e3e0
AG
11824#ifdef __GNUC__
11825# define alloca __builtin_alloca
11826#else
11827# ifdef _MSC_VER
11828# include <malloc.h>
11829# define alloca _alloca
11830# else
5213506e 11831# ifdef HAVE_ALLOCA_H
63e5e3e0
AG
11832# include <alloca.h>
11833# else
11834# ifdef _AIX
11835 #pragma alloca
11836# else
11837# ifndef alloca /* predefined by HP cc +Olibcalls */
11838char *alloca ();
11839# endif
11840# endif
11841# endif
11842# endif
11843#endif
11844
3ed8e5b6
AT
11845int
11846main ()
11847{
11848char *p = (char *) alloca (1);
5213506e 11849 if (p) return 0;
3ed8e5b6
AT
11850 ;
11851 return 0;
11852}
11853_ACEOF
5213506e 11854if ac_fn_c_try_link "$LINENO"; then :
63e5e3e0
AG
11855 ac_cv_func_alloca_works=yes
11856else
5213506e 11857 ac_cv_func_alloca_works=no
63e5e3e0 11858fi
5213506e
RW
11859rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11861fi
5213506e
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11863$as_echo "$ac_cv_func_alloca_works" >&6; }
63e5e3e0 11864
63e5e3e0 11865if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11866
5213506e 11867$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
63e5e3e0 11868
3ed8e5b6 11869else
63e5e3e0 11870 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11871# that cause trouble. Some versions do not even contain alloca or
11872# contain a buggy version. If you still want to use their alloca,
11873# use ar to extract alloca.o from them instead of compiling alloca.c.
11874
5213506e 11875ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3ed8e5b6 11876
5213506e 11877$as_echo "#define C_ALLOCA 1" >>confdefs.h
63e5e3e0
AG
11878
11879
5213506e
RW
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11881$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11882if test "${ac_cv_os_cray+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
63e5e3e0 11884else
5213506e 11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11886/* end confdefs.h. */
5213506e 11887#if defined CRAY && ! defined CRAY2
63e5e3e0
AG
11888webecray
11889#else
11890wenotbecray
11891#endif
11892
3ed8e5b6 11893_ACEOF
63e5e3e0 11894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 11895 $EGREP "webecray" >/dev/null 2>&1; then :
63e5e3e0
AG
11896 ac_cv_os_cray=yes
11897else
63e5e3e0
AG
11898 ac_cv_os_cray=no
11899fi
11900rm -f conftest*
11901
11902fi
5213506e
RW
11903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11904$as_echo "$ac_cv_os_cray" >&6; }
63e5e3e0 11905if test $ac_cv_os_cray = yes; then
3ed8e5b6 11906 for ac_func in _getb67 GETB67 getb67; do
5213506e
RW
11907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11909eval as_val=\$$as_ac_var
11910 if test "x$as_val" = x""yes; then :
3ed8e5b6
AT
11911
11912cat >>confdefs.h <<_ACEOF
63e5e3e0 11913#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11914_ACEOF
63e5e3e0 11915
3ed8e5b6 11916 break
63e5e3e0
AG
11917fi
11918
3ed8e5b6 11919 done
63e5e3e0
AG
11920fi
11921
5213506e
RW
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11923$as_echo_n "checking stack direction for C alloca... " >&6; }
11924if test "${ac_cv_c_stack_direction+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
63e5e3e0 11926else
5213506e 11927 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11928 ac_cv_c_stack_direction=0
11929else
5213506e 11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11931/* end confdefs.h. */
5213506e 11932$ac_includes_default
3ed8e5b6 11933int
63e5e3e0
AG
11934find_stack_direction ()
11935{
11936 static char *addr = 0;
11937 auto char dummy;
11938 if (addr == 0)
11939 {
11940 addr = &dummy;
11941 return find_stack_direction ();
11942 }
11943 else
11944 return (&dummy > addr) ? 1 : -1;
11945}
3ed8e5b6
AT
11946
11947int
63e5e3e0
AG
11948main ()
11949{
5213506e 11950 return find_stack_direction () < 0;
63e5e3e0 11951}
3ed8e5b6 11952_ACEOF
5213506e 11953if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
11954 ac_cv_c_stack_direction=1
11955else
5213506e 11956 ac_cv_c_stack_direction=-1
63e5e3e0 11957fi
5213506e
RW
11958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11959 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0
AG
11960fi
11961
5213506e
RW
11962fi
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11964$as_echo "$ac_cv_c_stack_direction" >&6; }
3ed8e5b6 11965cat >>confdefs.h <<_ACEOF
63e5e3e0 11966#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11967_ACEOF
11968
63e5e3e0
AG
11969
11970fi
11971
11972
5213506e
RW
11973# The cast to long int works around a bug in the HP C Compiler
11974# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976# This bug is HP SR number 8606223364.
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11978$as_echo_n "checking size of double... " >&6; }
11979if test "${ac_cv_sizeof_double+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
a097ef55 11981else
5213506e
RW
11982 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
11983
11984else
11985 if test "$ac_cv_type_double" = yes; then
11986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11988{ as_fn_set_status 77
11989as_fn_error "cannot compute sizeof (double)
11990See \`config.log' for more details." "$LINENO" 5; }; }
11991 else
11992 ac_cv_sizeof_double=0
11993 fi
11994fi
11995
11996fi
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11998$as_echo "$ac_cv_sizeof_double" >&6; }
11999
12000
12001
12002cat >>confdefs.h <<_ACEOF
12003#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a097ef55 12004_ACEOF
5213506e
RW
12005
12006
12007# The cast to long int works around a bug in the HP C Compiler
12008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12010# This bug is HP SR number 8606223364.
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12012$as_echo_n "checking size of long double... " >&6; }
12013if test "${ac_cv_sizeof_long_double+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
a097ef55 12015else
5213506e 12016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
a097ef55 12017
5213506e
RW
12018else
12019 if test "$ac_cv_type_long_double" = yes; then
12020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12022{ as_fn_set_status 77
12023as_fn_error "cannot compute sizeof (long double)
12024See \`config.log' for more details." "$LINENO" 5; }; }
12025 else
12026 ac_cv_sizeof_long_double=0
12027 fi
a097ef55 12028fi
5213506e 12029
a097ef55 12030fi
5213506e
RW
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12032$as_echo "$ac_cv_sizeof_long_double" >&6; }
a097ef55 12033
5213506e
RW
12034
12035
12036cat >>confdefs.h <<_ACEOF
12037#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
a097ef55 12038_ACEOF
5213506e
RW
12039
12040
12041
12042# Also AC_SUBST this variable for ffi.h.
12043if test -z "$HAVE_LONG_DOUBLE"; then
12044 HAVE_LONG_DOUBLE=0
12045 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12046 if test $ac_cv_sizeof_long_double != 0; then
12047 HAVE_LONG_DOUBLE=1
12048
12049$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12050
12051 fi
12052 fi
12053fi
12054
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12057$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12058if test "${ac_cv_c_bigendian+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060else
12061 ac_cv_c_bigendian=unknown
12062 # See if we're dealing with a universal compiler.
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12064/* end confdefs.h. */
5213506e
RW
12065#ifndef __APPLE_CC__
12066 not a universal capable compiler
12067 #endif
12068 typedef int dummy;
12069
12070_ACEOF
12071if ac_fn_c_try_compile "$LINENO"; then :
12072
12073 # Check for potential -arch flags. It is not universal unless
12074 # there are at least two -arch flags with different values.
12075 ac_arch=
12076 ac_prev=
12077 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12078 if test -n "$ac_prev"; then
12079 case $ac_word in
12080 i?86 | x86_64 | ppc | ppc64)
12081 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12082 ac_arch=$ac_word
12083 else
12084 ac_cv_c_bigendian=universal
12085 break
12086 fi
12087 ;;
12088 esac
12089 ac_prev=
12090 elif test "x$ac_word" = "x-arch"; then
12091 ac_prev=arch
12092 fi
12093 done
12094fi
12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 if test $ac_cv_c_bigendian = unknown; then
12097 # See if sys/param.h defines the BYTE_ORDER macro.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h. */
12100#include <sys/types.h>
12101 #include <sys/param.h>
12102
a097ef55
KC
12103int
12104main ()
12105{
5213506e
RW
12106#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12107 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12108 && LITTLE_ENDIAN)
12109 bogus endian macros
12110 #endif
a097ef55
KC
12111
12112 ;
12113 return 0;
12114}
12115_ACEOF
5213506e
RW
12116if ac_fn_c_try_compile "$LINENO"; then :
12117 # It does; now see whether it defined to BIG_ENDIAN or not.
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12119/* end confdefs.h. */
5213506e
RW
12120#include <sys/types.h>
12121 #include <sys/param.h>
12122
a097ef55
KC
12123int
12124main ()
12125{
5213506e
RW
12126#if BYTE_ORDER != BIG_ENDIAN
12127 not big endian
12128 #endif
a097ef55
KC
12129
12130 ;
12131 return 0;
12132}
12133_ACEOF
5213506e
RW
12134if ac_fn_c_try_compile "$LINENO"; then :
12135 ac_cv_c_bigendian=yes
a097ef55 12136else
5213506e 12137 ac_cv_c_bigendian=no
a097ef55 12138fi
5213506e
RW
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140fi
12141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 fi
12143 if test $ac_cv_c_bigendian = unknown; then
12144 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12146/* end confdefs.h. */
5213506e
RW
12147#include <limits.h>
12148
a097ef55
KC
12149int
12150main ()
12151{
5213506e
RW
12152#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12153 bogus endian macros
12154 #endif
a097ef55
KC
12155
12156 ;
12157 return 0;
12158}
12159_ACEOF
5213506e
RW
12160if ac_fn_c_try_compile "$LINENO"; then :
12161 # It does; now see whether it defined to _BIG_ENDIAN or not.
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12163/* end confdefs.h. */
5213506e
RW
12164#include <limits.h>
12165
a097ef55
KC
12166int
12167main ()
12168{
5213506e
RW
12169#ifndef _BIG_ENDIAN
12170 not big endian
12171 #endif
a097ef55
KC
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
5213506e
RW
12177if ac_fn_c_try_compile "$LINENO"; then :
12178 ac_cv_c_bigendian=yes
a097ef55 12179else
5213506e 12180 ac_cv_c_bigendian=no
a097ef55 12181fi
5213506e 12182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12183fi
5213506e
RW
12184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 fi
12186 if test $ac_cv_c_bigendian = unknown; then
12187 # Compile a test program.
12188 if test "$cross_compiling" = yes; then :
12189 # Try to guess by grepping values from an object file.
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12191/* end confdefs.h. */
5213506e
RW
12192short int ascii_mm[] =
12193 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12194 short int ascii_ii[] =
12195 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12196 int use_ascii (int i) {
12197 return ascii_mm[i] + ascii_ii[i];
12198 }
12199 short int ebcdic_ii[] =
12200 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12201 short int ebcdic_mm[] =
12202 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12203 int use_ebcdic (int i) {
12204 return ebcdic_mm[i] + ebcdic_ii[i];
12205 }
12206 extern int foo;
12207
a097ef55
KC
12208int
12209main ()
12210{
5213506e 12211return use_ascii (foo) == use_ebcdic (foo);
a097ef55
KC
12212 ;
12213 return 0;
12214}
12215_ACEOF
5213506e
RW
12216if ac_fn_c_try_compile "$LINENO"; then :
12217 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12218 ac_cv_c_bigendian=yes
12219 fi
12220 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12221 if test "$ac_cv_c_bigendian" = unknown; then
12222 ac_cv_c_bigendian=no
12223 else
12224 # finding both strings is unlikely to happen, but who knows?
12225 ac_cv_c_bigendian=unknown
12226 fi
12227 fi
63e5e3e0 12228fi
5213506e 12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12230else
5213506e 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55
KC
12232/* end confdefs.h. */
12233$ac_includes_default
3ed8e5b6
AT
12234int
12235main ()
12236{
3ed8e5b6 12237
5213506e
RW
12238 /* Are we little or big endian? From Harbison&Steele. */
12239 union
12240 {
12241 long int l;
12242 char c[sizeof (long int)];
12243 } u;
12244 u.l = 1;
12245 return u.c[sizeof (long int) - 1] == 1;
3ed8e5b6 12246
a097ef55
KC
12247 ;
12248 return 0;
12249}
12250_ACEOF
5213506e 12251if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
12252 ac_cv_c_bigendian=no
12253else
5213506e 12254 ac_cv_c_bigendian=yes
63e5e3e0 12255fi
5213506e
RW
12256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12257 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 12258fi
3ed8e5b6 12259
5213506e
RW
12260 fi
12261fi
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12263$as_echo "$ac_cv_c_bigendian" >&6; }
12264 case $ac_cv_c_bigendian in #(
12265 yes)
12266 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12267;; #(
12268 no)
12269 ;; #(
12270 universal)
12271
12272$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12273
12274 ;; #(
12275 *)
12276 as_fn_error "unknown endianness
12277 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12278 esac
63e5e3e0
AG
12279
12280
5213506e
RW
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12282$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12283if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12284 $as_echo_n "(cached) " >&6
e6fbf387
RZ
12285else
12286
12287 libffi_cv_as_cfi_pseudo_op=unknown
5213506e 12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e6fbf387
RZ
12289/* end confdefs.h. */
12290asm (".cfi_startproc\n\t.cfi_endproc");
12291int
12292main ()
12293{
12294
12295 ;
12296 return 0;
12297}
12298_ACEOF
5213506e 12299if ac_fn_c_try_compile "$LINENO"; then :
e6fbf387
RZ
12300 libffi_cv_as_cfi_pseudo_op=yes
12301else
5213506e 12302 libffi_cv_as_cfi_pseudo_op=no
e6fbf387 12303fi
5213506e 12304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e6fbf387
RZ
12305
12306fi
5213506e
RW
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12308$as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
e6fbf387
RZ
12309if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12310
5213506e 12311$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
e6fbf387
RZ
12312
12313fi
12314
189ab118 12315if test x$TARGET = xSPARC; then
5213506e
RW
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12317$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12318if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
5d84cf0b 12320else
3ed8e5b6 12321
5d84cf0b
JJ
12322 save_CFLAGS="$CFLAGS"
12323 save_LDFLAGS="$LDFLAGS"
12324 CFLAGS="$CFLAGS -fpic"
12325 LDFLAGS="$LDFLAGS -shared"
5213506e 12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12327/* end confdefs.h. */
5d84cf0b 12328asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12329int
12330main ()
12331{
5d84cf0b 12332
3ed8e5b6
AT
12333 ;
12334 return 0;
12335}
12336_ACEOF
5213506e 12337if ac_fn_c_try_link "$LINENO"; then :
5d84cf0b
JJ
12338 libffi_cv_as_sparc_ua_pcrel=yes
12339else
5213506e 12340 libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12341fi
5213506e
RW
12342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12344 CFLAGS="$save_CFLAGS"
12345 LDFLAGS="$save_LDFLAGS"
12346fi
5213506e
RW
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12348$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
5d84cf0b 12349 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6 12350
5213506e 12351$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
bd19c9f4
JS
12352
12353 fi
12354
5213506e
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12356$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12357if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
bd19c9f4 12359else
3ed8e5b6 12360
bd19c9f4
JS
12361 libffi_cv_as_register_pseudo_op=unknown
12362 # Check if we have .register
5213506e 12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12364/* end confdefs.h. */
bd19c9f4 12365asm (".register %g2, #scratch");
3ed8e5b6
AT
12366int
12367main ()
12368{
bd19c9f4 12369
3ed8e5b6
AT
12370 ;
12371 return 0;
12372}
12373_ACEOF
5213506e 12374if ac_fn_c_try_compile "$LINENO"; then :
bd19c9f4
JS
12375 libffi_cv_as_register_pseudo_op=yes
12376else
5213506e 12377 libffi_cv_as_register_pseudo_op=no
bd19c9f4 12378fi
5213506e 12379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12380
3ed8e5b6 12381fi
5213506e
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12383$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
bd19c9f4 12384 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6 12385
5213506e 12386$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
5d84cf0b
JJ
12387
12388 fi
12389fi
12390
8353cd27 12391if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12393$as_echo_n "checking assembler supports pc related relocs... " >&6; }
12394if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
4d3d4078
RO
12396else
12397
12398 libffi_cv_as_x86_pcrel=yes
12399 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
d416abb4 12400 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
4d3d4078
RO
12401 libffi_cv_as_x86_pcrel=no
12402 fi
12403
12404fi
5213506e
RW
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12406$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
4d3d4078
RO
12407 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12408
5213506e 12409$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
4d3d4078
RO
12410
12411 fi
d416abb4
RO
12412
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12414$as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12415if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417else
12418
12419 libffi_cv_as_ascii_pseudo_op=unknown
12420 # Check if we have .ascii
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422/* end confdefs.h. */
12423asm (".ascii \"string\"");
12424int
12425main ()
12426{
12427
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432if ac_fn_c_try_compile "$LINENO"; then :
12433 libffi_cv_as_ascii_pseudo_op=yes
12434else
12435 libffi_cv_as_ascii_pseudo_op=no
12436fi
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12441$as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12442 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12443
12444$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12445
12446 fi
12447
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12449$as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12450if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452else
12453
12454 libffi_cv_as_string_pseudo_op=unknown
12455 # Check if we have .string
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457/* end confdefs.h. */
12458asm (".string \"string\"");
12459int
12460main ()
12461{
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467if ac_fn_c_try_compile "$LINENO"; then :
12468 libffi_cv_as_string_pseudo_op=yes
12469else
12470 libffi_cv_as_string_pseudo_op=no
12471fi
12472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473
12474fi
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12476$as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12477 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12478
12479$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12480
12481 fi
4d3d4078
RO
12482fi
12483
99fba2c4
AT
12484case "$target" in
12485 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
12486
12487$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12488
12489 ;;
12490esac
12491
f4b130bb
RO
12492if test x$TARGET = xX86_64; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12494$as_echo_n "checking assembler supports unwind section type... " >&6; }
12495if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497else
12498
12499 libffi_cv_as_x86_64_unwind_section_type=yes
12500 echo '.section .eh_frame,"a",@unwind' > conftest.s
12501 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12502 libffi_cv_as_x86_64_unwind_section_type=no
12503 fi
12504
12505fi
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12507$as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12508 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12509
12510$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12511
12512 fi
12513fi
12514
5213506e
RW
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12516$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12517if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
a733b15e 12519else
3ed8e5b6 12520
a733b15e
JJ
12521 libffi_cv_ro_eh_frame=no
12522 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12523 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12524 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12525 libffi_cv_ro_eh_frame=yes
12526 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12527 | grep -v '#write' > /dev/null; then
12528 libffi_cv_ro_eh_frame=yes
12529 fi
12530 fi
12531 rm -f conftest.*
a733b15e 12532
3ed8e5b6 12533fi
5213506e
RW
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12535$as_echo "$libffi_cv_ro_eh_frame" >&6; }
a733b15e 12536if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6 12537
5213506e 12538$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
1450eb7a 12539
3ed8e5b6 12540
5213506e 12541$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
1450eb7a
AT
12542
12543else
3ed8e5b6 12544
5213506e 12545$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
a733b15e
JJ
12546
12547fi
12548
5213506e
RW
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12550$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12551if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
8a42356f
JJ
12553else
12554
12555 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12556 libffi_cv_hidden_visibility_attribute=no
12557 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 12558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8a42356f
JJ
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
5213506e
RW
12561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562 test $ac_status = 0; }; }; then
8a42356f
JJ
12563 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12564 libffi_cv_hidden_visibility_attribute=yes
12565 fi
12566 fi
12567 rm -f conftest.*
12568
12569fi
5213506e
RW
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12571$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
8a42356f
JJ
12572if test $libffi_cv_hidden_visibility_attribute = yes; then
12573
5213506e 12574$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
8a42356f
JJ
12575
12576fi
12577
12578
12579
12580
63e5e3e0
AG
12581
12582
12583
12584
5213506e
RW
12585# Check whether --enable-debug was given.
12586if test "${enable_debug+set}" = set; then :
12587 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
63e5e3e0 12588
5213506e 12589$as_echo "#define FFI_DEBUG 1" >>confdefs.h
3ed8e5b6
AT
12590
12591 fi
5213506e 12592fi
3ed8e5b6 12593
3ed8e5b6 12594
5213506e
RW
12595# Check whether --enable-structs was given.
12596if test "${enable_structs+set}" = set; then :
12597 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12598
12599$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
3ed8e5b6
AT
12600
12601 fi
5213506e 12602fi
3ed8e5b6 12603
3ed8e5b6 12604
5213506e
RW
12605# Check whether --enable-raw-api was given.
12606if test "${enable_raw_api+set}" = set; then :
12607 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12608
12609$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
3ed8e5b6
AT
12610
12611 fi
5213506e 12612fi
3ed8e5b6 12613
3ed8e5b6 12614
5213506e
RW
12615# Check whether --enable-purify-safety was given.
12616if test "${enable_purify_safety+set}" = set; then :
12617 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12618
12619$as_echo "#define USING_PURIFY 1" >>confdefs.h
3ed8e5b6
AT
12620
12621 fi
5213506e
RW
12622fi
12623
3ed8e5b6
AT
12624
12625if test -n "$with_cross_host" &&
12626 test x"$with_cross_host" != x"no"; then
12627 toolexecdir='$(exec_prefix)/$(target_alias)'
12628 toolexeclibdir='$(toolexecdir)/lib'
12629else
12630 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12631 toolexeclibdir='$(libdir)'
12632fi
12633multi_os_directory=`$CC -print-multi-os-directory`
12634case $multi_os_directory in
12635 .) ;; # Avoid trailing /.
12636 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12637esac
12638
12639
12640
3ed8e5b6
AT
12641if test "${multilib}" = "yes"; then
12642 multilib_arg="--enable-multilib"
12643else
12644 multilib_arg=
12645fi
12646
5213506e 12647ac_config_commands="$ac_config_commands include"
3ed8e5b6 12648
5213506e 12649ac_config_commands="$ac_config_commands src"
3ed8e5b6
AT
12650
12651
5213506e 12652ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
3ed8e5b6
AT
12653
12654
5213506e 12655ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
3ed8e5b6
AT
12656
12657
12658cat >confcache <<\_ACEOF
12659# This file is a shell script that caches the results of configure
12660# tests run on this system so they can be shared between configure
12661# scripts and configure runs, see configure's option --config-cache.
12662# It is not useful on other systems. If it contains results you don't
12663# want to keep, you may remove or edit it.
12664#
12665# config.status only pays attention to the cache file if you give it
12666# the --recheck option to rerun configure.
12667#
12668# `ac_cv_env_foo' variables (set or unset) will be overridden when
12669# loading this file, other *unset* `ac_cv_foo' will be assigned the
12670# following values.
12671
12672_ACEOF
12673
12674# The following way of writing the cache mishandles newlines in values,
12675# but we know of no workaround that is simple, portable, and efficient.
5213506e 12676# So, we kill variables containing newlines.
3ed8e5b6
AT
12677# Ultrix sh set writes to stderr and can't be redirected directly,
12678# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
12679(
12680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12681 eval ac_val=\$$ac_var
12682 case $ac_val in #(
12683 *${as_nl}*)
12684 case $ac_var in #(
12685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12687 esac
12688 case $ac_var in #(
12689 _ | IFS | as_nl) ;; #(
12690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12691 *) { eval $ac_var=; unset $ac_var;} ;;
12692 esac ;;
12693 esac
12694 done
12695
3ed8e5b6 12696 (set) 2>&1 |
5213506e
RW
12697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12698 *${as_nl}ac_space=\ *)
12699 # `set' does not quote correctly, so add quotes: double-quote
12700 # substitution turns \\\\ into \\, and sed turns \\ into \.
3ed8e5b6
AT
12701 sed -n \
12702 "s/'/'\\\\''/g;
12703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 12704 ;; #(
3ed8e5b6
AT
12705 *)
12706 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 12707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 12708 ;;
5213506e
RW
12709 esac |
12710 sort
12711) |
3ed8e5b6 12712 sed '
5213506e 12713 /^ac_cv_env_/b end
3ed8e5b6 12714 t clear
5213506e 12715 :clear
3ed8e5b6
AT
12716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12717 t end
5213506e
RW
12718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12719 :end' >>confcache
12720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12721 if test -w "$cache_file"; then
12722 test "x$cache_file" != "x/dev/null" &&
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12724$as_echo "$as_me: updating cache $cache_file" >&6;}
3ed8e5b6
AT
12725 cat confcache >$cache_file
12726 else
5213506e
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12728$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3ed8e5b6
AT
12729 fi
12730fi
12731rm -f confcache
12732
12733test "x$prefix" = xNONE && prefix=$ac_default_prefix
12734# Let make expand exec_prefix.
12735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12736
3ed8e5b6
AT
12737DEFS=-DHAVE_CONFIG_H
12738
12739ac_libobjs=
12740ac_ltlibobjs=
12741for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12742 # 1. Remove the extension, and $U if already installed.
5213506e
RW
12743 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12744 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12745 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12746 # will be set to the directory where LIBOBJS objects are built.
12747 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12748 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3ed8e5b6
AT
12749done
12750LIBOBJS=$ac_libobjs
12751
12752LTLIBOBJS=$ac_ltlibobjs
12753
12754
5213506e
RW
12755 if test -n "$EXEEXT"; then
12756 am__EXEEXT_TRUE=
12757 am__EXEEXT_FALSE='#'
12758else
12759 am__EXEEXT_TRUE='#'
12760 am__EXEEXT_FALSE=
12761fi
12762
3ed8e5b6 12763if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
12764 as_fn_error "conditional \"AMDEP\" was never defined.
12765Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12766fi
12767if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
12768 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12769Usually this means the macro was only invoked conditionally." "$LINENO" 5
12770fi
12771if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12772 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12773Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12774fi
12775if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
12776 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12777Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12778fi
12779if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
12780 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12781Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12782fi
8d5c5e35 12783if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
5213506e
RW
12784 as_fn_error "conditional \"MIPS\" was never defined.
12785Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12786fi
12787if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
5213506e
RW
12788 as_fn_error "conditional \"SPARC\" was never defined.
12789Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12790fi
12791if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
5213506e
RW
12792 as_fn_error "conditional \"X86\" was never defined.
12793Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12794fi
b7b857bb 12795if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
5213506e
RW
12796 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12797Usually this means the macro was only invoked conditionally." "$LINENO" 5
b7b857bb 12798fi
3ed8e5b6 12799if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
5213506e
RW
12800 as_fn_error "conditional \"X86_WIN32\" was never defined.
12801Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12802fi
fe673cc9 12803if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
5213506e
RW
12804 as_fn_error "conditional \"X86_WIN64\" was never defined.
12805Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe673cc9 12806fi
a3bd50cc 12807if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
5213506e
RW
12808 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12809Usually this means the macro was only invoked conditionally." "$LINENO" 5
a3bd50cc 12810fi
3ed8e5b6 12811if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
5213506e
RW
12812 as_fn_error "conditional \"ALPHA\" was never defined.
12813Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12814fi
12815if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
5213506e
RW
12816 as_fn_error "conditional \"IA64\" was never defined.
12817Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12818fi
a472e9d4 12819if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
5213506e
RW
12820 as_fn_error "conditional \"M32R\" was never defined.
12821Usually this means the macro was only invoked conditionally." "$LINENO" 5
a472e9d4 12822fi
3ed8e5b6 12823if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
5213506e
RW
12824 as_fn_error "conditional \"M68K\" was never defined.
12825Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12826fi
12827if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
5213506e
RW
12828 as_fn_error "conditional \"POWERPC\" was never defined.
12829Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12830fi
12831if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
5213506e
RW
12832 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12833Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12834fi
12835if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
12836 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12837Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12838fi
97067642 12839if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
5213506e
RW
12840 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12841Usually this means the macro was only invoked conditionally." "$LINENO" 5
97067642 12842fi
3ed8e5b6 12843if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
5213506e
RW
12844 as_fn_error "conditional \"ARM\" was never defined.
12845Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12846fi
124f60ab
BS
12847if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12848 as_fn_error "conditional \"AVR32\" was never defined.
12849Usually this means the macro was only invoked conditionally." "$LINENO" 5
12850fi
614348bb 12851if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
5213506e
RW
12852 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12853Usually this means the macro was only invoked conditionally." "$LINENO" 5
614348bb 12854fi
88d8c771 12855if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
5213506e
RW
12856 as_fn_error "conditional \"FRV\" was never defined.
12857Usually this means the macro was only invoked conditionally." "$LINENO" 5
88d8c771 12858fi
3ed8e5b6 12859if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
5213506e
RW
12860 as_fn_error "conditional \"S390\" was never defined.
12861Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12862fi
12863if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
5213506e
RW
12864 as_fn_error "conditional \"X86_64\" was never defined.
12865Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12866fi
12867if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
5213506e
RW
12868 as_fn_error "conditional \"SH\" was never defined.
12869Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12870fi
12871if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
5213506e
RW
12872 as_fn_error "conditional \"SH64\" was never defined.
12873Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12874fi
e6c300ef 12875if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
5213506e
RW
12876 as_fn_error "conditional \"PA_LINUX\" was never defined.
12877Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12878fi
12879if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
5213506e
RW
12880 as_fn_error "conditional \"PA_HPUX\" was never defined.
12881Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12882fi
12883if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
5213506e
RW
12884 as_fn_error "conditional \"PA64_HPUX\" was never defined.
12885Usually this means the macro was only invoked conditionally." "$LINENO" 5
d65a810f 12886fi
3ed8e5b6 12887
5213506e 12888
3ed8e5b6 12889: ${CONFIG_STATUS=./config.status}
5213506e 12890ac_write_fail=0
3ed8e5b6
AT
12891ac_clean_files_save=$ac_clean_files
12892ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12894$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12895as_write_fail=0
12896cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3ed8e5b6
AT
12897#! $SHELL
12898# Generated by $as_me.
12899# Run this file to recreate the current configuration.
12900# Compiler output produced by configure, useful for debugging
12901# configure, is in config.log if it exists.
12902
12903debug=false
12904ac_cs_recheck=false
12905ac_cs_silent=false
3ed8e5b6 12906
5213506e
RW
12907SHELL=\${CONFIG_SHELL-$SHELL}
12908export SHELL
12909_ASEOF
12910cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12911## -------------------- ##
12912## M4sh Initialization. ##
12913## -------------------- ##
12914
12915# Be more Bourne compatible
12916DUALCASE=1; export DUALCASE # for MKS sh
12917if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
12918 emulate sh
12919 NULLCMD=:
5213506e 12920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
12921 # is contrary to our usage. Disable this feature.
12922 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
12923 setopt NO_GLOB_SUBST
12924else
12925 case `(set -o) 2>/dev/null` in #(
12926 *posix*) :
12927 set -o posix ;; #(
12928 *) :
12929 ;;
12930esac
3ed8e5b6 12931fi
3ed8e5b6 12932
5213506e
RW
12933
12934as_nl='
12935'
12936export as_nl
12937# Printing a long string crashes Solaris 7 /usr/bin/printf.
12938as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12939as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12941# Prefer a ksh shell builtin over an external printf program on Solaris,
12942# but without wasting forks for bash or zsh.
12943if test -z "$BASH_VERSION$ZSH_VERSION" \
12944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12945 as_echo='print -r --'
12946 as_echo_n='print -rn --'
12947elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12948 as_echo='printf %s\n'
12949 as_echo_n='printf %s'
12950else
12951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12953 as_echo_n='/usr/ucb/echo -n'
12954 else
12955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12956 as_echo_n_body='eval
12957 arg=$1;
12958 case $arg in #(
12959 *"$as_nl"*)
12960 expr "X$arg" : "X\\(.*\\)$as_nl";
12961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12962 esac;
12963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12964 '
12965 export as_echo_n_body
12966 as_echo_n='sh -c $as_echo_n_body as_echo'
12967 fi
12968 export as_echo_body
12969 as_echo='sh -c $as_echo_body as_echo'
12970fi
12971
12972# The user is always right.
12973if test "${PATH_SEPARATOR+set}" != set; then
12974 PATH_SEPARATOR=:
12975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12977 PATH_SEPARATOR=';'
12978 }
3ed8e5b6
AT
12979fi
12980
12981
5213506e
RW
12982# IFS
12983# We need space, tab and new line, in precisely that order. Quoting is
12984# there to prevent editors from complaining about space-tab.
12985# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12986# splitting by setting IFS to empty value.)
12987IFS=" "" $as_nl"
12988
12989# Find who we are. Look in the path if we contain no directory separator.
12990case $0 in #((
12991 *[\\/]* ) as_myself=$0 ;;
12992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12998 done
12999IFS=$as_save_IFS
13000
13001 ;;
13002esac
13003# We did not find ourselves, most probably we were run as `sh COMMAND'
13004# in which case we are not to be found in the path.
13005if test "x$as_myself" = x; then
13006 as_myself=$0
13007fi
13008if test ! -f "$as_myself"; then
13009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13010 exit 1
13011fi
13012
13013# Unset variables that we do not need and which cause bugs (e.g. in
13014# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13015# suppresses any "Segmentation fault" message there. '((' could
13016# trigger a bug in pdksh 5.2.14.
13017for as_var in BASH_ENV ENV MAIL MAILPATH
13018do eval test x\${$as_var+set} = xset \
13019 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13020done
3ed8e5b6
AT
13021PS1='$ '
13022PS2='> '
13023PS4='+ '
13024
13025# NLS nuisances.
5213506e
RW
13026LC_ALL=C
13027export LC_ALL
13028LANGUAGE=C
13029export LANGUAGE
13030
13031# CDPATH.
13032(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13033
13034
13035# as_fn_error ERROR [LINENO LOG_FD]
13036# ---------------------------------
13037# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13038# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13039# script with status $?, using 1 if that was 0.
13040as_fn_error ()
13041{
13042 as_status=$?; test $as_status -eq 0 && as_status=1
13043 if test "$3"; then
13044 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3ed8e5b6 13046 fi
5213506e
RW
13047 $as_echo "$as_me: error: $1" >&2
13048 as_fn_exit $as_status
13049} # as_fn_error
13050
13051
13052# as_fn_set_status STATUS
13053# -----------------------
13054# Set $? to STATUS, without forking.
13055as_fn_set_status ()
13056{
13057 return $1
13058} # as_fn_set_status
13059
13060# as_fn_exit STATUS
13061# -----------------
13062# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13063as_fn_exit ()
13064{
13065 set +e
13066 as_fn_set_status $1
13067 exit $1
13068} # as_fn_exit
13069
13070# as_fn_unset VAR
13071# ---------------
13072# Portably unset VAR.
13073as_fn_unset ()
13074{
13075 { eval $1=; unset $1;}
13076}
13077as_unset=as_fn_unset
13078# as_fn_append VAR VALUE
13079# ----------------------
13080# Append the text in VALUE to the end of the definition contained in VAR. Take
13081# advantage of any shell optimizations that allow amortized linear growth over
13082# repeated appends, instead of the typical quadratic growth present in naive
13083# implementations.
13084if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13085 eval 'as_fn_append ()
13086 {
13087 eval $1+=\$2
13088 }'
13089else
13090 as_fn_append ()
13091 {
13092 eval $1=\$$1\$2
13093 }
13094fi # as_fn_append
13095
13096# as_fn_arith ARG...
13097# ------------------
13098# Perform arithmetic evaluation on the ARGs, and store the result in the
13099# global $as_val. Take advantage of shells that can avoid forks. The arguments
13100# must be portable across $(()) and expr.
13101if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13102 eval 'as_fn_arith ()
13103 {
13104 as_val=$(( $* ))
13105 }'
13106else
13107 as_fn_arith ()
13108 {
13109 as_val=`expr "$@" || test $? -eq 1`
13110 }
13111fi # as_fn_arith
13112
3ed8e5b6 13113
5213506e
RW
13114if expr a : '\(a\)' >/dev/null 2>&1 &&
13115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
13116 as_expr=expr
13117else
13118 as_expr=false
13119fi
13120
5213506e 13121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
13122 as_basename=basename
13123else
13124 as_basename=false
13125fi
13126
5213506e
RW
13127if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13128 as_dirname=dirname
13129else
13130 as_dirname=false
13131fi
3ed8e5b6 13132
5213506e 13133as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
13134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13135 X"$0" : 'X\(//\)$' \| \
5213506e
RW
13136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13137$as_echo X/"$0" |
13138 sed '/^.*\/\([^/][^/]*\)\/*$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\/\(\/\/\)$/{
13143 s//\1/
13144 q
13145 }
13146 /^X\/\(\/\).*/{
13147 s//\1/
13148 q
13149 }
13150 s/.*/./; q'`
3ed8e5b6 13151
3ed8e5b6
AT
13152# Avoid depending upon Character Ranges.
13153as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13155as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13156as_cr_digits='0123456789'
13157as_cr_alnum=$as_cr_Letters$as_cr_digits
13158
5213506e
RW
13159ECHO_C= ECHO_N= ECHO_T=
13160case `echo -n x` in #(((((
13161-n*)
13162 case `echo 'xy\c'` in
13163 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13164 xy) ECHO_C='\c';;
13165 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13166 ECHO_T=' ';;
13167 esac;;
13168*)
13169 ECHO_N='-n';;
3ed8e5b6
AT
13170esac
13171
5213506e
RW
13172rm -f conf$$ conf$$.exe conf$$.file
13173if test -d conf$$.dir; then
13174 rm -f conf$$.dir/conf$$.file
3ed8e5b6 13175else
5213506e
RW
13176 rm -f conf$$.dir
13177 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 13178fi
5213506e
RW
13179if (echo >conf$$.file) 2>/dev/null; then
13180 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 13181 as_ln_s='ln -s'
5213506e
RW
13182 # ... but there are two gotchas:
13183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13185 # In both cases, we have to default to `cp -p'.
13186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13187 as_ln_s='cp -p'
13188 elif ln conf$$.file conf$$ 2>/dev/null; then
13189 as_ln_s=ln
13190 else
13191 as_ln_s='cp -p'
7d45b968 13192 fi
3ed8e5b6
AT
13193else
13194 as_ln_s='cp -p'
13195fi
5213506e
RW
13196rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13197rmdir conf$$.dir 2>/dev/null
13198
13199
13200# as_fn_mkdir_p
13201# -------------
13202# Create "$as_dir" as a directory, including parents if necessary.
13203as_fn_mkdir_p ()
13204{
13205
13206 case $as_dir in #(
13207 -*) as_dir=./$as_dir;;
13208 esac
13209 test -d "$as_dir" || eval $as_mkdir_p || {
13210 as_dirs=
13211 while :; do
13212 case $as_dir in #(
13213 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13214 *) as_qdir=$as_dir;;
13215 esac
13216 as_dirs="'$as_qdir' $as_dirs"
13217 as_dir=`$as_dirname -- "$as_dir" ||
13218$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13219 X"$as_dir" : 'X\(//\)[^/]' \| \
13220 X"$as_dir" : 'X\(//\)$' \| \
13221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13222$as_echo X"$as_dir" |
13223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13224 s//\1/
13225 q
13226 }
13227 /^X\(\/\/\)[^/].*/{
13228 s//\1/
13229 q
13230 }
13231 /^X\(\/\/\)$/{
13232 s//\1/
13233 q
13234 }
13235 /^X\(\/\).*/{
13236 s//\1/
13237 q
13238 }
13239 s/.*/./; q'`
13240 test -d "$as_dir" && break
13241 done
13242 test -z "$as_dirs" || eval "mkdir $as_dirs"
13243 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13244
3ed8e5b6 13245
5213506e 13246} # as_fn_mkdir_p
3ed8e5b6 13247if mkdir -p . 2>/dev/null; then
5213506e 13248 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
13249else
13250 test -d ./-p && rmdir ./-p
13251 as_mkdir_p=false
63e5e3e0
AG
13252fi
13253
5213506e
RW
13254if test -x / >/dev/null 2>&1; then
13255 as_test_x='test -x'
13256else
13257 if ls -dL / >/dev/null 2>&1; then
13258 as_ls_L_option=L
13259 else
13260 as_ls_L_option=
13261 fi
13262 as_test_x='
13263 eval sh -c '\''
13264 if test -d "$1"; then
13265 test -d "$1/.";
13266 else
13267 case $1 in #(
13268 -*)set "./$1";;
13269 esac;
13270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13271 ???[sx]*):;;*)false;;esac;fi
13272 '\'' sh
13273 '
13274fi
13275as_executable_p=$as_test_x
3ed8e5b6
AT
13276
13277# Sed expression to map a string onto a valid CPP name.
13278as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13279
13280# Sed expression to map a string onto a valid variable name.
13281as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13282
13283
3ed8e5b6 13284exec 6>&1
5213506e
RW
13285## ----------------------------------- ##
13286## Main body of $CONFIG_STATUS script. ##
13287## ----------------------------------- ##
13288_ASEOF
13289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13290
13291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292# Save the log message, to keep $0 and so on meaningful, and to
3ed8e5b6 13293# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
13294# values after options handling.
13295ac_log="
a761df3d 13296This file was extended by libffi $as_me 3.0.9, which was
5213506e 13297generated by GNU Autoconf 2.64. Invocation command line was
63e5e3e0 13298
3ed8e5b6
AT
13299 CONFIG_FILES = $CONFIG_FILES
13300 CONFIG_HEADERS = $CONFIG_HEADERS
13301 CONFIG_LINKS = $CONFIG_LINKS
13302 CONFIG_COMMANDS = $CONFIG_COMMANDS
13303 $ $0 $@
63e5e3e0 13304
5213506e
RW
13305on `(hostname || uname -n) 2>/dev/null | sed 1q`
13306"
13307
3ed8e5b6 13308_ACEOF
63e5e3e0 13309
5213506e
RW
13310case $ac_config_files in *"
13311"*) set x $ac_config_files; shift; ac_config_files=$*;;
13312esac
63e5e3e0 13313
5213506e
RW
13314case $ac_config_headers in *"
13315"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13316esac
63e5e3e0 13317
63e5e3e0 13318
5213506e
RW
13319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320# Files that config.status was made for.
13321config_files="$ac_config_files"
13322config_headers="$ac_config_headers"
13323config_links="$ac_config_links"
13324config_commands="$ac_config_commands"
63e5e3e0 13325
5213506e 13326_ACEOF
63e5e3e0 13327
5213506e 13328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13329ac_cs_usage="\
5213506e
RW
13330\`$as_me' instantiates files and other configuration actions
13331from templates according to the current configuration. Unless the files
13332and actions are specified as TAGs, all are instantiated by default.
db2cd5e6 13333
5213506e 13334Usage: $0 [OPTION]... [TAG]...
db2cd5e6 13335
3ed8e5b6 13336 -h, --help print this help, then exit
5213506e
RW
13337 -V, --version print version number and configuration settings, then exit
13338 -q, --quiet, --silent
13339 do not print progress messages
3ed8e5b6
AT
13340 -d, --debug don't remove temporary files
13341 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
13342 --file=FILE[:TEMPLATE]
13343 instantiate the configuration file FILE
13344 --header=FILE[:TEMPLATE]
13345 instantiate the configuration header FILE
0721f64e 13346
3ed8e5b6
AT
13347Configuration files:
13348$config_files
ea81d2a3 13349
3ed8e5b6
AT
13350Configuration headers:
13351$config_headers
ea81d2a3 13352
3ed8e5b6
AT
13353Configuration links:
13354$config_links
ea81d2a3 13355
3ed8e5b6
AT
13356Configuration commands:
13357$config_commands
ea81d2a3 13358
5213506e 13359Report bugs to <http://gcc.gnu.org/bugs.html>."
3c18f2d1 13360
5213506e
RW
13361_ACEOF
13362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13363ac_cs_version="\\
a761df3d 13364libffi config.status 3.0.9
5213506e
RW
13365configured by $0, generated by GNU Autoconf 2.64,
13366 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3ed8e5b6 13367
5213506e 13368Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
13369This config.status script is free software; the Free Software Foundation
13370gives unlimited permission to copy, distribute and modify it."
5213506e
RW
13371
13372ac_pwd='$ac_pwd'
13373srcdir='$srcdir'
13374INSTALL='$INSTALL'
13375MKDIR_P='$MKDIR_P'
13376AWK='$AWK'
13377test -n "\$AWK" || AWK=awk
3ed8e5b6
AT
13378_ACEOF
13379
5213506e
RW
13380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13381# The default lists apply if the user does not specify any file.
3ed8e5b6
AT
13382ac_need_defaults=:
13383while test $# != 0
13384do
13385 case $1 in
13386 --*=*)
5213506e
RW
13387 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13388 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3ed8e5b6 13389 ac_shift=:
63e5e3e0 13390 ;;
5213506e 13391 *)
3ed8e5b6
AT
13392 ac_option=$1
13393 ac_optarg=$2
13394 ac_shift=shift
63e5e3e0 13395 ;;
3ed8e5b6
AT
13396 esac
13397
13398 case $ac_option in
13399 # Handling of the options.
3ed8e5b6
AT
13400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13401 ac_cs_recheck=: ;;
5213506e
RW
13402 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13403 $as_echo "$ac_cs_version"; exit ;;
13404 --debug | --debu | --deb | --de | --d | -d )
3ed8e5b6
AT
13405 debug=: ;;
13406 --file | --fil | --fi | --f )
13407 $ac_shift
5213506e
RW
13408 case $ac_optarg in
13409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13410 esac
13411 as_fn_append CONFIG_FILES " '$ac_optarg'"
3ed8e5b6
AT
13412 ac_need_defaults=false;;
13413 --header | --heade | --head | --hea )
13414 $ac_shift
5213506e
RW
13415 case $ac_optarg in
13416 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13417 esac
13418 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3ed8e5b6 13419 ac_need_defaults=false;;
5213506e
RW
13420 --he | --h)
13421 # Conflict between --help and --header
13422 as_fn_error "ambiguous option: \`$1'
13423Try \`$0 --help' for more information.";;
13424 --help | --hel | -h )
13425 $as_echo "$ac_cs_usage"; exit ;;
3ed8e5b6
AT
13426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13428 ac_cs_silent=: ;;
63e5e3e0 13429
3ed8e5b6 13430 # This is an error.
5213506e
RW
13431 -*) as_fn_error "unrecognized option: \`$1'
13432Try \`$0 --help' for more information." ;;
63e5e3e0 13433
5213506e
RW
13434 *) as_fn_append ac_config_targets " $1"
13435 ac_need_defaults=false ;;
63e5e3e0 13436
3ed8e5b6
AT
13437 esac
13438 shift
13439done
63e5e3e0 13440
3ed8e5b6 13441ac_configure_extra_args=
63e5e3e0 13442
3ed8e5b6
AT
13443if $ac_cs_silent; then
13444 exec 6>/dev/null
13445 ac_configure_extra_args="$ac_configure_extra_args --silent"
13446fi
63e5e3e0 13447
3ed8e5b6 13448_ACEOF
5213506e 13449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13450if \$ac_cs_recheck; then
5213506e
RW
13451 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13452 shift
13453 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13454 CONFIG_SHELL='$SHELL'
13455 export CONFIG_SHELL
13456 exec "\$@"
3ed8e5b6 13457fi
63e5e3e0 13458
3ed8e5b6 13459_ACEOF
5213506e
RW
13460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13461exec 5>>config.log
13462{
13463 echo
13464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13465## Running $as_me. ##
13466_ASBOX
13467 $as_echo "$ac_log"
13468} >&5
13469
13470_ACEOF
13471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63e5e3e0 13472#
5213506e 13473# INIT-COMMANDS
63e5e3e0 13474#
63e5e3e0 13475
3ed8e5b6
AT
13476srcdir="$srcdir"
13477host="$host"
13478target="$target"
13479with_multisubdir="$with_multisubdir"
13480with_multisrctop="$with_multisrctop"
13481with_target_subdir="$with_target_subdir"
13482ac_configure_args="${multilib_arg} ${ac_configure_args}"
13483multi_basedir="$multi_basedir"
13484CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13485CC="$CC"
fe673cc9
AH
13486CXX="$CXX"
13487GFORTRAN="$GFORTRAN"
13488GCJ="$GCJ"
3ed8e5b6 13489AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13490
13491
13492# The HP-UX ksh and POSIX shell print the target directory to stdout
13493# if CDPATH is set.
13494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13495
13496sed_quote_subst='$sed_quote_subst'
13497double_quote_subst='$double_quote_subst'
13498delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
13499macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13500macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13501enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13502enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13503pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13504enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13505SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13506ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13507host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13508host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13509host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13510build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13511build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13512build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13513SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13514Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13515GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13516EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13517FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13518LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13519NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13520LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13521max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13522ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13523exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13524lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13525lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13526lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13527reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13528reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13529OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13530deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13531file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13532AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13533AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13534STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13535RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13536old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13537old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13538old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13539lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13540CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13541CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13542compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13543GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13544lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13545lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13546lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13547lt_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"`'
13548objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13549MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13550lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13551lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13552lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13553lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13554lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13555need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13556DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13557NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13558LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13559OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13560OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13561libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13562shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13563extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13564archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13565enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13566export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13567whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13568compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13569old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13570old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13571archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13572archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13573module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13574module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13575with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13576allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13577no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13578hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13579hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13580hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13581hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13582hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13583hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13584hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13585hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13586inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13587link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13588fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13589always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13590export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13591exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13592include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13593prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13594file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13595variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13596need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13597need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13598version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13599runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13600shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13601shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13602libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13603library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13604soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13605install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13606postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13607postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13608finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13609finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13610hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13611sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13612sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13613hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13614enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13615enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13616enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13617old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13618striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
13619
13620LTCC='$LTCC'
13621LTCFLAGS='$LTCFLAGS'
13622compiler='$compiler_DEFAULT'
13623
43e02a8a
RW
13624# A function that is used when there is no print builtin or printf.
13625func_fallback_echo ()
13626{
13627 eval 'cat <<_LTECHO_EOF
13628\$1
13629_LTECHO_EOF'
13630}
13631
1cf3d07d 13632# Quote evaled strings.
43e02a8a
RW
13633for var in SHELL \
13634ECHO \
13635SED \
1cf3d07d
SE
13636GREP \
13637EGREP \
13638FGREP \
13639LD \
13640NM \
13641LN_S \
13642lt_SP2NL \
13643lt_NL2SP \
13644reload_flag \
80c6c2cb 13645OBJDUMP \
1cf3d07d
SE
13646deplibs_check_method \
13647file_magic_cmd \
13648AR \
13649AR_FLAGS \
13650STRIP \
13651RANLIB \
13652CC \
13653CFLAGS \
13654compiler \
13655lt_cv_sys_global_symbol_pipe \
13656lt_cv_sys_global_symbol_to_cdecl \
13657lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 13658lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
13659lt_prog_compiler_no_builtin_flag \
13660lt_prog_compiler_wl \
13661lt_prog_compiler_pic \
13662lt_prog_compiler_static \
13663lt_cv_prog_compiler_c_o \
13664need_locks \
80c6c2cb
PG
13665DSYMUTIL \
13666NMEDIT \
13667LIPO \
13668OTOOL \
13669OTOOL64 \
1cf3d07d
SE
13670shrext_cmds \
13671export_dynamic_flag_spec \
13672whole_archive_flag_spec \
13673compiler_needs_object \
13674with_gnu_ld \
13675allow_undefined_flag \
13676no_undefined_flag \
13677hardcode_libdir_flag_spec \
13678hardcode_libdir_flag_spec_ld \
13679hardcode_libdir_separator \
13680fix_srcfile_path \
13681exclude_expsyms \
13682include_expsyms \
13683file_list_spec \
13684variables_saved_for_relink \
13685libname_spec \
13686library_names_spec \
13687soname_spec \
43e02a8a 13688install_override_mode \
1cf3d07d
SE
13689finish_eval \
13690old_striplib \
13691striplib; do
43e02a8a 13692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13693 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13695 ;;
13696 *)
13697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13698 ;;
13699 esac
13700done
13701
13702# Double-quote double-evaled strings.
13703for var in reload_cmds \
13704old_postinstall_cmds \
13705old_postuninstall_cmds \
13706old_archive_cmds \
13707extract_expsyms_cmds \
13708old_archive_from_new_cmds \
13709old_archive_from_expsyms_cmds \
13710archive_cmds \
13711archive_expsym_cmds \
13712module_cmds \
13713module_expsym_cmds \
13714export_symbols_cmds \
13715prelink_cmds \
13716postinstall_cmds \
13717postuninstall_cmds \
13718finish_cmds \
13719sys_lib_search_path_spec \
13720sys_lib_dlsearch_path_spec; do
43e02a8a 13721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 13722 *[\\\\\\\`\\"\\\$]*)
43e02a8a 13723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
13724 ;;
13725 *)
13726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13727 ;;
13728 esac
13729done
13730
1cf3d07d
SE
13731ac_aux_dir='$ac_aux_dir'
13732xsi_shell='$xsi_shell'
13733lt_shell_append='$lt_shell_append'
13734
13735# See if we are running on zsh, and set the options which allow our
13736# commands through without removal of \ escapes INIT.
13737if test -n "\${ZSH_VERSION+set}" ; then
13738 setopt NO_GLOB_SUBST
13739fi
13740
13741
13742 PACKAGE='$PACKAGE'
13743 VERSION='$VERSION'
13744 TIMESTAMP='$TIMESTAMP'
13745 RM='$RM'
13746 ofile='$ofile'
13747
13748
13749
3ed8e5b6
AT
13750TARGETDIR="$TARGETDIR"
13751
13752_ACEOF
13753
5213506e 13754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13755
5213506e 13756# Handling of arguments.
3ed8e5b6 13757for ac_config_target in $ac_config_targets
63e5e3e0 13758do
5213506e
RW
13759 case $ac_config_target in
13760 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13761 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13764 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13765 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13766 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13767 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13768 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13770 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13771 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13772
13773 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
63e5e3e0
AG
13774 esac
13775done
13776
5213506e 13777
3ed8e5b6
AT
13778# If the user did not use the arguments to specify the items to instantiate,
13779# then the envvar interface is used. Set only those that are not.
13780# We use the long form for the default assignment because of an extremely
13781# bizarre bug on SunOS 4.1.3.
13782if $ac_need_defaults; then
13783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13785 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13787fi
13788
13789# Have a temporary directory for convenience. Make it in the build tree
5213506e 13790# simply because there is no reason against having it here, and in addition,
3ed8e5b6 13791# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
13792# Hook for its removal unless debugging.
13793# Note that there is a small window in which the directory will not be cleaned:
13794# after its creation but before its name has been assigned to `$tmp'.
3ed8e5b6
AT
13795$debug ||
13796{
5213506e
RW
13797 tmp=
13798 trap 'exit_status=$?
13799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13800' 0
13801 trap 'as_fn_exit 1' 1 2 13 15
3ed8e5b6 13802}
3ed8e5b6 13803# Create a (secure) tmp directory for tmp files.
63e5e3e0 13804
3ed8e5b6 13805{
5213506e 13806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3ed8e5b6
AT
13807 test -n "$tmp" && test -d "$tmp"
13808} ||
13809{
5213506e
RW
13810 tmp=./conf$$-$RANDOM
13811 (umask 077 && mkdir "$tmp")
13812} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13813
13814# Set up the scripts for CONFIG_FILES section.
13815# No need to generate them if there are no CONFIG_FILES.
13816# This happens for instance with `./config.status config.h'.
13817if test -n "$CONFIG_FILES"; then
13818
13819
13820ac_cr=`echo X | tr X '\015'`
13821# On cygwin, bash can eat \r inside `` if the user requested igncr.
13822# But we know of no other shell where ac_cr would be empty at this
13823# point, so we can use a bashism as a fallback.
13824if test "x$ac_cr" = x; then
13825 eval ac_cr=\$\'\\r\'
13826fi
13827ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13828if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13829 ac_cs_awk_cr='\r'
13830else
13831 ac_cs_awk_cr=$ac_cr
13832fi
13833
13834echo 'BEGIN {' >"$tmp/subs1.awk" &&
13835_ACEOF
13836
13837
3ed8e5b6 13838{
5213506e
RW
13839 echo "cat >conf$$subs.awk <<_ACEOF" &&
13840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13841 echo "_ACEOF"
13842} >conf$$subs.sh ||
13843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13844ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13845ac_delim='%!_!# '
13846for ac_last_try in false false false false false :; do
13847 . ./conf$$subs.sh ||
13848 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13849
13850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13851 if test $ac_delim_n = $ac_delim_num; then
13852 break
13853 elif $ac_last_try; then
13854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13855 else
13856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13857 fi
13858done
13859rm -f conf$$subs.sh
13860
13861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13862cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13863_ACEOF
13864sed -n '
13865h
13866s/^/S["/; s/!.*/"]=/
13867p
13868g
13869s/^[^!]*!//
13870:repl
13871t repl
13872s/'"$ac_delim"'$//
13873t delim
13874:nl
13875h
13876s/\(.\{148\}\).*/\1/
13877t more1
13878s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13879p
13880n
13881b repl
13882:more1
13883s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13884p
13885g
13886s/.\{148\}//
13887t nl
13888:delim
13889h
13890s/\(.\{148\}\).*/\1/
13891t more2
13892s/["\\]/\\&/g; s/^/"/; s/$/"/
13893p
13894b
13895:more2
13896s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13897p
13898g
13899s/.\{148\}//
13900t delim
13901' <conf$$subs.awk | sed '
13902/^[^""]/{
13903 N
13904 s/\n//
3ed8e5b6 13905}
5213506e
RW
13906' >>$CONFIG_STATUS || ac_write_fail=1
13907rm -f conf$$subs.awk
13908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13909_ACAWK
13910cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13911 for (key in S) S_is_set[key] = 1
13912 FS = "\a"
3ed8e5b6 13913
5213506e
RW
13914}
13915{
13916 line = $ 0
13917 nfields = split(line, field, "@")
13918 substed = 0
13919 len = length(field[1])
13920 for (i = 2; i < nfields; i++) {
13921 key = field[i]
13922 keylen = length(key)
13923 if (S_is_set[key]) {
13924 value = S[key]
13925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13926 len += length(value) + length(field[++i])
13927 substed = 1
13928 } else
13929 len += 1 + keylen
13930 }
3ed8e5b6 13931
5213506e
RW
13932 print line
13933}
3ed8e5b6 13934
5213506e
RW
13935_ACAWK
13936_ACEOF
13937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13938if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13940else
13941 cat
13942fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13943 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13944_ACEOF
13945
13946# VPATH may cause trouble with some makes, so we remove $(srcdir),
13947# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13948# trailing colons and then remove the whole line if VPATH becomes empty
13949# (actually we leave an empty line to preserve line numbers).
13950if test "x$srcdir" = x.; then
13951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13952s/:*\$(srcdir):*/:/
13953s/:*\${srcdir}:*/:/
13954s/:*@srcdir@:*/:/
13955s/^\([^=]*=[ ]*\):*/\1/
13956s/:*$//
13957s/^[^=]*=[ ]*$//
13958}'
13959fi
63e5e3e0 13960
5213506e
RW
13961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13962fi # test -n "$CONFIG_FILES"
63e5e3e0 13963
5213506e
RW
13964# Set up the scripts for CONFIG_HEADERS section.
13965# No need to generate them if there are no CONFIG_HEADERS.
13966# This happens for instance with `./config.status Makefile'.
13967if test -n "$CONFIG_HEADERS"; then
13968cat >"$tmp/defines.awk" <<\_ACAWK ||
13969BEGIN {
3ed8e5b6
AT
13970_ACEOF
13971
5213506e
RW
13972# Transform confdefs.h into an awk script `defines.awk', embedded as
13973# here-document in config.status, that substitutes the proper values into
13974# config.h.in to produce config.h.
13975
13976# Create a delimiter string that does not exist in confdefs.h, to ease
13977# handling of long lines.
13978ac_delim='%!_!# '
13979for ac_last_try in false false :; do
13980 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13981 if test -z "$ac_t"; then
13982 break
13983 elif $ac_last_try; then
13984 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13985 else
13986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63e5e3e0 13987 fi
5213506e 13988done
63e5e3e0 13989
5213506e
RW
13990# For the awk script, D is an array of macro values keyed by name,
13991# likewise P contains macro parameters if any. Preserve backslash
13992# newline sequences.
13993
13994ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13995sed -n '
13996s/.\{148\}/&'"$ac_delim"'/g
13997t rset
13998:rset
13999s/^[ ]*#[ ]*define[ ][ ]*/ /
14000t def
14001d
14002:def
14003s/\\$//
14004t bsnl
14005s/["\\]/\\&/g
14006s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14007D["\1"]=" \3"/p
14008s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14009d
14010:bsnl
14011s/["\\]/\\&/g
14012s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14013D["\1"]=" \3\\\\\\n"\\/p
14014t cont
14015s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14016t cont
14017d
14018:cont
14019n
14020s/.\{148\}/&'"$ac_delim"'/g
14021t clear
14022:clear
14023s/\\$//
14024t bsnlc
14025s/["\\]/\\&/g; s/^/"/; s/$/"/p
14026d
14027:bsnlc
14028s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14029b cont
14030' <confdefs.h | sed '
14031s/'"$ac_delim"'/"\\\
14032"/g' >>$CONFIG_STATUS || ac_write_fail=1
14033
14034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035 for (key in D) D_is_set[key] = 1
14036 FS = "\a"
14037}
14038/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14039 line = \$ 0
14040 split(line, arg, " ")
14041 if (arg[1] == "#") {
14042 defundef = arg[2]
14043 mac1 = arg[3]
14044 } else {
14045 defundef = substr(arg[1], 2)
14046 mac1 = arg[2]
14047 }
14048 split(mac1, mac2, "(") #)
14049 macro = mac2[1]
14050 prefix = substr(line, 1, index(line, defundef) - 1)
14051 if (D_is_set[macro]) {
14052 # Preserve the white space surrounding the "#".
14053 print prefix "define", macro P[macro] D[macro]
14054 next
14055 } else {
14056 # Replace #undef with comments. This is necessary, for example,
14057 # in the case of _POSIX_SOURCE, which is predefined and required
14058 # on some systems where configure will not decide to define it.
14059 if (defundef == "undef") {
14060 print "/*", prefix defundef, macro, "*/"
14061 next
14062 }
14063 }
14064}
14065{ print }
14066_ACAWK
3ed8e5b6 14067_ACEOF
5213506e
RW
14068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14069 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14070fi # test -n "$CONFIG_HEADERS"
14071
14072
14073eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14074shift
14075for ac_tag
14076do
14077 case $ac_tag in
14078 :[FHLC]) ac_mode=$ac_tag; continue;;
14079 esac
14080 case $ac_mode$ac_tag in
14081 :[FHL]*:*);;
14082 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14083 :[FH]-) ac_tag=-:-;;
14084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14085 esac
14086 ac_save_IFS=$IFS
14087 IFS=:
14088 set x $ac_tag
14089 IFS=$ac_save_IFS
14090 shift
14091 ac_file=$1
14092 shift
14093
14094 case $ac_mode in
14095 :L) ac_source=$1;;
14096 :[FH])
14097 ac_file_inputs=
14098 for ac_f
14099 do
14100 case $ac_f in
14101 -) ac_f="$tmp/stdin";;
14102 *) # Look for the file first in the build tree, then in the source tree
14103 # (if the path is not absolute). The absolute path cannot be DOS-style,
14104 # because $ac_f cannot contain `:'.
14105 test -f "$ac_f" ||
14106 case $ac_f in
14107 [\\/$]*) false;;
14108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14109 esac ||
14110 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14111 esac
14112 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14113 as_fn_append ac_file_inputs " '$ac_f'"
14114 done
14115
14116 # Let's still pretend it is `configure' which instantiates (i.e., don't
14117 # use $as_me), people would be surprised to read:
14118 # /* config.h. Generated by config.status. */
14119 configure_input='Generated from '`
14120 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14121 `' by configure.'
14122 if test x"$ac_file" != x-; then
14123 configure_input="$ac_file. $configure_input"
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14125$as_echo "$as_me: creating $ac_file" >&6;}
14126 fi
14127 # Neutralize special characters interpreted by sed in replacement strings.
14128 case $configure_input in #(
14129 *\&* | *\|* | *\\* )
14130 ac_sed_conf_input=`$as_echo "$configure_input" |
14131 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14132 *) ac_sed_conf_input=$configure_input;;
14133 esac
14134
14135 case $ac_tag in
14136 *:-:* | *:-) cat >"$tmp/stdin" \
14137 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14138 esac
14139 ;;
63e5e3e0
AG
14140 esac
14141
5213506e 14142 ac_dir=`$as_dirname -- "$ac_file" ||
3ed8e5b6
AT
14143$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14144 X"$ac_file" : 'X\(//\)[^/]' \| \
14145 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
14146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14147$as_echo X"$ac_file" |
14148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14149 s//\1/
14150 q
14151 }
14152 /^X\(\/\/\)[^/].*/{
14153 s//\1/
14154 q
14155 }
14156 /^X\(\/\/\)$/{
14157 s//\1/
14158 q
14159 }
14160 /^X\(\/\).*/{
14161 s//\1/
14162 q
14163 }
14164 s/.*/./; q'`
14165 as_dir="$ac_dir"; as_fn_mkdir_p
3ed8e5b6
AT
14166 ac_builddir=.
14167
5213506e
RW
14168case "$ac_dir" in
14169.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14170*)
14171 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14172 # A ".." for each directory in $ac_dir_suffix.
14173 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14174 case $ac_top_builddir_sub in
14175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14177 esac ;;
14178esac
14179ac_abs_top_builddir=$ac_pwd
14180ac_abs_builddir=$ac_pwd$ac_dir_suffix
14181# for backward compatibility:
14182ac_top_builddir=$ac_top_build_prefix
63e5e3e0 14183
3ed8e5b6 14184case $srcdir in
5213506e 14185 .) # We are building in place.
3ed8e5b6 14186 ac_srcdir=.
5213506e
RW
14187 ac_top_srcdir=$ac_top_builddir_sub
14188 ac_abs_top_srcdir=$ac_pwd ;;
14189 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 14190 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
14191 ac_top_srcdir=$srcdir
14192 ac_abs_top_srcdir=$srcdir ;;
14193 *) # Relative name.
14194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14195 ac_top_srcdir=$ac_top_build_prefix$srcdir
14196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 14197esac
5213506e 14198ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3ed8e5b6 14199
63e5e3e0 14200
5213506e
RW
14201 case $ac_mode in
14202 :F)
14203 #
14204 # CONFIG_FILE
14205 #
63e5e3e0 14206
3ed8e5b6
AT
14207 case $INSTALL in
14208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
14209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14210 esac
14211 ac_MKDIR_P=$MKDIR_P
14212 case $MKDIR_P in
14213 [\\/$]* | ?:[\\/]* ) ;;
14214 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
63e5e3e0 14215 esac
5213506e 14216_ACEOF
63e5e3e0 14217
5213506e
RW
14218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14219# If the template does not know about datarootdir, expand it.
14220# FIXME: This hack should be removed a few years after 2.60.
14221ac_datarootdir_hack=; ac_datarootdir_seen=
14222ac_sed_dataroot='
14223/datarootdir/ {
14224 p
14225 q
14226}
14227/@datadir@/p
14228/@docdir@/p
14229/@infodir@/p
14230/@localedir@/p
14231/@mandir@/p'
14232case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14233*datarootdir*) ac_datarootdir_seen=yes;;
14234*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14236$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14237_ACEOF
14238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14239 ac_datarootdir_hack='
14240 s&@datadir@&$datadir&g
14241 s&@docdir@&$docdir&g
14242 s&@infodir@&$infodir&g
14243 s&@localedir@&$localedir&g
14244 s&@mandir@&$mandir&g
14245 s&\\\${datarootdir}&$datarootdir&g' ;;
14246esac
3ed8e5b6 14247_ACEOF
5213506e
RW
14248
14249# Neutralize VPATH when `$srcdir' = `.'.
14250# Shell code in configure.ac might set extrasub.
14251# FIXME: do we really want to maintain this feature?
14252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253ac_sed_extra="$ac_vpsub
3ed8e5b6
AT
14254$extrasub
14255_ACEOF
5213506e 14256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6
AT
14257:t
14258/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14259s|@configure_input@|$ac_sed_conf_input|;t t
14260s&@top_builddir@&$ac_top_builddir_sub&;t t
14261s&@top_build_prefix@&$ac_top_build_prefix&;t t
14262s&@srcdir@&$ac_srcdir&;t t
14263s&@abs_srcdir@&$ac_abs_srcdir&;t t
14264s&@top_srcdir@&$ac_top_srcdir&;t t
14265s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14266s&@builddir@&$ac_builddir&;t t
14267s&@abs_builddir@&$ac_abs_builddir&;t t
14268s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14269s&@INSTALL@&$ac_INSTALL&;t t
14270s&@MKDIR_P@&$ac_MKDIR_P&;t t
14271$ac_datarootdir_hack
14272"
14273eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14274 || as_fn_error "could not create $ac_file" "$LINENO" 5
14275
14276test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14277 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14278 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14280which seems to be undefined. Please make sure it is defined." >&5
14281$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14282which seems to be undefined. Please make sure it is defined." >&2;}
14283
14284 rm -f "$tmp/stdin"
3ed8e5b6 14285 case $ac_file in
5213506e
RW
14286 -) cat "$tmp/out" && rm -f "$tmp/out";;
14287 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14288 esac \
14289 || as_fn_error "could not create $ac_file" "$LINENO" 5
14290 ;;
14291 :H)
14292 #
14293 # CONFIG_HEADER
14294 #
3ed8e5b6 14295 if test x"$ac_file" != x-; then
5213506e
RW
14296 {
14297 $as_echo "/* $configure_input */" \
14298 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14299 } >"$tmp/config.h" \
14300 || as_fn_error "could not create $ac_file" "$LINENO" 5
14301 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14303$as_echo "$as_me: $ac_file is unchanged" >&6;}
3ed8e5b6 14304 else
5213506e
RW
14305 rm -f "$ac_file"
14306 mv "$tmp/config.h" "$ac_file" \
14307 || as_fn_error "could not create $ac_file" "$LINENO" 5
3ed8e5b6
AT
14308 fi
14309 else
5213506e
RW
14310 $as_echo "/* $configure_input */" \
14311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14312 || as_fn_error "could not create -" "$LINENO" 5
3ed8e5b6 14313 fi
5213506e
RW
14314# Compute "$ac_file"'s index in $config_headers.
14315_am_arg="$ac_file"
3ed8e5b6
AT
14316_am_stamp_count=1
14317for _am_header in $config_headers :; do
14318 case $_am_header in
5213506e 14319 $_am_arg | $_am_arg:* )
3ed8e5b6
AT
14320 break ;;
14321 * )
14322 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14323 esac
14324done
5213506e
RW
14325echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14326$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14327 X"$_am_arg" : 'X\(//\)[^/]' \| \
14328 X"$_am_arg" : 'X\(//\)$' \| \
14329 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14330$as_echo X"$_am_arg" |
14331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14332 s//\1/
14333 q
14334 }
14335 /^X\(\/\/\)[^/].*/{
14336 s//\1/
14337 q
14338 }
14339 /^X\(\/\/\)$/{
14340 s//\1/
14341 q
14342 }
14343 /^X\(\/\).*/{
14344 s//\1/
14345 q
14346 }
14347 s/.*/./; q'`/stamp-h$_am_stamp_count
14348 ;;
14349 :L)
14350 #
14351 # CONFIG_LINK
14352 #
1450eb7a 14353
5213506e
RW
14354 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14355 :
1450eb7a 14356 else
5213506e
RW
14357 # Prefer the file from the source tree if names are identical.
14358 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14359 ac_source=$srcdir/$ac_source
14360 fi
3ed8e5b6 14361
5213506e
RW
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14363$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
3ed8e5b6 14364
5213506e
RW
14365 if test ! -r "$ac_source"; then
14366 as_fn_error "$ac_source: file not found" "$LINENO" 5
14367 fi
14368 rm -f "$ac_file"
1450eb7a 14369
5213506e
RW
14370 # Try a relative symlink, then a hard link, then a copy.
14371 case $srcdir in
14372 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14373 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14374 esac
14375 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14376 ln "$ac_source" "$ac_file" 2>/dev/null ||
14377 cp -p "$ac_source" "$ac_file" ||
14378 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14379 fi
14380 ;;
14381 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14382$as_echo "$as_me: executing $ac_file commands" >&6;}
14383 ;;
1450eb7a
AT
14384 esac
14385
63e5e3e0 14386
5213506e
RW
14387 case $ac_file$ac_mode in
14388 "default-1":C)
3ed8e5b6
AT
14389# Only add multilib support code if we just rebuilt the top-level
14390# Makefile.
14391case " $CONFIG_FILES " in
14392 *" Makefile "*)
14393 ac_file=Makefile . ${multi_basedir}/config-ml.in
14394 ;;
14395esac ;;
5213506e
RW
14396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14397 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14398 # are listed without --file. Let's play safe and only enable the eval
14399 # if we detect the quoting.
14400 case $CONFIG_FILES in
14401 *\'*) eval set x "$CONFIG_FILES" ;;
14402 *) set x $CONFIG_FILES ;;
14403 esac
14404 shift
14405 for mf
14406 do
14407 # Strip MF so we end up with the name of the file.
14408 mf=`echo "$mf" | sed -e 's/:.*$//'`
14409 # Check whether this is an Automake generated Makefile or not.
14410 # We used to match only the files named `Makefile.in', but
14411 # some people rename them; so instead we look at the file content.
14412 # Grep'ing the first line is not enough: some people post-process
14413 # each Makefile.in and add a new line on top of each file to say so.
14414 # Grep'ing the whole file is not good either: AIX grep has a line
14415 # limit of 2048, but all sed's we know have understand at least 4000.
14416 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14417 dirpart=`$as_dirname -- "$mf" ||
3ed8e5b6
AT
14418$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419 X"$mf" : 'X\(//\)[^/]' \| \
14420 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
14421 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14422$as_echo X"$mf" |
14423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\(\/\/\)[^/].*/{
14428 s//\1/
14429 q
14430 }
14431 /^X\(\/\/\)$/{
14432 s//\1/
14433 q
14434 }
14435 /^X\(\/\).*/{
14436 s//\1/
14437 q
14438 }
14439 s/.*/./; q'`
14440 else
14441 continue
14442 fi
14443 # Extract the definition of DEPDIR, am__include, and am__quote
14444 # from the Makefile without running `make'.
14445 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14446 test -z "$DEPDIR" && continue
14447 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14448 test -z "am__include" && continue
14449 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14450 # When using ansi2knr, U may be empty or an underscore; expand it
14451 U=`sed -n 's/^U = //p' < "$mf"`
14452 # Find all dependency output files, they are included files with
14453 # $(DEPDIR) in their names. We invoke sed twice because it is the
14454 # simplest approach to changing $(DEPDIR) to its actual value in the
14455 # expansion.
14456 for file in `sed -n "
14457 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14458 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14459 # Make sure the directory exists.
14460 test -f "$dirpart/$file" && continue
14461 fdir=`$as_dirname -- "$file" ||
3ed8e5b6
AT
14462$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$file" : 'X\(//\)[^/]' \| \
14464 X"$file" : 'X\(//\)$' \| \
5213506e
RW
14465 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14466$as_echo X"$file" |
14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468 s//\1/
14469 q
14470 }
14471 /^X\(\/\/\)[^/].*/{
14472 s//\1/
14473 q
14474 }
14475 /^X\(\/\/\)$/{
14476 s//\1/
14477 q
14478 }
14479 /^X\(\/\).*/{
14480 s//\1/
14481 q
14482 }
14483 s/.*/./; q'`
14484 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14485 # echo "creating $dirpart/$file"
14486 echo '# dummy' > "$dirpart/$file"
3ed8e5b6 14487 done
3ed8e5b6 14488 done
5213506e 14489}
1cf3d07d 14490 ;;
5213506e 14491 "libtool":C)
1cf3d07d
SE
14492
14493 # See if we are running on zsh, and set the options which allow our
14494 # commands through without removal of \ escapes.
14495 if test -n "${ZSH_VERSION+set}" ; then
14496 setopt NO_GLOB_SUBST
14497 fi
14498
14499 cfgfile="${ofile}T"
14500 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14501 $RM "$cfgfile"
14502
14503 cat <<_LT_EOF >> "$cfgfile"
14504#! $SHELL
14505
14506# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 14507# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
14508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14510#
80c6c2cb 14511# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 14512# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
80c6c2cb 14513# Written by Gordon Matzigkeit, 1996
1cf3d07d 14514#
80c6c2cb 14515# This file is part of GNU Libtool.
1cf3d07d 14516#
80c6c2cb
PG
14517# GNU Libtool is free software; you can redistribute it and/or
14518# modify it under the terms of the GNU General Public License as
14519# published by the Free Software Foundation; either version 2 of
14520# the License, or (at your option) any later version.
1cf3d07d 14521#
80c6c2cb
PG
14522# As a special exception to the GNU General Public License,
14523# if you distribute this file as part of a program or library that
14524# is built using GNU Libtool, you may include this file under the
14525# same distribution terms that you use for the rest of that program.
1cf3d07d 14526#
80c6c2cb
PG
14527# GNU Libtool is distributed in the hope that it will be useful,
14528# but WITHOUT ANY WARRANTY; without even the implied warranty of
14529# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14530# GNU General Public License for more details.
1cf3d07d 14531#
80c6c2cb
PG
14532# You should have received a copy of the GNU General Public License
14533# along with GNU Libtool; see the file COPYING. If not, a copy
14534# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14535# obtained by writing to the Free Software Foundation, Inc.,
14536# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
14537
14538
14539# The names of the tagged configurations supported by this script.
14540available_tags=""
14541
14542# ### BEGIN LIBTOOL CONFIG
14543
14544# Which release of libtool.m4 was used?
14545macro_version=$macro_version
14546macro_revision=$macro_revision
14547
14548# Whether or not to build shared libraries.
14549build_libtool_libs=$enable_shared
14550
14551# Whether or not to build static libraries.
14552build_old_libs=$enable_static
14553
14554# What type of objects to build.
14555pic_mode=$pic_mode
14556
14557# Whether or not to optimize for fast installation.
14558fast_install=$enable_fast_install
14559
43e02a8a
RW
14560# Shell to use when invoking shell scripts.
14561SHELL=$lt_SHELL
14562
14563# An echo program that protects backslashes.
14564ECHO=$lt_ECHO
14565
1cf3d07d
SE
14566# The host system.
14567host_alias=$host_alias
14568host=$host
14569host_os=$host_os
14570
14571# The build system.
14572build_alias=$build_alias
14573build=$build
14574build_os=$build_os
14575
14576# A sed program that does not truncate output.
14577SED=$lt_SED
14578
14579# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14580Xsed="\$SED -e 1s/^X//"
14581
14582# A grep program that handles long lines.
14583GREP=$lt_GREP
14584
14585# An ERE matcher.
14586EGREP=$lt_EGREP
14587
14588# A literal string matcher.
14589FGREP=$lt_FGREP
14590
14591# A BSD- or MS-compatible name lister.
14592NM=$lt_NM
14593
14594# Whether we need soft or hard links.
14595LN_S=$lt_LN_S
14596
14597# What is the maximum length of a command?
14598max_cmd_len=$max_cmd_len
14599
14600# Object file suffix (normally "o").
14601objext=$ac_objext
14602
14603# Executable file suffix (normally "").
14604exeext=$exeext
14605
14606# whether the shell understands "unset".
14607lt_unset=$lt_unset
14608
14609# turn spaces into newlines.
14610SP2NL=$lt_lt_SP2NL
14611
14612# turn newlines into spaces.
14613NL2SP=$lt_lt_NL2SP
14614
80c6c2cb
PG
14615# An object symbol dumper.
14616OBJDUMP=$lt_OBJDUMP
14617
1cf3d07d
SE
14618# Method to check whether dependent libraries are shared objects.
14619deplibs_check_method=$lt_deplibs_check_method
14620
14621# Command to use when deplibs_check_method == "file_magic".
14622file_magic_cmd=$lt_file_magic_cmd
14623
14624# The archiver.
14625AR=$lt_AR
14626AR_FLAGS=$lt_AR_FLAGS
14627
14628# A symbol stripping program.
14629STRIP=$lt_STRIP
14630
14631# Commands used to install an old-style archive.
14632RANLIB=$lt_RANLIB
14633old_postinstall_cmds=$lt_old_postinstall_cmds
14634old_postuninstall_cmds=$lt_old_postuninstall_cmds
14635
43e02a8a
RW
14636# Whether to use a lock for old archive extraction.
14637lock_old_archive_extraction=$lock_old_archive_extraction
14638
1cf3d07d
SE
14639# A C compiler.
14640LTCC=$lt_CC
14641
14642# LTCC compiler flags.
14643LTCFLAGS=$lt_CFLAGS
14644
14645# Take the output of nm and produce a listing of raw symbols and C names.
14646global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14647
14648# Transform the output of nm in a proper C declaration.
14649global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14650
14651# Transform the output of nm in a C name address pair.
14652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14653
80c6c2cb
PG
14654# Transform the output of nm in a C name address pair when lib prefix is needed.
14655global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14656
1cf3d07d
SE
14657# The name of the directory that contains temporary libtool files.
14658objdir=$objdir
14659
1cf3d07d
SE
14660# Used to examine libraries when file_magic_cmd begins with "file".
14661MAGIC_CMD=$MAGIC_CMD
14662
14663# Must we lock files when doing compilation?
14664need_locks=$lt_need_locks
14665
80c6c2cb
PG
14666# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14667DSYMUTIL=$lt_DSYMUTIL
14668
14669# Tool to change global to local symbols on Mac OS X.
14670NMEDIT=$lt_NMEDIT
14671
14672# Tool to manipulate fat objects and archives on Mac OS X.
14673LIPO=$lt_LIPO
14674
14675# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14676OTOOL=$lt_OTOOL
14677
14678# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14679OTOOL64=$lt_OTOOL64
14680
1cf3d07d
SE
14681# Old archive suffix (normally "a").
14682libext=$libext
14683
14684# Shared library suffix (normally ".so").
14685shrext_cmds=$lt_shrext_cmds
14686
14687# The commands to extract the exported symbol list from a shared archive.
14688extract_expsyms_cmds=$lt_extract_expsyms_cmds
14689
14690# Variables whose values should be saved in libtool wrapper scripts and
14691# restored at link time.
14692variables_saved_for_relink=$lt_variables_saved_for_relink
14693
14694# Do we need the "lib" prefix for modules?
14695need_lib_prefix=$need_lib_prefix
14696
14697# Do we need a version for libraries?
14698need_version=$need_version
14699
14700# Library versioning type.
14701version_type=$version_type
14702
14703# Shared library runtime path variable.
14704runpath_var=$runpath_var
14705
14706# Shared library path variable.
14707shlibpath_var=$shlibpath_var
14708
14709# Is shlibpath searched before the hard-coded library search path?
14710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14711
14712# Format of library name prefix.
14713libname_spec=$lt_libname_spec
14714
14715# List of archive names. First name is the real one, the rest are links.
14716# The last name is the one that the linker finds with -lNAME
14717library_names_spec=$lt_library_names_spec
14718
14719# The coded name of the library, if different from the real name.
14720soname_spec=$lt_soname_spec
14721
43e02a8a
RW
14722# Permission mode override for installation of shared libraries.
14723install_override_mode=$lt_install_override_mode
14724
1cf3d07d
SE
14725# Command to use after installation of a shared archive.
14726postinstall_cmds=$lt_postinstall_cmds
14727
14728# Command to use after uninstallation of a shared archive.
14729postuninstall_cmds=$lt_postuninstall_cmds
14730
14731# Commands used to finish a libtool library installation in a directory.
14732finish_cmds=$lt_finish_cmds
14733
14734# As "finish_cmds", except a single script fragment to be evaled but
14735# not shown.
14736finish_eval=$lt_finish_eval
14737
14738# Whether we should hardcode library paths into libraries.
14739hardcode_into_libs=$hardcode_into_libs
14740
14741# Compile-time system search path for libraries.
14742sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14743
14744# Run-time system search path for libraries.
14745sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14746
14747# Whether dlopen is supported.
14748dlopen_support=$enable_dlopen
14749
14750# Whether dlopen of programs is supported.
14751dlopen_self=$enable_dlopen_self
14752
14753# Whether dlopen of statically linked programs is supported.
14754dlopen_self_static=$enable_dlopen_self_static
14755
14756# Commands to strip libraries.
14757old_striplib=$lt_old_striplib
14758striplib=$lt_striplib
14759
14760
14761# The linker used to build libraries.
14762LD=$lt_LD
14763
43e02a8a
RW
14764# How to create reloadable object files.
14765reload_flag=$lt_reload_flag
14766reload_cmds=$lt_reload_cmds
14767
1cf3d07d
SE
14768# Commands used to build an old-style archive.
14769old_archive_cmds=$lt_old_archive_cmds
14770
14771# A language specific compiler.
14772CC=$lt_compiler
14773
14774# Is the compiler the GNU compiler?
14775with_gcc=$GCC
14776
14777# Compiler flag to turn off builtin functions.
14778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14779
14780# How to pass a linker flag through the compiler.
14781wl=$lt_lt_prog_compiler_wl
14782
14783# Additional compiler flags for building library objects.
14784pic_flag=$lt_lt_prog_compiler_pic
14785
14786# Compiler flag to prevent dynamic linking.
14787link_static_flag=$lt_lt_prog_compiler_static
14788
14789# Does compiler simultaneously support -c and -o options?
14790compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14791
14792# Whether or not to add -lc for building shared libraries.
14793build_libtool_need_lc=$archive_cmds_need_lc
14794
14795# Whether or not to disallow shared libs when runtime libs are static.
14796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14797
14798# Compiler flag to allow reflexive dlopens.
14799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14800
14801# Compiler flag to generate shared objects directly from archives.
14802whole_archive_flag_spec=$lt_whole_archive_flag_spec
14803
14804# Whether the compiler copes with passing no objects directly.
14805compiler_needs_object=$lt_compiler_needs_object
14806
14807# Create an old-style archive from a shared archive.
14808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14809
14810# Create a temporary old-style archive to link instead of a shared archive.
14811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14812
14813# Commands used to build a shared archive.
14814archive_cmds=$lt_archive_cmds
14815archive_expsym_cmds=$lt_archive_expsym_cmds
14816
14817# Commands used to build a loadable module if different from building
14818# a shared archive.
14819module_cmds=$lt_module_cmds
14820module_expsym_cmds=$lt_module_expsym_cmds
14821
14822# Whether we are building with GNU ld or not.
14823with_gnu_ld=$lt_with_gnu_ld
14824
14825# Flag that allows shared libraries with undefined symbols to be built.
14826allow_undefined_flag=$lt_allow_undefined_flag
14827
14828# Flag that enforces no undefined symbols.
14829no_undefined_flag=$lt_no_undefined_flag
14830
14831# Flag to hardcode \$libdir into a binary during linking.
14832# This must work even if \$libdir does not exist
14833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14834
14835# If ld is used when linking, flag to hardcode \$libdir into a binary
14836# during linking. This must work even if \$libdir does not exist.
14837hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14838
14839# Whether we need a single "-rpath" flag with a separated argument.
14840hardcode_libdir_separator=$lt_hardcode_libdir_separator
14841
14842# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14843# DIR into the resulting binary.
14844hardcode_direct=$hardcode_direct
14845
14846# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14847# DIR into the resulting binary and the resulting library dependency is
14848# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14849# library is relocated.
14850hardcode_direct_absolute=$hardcode_direct_absolute
14851
14852# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14853# into the resulting binary.
14854hardcode_minus_L=$hardcode_minus_L
14855
14856# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14857# into the resulting binary.
14858hardcode_shlibpath_var=$hardcode_shlibpath_var
14859
14860# Set to "yes" if building a shared library automatically hardcodes DIR
14861# into the library and all subsequent libraries and executables linked
14862# against it.
14863hardcode_automatic=$hardcode_automatic
14864
14865# Set to yes if linker adds runtime paths of dependent libraries
14866# to runtime path list.
14867inherit_rpath=$inherit_rpath
14868
14869# Whether libtool must link a program against all its dependency libraries.
14870link_all_deplibs=$link_all_deplibs
14871
14872# Fix the shell variable \$srcfile for the compiler.
14873fix_srcfile_path=$lt_fix_srcfile_path
14874
14875# Set to "yes" if exported symbols are required.
14876always_export_symbols=$always_export_symbols
14877
14878# The commands to list exported symbols.
14879export_symbols_cmds=$lt_export_symbols_cmds
14880
14881# Symbols that should not be listed in the preloaded symbols.
14882exclude_expsyms=$lt_exclude_expsyms
14883
14884# Symbols that must always be exported.
14885include_expsyms=$lt_include_expsyms
14886
14887# Commands necessary for linking programs (against libraries) with templates.
14888prelink_cmds=$lt_prelink_cmds
14889
14890# Specify filename containing input files.
14891file_list_spec=$lt_file_list_spec
14892
14893# How to hardcode a shared library path into an executable.
14894hardcode_action=$hardcode_action
14895
14896# ### END LIBTOOL CONFIG
14897
14898_LT_EOF
14899
14900 case $host_os in
14901 aix3*)
14902 cat <<\_LT_EOF >> "$cfgfile"
14903# AIX sometimes has problems with the GCC collect2 program. For some
14904# reason, if we set the COLLECT_NAMES environment variable, the problems
14905# vanish in a puff of smoke.
14906if test "X${COLLECT_NAMES+set}" != Xset; then
14907 COLLECT_NAMES=
14908 export COLLECT_NAMES
14909fi
14910_LT_EOF
14911 ;;
14912 esac
14913
14914
14915ltmain="$ac_aux_dir/ltmain.sh"
14916
14917
14918 # We use sed instead of cat because bash on DJGPP gets confused if
14919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14920 # text mode, it properly converts lines to CR/LF. This bash problem
14921 # is reportedly fixed, but why not run on old versions too?
14922 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14923 || (rm -f "$cfgfile"; exit 1)
14924
14925 case $xsi_shell in
14926 yes)
14927 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 14928
1cf3d07d
SE
14929# func_dirname file append nondir_replacement
14930# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14931# otherwise set result to NONDIR_REPLACEMENT.
14932func_dirname ()
14933{
14934 case ${1} in
14935 */*) func_dirname_result="${1%/*}${2}" ;;
14936 * ) func_dirname_result="${3}" ;;
14937 esac
14938}
14939
14940# func_basename file
14941func_basename ()
14942{
14943 func_basename_result="${1##*/}"
14944}
14945
80c6c2cb
PG
14946# func_dirname_and_basename file append nondir_replacement
14947# perform func_basename and func_dirname in a single function
14948# call:
14949# dirname: Compute the dirname of FILE. If nonempty,
14950# add APPEND to the result, otherwise set result
14951# to NONDIR_REPLACEMENT.
14952# value returned in "$func_dirname_result"
14953# basename: Compute filename of FILE.
14954# value retuned in "$func_basename_result"
14955# Implementation must be kept synchronized with func_dirname
14956# and func_basename. For efficiency, we do not delegate to
14957# those functions but instead duplicate the functionality here.
14958func_dirname_and_basename ()
14959{
14960 case ${1} in
14961 */*) func_dirname_result="${1%/*}${2}" ;;
14962 * ) func_dirname_result="${3}" ;;
14963 esac
14964 func_basename_result="${1##*/}"
14965}
14966
1cf3d07d
SE
14967# func_stripname prefix suffix name
14968# strip PREFIX and SUFFIX off of NAME.
14969# PREFIX and SUFFIX must not contain globbing or regex special
14970# characters, hashes, percent signs, but SUFFIX may contain a leading
14971# dot (in which case that matches only a dot).
14972func_stripname ()
14973{
14974 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14975 # positional parameters, so assign one to ordinary parameter first.
14976 func_stripname_result=${3}
14977 func_stripname_result=${func_stripname_result#"${1}"}
14978 func_stripname_result=${func_stripname_result%"${2}"}
14979}
14980
14981# func_opt_split
14982func_opt_split ()
14983{
14984 func_opt_split_opt=${1%%=*}
14985 func_opt_split_arg=${1#*=}
14986}
14987
14988# func_lo2o object
14989func_lo2o ()
14990{
14991 case ${1} in
14992 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14993 *) func_lo2o_result=${1} ;;
14994 esac
14995}
80c6c2cb
PG
14996
14997# func_xform libobj-or-source
14998func_xform ()
14999{
15000 func_xform_result=${1%.*}.lo
15001}
15002
15003# func_arith arithmetic-term...
15004func_arith ()
15005{
15006 func_arith_result=$(( $* ))
15007}
15008
15009# func_len string
15010# STRING may not start with a hyphen.
15011func_len ()
15012{
15013 func_len_result=${#1}
15014}
15015
1cf3d07d
SE
15016_LT_EOF
15017 ;;
15018 *) # Bourne compatible functions.
15019 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 15020
1cf3d07d
SE
15021# func_dirname file append nondir_replacement
15022# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15023# otherwise set result to NONDIR_REPLACEMENT.
15024func_dirname ()
15025{
15026 # Extract subdirectory from the argument.
43e02a8a 15027 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
15028 if test "X$func_dirname_result" = "X${1}"; then
15029 func_dirname_result="${3}"
15030 else
15031 func_dirname_result="$func_dirname_result${2}"
15032 fi
15033}
15034
15035# func_basename file
15036func_basename ()
15037{
43e02a8a 15038 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
15039}
15040
80c6c2cb 15041
1cf3d07d
SE
15042# func_stripname prefix suffix name
15043# strip PREFIX and SUFFIX off of NAME.
15044# PREFIX and SUFFIX must not contain globbing or regex special
15045# characters, hashes, percent signs, but SUFFIX may contain a leading
15046# dot (in which case that matches only a dot).
15047# func_strip_suffix prefix name
15048func_stripname ()
15049{
15050 case ${2} in
43e02a8a
RW
15051 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15052 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
15053 esac
15054}
15055
15056# sed scripts:
15057my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15058my_sed_long_arg='1s/^-[^=]*=//'
15059
15060# func_opt_split
15061func_opt_split ()
15062{
43e02a8a
RW
15063 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15064 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
15065}
15066
15067# func_lo2o object
15068func_lo2o ()
15069{
43e02a8a 15070 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 15071}
80c6c2cb
PG
15072
15073# func_xform libobj-or-source
15074func_xform ()
15075{
43e02a8a 15076 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
80c6c2cb
PG
15077}
15078
15079# func_arith arithmetic-term...
15080func_arith ()
15081{
15082 func_arith_result=`expr "$@"`
15083}
15084
15085# func_len string
15086# STRING may not start with a hyphen.
15087func_len ()
15088{
15089 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15090}
15091
1cf3d07d
SE
15092_LT_EOF
15093esac
15094
15095case $lt_shell_append in
15096 yes)
15097 cat << \_LT_EOF >> "$cfgfile"
15098
15099# func_append var value
15100# Append VALUE to the end of shell variable VAR.
15101func_append ()
15102{
15103 eval "$1+=\$2"
15104}
15105_LT_EOF
15106 ;;
15107 *)
15108 cat << \_LT_EOF >> "$cfgfile"
15109
15110# func_append var value
15111# Append VALUE to the end of shell variable VAR.
15112func_append ()
15113{
15114 eval "$1=\$$1\$2"
15115}
80c6c2cb 15116
1cf3d07d
SE
15117_LT_EOF
15118 ;;
15119 esac
15120
15121
15122 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15123 || (rm -f "$cfgfile"; exit 1)
15124
15125 mv -f "$cfgfile" "$ofile" ||
15126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15127 chmod +x "$ofile"
15128
3ed8e5b6 15129 ;;
5213506e
RW
15130 "include":C) test -d include || mkdir include ;;
15131 "src":C)
3ed8e5b6
AT
15132test -d src || mkdir src
15133test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15134 ;;
5213506e 15135
3ed8e5b6 15136 esac
5213506e 15137done # for ac_tag
3ed8e5b6 15138
3ed8e5b6 15139
5213506e 15140as_fn_exit 0
3ed8e5b6 15141_ACEOF
3ed8e5b6
AT
15142ac_clean_files=$ac_clean_files_save
15143
5213506e
RW
15144test $ac_write_fail = 0 ||
15145 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15146
3ed8e5b6
AT
15147
15148# configure is writing to config.log, and then calls config.status.
15149# config.status does its own redirection, appending to config.log.
15150# Unfortunately, on DOS this fails, as config.log is still kept open
15151# by configure, so config.status won't be able to write to it; its
15152# output is simply discarded. So we exec the FD to /dev/null,
15153# effectively closing config.log, so it can be properly (re)opened and
15154# appended to by config.status. When coming back to configure, we
15155# need to make the FD available again.
15156if test "$no_create" != yes; then
15157 ac_cs_success=:
15158 ac_config_status_args=
15159 test "$silent" = yes &&
15160 ac_config_status_args="$ac_config_status_args --quiet"
15161 exec 5>/dev/null
15162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15163 exec 5>>config.log
15164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15165 # would make configure fail if this is the last instruction.
5213506e
RW
15166 $ac_cs_success || as_fn_exit $?
15167fi
15168if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15170$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3ed8e5b6 15171fi
63e5e3e0 15172