]> gcc.gnu.org Git - gcc.git/blame - libffi/configure
re PR libffi/41908 (closures fail for some structure arguments containing floats)
[gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
5213506e 3# Generated by GNU Autoconf 2.64 for libffi 3.0.8.
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
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3ed8e5b6 186do
5213506e
RW
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
3ed8e5b6 230 else
5213506e
RW
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: http://gcc.gnu.org/bugs.html about your system,
233$0: including any error possibly output before this
234$0: message. Then install a modern shell, or manually run
235$0: the script under such a shell if you do have one."
3ed8e5b6 236 fi
5213506e
RW
237 exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264 return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272 set +e
273 as_fn_set_status $1
274 exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374} # as_fn_error
3ed8e5b6 375
5213506e
RW
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
378 as_expr=expr
379else
380 as_expr=false
381fi
382
5213506e 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
384 as_basename=basename
385else
386 as_basename=false
387fi
388
5213506e
RW
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
3ed8e5b6 394
5213506e 395as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
5213506e
RW
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
3ed8e5b6 413
3ed8e5b6
AT
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
3ed8e5b6 421
5213506e
RW
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
3ed8e5b6 431 sed '
5213506e
RW
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
3ed8e5b6 436 N
5213506e
RW
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3ed8e5b6 439 t loop
5213506e 440 s/-\n.*//
3ed8e5b6 441 ' >$as_me.lineno &&
5213506e
RW
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
3ed8e5b6
AT
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
3ed8e5b6
AT
449 # Exit status is that of the last command.
450 exit
451}
452
5213506e
RW
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462*)
463 ECHO_N='-n';;
3ed8e5b6
AT
464esac
465
5213506e
RW
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
3ed8e5b6 469else
5213506e
RW
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 472fi
5213506e
RW
473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 475 as_ln_s='ln -s'
5213506e
RW
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
3ed8e5b6 486 fi
3ed8e5b6
AT
487else
488 as_ln_s='cp -p'
489fi
5213506e
RW
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
3ed8e5b6
AT
492
493if mkdir -p . 2>/dev/null; then
5213506e 494 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
5213506e
RW
500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520fi
521as_executable_p=$as_test_x
3ed8e5b6
AT
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
1cf3d07d
SE
530
531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
534case X$lt_ECHO in
535X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 ;;
539esac
540
541ECHO=${lt_ECHO-echo}
542if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
550 :
551else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
560$*
561_LT_EOF
562 exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
604 IFS="$lt_save_ifs"
605
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
646
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
662 fi
663 fi
664 fi
665 fi
666 fi
667fi
668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674fi
675
676
677
678
5213506e
RW
679exec 7<&0 </dev/null 6>&1
680
3ed8e5b6
AT
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 685
3ed8e5b6
AT
686#
687# Initializations.
688#
63e5e3e0 689ac_default_prefix=/usr/local
5213506e 690ac_clean_files=
3ed8e5b6 691ac_config_libobj_dir=.
5213506e 692LIBOBJS=
3ed8e5b6
AT
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
3ed8e5b6
AT
697
698# Identity of this package.
699PACKAGE_NAME='libffi'
700PACKAGE_TARNAME='libffi'
b7b857bb
AH
701PACKAGE_VERSION='3.0.8'
702PACKAGE_STRING='libffi 3.0.8'
3ed8e5b6 703PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
5213506e 704PACKAGE_URL=''
3ed8e5b6 705
c9b93377
JB
706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
5213506e 709#ifdef HAVE_SYS_TYPES_H
c9b93377
JB
710# include <sys/types.h>
711#endif
5213506e 712#ifdef HAVE_SYS_STAT_H
c9b93377
JB
713# include <sys/stat.h>
714#endif
5213506e 715#ifdef STDC_HEADERS
c9b93377
JB
716# include <stdlib.h>
717# include <stddef.h>
718#else
5213506e 719# ifdef HAVE_STDLIB_H
c9b93377
JB
720# include <stdlib.h>
721# endif
722#endif
5213506e
RW
723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
c9b93377
JB
725# include <memory.h>
726# endif
727# include <string.h>
728#endif
5213506e 729#ifdef HAVE_STRINGS_H
c9b93377
JB
730# include <strings.h>
731#endif
5213506e 732#ifdef HAVE_INTTYPES_H
c9b93377 733# include <inttypes.h>
c9b93377 734#endif
5213506e
RW
735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
c9b93377
JB
739# include <unistd.h>
740#endif"
741
5213506e
RW
742ac_subst_vars='am__EXEEXT_FALSE
743am__EXEEXT_TRUE
744LTLIBOBJS
745LIBOBJS
746toolexeclibdir
747toolexecdir
748TARGETDIR
749TARGET
750HAVE_LONG_DOUBLE
751ALLOCA
752PA64_HPUX_FALSE
753PA64_HPUX_TRUE
754PA_HPUX_FALSE
755PA_HPUX_TRUE
756PA_LINUX_FALSE
757PA_LINUX_TRUE
758SH64_FALSE
759SH64_TRUE
760SH_FALSE
761SH_TRUE
762X86_64_FALSE
763X86_64_TRUE
764S390_FALSE
765S390_TRUE
766FRV_FALSE
767FRV_TRUE
768LIBFFI_CRIS_FALSE
769LIBFFI_CRIS_TRUE
770ARM_FALSE
771ARM_TRUE
772POWERPC_FREEBSD_FALSE
773POWERPC_FREEBSD_TRUE
774POWERPC_DARWIN_FALSE
775POWERPC_DARWIN_TRUE
776POWERPC_AIX_FALSE
777POWERPC_AIX_TRUE
778POWERPC_FALSE
779POWERPC_TRUE
780M68K_FALSE
781M68K_TRUE
782M32R_FALSE
783M32R_TRUE
784IA64_FALSE
785IA64_TRUE
786ALPHA_FALSE
787ALPHA_TRUE
788X86_DARWIN_FALSE
789X86_DARWIN_TRUE
790X86_WIN64_FALSE
791X86_WIN64_TRUE
792X86_WIN32_FALSE
793X86_WIN32_TRUE
794X86_FREEBSD_FALSE
795X86_FREEBSD_TRUE
796X86_FALSE
797X86_TRUE
798SPARC_FALSE
799SPARC_TRUE
800MIPS_FALSE
801MIPS_TRUE
802AM_RUNTESTFLAGS
803TESTSUBDIR_FALSE
804TESTSUBDIR_TRUE
805MAINT
806MAINTAINER_MODE_FALSE
807MAINTAINER_MODE_TRUE
808CPP
809OTOOL64
810OTOOL
811LIPO
812NMEDIT
813DSYMUTIL
814lt_ECHO
815RANLIB
816AR
817OBJDUMP
818LN_S
819NM
820ac_ct_DUMPBIN
821DUMPBIN
822LD
823FGREP
824EGREP
825GREP
826SED
827LIBTOOL
828am__fastdepCCAS_FALSE
829am__fastdepCCAS_TRUE
830CCASDEPMODE
831CCASFLAGS
832CCAS
833am__fastdepCC_FALSE
834am__fastdepCC_TRUE
835CCDEPMODE
836AMDEPBACKSLASH
837AMDEP_FALSE
838AMDEP_TRUE
839am__quote
840am__include
841DEPDIR
842OBJEXT
843EXEEXT
844ac_ct_CC
845CPPFLAGS
846LDFLAGS
847CFLAGS
848CC
849am__untar
850am__tar
851AMTAR
852am__leading_dot
853SET_MAKE
854AWK
855mkdir_p
856MKDIR_P
857INSTALL_STRIP_PROGRAM
858STRIP
859install_sh
860MAKEINFO
861AUTOHEADER
862AUTOMAKE
863AUTOCONF
864ACLOCAL
865VERSION
866PACKAGE
867CYGPATH_W
868am__isrc
869INSTALL_DATA
870INSTALL_SCRIPT
871INSTALL_PROGRAM
872target_os
873target_vendor
874target_cpu
875target
876host_os
877host_vendor
878host_cpu
879host
880build_os
881build_vendor
882build_cpu
883build
884multi_basedir
885target_alias
886host_alias
887build_alias
888LIBS
889ECHO_T
890ECHO_N
891ECHO_C
892DEFS
893mandir
894localedir
895libdir
896psdir
897pdfdir
898dvidir
899htmldir
900infodir
901docdir
902oldincludedir
903includedir
904localstatedir
905sharedstatedir
906sysconfdir
907datadir
908datarootdir
909libexecdir
910sbindir
911bindir
912program_transform_name
913prefix
914exec_prefix
915PACKAGE_URL
916PACKAGE_BUGREPORT
917PACKAGE_STRING
918PACKAGE_VERSION
919PACKAGE_TARNAME
920PACKAGE_NAME
921PATH_SEPARATOR
922SHELL'
3ed8e5b6 923ac_subst_files=''
5213506e
RW
924ac_user_opts='
925enable_option_checking
926enable_multilib
927enable_dependency_tracking
928enable_shared
929enable_static
930with_pic
931enable_fast_install
932with_gnu_ld
933enable_libtool_lock
934enable_maintainer_mode
935enable_debug
936enable_structs
937enable_raw_api
938enable_purify_safety
939'
940 ac_precious_vars='build_alias
941host_alias
942target_alias
943CCAS
944CCASFLAGS
945CPP
946CPPFLAGS'
947
63e5e3e0
AG
948
949# Initialize some variables set by options.
3ed8e5b6
AT
950ac_init_help=
951ac_init_version=false
5213506e
RW
952ac_unrecognized_opts=
953ac_unrecognized_sep=
63e5e3e0
AG
954# The variables have the same names as the options, with
955# dashes changed to underlines.
3ed8e5b6 956cache_file=/dev/null
63e5e3e0 957exec_prefix=NONE
63e5e3e0 958no_create=
63e5e3e0
AG
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
63e5e3e0
AG
967verbose=
968x_includes=NONE
969x_libraries=NONE
3ed8e5b6
AT
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 976# (The list follows the same order as the GNU Coding Standards.)
63e5e3e0
AG
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
5213506e
RW
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
63e5e3e0
AG
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
63e5e3e0
AG
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
5213506e
RW
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
63e5e3e0 996
63e5e3e0 997ac_prev=
5213506e 998ac_dashdash=
63e5e3e0
AG
999for ac_option
1000do
63e5e3e0
AG
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
5213506e 1003 eval $ac_prev=\$ac_option
63e5e3e0
AG
1004 ac_prev=
1005 continue
1006 fi
1007
5213506e
RW
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
63e5e3e0
AG
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
5213506e
RW
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
63e5e3e0
AG
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 1022 bindir=$ac_optarg ;;
63e5e3e0
AG
1023
1024 -build | --build | --buil | --bui | --bu)
3ed8e5b6 1025 ac_prev=build_alias ;;
63e5e3e0 1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 1027 build_alias=$ac_optarg ;;
63e5e3e0
AG
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
63e5e3e0 1038
5213506e 1039 -datadir | --datadir | --datadi | --datad)
63e5e3e0 1040 ac_prev=datadir ;;
5213506e 1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
3ed8e5b6 1042 datadir=$ac_optarg ;;
63e5e3e0 1043
5213506e
RW
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
63e5e3e0 1051 -disable-* | --disable-*)
5213506e 1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 1053 # Reject names that are not valid shell variable names.
5213506e
RW
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
63e5e3e0
AG
1076
1077 -enable-* | --enable-*)
5213506e 1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 1079 # Reject names that are not valid shell variable names.
5213506e
RW
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
63e5e3e0 1090 esac
5213506e 1091 eval enable_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 1100 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
3ed8e5b6
AT
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
63e5e3e0
AG
1112
1113 -host | --host | --hos | --ho)
3ed8e5b6 1114 ac_prev=host_alias ;;
63e5e3e0 1115 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 1116 host_alias=$ac_optarg ;;
63e5e3e0 1117
5213506e
RW
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
63e5e3e0
AG
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 1129 includedir=$ac_optarg ;;
63e5e3e0
AG
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 1134 infodir=$ac_optarg ;;
63e5e3e0
AG
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 1139 libdir=$ac_optarg ;;
63e5e3e0
AG
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 1146 libexecdir=$ac_optarg ;;
63e5e3e0 1147
5213506e
RW
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
63e5e3e0 1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1154 | --localstate | --localstat | --localsta | --localst | --locals)
63e5e3e0
AG
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
3ed8e5b6 1158 localstatedir=$ac_optarg ;;
63e5e3e0
AG
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 1163 mandir=$ac_optarg ;;
63e5e3e0
AG
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 1170 | --no-cr | --no-c | -n)
63e5e3e0
AG
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 1184 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 1189 prefix=$ac_optarg ;;
63e5e3e0
AG
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 1196 program_prefix=$ac_optarg ;;
63e5e3e0
AG
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 1203 program_suffix=$ac_optarg ;;
63e5e3e0
AG
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 1220 program_transform_name=$ac_optarg ;;
63e5e3e0 1221
5213506e
RW
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
63e5e3e0
AG
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
3ed8e5b6 1240 sbindir=$ac_optarg ;;
63e5e3e0
AG
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
3ed8e5b6 1251 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
3ed8e5b6 1256 site=$ac_optarg ;;
63e5e3e0
AG
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 1261 srcdir=$ac_optarg ;;
63e5e3e0
AG
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 1268 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 1271 ac_prev=target_alias ;;
63e5e3e0 1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 1273 target_alias=$ac_optarg ;;
63e5e3e0
AG
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
3ed8e5b6
AT
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
63e5e3e0
AG
1280
1281 -with-* | --with-*)
5213506e 1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 1283 # Reject names that are not valid shell variable names.
5213506e
RW
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
63e5e3e0 1294 esac
5213506e 1295 eval with_$ac_useropt=\$ac_optarg ;;
63e5e3e0
AG
1296
1297 -without-* | --without-*)
5213506e 1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 1299 # Reject names that are not valid shell variable names.
5213506e
RW
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
63e5e3e0
AG
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 1322 x_includes=$ac_optarg ;;
63e5e3e0
AG
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 1329 x_libraries=$ac_optarg ;;
63e5e3e0 1330
5213506e
RW
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information."
63e5e3e0
AG
1333 ;;
1334
3ed8e5b6
AT
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
5213506e
RW
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
3ed8e5b6
AT
1343 export $ac_envvar ;;
1344
63e5e3e0 1345 *)
3ed8e5b6 1346 # FIXME: should be removed in autoconf 3.0.
5213506e 1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
3ed8e5b6 1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
3ed8e5b6 1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
3ed8e5b6 1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1358 as_fn_error "missing argument to $ac_option"
63e5e3e0 1359fi
63e5e3e0 1360
5213506e
RW
1361if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
3ed8e5b6 1366 esac
5213506e 1367fi
63e5e3e0 1368
5213506e
RW
1369# Check all directory arguments for consistency.
1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
63e5e3e0 1374do
5213506e
RW
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
3ed8e5b6 1383 case $ac_val in
5213506e
RW
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
63e5e3e0 1386 esac
5213506e 1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
63e5e3e0
AG
1388done
1389
3ed8e5b6
AT
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
5213506e 1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
3ed8e5b6
AT
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406fi
63e5e3e0 1407
3ed8e5b6
AT
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
63e5e3e0 1412
63e5e3e0 1413
5213506e
RW
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1420
1421
63e5e3e0
AG
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
5213506e
RW
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
63e5e3e0 1449 srcdir=$ac_confdir
5213506e 1450 if test ! -r "$srcdir/$ac_unique_file"; then
63e5e3e0
AG
1451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
5213506e
RW
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
63e5e3e0 1480
3ed8e5b6
AT
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
b7b857bb 1488\`configure' configures libffi 3.0.8 to adapt to many kinds of systems.
63e5e3e0 1489
3ed8e5b6
AT
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
3ed8e5b6
AT
1508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1510 [$ac_default_prefix]
3ed8e5b6 1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1512 [PREFIX]
3ed8e5b6
AT
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
5213506e
RW
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
3ed8e5b6
AT
1541_ACEOF
1542
1543 cat <<\_ACEOF
1544
1545Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1550System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554_ACEOF
1555fi
1556
1557if test -n "$ac_init_help"; then
1558 case $ac_init_help in
b7b857bb 1559 short | recursive ) echo "Configuration of libffi 3.0.8:";;
3ed8e5b6
AT
1560 esac
1561 cat <<\_ACEOF
1562
1563Optional Features:
5213506e 1564 --disable-option-checking ignore unrecognized --enable/--with options
3ed8e5b6
AT
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1567 --enable-multilib build many library versions (default)
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
3ed8e5b6 1574 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1575 --enable-maintainer-mode enable make rules and dependencies not useful
1576 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1577 --enable-debug debugging mode
1578 --disable-structs omit code for struct support
1579 --disable-raw-api make the raw api unavailable
1580 --enable-purify-safety purify-safe mode
1581
1582Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1588
1589Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
5213506e
RW
1594 LIBS libraries to pass to the linker, e.g. -l<library>
1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
076e5443
PB
1597 CCAS assembler compiler command (defaults to CC)
1598 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1599 CPP C preprocessor
1600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
1604Report bugs to <http://gcc.gnu.org/bugs.html>.
1605_ACEOF
5213506e 1606ac_status=$?
63e5e3e0
AG
1607fi
1608
3ed8e5b6
AT
1609if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
3ed8e5b6 1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
3ed8e5b6
AT
1615 ac_builddir=.
1616
5213506e
RW
1617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
63e5e3e0 1632
3ed8e5b6 1633case $srcdir in
5213506e 1634 .) # We are building in place.
3ed8e5b6 1635 ac_srcdir=.
5213506e
RW
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 1639 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 1646esac
5213506e
RW
1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
3ed8e5b6 1657 else
5213506e
RW
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
3ed8e5b6 1661 done
675cdab3
BM
1662fi
1663
5213506e 1664test -n "$ac_init_help" && exit $ac_status
3ed8e5b6
AT
1665if $ac_init_version; then
1666 cat <<\_ACEOF
b7b857bb 1667libffi configure 3.0.8
5213506e 1668generated by GNU Autoconf 2.64
675cdab3 1669
5213506e 1670Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
1671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
1673_ACEOF
5213506e 1674 exit
675cdab3
BM
1675fi
1676
5213506e
RW
1677## ------------------------ ##
1678## Autoconf initialization. ##
1679## ------------------------ ##
63e5e3e0 1680
5213506e
RW
1681# ac_fn_c_try_compile LINENO
1682# --------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_compile ()
3ed8e5b6 1685{
5213506e
RW
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1711
5213506e
RW
1712 ac_retval=1
1713fi
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
3ed8e5b6 1716
5213506e 1717} # ac_fn_c_try_compile
3ed8e5b6 1718
5213506e
RW
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 $as_test_x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
3ed8e5b6 1752
5213506e
RW
1753 ac_retval=1
1754fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
3ed8e5b6 1762
5213506e
RW
1763} # ac_fn_c_try_link
1764
1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists and can be compiled using the include files in
1768# INCLUDES, setting the cache variable VAR accordingly.
1769ac_fn_c_check_header_compile ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1776else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779$4
1780#include <$2>
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$3=yes"
1784else
1785 eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
1794} # ac_fn_c_check_header_compile
1795
1796# ac_fn_c_try_cpp LINENO
1797# ----------------------
1798# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_c_try_cpp ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_cpp conftest.$ac_ext"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } >/dev/null && {
1818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1830
1831} # ac_fn_c_try_cpp
1832
1833# ac_fn_c_try_run LINENO
1834# ----------------------
1835# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836# that executables *can* be run.
1837ac_fn_c_try_run ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854esac
1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856$as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=$ac_status
1868fi
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873} # ac_fn_c_try_run
1874
1875# ac_fn_c_check_func LINENO FUNC VAR
1876# ----------------------------------
1877# Tests whether FUNC exists, setting the cache variable VAR accordingly
1878ac_fn_c_check_func ()
1879{
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1885else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h. */
1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890#define $2 innocuous_$2
1891
1892/* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1896
1897#ifdef __STDC__
1898# include <limits.h>
1899#else
1900# include <assert.h>
1901#endif
1902
1903#undef $2
1904
1905/* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1908#ifdef __cplusplus
1909extern "C"
1910#endif
1911char $2 ();
1912/* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915#if defined __stub_$2 || defined __stub___$2
1916choke me
1917#endif
1918
1919int
1920main ()
1921{
1922return $2 ();
1923 ;
1924 return 0;
1925}
1926_ACEOF
1927if ac_fn_c_try_link "$LINENO"; then :
1928 eval "$3=yes"
1929else
1930 eval "$3=no"
1931fi
1932rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940} # ac_fn_c_check_func
1941
1942# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943# -------------------------------------------------------
1944# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945# the include files in INCLUDES and setting the cache variable VAR
1946# accordingly.
1947ac_fn_c_check_header_mongrel ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1955fi
1956eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959else
1960 # Is the header compilable?
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962$as_echo_n "checking $2 usability... " >&6; }
1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966#include <$2>
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970else
1971 ac_header_compiler=no
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975$as_echo "$ac_header_compiler" >&6; }
1976
1977# Is the header present?
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979$as_echo_n "checking $2 presence... " >&6; }
1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h. */
1982#include <$2>
1983_ACEOF
1984if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986else
1987 ac_header_preproc=no
1988fi
1989rm -f conftest.err conftest.$ac_ext
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991$as_echo "$ac_header_preproc" >&6; }
1992
1993# So? What about this header?
1994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012( cat <<\_ASBOX
2013## ------------------------------------------- ##
2014## Report this to http://gcc.gnu.org/bugs.html ##
2015## ------------------------------------------- ##
2016_ASBOX
2017 ) | sed "s/^/$as_me: WARNING: /" >&2
2018 ;;
2019esac
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024else
2025 eval "$3=\$ac_header_compiler"
2026fi
2027eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029$as_echo "$ac_res" >&6; }
2030fi
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033} # ac_fn_c_check_header_mongrel
2034
2035# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036# --------------------------------------------
2037# Tries to find the compile-time value of EXPR in a program that includes
2038# INCLUDES, setting VAR accordingly. Returns whether the value could be
2039# computed
2040ac_fn_c_compute_int ()
2041{
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h. */
2047$4
2048int
2049main ()
2050{
2051static int test_array [1 - 2 * !(($2) >= 0)];
2052test_array [0] = 0
2053
2054 ;
2055 return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=0 ac_mid=0
2060 while :; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h. */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068test_array [0] = 0
2069
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid; break
2076else
2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078 if test $ac_lo -le $ac_mid; then
2079 ac_lo= ac_hi=
2080 break
2081 fi
2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090int
2091main ()
2092{
2093static int test_array [1 - 2 * !(($2) < 0)];
2094test_array [0] = 0
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=-1 ac_mid=-1
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110test_array [0] = 0
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2118else
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128else
2129 ac_lo= ac_hi=
2130fi
2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134# Binary search between lo and hi bounds.
2135while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144test_array [0] = 0
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid
2152else
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 2156done
5213506e
RW
2157case $ac_lo in #((
2158?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159'') ac_retval=1 ;;
2160esac
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h. */
2164$4
2165static long int longval () { return $2; }
2166static unsigned long int ulongval () { return $2; }
2167#include <stdio.h>
2168#include <stdlib.h>
2169int
2170main ()
2171{
2172
2173 FILE *f = fopen ("conftest.val", "w");
2174 if (! f)
2175 return 1;
2176 if (($2) < 0)
2177 {
2178 long int i = longval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%ld", i);
2182 }
2183 else
2184 {
2185 unsigned long int i = ulongval ();
2186 if (i != ($2))
2187 return 1;
2188 fprintf (f, "%lu", i);
2189 }
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200else
2201 ac_retval=1
2202fi
2203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2205rm -f conftest.val
2206
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 return $ac_retval
2210
2211} # ac_fn_c_compute_int
2212cat >config.log <<_ACEOF
2213This file contains any messages produced by compilers while
2214running configure, to aid debugging if configure makes a mistake.
2215
2216It was created by libffi $as_me 3.0.8, which was
2217generated by GNU Autoconf 2.64. Invocation command line was
2218
2219 $ $0 $@
2220
2221_ACEOF
2222exec 5>>config.log
2223{
2224cat <<_ASUNAME
2225## --------- ##
2226## Platform. ##
2227## --------- ##
2228
2229hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2230uname -m = `(uname -m) 2>/dev/null || echo unknown`
2231uname -r = `(uname -r) 2>/dev/null || echo unknown`
2232uname -s = `(uname -s) 2>/dev/null || echo unknown`
2233uname -v = `(uname -v) 2>/dev/null || echo unknown`
2234
2235/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2236/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2237
2238/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2239/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2240/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2241/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2242/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2243/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2244/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2245
2246_ASUNAME
2247
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 $as_echo "PATH: $as_dir"
2254 done
2255IFS=$as_save_IFS
63e5e3e0 2256
3ed8e5b6 2257} >&5
63e5e3e0 2258
3ed8e5b6 2259cat >&5 <<_ACEOF
63e5e3e0 2260
6706f116 2261
3ed8e5b6
AT
2262## ----------- ##
2263## Core tests. ##
2264## ----------- ##
3c18f2d1 2265
3ed8e5b6 2266_ACEOF
3c18f2d1 2267
3c18f2d1 2268
3ed8e5b6
AT
2269# Keep a trace of the command line.
2270# Strip out --no-create and --no-recursion so they do not pile up.
2271# Strip out --silent because we don't want to record it for future runs.
2272# Also quote any args containing shell meta-characters.
2273# Make two passes to allow for proper duplicate-argument suppression.
2274ac_configure_args=
2275ac_configure_args0=
2276ac_configure_args1=
3ed8e5b6
AT
2277ac_must_keep_next=false
2278for ac_pass in 1 2
2279do
2280 for ac_arg
2281 do
2282 case $ac_arg in
2283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2285 | -silent | --silent | --silen | --sile | --sil)
2286 continue ;;
5213506e
RW
2287 *\'*)
2288 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2289 esac
2290 case $ac_pass in
5213506e 2291 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3ed8e5b6 2292 2)
5213506e 2293 as_fn_append ac_configure_args1 " '$ac_arg'"
3ed8e5b6
AT
2294 if test $ac_must_keep_next = true; then
2295 ac_must_keep_next=false # Got value, back to normal.
2296 else
2297 case $ac_arg in
2298 *=* | --config-cache | -C | -disable-* | --disable-* \
2299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2301 | -with-* | --with-* | -without-* | --without-* | --x)
2302 case "$ac_configure_args0 " in
2303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2304 esac
2305 ;;
2306 -* ) ac_must_keep_next=true ;;
2307 esac
2308 fi
5213506e 2309 as_fn_append ac_configure_args " '$ac_arg'"
3ed8e5b6
AT
2310 ;;
2311 esac
2312 done
63e5e3e0 2313done
5213506e
RW
2314{ ac_configure_args0=; unset ac_configure_args0;}
2315{ ac_configure_args1=; unset ac_configure_args1;}
3ed8e5b6
AT
2316
2317# When interrupted or exit'd, cleanup temporary files, and complete
2318# config.log. We remove comments because anyway the quotes in there
2319# would cause problems or look ugly.
5213506e
RW
2320# WARNING: Use '\'' to represent an apostrophe within the trap.
2321# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3ed8e5b6
AT
2322trap 'exit_status=$?
2323 # Save into config.log some information that might help in debugging.
2324 {
2325 echo
2326
2327 cat <<\_ASBOX
2328## ---------------- ##
2329## Cache variables. ##
2330## ---------------- ##
2331_ASBOX
2332 echo
2333 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2334(
2335 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in #(
2338 *${as_nl}*)
2339 case $ac_var in #(
2340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2341$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2342 esac
2343 case $ac_var in #(
2344 _ | IFS | as_nl) ;; #(
2345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2346 *) { eval $ac_var=; unset $ac_var;} ;;
2347 esac ;;
2348 esac
2349 done
3ed8e5b6 2350 (set) 2>&1 |
5213506e
RW
2351 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2352 *${as_nl}ac_space=\ *)
3ed8e5b6 2353 sed -n \
5213506e
RW
2354 "s/'\''/'\''\\\\'\'''\''/g;
2355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2356 ;; #(
3ed8e5b6 2357 *)
5213506e 2358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 2359 ;;
5213506e
RW
2360 esac |
2361 sort
2362)
3ed8e5b6
AT
2363 echo
2364
2365 cat <<\_ASBOX
2366## ----------------- ##
2367## Output variables. ##
2368## ----------------- ##
2369_ASBOX
2370 echo
2371 for ac_var in $ac_subst_vars
2372 do
5213506e
RW
2373 eval ac_val=\$$ac_var
2374 case $ac_val in
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 esac
2377 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2378 done | sort
2379 echo
2380
2381 if test -n "$ac_subst_files"; then
2382 cat <<\_ASBOX
5213506e
RW
2383## ------------------- ##
2384## File substitutions. ##
2385## ------------------- ##
3ed8e5b6
AT
2386_ASBOX
2387 echo
2388 for ac_var in $ac_subst_files
2389 do
5213506e
RW
2390 eval ac_val=\$$ac_var
2391 case $ac_val in
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393 esac
2394 $as_echo "$ac_var='\''$ac_val'\''"
3ed8e5b6
AT
2395 done | sort
2396 echo
2397 fi
63e5e3e0 2398
3ed8e5b6
AT
2399 if test -s confdefs.h; then
2400 cat <<\_ASBOX
2401## ----------- ##
2402## confdefs.h. ##
2403## ----------- ##
2404_ASBOX
2405 echo
5213506e 2406 cat confdefs.h
3ed8e5b6
AT
2407 echo
2408 fi
2409 test "$ac_signal" != 0 &&
5213506e
RW
2410 $as_echo "$as_me: caught signal $ac_signal"
2411 $as_echo "$as_me: exit $exit_status"
3ed8e5b6 2412 } >&5
5213506e
RW
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3ed8e5b6 2415 exit $exit_status
5213506e 2416' 0
3ed8e5b6 2417for ac_signal in 1 2 13 15; do
5213506e 2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3ed8e5b6
AT
2419done
2420ac_signal=0
63e5e3e0 2421
3ed8e5b6 2422# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2423rm -f -r conftest* confdefs.h
2424
2425$as_echo "/* confdefs.h */" > confdefs.h
6bee5372 2426
3ed8e5b6 2427# Predefined preprocessor variables.
bbf3057b 2428
3ed8e5b6
AT
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_NAME "$PACKAGE_NAME"
2431_ACEOF
bbf3057b 2432
3ed8e5b6
AT
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435_ACEOF
63e5e3e0 2436
3ed8e5b6
AT
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_VERSION "$PACKAGE_VERSION"
2439_ACEOF
63e5e3e0 2440
3ed8e5b6
AT
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_STRING "$PACKAGE_STRING"
2443_ACEOF
bbf3057b 2444
3ed8e5b6
AT
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447_ACEOF
2448
5213506e
RW
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE_URL "$PACKAGE_URL"
2451_ACEOF
2452
3ed8e5b6
AT
2453
2454# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2455# Prefer an explicitly selected file to automatically selected ones.
2456ac_site_file1=NONE
2457ac_site_file2=NONE
2458if test -n "$CONFIG_SITE"; then
2459 ac_site_file1=$CONFIG_SITE
2460elif test "x$prefix" != xNONE; then
2461 ac_site_file1=$prefix/share/config.site
2462 ac_site_file2=$prefix/etc/config.site
2463else
2464 ac_site_file1=$ac_default_prefix/share/config.site
2465 ac_site_file2=$ac_default_prefix/etc/config.site
2466fi
2467for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2468do
2469 test "x$ac_site_file" = xNONE && continue
3ed8e5b6 2470 if test -r "$ac_site_file"; then
5213506e
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2472$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3ed8e5b6
AT
2473 sed 's/^/| /' "$ac_site_file" >&5
2474 . "$ac_site_file"
2475 fi
2476done
2477
2478if test -r "$cache_file"; then
2479 # Some versions of bash will fail to source /dev/null (special
2480 # files actually), so we avoid doing that.
2481 if test -f "$cache_file"; then
5213506e
RW
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2483$as_echo "$as_me: loading cache $cache_file" >&6;}
3ed8e5b6 2484 case $cache_file in
5213506e
RW
2485 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2486 *) . "./$cache_file";;
3ed8e5b6
AT
2487 esac
2488 fi
2489else
5213506e
RW
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2491$as_echo "$as_me: creating cache $cache_file" >&6;}
3ed8e5b6
AT
2492 >$cache_file
2493fi
2494
2495# Check that the precious variables saved in the cache have kept the same
2496# value.
2497ac_cache_corrupted=false
5213506e 2498for ac_var in $ac_precious_vars; do
3ed8e5b6
AT
2499 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2500 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2501 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2502 eval ac_new_val=\$ac_env_${ac_var}_value
3ed8e5b6
AT
2503 case $ac_old_set,$ac_new_set in
2504 set,)
5213506e
RW
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2506$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3ed8e5b6
AT
2507 ac_cache_corrupted=: ;;
2508 ,set)
5213506e
RW
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2510$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3ed8e5b6
AT
2511 ac_cache_corrupted=: ;;
2512 ,);;
2513 *)
2514 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2515 # differences in whitespace do not lead to failure.
2516 ac_old_val_w=`echo x $ac_old_val`
2517 ac_new_val_w=`echo x $ac_new_val`
2518 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2520$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2521 ac_cache_corrupted=:
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2524$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2525 eval $ac_var=\$ac_old_val
2526 fi
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2528$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2530$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
2531 fi;;
2532 esac
2533 # Pass precious variables to config.status.
2534 if test "$ac_new_set" = set; then
2535 case $ac_new_val in
5213506e 2536 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3ed8e5b6
AT
2537 *) ac_arg=$ac_var=$ac_new_val ;;
2538 esac
2539 case " $ac_configure_args " in
2540 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2541 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3ed8e5b6
AT
2542 esac
2543 fi
2544done
2545if $ac_cache_corrupted; then
5213506e
RW
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2549$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2550 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3ed8e5b6 2551fi
5213506e
RW
2552## -------------------- ##
2553## Main body of script. ##
2554## -------------------- ##
3ed8e5b6
AT
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564
2565
5213506e 2566ac_config_headers="$ac_config_headers fficonfig.h"
3ed8e5b6
AT
2567
2568
2569# Default to --enable-multilib
5213506e
RW
2570# Check whether --enable-multilib was given.
2571if test "${enable_multilib+set}" = set; then :
2572 enableval=$enable_multilib; case "$enableval" in
3ed8e5b6
AT
2573 yes) multilib=yes ;;
2574 no) multilib=no ;;
5213506e 2575 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3ed8e5b6
AT
2576 esac
2577else
2578 multilib=yes
5213506e
RW
2579fi
2580
3ed8e5b6
AT
2581
2582# We may get other options which we leave undocumented:
2583# --with-target-subdir, --with-multisrctop, --with-multisubdir
2584# See config-ml.in if you want the gory details.
2585
2586if test "$srcdir" = "."; then
2587 if test "$with_target_subdir" != "."; then
2588 multi_basedir="$srcdir/$with_multisrctop../.."
2589 else
2590 multi_basedir="$srcdir/$with_multisrctop.."
2591 fi
2592else
2593 multi_basedir="$srcdir/.."
2594fi
2595
2596
8a489465
JH
2597# Even if the default multilib is not a cross compilation,
2598# it may be that some of the other multilibs are.
2599if test $cross_compiling = no && test $multilib = yes \
2600 && test "x${with_multisubdir}" != x ; then
2601 cross_compiling=maybe
2602fi
2603
5213506e 2604ac_config_commands="$ac_config_commands default-1"
3ed8e5b6 2605
3ed8e5b6 2606
076e5443 2607ac_aux_dir=
5213506e
RW
2608for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609 for ac_t in install-sh install.sh shtool; do
2610 if test -f "$ac_dir/$ac_t"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/$ac_t -c"
2613 break 2
2614 fi
2615 done
3ed8e5b6
AT
2616done
2617if test -z "$ac_aux_dir"; then
5213506e 2618 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3ed8e5b6 2619fi
5213506e
RW
2620
2621# These three variables are undocumented and unsupported,
2622# and are intended to be withdrawn in a future Autoconf release.
2623# They can cause serious problems if a builder's source tree is in a directory
2624# whose full name contains unusual characters.
2625ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628
3ed8e5b6 2629
3ed8e5b6 2630# Make sure we can run config.sub.
5213506e
RW
2631$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635$as_echo_n "checking build system type... " >&6; }
2636if test "${ac_cv_build+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638else
2639 ac_build_alias=$build_alias
2640test "x$ac_build_alias" = x &&
2641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642test "x$ac_build_alias" = x &&
2643 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646
2647fi
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649$as_echo "$ac_cv_build" >&6; }
2650case $ac_cv_build in
2651*-*-*) ;;
2652*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2653esac
3ed8e5b6 2654build=$ac_cv_build
5213506e
RW
2655ac_save_IFS=$IFS; IFS='-'
2656set x $ac_cv_build
2657shift
2658build_cpu=$1
2659build_vendor=$2
2660shift; shift
2661# Remember, the first character of IFS is used to create $*,
2662# except with old shells:
2663build_os=$*
2664IFS=$ac_save_IFS
2665case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2666
2667
5213506e
RW
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669$as_echo_n "checking host system type... " >&6; }
2670if test "${ac_cv_host+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
3ed8e5b6 2672else
5213506e
RW
2673 if test "x$host_alias" = x; then
2674 ac_cv_host=$ac_cv_build
2675else
2676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2678fi
3ed8e5b6
AT
2679
2680fi
5213506e
RW
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682$as_echo "$ac_cv_host" >&6; }
2683case $ac_cv_host in
2684*-*-*) ;;
2685*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2686esac
3ed8e5b6 2687host=$ac_cv_host
5213506e
RW
2688ac_save_IFS=$IFS; IFS='-'
2689set x $ac_cv_host
2690shift
2691host_cpu=$1
2692host_vendor=$2
2693shift; shift
2694# Remember, the first character of IFS is used to create $*,
2695# except with old shells:
2696host_os=$*
2697IFS=$ac_save_IFS
2698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2699
2700
5213506e
RW
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2702$as_echo_n "checking target system type... " >&6; }
2703if test "${ac_cv_target+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2705else
2706 if test "x$target_alias" = x; then
2707 ac_cv_target=$ac_cv_host
3ed8e5b6 2708else
5213506e
RW
2709 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2710 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2711fi
3ed8e5b6
AT
2712
2713fi
5213506e
RW
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2715$as_echo "$ac_cv_target" >&6; }
2716case $ac_cv_target in
2717*-*-*) ;;
2718*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2719esac
3ed8e5b6 2720target=$ac_cv_target
5213506e
RW
2721ac_save_IFS=$IFS; IFS='-'
2722set x $ac_cv_target
2723shift
2724target_cpu=$1
2725target_vendor=$2
2726shift; shift
2727# Remember, the first character of IFS is used to create $*,
2728# except with old shells:
2729target_os=$*
2730IFS=$ac_save_IFS
2731case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3ed8e5b6
AT
2732
2733
2734# The aliases save the names the user supplied, while $host etc.
2735# will get canonicalized.
2736test -n "$target_alias" &&
bbf3057b
AT
2737 test "$program_prefix$program_suffix$program_transform_name" = \
2738 NONENONEs,x,x, &&
2739 program_prefix=${target_alias}-
5213506e 2740
3ed8e5b6
AT
2741target_alias=${target_alias-$host_alias}
2742
88d8c771
AG
2743. ${srcdir}/configure.host
2744
5213506e
RW
2745am__api_version='1.11'
2746
3ed8e5b6
AT
2747# Find a good install program. We prefer a C program (faster),
2748# so one script is as good as another. But avoid the broken or
2749# incompatible versions:
2750# SysV /etc/install, /usr/sbin/install
2751# SunOS /usr/etc/install
2752# IRIX /sbin/install
2753# AIX /bin/install
2754# AmigaOS /C/install, which installs bootblocks on floppy discs
2755# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2756# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2757# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2758# OS/2's system install, which has a completely different semantic
2759# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2760# Reject install programs that cannot install multiple files.
5213506e
RW
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2762$as_echo_n "checking for a BSD-compatible install... " >&6; }
3ed8e5b6 2763if test -z "$INSTALL"; then
5213506e
RW
2764if test "${ac_cv_path_install+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
2766else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
5213506e
RW
2772 # Account for people who put trailing slashes in PATH elements.
2773case $as_dir/ in #((
2774 ./ | .// | /[cC]/* | \
3ed8e5b6 2775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2776 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3ed8e5b6
AT
2777 /usr/ucb/* ) ;;
2778 *)
2779 # OSF1 and SCO ODT 3.0 have their own names for install.
2780 # Don't use installbsd from OSF since it installs stuff as root
2781 # by default.
2782 for ac_prog in ginstall scoinst install; do
2783 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2784 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3ed8e5b6
AT
2785 if test $ac_prog = install &&
2786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2787 # AIX install. It has an incompatible calling convention.
2788 :
2789 elif test $ac_prog = install &&
2790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2791 # program-specific install script used by HP pwplus--don't use.
2792 :
2793 else
38d24731
RW
2794 rm -rf conftest.one conftest.two conftest.dir
2795 echo one > conftest.one
2796 echo two > conftest.two
2797 mkdir conftest.dir
2798 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2799 test -s conftest.one && test -s conftest.two &&
2800 test -s conftest.dir/conftest.one &&
2801 test -s conftest.dir/conftest.two
2802 then
2803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2804 break 3
2805 fi
3ed8e5b6
AT
2806 fi
2807 fi
2808 done
2809 done
2810 ;;
2811esac
5213506e
RW
2812
2813 done
2814IFS=$as_save_IFS
3ed8e5b6 2815
38d24731 2816rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
2817
2818fi
2819 if test "${ac_cv_path_install+set}" = set; then
2820 INSTALL=$ac_cv_path_install
2821 else
38d24731
RW
2822 # As a last resort, use the slow shell script. Don't cache a
2823 # value for INSTALL within a source directory, because that will
3ed8e5b6 2824 # break other packages using the cache if that directory is
38d24731 2825 # removed, or if the value is a relative name.
3ed8e5b6
AT
2826 INSTALL=$ac_install_sh
2827 fi
2828fi
5213506e
RW
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2830$as_echo "$INSTALL" >&6; }
3ed8e5b6
AT
2831
2832# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2833# It thinks the first close brace ends the variable substitution.
2834test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2835
2836test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2837
2838test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2839
5213506e
RW
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2841$as_echo_n "checking whether build environment is sane... " >&6; }
3ed8e5b6
AT
2842# Just in case
2843sleep 1
2844echo timestamp > conftest.file
5213506e
RW
2845# Reject unsafe characters in $srcdir or the absolute working directory
2846# name. Accept space and tab only in the latter.
2847am_lf='
2848'
2849case `pwd` in
2850 *[\\\"\#\$\&\'\`$am_lf]*)
2851 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2852esac
2853case $srcdir in
2854 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2855 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2856esac
2857
3ed8e5b6
AT
2858# Do `set' in a subshell so we don't clobber the current shell's
2859# arguments. Must try -L first in case configure is actually a
2860# symlink; some systems play weird games with the mod time of symlinks
2861# (eg FreeBSD returns the mod time of the symlink's containing
2862# directory).
2863if (
5213506e 2864 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3ed8e5b6
AT
2865 if test "$*" = "X"; then
2866 # -L didn't work.
5213506e 2867 set X `ls -t "$srcdir/configure" conftest.file`
3ed8e5b6
AT
2868 fi
2869 rm -f conftest.file
2870 if test "$*" != "X $srcdir/configure conftest.file" \
2871 && test "$*" != "X conftest.file $srcdir/configure"; then
2872
2873 # If neither matched, then we have a broken ls. This can happen
2874 # if, for instance, CONFIG_SHELL is bash and it inherits a
2875 # broken ls alias from the environment. This has actually
2876 # happened. Such a system could not be considered "sane".
5213506e
RW
2877 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2878alias in your environment" "$LINENO" 5
3ed8e5b6
AT
2879 fi
2880
2881 test "$2" = conftest.file
2882 )
2883then
2884 # Ok.
2885 :
2886else
5213506e
RW
2887 as_fn_error "newly created file is older than distributed files!
2888Check your system clock" "$LINENO" 5
3ed8e5b6 2889fi
5213506e
RW
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891$as_echo "yes" >&6; }
3ed8e5b6 2892test "$program_prefix" != NONE &&
5213506e 2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3ed8e5b6
AT
2894# Use a double $ so make ignores it.
2895test "$program_suffix" != NONE &&
5213506e
RW
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897# Double any \ or $.
3ed8e5b6 2898# By default was `s,x,x', remove it if useless.
5213506e
RW
2899ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3ed8e5b6 2901
3ed8e5b6
AT
2902# expand $ac_aux_dir to an absolute path
2903am_aux_dir=`cd $ac_aux_dir && pwd`
2904
5213506e
RW
2905if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912fi
3ed8e5b6
AT
2913# Use eval to expand $SHELL
2914if eval "$MISSING --run true"; then
2915 am_missing_run="$MISSING --run "
2916else
2917 am_missing_run=
5213506e
RW
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2919$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2920fi
2921
2922if test x"${install_sh}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926 *)
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2929fi
2930
2931# Installed binaries are usually stripped using `strip' when the user
2932# run `make install-strip'. However `strip' might not be the right
2933# tool to use in cross-compilation environments, therefore Automake
2934# will honor the `STRIP' environment variable to overrule this program.
2935if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938set dummy ${ac_tool_prefix}strip; ac_word=$2
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_STRIP+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958done
2959 done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964STRIP=$ac_cv_prog_STRIP
2965if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967$as_echo "$STRIP" >&6; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971fi
2972
2973
2974fi
2975if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978set dummy strip; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999 done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007$as_echo "$ac_ct_STRIP" >&6; }
3008else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022 STRIP=$ac_ct_STRIP
3023 fi
3024else
3025 STRIP="$ac_cv_prog_STRIP"
3026fi
3027
3028fi
3029INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033if test -z "$MKDIR_P"; then
3034 if test "${ac_cv_path_mkdir+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
076e5443 3054 done
5213506e
RW
3055IFS=$as_save_IFS
3056
3057fi
3058
3059 if test "${ac_cv_path_mkdir+set}" = set; then
3060 MKDIR_P="$ac_cv_path_mkdir -p"
076e5443 3061 else
5213506e
RW
3062 # As a last resort, use the slow shell script. Don't cache a
3063 # value for MKDIR_P within a source directory, because that will
3064 # break other packages using the cache if that directory is
3065 # removed, or if the value is a relative name.
3066 test -d ./--version && rmdir ./--version
3067 MKDIR_P="$ac_install_sh -d"
076e5443
PB
3068 fi
3069fi
5213506e
RW
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071$as_echo "$MKDIR_P" >&6; }
3072
3073mkdir_p="$MKDIR_P"
3074case $mkdir_p in
3075 [\\/$]* | ?:[\\/]*) ;;
3076 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3077esac
076e5443 3078
3ed8e5b6
AT
3079for ac_prog in gawk mawk nawk awk
3080do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082set dummy $ac_prog; ac_word=$2
5213506e
RW
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_AWK+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3087else
3088 if test -n "$AWK"; then
3089 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
5213506e
RW
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3098 ac_cv_prog_AWK="$ac_prog"
5213506e 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3100 break 2
3101 fi
3102done
5213506e
RW
3103 done
3104IFS=$as_save_IFS
3ed8e5b6
AT
3105
3106fi
3107fi
3108AWK=$ac_cv_prog_AWK
3109if test -n "$AWK"; then
5213506e
RW
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3111$as_echo "$AWK" >&6; }
3ed8e5b6 3112else
5213506e
RW
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3ed8e5b6
AT
3115fi
3116
5213506e 3117
3ed8e5b6
AT
3118 test -n "$AWK" && break
3119done
3120
5213506e
RW
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3122$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3123set x ${MAKE-make}
3124ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3125if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3126 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3127else
3128 cat >conftest.make <<\_ACEOF
5213506e 3129SHELL = /bin/sh
3ed8e5b6 3130all:
5213506e 3131 @echo '@@@%%%=$(MAKE)=@@@%%%'
3ed8e5b6
AT
3132_ACEOF
3133# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
3134case `${MAKE-make} -f conftest.make 2>/dev/null` in
3135 *@@@%%%=?*=@@@%%%*)
3136 eval ac_cv_prog_make_${ac_make}_set=yes;;
3137 *)
3138 eval ac_cv_prog_make_${ac_make}_set=no;;
3139esac
3ed8e5b6
AT
3140rm -f conftest.make
3141fi
5213506e
RW
3142if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144$as_echo "yes" >&6; }
3ed8e5b6
AT
3145 SET_MAKE=
3146else
5213506e
RW
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3ed8e5b6
AT
3149 SET_MAKE="MAKE=${MAKE-make}"
3150fi
3151
3152rm -rf .tst 2>/dev/null
3153mkdir .tst 2>/dev/null
3154if test -d .tst; then
3155 am__leading_dot=.
3156else
3157 am__leading_dot=_
3158fi
3159rmdir .tst 2>/dev/null
3160
5213506e
RW
3161if test "`cd $srcdir && pwd`" != "`pwd`"; then
3162 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3163 # is not polluted with repeated "-I."
3164 am__isrc=' -I$(srcdir)'
3165 # test to see if srcdir already configured
3166 if test -f $srcdir/config.status; then
3167 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3168 fi
3ed8e5b6
AT
3169fi
3170
3171# test whether we have cygpath
3172if test -z "$CYGPATH_W"; then
3173 if (cygpath --version) >/dev/null 2>/dev/null; then
3174 CYGPATH_W='cygpath -w'
3175 else
3176 CYGPATH_W=echo
3177 fi
3178fi
3179
3180
3181# Define the identity of the package.
3182 PACKAGE='libffi'
b7b857bb 3183 VERSION='3.0.8'
3ed8e5b6
AT
3184
3185
3186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE "$PACKAGE"
3188_ACEOF
3189
3190
3191cat >>confdefs.h <<_ACEOF
3192#define VERSION "$VERSION"
3193_ACEOF
3194
3195# Some tools Automake needs.
3196
3197ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3198
3199
3200AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3201
3202
3203AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3204
3205
3206AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3207
3208
3209MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3210
3ed8e5b6
AT
3211# We need awk for the "check" target. The system "awk" is bad on
3212# some platforms.
b85e31b9
KC
3213# Always define AMTAR for backward compatibility.
3214
3215AMTAR=${AMTAR-"${am_missing_run}tar"}
3216
3217am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3218
3219
3ed8e5b6
AT
3220
3221
3222
3223
3224# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3225# We must force CC to /not/ be precious variables; otherwise
3226# the wrong, non-multilib-adjusted value will be used in multilibs.
3227# As a side effect, we have to subst CFLAGS ourselves.
3228
3229
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
3241if test "${ac_cv_prog_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
5213506e
RW
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3256 break 2
3257 fi
3258done
5213506e
RW
3259 done
3260IFS=$as_save_IFS
3ed8e5b6
AT
3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
5213506e
RW
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3ed8e5b6 3268else
5213506e
RW
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3ed8e5b6
AT
3271fi
3272
5213506e 3273
3ed8e5b6
AT
3274fi
3275if test -z "$ac_cv_prog_CC"; then
3276 ac_ct_CC=$CC
3277 # Extract the first word of "gcc", so it can be a program name with args.
3278set dummy gcc; ac_word=$2
5213506e
RW
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
5213506e
RW
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3294 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3296 break 2
3297 fi
3298done
5213506e
RW
3299 done
3300IFS=$as_save_IFS
3ed8e5b6
AT
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
5213506e
RW
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3308else
5213506e
RW
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3ed8e5b6
AT
3311fi
3312
5213506e
RW
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317yes:)
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320ac_tool_warned=yes ;;
3321esac
3322 CC=$ac_ct_CC
3323 fi
3ed8e5b6
AT
3324else
3325 CC="$ac_cv_prog_CC"
3326fi
3327
3328if test -z "$CC"; then
5213506e
RW
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3ed8e5b6 3331set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if test "${ac_cv_prog_CC+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3336else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
5213506e
RW
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3349 break 2
3350 fi
3351done
5213506e
RW
3352 done
3353IFS=$as_save_IFS
3ed8e5b6
AT
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
5213506e
RW
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3ed8e5b6 3361else
5213506e
RW
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3ed8e5b6
AT
3364fi
3365
3ed8e5b6 3366
5213506e 3367 fi
3ed8e5b6
AT
3368fi
3369if test -z "$CC"; then
3370 # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
5213506e
RW
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if test "${ac_cv_prog_CC+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3376else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380 ac_prog_rejected=no
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
5213506e
RW
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6
AT
3388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3389 ac_prog_rejected=yes
3390 continue
3391 fi
3392 ac_cv_prog_CC="cc"
5213506e 3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3394 break 2
3395 fi
3396done
5213506e
RW
3397 done
3398IFS=$as_save_IFS
3ed8e5b6
AT
3399
3400if test $ac_prog_rejected = yes; then
3401 # We found a bogon in the path, so make sure we never use it.
3402 set dummy $ac_cv_prog_CC
3403 shift
3404 if test $# != 0; then
3405 # We chose a different compiler from the bogus one.
3406 # However, it has the same basename, so the bogon will be chosen
3407 # first if we set CC to just the basename; use the full file name.
3408 shift
3409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3410 fi
3411fi
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
5213506e
RW
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
3ed8e5b6 3418else
5213506e
RW
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3ed8e5b6
AT
3421fi
3422
5213506e 3423
3ed8e5b6
AT
3424fi
3425if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
5213506e 3427 for ac_prog in cl.exe
3ed8e5b6
AT
3428 do
3429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if test "${ac_cv_prog_CC+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3435else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
5213506e
RW
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3448 break 2
3449 fi
3450done
5213506e
RW
3451 done
3452IFS=$as_save_IFS
3ed8e5b6
AT
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
5213506e
RW
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3ed8e5b6 3460else
5213506e
RW
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3ed8e5b6
AT
3463fi
3464
5213506e 3465
3ed8e5b6
AT
3466 test -n "$CC" && break
3467 done
3468fi
3469if test -z "$CC"; then
3470 ac_ct_CC=$CC
5213506e 3471 for ac_prog in cl.exe
3ed8e5b6
AT
3472do
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474set dummy $ac_prog; ac_word=$2
5213506e
RW
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
3477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
3479else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
5213506e
RW
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 3490 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
3492 break 2
3493 fi
3494done
5213506e
RW
3495 done
3496IFS=$as_save_IFS
3ed8e5b6
AT
3497
3498fi
3499fi
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
5213506e
RW
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503$as_echo "$ac_ct_CC" >&6; }
3ed8e5b6 3504else
5213506e
RW
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3ed8e5b6
AT
3507fi
3508
5213506e 3509
3ed8e5b6
AT
3510 test -n "$ac_ct_CC" && break
3511done
3512
5213506e
RW
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522 CC=$ac_ct_CC
3523 fi
3ed8e5b6
AT
3524fi
3525
3526fi
3527
3528
5213506e
RW
3529test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error "no acceptable C compiler found in \$PATH
3532See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3533
3534# Provide some information about the compiler.
5213506e
RW
3535$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536set X $ac_compile
3537ac_compiler=$2
3538for ac_option in --version -v -V -qversion; do
3539 { { ac_try="$ac_compiler $ac_option >&5"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3ed8e5b6 3547 ac_status=$?
5213506e
RW
3548 if test -s conftest.err; then
3549 sed '10a\
3550... rest of stderr output deleted ...
3551 10q' conftest.err >conftest.er1
3552 cat conftest.er1 >&5
3553 rm -f conftest.er1 conftest.err
3554 fi
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }
3557done
3ed8e5b6 3558
5213506e 3559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3560/* end confdefs.h. */
3561
3562int
3563main ()
3564{
3565
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570ac_clean_files_save=$ac_clean_files
5213506e 3571ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3ed8e5b6
AT
3572# Try to create an executable without -o first, disregard a.out.
3573# It will help us diagnose broken compilers, and finding out an intuition
3574# of exeext.
5213506e
RW
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576$as_echo_n "checking for C compiler default output file name... " >&6; }
3577ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578
3579# The possible output files:
3580ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581
3582ac_rmfiles=
3583for ac_file in $ac_files
3584do
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588 esac
3589done
3590rm -f $ac_rmfiles
3591
3592if { { ac_try="$ac_link_default"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link_default") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605# in a Makefile. We should not override ac_cv_exeext if it was cached,
3606# so that the user can short-circuit this test for compilers unknown to
3607# Autoconf.
3608for ac_file in $ac_files ''
3ed8e5b6
AT
3609do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
5213506e 3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3ed8e5b6
AT
3613 ;;
3614 [ab].out )
3615 # We found the default executable, but exeext='' is most
3616 # certainly right.
3617 break;;
3618 *.* )
5213506e
RW
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 then :; else
3621 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 fi
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3627 # actually working.
3ed8e5b6
AT
3628 break;;
3629 * )
3630 break;;
3631 esac
3632done
5213506e
RW
3633test "$ac_cv_exeext" = no && ac_cv_exeext=
3634
3ed8e5b6 3635else
5213506e
RW
3636 ac_file=''
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3639$as_echo "$ac_file" >&6; }
3640if test -z "$ac_file"; then :
3641 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
5213506e
RW
3644{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646{ as_fn_set_status 77
3647as_fn_error "C compiler cannot create executables
3648See \`config.log' for more details." "$LINENO" 5; }; }
3ed8e5b6 3649fi
3ed8e5b6 3650ac_exeext=$ac_cv_exeext
3ed8e5b6 3651
5213506e 3652# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3653# the compiler is broken, or we cross compile.
5213506e
RW
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3655$as_echo_n "checking whether the C compiler works... " >&6; }
3ed8e5b6
AT
3656# If not cross compiling, check that we can run a simple program.
3657if test "$cross_compiling" != yes; then
3658 if { ac_try='./$ac_file'
5213506e
RW
3659 { { case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_try") 2>&5
3ed8e5b6 3666 ac_status=$?
5213506e
RW
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; }; then
3ed8e5b6
AT
3669 cross_compiling=no
3670 else
3671 if test "$cross_compiling" = maybe; then
3672 cross_compiling=yes
3673 else
5213506e
RW
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676as_fn_error "cannot run C compiled programs.
3ed8e5b6 3677If you meant to cross compile, use \`--host'.
5213506e 3678See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6
AT
3679 fi
3680 fi
3681fi
5213506e
RW
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3683$as_echo "yes" >&6; }
3ed8e5b6 3684
5213506e 3685rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3ed8e5b6 3686ac_clean_files=$ac_clean_files_save
5213506e 3687# Check that the compiler produces executables we can run. If not, either
3ed8e5b6 3688# the compiler is broken, or we cross compile.
5213506e
RW
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3690$as_echo_n "checking whether we are cross compiling... " >&6; }
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3692$as_echo "$cross_compiling" >&6; }
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695$as_echo_n "checking for suffix of executables... " >&6; }
3696if { { ac_try="$ac_link"
3697case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702$as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3ed8e5b6 3704 ac_status=$?
5213506e
RW
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3ed8e5b6
AT
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709# work properly (i.e., refer to `conftest.exe'), while it won't with
3710# `rm'.
3711for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3713 case $ac_file in
5213506e 3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3ed8e5b6 3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3ed8e5b6
AT
3716 break;;
3717 * ) break;;
3718 esac
3719done
3720else
5213506e
RW
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723as_fn_error "cannot compute suffix of executables: cannot compile and link
3724See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3725fi
3ed8e5b6 3726rm -f conftest$ac_cv_exeext
5213506e
RW
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728$as_echo "$ac_cv_exeext" >&6; }
3ed8e5b6
AT
3729
3730rm -f conftest.$ac_ext
3731EXEEXT=$ac_cv_exeext
3732ac_exeext=$EXEEXT
5213506e
RW
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3734$as_echo_n "checking for suffix of object files... " >&6; }
3735if test "${ac_cv_objext+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3ed8e5b6 3737else
5213506e 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3739/* end confdefs.h. */
3740
3741int
3742main ()
3743{
3744
3745 ;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest.o conftest.obj
5213506e
RW
3750if { { ac_try="$ac_compile"
3751case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754esac
3755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756$as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_compile") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 for ac_file in conftest.o conftest.obj conftest.*; do
3762 test -f "$ac_file" || continue;
3ed8e5b6 3763 case $ac_file in
5213506e 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3ed8e5b6
AT
3765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3766 break;;
3767 esac
3768done
3769else
5213506e 3770 $as_echo "$as_me: failed program was:" >&5
3ed8e5b6
AT
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
5213506e
RW
3773{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775as_fn_error "cannot compute suffix of object files: cannot compile
3776See \`config.log' for more details." "$LINENO" 5; }
3ed8e5b6 3777fi
3ed8e5b6
AT
3778rm -f conftest.$ac_cv_objext conftest.$ac_ext
3779fi
5213506e
RW
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3781$as_echo "$ac_cv_objext" >&6; }
3ed8e5b6
AT
3782OBJEXT=$ac_cv_objext
3783ac_objext=$OBJEXT
5213506e
RW
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3785$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3786if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3ed8e5b6 3788else
5213506e 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3790/* end confdefs.h. */
3791
3792int
3793main ()
3794{
3795#ifndef __GNUC__
3796 choke me
3797#endif
3798
3799 ;
3800 return 0;
3801}
3802_ACEOF
5213506e 3803if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3804 ac_compiler_gnu=yes
3805else
5213506e 3806 ac_compiler_gnu=no
3ed8e5b6 3807fi
5213506e 3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
3809ac_cv_c_compiler_gnu=$ac_compiler_gnu
3810
3811fi
5213506e
RW
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3813$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3814if test $ac_compiler_gnu = yes; then
3815 GCC=yes
3816else
3817 GCC=
3818fi
3ed8e5b6
AT
3819ac_test_CFLAGS=${CFLAGS+set}
3820ac_save_CFLAGS=$CFLAGS
5213506e
RW
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3822$as_echo_n "checking whether $CC accepts -g... " >&6; }
3823if test "${ac_cv_prog_cc_g+set}" = set; then :
3824 $as_echo_n "(cached) " >&6
3825else
3826 ac_save_c_werror_flag=$ac_c_werror_flag
3827 ac_c_werror_flag=yes
3828 ac_cv_prog_cc_g=no
3829 CFLAGS="-g"
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3831/* end confdefs.h. */
3832
3833int
3834main ()
3835{
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
5213506e 3841if ac_fn_c_try_compile "$LINENO"; then :
3ed8e5b6
AT
3842 ac_cv_prog_cc_g=yes
3843else
5213506e
RW
3844 CFLAGS=""
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
3856if ac_fn_c_try_compile "$LINENO"; then :
3857
3858else
3859 ac_c_werror_flag=$ac_save_c_werror_flag
3860 CFLAGS="-g"
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h. */
3ed8e5b6 3863
5213506e
RW
3864int
3865main ()
3866{
3867
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_g=yes
3874fi
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3876fi
5213506e 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6 3878fi
5213506e
RW
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3883$as_echo "$ac_cv_prog_cc_g" >&6; }
3ed8e5b6
AT
3884if test "$ac_test_CFLAGS" = set; then
3885 CFLAGS=$ac_save_CFLAGS
3886elif test $ac_cv_prog_cc_g = yes; then
3887 if test "$GCC" = yes; then
3888 CFLAGS="-g -O2"
3889 else
3890 CFLAGS="-g"
3891 fi
3892else
3893 if test "$GCC" = yes; then
3894 CFLAGS="-O2"
3895 else
3896 CFLAGS=
3897 fi
3898fi
5213506e
RW
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3900$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3901if test "${ac_cv_prog_cc_c89+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3ed8e5b6 3903else
5213506e 3904 ac_cv_prog_cc_c89=no
3ed8e5b6 3905ac_save_CC=$CC
5213506e 3906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
3907/* end confdefs.h. */
3908#include <stdarg.h>
3909#include <stdio.h>
3910#include <sys/types.h>
3911#include <sys/stat.h>
3912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913struct buf { int x; };
3914FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915static char *e (p, i)
3916 char **p;
3917 int i;
3918{
3919 return p[i];
3920}
3921static char *f (char * (*g) (char **, int), char **p, ...)
3922{
3923 char *s;
3924 va_list v;
3925 va_start (v,p);
3926 s = g (p, va_arg (v,int));
3927 va_end (v);
3928 return s;
3929}
3930
3931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
5213506e 3934 as 'x'. The following induces an error, until -std is added to get
3ed8e5b6
AT
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3937 that's true only with -std. */
3ed8e5b6
AT
3938int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939
5213506e
RW
3940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941 inside strings and character constants. */
3942#define FOO(x) 'x'
3943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3944
3ed8e5b6
AT
3945int test (int i, double x);
3946struct s1 {int (*f) (int a);};
3947struct s2 {int (*f) (double a);};
3948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3949int argc;
3950char **argv;
3951int
3952main ()
3953{
3954return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3955 ;
3956 return 0;
3957}
3958_ACEOF
5213506e
RW
3959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3ed8e5b6
AT
3961do
3962 CC="$ac_save_CC $ac_arg"
5213506e
RW
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_c89=$ac_arg
3ed8e5b6 3965fi
5213506e
RW
3966rm -f core conftest.err conftest.$ac_objext
3967 test "x$ac_cv_prog_cc_c89" != "xno" && break
3ed8e5b6 3968done
5213506e 3969rm -f conftest.$ac_ext
3ed8e5b6
AT
3970CC=$ac_save_CC
3971
3972fi
5213506e
RW
3973# AC_CACHE_VAL
3974case "x$ac_cv_prog_cc_c89" in
3975 x)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977$as_echo "none needed" >&6; } ;;
3978 xno)
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980$as_echo "unsupported" >&6; } ;;
3ed8e5b6 3981 *)
5213506e
RW
3982 CC="$CC $ac_cv_prog_cc_c89"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3ed8e5b6 3985esac
5213506e 3986if test "x$ac_cv_prog_cc_c89" != xno; then :
3ed8e5b6
AT
3987
3988fi
3ed8e5b6 3989
3ed8e5b6
AT
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995DEPDIR="${am__leading_dot}deps"
3996
5213506e 3997ac_config_commands="$ac_config_commands depfiles"
3ed8e5b6
AT
3998
3999
4000am_make=${MAKE-make}
4001cat > confinc << 'END'
4002am__doit:
5213506e 4003 @echo this is the am__doit target
3ed8e5b6
AT
4004.PHONY: am__doit
4005END
4006# If we don't find an include directive, just comment out the code.
5213506e
RW
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008$as_echo_n "checking for style of include used by $am_make... " >&6; }
3ed8e5b6
AT
4009am__include="#"
4010am__quote=
4011_am_result=none
4012# First try GNU make style include.
4013echo "include confinc" > confmf
5213506e
RW
4014# Ignore all kinds of additional output from `make'.
4015case `$am_make -s -f confmf 2> /dev/null` in #(
4016*the\ am__doit\ target*)
4017 am__include=include
4018 am__quote=
4019 _am_result=GNU
4020 ;;
4021esac
3ed8e5b6
AT
4022# Now try BSD make style include.
4023if test "$am__include" = "#"; then
4024 echo '.include "confinc"' > confmf
5213506e
RW
4025 case `$am_make -s -f confmf 2> /dev/null` in #(
4026 *the\ am__doit\ target*)
4027 am__include=.include
4028 am__quote="\""
4029 _am_result=BSD
4030 ;;
4031 esac
3ed8e5b6
AT
4032fi
4033
4034
5213506e
RW
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036$as_echo "$_am_result" >&6; }
3ed8e5b6
AT
4037rm -f confinc confmf
4038
5213506e
RW
4039# Check whether --enable-dependency-tracking was given.
4040if test "${enable_dependency_tracking+set}" = set; then :
4041 enableval=$enable_dependency_tracking;
4042fi
3ed8e5b6 4043
3ed8e5b6
AT
4044if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4046 AMDEPBACKSLASH='\'
4047fi
5213506e 4048 if test "x$enable_dependency_tracking" != xno; then
3ed8e5b6
AT
4049 AMDEP_TRUE=
4050 AMDEP_FALSE='#'
4051else
4052 AMDEP_TRUE='#'
4053 AMDEP_FALSE=
4054fi
4055
4056
4057
3ed8e5b6
AT
4058depcc="$CC" am_compiler_list=
4059
5213506e
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4061$as_echo_n "checking dependency style of $depcc... " >&6; }
4062if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
3ed8e5b6
AT
4064else
4065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4066 # We make a subdir and do the tests there. Otherwise we can end up
4067 # making bogus files that we don't know about and never remove. For
4068 # instance it was reported that on HP-UX the gcc test will end up
4069 # making a dummy file named `D' -- because `-MD' means `put the output
4070 # in D'.
4071 mkdir conftest.dir
4072 # Copy depcomp to subdir because otherwise we won't find it if we're
4073 # using a relative directory.
4074 cp "$am_depcomp" conftest.dir
4075 cd conftest.dir
4076 # We will build objects and dependencies in a subdirectory because
4077 # it helps to detect inapplicable dependency modes. For instance
4078 # both Tru64's cc and ICC support -MD to output dependencies as a
4079 # side effect of compilation, but ICC will put the dependencies in
4080 # the current directory while Tru64 will put them in the object
4081 # directory.
4082 mkdir sub
4083
4084 am_cv_CC_dependencies_compiler_type=none
4085 if test "$am_compiler_list" = ""; then
4086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4087 fi
5213506e
RW
4088 am__universal=false
4089 case " $depcc " in #(
4090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4091 esac
4092
3ed8e5b6
AT
4093 for depmode in $am_compiler_list; do
4094 # Setup a source with many dependencies, because some compilers
4095 # like to wrap large dependency lists on column 80 (with \), and
4096 # we should not choose a depcomp mode which is confused by this.
4097 #
4098 # We need to recreate these files for each test, as the compiler may
4099 # overwrite some of them when testing with obscure command lines.
4100 # This happens at least with the AIX C compiler.
4101 : > sub/conftest.c
4102 for i in 1 2 3 4 5 6; do
4103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
4104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4105 # Solaris 8's {/usr,}/bin/sh.
4106 touch sub/conftst$i.h
3ed8e5b6
AT
4107 done
4108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4109
5213506e
RW
4110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4111 # mode. It turns out that the SunPro C++ compiler does not properly
4112 # handle `-M -o', and we need to detect this. Also, some Intel
4113 # versions had trouble with output in subdirs
4114 am__obj=sub/conftest.${OBJEXT-o}
4115 am__minus_obj="-o $am__obj"
3ed8e5b6 4116 case $depmode in
5213506e
RW
4117 gcc)
4118 # This depmode causes a compiler race in universal mode.
4119 test "$am__universal" = false || continue
4120 ;;
3ed8e5b6
AT
4121 nosideeffect)
4122 # after this tag, mechanisms are not by side-effect, so they'll
4123 # only be used when explicitly requested
4124 if test "x$enable_dependency_tracking" = xyes; then
4125 continue
4126 else
4127 break
4128 fi
4129 ;;
5213506e
RW
4130 msvisualcpp | msvcmsys)
4131 # This compiler won't grok `-c -o', but also, the minuso test has
4132 # not run yet. These depmodes are late enough in the game, and
4133 # so weak that their functioning should not be impacted.
4134 am__obj=conftest.${OBJEXT-o}
4135 am__minus_obj=
4136 ;;
3ed8e5b6
AT
4137 none) break ;;
4138 esac
3ed8e5b6 4139 if depmode=$depmode \
5213506e 4140 source=sub/conftest.c object=$am__obj \
3ed8e5b6 4141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3ed8e5b6 4143 >/dev/null 2>conftest.err &&
5213506e 4144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6 4145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3ed8e5b6
AT
4147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4148 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
4149 # or remarks (even with -Werror). So we grep stderr for any message
4150 # that says an option was ignored or not supported.
4151 # When given -MP, icc 7.0 and 7.1 complain thusly:
4152 # icc: Command line warning: ignoring option '-M'; no argument required
4153 # The diagnosis changed in icc 8.0:
4154 # icc: Command line remark: option '-MP' not supported
4155 if (grep 'ignoring option' conftest.err ||
4156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
4157 am_cv_CC_dependencies_compiler_type=$depmode
4158 break
4159 fi
4160 fi
4161 done
bbf3057b 4162
3ed8e5b6
AT
4163 cd ..
4164 rm -rf conftest.dir
4165else
4166 am_cv_CC_dependencies_compiler_type=none
4167fi
4168
4169fi
5213506e
RW
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4171$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3ed8e5b6
AT
4172CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4173
5213506e 4174 if
3ed8e5b6
AT
4175 test "x$enable_dependency_tracking" != xno \
4176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4177 am__fastdepCC_TRUE=
4178 am__fastdepCC_FALSE='#'
4179else
4180 am__fastdepCC_TRUE='#'
4181 am__fastdepCC_FALSE=
4182fi
4183
4184
4185
4186
4187
4188
4189# By default we simply use the C compiler to build assembly code.
4190
076e5443
PB
4191test "${CCAS+set}" = set || CCAS=$CC
4192test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4193
3ed8e5b6
AT
4194
4195
5213506e
RW
4196depcc="$CCAS" am_compiler_list=
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4199$as_echo_n "checking dependency style of $depcc... " >&6; }
4200if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
3ed8e5b6 4202else
5213506e
RW
4203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4204 # We make a subdir and do the tests there. Otherwise we can end up
4205 # making bogus files that we don't know about and never remove. For
4206 # instance it was reported that on HP-UX the gcc test will end up
4207 # making a dummy file named `D' -- because `-MD' means `put the output
4208 # in D'.
4209 mkdir conftest.dir
4210 # Copy depcomp to subdir because otherwise we won't find it if we're
4211 # using a relative directory.
4212 cp "$am_depcomp" conftest.dir
4213 cd conftest.dir
4214 # We will build objects and dependencies in a subdirectory because
4215 # it helps to detect inapplicable dependency modes. For instance
4216 # both Tru64's cc and ICC support -MD to output dependencies as a
4217 # side effect of compilation, but ICC will put the dependencies in
4218 # the current directory while Tru64 will put them in the object
4219 # directory.
4220 mkdir sub
3ed8e5b6 4221
5213506e
RW
4222 am_cv_CCAS_dependencies_compiler_type=none
4223 if test "$am_compiler_list" = ""; then
4224 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4225 fi
4226 am__universal=false
3ed8e5b6 4227
5213506e
RW
4228
4229 for depmode in $am_compiler_list; do
4230 # Setup a source with many dependencies, because some compilers
4231 # like to wrap large dependency lists on column 80 (with \), and
4232 # we should not choose a depcomp mode which is confused by this.
4233 #
4234 # We need to recreate these files for each test, as the compiler may
4235 # overwrite some of them when testing with obscure command lines.
4236 # This happens at least with the AIX C compiler.
4237 : > sub/conftest.c
4238 for i in 1 2 3 4 5 6; do
4239 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4240 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4241 # Solaris 8's {/usr,}/bin/sh.
4242 touch sub/conftst$i.h
4243 done
4244 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4245
4246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4247 # mode. It turns out that the SunPro C++ compiler does not properly
4248 # handle `-M -o', and we need to detect this. Also, some Intel
4249 # versions had trouble with output in subdirs
4250 am__obj=sub/conftest.${OBJEXT-o}
4251 am__minus_obj="-o $am__obj"
4252 case $depmode in
4253 gcc)
4254 # This depmode causes a compiler race in universal mode.
4255 test "$am__universal" = false || continue
4256 ;;
4257 nosideeffect)
4258 # after this tag, mechanisms are not by side-effect, so they'll
4259 # only be used when explicitly requested
4260 if test "x$enable_dependency_tracking" = xyes; then
4261 continue
4262 else
4263 break
4264 fi
4265 ;;
4266 msvisualcpp | msvcmsys)
4267 # This compiler won't grok `-c -o', but also, the minuso test has
4268 # not run yet. These depmodes are late enough in the game, and
4269 # so weak that their functioning should not be impacted.
4270 am__obj=conftest.${OBJEXT-o}
4271 am__minus_obj=
4272 ;;
4273 none) break ;;
4274 esac
4275 if depmode=$depmode \
4276 source=sub/conftest.c object=$am__obj \
4277 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4278 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4279 >/dev/null 2>conftest.err &&
4280 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4281 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4282 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4283 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4284 # icc doesn't choke on unknown options, it will just issue warnings
4285 # or remarks (even with -Werror). So we grep stderr for any message
4286 # that says an option was ignored or not supported.
4287 # When given -MP, icc 7.0 and 7.1 complain thusly:
4288 # icc: Command line warning: ignoring option '-M'; no argument required
4289 # The diagnosis changed in icc 8.0:
4290 # icc: Command line remark: option '-MP' not supported
4291 if (grep 'ignoring option' conftest.err ||
4292 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4293 am_cv_CCAS_dependencies_compiler_type=$depmode
4294 break
4295 fi
4296 fi
4297 done
4298
4299 cd ..
4300 rm -rf conftest.dir
4301else
4302 am_cv_CCAS_dependencies_compiler_type=none
4303fi
4304
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4307$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4308CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4309
4310 if
4311 test "x$enable_dependency_tracking" != xno \
4312 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4313 am__fastdepCCAS_TRUE=
4314 am__fastdepCCAS_FALSE='#'
4315else
4316 am__fastdepCCAS_TRUE='#'
4317 am__fastdepCCAS_FALSE=
4318fi
4319
4320
4321if test "x$CC" != xcc; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4323$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4324else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4326$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4327fi
4328set dummy $CC; ac_cc=`$as_echo "$2" |
4329 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4330if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4331 $as_echo_n "(cached) " >&6
4332else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344# Make sure it works both with $CC and with simple cc.
4345# We do the test twice because some compilers refuse to overwrite an
4346# existing .o file with -o, though they will create one.
4347ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4348rm -f conftest2.*
4349if { { case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354$as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4358 test $ac_status = 0; } &&
4359 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364$as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_try") 2>&5
3ed8e5b6 4366 ac_status=$?
5213506e
RW
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; };
3ed8e5b6
AT
4369then
4370 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4371 if test "x$CC" != xcc; then
4372 # Test first that cc exists at all.
4373 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
4374 { { case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379$as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_try") 2>&5
4381 ac_status=$?
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }; }; then
4384 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4385 rm -f conftest2.*
4386 if { { case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_try") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; } &&
4396 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_try") 2>&5
3ed8e5b6 4403 ac_status=$?
5213506e
RW
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; };
3ed8e5b6
AT
4406 then
4407 # cc works too.
4408 :
4409 else
4410 # cc exists but doesn't like -o.
4411 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4412 fi
4413 fi
4414 fi
4415else
4416 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4417fi
5213506e 4418rm -f core conftest*
3ed8e5b6
AT
4419
4420fi
5213506e
RW
4421if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4423$as_echo "yes" >&6; }
3ed8e5b6 4424else
5213506e
RW
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
3ed8e5b6 4427
5213506e 4428$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3ed8e5b6
AT
4429
4430fi
4431
4432# FIXME: we rely on the cache variable name because
4433# there is no other way.
4434set dummy $CC
5213506e
RW
4435am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4436eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4437if test "$am_t" != yes; then
3ed8e5b6
AT
4438 # Losing compiler, so override with the script.
4439 # FIXME: It is wrong to rewrite CC.
4440 # But if we don't then we get into trouble of one sort or another.
4441 # A longer-term fix would be to have automake use am__CC in this case,
4442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4443 CC="$am_aux_dir/compile $CC"
4444fi
63e5e3e0 4445
5213506e 4446
80c6c2cb
PG
4447case `pwd` in
4448 *\ * | *\ *)
5213506e
RW
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4450$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
80c6c2cb 4451esac
1cf3d07d
SE
4452
4453
1cf3d07d 4454
80c6c2cb
PG
4455macro_version='2.2.6'
4456macro_revision='1.3012'
1cf3d07d
SE
4457
4458
4459
4460
4461
4462
63e5e3e0 4463
1cf3d07d
SE
4464
4465
4466
4467
4468
4469
80c6c2cb 4470ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4471
5213506e
RW
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4473$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4474if test "${ac_cv_path_SED+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476else
4477 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4478 for ac_i in 1 2 3 4 5 6 7; do
4479 ac_script="$ac_script$as_nl$ac_script"
4480 done
4481 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4482 { ac_script=; unset ac_script;}
4483 if test -z "$SED"; then
4484 ac_path_SED_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4487for as_dir in $PATH
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
5213506e 4491 for ac_prog in sed gsed; do
1cf3d07d 4492 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4493 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4494 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4495# Check for GNU ac_path_SED and select it if it is found.
4496 # Check for GNU $ac_path_SED
4497case `"$ac_path_SED" --version 2>&1` in
4498*GNU*)
4499 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4500*)
4501 ac_count=0
4502 $as_echo_n 0123456789 >"conftest.in"
4503 while :
4504 do
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 $as_echo '' >> "conftest.nl"
4509 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 as_fn_arith $ac_count + 1 && ac_count=$as_val
4512 if test $ac_count -gt ${ac_path_SED_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_SED="$ac_path_SED"
4515 ac_path_SED_max=$ac_count
4516 fi
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4519 done
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521esac
4522
4523 $ac_path_SED_found && break 3
1cf3d07d
SE
4524 done
4525 done
5213506e 4526 done
1cf3d07d 4527IFS=$as_save_IFS
5213506e
RW
4528 if test -z "$ac_cv_path_SED"; then
4529 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4530 fi
5213506e
RW
4531else
4532 ac_cv_path_SED=$SED
1cf3d07d
SE
4533fi
4534
5213506e
RW
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4537$as_echo "$ac_cv_path_SED" >&6; }
4538 SED="$ac_cv_path_SED"
4539 rm -f conftest.sed
1cf3d07d
SE
4540
4541test -z "$SED" && SED=sed
4542Xsed="$SED -e 1s/^X//"
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
5213506e
RW
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4555$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4556if test "${ac_cv_path_GREP+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558else
4559 if test -z "$GREP"; then
4560 ac_path_GREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in grep ggrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4571# Check for GNU ac_path_GREP and select it if it is found.
4572 # Check for GNU $ac_path_GREP
4573case `"$ac_path_GREP" --version 2>&1` in
4574*GNU*)
4575 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4576*)
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'GREP' >> "conftest.nl"
4585 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_GREP="$ac_path_GREP"
4591 ac_path_GREP_max=$ac_count
4592 fi
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599 $ac_path_GREP_found && break 3
4600 done
4601 done
4602 done
4603IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_GREP"; then
4605 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606 fi
4607else
4608 ac_cv_path_GREP=$GREP
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4613$as_echo "$ac_cv_path_GREP" >&6; }
4614 GREP="$ac_cv_path_GREP"
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4618$as_echo_n "checking for egrep... " >&6; }
4619if test "${ac_cv_path_EGREP+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
1cf3d07d 4621else
5213506e
RW
4622 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4623 then ac_cv_path_EGREP="$GREP -E"
4624 else
4625 if test -z "$EGREP"; then
4626 ac_path_EGREP_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_prog in egrep; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4636 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4637# Check for GNU ac_path_EGREP and select it if it is found.
4638 # Check for GNU $ac_path_EGREP
4639case `"$ac_path_EGREP" --version 2>&1` in
4640*GNU*)
4641 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4642*)
4643 ac_count=0
4644 $as_echo_n 0123456789 >"conftest.in"
4645 while :
4646 do
4647 cat "conftest.in" "conftest.in" >"conftest.tmp"
4648 mv "conftest.tmp" "conftest.in"
4649 cp "conftest.in" "conftest.nl"
4650 $as_echo 'EGREP' >> "conftest.nl"
4651 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653 as_fn_arith $ac_count + 1 && ac_count=$as_val
4654 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_EGREP="$ac_path_EGREP"
4657 ac_path_EGREP_max=$ac_count
1cf3d07d 4658 fi
5213506e
RW
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4661 done
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665 $ac_path_EGREP_found && break 3
4666 done
4667 done
4668 done
4669IFS=$as_save_IFS
4670 if test -z "$ac_cv_path_EGREP"; then
4671 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672 fi
4673else
4674 ac_cv_path_EGREP=$EGREP
4675fi
4676
4677 fi
1cf3d07d 4678fi
5213506e
RW
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4680$as_echo "$ac_cv_path_EGREP" >&6; }
4681 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
4682
4683
5213506e
RW
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4685$as_echo_n "checking for fgrep... " >&6; }
4686if test "${ac_cv_path_FGREP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
1cf3d07d 4688else
5213506e
RW
4689 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4690 then ac_cv_path_FGREP="$GREP -F"
4691 else
4692 if test -z "$FGREP"; then
4693 ac_path_FGREP_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_prog in fgrep; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4704# Check for GNU ac_path_FGREP and select it if it is found.
4705 # Check for GNU $ac_path_FGREP
4706case `"$ac_path_FGREP" --version 2>&1` in
4707*GNU*)
4708 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4709*)
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4713 do
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo 'FGREP' >> "conftest.nl"
4718 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720 as_fn_arith $ac_count + 1 && ac_count=$as_val
4721 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_FGREP="$ac_path_FGREP"
4724 ac_path_FGREP_max=$ac_count
1cf3d07d 4725 fi
5213506e
RW
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732 $ac_path_FGREP_found && break 3
4733 done
4734 done
4735 done
4736IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_FGREP"; then
4738 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739 fi
4740else
4741 ac_cv_path_FGREP=$FGREP
4742fi
4743
4744 fi
1cf3d07d 4745fi
5213506e
RW
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4747$as_echo "$ac_cv_path_FGREP" >&6; }
4748 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
4749
4750
4751test -z "$GREP" && GREP=grep
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
5213506e
RW
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
63e5e3e0 4774else
675cdab3 4775 with_gnu_ld=no
5213506e
RW
4776fi
4777
63e5e3e0 4778ac_prog=ld
675cdab3 4779if test "$GCC" = yes; then
63e5e3e0 4780 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
2f7bf5b7
AO
4783 case $host in
4784 *-*-mingw*)
4785 # gcc leaves a trailing carriage return which upsets mingw
4786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787 *)
4788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789 esac
675cdab3 4790 case $ac_prog in
63e5e3e0 4791 # Accept absolute paths.
1cf3d07d 4792 [\\/]* | ?:[\\/]*)
63e5e3e0 4793 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4794 # Canonicalize the pathname of ld
4795 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
4798 done
4799 test -z "$LD" && LD="$ac_prog"
4800 ;;
4801 "")
4802 # If it fails, then pretend we aren't using GCC.
4803 ac_prog=ld
4804 ;;
4805 *)
4806 # If it is relative, then search for the first ld in PATH.
4807 with_gnu_ld=unknown
4808 ;;
4809 esac
4810elif test "$with_gnu_ld" = yes; then
5213506e
RW
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
63e5e3e0 4813else
5213506e
RW
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
63e5e3e0 4816fi
5213506e
RW
4817if test "${lt_cv_path_LD+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4819else
4820 if test -z "$LD"; then
1cf3d07d 4821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 4822 for ac_dir in $PATH; do
1cf3d07d 4823 IFS="$lt_save_ifs"
63e5e3e0 4824 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 4825 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 4826 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 4827 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4828 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 4829 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4830 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831 *GNU* | *'with BFD'*)
63e5e3e0 4832 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4833 ;;
4834 *)
63e5e3e0 4835 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4836 ;;
4837 esac
63e5e3e0
AG
4838 fi
4839 done
1cf3d07d 4840 IFS="$lt_save_ifs"
63e5e3e0 4841else
675cdab3 4842 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
4843fi
4844fi
4845
675cdab3 4846LD="$lt_cv_path_LD"
63e5e3e0 4847if test -n "$LD"; then
5213506e
RW
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
63e5e3e0 4850else
5213506e
RW
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
63e5e3e0 4853fi
5213506e
RW
4854test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
63e5e3e0 4859else
1cf3d07d
SE
4860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
675cdab3 4863 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4864 ;;
4865*)
675cdab3 4866 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4867 ;;
4868esac
63e5e3e0 4869fi
5213506e
RW
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
675cdab3 4872with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 4873
63e5e3e0
AG
4874
4875
1cf3d07d
SE
4876
4877
4878
4879
4880
4881
5213506e
RW
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4884if test "${lt_cv_path_NM+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
63e5e3e0
AG
4886else
4887 if test -n "$NM"; then
4888 # Let the user override the test.
675cdab3 4889 lt_cv_path_NM="$NM"
63e5e3e0 4890else
1cf3d07d
SE
4891 lt_nm_to_check="${ac_tool_prefix}nm"
4892 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4893 lt_nm_to_check="$lt_nm_to_check nm"
4894 fi
4895 for lt_tmp_nm in $lt_nm_to_check; do
4896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4897 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4898 IFS="$lt_save_ifs"
4899 test -z "$ac_dir" && ac_dir=.
4900 tmp_nm="$ac_dir/$lt_tmp_nm"
4901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4902 # Check to see if the nm accepts a BSD-compat flag.
4903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4904 # nm: unknown option "B" ignored
4905 # Tru64's nm complains that /dev/null is an invalid object file
4906 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4907 */dev/null* | *'Invalid file or object type'*)
4908 lt_cv_path_NM="$tmp_nm -B"
4909 break
4910 ;;
4911 *)
4912 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4913 */dev/null*)
4914 lt_cv_path_NM="$tmp_nm -p"
4915 break
4916 ;;
4917 *)
4918 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4919 continue # so that we can try to find one that supports BSD flags
4920 ;;
4921 esac
4922 ;;
4923 esac
63e5e3e0 4924 fi
1cf3d07d
SE
4925 done
4926 IFS="$lt_save_ifs"
63e5e3e0 4927 done
1cf3d07d 4928 : ${lt_cv_path_NM=no}
63e5e3e0
AG
4929fi
4930fi
5213506e
RW
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4932$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
4933if test "$lt_cv_path_NM" != "no"; then
4934 NM="$lt_cv_path_NM"
63e5e3e0 4935else
1cf3d07d
SE
4936 # Didn't find any BSD compatible name lister, look for dumpbin.
4937 if test -n "$ac_tool_prefix"; then
4938 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4939 do
4940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943$as_echo_n "checking for $ac_word... " >&6; }
4944if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
2f7bf5b7 4946else
1cf3d07d
SE
4947 if test -n "$DUMPBIN"; then
4948 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
5213506e
RW
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 4957 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
4959 break 2
4960 fi
4961done
5213506e
RW
4962 done
4963IFS=$as_save_IFS
2f7bf5b7 4964
1cf3d07d
SE
4965fi
4966fi
4967DUMPBIN=$ac_cv_prog_DUMPBIN
4968if test -n "$DUMPBIN"; then
5213506e
RW
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4970$as_echo "$DUMPBIN" >&6; }
1cf3d07d 4971else
5213506e
RW
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
1cf3d07d 4974fi
675cdab3 4975
5213506e 4976
1cf3d07d
SE
4977 test -n "$DUMPBIN" && break
4978 done
4979fi
4980if test -z "$DUMPBIN"; then
4981 ac_ct_DUMPBIN=$DUMPBIN
4982 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4983do
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985set dummy $ac_prog; ac_word=$2
5213506e
RW
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987$as_echo_n "checking for $ac_word... " >&6; }
4988if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
1cf3d07d
SE
4990else
4991 if test -n "$ac_ct_DUMPBIN"; then
4992 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
5213506e
RW
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5001 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d 5003 break 2
2f7bf5b7 5004 fi
1cf3d07d 5005done
5213506e
RW
5006 done
5007IFS=$as_save_IFS
2f7bf5b7 5008
1cf3d07d
SE
5009fi
5010fi
5011ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5012if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5014$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5015else
5213506e
RW
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017$as_echo "no" >&6; }
1cf3d07d 5018fi
2f7bf5b7 5019
5213506e 5020
1cf3d07d
SE
5021 test -n "$ac_ct_DUMPBIN" && break
5022done
2f7bf5b7 5023
5213506e
RW
5024 if test "x$ac_ct_DUMPBIN" = x; then
5025 DUMPBIN=":"
5026 else
5027 case $cross_compiling:$ac_tool_warned in
5028yes:)
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031ac_tool_warned=yes ;;
5032esac
5033 DUMPBIN=$ac_ct_DUMPBIN
5034 fi
1cf3d07d 5035fi
2f7bf5b7 5036
2f7bf5b7 5037
1cf3d07d
SE
5038 if test "$DUMPBIN" != ":"; then
5039 NM="$DUMPBIN"
2f7bf5b7 5040 fi
1cf3d07d
SE
5041fi
5042test -z "$NM" && NM=nm
2f7bf5b7 5043
2f7bf5b7 5044
2f7bf5b7 5045
2f7bf5b7 5046
33456445 5047
2f7bf5b7 5048
5213506e
RW
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5050$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5051if test "${lt_cv_nm_interface+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5053else
5054 lt_cv_nm_interface="BSD nm"
5055 echo "int some_variable = 0;" > conftest.$ac_ext
5213506e 5056 (eval echo "\"\$as_me:5056: $ac_compile\"" >&5)
1cf3d07d
SE
5057 (eval "$ac_compile" 2>conftest.err)
5058 cat conftest.err >&5
5213506e 5059 (eval echo "\"\$as_me:5059: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5060 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5061 cat conftest.err >&5
5213506e 5062 (eval echo "\"\$as_me:5062: output\"" >&5)
1cf3d07d
SE
5063 cat conftest.out >&5
5064 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5065 lt_cv_nm_interface="MS dumpbin"
5066 fi
5067 rm -f conftest*
2f7bf5b7 5068fi
5213506e
RW
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5070$as_echo "$lt_cv_nm_interface" >&6; }
2f7bf5b7 5071
5213506e
RW
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5073$as_echo_n "checking whether ln -s works... " >&6; }
1cf3d07d
SE
5074LN_S=$as_ln_s
5075if test "$LN_S" = "ln -s"; then
5213506e
RW
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5077$as_echo "yes" >&6; }
1cf3d07d 5078else
5213506e
RW
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5080$as_echo "no, using $LN_S" >&6; }
1cf3d07d 5081fi
2f7bf5b7 5082
6dab073b 5083# find the maximum length of command line arguments
5213506e
RW
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5085$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5086if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
6dab073b
MS
5088else
5089 i=0
5090 teststring="ABCD"
5091
5092 case $build_os in
5093 msdosdjgpp*)
5094 # On DJGPP, this test can blow up pretty badly due to problems in libc
5095 # (any single argument exceeding 2000 bytes causes a buffer overrun
5096 # during glob expansion). Even if it were fixed, the result of this
5097 # check would be larger than it should be.
5098 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5099 ;;
5100
1cf3d07d
SE
5101 gnu*)
5102 # Under GNU Hurd, this test is not required because there is
5103 # no limit to the length of command line arguments.
5104 # Libtool will interpret -1 as no limit whatsoever
5105 lt_cv_sys_max_cmd_len=-1;
5106 ;;
5107
80c6c2cb 5108 cygwin* | mingw* | cegcc*)
6dab073b
MS
5109 # On Win9x/ME, this test blows up -- it succeeds, but takes
5110 # about 5 minutes as the teststring grows exponentially.
5111 # Worse, since 9x/ME are not pre-emptively multitasking,
5112 # you end up with a "frozen" computer, even though with patience
5113 # the test eventually succeeds (with a max line length of 256k).
5114 # Instead, let's just punt: use the minimum linelength reported by
5115 # all of the supported platforms: 8192 (on NT/2K/XP).
5116 lt_cv_sys_max_cmd_len=8192;
5117 ;;
5118
5119 amigaos*)
5120 # On AmigaOS with pdksh, this test takes hours, literally.
5121 # So we just punt and use a minimum line length of 8192.
5122 lt_cv_sys_max_cmd_len=8192;
5123 ;;
5124
5125 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5126 # This has been around since 386BSD, at least. Likely further.
5127 if test -x /sbin/sysctl; then
5128 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5129 elif test -x /usr/sbin/sysctl; then
5130 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5131 else
1cf3d07d 5132 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
5133 fi
5134 # And add a safety zone
5135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5137 ;;
1cf3d07d
SE
5138
5139 interix*)
5140 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5141 lt_cv_sys_max_cmd_len=196608
5142 ;;
5143
5144 osf*)
5145 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5146 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5147 # nice to cause kernel panics so lets avoid the loop below.
5148 # First set a reasonable default.
5149 lt_cv_sys_max_cmd_len=16384
5150 #
5151 if test -x /sbin/sysconfig; then
5152 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5153 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5154 esac
5155 fi
5156 ;;
5157 sco3.2v5*)
5158 lt_cv_sys_max_cmd_len=102400
5159 ;;
5160 sysv5* | sco5v6* | sysv4.2uw2*)
5161 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5162 if test -n "$kargmax"; then
5163 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5164 else
5165 lt_cv_sys_max_cmd_len=32768
5166 fi
5167 ;;
5168 *)
80c6c2cb
PG
5169 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5170 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5173 else
5174 # Make teststring a little bigger before we do anything with it.
5175 # a 1K string should be a reasonable start.
5176 for i in 1 2 3 4 5 6 7 8 ; do
5177 teststring=$teststring$teststring
5178 done
5179 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5180 # If test is not a shell built-in, we'll probably end up computing a
5181 # maximum length that is only half of the actual maximum length, but
5182 # we can't tell.
5183 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5184 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5185 test $i != 17 # 1/2 MB should be enough
5186 do
5187 i=`expr $i + 1`
5188 teststring=$teststring$teststring
5189 done
5190 # Only check the string length outside the loop.
5191 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5192 teststring=
5193 # Add a significant safety factor because C++ compilers can tack on
5194 # massive amounts of additional arguments before passing them to the
5195 # linker. It appears as though 1/2 is a usable value.
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5197 fi
1cf3d07d 5198 ;;
6dab073b
MS
5199 esac
5200
5201fi
5202
1cf3d07d 5203if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5205$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6dab073b 5206else
5213506e
RW
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5208$as_echo "none" >&6; }
6dab073b 5209fi
1cf3d07d 5210max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
5211
5212
2f7bf5b7 5213
2f7bf5b7 5214
2f7bf5b7 5215
1cf3d07d 5216
1cf3d07d
SE
5217: ${CP="cp -f"}
5218: ${MV="mv -f"}
5219: ${RM="rm -f"}
5220
5213506e
RW
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5222$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5223# Try some XSI features
5224xsi_shell=no
5225( _lt_dummy="a/b/c"
5226 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
5227 = c,a/b,, \
5228 && eval 'test $(( 1 + 1 )) -eq 2 \
5229 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5230 && xsi_shell=yes
5213506e
RW
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5232$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5233
5234
5213506e
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5236$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5237lt_shell_append=no
5238( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5239 >/dev/null 2>&1 \
5240 && lt_shell_append=yes
5213506e
RW
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5242$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5243
5244
5245if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5246 lt_unset=unset
2f7bf5b7 5247else
1cf3d07d 5248 lt_unset=false
2f7bf5b7
AO
5249fi
5250
1cf3d07d
SE
5251
5252
5253
5254
5255# test EBCDIC or ASCII
5256case `echo X|tr X '\101'` in
5257 A) # ASCII based system
5258 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5259 lt_SP2NL='tr \040 \012'
5260 lt_NL2SP='tr \015\012 \040\040'
5261 ;;
5262 *) # EBCDIC based system
5263 lt_SP2NL='tr \100 \n'
5264 lt_NL2SP='tr \r\n \100\100'
5265 ;;
5266esac
5267
5268
5269
5270
5271
5272
5273
5274
5275
5213506e
RW
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5277$as_echo_n "checking for $LD option to reload object files... " >&6; }
5278if test "${lt_cv_ld_reload_flag+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
2f7bf5b7 5280else
1cf3d07d
SE
5281 lt_cv_ld_reload_flag='-r'
5282fi
5213506e
RW
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5284$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5285reload_flag=$lt_cv_ld_reload_flag
5286case $reload_flag in
5287"" | " "*) ;;
5288*) reload_flag=" $reload_flag" ;;
5289esac
5290reload_cmds='$LD$reload_flag -o $output$reload_objs'
5291case $host_os in
5292 darwin*)
5293 if test "$GCC" = yes; then
5294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5295 else
5296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297 fi
5298 ;;
5299esac
5300
5301
5302
5303
5304
5305
5306
5307
5308
80c6c2cb
PG
5309if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5316else
5317 if test -n "$OBJDUMP"; then
5318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5213506e
RW
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5327 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5329 break 2
5330 fi
5331done
5213506e
RW
5332 done
5333IFS=$as_save_IFS
80c6c2cb
PG
5334
5335fi
5336fi
5337OBJDUMP=$ac_cv_prog_OBJDUMP
5338if test -n "$OBJDUMP"; then
5213506e
RW
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5340$as_echo "$OBJDUMP" >&6; }
80c6c2cb 5341else
5213506e
RW
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
80c6c2cb
PG
5344fi
5345
5213506e 5346
80c6c2cb
PG
5347fi
5348if test -z "$ac_cv_prog_OBJDUMP"; then
5349 ac_ct_OBJDUMP=$OBJDUMP
5350 # Extract the first word of "objdump", so it can be a program name with args.
5351set dummy objdump; ac_word=$2
5213506e
RW
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
80c6c2cb
PG
5356else
5357 if test -n "$ac_ct_OBJDUMP"; then
5358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5213506e
RW
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 5367 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
5369 break 2
5370 fi
5371done
5213506e
RW
5372 done
5373IFS=$as_save_IFS
80c6c2cb 5374
80c6c2cb
PG
5375fi
5376fi
5377ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5378if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5380$as_echo "$ac_ct_OBJDUMP" >&6; }
80c6c2cb 5381else
5213506e
RW
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
80c6c2cb
PG
5384fi
5385
5213506e
RW
5386 if test "x$ac_ct_OBJDUMP" = x; then
5387 OBJDUMP="false"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390yes:)
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393ac_tool_warned=yes ;;
5394esac
5395 OBJDUMP=$ac_ct_OBJDUMP
5396 fi
80c6c2cb
PG
5397else
5398 OBJDUMP="$ac_cv_prog_OBJDUMP"
5399fi
5400
5401test -z "$OBJDUMP" && OBJDUMP=objdump
5402
5403
5404
5405
5406
5407
5408
5409
1cf3d07d 5410
5213506e
RW
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5412$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5413if test "${lt_cv_deplibs_check_method+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5415else
5416 lt_cv_file_magic_cmd='$MAGIC_CMD'
5417lt_cv_file_magic_test_file=
5418lt_cv_deplibs_check_method='unknown'
5419# Need to set the preceding variable on all platforms that support
5420# interlibrary dependencies.
5421# 'none' -- dependencies not supported.
5422# `unknown' -- same as none, but documents that we really don't know.
5423# 'pass_all' -- all dependencies passed with no checks.
5424# 'test_compile' -- check by making test program.
5425# 'file_magic [[regex]]' -- check by looking for files in library path
5426# which responds to the $file_magic_cmd with a given extended regex.
5427# If you have `file' or equivalent on your system and you're not sure
5428# whether `pass_all' will *always* work, you probably want this one.
5429
5430case $host_os in
95d4f544 5431aix[4-9]*)
1cf3d07d
SE
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
5434
5435beos*)
5436 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5437 ;;
1cf3d07d
SE
5438
5439bsdi[45]*)
5440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5441 lt_cv_file_magic_cmd='/usr/bin/file -L'
5442 lt_cv_file_magic_test_file=/shlib/libc.so
5443 ;;
5444
5445cygwin*)
5446 # func_win32_libid is a shell function defined in ltmain.sh
5447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd='func_win32_libid'
5449 ;;
5450
5451mingw* | pw32*)
5452 # Base MSYS/MinGW do not provide the 'file' command needed by
5453 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5454 # unless we find 'file', for example because we are cross-compiling.
5455 if ( file / ) >/dev/null 2>&1; then
5456 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5457 lt_cv_file_magic_cmd='func_win32_libid'
5458 else
5459 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5460 lt_cv_file_magic_cmd='$OBJDUMP -f'
5461 fi
5462 ;;
5463
80c6c2cb
PG
5464cegcc)
5465 # use the weaker test based on 'objdump'. See mingw*.
5466 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5467 lt_cv_file_magic_cmd='$OBJDUMP -f'
5468 ;;
5469
1cf3d07d
SE
5470darwin* | rhapsody*)
5471 lt_cv_deplibs_check_method=pass_all
5472 ;;
5473
5474freebsd* | dragonfly*)
5475 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5476 case $host_cpu in
5477 i*86 )
5478 # Not sure whether the presence of OpenBSD here was a mistake.
5479 # Let's accept both of them until this is cleared up.
5480 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5481 lt_cv_file_magic_cmd=/usr/bin/file
5482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5483 ;;
5484 esac
5485 else
5486 lt_cv_deplibs_check_method=pass_all
5487 fi
5488 ;;
5489
5490gnu*)
5491 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5492 ;;
1cf3d07d
SE
5493
5494hpux10.20* | hpux11*)
5495 lt_cv_file_magic_cmd=/usr/bin/file
5496 case $host_cpu in
5497 ia64*)
5498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5500 ;;
5501 hppa*64*)
5502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5504 ;;
2f7bf5b7 5505 *)
1cf3d07d
SE
5506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5507 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5508 ;;
5509 esac
5510 ;;
2f7bf5b7 5511
1cf3d07d
SE
5512interix[3-9]*)
5513 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5515 ;;
2f7bf5b7 5516
1cf3d07d
SE
5517irix5* | irix6* | nonstopux*)
5518 case $LD in
5519 *-32|*"-32 ") libmagic=32-bit;;
5520 *-n32|*"-n32 ") libmagic=N32;;
5521 *-64|*"-64 ") libmagic=64-bit;;
5522 *) libmagic=never-match;;
5523 esac
5524 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 5525 ;;
2f7bf5b7 5526
1cf3d07d 5527# This must be Linux ELF.
7a9d3fe8 5528linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
2f7bf5b7 5531
1cf3d07d
SE
5532netbsd*)
5533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 5535 else
1cf3d07d 5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 5537 fi
1cf3d07d
SE
5538 ;;
5539
5540newos6*)
5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5542 lt_cv_file_magic_cmd=/usr/bin/file
5543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5544 ;;
5545
5546*nto* | *qnx*)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
63e5e3e0 5549
1cf3d07d
SE
5550openbsd*)
5551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5553 else
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
5555 fi
5556 ;;
1cf3d07d
SE
5557
5558osf3* | osf4* | osf5*)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561
5562rdos*)
5563 lt_cv_deplibs_check_method=pass_all
5564 ;;
5565
5566solaris*)
5567 lt_cv_deplibs_check_method=pass_all
5568 ;;
5569
5570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574sysv4 | sysv4.3*)
5575 case $host_vendor in
5576 motorola)
5577 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]'
5578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5579 ;;
5580 ncr)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583 sequent)
5584 lt_cv_file_magic_cmd='/bin/file'
5585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5586 ;;
5587 sni)
5588 lt_cv_file_magic_cmd='/bin/file'
5589 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5590 lt_cv_file_magic_test_file=/lib/libc.so
5591 ;;
5592 siemens)
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595 pc)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598 esac
5599 ;;
5600
5601tpf*)
5602 lt_cv_deplibs_check_method=pass_all
5603 ;;
dc5de370
HB
5604esac
5605
1cf3d07d 5606fi
5213506e
RW
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5608$as_echo "$lt_cv_deplibs_check_method" >&6; }
1cf3d07d
SE
5609file_magic_cmd=$lt_cv_file_magic_cmd
5610deplibs_check_method=$lt_cv_deplibs_check_method
5611test -z "$deplibs_check_method" && deplibs_check_method=unknown
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
3ed8e5b6 5624if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5626set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628$as_echo_n "checking for $ac_word... " >&6; }
5629if test "${ac_cv_prog_AR+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
2f7bf5b7 5631else
1cf3d07d
SE
5632 if test -n "$AR"; then
5633 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 5634else
3ed8e5b6
AT
5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5213506e
RW
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5642 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5644 break 2
5645 fi
5646done
5213506e
RW
5647 done
5648IFS=$as_save_IFS
3ed8e5b6 5649
2f7bf5b7
AO
5650fi
5651fi
1cf3d07d
SE
5652AR=$ac_cv_prog_AR
5653if test -n "$AR"; then
5213506e
RW
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5655$as_echo "$AR" >&6; }
2f7bf5b7 5656else
5213506e
RW
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
2f7bf5b7
AO
5659fi
5660
5213506e 5661
3ed8e5b6 5662fi
1cf3d07d
SE
5663if test -z "$ac_cv_prog_AR"; then
5664 ac_ct_AR=$AR
5665 # Extract the first word of "ar", so it can be a program name with args.
5666set dummy ar; ac_word=$2
5213506e
RW
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
2f7bf5b7 5671else
1cf3d07d
SE
5672 if test -n "$ac_ct_AR"; then
5673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 5674else
3ed8e5b6
AT
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5213506e
RW
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5682 ac_cv_prog_ac_ct_AR="ar"
5213506e 5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5684 break 2
5685 fi
5686done
5213506e
RW
5687 done
5688IFS=$as_save_IFS
3ed8e5b6 5689
2f7bf5b7
AO
5690fi
5691fi
1cf3d07d
SE
5692ac_ct_AR=$ac_cv_prog_ac_ct_AR
5693if test -n "$ac_ct_AR"; then
5213506e
RW
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5695$as_echo "$ac_ct_AR" >&6; }
2f7bf5b7 5696else
5213506e
RW
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
2f7bf5b7
AO
5699fi
5700
5213506e
RW
5701 if test "x$ac_ct_AR" = x; then
5702 AR="false"
5703 else
5704 case $cross_compiling:$ac_tool_warned in
5705yes:)
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708ac_tool_warned=yes ;;
5709esac
5710 AR=$ac_ct_AR
5711 fi
2f7bf5b7 5712else
1cf3d07d 5713 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
5714fi
5715
1cf3d07d
SE
5716test -z "$AR" && AR=ar
5717test -z "$AR_FLAGS" && AR_FLAGS=cru
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
3ed8e5b6
AT
5729if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 5731set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
5734if test "${ac_cv_prog_STRIP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
2f7bf5b7
AO
5736else
5737 if test -n "$STRIP"; then
5738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5739else
3ed8e5b6
AT
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5213506e
RW
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5747 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5749 break 2
5750 fi
5751done
5213506e
RW
5752 done
5753IFS=$as_save_IFS
3ed8e5b6 5754
2f7bf5b7
AO
5755fi
5756fi
3ed8e5b6 5757STRIP=$ac_cv_prog_STRIP
2f7bf5b7 5758if test -n "$STRIP"; then
5213506e
RW
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5760$as_echo "$STRIP" >&6; }
2f7bf5b7 5761else
5213506e
RW
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
2f7bf5b7
AO
5764fi
5765
5213506e 5766
3ed8e5b6 5767fi
2f7bf5b7 5768if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 5769 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
5770 # Extract the first word of "strip", so it can be a program name with args.
5771set dummy strip; ac_word=$2
5213506e
RW
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
2f7bf5b7 5776else
3ed8e5b6
AT
5777 if test -n "$ac_ct_STRIP"; then
5778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 5779else
3ed8e5b6
AT
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5213506e
RW
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3ed8e5b6 5787 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3ed8e5b6
AT
5789 break 2
5790 fi
5791done
5213506e
RW
5792 done
5793IFS=$as_save_IFS
3ed8e5b6 5794
2f7bf5b7
AO
5795fi
5796fi
3ed8e5b6
AT
5797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798if test -n "$ac_ct_STRIP"; then
5213506e
RW
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5800$as_echo "$ac_ct_STRIP" >&6; }
675cdab3 5801else
5213506e
RW
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
675cdab3
BM
5804fi
5805
5213506e
RW
5806 if test "x$ac_ct_STRIP" = x; then
5807 STRIP=":"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810yes:)
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813ac_tool_warned=yes ;;
5814esac
5815 STRIP=$ac_ct_STRIP
5816 fi
675cdab3 5817else
3ed8e5b6 5818 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
5819fi
5820
1cf3d07d 5821test -z "$STRIP" && STRIP=:
675cdab3 5822
675cdab3
BM
5823
5824
675cdab3 5825
675cdab3 5826
3ed8e5b6 5827
1cf3d07d
SE
5828if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5830set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
5833if test "${ac_cv_prog_RANLIB+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
675cdab3 5835else
1cf3d07d
SE
5836 if test -n "$RANLIB"; then
5837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5213506e
RW
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5848 break 2
5849 fi
5850done
5213506e
RW
5851 done
5852IFS=$as_save_IFS
1cf3d07d
SE
5853
5854fi
5855fi
5856RANLIB=$ac_cv_prog_RANLIB
5857if test -n "$RANLIB"; then
5213506e
RW
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5859$as_echo "$RANLIB" >&6; }
1cf3d07d 5860else
5213506e
RW
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
1cf3d07d
SE
5863fi
5864
5213506e 5865
1cf3d07d
SE
5866fi
5867if test -z "$ac_cv_prog_RANLIB"; then
5868 ac_ct_RANLIB=$RANLIB
5869 # Extract the first word of "ranlib", so it can be a program name with args.
5870set dummy ranlib; ac_word=$2
5213506e
RW
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872$as_echo_n "checking for $ac_word... " >&6; }
5873if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5875else
5876 if test -n "$ac_ct_RANLIB"; then
5877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5213506e
RW
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5886 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5888 break 2
5889 fi
5890done
5213506e
RW
5891 done
5892IFS=$as_save_IFS
1cf3d07d 5893
1cf3d07d
SE
5894fi
5895fi
5896ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897if test -n "$ac_ct_RANLIB"; then
5213506e
RW
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5899$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 5900else
5213506e
RW
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
1cf3d07d
SE
5903fi
5904
5213506e
RW
5905 if test "x$ac_ct_RANLIB" = x; then
5906 RANLIB=":"
5907 else
5908 case $cross_compiling:$ac_tool_warned in
5909yes:)
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912ac_tool_warned=yes ;;
5913esac
5914 RANLIB=$ac_ct_RANLIB
5915 fi
1cf3d07d
SE
5916else
5917 RANLIB="$ac_cv_prog_RANLIB"
5918fi
5919
5920test -z "$RANLIB" && RANLIB=:
5921
5922
5923
5924
5925
5926
5927# Determine commands to create old-style static archives.
80c6c2cb 5928old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
5929old_postinstall_cmds='chmod 644 $oldlib'
5930old_postuninstall_cmds=
5931
5932if test -n "$RANLIB"; then
5933 case $host_os in
5934 openbsd*)
5935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5936 ;;
5937 *)
5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5939 ;;
5940 esac
5941 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5942fi
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977# If no C compiler was specified, use CC.
5978LTCC=${LTCC-"$CC"}
5979
5980# If no C compiler flags were specified, use CFLAGS.
5981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5982
5983# Allow CC to be a program name with arguments.
5984compiler=$CC
5985
5986
5987# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5990if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5992else
5993
5994# These are sane defaults that work on at least a few old systems.
5995# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5996
5997# Character class describing NM global symbol codes.
5998symcode='[BCDEGRST]'
5999
6000# Regexp to match symbols that can be accessed directly from C.
6001sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6002
6003# Define system-specific variables.
6004case $host_os in
6005aix*)
6006 symcode='[BCDT]'
6007 ;;
80c6c2cb 6008cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6009 symcode='[ABCDGISTW]'
6010 ;;
6011hpux*)
6012 if test "$host_cpu" = ia64; then
6013 symcode='[ABCDEGRST]'
6014 fi
6015 ;;
6016irix* | nonstopux*)
6017 symcode='[BCDEGRST]'
6018 ;;
6019osf*)
6020 symcode='[BCDEGQRST]'
6021 ;;
6022solaris*)
6023 symcode='[BDRT]'
6024 ;;
6025sco3.2v5*)
6026 symcode='[DT]'
6027 ;;
6028sysv4.2uw2*)
6029 symcode='[DT]'
6030 ;;
6031sysv5* | sco5v6* | unixware* | OpenUNIX*)
6032 symcode='[ABDT]'
6033 ;;
6034sysv4)
6035 symcode='[DFNSTU]'
6036 ;;
6037esac
6038
6039# If we're using GNU nm, then use its standard symbol codes.
6040case `$NM -V 2>&1` in
6041*GNU* | *'with BFD'*)
6042 symcode='[ABCDGIRSTW]' ;;
6043esac
6044
6045# Transform an extracted symbol line into a proper C declaration.
6046# Some systems (esp. on ia64) link data and code symbols differently,
6047# so use this general approach.
6048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6049
6050# Transform an extracted symbol line into symbol name and symbol address
6051lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 6052lt_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
6053
6054# Handle CRLF in mingw tool chain
6055opt_cr=
6056case $build_os in
6057mingw*)
6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6059 ;;
6060esac
6061
6062# Try without a prefix underscore, then with it.
6063for ac_symprfx in "" "_"; do
6064
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6067
6068 # Write the raw and C identifiers.
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Fake it for dumpbin and say T for any non-static function
6071 # and D for any global variable.
6072 # Also find C++ and __fastcall symbols from MSVC++,
6073 # which start with @ or ?.
6074 lt_cv_sys_global_symbol_pipe="$AWK '"\
6075" {last_section=section; section=\$ 3};"\
6076" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077" \$ 0!~/External *\|/{next};"\
6078" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079" {if(hide[section]) next};"\
6080" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6081" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6082" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6083" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6084" ' prfx=^$ac_symprfx"
6085 else
6086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 fi
6088
6089 # Check to see that the pipe works correctly.
6090 pipe_works=no
6091
6092 rm -f conftest*
6093 cat > conftest.$ac_ext <<_LT_EOF
6094#ifdef __cplusplus
6095extern "C" {
6096#endif
6097char nm_test_var;
6098void nm_test_func(void);
6099void nm_test_func(void){}
6100#ifdef __cplusplus
6101}
6102#endif
6103int main(){nm_test_var='a';nm_test_func();return(0);}
6104_LT_EOF
6105
5213506e 6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
5213506e
RW
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
1cf3d07d
SE
6111 # Now try to grab the symbols.
6112 nlist=conftest.nm
5213506e 6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1cf3d07d
SE
6114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6115 ac_status=$?
5213506e
RW
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6118 # Try sorting and uniquifying the output.
6119 if sort "$nlist" | uniq > "$nlist"T; then
6120 mv -f "$nlist"T "$nlist"
6121 else
6122 rm -f "$nlist"T
6123 fi
6124
6125 # Make sure that we snagged all the symbols we need.
6126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128 cat <<_LT_EOF > conftest.$ac_ext
6129#ifdef __cplusplus
6130extern "C" {
6131#endif
6132
6133_LT_EOF
6134 # Now generate the symbol file.
6135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6136
6137 cat <<_LT_EOF >> conftest.$ac_ext
6138
6139/* The mapping between symbol names and symbols. */
6140const struct {
6141 const char *name;
6142 void *address;
6143}
6144lt__PROGRAM__LTX_preloaded_symbols[] =
6145{
6146 { "@PROGRAM@", (void *) 0 },
6147_LT_EOF
6148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6149 cat <<\_LT_EOF >> conftest.$ac_ext
6150 {0, (void *) 0}
6151};
6152
6153/* This works around a problem in FreeBSD linker */
6154#ifdef FREEBSD_WORKAROUND
6155static const void *lt_preloaded_setup() {
6156 return lt__PROGRAM__LTX_preloaded_symbols;
6157}
6158#endif
6159
6160#ifdef __cplusplus
6161}
6162#endif
6163_LT_EOF
6164 # Now try linking the two files.
6165 mv conftest.$ac_objext conftstm.$ac_objext
6166 lt_save_LIBS="$LIBS"
6167 lt_save_CFLAGS="$CFLAGS"
6168 LIBS="conftstm.$ac_objext"
6169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6171 (eval $ac_link) 2>&5
6172 ac_status=$?
5213506e
RW
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6175 pipe_works=yes
6176 fi
6177 LIBS="$lt_save_LIBS"
6178 CFLAGS="$lt_save_CFLAGS"
6179 else
6180 echo "cannot find nm_test_func in $nlist" >&5
6181 fi
6182 else
6183 echo "cannot find nm_test_var in $nlist" >&5
6184 fi
6185 else
6186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6187 fi
6188 else
6189 echo "$progname: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 fi
80c6c2cb 6192 rm -rf conftest* conftst*
1cf3d07d
SE
6193
6194 # Do not use the global_symbol_pipe unless it works.
6195 if test "$pipe_works" = yes; then
6196 break
6197 else
6198 lt_cv_sys_global_symbol_pipe=
6199 fi
6200done
6201
6202fi
6203
6204if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205 lt_cv_sys_global_symbol_to_cdecl=
6206fi
6207if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6209$as_echo "failed" >&6; }
1cf3d07d 6210else
5213506e
RW
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6212$as_echo "ok" >&6; }
1cf3d07d
SE
6213fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
80c6c2cb
PG
6229
6230
6231
6232
6233
1cf3d07d
SE
6234
6235
6236
5213506e
RW
6237# Check whether --enable-libtool-lock was given.
6238if test "${enable_libtool_lock+set}" = set; then :
6239 enableval=$enable_libtool_lock;
6240fi
1cf3d07d 6241
1cf3d07d 6242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
6243
6244# Some flags need to be propagated to the compiler or linker for good
6245# libtool support.
6246case $host in
1cf3d07d 6247ia64-*-hpux*)
675cdab3 6248 # Find out which ABI we are using.
1cf3d07d 6249 echo 'int i;' > conftest.$ac_ext
5213506e 6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3ed8e5b6
AT
6251 (eval $ac_compile) 2>&5
6252 ac_status=$?
5213506e
RW
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }; then
675cdab3 6255 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
6256 *ELF-32*)
6257 HPUX_IA64_MODE="32"
6258 ;;
6259 *ELF-64*)
6260 HPUX_IA64_MODE="64"
6261 ;;
3ed8e5b6 6262 esac
3ed8e5b6
AT
6263 fi
6264 rm -rf conftest*
6265 ;;
1cf3d07d
SE
6266*-*-irix6*)
6267 # Find out which ABI we are using.
5213506e
RW
6268 echo '#line 6268 "configure"' > conftest.$ac_ext
6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6270 (eval $ac_compile) 2>&5
6271 ac_status=$?
5213506e
RW
6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273 test $ac_status = 0; }; then
1cf3d07d
SE
6274 if test "$lt_cv_prog_gnu_ld" = yes; then
6275 case `/usr/bin/file conftest.$ac_objext` in
6276 *32-bit*)
6277 LD="${LD-ld} -melf32bsmip"
6278 ;;
6279 *N32*)
6280 LD="${LD-ld} -melf32bmipn32"
6281 ;;
6282 *64-bit*)
6283 LD="${LD-ld} -melf64bmip"
6284 ;;
6285 esac
6286 else
6287 case `/usr/bin/file conftest.$ac_objext` in
6288 *32-bit*)
6289 LD="${LD-ld} -32"
6290 ;;
6291 *N32*)
6292 LD="${LD-ld} -n32"
6293 ;;
6294 *64-bit*)
6295 LD="${LD-ld} -64"
6296 ;;
6297 esac
6298 fi
6299 fi
6300 rm -rf conftest*
6301 ;;
6302
6303x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6304s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6305 # Find out which ABI we are using.
6306 echo 'int i;' > conftest.$ac_ext
5213506e 6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6308 (eval $ac_compile) 2>&5
6309 ac_status=$?
5213506e
RW
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
1cf3d07d
SE
6312 case `/usr/bin/file conftest.o` in
6313 *32-bit*)
6314 case $host in
6315 x86_64-*kfreebsd*-gnu)
6316 LD="${LD-ld} -m elf_i386_fbsd"
6317 ;;
6318 x86_64-*linux*)
6319 LD="${LD-ld} -m elf_i386"
6320 ;;
6321 ppc64-*linux*|powerpc64-*linux*)
6322 LD="${LD-ld} -m elf32ppclinux"
6323 ;;
6324 s390x-*linux*)
6325 LD="${LD-ld} -m elf_s390"
6326 ;;
6327 sparc64-*linux*)
6328 LD="${LD-ld} -m elf32_sparc"
6329 ;;
6330 esac
6331 ;;
6332 *64-bit*)
6333 case $host in
6334 x86_64-*kfreebsd*-gnu)
6335 LD="${LD-ld} -m elf_x86_64_fbsd"
6336 ;;
6337 x86_64-*linux*)
6338 LD="${LD-ld} -m elf_x86_64"
6339 ;;
6340 ppc*-*linux*|powerpc*-*linux*)
6341 LD="${LD-ld} -m elf64ppc"
6342 ;;
6343 s390*-*linux*|s390*-*tpf*)
6344 LD="${LD-ld} -m elf64_s390"
6345 ;;
6346 sparc*-*linux*)
6347 LD="${LD-ld} -m elf64_sparc"
6348 ;;
6349 esac
6350 ;;
6351 esac
6352 fi
6353 rm -rf conftest*
6354 ;;
6355
6356*-*-sco3.2v5*)
6357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6358 SAVE_CFLAGS="$CFLAGS"
6359 CFLAGS="$CFLAGS -belf"
5213506e
RW
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6361$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6362if test "${lt_cv_cc_needs_belf+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6364else
6365 ac_ext=c
6366ac_cpp='$CPP $CPPFLAGS'
6367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369ac_compiler_gnu=$ac_cv_c_compiler_gnu
6370
5213506e 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6372/* end confdefs.h. */
6373
6374int
6375main ()
6376{
6377
6378 ;
6379 return 0;
6380}
6381_ACEOF
5213506e 6382if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6383 lt_cv_cc_needs_belf=yes
6384else
5213506e 6385 lt_cv_cc_needs_belf=no
1cf3d07d 6386fi
5213506e
RW
6387rm -f core conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6389 ac_ext=c
6390ac_cpp='$CPP $CPPFLAGS'
6391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395fi
5213506e
RW
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6397$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6398 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6399 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6400 CFLAGS="$SAVE_CFLAGS"
6401 fi
6402 ;;
6403sparc*-*solaris*)
6404 # Find out which ABI we are using.
6405 echo 'int i;' > conftest.$ac_ext
5213506e 6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6407 (eval $ac_compile) 2>&5
6408 ac_status=$?
5213506e
RW
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; }; then
1cf3d07d
SE
6411 case `/usr/bin/file conftest.o` in
6412 *64-bit*)
6413 case $lt_cv_prog_gnu_ld in
6414 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
6415 *)
6416 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6417 LD="${LD-ld} -64"
6418 fi
6419 ;;
1cf3d07d
SE
6420 esac
6421 ;;
6422 esac
6423 fi
6424 rm -rf conftest*
6425 ;;
6426esac
6427
6428need_locks="$enable_libtool_lock"
6429
80c6c2cb
PG
6430
6431 case $host_os in
6432 rhapsody* | darwin*)
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6435set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437$as_echo_n "checking for $ac_word... " >&6; }
6438if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
1cf3d07d 6440else
80c6c2cb
PG
6441 if test -n "$DSYMUTIL"; then
6442 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
1cf3d07d 6446do
80c6c2cb
PG
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
5213506e
RW
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6451 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb 6453 break 2
1cf3d07d 6454 fi
80c6c2cb 6455done
5213506e
RW
6456 done
6457IFS=$as_save_IFS
6458
80c6c2cb
PG
6459fi
6460fi
6461DSYMUTIL=$ac_cv_prog_DSYMUTIL
6462if test -n "$DSYMUTIL"; then
5213506e
RW
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6464$as_echo "$DSYMUTIL" >&6; }
80c6c2cb 6465else
5213506e
RW
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
80c6c2cb
PG
6468fi
6469
5213506e 6470
80c6c2cb
PG
6471fi
6472if test -z "$ac_cv_prog_DSYMUTIL"; then
6473 ac_ct_DSYMUTIL=$DSYMUTIL
6474 # Extract the first word of "dsymutil", so it can be a program name with args.
6475set dummy dsymutil; ac_word=$2
5213506e
RW
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477$as_echo_n "checking for $ac_word... " >&6; }
6478if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6480else
6481 if test -n "$ac_ct_DSYMUTIL"; then
6482 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6483else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
5213506e
RW
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6491 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6493 break 2
6494 fi
6495done
5213506e
RW
6496 done
6497IFS=$as_save_IFS
80c6c2cb 6498
80c6c2cb
PG
6499fi
6500fi
6501ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6502if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6504$as_echo "$ac_ct_DSYMUTIL" >&6; }
80c6c2cb 6505else
5213506e
RW
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }
80c6c2cb
PG
6508fi
6509
5213506e
RW
6510 if test "x$ac_ct_DSYMUTIL" = x; then
6511 DSYMUTIL=":"
6512 else
6513 case $cross_compiling:$ac_tool_warned in
6514yes:)
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517ac_tool_warned=yes ;;
6518esac
6519 DSYMUTIL=$ac_ct_DSYMUTIL
6520 fi
80c6c2cb
PG
6521else
6522 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6523fi
6524
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6527set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529$as_echo_n "checking for $ac_word... " >&6; }
6530if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6532else
6533 if test -n "$NMEDIT"; then
6534 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
5213506e
RW
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6543 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6545 break 2
6546 fi
6547done
5213506e
RW
6548 done
6549IFS=$as_save_IFS
80c6c2cb
PG
6550
6551fi
6552fi
6553NMEDIT=$ac_cv_prog_NMEDIT
6554if test -n "$NMEDIT"; then
5213506e
RW
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6556$as_echo "$NMEDIT" >&6; }
80c6c2cb 6557else
5213506e
RW
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559$as_echo "no" >&6; }
80c6c2cb
PG
6560fi
6561
5213506e 6562
80c6c2cb
PG
6563fi
6564if test -z "$ac_cv_prog_NMEDIT"; then
6565 ac_ct_NMEDIT=$NMEDIT
6566 # Extract the first word of "nmedit", so it can be a program name with args.
6567set dummy nmedit; ac_word=$2
5213506e
RW
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569$as_echo_n "checking for $ac_word... " >&6; }
6570if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6572else
6573 if test -n "$ac_ct_NMEDIT"; then
6574 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6575else
6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577for as_dir in $PATH
6578do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
5213506e
RW
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6583 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6585 break 2
6586 fi
6587done
5213506e
RW
6588 done
6589IFS=$as_save_IFS
80c6c2cb 6590
80c6c2cb
PG
6591fi
6592fi
6593ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6594if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6596$as_echo "$ac_ct_NMEDIT" >&6; }
80c6c2cb 6597else
5213506e
RW
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599$as_echo "no" >&6; }
80c6c2cb
PG
6600fi
6601
5213506e
RW
6602 if test "x$ac_ct_NMEDIT" = x; then
6603 NMEDIT=":"
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606yes:)
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6609ac_tool_warned=yes ;;
6610esac
6611 NMEDIT=$ac_ct_NMEDIT
6612 fi
80c6c2cb
PG
6613else
6614 NMEDIT="$ac_cv_prog_NMEDIT"
6615fi
6616
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6619set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
6622if test "${ac_cv_prog_LIPO+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6624else
6625 if test -n "$LIPO"; then
6626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
5213506e
RW
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6635 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6637 break 2
6638 fi
6639done
5213506e
RW
6640 done
6641IFS=$as_save_IFS
80c6c2cb
PG
6642
6643fi
6644fi
6645LIPO=$ac_cv_prog_LIPO
6646if test -n "$LIPO"; then
5213506e
RW
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6648$as_echo "$LIPO" >&6; }
80c6c2cb 6649else
5213506e
RW
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
80c6c2cb
PG
6652fi
6653
5213506e 6654
80c6c2cb
PG
6655fi
6656if test -z "$ac_cv_prog_LIPO"; then
6657 ac_ct_LIPO=$LIPO
6658 # Extract the first word of "lipo", so it can be a program name with args.
6659set dummy lipo; ac_word=$2
5213506e
RW
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661$as_echo_n "checking for $ac_word... " >&6; }
6662if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6663 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6664else
6665 if test -n "$ac_ct_LIPO"; then
6666 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6667else
6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669for as_dir in $PATH
6670do
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
5213506e
RW
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6675 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6677 break 2
6678 fi
6679done
5213506e
RW
6680 done
6681IFS=$as_save_IFS
80c6c2cb 6682
80c6c2cb
PG
6683fi
6684fi
6685ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6686if test -n "$ac_ct_LIPO"; then
5213506e
RW
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6688$as_echo "$ac_ct_LIPO" >&6; }
80c6c2cb 6689else
5213506e
RW
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691$as_echo "no" >&6; }
80c6c2cb
PG
6692fi
6693
5213506e
RW
6694 if test "x$ac_ct_LIPO" = x; then
6695 LIPO=":"
6696 else
6697 case $cross_compiling:$ac_tool_warned in
6698yes:)
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701ac_tool_warned=yes ;;
6702esac
6703 LIPO=$ac_ct_LIPO
6704 fi
80c6c2cb
PG
6705else
6706 LIPO="$ac_cv_prog_LIPO"
6707fi
6708
6709 if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6711set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if test "${ac_cv_prog_OTOOL+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6716else
6717 if test -n "$OTOOL"; then
6718 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
5213506e
RW
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6727 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6729 break 2
6730 fi
6731done
5213506e
RW
6732 done
6733IFS=$as_save_IFS
80c6c2cb
PG
6734
6735fi
6736fi
6737OTOOL=$ac_cv_prog_OTOOL
6738if test -n "$OTOOL"; then
5213506e
RW
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6740$as_echo "$OTOOL" >&6; }
80c6c2cb 6741else
5213506e
RW
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
80c6c2cb
PG
6744fi
6745
5213506e 6746
80c6c2cb
PG
6747fi
6748if test -z "$ac_cv_prog_OTOOL"; then
6749 ac_ct_OTOOL=$OTOOL
6750 # Extract the first word of "otool", so it can be a program name with args.
6751set dummy otool; ac_word=$2
5213506e
RW
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6755 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6756else
6757 if test -n "$ac_ct_OTOOL"; then
6758 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
5213506e
RW
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6767 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6769 break 2
6770 fi
6771done
5213506e
RW
6772 done
6773IFS=$as_save_IFS
80c6c2cb 6774
80c6c2cb
PG
6775fi
6776fi
6777ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6778if test -n "$ac_ct_OTOOL"; then
5213506e
RW
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6780$as_echo "$ac_ct_OTOOL" >&6; }
80c6c2cb 6781else
5213506e
RW
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
80c6c2cb
PG
6784fi
6785
5213506e
RW
6786 if test "x$ac_ct_OTOOL" = x; then
6787 OTOOL=":"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790yes:)
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793ac_tool_warned=yes ;;
6794esac
6795 OTOOL=$ac_ct_OTOOL
6796 fi
80c6c2cb
PG
6797else
6798 OTOOL="$ac_cv_prog_OTOOL"
6799fi
6800
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6803set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6808else
6809 if test -n "$OTOOL64"; then
6810 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
5213506e
RW
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6819 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6821 break 2
6822 fi
6823done
5213506e
RW
6824 done
6825IFS=$as_save_IFS
80c6c2cb
PG
6826
6827fi
6828fi
6829OTOOL64=$ac_cv_prog_OTOOL64
6830if test -n "$OTOOL64"; then
5213506e
RW
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6832$as_echo "$OTOOL64" >&6; }
80c6c2cb 6833else
5213506e
RW
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
80c6c2cb
PG
6836fi
6837
5213506e 6838
80c6c2cb
PG
6839fi
6840if test -z "$ac_cv_prog_OTOOL64"; then
6841 ac_ct_OTOOL64=$OTOOL64
6842 # Extract the first word of "otool64", so it can be a program name with args.
6843set dummy otool64; ac_word=$2
5213506e
RW
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
6846if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6848else
6849 if test -n "$ac_ct_OTOOL64"; then
6850 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
5213506e
RW
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
80c6c2cb 6859 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80c6c2cb
PG
6861 break 2
6862 fi
6863done
5213506e
RW
6864 done
6865IFS=$as_save_IFS
80c6c2cb 6866
80c6c2cb
PG
6867fi
6868fi
6869ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6870if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6872$as_echo "$ac_ct_OTOOL64" >&6; }
80c6c2cb 6873else
5213506e
RW
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875$as_echo "no" >&6; }
80c6c2cb
PG
6876fi
6877
5213506e
RW
6878 if test "x$ac_ct_OTOOL64" = x; then
6879 OTOOL64=":"
6880 else
6881 case $cross_compiling:$ac_tool_warned in
6882yes:)
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885ac_tool_warned=yes ;;
6886esac
6887 OTOOL64=$ac_ct_OTOOL64
6888 fi
80c6c2cb
PG
6889else
6890 OTOOL64="$ac_cv_prog_OTOOL64"
6891fi
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
5213506e
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6920$as_echo_n "checking for -single_module linker flag... " >&6; }
6921if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6923else
6924 lt_cv_apple_cc_single_mod=no
6925 if test -z "${LT_MULTI_MODULE}"; then
6926 # By default we will add the -single_module flag. You can override
6927 # by either setting the environment variable LT_MULTI_MODULE
6928 # non-empty at configure time, or by adding -multi_module to the
6929 # link flags.
6930 rm -rf libconftest.dylib*
6931 echo "int foo(void){return 1;}" > conftest.c
6932 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6933-dynamiclib -Wl,-single_module conftest.c" >&5
6934 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6935 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6936 _lt_result=$?
6937 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6938 lt_cv_apple_cc_single_mod=yes
6939 else
6940 cat conftest.err >&5
6941 fi
6942 rm -rf libconftest.dylib*
6943 rm -f conftest.*
6944 fi
6945fi
5213506e
RW
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6947$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6949$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6950if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
80c6c2cb
PG
6952else
6953 lt_cv_ld_exported_symbols_list=no
6954 save_LDFLAGS=$LDFLAGS
6955 echo "_main" > conftest.sym
6956 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
6958/* end confdefs.h. */
6959
6960int
6961main ()
6962{
6963
6964 ;
6965 return 0;
6966}
6967_ACEOF
5213506e 6968if ac_fn_c_try_link "$LINENO"; then :
80c6c2cb
PG
6969 lt_cv_ld_exported_symbols_list=yes
6970else
5213506e 6971 lt_cv_ld_exported_symbols_list=no
80c6c2cb 6972fi
5213506e
RW
6973rm -f core conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
80c6c2cb
PG
6975 LDFLAGS="$save_LDFLAGS"
6976
6977fi
5213506e
RW
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6979$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
80c6c2cb
PG
6980 case $host_os in
6981 rhapsody* | darwin1.[012])
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6983 darwin1.*)
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985 darwin*) # darwin 5.x on
6986 # if running on 10.5 or later, the deployment target defaults
6987 # to the OS version, if on x86, and 10.4, the deployment
6988 # target defaults to 10.4. Don't you love it?
6989 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6990 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992 10.[012]*)
6993 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6994 10.*)
6995 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6996 esac
6997 ;;
6998 esac
6999 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7000 _lt_dar_single_mod='$single_module'
7001 fi
7002 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7003 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7004 else
7005 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7006 fi
7007 if test "$DSYMUTIL" != ":"; then
7008 _lt_dsymutil='~$DSYMUTIL $lib || :'
7009 else
7010 _lt_dsymutil=
7011 fi
7012 ;;
7013 esac
7014
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7021$as_echo_n "checking how to run the C preprocessor... " >&6; }
80c6c2cb
PG
7022# On Suns, sometimes $CPP names a directory.
7023if test -n "$CPP" && test -d "$CPP"; then
7024 CPP=
7025fi
7026if test -z "$CPP"; then
5213506e
RW
7027 if test "${ac_cv_prog_CPP+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
80c6c2cb
PG
7029else
7030 # Double quotes because CPP needs to be expanded
7031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7032 do
7033 ac_preproc_ok=false
7034for ac_c_preproc_warn_flag in '' yes
7035do
7036 # Use a header file that comes with gcc, so configuring glibc
7037 # with a fresh cross-compiler works.
7038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7039 # <limits.h> exists even on freestanding compilers.
7040 # On the NeXT, cc -E runs the code through the compiler's parser,
7041 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80c6c2cb
PG
7043/* end confdefs.h. */
7044#ifdef __STDC__
7045# include <limits.h>
7046#else
7047# include <assert.h>
7048#endif
7049 Syntax error
7050_ACEOF
5213506e 7051if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7052
5213506e 7053else
1cf3d07d
SE
7054 # Broken: fails on valid input.
7055continue
7056fi
7057rm -f conftest.err conftest.$ac_ext
7058
5213506e 7059 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7060 # can be detected and how.
5213506e 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7062/* end confdefs.h. */
7063#include <ac_nonexistent.h>
7064_ACEOF
5213506e 7065if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7066 # Broken: success on invalid input.
7067continue
7068else
1cf3d07d
SE
7069 # Passes both tests.
7070ac_preproc_ok=:
7071break
7072fi
7073rm -f conftest.err conftest.$ac_ext
7074
7075done
7076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077rm -f conftest.err conftest.$ac_ext
5213506e 7078if $ac_preproc_ok; then :
1cf3d07d
SE
7079 break
7080fi
7081
7082 done
7083 ac_cv_prog_CPP=$CPP
7084
7085fi
7086 CPP=$ac_cv_prog_CPP
7087else
7088 ac_cv_prog_CPP=$CPP
7089fi
5213506e
RW
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7091$as_echo "$CPP" >&6; }
1cf3d07d
SE
7092ac_preproc_ok=false
7093for ac_c_preproc_warn_flag in '' yes
7094do
7095 # Use a header file that comes with gcc, so configuring glibc
7096 # with a fresh cross-compiler works.
7097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 # <limits.h> exists even on freestanding compilers.
7099 # On the NeXT, cc -E runs the code through the compiler's parser,
7100 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7102/* end confdefs.h. */
7103#ifdef __STDC__
7104# include <limits.h>
7105#else
7106# include <assert.h>
7107#endif
7108 Syntax error
7109_ACEOF
5213506e 7110if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7111
5213506e 7112else
1cf3d07d
SE
7113 # Broken: fails on valid input.
7114continue
7115fi
7116rm -f conftest.err conftest.$ac_ext
7117
5213506e 7118 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7119 # can be detected and how.
5213506e 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7121/* end confdefs.h. */
7122#include <ac_nonexistent.h>
7123_ACEOF
5213506e 7124if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7125 # Broken: success on invalid input.
7126continue
7127else
1cf3d07d
SE
7128 # Passes both tests.
7129ac_preproc_ok=:
7130break
7131fi
7132rm -f conftest.err conftest.$ac_ext
7133
7134done
7135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136rm -f conftest.err conftest.$ac_ext
5213506e
RW
7137if $ac_preproc_ok; then :
7138
1cf3d07d 7139else
5213506e
RW
7140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7142as_fn_error "C preprocessor \"$CPP\" fails sanity check
7143See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7144fi
7145
7146ac_ext=c
7147ac_cpp='$CPP $CPPFLAGS'
7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151
7152
5213506e
RW
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7154$as_echo_n "checking for ANSI C header files... " >&6; }
7155if test "${ac_cv_header_stdc+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
1cf3d07d 7157else
5213506e 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7159/* end confdefs.h. */
7160#include <stdlib.h>
7161#include <stdarg.h>
7162#include <string.h>
7163#include <float.h>
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
5213506e 7173if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7174 ac_cv_header_stdc=yes
7175else
5213506e 7176 ac_cv_header_stdc=no
1cf3d07d 7177fi
5213506e 7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7183/* end confdefs.h. */
7184#include <string.h>
7185
7186_ACEOF
7187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7188 $EGREP "memchr" >/dev/null 2>&1; then :
7189
1cf3d07d
SE
7190else
7191 ac_cv_header_stdc=no
7192fi
7193rm -f conftest*
7194
7195fi
7196
7197if test $ac_cv_header_stdc = yes; then
7198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7200/* end confdefs.h. */
7201#include <stdlib.h>
7202
7203_ACEOF
7204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7205 $EGREP "free" >/dev/null 2>&1; then :
7206
1cf3d07d
SE
7207else
7208 ac_cv_header_stdc=no
7209fi
7210rm -f conftest*
7211
7212fi
7213
7214if test $ac_cv_header_stdc = yes; then
7215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7216 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7217 :
7218else
5213506e 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7220/* end confdefs.h. */
7221#include <ctype.h>
5213506e 7222#include <stdlib.h>
1cf3d07d
SE
7223#if ((' ' & 0x0FF) == 0x020)
7224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226#else
7227# define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232#endif
7233
7234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235int
7236main ()
7237{
7238 int i;
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
5213506e
RW
7242 return 2;
7243 return 0;
1cf3d07d
SE
7244}
7245_ACEOF
5213506e 7246if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7247
5213506e
RW
7248else
7249 ac_cv_header_stdc=no
1cf3d07d 7250fi
5213506e
RW
7251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7253fi
5213506e 7254
1cf3d07d
SE
7255fi
7256fi
5213506e
RW
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7258$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7259if test $ac_cv_header_stdc = yes; then
7260
5213506e 7261$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7262
7263fi
7264
7265# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
5213506e
RW
7268do :
7269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7271"
7272eval as_val=\$$as_ac_Header
7273 if test "x$as_val" = x""yes; then :
80c6c2cb 7274 cat >>confdefs.h <<_ACEOF
5213506e 7275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
80c6c2cb
PG
7276_ACEOF
7277
7278fi
7279
7280done
7281
7282
80c6c2cb 7283for ac_header in dlfcn.h
5213506e
RW
7284do :
7285 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7286"
7287if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
80c6c2cb 7288 cat >>confdefs.h <<_ACEOF
5213506e 7289#define HAVE_DLFCN_H 1
80c6c2cb
PG
7290_ACEOF
7291
7292fi
7293
7294done
7295
7296
7297
7298# Set options
7299
7300
7301
7302 enable_dlopen=no
7303
7304
7305 enable_win32_dll=no
7306
7307
5213506e
RW
7308 # Check whether --enable-shared was given.
7309if test "${enable_shared+set}" = set; then :
7310 enableval=$enable_shared; p=${PACKAGE-default}
80c6c2cb
PG
7311 case $enableval in
7312 yes) enable_shared=yes ;;
7313 no) enable_shared=no ;;
7314 *)
7315 enable_shared=no
7316 # Look at the argument we got. We use all the common list separators.
7317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7318 for pkg in $enableval; do
7319 IFS="$lt_save_ifs"
7320 if test "X$pkg" = "X$p"; then
7321 enable_shared=yes
7322 fi
7323 done
7324 IFS="$lt_save_ifs"
7325 ;;
7326 esac
7327else
7328 enable_shared=yes
5213506e
RW
7329fi
7330
80c6c2cb
PG
7331
7332
7333
7334
7335
7336
7337
7338
5213506e
RW
7339 # Check whether --enable-static was given.
7340if test "${enable_static+set}" = set; then :
7341 enableval=$enable_static; p=${PACKAGE-default}
80c6c2cb
PG
7342 case $enableval in
7343 yes) enable_static=yes ;;
7344 no) enable_static=no ;;
7345 *)
7346 enable_static=no
7347 # Look at the argument we got. We use all the common list separators.
7348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7349 for pkg in $enableval; do
7350 IFS="$lt_save_ifs"
7351 if test "X$pkg" = "X$p"; then
7352 enable_static=yes
7353 fi
7354 done
7355 IFS="$lt_save_ifs"
7356 ;;
7357 esac
7358else
7359 enable_static=yes
5213506e
RW
7360fi
7361
80c6c2cb
PG
7362
7363
7364
7365
7366
7367
7368
7369
7370
5213506e
RW
7371# Check whether --with-pic was given.
7372if test "${with_pic+set}" = set; then :
7373 withval=$with_pic; pic_mode="$withval"
80c6c2cb
PG
7374else
7375 pic_mode=default
5213506e
RW
7376fi
7377
1cf3d07d 7378
80c6c2cb 7379test -z "$pic_mode" && pic_mode=default
1cf3d07d 7380
1cf3d07d 7381
1cf3d07d
SE
7382
7383
7384
1cf3d07d 7385
80c6c2cb 7386
5213506e
RW
7387 # Check whether --enable-fast-install was given.
7388if test "${enable_fast_install+set}" = set; then :
7389 enableval=$enable_fast_install; p=${PACKAGE-default}
80c6c2cb
PG
7390 case $enableval in
7391 yes) enable_fast_install=yes ;;
7392 no) enable_fast_install=no ;;
7393 *)
7394 enable_fast_install=no
7395 # Look at the argument we got. We use all the common list separators.
7396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397 for pkg in $enableval; do
7398 IFS="$lt_save_ifs"
7399 if test "X$pkg" = "X$p"; then
7400 enable_fast_install=yes
7401 fi
7402 done
7403 IFS="$lt_save_ifs"
7404 ;;
7405 esac
1cf3d07d 7406else
80c6c2cb 7407 enable_fast_install=yes
5213506e
RW
7408fi
7409
80c6c2cb
PG
7410
7411
7412
7413
1cf3d07d 7414
1cf3d07d 7415
1cf3d07d 7416
1cf3d07d
SE
7417
7418
7419
7420# This can be used to rebuild libtool when needed
7421LIBTOOL_DEPS="$ltmain"
7422
7423# Always use our own libtool.
7424LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450test -z "$LN_S" && LN_S="ln -s"
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465if test -n "${ZSH_VERSION+set}" ; then
7466 setopt NO_GLOB_SUBST
7467fi
7468
5213506e
RW
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7470$as_echo_n "checking for objdir... " >&6; }
7471if test "${lt_cv_objdir+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7473else
7474 rm -f .libs 2>/dev/null
7475mkdir .libs 2>/dev/null
7476if test -d .libs; then
7477 lt_cv_objdir=.libs
7478else
7479 # MS-DOS does not allow filenames that begin with a dot.
7480 lt_cv_objdir=_libs
7481fi
7482rmdir .libs 2>/dev/null
7483fi
5213506e
RW
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7485$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7486objdir=$lt_cv_objdir
7487
7488
7489
7490
7491
7492cat >>confdefs.h <<_ACEOF
7493#define LT_OBJDIR "$lt_cv_objdir/"
7494_ACEOF
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512case $host_os in
7513aix3*)
7514 # AIX sometimes has problems with the GCC collect2 program. For some
7515 # reason, if we set the COLLECT_NAMES environment variable, the problems
7516 # vanish in a puff of smoke.
7517 if test "X${COLLECT_NAMES+set}" != Xset; then
7518 COLLECT_NAMES=
7519 export COLLECT_NAMES
7520 fi
7521 ;;
7522esac
7523
7524# Sed substitution that helps us do robust quoting. It backslashifies
7525# metacharacters that are still active within double-quoted strings.
7526sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7527
7528# Same as above, but do not quote variable references.
7529double_quote_subst='s/\(["`\\]\)/\\\1/g'
7530
7531# Sed substitution to delay expansion of an escaped shell variable in a
7532# double_quote_subst'ed string.
7533delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7534
7535# Sed substitution to delay expansion of an escaped single quote.
7536delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7537
7538# Sed substitution to avoid accidental globbing in evaled expressions
7539no_glob_subst='s/\*/\\\*/g'
7540
7541# Global variables:
7542ofile=libtool
7543can_build_shared=yes
7544
7545# All known linkers require a `.a' archive for static linking (except MSVC,
7546# which needs '.lib').
7547libext=a
7548
7549with_gnu_ld="$lt_cv_prog_gnu_ld"
7550
7551old_CC="$CC"
7552old_CFLAGS="$CFLAGS"
7553
7554# Set sane defaults for various variables
7555test -z "$CC" && CC=cc
7556test -z "$LTCC" && LTCC=$CC
7557test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7558test -z "$LD" && LD=ld
7559test -z "$ac_objext" && ac_objext=o
7560
7561for cc_temp in $compiler""; do
7562 case $cc_temp in
7563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7565 \-*) ;;
7566 *) break;;
7567 esac
7568done
7569cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7570
7571
7572# Only perform the check for file, if the check method requires it
7573test -z "$MAGIC_CMD" && MAGIC_CMD=file
7574case $deplibs_check_method in
7575file_magic*)
7576 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7578$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7579if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7581else
7582 case $MAGIC_CMD in
7583[\\/*] | ?:[\\/]*)
7584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7585 ;;
7586*)
7587 lt_save_MAGIC_CMD="$MAGIC_CMD"
7588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7590 for ac_dir in $ac_dummy; do
7591 IFS="$lt_save_ifs"
7592 test -z "$ac_dir" && ac_dir=.
7593 if test -f $ac_dir/${ac_tool_prefix}file; then
7594 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7595 if test -n "$file_magic_test_file"; then
7596 case $deplibs_check_method in
7597 "file_magic "*)
7598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7601 $EGREP "$file_magic_regex" > /dev/null; then
7602 :
7603 else
7604 cat <<_LT_EOF 1>&2
7605
7606*** Warning: the command libtool uses to detect shared libraries,
7607*** $file_magic_cmd, produces output that libtool cannot recognize.
7608*** The result is that libtool may fail to recognize shared libraries
7609*** as such. This will affect the creation of libtool libraries that
7610*** depend on shared libraries, but programs linked with such libtool
7611*** libraries will work regardless of this problem. Nevertheless, you
7612*** may want to report the problem to your system manager and/or to
7613*** bug-libtool@gnu.org
7614
7615_LT_EOF
7616 fi ;;
7617 esac
7618 fi
7619 break
7620 fi
7621 done
7622 IFS="$lt_save_ifs"
7623 MAGIC_CMD="$lt_save_MAGIC_CMD"
7624 ;;
7625esac
7626fi
7627
7628MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629if test -n "$MAGIC_CMD"; then
5213506e
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7631$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7632else
5213506e
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
1cf3d07d
SE
7635fi
7636
7637
7638
7639
7640
7641if test -z "$lt_cv_path_MAGIC_CMD"; then
7642 if test -n "$ac_tool_prefix"; then
5213506e
RW
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7644$as_echo_n "checking for file... " >&6; }
7645if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7647else
7648 case $MAGIC_CMD in
7649[\\/*] | ?:[\\/]*)
7650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651 ;;
7652*)
7653 lt_save_MAGIC_CMD="$MAGIC_CMD"
7654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656 for ac_dir in $ac_dummy; do
7657 IFS="$lt_save_ifs"
7658 test -z "$ac_dir" && ac_dir=.
7659 if test -f $ac_dir/file; then
7660 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7661 if test -n "$file_magic_test_file"; then
7662 case $deplibs_check_method in
7663 "file_magic "*)
7664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667 $EGREP "$file_magic_regex" > /dev/null; then
7668 :
7669 else
7670 cat <<_LT_EOF 1>&2
7671
7672*** Warning: the command libtool uses to detect shared libraries,
7673*** $file_magic_cmd, produces output that libtool cannot recognize.
7674*** The result is that libtool may fail to recognize shared libraries
7675*** as such. This will affect the creation of libtool libraries that
7676*** depend on shared libraries, but programs linked with such libtool
7677*** libraries will work regardless of this problem. Nevertheless, you
7678*** may want to report the problem to your system manager and/or to
7679*** bug-libtool@gnu.org
7680
7681_LT_EOF
7682 fi ;;
7683 esac
7684 fi
7685 break
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 MAGIC_CMD="$lt_save_MAGIC_CMD"
7690 ;;
7691esac
7692fi
7693
7694MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695if test -n "$MAGIC_CMD"; then
5213506e
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7698else
5213506e
RW
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
1cf3d07d
SE
7701fi
7702
7703
7704 else
7705 MAGIC_CMD=:
7706 fi
7707fi
7708
7709 fi
7710 ;;
7711esac
7712
7713# Use C for the default configuration in the libtool script
7714
7715lt_save_CC="$CC"
7716ac_ext=c
7717ac_cpp='$CPP $CPPFLAGS'
7718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
7722
7723# Source file extension for C test sources.
7724ac_ext=c
7725
7726# Object file extension for compiled C test sources.
7727objext=o
7728objext=$objext
7729
7730# Code to be used in simple compile tests
7731lt_simple_compile_test_code="int some_variable = 0;"
7732
7733# Code to be used in simple link tests
7734lt_simple_link_test_code='int main(){return(0);}'
7735
7736
7737
7738
7739
7740
7741
7742# If no C compiler was specified, use CC.
7743LTCC=${LTCC-"$CC"}
7744
7745# If no C compiler flags were specified, use CFLAGS.
7746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7747
7748# Allow CC to be a program name with arguments.
7749compiler=$CC
7750
7751# Save the default compiler, since it gets overwritten when the other
7752# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7753compiler_DEFAULT=$CC
7754
7755# save warnings/boilerplate of simple test code
7756ac_outfile=conftest.$ac_objext
7757echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7758eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7759_lt_compiler_boilerplate=`cat conftest.err`
7760$RM conftest*
7761
7762ac_outfile=conftest.$ac_objext
7763echo "$lt_simple_link_test_code" >conftest.$ac_ext
7764eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7765_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 7766$RM -r conftest*
1cf3d07d
SE
7767
7768
7769## CAVEAT EMPTOR:
7770## There is no encapsulation within the following macros, do not change
7771## the running order or otherwise move them around unless you know exactly
7772## what you are doing...
7773if test -n "$compiler"; then
7774
7775lt_prog_compiler_no_builtin_flag=
7776
7777if test "$GCC" = yes; then
7778 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7779
5213506e
RW
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7781$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7782if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7784else
7785 lt_cv_prog_compiler_rtti_exceptions=no
7786 ac_outfile=conftest.$ac_objext
7787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-fno-rtti -fno-exceptions"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 # The option is referenced via a variable to avoid confusing sed.
7794 lt_compile=`echo "$ac_compile" | $SED \
7795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7797 -e 's:$: $lt_compiler_flag:'`
5213506e 7798 (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
1cf3d07d
SE
7799 (eval "$lt_compile" 2>conftest.err)
7800 ac_status=$?
7801 cat conftest.err >&5
5213506e 7802 echo "$as_me:7802: \$? = $ac_status" >&5
1cf3d07d
SE
7803 if (exit $ac_status) && test -s "$ac_outfile"; then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings other than the usual output.
7806 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_rtti_exceptions=yes
7810 fi
7811 fi
7812 $RM conftest*
7813
7814fi
5213506e
RW
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7816$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
7817
7818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7820else
7821 :
7822fi
7823
7824fi
7825
7826
7827
7828
7829
7830
7831 lt_prog_compiler_wl=
7832lt_prog_compiler_pic=
7833lt_prog_compiler_static=
7834
5213506e
RW
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7836$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
7837
7838 if test "$GCC" = yes; then
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_static='-static'
7841
7842 case $host_os in
7843 aix*)
7844 # All AIX code is PIC.
7845 if test "$host_cpu" = ia64; then
7846 # AIX 5 now supports IA64 processor
7847 lt_prog_compiler_static='-Bstatic'
7848 fi
7849 ;;
7850
7851 amigaos*)
80c6c2cb
PG
7852 case $host_cpu in
7853 powerpc)
7854 # see comment about AmigaOS4 .so support
7855 lt_prog_compiler_pic='-fPIC'
7856 ;;
7857 m68k)
7858 # FIXME: we need at least 68020 code to build shared libraries, but
7859 # adding the `-m68020' flag to GCC prevents building anything better,
7860 # like `-m68040'.
7861 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7862 ;;
7863 esac
1cf3d07d
SE
7864 ;;
7865
7866 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7867 # PIC is the default for these OSes.
7868 ;;
7869
80c6c2cb 7870 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7871 # This hack is so that the source file can tell whether it is being
7872 # built for inclusion in a dll (and should export symbols for example).
7873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7874 # (--disable-auto-import) libraries
7875 lt_prog_compiler_pic='-DDLL_EXPORT'
7876 ;;
7877
7878 darwin* | rhapsody*)
7879 # PIC is the default on this platform
7880 # Common symbols not allowed in MH_DYLIB files
7881 lt_prog_compiler_pic='-fno-common'
7882 ;;
7883
7884 hpux*)
80c6c2cb
PG
7885 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7886 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7887 # sets the default TLS model and affects inlining.
1cf3d07d 7888 case $host_cpu in
80c6c2cb 7889 hppa*64*)
1cf3d07d
SE
7890 # +Z the default
7891 ;;
7892 *)
7893 lt_prog_compiler_pic='-fPIC'
7894 ;;
7895 esac
7896 ;;
7897
7898 interix[3-9]*)
7899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7900 # Instead, we relocate shared libraries at runtime.
7901 ;;
7902
7903 msdosdjgpp*)
7904 # Just because we use GCC doesn't mean we suddenly get shared libraries
7905 # on systems that don't support them.
7906 lt_prog_compiler_can_build_shared=no
7907 enable_shared=no
7908 ;;
7909
7910 *nto* | *qnx*)
7911 # QNX uses GNU C++, but need to define -shared option too, otherwise
7912 # it will coredump.
7913 lt_prog_compiler_pic='-fPIC -shared'
7914 ;;
7915
7916 sysv4*MP*)
7917 if test -d /usr/nec; then
7918 lt_prog_compiler_pic=-Kconform_pic
7919 fi
7920 ;;
7921
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 else
7927 # PORTME Check for flag to pass linker flags through the system compiler.
7928 case $host_os in
7929 aix*)
7930 lt_prog_compiler_wl='-Wl,'
7931 if test "$host_cpu" = ia64; then
7932 # AIX 5 now supports IA64 processor
7933 lt_prog_compiler_static='-Bstatic'
7934 else
7935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7936 fi
7937 ;;
1cf3d07d 7938
80c6c2cb 7939 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
7940 # This hack is so that the source file can tell whether it is being
7941 # built for inclusion in a dll (and should export symbols for example).
7942 lt_prog_compiler_pic='-DDLL_EXPORT'
7943 ;;
7944
7945 hpux9* | hpux10* | hpux11*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7948 # not for PA HP-UX.
7949 case $host_cpu in
7950 hppa*64*|ia64*)
7951 # +Z the default
7952 ;;
7953 *)
7954 lt_prog_compiler_pic='+Z'
7955 ;;
7956 esac
7957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7958 lt_prog_compiler_static='${wl}-a ${wl}archive'
7959 ;;
7960
7961 irix5* | irix6* | nonstopux*)
7962 lt_prog_compiler_wl='-Wl,'
7963 # PIC (with -KPIC) is the default.
7964 lt_prog_compiler_static='-non_shared'
7965 ;;
7966
7a9d3fe8 7967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 7968 case $cc_basename in
80c6c2cb
PG
7969 # old Intel for x86_64 which still supported -KPIC.
7970 ecc*)
1cf3d07d
SE
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-KPIC'
7973 lt_prog_compiler_static='-static'
7974 ;;
80c6c2cb
PG
7975 # icc used to be incompatible with GCC.
7976 # ICC 10 doesn't accept -KPIC any more.
7977 icc* | ifort*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-fPIC'
7980 lt_prog_compiler_static='-static'
7981 ;;
7982 # Lahey Fortran 8.1.
7983 lf95*)
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_pic='--shared'
7986 lt_prog_compiler_static='--static'
7987 ;;
1cf3d07d
SE
7988 pgcc* | pgf77* | pgf90* | pgf95*)
7989 # Portland Group compilers (*not* the Pentium gcc compiler,
7990 # which looks to be a dead project)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='-fpic'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
7995 ccc*)
7996 lt_prog_compiler_wl='-Wl,'
7997 # All Alpha code is PIC.
7998 lt_prog_compiler_static='-non_shared'
7999 ;;
80c6c2cb
PG
8000 xl*)
8001 # IBM XL C 8.0/Fortran 10.1 on PPC
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-qpic'
8004 lt_prog_compiler_static='-qstaticlink'
8005 ;;
1cf3d07d
SE
8006 *)
8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ C*)
8009 # Sun C 5.9
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl='-Wl,'
8013 ;;
8014 *Sun\ F*)
8015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl=''
8019 ;;
8020 esac
8021 ;;
8022 esac
8023 ;;
8024
8025 newsos6)
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029
8030 *nto* | *qnx*)
8031 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 # it will coredump.
8033 lt_prog_compiler_pic='-fPIC -shared'
8034 ;;
8035
8036 osf3* | osf4* | osf5*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # All OSF/1 code is PIC.
8039 lt_prog_compiler_static='-non_shared'
8040 ;;
8041
8042 rdos*)
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
8046 solaris*)
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 case $cc_basename in
8050 f77* | f90* | f95*)
8051 lt_prog_compiler_wl='-Qoption ld ';;
8052 *)
8053 lt_prog_compiler_wl='-Wl,';;
8054 esac
8055 ;;
8056
8057 sunos4*)
8058 lt_prog_compiler_wl='-Qoption ld '
8059 lt_prog_compiler_pic='-PIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 sysv4 | sysv4.2uw2* | sysv4.3*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 sysv4*MP*)
8070 if test -d /usr/nec ;then
8071 lt_prog_compiler_pic='-Kconform_pic'
8072 lt_prog_compiler_static='-Bstatic'
8073 fi
8074 ;;
8075
8076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 unicos*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_can_build_shared=no
8085 ;;
8086
8087 uts4*)
8088 lt_prog_compiler_pic='-pic'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 *)
8093 lt_prog_compiler_can_build_shared=no
8094 ;;
8095 esac
8096 fi
8097
8098case $host_os in
8099 # For platforms which do not support PIC, -DPIC is meaningless:
8100 *djgpp*)
8101 lt_prog_compiler_pic=
8102 ;;
8103 *)
8104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105 ;;
8106esac
5213506e
RW
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8108$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8109
8110
8111
8112
8113
8114
8115#
8116# Check to make sure the PIC flag actually works.
8117#
8118if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8120$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8121if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8122 $as_echo_n "(cached) " >&6
1cf3d07d 8123else
80c6c2cb 8124 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8128 # Insert the option either (1) after the last *FLAGS variable, or
8129 # (2) before a word containing "conftest.", or (3) at the end.
8130 # Note that $ac_compile itself does not contain backslashes and begins
8131 # with a dollar sign (not a hyphen), so the echo should work correctly.
8132 # The option is referenced via a variable to avoid confusing sed.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
5213506e 8137 (eval echo "\"\$as_me:8137: $lt_compile\"" >&5)
1cf3d07d
SE
8138 (eval "$lt_compile" 2>conftest.err)
8139 ac_status=$?
8140 cat conftest.err >&5
5213506e 8141 echo "$as_me:8141: \$? = $ac_status" >&5
1cf3d07d
SE
8142 if (exit $ac_status) && test -s "$ac_outfile"; then
8143 # The compiler can only warn and ignore the option if not recognized
8144 # So say no if there are warnings other than the usual output.
8145 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8148 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8149 fi
8150 fi
8151 $RM conftest*
8152
8153fi
5213506e
RW
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8155$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8156
80c6c2cb 8157if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8158 case $lt_prog_compiler_pic in
8159 "" | " "*) ;;
8160 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8161 esac
8162else
8163 lt_prog_compiler_pic=
8164 lt_prog_compiler_can_build_shared=no
8165fi
8166
8167fi
8168
8169
8170
8171
8172
8173
8174#
8175# Check to make sure the static flag actually works.
8176#
8177wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8179$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8180if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
1cf3d07d 8182else
80c6c2cb 8183 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8184 save_LDFLAGS="$LDFLAGS"
8185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8188 # The linker can only warn and ignore the option if not recognized
8189 # So say no if there are warnings
8190 if test -s conftest.err; then
8191 # Append any errors to the config.log.
8192 cat conftest.err 1>&5
8193 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 8196 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8197 fi
8198 else
80c6c2cb 8199 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8200 fi
8201 fi
80c6c2cb 8202 $RM -r conftest*
1cf3d07d
SE
8203 LDFLAGS="$save_LDFLAGS"
8204
8205fi
5213506e
RW
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8207$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8208
80c6c2cb 8209if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8210 :
8211else
8212 lt_prog_compiler_static=
8213fi
8214
8215
8216
8217
8218
8219
8220
5213506e
RW
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8225else
8226 lt_cv_prog_compiler_c_o=no
8227 $RM -r conftest 2>/dev/null
8228 mkdir conftest
8229 cd conftest
8230 mkdir out
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233 lt_compiler_flag="-o out/conftest2.$ac_objext"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
5213506e 8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
1cf3d07d
SE
8243 (eval "$lt_compile" 2>out/conftest.err)
8244 ac_status=$?
8245 cat out/conftest.err >&5
5213506e 8246 echo "$as_me:8246: \$? = $ac_status" >&5
1cf3d07d
SE
8247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248 then
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_c_o=yes
8255 fi
8256 fi
8257 chmod u+w . 2>&5
8258 $RM conftest*
8259 # SGI C++ compiler will create directory out/ii_files/ for
8260 # template instantiation
8261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262 $RM out/* && rmdir out
8263 cd ..
8264 $RM -r conftest
8265 $RM conftest*
8266
8267fi
5213506e
RW
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8270
8271
8272
8273
8274
8275
5213506e
RW
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8280else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
5213506e 8297 (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
1cf3d07d
SE
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
5213506e 8301 echo "$as_me:8301: \$? = $ac_status" >&5
1cf3d07d
SE
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8310 fi
8311 fi
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8321
8322fi
5213506e
RW
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8325
8326
8327
8328
8329hard_links="nottested"
8330if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8331 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8333$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8334 hard_links=yes
8335 $RM conftest*
8336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8337 touch conftest.a
8338 ln conftest.a conftest.b 2>&5 || hard_links=no
8339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8341$as_echo "$hard_links" >&6; }
1cf3d07d 8342 if test "$hard_links" = no; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8344$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8345 need_locks=warn
8346 fi
8347else
8348 need_locks=no
8349fi
8350
8351
8352
8353
8354
8355
5213506e
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8358
8359 runpath_var=
8360 allow_undefined_flag=
8361 always_export_symbols=no
8362 archive_cmds=
8363 archive_expsym_cmds=
8364 compiler_needs_object=no
8365 enable_shared_with_static_runtimes=no
8366 export_dynamic_flag_spec=
8367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8368 hardcode_automatic=no
8369 hardcode_direct=no
8370 hardcode_direct_absolute=no
8371 hardcode_libdir_flag_spec=
8372 hardcode_libdir_flag_spec_ld=
8373 hardcode_libdir_separator=
8374 hardcode_minus_L=no
8375 hardcode_shlibpath_var=unsupported
8376 inherit_rpath=no
8377 link_all_deplibs=unknown
8378 module_cmds=
8379 module_expsym_cmds=
8380 old_archive_from_new_cmds=
8381 old_archive_from_expsyms_cmds=
8382 thread_safe_flag_spec=
8383 whole_archive_flag_spec=
8384 # include_expsyms should be a list of space-separated symbols to be *always*
8385 # included in the symbol list
8386 include_expsyms=
8387 # exclude_expsyms can be an extended regexp of symbols to exclude
8388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8390 # as well as any symbol that contains `d'.
80c6c2cb 8391 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8393 # platforms (ab)use it in PIC code, but their linkers get confused if
8394 # the symbol is explicitly referenced. Since portable code cannot
8395 # rely on this symbol name, it's probably fine to never include it in
8396 # preloaded symbol tables.
80c6c2cb 8397 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8398 extract_expsyms_cmds=
8399
8400 case $host_os in
80c6c2cb 8401 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8403 # When not using gcc, we currently assume that we are using
8404 # Microsoft Visual C++.
8405 if test "$GCC" != yes; then
8406 with_gnu_ld=no
8407 fi
8408 ;;
8409 interix*)
8410 # we just hope/assume this is gcc and not c89 (= MSVC++)
8411 with_gnu_ld=yes
8412 ;;
8413 openbsd*)
8414 with_gnu_ld=no
8415 ;;
8416 esac
8417
8418 ld_shlibs=yes
8419 if test "$with_gnu_ld" = yes; then
8420 # If archive_cmds runs LD, not CC, wlarc should be empty
8421 wlarc='${wl}'
8422
8423 # Set some defaults for GNU ld with shared library support. These
8424 # are reset later if shared libraries are not supported. Putting them
8425 # here allows them to be overridden if necessary.
8426 runpath_var=LD_RUN_PATH
8427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428 export_dynamic_flag_spec='${wl}--export-dynamic'
8429 # ancient GNU ld didn't support --whole-archive et. al.
8430 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8431 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8432 else
8433 whole_archive_flag_spec=
8434 fi
8435 supports_anon_versioning=no
8436 case `$LD -v 2>&1` in
8437 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8440 *\ 2.11.*) ;; # other 2.11 versions
8441 *) supports_anon_versioning=yes ;;
8442 esac
8443
8444 # See if GNU ld supports shared libraries.
8445 case $host_os in
95d4f544 8446 aix[3-9]*)
1cf3d07d
SE
8447 # On AIX/PPC, the GNU linker is very broken
8448 if test "$host_cpu" != ia64; then
8449 ld_shlibs=no
8450 cat <<_LT_EOF 1>&2
8451
8452*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8453*** to be unable to reliably create shared libraries on AIX.
8454*** Therefore, libtool is disabling shared libraries support. If you
8455*** really care for shared libraries, you may want to modify your PATH
8456*** so that a non-GNU linker is found, and then restart.
8457
8458_LT_EOF
8459 fi
8460 ;;
8461
8462 amigaos*)
80c6c2cb
PG
8463 case $host_cpu in
8464 powerpc)
8465 # see comment about AmigaOS4 .so support
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467 archive_expsym_cmds=''
8468 ;;
8469 m68k)
8470 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)'
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_minus_L=yes
8473 ;;
8474 esac
1cf3d07d
SE
8475 ;;
8476
8477 beos*)
8478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8479 allow_undefined_flag=unsupported
8480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8481 # support --undefined. This deserves some investigation. FIXME
8482 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 else
8484 ld_shlibs=no
8485 fi
8486 ;;
8487
80c6c2cb 8488 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8489 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8490 # as there is no search path for DLLs.
8491 hardcode_libdir_flag_spec='-L$libdir'
8492 allow_undefined_flag=unsupported
8493 always_export_symbols=no
8494 enable_shared_with_static_runtimes=yes
8495 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8496
8497 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8499 # If the export-symbols file already is a .def file (1st line
8500 # is EXPORTS), use it as is; otherwise, prepend...
8501 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8502 cp $export_symbols $output_objdir/$soname.def;
8503 else
8504 echo EXPORTS > $output_objdir/$soname.def;
8505 cat $export_symbols >> $output_objdir/$soname.def;
8506 fi~
8507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8508 else
8509 ld_shlibs=no
8510 fi
8511 ;;
8512
8513 interix[3-9]*)
8514 hardcode_direct=no
8515 hardcode_shlibpath_var=no
8516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8517 export_dynamic_flag_spec='${wl}-E'
8518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8519 # Instead, shared libraries are loaded at an image base (0x10000000 by
8520 # default) and relocated if they conflict, which is a slow very memory
8521 # consuming and fragmenting process. To avoid this, we pick a random,
8522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8525 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'
8526 ;;
8527
7a9d3fe8 8528 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8529 tmp_diet=no
8530 if test "$host_os" = linux-dietlibc; then
8531 case $cc_basename in
8532 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8533 esac
8534 fi
8535 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8536 && test "$tmp_diet" = no
8537 then
8538 tmp_addflag=
80c6c2cb 8539 tmp_sharedflag='-shared'
1cf3d07d
SE
8540 case $cc_basename,$host_cpu in
8541 pgcc*) # Portland Group C compiler
8542 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8543 tmp_addflag=' $pic_flag'
8544 ;;
8545 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8546 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8547 tmp_addflag=' $pic_flag -Mnomain' ;;
8548 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8549 tmp_addflag=' -i_dynamic' ;;
8550 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8551 tmp_addflag=' -i_dynamic -nofor_main' ;;
8552 ifc* | ifort*) # Intel Fortran compiler
8553 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
8554 lf95*) # Lahey Fortran 8.1
8555 whole_archive_flag_spec=
8556 tmp_sharedflag='--shared' ;;
8557 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8558 tmp_sharedflag='-qmkshrobj'
8559 tmp_addflag= ;;
1cf3d07d
SE
8560 esac
8561 case `$CC -V 2>&1 | sed 5q` in
8562 *Sun\ C*) # Sun C 5.9
8563 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8564 compiler_needs_object=yes
8565 tmp_sharedflag='-G' ;;
8566 *Sun\ F*) # Sun Fortran 8.3
8567 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8568 esac
8569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570
8571 if test "x$supports_anon_versioning" = xyes; then
8572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8574 echo "local: *; };" >> $output_objdir/$libname.ver~
8575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8576 fi
80c6c2cb
PG
8577
8578 case $cc_basename in
8579 xlf*)
8580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8582 hardcode_libdir_flag_spec=
8583 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8584 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8585 if test "x$supports_anon_versioning" = xyes; then
8586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8588 echo "local: *; };" >> $output_objdir/$libname.ver~
8589 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8590 fi
8591 ;;
8592 esac
1cf3d07d
SE
8593 else
8594 ld_shlibs=no
8595 fi
8596 ;;
8597
8598 netbsd*)
8599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8600 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8601 wlarc=
8602 else
8603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605 fi
8606 ;;
8607
8608 solaris*)
8609 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8610 ld_shlibs=no
8611 cat <<_LT_EOF 1>&2
8612
8613*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8614*** create shared libraries on Solaris systems. Therefore, libtool
8615*** is disabling shared libraries support. We urge you to upgrade GNU
8616*** binutils to release 2.9.1 or newer. Another option is to modify
8617*** your PATH or compiler configuration so that the native linker is
8618*** used, and then restart.
8619
8620_LT_EOF
8621 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624 else
8625 ld_shlibs=no
8626 fi
8627 ;;
8628
8629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8630 case `$LD -v 2>&1` in
8631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8632 ld_shlibs=no
8633 cat <<_LT_EOF 1>&2
8634
8635*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8636*** reliably create shared libraries on SCO systems. Therefore, libtool
8637*** is disabling shared libraries support. We urge you to upgrade GNU
8638*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8639*** your PATH or compiler configuration so that the native linker is
8640*** used, and then restart.
8641
8642_LT_EOF
8643 ;;
8644 *)
8645 # For security reasons, it is highly recommended that you always
8646 # use absolute paths for naming shared libraries, and exclude the
8647 # DT_RUNPATH tag from executables and libraries. But doing so
8648 # requires that you compile everything twice, which is a pain.
8649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8655 fi
8656 ;;
8657 esac
8658 ;;
8659
8660 sunos4*)
8661 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662 wlarc=
8663 hardcode_direct=yes
8664 hardcode_shlibpath_var=no
8665 ;;
8666
8667 *)
8668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671 else
8672 ld_shlibs=no
8673 fi
8674 ;;
8675 esac
8676
8677 if test "$ld_shlibs" = no; then
8678 runpath_var=
8679 hardcode_libdir_flag_spec=
8680 export_dynamic_flag_spec=
8681 whole_archive_flag_spec=
8682 fi
8683 else
8684 # PORTME fill in a description of your system's linker (not GNU ld)
8685 case $host_os in
8686 aix3*)
8687 allow_undefined_flag=unsupported
8688 always_export_symbols=yes
8689 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'
8690 # Note: this linker hardcodes the directories in LIBPATH if there
8691 # are no directories specified by -L.
8692 hardcode_minus_L=yes
8693 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8694 # Neither direct hardcoding nor static linking is supported with a
8695 # broken collect2.
8696 hardcode_direct=unsupported
8697 fi
8698 ;;
8699
95d4f544 8700 aix[4-9]*)
1cf3d07d
SE
8701 if test "$host_cpu" = ia64; then
8702 # On IA64, the linker does run time linking by default, so we don't
8703 # have to do anything special.
8704 aix_use_runtimelinking=no
8705 exp_sym_flag='-Bexport'
8706 no_entry_flag=""
8707 else
8708 # If we're using GNU nm, then we don't want the "-C" option.
8709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8710 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8711 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8712 else
8713 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'
8714 fi
8715 aix_use_runtimelinking=no
8716
8717 # Test if we are trying to use run time linking or normal
8718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8719 # need to do runtime linking.
95d4f544 8720 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8721 for ld_flag in $LDFLAGS; do
8722 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8723 aix_use_runtimelinking=yes
8724 break
8725 fi
8726 done
8727 ;;
8728 esac
8729
8730 exp_sym_flag='-bexport'
8731 no_entry_flag='-bnoentry'
8732 fi
8733
8734 # When large executables or shared objects are built, AIX ld can
8735 # have problems creating the table of contents. If linking a library
8736 # or program results in "error TOC overflow" add -mminimal-toc to
8737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8739
8740 archive_cmds=''
8741 hardcode_direct=yes
8742 hardcode_direct_absolute=yes
8743 hardcode_libdir_separator=':'
8744 link_all_deplibs=yes
8745 file_list_spec='${wl}-f,'
8746
8747 if test "$GCC" = yes; then
8748 case $host_os in aix4.[012]|aix4.[012].*)
8749 # We only want to do this on AIX 4.2 and lower, the check
8750 # below for broken collect2 doesn't work under 4.3+
8751 collect2name=`${CC} -print-prog-name=collect2`
8752 if test -f "$collect2name" &&
8753 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8754 then
8755 # We have reworked collect2
8756 :
8757 else
8758 # We have old collect2
8759 hardcode_direct=unsupported
8760 # It fails to find uninstalled libraries when the uninstalled
8761 # path is not listed in the libpath. Setting hardcode_minus_L
8762 # to unsupported forces relinking
8763 hardcode_minus_L=yes
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 hardcode_libdir_separator=
8766 fi
8767 ;;
8768 esac
8769 shared_flag='-shared'
8770 if test "$aix_use_runtimelinking" = yes; then
8771 shared_flag="$shared_flag "'${wl}-G'
8772 fi
8773 else
8774 # not using gcc
8775 if test "$host_cpu" = ia64; then
8776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8777 # chokes on -Wl,-G. The following line is correct:
8778 shared_flag='-G'
8779 else
8780 if test "$aix_use_runtimelinking" = yes; then
8781 shared_flag='${wl}-G'
8782 else
8783 shared_flag='${wl}-bM:SRE'
8784 fi
8785 fi
8786 fi
8787
80c6c2cb 8788 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
8789 # It seems that -bexpall does not export symbols beginning with
8790 # underscore (_), so it is better to generate a list of symbols to export.
8791 always_export_symbols=yes
8792 if test "$aix_use_runtimelinking" = yes; then
8793 # Warning - without using the other runtime loading flags (-brtl),
8794 # -berok will link without error, but may produce a broken library.
8795 allow_undefined_flag='-berok'
8796 # Determine the default libpath from the value encoded in an
8797 # empty executable.
5213506e 8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8799/* end confdefs.h. */
8800
8801int
8802main ()
8803{
8804
8805 ;
8806 return 0;
8807}
8808_ACEOF
5213506e 8809if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8810
8811lt_aix_libpath_sed='
8812 /Import File Strings/,/^$/ {
8813 /^0/ {
8814 s/^0 *\(.*\)$/\1/
8815 p
8816 }
8817 }'
8818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8819# Check for a 64-bit object if we didn't find anything.
8820if test -z "$aix_libpath"; then
8821 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8822fi
1cf3d07d 8823fi
5213506e
RW
8824rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8826if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8827
8828 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8829 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8830 else
8831 if test "$host_cpu" = ia64; then
8832 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8833 allow_undefined_flag="-z nodefs"
8834 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"
8835 else
8836 # Determine the default libpath from the value encoded in an
8837 # empty executable.
5213506e 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
8839/* end confdefs.h. */
8840
8841int
8842main ()
8843{
8844
8845 ;
8846 return 0;
8847}
8848_ACEOF
5213506e 8849if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
8850
8851lt_aix_libpath_sed='
8852 /Import File Strings/,/^$/ {
8853 /^0/ {
8854 s/^0 *\(.*\)$/\1/
8855 p
8856 }
8857 }'
8858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859# Check for a 64-bit object if we didn't find anything.
8860if test -z "$aix_libpath"; then
8861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8862fi
1cf3d07d 8863fi
5213506e
RW
8864rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8867
8868 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8869 # Warning - without using the other run time loading flags,
8870 # -berok will link without error, but may produce a broken library.
8871 no_undefined_flag=' ${wl}-bernotok'
8872 allow_undefined_flag=' ${wl}-berok'
8873 # Exported symbols can be pulled into shared objects from archives
8874 whole_archive_flag_spec='$convenience'
8875 archive_cmds_need_lc=yes
8876 # This is similar to how AIX traditionally builds its shared libraries.
8877 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'
8878 fi
8879 fi
8880 ;;
8881
8882 amigaos*)
80c6c2cb
PG
8883 case $host_cpu in
8884 powerpc)
8885 # see comment about AmigaOS4 .so support
8886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 archive_expsym_cmds=''
8888 ;;
8889 m68k)
8890 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)'
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_minus_L=yes
8893 ;;
8894 esac
1cf3d07d
SE
8895 ;;
8896
8897 bsdi[45]*)
8898 export_dynamic_flag_spec=-rdynamic
8899 ;;
8900
80c6c2cb 8901 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8902 # When not using gcc, we currently assume that we are using
8903 # Microsoft Visual C++.
8904 # hardcode_libdir_flag_spec is actually meaningless, as there is
8905 # no search path for DLLs.
8906 hardcode_libdir_flag_spec=' '
8907 allow_undefined_flag=unsupported
8908 # Tell ltmain to make .lib files, not .a files.
8909 libext=lib
8910 # Tell ltmain to make .dll files, not .so files.
8911 shrext_cmds=".dll"
8912 # FIXME: Setting linknames here is a bad hack.
8913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8914 # The linker will automatically build a .lib file if we build a DLL.
8915 old_archive_from_new_cmds='true'
8916 # FIXME: Should let the user specify the lib program.
8917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8918 fix_srcfile_path='`cygpath -w "$srcfile"`'
8919 enable_shared_with_static_runtimes=yes
8920 ;;
8921
8922 darwin* | rhapsody*)
1cf3d07d 8923
80c6c2cb
PG
8924
8925 archive_cmds_need_lc=no
8926 hardcode_direct=no
8927 hardcode_automatic=yes
8928 hardcode_shlibpath_var=unsupported
8929 whole_archive_flag_spec=''
8930 link_all_deplibs=yes
8931 allow_undefined_flag="$_lt_dar_allow_undefined"
8932 case $cc_basename in
8933 ifort*) _lt_dar_can_shared=yes ;;
8934 *) _lt_dar_can_shared=$GCC ;;
8935 esac
8936 if test "$_lt_dar_can_shared" = "yes"; then
8937 output_verbose_link_cmd=echo
8938 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8939 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8940 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}"
8941 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}"
8942
8943 else
8944 ld_shlibs=no
8945 fi
8946
1cf3d07d
SE
8947 ;;
8948
8949 dgux*)
8950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_shlibpath_var=no
8953 ;;
8954
8955 freebsd1*)
8956 ld_shlibs=no
8957 ;;
8958
8959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8960 # support. Future versions do this automatically, but an explicit c++rt0.o
8961 # does not break anything, and helps significantly (at the cost of a little
8962 # extra space).
8963 freebsd2.2*)
8964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_direct=yes
8967 hardcode_shlibpath_var=no
8968 ;;
8969
8970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8971 freebsd2*)
8972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_direct=yes
8974 hardcode_minus_L=yes
8975 hardcode_shlibpath_var=no
8976 ;;
8977
8978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8979 freebsd* | dragonfly*)
8980 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8981 hardcode_libdir_flag_spec='-R$libdir'
8982 hardcode_direct=yes
8983 hardcode_shlibpath_var=no
8984 ;;
8985
8986 hpux9*)
8987 if test "$GCC" = yes; then
8988 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'
8989 else
8990 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'
8991 fi
8992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8993 hardcode_libdir_separator=:
8994 hardcode_direct=yes
8995
8996 # hardcode_minus_L: Not really in the search PATH,
8997 # but as the default location of the library.
8998 hardcode_minus_L=yes
8999 export_dynamic_flag_spec='${wl}-E'
9000 ;;
9001
9002 hpux10*)
9003 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9004 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9005 else
9006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9007 fi
9008 if test "$with_gnu_ld" = no; then
9009 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9010 hardcode_libdir_flag_spec_ld='+b $libdir'
9011 hardcode_libdir_separator=:
9012 hardcode_direct=yes
9013 hardcode_direct_absolute=yes
9014 export_dynamic_flag_spec='${wl}-E'
9015 # hardcode_minus_L: Not really in the search PATH,
9016 # but as the default location of the library.
9017 hardcode_minus_L=yes
9018 fi
9019 ;;
9020
9021 hpux11*)
9022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9023 case $host_cpu in
9024 hppa*64*)
9025 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9026 ;;
9027 ia64*)
80c6c2cb 9028 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9029 ;;
9030 *)
9031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9032 ;;
9033 esac
9034 else
9035 case $host_cpu in
9036 hppa*64*)
9037 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 ;;
9039 ia64*)
9040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9041 ;;
9042 *)
9043 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9044 ;;
9045 esac
9046 fi
9047 if test "$with_gnu_ld" = no; then
9048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9049 hardcode_libdir_separator=:
9050
9051 case $host_cpu in
9052 hppa*64*|ia64*)
9053 hardcode_direct=no
9054 hardcode_shlibpath_var=no
9055 ;;
9056 *)
9057 hardcode_direct=yes
9058 hardcode_direct_absolute=yes
9059 export_dynamic_flag_spec='${wl}-E'
9060
9061 # hardcode_minus_L: Not really in the search PATH,
9062 # but as the default location of the library.
9063 hardcode_minus_L=yes
9064 ;;
9065 esac
9066 fi
9067 ;;
9068
9069 irix5* | irix6* | nonstopux*)
9070 if test "$GCC" = yes; then
9071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9072 # Try to use the -exported_symbol ld option, if it does not
9073 # work, assume that -exports_file does not work either and
9074 # implicitly export all symbols.
9075 save_LDFLAGS="$LDFLAGS"
9076 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
1cf3d07d
SE
9079int foo(void) {}
9080_ACEOF
5213506e 9081if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9083
1cf3d07d 9084fi
5213506e
RW
9085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9087 LDFLAGS="$save_LDFLAGS"
9088 else
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9091 fi
9092 archive_cmds_need_lc='no'
9093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9094 hardcode_libdir_separator=:
9095 inherit_rpath=yes
9096 link_all_deplibs=yes
9097 ;;
9098
9099 netbsd*)
9100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9102 else
9103 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9104 fi
9105 hardcode_libdir_flag_spec='-R$libdir'
9106 hardcode_direct=yes
9107 hardcode_shlibpath_var=no
9108 ;;
9109
9110 newsos6)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_direct=yes
9113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114 hardcode_libdir_separator=:
9115 hardcode_shlibpath_var=no
9116 ;;
9117
9118 *nto* | *qnx*)
9119 ;;
9120
9121 openbsd*)
80c6c2cb
PG
9122 if test -f /usr/libexec/ld.so; then
9123 hardcode_direct=yes
9124 hardcode_shlibpath_var=no
9125 hardcode_direct_absolute=yes
9126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 9128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
9130 export_dynamic_flag_spec='${wl}-E'
9131 else
9132 case $host_os in
9133 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9135 hardcode_libdir_flag_spec='-R$libdir'
9136 ;;
9137 *)
9138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9139 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9140 ;;
9141 esac
9142 fi
9143 else
9144 ld_shlibs=no
1cf3d07d
SE
9145 fi
9146 ;;
9147
9148 os2*)
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_minus_L=yes
9151 allow_undefined_flag=unsupported
9152 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'
9153 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9154 ;;
9155
9156 osf3*)
9157 if test "$GCC" = yes; then
9158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9159 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9160 else
9161 allow_undefined_flag=' -expect_unresolved \*'
9162 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9163 fi
9164 archive_cmds_need_lc='no'
9165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166 hardcode_libdir_separator=:
9167 ;;
9168
9169 osf4* | osf5*) # as osf3* with the addition of -msym flag
9170 if test "$GCC" = yes; then
9171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9172 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174 else
9175 allow_undefined_flag=' -expect_unresolved \*'
9176 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9177 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~
9178 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9179
9180 # Both c and cxx compiler support -rpath directly
9181 hardcode_libdir_flag_spec='-rpath $libdir'
9182 fi
9183 archive_cmds_need_lc='no'
9184 hardcode_libdir_separator=:
9185 ;;
9186
9187 solaris*)
9188 no_undefined_flag=' -z defs'
9189 if test "$GCC" = yes; then
9190 wlarc='${wl}'
9191 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9193 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9194 else
9195 case `$CC -V 2>&1` in
9196 *"Compilers 5.0"*)
9197 wlarc=''
9198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9201 ;;
9202 *)
9203 wlarc='${wl}'
9204 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9206 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9207 ;;
9208 esac
9209 fi
9210 hardcode_libdir_flag_spec='-R$libdir'
9211 hardcode_shlibpath_var=no
9212 case $host_os in
9213 solaris2.[0-5] | solaris2.[0-5].*) ;;
9214 *)
9215 # The compiler driver will combine and reorder linker options,
9216 # but understands `-z linker_flag'. GCC discards it without `$wl',
9217 # but is careful enough not to reorder.
9218 # Supported since Solaris 2.6 (maybe 2.5.1?)
9219 if test "$GCC" = yes; then
9220 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9221 else
9222 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9223 fi
9224 ;;
9225 esac
9226 link_all_deplibs=yes
9227 ;;
9228
9229 sunos4*)
9230 if test "x$host_vendor" = xsequent; then
9231 # Use $CC to link under sequent, because it throws in some extra .o
9232 # files that make .init and .fini sections work.
9233 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9234 else
9235 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9236 fi
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 hardcode_direct=yes
9239 hardcode_minus_L=yes
9240 hardcode_shlibpath_var=no
9241 ;;
9242
9243 sysv4)
9244 case $host_vendor in
9245 sni)
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_direct=yes # is this really true???
9248 ;;
9249 siemens)
9250 ## LD is ld it makes a PLAMLIB
9251 ## CC just makes a GrossModule.
9252 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9253 reload_cmds='$CC -r -o $output$reload_objs'
9254 hardcode_direct=no
9255 ;;
9256 motorola)
9257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9259 ;;
9260 esac
9261 runpath_var='LD_RUN_PATH'
9262 hardcode_shlibpath_var=no
9263 ;;
9264
9265 sysv4.3*)
9266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267 hardcode_shlibpath_var=no
9268 export_dynamic_flag_spec='-Bexport'
9269 ;;
9270
9271 sysv4*MP*)
9272 if test -d /usr/nec; then
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_shlibpath_var=no
9275 runpath_var=LD_RUN_PATH
9276 hardcode_runpath_var=yes
9277 ld_shlibs=yes
9278 fi
9279 ;;
9280
9281 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9282 no_undefined_flag='${wl}-z,text'
9283 archive_cmds_need_lc=no
9284 hardcode_shlibpath_var=no
9285 runpath_var='LD_RUN_PATH'
9286
9287 if test "$GCC" = yes; then
9288 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9290 else
9291 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9293 fi
9294 ;;
9295
9296 sysv5* | sco3.2v5* | sco5v6*)
9297 # Note: We can NOT use -z defs as we might desire, because we do not
9298 # link with -lc, and that would cause any symbols used from libc to
9299 # always be unresolved, which means just about no library would
9300 # ever link correctly. If we're not using GNU ld we use -z text
9301 # though, which does catch some bad symbols but isn't as heavy-handed
9302 # as -z defs.
9303 no_undefined_flag='${wl}-z,text'
9304 allow_undefined_flag='${wl}-z,nodefs'
9305 archive_cmds_need_lc=no
9306 hardcode_shlibpath_var=no
9307 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9308 hardcode_libdir_separator=':'
9309 link_all_deplibs=yes
9310 export_dynamic_flag_spec='${wl}-Bexport'
9311 runpath_var='LD_RUN_PATH'
9312
9313 if test "$GCC" = yes; then
9314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316 else
9317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9319 fi
9320 ;;
9321
9322 uts4*)
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 *)
9329 ld_shlibs=no
9330 ;;
9331 esac
9332
9333 if test x$host_vendor = xsni; then
9334 case $host in
9335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9336 export_dynamic_flag_spec='${wl}-Blargedynsym'
9337 ;;
9338 esac
9339 fi
9340 fi
9341
5213506e
RW
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9343$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9344test "$ld_shlibs" = no && can_build_shared=no
9345
9346with_gnu_ld=$with_gnu_ld
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362#
9363# Do we need to explicitly link libc?
9364#
9365case "x$archive_cmds_need_lc" in
9366x|xyes)
9367 # Assume -lc should be added
9368 archive_cmds_need_lc=yes
9369
9370 if test "$enable_shared" = yes && test "$GCC" = yes; then
9371 case $archive_cmds in
9372 *'~'*)
9373 # FIXME: we may have to deal with multi-command sequences.
9374 ;;
9375 '$CC '*)
9376 # Test whether the compiler implicitly links with -lc since on some
9377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9378 # to ld, don't add -lc before -lgcc.
5213506e
RW
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9380$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9381if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
baafc534
RW
9383else
9384 $RM conftest*
9385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9386
5213506e 9387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9388 (eval $ac_compile) 2>&5
9389 ac_status=$?
5213506e
RW
9390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9391 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9392 soname=conftest
9393 lib=conftest
9394 libobjs=conftest.$ac_objext
9395 deplibs=
9396 wl=$lt_prog_compiler_wl
9397 pic_flag=$lt_prog_compiler_pic
9398 compiler_flags=-v
9399 linker_flags=-v
9400 verstring=
9401 output_objdir=.
9402 libname=conftest
9403 lt_save_allow_undefined_flag=$allow_undefined_flag
9404 allow_undefined_flag=
5213506e 9405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9406 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9407 ac_status=$?
5213506e
RW
9408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9409 test $ac_status = 0; }
baafc534
RW
9410 then
9411 lt_cv_archive_cmds_need_lc=no
9412 else
9413 lt_cv_archive_cmds_need_lc=yes
9414 fi
9415 allow_undefined_flag=$lt_save_allow_undefined_flag
9416 else
9417 cat conftest.err 1>&5
9418 fi
9419 $RM conftest*
9420
9421fi
5213506e
RW
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9423$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9424 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9425 ;;
9426 esac
9427 fi
9428 ;;
9429esac
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
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
5213506e
RW
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9588$as_echo_n "checking dynamic linker characteristics... " >&6; }
80c6c2cb
PG
9589
9590if test "$GCC" = yes; then
1cf3d07d
SE
9591 case $host_os in
9592 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9593 *) lt_awk_arg="/^libraries:/" ;;
9594 esac
9595 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9596 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9597 # if the path contains ";" then we assume it to be the separator
9598 # otherwise default to the standard path separator (i.e. ":") - it is
9599 # assumed that no part of a normal pathname contains ";" but that should
9600 # okay in the real world where ";" in dirpaths is itself problematic.
9601 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9602 else
9603 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9604 fi
9605 # Ok, now we have the path, separated by spaces, we can step through it
9606 # and add multilib dir if necessary.
9607 lt_tmp_lt_search_path_spec=
9608 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9609 for lt_sys_path in $lt_search_path_spec; do
9610 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9611 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9612 else
9613 test -d "$lt_sys_path" && \
9614 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9615 fi
9616 done
9617 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9618BEGIN {RS=" "; FS="/|\n";} {
9619 lt_foo="";
9620 lt_count=0;
9621 for (lt_i = NF; lt_i > 0; lt_i--) {
9622 if ($lt_i != "" && $lt_i != ".") {
9623 if ($lt_i == "..") {
9624 lt_count++;
9625 } else {
9626 if (lt_count == 0) {
9627 lt_foo="/" $lt_i lt_foo;
9628 } else {
9629 lt_count--;
9630 }
9631 }
9632 }
9633 }
9634 if (lt_foo != "") { lt_freq[lt_foo]++; }
9635 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9636}'`
9637 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9638else
9639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9640fi
9641library_names_spec=
9642libname_spec='lib$name'
9643soname_spec=
9644shrext_cmds=".so"
9645postinstall_cmds=
9646postuninstall_cmds=
9647finish_cmds=
9648finish_eval=
9649shlibpath_var=
9650shlibpath_overrides_runpath=unknown
9651version_type=none
9652dynamic_linker="$host_os ld.so"
9653sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654need_lib_prefix=unknown
9655hardcode_into_libs=no
9656
9657# when you set need_version to no, make sure it does not cause -set_version
9658# flags to be left without arguments
9659need_version=unknown
9660
9661case $host_os in
9662aix3*)
9663 version_type=linux
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9665 shlibpath_var=LIBPATH
9666
9667 # AIX 3 has no versioning support, so we append a major version to the name.
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 ;;
9670
95d4f544 9671aix[4-9]*)
1cf3d07d
SE
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 hardcode_into_libs=yes
9676 if test "$host_cpu" = ia64; then
9677 # AIX 5 supports IA64
9678 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 else
9681 # With GCC up to 2.95.x, collect2 would create an import file
9682 # for dependence libraries. The import file would start with
9683 # the line `#! .'. This would cause the generated library to
9684 # depend on `.', always an invalid library. This was fixed in
9685 # development snapshots of GCC prior to 3.0.
9686 case $host_os in
9687 aix4 | aix4.[01] | aix4.[01].*)
9688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9689 echo ' yes '
9690 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9691 :
9692 else
9693 can_build_shared=no
9694 fi
9695 ;;
9696 esac
9697 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9698 # soname into executable. Probably we can add versioning support to
9699 # collect2, so additional links can be useful in future.
9700 if test "$aix_use_runtimelinking" = yes; then
9701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9702 # instead of lib<name>.a to let people know that these are not
9703 # typical AIX shared libraries.
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 else
9706 # We preserve .a as extension for shared libraries through AIX4.2
9707 # and later when we are not doing run time linking.
9708 library_names_spec='${libname}${release}.a $libname.a'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 fi
9711 shlibpath_var=LIBPATH
9712 fi
9713 ;;
9714
9715amigaos*)
80c6c2cb
PG
9716 case $host_cpu in
9717 powerpc)
9718 # Since July 2007 AmigaOS4 officially supports .so libraries.
9719 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 ;;
9722 m68k)
1cf3d07d
SE
9723 library_names_spec='$libname.ixlibrary $libname.a'
9724 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9725 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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
9726 ;;
9727 esac
1cf3d07d
SE
9728 ;;
9729
9730beos*)
9731 library_names_spec='${libname}${shared_ext}'
9732 dynamic_linker="$host_os ld.so"
9733 shlibpath_var=LIBRARY_PATH
9734 ;;
9735
9736bsdi[45]*)
9737 version_type=linux
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9745 # the default ld.so.conf also contains /usr/contrib/lib and
9746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9747 # libtool to hard-code these into programs
9748 ;;
9749
80c6c2cb 9750cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9751 version_type=windows
9752 shrext_cmds=".dll"
9753 need_version=no
9754 need_lib_prefix=no
9755
80c6c2cb
PG
9756 case $GCC,$host_os in
9757 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
9758 library_names_spec='$libname.dll.a'
9759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9760 postinstall_cmds='base_file=`basename \${file}`~
9761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9762 dldir=$destdir/`dirname \$dlpath`~
9763 test -d \$dldir || mkdir -p \$dldir~
9764 $install_prog $dir/$dlname \$dldir/$dlname~
9765 chmod a+x \$dldir/$dlname~
9766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9768 fi'
9769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9770 dlpath=$dir/\$dldll~
9771 $RM \$dlpath'
9772 shlibpath_overrides_runpath=yes
9773
9774 case $host_os in
9775 cygwin*)
9776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9778 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9779 ;;
80c6c2cb 9780 mingw* | cegcc*)
1cf3d07d
SE
9781 # MinGW DLLs use traditional 'lib' prefix
9782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9783 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9785 # It is most probably a Windows format PATH printed by
9786 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9787 # path with ; separators, and with drive letters. We can handle the
9788 # drive letters (cygwin fileutils understands them), so leave them,
9789 # especially as we might pass files found there to a mingw objdump,
9790 # which wouldn't understand a cygwinified path. Ahh.
9791 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9792 else
9793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9794 fi
9795 ;;
9796 pw32*)
9797 # pw32 DLLs use 'pw' prefix rather than 'lib'
9798 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9799 ;;
9800 esac
9801 ;;
9802
9803 *)
9804 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9805 ;;
9806 esac
9807 dynamic_linker='Win32 ld.exe'
9808 # FIXME: first we should search . and the directory the executable is in
9809 shlibpath_var=PATH
9810 ;;
9811
9812darwin* | rhapsody*)
9813 dynamic_linker="$host_os dyld"
9814 version_type=darwin
9815 need_lib_prefix=no
9816 need_version=no
9817 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9818 soname_spec='${libname}${release}${major}$shared_ext'
9819 shlibpath_overrides_runpath=yes
9820 shlibpath_var=DYLD_LIBRARY_PATH
9821 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9822
9823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9825 ;;
9826
9827dgux*)
9828 version_type=linux
9829 need_lib_prefix=no
9830 need_version=no
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 ;;
9835
9836freebsd1*)
9837 dynamic_linker=no
9838 ;;
9839
9840freebsd* | dragonfly*)
9841 # DragonFly does not have aout. When/if they implement a new
9842 # versioning mechanism, adjust this.
9843 if test -x /usr/bin/objformat; then
9844 objformat=`/usr/bin/objformat`
9845 else
9846 case $host_os in
9847 freebsd[123]*) objformat=aout ;;
9848 *) objformat=elf ;;
9849 esac
9850 fi
9851 version_type=freebsd-$objformat
9852 case $version_type in
9853 freebsd-elf*)
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9855 need_version=no
9856 need_lib_prefix=no
9857 ;;
9858 freebsd-*)
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9860 need_version=yes
9861 ;;
9862 esac
9863 shlibpath_var=LD_LIBRARY_PATH
9864 case $host_os in
9865 freebsd2*)
9866 shlibpath_overrides_runpath=yes
9867 ;;
9868 freebsd3.[01]* | freebsdelf3.[01]*)
9869 shlibpath_overrides_runpath=yes
9870 hardcode_into_libs=yes
9871 ;;
9872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9874 shlibpath_overrides_runpath=no
9875 hardcode_into_libs=yes
9876 ;;
9877 *) # from 4.6 on, and DragonFly
9878 shlibpath_overrides_runpath=yes
9879 hardcode_into_libs=yes
9880 ;;
9881 esac
9882 ;;
9883
9884gnu*)
9885 version_type=linux
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 hardcode_into_libs=yes
9892 ;;
9893
9894hpux9* | hpux10* | hpux11*)
9895 # Give a soname corresponding to the major version so that dld.sl refuses to
9896 # link against other versions.
9897 version_type=sunos
9898 need_lib_prefix=no
9899 need_version=no
9900 case $host_cpu in
9901 ia64*)
9902 shrext_cmds='.so'
9903 hardcode_into_libs=yes
9904 dynamic_linker="$host_os dld.so"
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 if test "X$HPUX_IA64_MODE" = X32; then
9910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9911 else
9912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9913 fi
9914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9915 ;;
9916 hppa*64*)
9917 shrext_cmds='.sl'
9918 hardcode_into_libs=yes
9919 dynamic_linker="$host_os dld.sl"
9920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9926 ;;
9927 *)
9928 shrext_cmds='.sl'
9929 dynamic_linker="$host_os dld.sl"
9930 shlibpath_var=SHLIB_PATH
9931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 ;;
9935 esac
9936 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9937 postinstall_cmds='chmod 555 $lib'
9938 ;;
675cdab3 9939
1cf3d07d
SE
9940interix[3-9]*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=no
9949 hardcode_into_libs=yes
3ed8e5b6 9950 ;;
675cdab3 9951
1cf3d07d
SE
9952irix5* | irix6* | nonstopux*)
9953 case $host_os in
9954 nonstopux*) version_type=nonstopux ;;
9955 *)
9956 if test "$lt_cv_prog_gnu_ld" = yes; then
9957 version_type=linux
9958 else
9959 version_type=irix
9960 fi ;;
9961 esac
9962 need_lib_prefix=no
9963 need_version=no
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9966 case $host_os in
9967 irix5* | nonstopux*)
9968 libsuff= shlibsuff=
9969 ;;
9970 *)
9971 case $LD in # libtool.m4 will add one of these switches to LD
9972 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9973 libsuff= shlibsuff= libmagic=32-bit;;
9974 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9975 libsuff=32 shlibsuff=N32 libmagic=N32;;
9976 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9977 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9978 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 9979 esac
1cf3d07d
SE
9980 ;;
9981 esac
9982 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9983 shlibpath_overrides_runpath=no
9984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9986 hardcode_into_libs=yes
3ed8e5b6 9987 ;;
675cdab3 9988
1cf3d07d
SE
9989# No shared lib support for Linux oldld, aout, or coff.
9990linux*oldld* | linux*aout* | linux*coff*)
9991 dynamic_linker=no
9992 ;;
3ed8e5b6 9993
1cf3d07d 9994# This must be Linux ELF.
7a9d3fe8 9995linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9996 version_type=linux
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=no
baafc534 10004
1cf3d07d 10005 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10006 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
baafc534
RW
10008else
10009 lt_cv_shlibpath_overrides_runpath=no
10010 save_LDFLAGS=$LDFLAGS
10011 save_libdir=$libdir
10012 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10013 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6
AT
10015/* end confdefs.h. */
10016
10017int
10018main ()
10019{
675cdab3 10020
3ed8e5b6
AT
10021 ;
10022 return 0;
10023}
10024_ACEOF
5213506e
RW
10025if ac_fn_c_try_link "$LINENO"; then :
10026 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10027 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10028fi
675cdab3 10029fi
5213506e
RW
10030rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10032 LDFLAGS=$save_LDFLAGS
10033 libdir=$save_libdir
10034
10035fi
10036
10037 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10038
10039 # This implies no fast_install, which is unacceptable.
10040 # Some rework will be needed to allow for fast_install
10041 # before this can be enabled.
10042 hardcode_into_libs=yes
10043
10044 # Append ld.so.conf contents to the search path
10045 if test -f /etc/ld.so.conf; then
80c6c2cb 10046 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;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
10047 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10048 fi
675cdab3 10049
1cf3d07d
SE
10050 # We used to test for /lib/ld.so.1 and disable shared libraries on
10051 # powerpc, because MkLinux only supported shared libraries with the
10052 # GNU dynamic linker. Since this was broken with cross compilers,
10053 # most powerpc-linux boxes support dynamic linking these days and
10054 # people can always --disable-shared, the test was removed, and we
10055 # assume the GNU/Linux dynamic linker is in use.
10056 dynamic_linker='GNU/Linux ld.so'
10057 ;;
10058
10059netbsd*)
10060 version_type=sunos
10061 need_lib_prefix=no
10062 need_version=no
10063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10066 dynamic_linker='NetBSD (a.out) ld.so'
10067 else
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 10071 fi
1cf3d07d
SE
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
3ed8e5b6 10075 ;;
675cdab3 10076
1cf3d07d
SE
10077newsos6)
10078 version_type=linux
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=yes
10082 ;;
675cdab3 10083
1cf3d07d
SE
10084*nto* | *qnx*)
10085 version_type=qnx
10086 need_lib_prefix=no
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 dynamic_linker='ldqnx.so'
10094 ;;
675cdab3 10095
1cf3d07d
SE
10096openbsd*)
10097 version_type=sunos
10098 sys_lib_dlsearch_path_spec="/usr/lib"
10099 need_lib_prefix=no
10100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10101 case $host_os in
10102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10103 *) need_version=no ;;
10104 esac
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10109 case $host_os in
10110 openbsd2.[89] | openbsd2.[89].*)
10111 shlibpath_overrides_runpath=no
10112 ;;
10113 *)
10114 shlibpath_overrides_runpath=yes
10115 ;;
10116 esac
10117 else
10118 shlibpath_overrides_runpath=yes
10119 fi
10120 ;;
675cdab3 10121
1cf3d07d
SE
10122os2*)
10123 libname_spec='$name'
10124 shrext_cmds=".dll"
10125 need_lib_prefix=no
10126 library_names_spec='$libname${shared_ext} $libname.a'
10127 dynamic_linker='OS/2 ld.exe'
10128 shlibpath_var=LIBPATH
10129 ;;
675cdab3 10130
1cf3d07d
SE
10131osf3* | osf4* | osf5*)
10132 version_type=osf
10133 need_lib_prefix=no
10134 need_version=no
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10140 ;;
675cdab3 10141
1cf3d07d
SE
10142rdos*)
10143 dynamic_linker=no
10144 ;;
10145
10146solaris*)
10147 version_type=linux
10148 need_lib_prefix=no
10149 need_version=no
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 hardcode_into_libs=yes
10155 # ldd complains unless libraries are executable
10156 postinstall_cmds='chmod +x $lib'
10157 ;;
10158
10159sunos4*)
10160 version_type=sunos
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 if test "$with_gnu_ld" = yes; then
10166 need_lib_prefix=no
10167 fi
10168 need_version=yes
10169 ;;
10170
10171sysv4 | sysv4.3*)
10172 version_type=linux
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 case $host_vendor in
10177 sni)
10178 shlibpath_overrides_runpath=no
10179 need_lib_prefix=no
10180 runpath_var=LD_RUN_PATH
3ed8e5b6 10181 ;;
1cf3d07d
SE
10182 siemens)
10183 need_lib_prefix=no
3ed8e5b6 10184 ;;
1cf3d07d
SE
10185 motorola)
10186 need_lib_prefix=no
10187 need_version=no
10188 shlibpath_overrides_runpath=no
10189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10190 ;;
10191 esac
10192 ;;
10193
10194sysv4*MP*)
10195 if test -d /usr/nec ;then
10196 version_type=linux
10197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10198 soname_spec='$libname${shared_ext}.$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 fi
10201 ;;
10202
10203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10204 version_type=freebsd-elf
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 hardcode_into_libs=yes
10212 if test "$with_gnu_ld" = yes; then
10213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 10214 else
1cf3d07d
SE
10215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10216 case $host_os in
10217 sco3.2v5*)
10218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10219 ;;
10220 esac
675cdab3 10221 fi
1cf3d07d
SE
10222 sys_lib_dlsearch_path_spec='/usr/lib'
10223 ;;
10224
10225tpf*)
10226 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10227 version_type=linux
10228 need_lib_prefix=no
10229 need_version=no
80c6c2cb 10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=no
10233 hardcode_into_libs=yes
10234 ;;
10235
10236uts4*)
10237 version_type=linux
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 ;;
10242
10243*)
10244 dynamic_linker=no
10245 ;;
10246esac
5213506e
RW
10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10248$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10249test "$dynamic_linker" = no && can_build_shared=no
10250
10251variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10252if test "$GCC" = yes; then
10253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
10254fi
10255
80c6c2cb
PG
10256if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10257 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10258fi
10259if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10260 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10261fi
10262
675cdab3 10263
1cf3d07d
SE
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
5213506e
RW
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10350$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10351hardcode_action=
10352if test -n "$hardcode_libdir_flag_spec" ||
10353 test -n "$runpath_var" ||
10354 test "X$hardcode_automatic" = "Xyes" ; then
10355
10356 # We can hardcode non-existent directories.
10357 if test "$hardcode_direct" != no &&
10358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10359 # have to relink, otherwise we might link with an installed library
10360 # when we should be linking with a yet-to-be-installed one
10361 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10362 test "$hardcode_minus_L" != no; then
10363 # Linking always hardcodes the temporary library directory.
10364 hardcode_action=relink
10365 else
10366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10367 hardcode_action=immediate
63e5e3e0 10368 fi
3ed8e5b6 10369else
1cf3d07d
SE
10370 # We cannot hardcode anything, or else we can only hardcode existing
10371 # directories.
10372 hardcode_action=unsupported
675cdab3 10373fi
5213506e
RW
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10375$as_echo "$hardcode_action" >&6; }
63e5e3e0 10376
1cf3d07d
SE
10377if test "$hardcode_action" = relink ||
10378 test "$inherit_rpath" = yes; then
10379 # Fast installation is not supported
10380 enable_fast_install=no
10381elif test "$shlibpath_overrides_runpath" = yes ||
10382 test "$enable_shared" = no; then
10383 # Fast installation is not necessary
10384 enable_fast_install=needless
10385fi
675cdab3 10386
63e5e3e0 10387
63e5e3e0 10388
2f7bf5b7 10389
63e5e3e0 10390
63e5e3e0 10391
1cf3d07d
SE
10392 if test "x$enable_dlopen" != xyes; then
10393 enable_dlopen=unknown
10394 enable_dlopen_self=unknown
10395 enable_dlopen_self_static=unknown
10396else
10397 lt_cv_dlopen=no
10398 lt_cv_dlopen_libs=
63e5e3e0 10399
1cf3d07d
SE
10400 case $host_os in
10401 beos*)
10402 lt_cv_dlopen="load_add_on"
10403 lt_cv_dlopen_libs=
10404 lt_cv_dlopen_self=yes
10405 ;;
63e5e3e0 10406
80c6c2cb 10407 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10408 lt_cv_dlopen="LoadLibrary"
10409 lt_cv_dlopen_libs=
10410 ;;
63e5e3e0 10411
1cf3d07d
SE
10412 cygwin*)
10413 lt_cv_dlopen="dlopen"
10414 lt_cv_dlopen_libs=
10415 ;;
63e5e3e0 10416
1cf3d07d
SE
10417 darwin*)
10418 # if libdl is installed we need to link against it
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10420$as_echo_n "checking for dlopen in -ldl... " >&6; }
10421if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
675cdab3 10423else
1cf3d07d
SE
10424 ac_check_lib_save_LIBS=$LIBS
10425LIBS="-ldl $LIBS"
5213506e 10426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d 10427/* end confdefs.h. */
3ed8e5b6 10428
5213506e
RW
10429/* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10432#ifdef __cplusplus
10433extern "C"
10434#endif
1cf3d07d
SE
10435char dlopen ();
10436int
10437main ()
10438{
5213506e 10439return dlopen ();
1cf3d07d
SE
10440 ;
10441 return 0;
10442}
10443_ACEOF
5213506e 10444if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10445 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 10446else
5213506e 10447 ac_cv_lib_dl_dlopen=no
675cdab3 10448fi
5213506e
RW
10449rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10451LIBS=$ac_check_lib_save_LIBS
10452fi
5213506e
RW
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10454$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10455if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10457else
63e5e3e0 10458
1cf3d07d
SE
10459 lt_cv_dlopen="dyld"
10460 lt_cv_dlopen_libs=
10461 lt_cv_dlopen_self=yes
bbf3057b 10462
1cf3d07d 10463fi
2f7bf5b7 10464
1cf3d07d 10465 ;;
2f7bf5b7 10466
1cf3d07d 10467 *)
5213506e
RW
10468 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10469if test "x$ac_cv_func_shl_load" = x""yes; then :
10470 lt_cv_dlopen="shl_load"
3ed8e5b6 10471else
5213506e
RW
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10473$as_echo_n "checking for shl_load in -ldld... " >&6; }
10474if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10476else
10477 ac_check_lib_save_LIBS=$LIBS
10478LIBS="-ldld $LIBS"
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10480/* end confdefs.h. */
1cf3d07d 10481
5213506e
RW
10482/* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
1cf3d07d 10484 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10485#ifdef __cplusplus
10486extern "C"
10487#endif
1cf3d07d
SE
10488char shl_load ();
10489int
10490main ()
10491{
5213506e 10492return shl_load ();
1cf3d07d
SE
10493 ;
10494 return 0;
10495}
c9b93377 10496_ACEOF
5213506e 10497if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10498 ac_cv_lib_dld_shl_load=yes
c9b93377 10499else
5213506e 10500 ac_cv_lib_dld_shl_load=no
3eee102e 10501fi
5213506e
RW
10502rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10504LIBS=$ac_check_lib_save_LIBS
bbf3057b 10505fi
5213506e
RW
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10507$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10508if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
80c6c2cb 10509 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10510else
5213506e
RW
10511 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10512if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10513 lt_cv_dlopen="dlopen"
10514else
5213506e
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10516$as_echo_n "checking for dlopen in -ldl... " >&6; }
10517if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10519else
10520 ac_check_lib_save_LIBS=$LIBS
10521LIBS="-ldl $LIBS"
5213506e 10522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 10523/* end confdefs.h. */
1cf3d07d 10524
5213506e
RW
10525/* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10528#ifdef __cplusplus
10529extern "C"
10530#endif
1cf3d07d
SE
10531char dlopen ();
10532int
10533main ()
10534{
5213506e 10535return dlopen ();
1cf3d07d
SE
10536 ;
10537 return 0;
10538}
3ed8e5b6 10539_ACEOF
5213506e 10540if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10541 ac_cv_lib_dl_dlopen=yes
c9b93377 10542else
5213506e 10543 ac_cv_lib_dl_dlopen=no
c9b93377 10544fi
5213506e
RW
10545rm -f core conftest.err conftest.$ac_objext \
10546 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10547LIBS=$ac_check_lib_save_LIBS
c9b93377 10548fi
5213506e
RW
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10551if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d 10552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 10553else
5213506e
RW
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10555$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10556if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
c9b93377 10558else
1cf3d07d
SE
10559 ac_check_lib_save_LIBS=$LIBS
10560LIBS="-lsvld $LIBS"
5213506e 10561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10562/* end confdefs.h. */
c9b93377 10563
5213506e
RW
10564/* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10567#ifdef __cplusplus
10568extern "C"
10569#endif
1cf3d07d 10570char dlopen ();
c9b93377
JB
10571int
10572main ()
10573{
5213506e 10574return dlopen ();
c9b93377
JB
10575 ;
10576 return 0;
10577}
10578_ACEOF
5213506e 10579if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10580 ac_cv_lib_svld_dlopen=yes
c9b93377 10581else
5213506e 10582 ac_cv_lib_svld_dlopen=no
c9b93377 10583fi
5213506e
RW
10584rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10586LIBS=$ac_check_lib_save_LIBS
c9b93377 10587fi
5213506e
RW
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10589$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10590if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d 10591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 10592else
5213506e
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10594$as_echo_n "checking for dld_link in -ldld... " >&6; }
10595if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
c9b93377 10597else
1cf3d07d
SE
10598 ac_check_lib_save_LIBS=$LIBS
10599LIBS="-ldld $LIBS"
5213506e 10600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377 10601/* end confdefs.h. */
c9b93377 10602
5213506e
RW
10603/* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10606#ifdef __cplusplus
10607extern "C"
10608#endif
1cf3d07d 10609char dld_link ();
c9b93377
JB
10610int
10611main ()
10612{
5213506e 10613return dld_link ();
1cf3d07d
SE
10614 ;
10615 return 0;
c9b93377
JB
10616}
10617_ACEOF
5213506e 10618if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d 10619 ac_cv_lib_dld_dld_link=yes
c9b93377 10620else
5213506e 10621 ac_cv_lib_dld_dld_link=no
c9b93377 10622fi
5213506e
RW
10623rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
1cf3d07d 10625LIBS=$ac_check_lib_save_LIBS
c9b93377 10626fi
5213506e
RW
10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10628$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10629if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
80c6c2cb 10630 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 10631fi
1cf3d07d
SE
10632
10633
c9b93377 10634fi
c9b93377 10635
c9b93377
JB
10636
10637fi
10638
c9b93377 10639
1cf3d07d 10640fi
c9b93377
JB
10641
10642
1cf3d07d 10643fi
c9b93377
JB
10644
10645
1cf3d07d 10646fi
c9b93377 10647
1cf3d07d
SE
10648 ;;
10649 esac
c9b93377 10650
1cf3d07d
SE
10651 if test "x$lt_cv_dlopen" != xno; then
10652 enable_dlopen=yes
10653 else
10654 enable_dlopen=no
10655 fi
c9b93377 10656
1cf3d07d
SE
10657 case $lt_cv_dlopen in
10658 dlopen)
10659 save_CPPFLAGS="$CPPFLAGS"
10660 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 10661
1cf3d07d
SE
10662 save_LDFLAGS="$LDFLAGS"
10663 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10664
10665 save_LIBS="$LIBS"
10666 LIBS="$lt_cv_dlopen_libs $LIBS"
10667
5213506e
RW
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10669$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10670if test "${lt_cv_dlopen_self+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
c9b93377 10672else
1cf3d07d
SE
10673 if test "$cross_compiling" = yes; then :
10674 lt_cv_dlopen_self=cross
10675else
10676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10677 lt_status=$lt_dlunknown
10678 cat > conftest.$ac_ext <<_LT_EOF
5213506e 10679#line 10679 "configure"
1cf3d07d 10680#include "confdefs.h"
c9b93377 10681
1cf3d07d
SE
10682#if HAVE_DLFCN_H
10683#include <dlfcn.h>
10684#endif
10685
10686#include <stdio.h>
10687
10688#ifdef RTLD_GLOBAL
10689# define LT_DLGLOBAL RTLD_GLOBAL
10690#else
10691# ifdef DL_GLOBAL
10692# define LT_DLGLOBAL DL_GLOBAL
10693# else
10694# define LT_DLGLOBAL 0
10695# endif
10696#endif
10697
10698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10699 find out it does not work in some platform. */
10700#ifndef LT_DLLAZY_OR_NOW
10701# ifdef RTLD_LAZY
10702# define LT_DLLAZY_OR_NOW RTLD_LAZY
10703# else
10704# ifdef DL_LAZY
10705# define LT_DLLAZY_OR_NOW DL_LAZY
10706# else
10707# ifdef RTLD_NOW
10708# define LT_DLLAZY_OR_NOW RTLD_NOW
10709# else
10710# ifdef DL_NOW
10711# define LT_DLLAZY_OR_NOW DL_NOW
10712# else
10713# define LT_DLLAZY_OR_NOW 0
10714# endif
10715# endif
10716# endif
10717# endif
10718#endif
10719
1cf3d07d
SE
10720void fnord() { int i=42;}
10721int main ()
10722{
10723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10724 int status = $lt_dlunknown;
10725
10726 if (self)
10727 {
10728 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10729 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10730 /* dlclose (self); */
10731 }
10732 else
10733 puts (dlerror ());
10734
80c6c2cb 10735 return status;
1cf3d07d
SE
10736}
10737_LT_EOF
5213506e 10738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10739 (eval $ac_link) 2>&5
c9b93377 10740 ac_status=$?
5213506e
RW
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10743 (./conftest; exit; ) >&5 2>/dev/null
10744 lt_status=$?
10745 case x$lt_status in
10746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10749 esac
10750 else :
10751 # compilation failed
10752 lt_cv_dlopen_self=no
10753 fi
10754fi
10755rm -fr conftest*
10756
10757
10758fi
5213506e
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10760$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
10761
10762 if test "x$lt_cv_dlopen_self" = xyes; then
10763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10765$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10766if test "${lt_cv_dlopen_self_static+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10768else
10769 if test "$cross_compiling" = yes; then :
10770 lt_cv_dlopen_self_static=cross
10771else
10772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10773 lt_status=$lt_dlunknown
10774 cat > conftest.$ac_ext <<_LT_EOF
5213506e 10775#line 10775 "configure"
1cf3d07d
SE
10776#include "confdefs.h"
10777
10778#if HAVE_DLFCN_H
10779#include <dlfcn.h>
10780#endif
10781
10782#include <stdio.h>
10783
10784#ifdef RTLD_GLOBAL
10785# define LT_DLGLOBAL RTLD_GLOBAL
10786#else
10787# ifdef DL_GLOBAL
10788# define LT_DLGLOBAL DL_GLOBAL
10789# else
10790# define LT_DLGLOBAL 0
10791# endif
10792#endif
10793
10794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10795 find out it does not work in some platform. */
10796#ifndef LT_DLLAZY_OR_NOW
10797# ifdef RTLD_LAZY
10798# define LT_DLLAZY_OR_NOW RTLD_LAZY
10799# else
10800# ifdef DL_LAZY
10801# define LT_DLLAZY_OR_NOW DL_LAZY
10802# else
10803# ifdef RTLD_NOW
10804# define LT_DLLAZY_OR_NOW RTLD_NOW
10805# else
10806# ifdef DL_NOW
10807# define LT_DLLAZY_OR_NOW DL_NOW
10808# else
10809# define LT_DLLAZY_OR_NOW 0
10810# endif
10811# endif
10812# endif
10813# endif
10814#endif
10815
1cf3d07d
SE
10816void fnord() { int i=42;}
10817int main ()
10818{
10819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10820 int status = $lt_dlunknown;
10821
10822 if (self)
10823 {
10824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10825 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10826 /* dlclose (self); */
10827 }
10828 else
10829 puts (dlerror ());
10830
80c6c2cb 10831 return status;
1cf3d07d
SE
10832}
10833_LT_EOF
5213506e 10834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d 10835 (eval $ac_link) 2>&5
c9b93377 10836 ac_status=$?
5213506e
RW
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
10839 (./conftest; exit; ) >&5 2>/dev/null
10840 lt_status=$?
10841 case x$lt_status in
10842 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10843 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10844 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10845 esac
10846 else :
10847 # compilation failed
10848 lt_cv_dlopen_self_static=no
10849 fi
10850fi
10851rm -fr conftest*
10852
10853
10854fi
5213506e
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10856$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
10857 fi
10858
10859 CPPFLAGS="$save_CPPFLAGS"
10860 LDFLAGS="$save_LDFLAGS"
10861 LIBS="$save_LIBS"
10862 ;;
10863 esac
10864
10865 case $lt_cv_dlopen_self in
10866 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10867 *) enable_dlopen_self=unknown ;;
10868 esac
10869
10870 case $lt_cv_dlopen_self_static in
10871 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10872 *) enable_dlopen_self_static=unknown ;;
10873 esac
10874fi
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892striplib=
10893old_striplib=
5213506e
RW
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10895$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
10896if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10897 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10898 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10900$as_echo "yes" >&6; }
1cf3d07d
SE
10901else
10902# FIXME - insert some real tests, host_os isn't really good enough
10903 case $host_os in
10904 darwin*)
10905 if test -n "$STRIP" ; then
10906 striplib="$STRIP -x"
10907 old_striplib="$STRIP -S"
5213506e
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10909$as_echo "yes" >&6; }
1cf3d07d 10910 else
5213506e
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912$as_echo "no" >&6; }
1cf3d07d
SE
10913 fi
10914 ;;
10915 *)
5213506e
RW
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917$as_echo "no" >&6; }
1cf3d07d
SE
10918 ;;
10919 esac
10920fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933 # Report which library types will actually be built
5213506e
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10935$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10937$as_echo "$can_build_shared" >&6; }
1cf3d07d 10938
5213506e
RW
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10940$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
10941 test "$can_build_shared" = "no" && enable_shared=no
10942
10943 # On AIX, shared libraries and static libraries use the same namespace, and
10944 # are all built from PIC.
10945 case $host_os in
10946 aix3*)
10947 test "$enable_shared" = yes && enable_static=no
10948 if test -n "$RANLIB"; then
10949 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10950 postinstall_cmds='$RANLIB $lib'
10951 fi
10952 ;;
10953
95d4f544 10954 aix[4-9]*)
1cf3d07d
SE
10955 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10956 test "$enable_shared" = yes && enable_static=no
10957 fi
10958 ;;
10959 esac
5213506e
RW
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10961$as_echo "$enable_shared" >&6; }
1cf3d07d 10962
5213506e
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10964$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
10965 # Make sure either enable_shared or enable_static is yes.
10966 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10968$as_echo "$enable_static" >&6; }
1cf3d07d
SE
10969
10970
10971
10972
10973fi
10974ac_ext=c
10975ac_cpp='$CPP $CPPFLAGS'
10976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979
10980CC="$lt_save_CC"
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
5213506e 10994 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
10995
10996
10997
10998
10999# Only expand once:
11000
11001
11002
5213506e
RW
11003
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11005$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11006 # Check whether --enable-maintainer-mode was given.
11007if test "${enable_maintainer_mode+set}" = set; then :
11008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
c9b93377 11009else
1cf3d07d 11010 USE_MAINTAINER_MODE=no
5213506e 11011fi
c9b93377 11012
5213506e
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11014$as_echo "$USE_MAINTAINER_MODE" >&6; }
11015 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11016 MAINTAINER_MODE_TRUE=
11017 MAINTAINER_MODE_FALSE='#'
11018else
11019 MAINTAINER_MODE_TRUE='#'
11020 MAINTAINER_MODE_FALSE=
c9b93377
JB
11021fi
11022
1cf3d07d
SE
11023 MAINT=$MAINTAINER_MODE_TRUE
11024
c9b93377
JB
11025
11026
c9b93377 11027for ac_header in sys/mman.h
5213506e
RW
11028do :
11029 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11030if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
c9b93377 11031 cat >>confdefs.h <<_ACEOF
5213506e 11032#define HAVE_SYS_MMAN_H 1
c9b93377
JB
11033_ACEOF
11034
11035fi
11036
11037done
11038
c9b93377 11039for ac_func in mmap
5213506e
RW
11040do :
11041 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11042if test "x$ac_cv_func_mmap" = x""yes; then :
11043 cat >>confdefs.h <<_ACEOF
11044#define HAVE_MMAP 1
c9b93377 11045_ACEOF
c9b93377 11046
5213506e
RW
11047fi
11048done
c9b93377 11049
c9b93377 11050
5213506e
RW
11051ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11052if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11053 libffi_header_sys_mman_h=yes
11054else
11055 libffi_header_sys_mman_h=no
11056fi
c9b93377 11057
c9b93377 11058
5213506e
RW
11059ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11060if test "x$ac_cv_func_mmap" = x""yes; then :
11061 libffi_func_mmap=yes
c9b93377 11062else
5213506e 11063 libffi_func_mmap=no
4d447364
MR
11064fi
11065
11066if test "$libffi_header_sys_mman_h" != yes \
11067 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
11068 ac_cv_func_mmap_file=no
11069 ac_cv_func_mmap_dev_zero=no
11070 ac_cv_func_mmap_anon=no
11071else
5213506e
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11073$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11074if test "${ac_cv_func_mmap_file+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
c9b93377
JB
11076else
11077 # Add a system to this blacklist if
11078 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11079 # memory area containing the same data that you'd get if you applied
11080 # read() to the same fd. The only system known to have a problem here
11081 # is VMS, where text files have record structure.
11082 case "$host_os" in
11083 vms* | ultrix*)
11084 ac_cv_func_mmap_file=no ;;
11085 *)
11086 ac_cv_func_mmap_file=yes;;
11087 esac
11088fi
5213506e
RW
11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11090$as_echo "$ac_cv_func_mmap_file" >&6; }
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11092$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11093if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
c9b93377
JB
11095else
11096 # Add a system to this blacklist if it has mmap() but /dev/zero
11097 # does not exist, or if mmapping /dev/zero does not give anonymous
11098 # zeroed pages with both the following properties:
11099 # 1. If you map N consecutive pages in with one call, and then
11100 # unmap any subset of those pages, the pages that were not
11101 # explicitly unmapped remain accessible.
11102 # 2. If you map two adjacent blocks of memory and then unmap them
11103 # both at once, they must both go away.
11104 # Systems known to be in this category are Windows (all variants),
11105 # VMS, and Darwin.
11106 case "$host_os" in
11107 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11108 ac_cv_func_mmap_dev_zero=no ;;
11109 *)
11110 ac_cv_func_mmap_dev_zero=yes;;
11111 esac
11112fi
5213506e
RW
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11114$as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
c9b93377
JB
11115
11116 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11118$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11119if test "${ac_cv_decl_map_anon+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
c9b93377 11121else
5213506e 11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c9b93377
JB
11123/* end confdefs.h. */
11124#include <sys/types.h>
11125#include <sys/mman.h>
11126#include <unistd.h>
11127
11128#ifndef MAP_ANONYMOUS
11129#define MAP_ANONYMOUS MAP_ANON
11130#endif
11131
11132int
11133main ()
11134{
11135int n = MAP_ANONYMOUS;
11136 ;
11137 return 0;
11138}
11139_ACEOF
5213506e 11140if ac_fn_c_try_compile "$LINENO"; then :
c9b93377
JB
11141 ac_cv_decl_map_anon=yes
11142else
5213506e 11143 ac_cv_decl_map_anon=no
c9b93377 11144fi
5213506e 11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c9b93377 11146fi
5213506e
RW
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11148$as_echo "$ac_cv_decl_map_anon" >&6; }
c9b93377
JB
11149
11150 if test $ac_cv_decl_map_anon = no; then
11151 ac_cv_func_mmap_anon=no
11152 else
5213506e
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11154$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11155if test "${ac_cv_func_mmap_anon+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
c9b93377
JB
11157else
11158 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11159 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11160 # doesn't give anonymous zeroed pages with the same properties listed
11161 # above for use of /dev/zero.
11162 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11163 case "$host_os" in
11164 vms* | cygwin* | pe | mingw* | sco* | udk* )
11165 ac_cv_func_mmap_anon=no ;;
11166 *)
11167 ac_cv_func_mmap_anon=yes;;
11168 esac
11169fi
5213506e
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11171$as_echo "$ac_cv_func_mmap_anon" >&6; }
c9b93377
JB
11172 fi
11173fi
11174
11175if test $ac_cv_func_mmap_file = yes; then
11176
5213506e 11177$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
c9b93377
JB
11178
11179fi
11180if test $ac_cv_func_mmap_dev_zero = yes; then
11181
5213506e 11182$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
c9b93377
JB
11183
11184fi
11185if test $ac_cv_func_mmap_anon = yes; then
11186
5213506e 11187$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
c9b93377
JB
11188
11189fi
11190
11191
5213506e 11192 if test -d $srcdir/testsuite; then
c9b93377
JB
11193 TESTSUBDIR_TRUE=
11194 TESTSUBDIR_FALSE='#'
11195else
11196 TESTSUBDIR_TRUE='#'
11197 TESTSUBDIR_FALSE=
11198fi
11199
11200
11201TARGETDIR="unknown"
11202case "$host" in
bf8da5fc
RH
11203 alpha*-*-*)
11204 TARGET=ALPHA; TARGETDIR=alpha;
11205 # Support 128-bit long double, changable via command-line switch.
11206 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11207 ;;
11208
11209 arm*-*-*)
11210 TARGET=ARM; TARGETDIR=arm
11211 ;;
11212
2e250fa2
BK
11213 amd64-*-freebsd*)
11214 TARGET=X86_64; TARGETDIR=x86
11215 ;;
11216
bf8da5fc
RH
11217 cris-*-*)
11218 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11219 ;;
11220
11221 frv-*-*)
11222 TARGET=FRV; TARGETDIR=frv
11223 ;;
11224
b7b857bb 11225 hppa*-*-linux* | parisc*-*-linux*)
bf8da5fc
RH
11226 TARGET=PA_LINUX; TARGETDIR=pa
11227 ;;
11228 hppa*64-*-hpux*)
11229 TARGET=PA64_HPUX; TARGETDIR=pa
11230 ;;
11231 hppa*-*-hpux*)
11232 TARGET=PA_HPUX; TARGETDIR=pa
11233 ;;
11234
b7b857bb
AH
11235 i386-*-freebsd* | i386-*-openbsd*)
11236 TARGET=X86_FREEBSD; TARGETDIR=x86
11237 ;;
bf8da5fc
RH
11238 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11239 TARGET=X86_WIN32; TARGETDIR=x86
11240 ;;
11241 i?86-*-darwin*)
11242 TARGET=X86_DARWIN; TARGETDIR=x86
11243 ;;
04a49983
RO
11244 i?86-*-solaris2.1[0-9]*)
11245 TARGET=X86_64; TARGETDIR=x86
11246 ;;
bf8da5fc
RH
11247 i?86-*-*)
11248 TARGET=X86; TARGETDIR=x86
11249 ;;
11250
11251 ia64*-*-*)
11252 TARGET=IA64; TARGETDIR=ia64
11253 ;;
11254
11255 m32r*-*-*)
11256 TARGET=M32R; TARGETDIR=m32r
11257 ;;
11258
11259 m68k-*-*)
11260 TARGET=M68K; TARGETDIR=m68k
11261 ;;
11262
bf8da5fc 11263 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 11264 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11265 ;;
11266 mips*-*-linux*)
8d5c5e35 11267 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11268 ;;
11269
b7b857bb
AH
11270 powerpc*-*-linux* | powerpc-*-sysv*)
11271 TARGET=POWERPC; TARGETDIR=powerpc
11272 ;;
11273 powerpc-*-beos*)
bf8da5fc
RH
11274 TARGET=POWERPC; TARGETDIR=powerpc
11275 ;;
11276 powerpc-*-darwin*)
11277 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11278 ;;
11279 powerpc-*-aix* | rs6000-*-aix*)
11280 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11281 ;;
11282 powerpc-*-freebsd*)
11283 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11284 ;;
11285 powerpc*-*-rtems*)
11286 TARGET=POWERPC; TARGETDIR=powerpc
11287 ;;
11288
11289 s390-*-* | s390x-*-*)
11290 TARGET=S390; TARGETDIR=s390
11291 ;;
11292
11293 sh-*-* | sh[34]*-*-*)
11294 TARGET=SH; TARGETDIR=sh
11295 ;;
11296 sh64-*-* | sh5*-*-*)
11297 TARGET=SH64; TARGETDIR=sh64
11298 ;;
11299
11300 sparc*-*-*)
11301 TARGET=SPARC; TARGETDIR=sparc
11302 ;;
11303
11304 x86_64-*-darwin*)
11305 TARGET=X86_DARWIN; TARGETDIR=x86
11306 ;;
fe673cc9 11307
bf8da5fc 11308 x86_64-*-cygwin* | x86_64-*-mingw*)
fe673cc9 11309 TARGET=X86_WIN64; TARGETDIR=x86
bf8da5fc 11310 ;;
fe673cc9 11311
bf8da5fc
RH
11312 x86_64-*-*)
11313 TARGET=X86_64; TARGETDIR=x86
11314 ;;
c9b93377
JB
11315esac
11316
11317
11318
11319if test $TARGETDIR = unknown; then
5213506e 11320 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
c9b93377
JB
11321fi
11322
5213506e 11323 if test x$TARGET = xMIPS; then
8d5c5e35
MR
11324 MIPS_TRUE=
11325 MIPS_FALSE='#'
c9b93377 11326else
8d5c5e35
MR
11327 MIPS_TRUE='#'
11328 MIPS_FALSE=
c9b93377
JB
11329fi
11330
5213506e 11331 if test x$TARGET = xSPARC; then
c9b93377
JB
11332 SPARC_TRUE=
11333 SPARC_FALSE='#'
11334else
11335 SPARC_TRUE='#'
11336 SPARC_FALSE=
11337fi
11338
5213506e 11339 if test x$TARGET = xX86; then
c9b93377
JB
11340 X86_TRUE=
11341 X86_FALSE='#'
11342else
11343 X86_TRUE='#'
11344 X86_FALSE=
63e5e3e0 11345fi
c9b93377 11346
5213506e 11347 if test x$TARGET = xX86_FREEBSD; then
b7b857bb
AH
11348 X86_FREEBSD_TRUE=
11349 X86_FREEBSD_FALSE='#'
11350else
11351 X86_FREEBSD_TRUE='#'
11352 X86_FREEBSD_FALSE=
11353fi
11354
5213506e 11355 if test x$TARGET = xX86_WIN32; then
c9b93377
JB
11356 X86_WIN32_TRUE=
11357 X86_WIN32_FALSE='#'
3ed8e5b6 11358else
c9b93377
JB
11359 X86_WIN32_TRUE='#'
11360 X86_WIN32_FALSE=
11361fi
3ed8e5b6 11362
5213506e 11363 if test x$TARGET = xX86_WIN64; then
fe673cc9
AH
11364 X86_WIN64_TRUE=
11365 X86_WIN64_FALSE='#'
11366else
11367 X86_WIN64_TRUE='#'
11368 X86_WIN64_FALSE=
11369fi
11370
5213506e 11371 if test x$TARGET = xX86_DARWIN; then
a3bd50cc
PB
11372 X86_DARWIN_TRUE=
11373 X86_DARWIN_FALSE='#'
11374else
11375 X86_DARWIN_TRUE='#'
11376 X86_DARWIN_FALSE=
11377fi
11378
5213506e 11379 if test x$TARGET = xALPHA; then
c9b93377
JB
11380 ALPHA_TRUE=
11381 ALPHA_FALSE='#'
11382else
11383 ALPHA_TRUE='#'
11384 ALPHA_FALSE=
63e5e3e0 11385fi
3ed8e5b6 11386
5213506e 11387 if test x$TARGET = xIA64; then
c9b93377
JB
11388 IA64_TRUE=
11389 IA64_FALSE='#'
11390else
11391 IA64_TRUE='#'
11392 IA64_FALSE=
63e5e3e0 11393fi
3ed8e5b6 11394
5213506e 11395 if test x$TARGET = xM32R; then
a472e9d4
KI
11396 M32R_TRUE=
11397 M32R_FALSE='#'
11398else
11399 M32R_TRUE='#'
11400 M32R_FALSE=
11401fi
11402
5213506e 11403 if test x$TARGET = xM68K; then
c9b93377
JB
11404 M68K_TRUE=
11405 M68K_FALSE='#'
11406else
11407 M68K_TRUE='#'
11408 M68K_FALSE=
3ed8e5b6 11409fi
c9b93377 11410
5213506e 11411 if test x$TARGET = xPOWERPC; then
c9b93377
JB
11412 POWERPC_TRUE=
11413 POWERPC_FALSE='#'
3ed8e5b6 11414else
c9b93377
JB
11415 POWERPC_TRUE='#'
11416 POWERPC_FALSE=
3ed8e5b6 11417fi
c9b93377 11418
5213506e 11419 if test x$TARGET = xPOWERPC_AIX; then
c9b93377
JB
11420 POWERPC_AIX_TRUE=
11421 POWERPC_AIX_FALSE='#'
3ed8e5b6 11422else
c9b93377
JB
11423 POWERPC_AIX_TRUE='#'
11424 POWERPC_AIX_FALSE=
3ed8e5b6 11425fi
c9b93377 11426
5213506e 11427 if test x$TARGET = xPOWERPC_DARWIN; then
c9b93377
JB
11428 POWERPC_DARWIN_TRUE=
11429 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 11430else
c9b93377
JB
11431 POWERPC_DARWIN_TRUE='#'
11432 POWERPC_DARWIN_FALSE=
11433fi
3ed8e5b6 11434
5213506e 11435 if test x$TARGET = xPOWERPC_FREEBSD; then
97067642
AT
11436 POWERPC_FREEBSD_TRUE=
11437 POWERPC_FREEBSD_FALSE='#'
11438else
11439 POWERPC_FREEBSD_TRUE='#'
11440 POWERPC_FREEBSD_FALSE=
11441fi
11442
5213506e 11443 if test x$TARGET = xARM; then
c9b93377
JB
11444 ARM_TRUE=
11445 ARM_FALSE='#'
11446else
11447 ARM_TRUE='#'
11448 ARM_FALSE=
3ed8e5b6 11449fi
3ed8e5b6 11450
5213506e 11451 if test x$TARGET = xLIBFFI_CRIS; then
614348bb
SP
11452 LIBFFI_CRIS_TRUE=
11453 LIBFFI_CRIS_FALSE='#'
11454else
11455 LIBFFI_CRIS_TRUE='#'
11456 LIBFFI_CRIS_FALSE=
11457fi
11458
5213506e 11459 if test x$TARGET = xFRV; then
88d8c771
AG
11460 FRV_TRUE=
11461 FRV_FALSE='#'
11462else
11463 FRV_TRUE='#'
11464 FRV_FALSE=
11465fi
11466
5213506e 11467 if test x$TARGET = xS390; then
c9b93377
JB
11468 S390_TRUE=
11469 S390_FALSE='#'
3ed8e5b6 11470else
c9b93377
JB
11471 S390_TRUE='#'
11472 S390_FALSE=
3ed8e5b6 11473fi
c9b93377 11474
5213506e 11475 if test x$TARGET = xX86_64; then
c9b93377
JB
11476 X86_64_TRUE=
11477 X86_64_FALSE='#'
3ed8e5b6 11478else
c9b93377
JB
11479 X86_64_TRUE='#'
11480 X86_64_FALSE=
11481fi
3ed8e5b6 11482
5213506e 11483 if test x$TARGET = xSH; then
c9b93377
JB
11484 SH_TRUE=
11485 SH_FALSE='#'
11486else
11487 SH_TRUE='#'
11488 SH_FALSE=
63e5e3e0 11489fi
3ed8e5b6 11490
5213506e 11491 if test x$TARGET = xSH64; then
c9b93377
JB
11492 SH64_TRUE=
11493 SH64_FALSE='#'
63e5e3e0 11494else
c9b93377
JB
11495 SH64_TRUE='#'
11496 SH64_FALSE=
63e5e3e0 11497fi
63e5e3e0 11498
5213506e 11499 if test x$TARGET = xPA_LINUX; then
e6c300ef
JDA
11500 PA_LINUX_TRUE=
11501 PA_LINUX_FALSE='#'
63e5e3e0 11502else
e6c300ef
JDA
11503 PA_LINUX_TRUE='#'
11504 PA_LINUX_FALSE=
11505fi
11506
5213506e 11507 if test x$TARGET = xPA_HPUX; then
e6c300ef
JDA
11508 PA_HPUX_TRUE=
11509 PA_HPUX_FALSE='#'
11510else
11511 PA_HPUX_TRUE='#'
11512 PA_HPUX_FALSE=
11513fi
11514
5213506e 11515 if test x$TARGET = xPA64_HPUX; then
e6c300ef
JDA
11516 PA64_HPUX_TRUE=
11517 PA64_HPUX_FALSE='#'
11518else
11519 PA64_HPUX_TRUE='#'
11520 PA64_HPUX_FALSE=
3ed8e5b6 11521fi
3ed8e5b6
AT
11522
11523
5213506e
RW
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11525$as_echo_n "checking for ANSI C header files... " >&6; }
11526if test "${ac_cv_header_stdc+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
3ed8e5b6 11528else
5213506e 11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11530/* end confdefs.h. */
63e5e3e0
AG
11531#include <stdlib.h>
11532#include <stdarg.h>
11533#include <string.h>
11534#include <float.h>
3ed8e5b6
AT
11535
11536int
11537main ()
11538{
11539
11540 ;
11541 return 0;
11542}
11543_ACEOF
5213506e 11544if ac_fn_c_try_compile "$LINENO"; then :
63e5e3e0
AG
11545 ac_cv_header_stdc=yes
11546else
5213506e 11547 ac_cv_header_stdc=no
63e5e3e0 11548fi
5213506e 11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
11550
11551if test $ac_cv_header_stdc = yes; then
11552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11554/* end confdefs.h. */
63e5e3e0 11555#include <string.h>
3ed8e5b6
AT
11556
11557_ACEOF
63e5e3e0 11558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11559 $EGREP "memchr" >/dev/null 2>&1; then :
11560
63e5e3e0 11561else
63e5e3e0
AG
11562 ac_cv_header_stdc=no
11563fi
11564rm -f conftest*
11565
11566fi
11567
11568if test $ac_cv_header_stdc = yes; then
11569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11571/* end confdefs.h. */
63e5e3e0 11572#include <stdlib.h>
3ed8e5b6
AT
11573
11574_ACEOF
63e5e3e0 11575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
11576 $EGREP "free" >/dev/null 2>&1; then :
11577
63e5e3e0 11578else
63e5e3e0
AG
11579 ac_cv_header_stdc=no
11580fi
11581rm -f conftest*
11582
11583fi
11584
11585if test $ac_cv_header_stdc = yes; then
11586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 11587 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11588 :
11589else
5213506e 11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11591/* end confdefs.h. */
63e5e3e0 11592#include <ctype.h>
5213506e 11593#include <stdlib.h>
3ed8e5b6
AT
11594#if ((' ' & 0x0FF) == 0x020)
11595# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11596# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11597#else
11598# define ISLOWER(c) \
11599 (('a' <= (c) && (c) <= 'i') \
11600 || ('j' <= (c) && (c) <= 'r') \
11601 || ('s' <= (c) && (c) <= 'z'))
11602# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11603#endif
63e5e3e0 11604
3ed8e5b6
AT
11605#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11606int
11607main ()
11608{
11609 int i;
11610 for (i = 0; i < 256; i++)
11611 if (XOR (islower (i), ISLOWER (i))
11612 || toupper (i) != TOUPPER (i))
5213506e
RW
11613 return 2;
11614 return 0;
3ed8e5b6
AT
11615}
11616_ACEOF
5213506e 11617if ac_fn_c_try_run "$LINENO"; then :
3ed8e5b6 11618
5213506e
RW
11619else
11620 ac_cv_header_stdc=no
63e5e3e0 11621fi
5213506e
RW
11622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 11624fi
5213506e 11625
63e5e3e0
AG
11626fi
11627fi
5213506e
RW
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11629$as_echo "$ac_cv_header_stdc" >&6; }
63e5e3e0 11630if test $ac_cv_header_stdc = yes; then
3ed8e5b6 11631
5213506e 11632$as_echo "#define STDC_HEADERS 1" >>confdefs.h
63e5e3e0
AG
11633
11634fi
11635
11636for ac_func in memcpy
5213506e
RW
11637do :
11638 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11639if test "x$ac_cv_func_memcpy" = x""yes; then :
11640 cat >>confdefs.h <<_ACEOF
11641#define HAVE_MEMCPY 1
3ed8e5b6 11642_ACEOF
3ed8e5b6 11643
5213506e
RW
11644fi
11645done
63e5e3e0 11646
5213506e
RW
11647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11648# for constant arguments. Useless!
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11650$as_echo_n "checking for working alloca.h... " >&6; }
11651if test "${ac_cv_working_alloca_h+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653else
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h. */
11656#include <alloca.h>
3ed8e5b6
AT
11657int
11658main ()
11659{
5213506e
RW
11660char *p = (char *) alloca (2 * sizeof (int));
11661 if (p) return 0;
3ed8e5b6
AT
11662 ;
11663 return 0;
11664}
11665_ACEOF
5213506e 11666if ac_fn_c_try_link "$LINENO"; then :
3ed8e5b6
AT
11667 ac_cv_working_alloca_h=yes
11668else
5213506e 11669 ac_cv_working_alloca_h=no
3ed8e5b6 11670fi
5213506e
RW
11671rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
3ed8e5b6 11673fi
5213506e
RW
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11675$as_echo "$ac_cv_working_alloca_h" >&6; }
3ed8e5b6
AT
11676if test $ac_cv_working_alloca_h = yes; then
11677
5213506e 11678$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
63e5e3e0
AG
11679
11680fi
11681
5213506e
RW
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11683$as_echo_n "checking for alloca... " >&6; }
11684if test "${ac_cv_func_alloca_works+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
63e5e3e0 11686else
5213506e 11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11688/* end confdefs.h. */
63e5e3e0
AG
11689#ifdef __GNUC__
11690# define alloca __builtin_alloca
11691#else
11692# ifdef _MSC_VER
11693# include <malloc.h>
11694# define alloca _alloca
11695# else
5213506e 11696# ifdef HAVE_ALLOCA_H
63e5e3e0
AG
11697# include <alloca.h>
11698# else
11699# ifdef _AIX
11700 #pragma alloca
11701# else
11702# ifndef alloca /* predefined by HP cc +Olibcalls */
11703char *alloca ();
11704# endif
11705# endif
11706# endif
11707# endif
11708#endif
11709
3ed8e5b6
AT
11710int
11711main ()
11712{
11713char *p = (char *) alloca (1);
5213506e 11714 if (p) return 0;
3ed8e5b6
AT
11715 ;
11716 return 0;
11717}
11718_ACEOF
5213506e 11719if ac_fn_c_try_link "$LINENO"; then :
63e5e3e0
AG
11720 ac_cv_func_alloca_works=yes
11721else
5213506e 11722 ac_cv_func_alloca_works=no
63e5e3e0 11723fi
5213506e
RW
11724rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11726fi
5213506e
RW
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11728$as_echo "$ac_cv_func_alloca_works" >&6; }
63e5e3e0 11729
63e5e3e0 11730if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11731
5213506e 11732$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
63e5e3e0 11733
3ed8e5b6 11734else
63e5e3e0 11735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11736# that cause trouble. Some versions do not even contain alloca or
11737# contain a buggy version. If you still want to use their alloca,
11738# use ar to extract alloca.o from them instead of compiling alloca.c.
11739
5213506e 11740ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3ed8e5b6 11741
5213506e 11742$as_echo "#define C_ALLOCA 1" >>confdefs.h
63e5e3e0
AG
11743
11744
5213506e
RW
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11746$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11747if test "${ac_cv_os_cray+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
63e5e3e0 11749else
5213506e 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11751/* end confdefs.h. */
5213506e 11752#if defined CRAY && ! defined CRAY2
63e5e3e0
AG
11753webecray
11754#else
11755wenotbecray
11756#endif
11757
3ed8e5b6 11758_ACEOF
63e5e3e0 11759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 11760 $EGREP "webecray" >/dev/null 2>&1; then :
63e5e3e0
AG
11761 ac_cv_os_cray=yes
11762else
63e5e3e0
AG
11763 ac_cv_os_cray=no
11764fi
11765rm -f conftest*
11766
11767fi
5213506e
RW
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11769$as_echo "$ac_cv_os_cray" >&6; }
63e5e3e0 11770if test $ac_cv_os_cray = yes; then
3ed8e5b6 11771 for ac_func in _getb67 GETB67 getb67; do
5213506e
RW
11772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11773ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11774eval as_val=\$$as_ac_var
11775 if test "x$as_val" = x""yes; then :
3ed8e5b6
AT
11776
11777cat >>confdefs.h <<_ACEOF
63e5e3e0 11778#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11779_ACEOF
63e5e3e0 11780
3ed8e5b6 11781 break
63e5e3e0
AG
11782fi
11783
3ed8e5b6 11784 done
63e5e3e0
AG
11785fi
11786
5213506e
RW
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11788$as_echo_n "checking stack direction for C alloca... " >&6; }
11789if test "${ac_cv_c_stack_direction+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
63e5e3e0 11791else
5213506e 11792 if test "$cross_compiling" = yes; then :
63e5e3e0
AG
11793 ac_cv_c_stack_direction=0
11794else
5213506e 11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 11796/* end confdefs.h. */
5213506e 11797$ac_includes_default
3ed8e5b6 11798int
63e5e3e0
AG
11799find_stack_direction ()
11800{
11801 static char *addr = 0;
11802 auto char dummy;
11803 if (addr == 0)
11804 {
11805 addr = &dummy;
11806 return find_stack_direction ();
11807 }
11808 else
11809 return (&dummy > addr) ? 1 : -1;
11810}
3ed8e5b6
AT
11811
11812int
63e5e3e0
AG
11813main ()
11814{
5213506e 11815 return find_stack_direction () < 0;
63e5e3e0 11816}
3ed8e5b6 11817_ACEOF
5213506e 11818if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
11819 ac_cv_c_stack_direction=1
11820else
5213506e 11821 ac_cv_c_stack_direction=-1
63e5e3e0 11822fi
5213506e
RW
11823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11824 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0
AG
11825fi
11826
5213506e
RW
11827fi
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11829$as_echo "$ac_cv_c_stack_direction" >&6; }
3ed8e5b6 11830cat >>confdefs.h <<_ACEOF
63e5e3e0 11831#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11832_ACEOF
11833
63e5e3e0
AG
11834
11835fi
11836
11837
5213506e
RW
11838# The cast to long int works around a bug in the HP C Compiler
11839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11841# This bug is HP SR number 8606223364.
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11843$as_echo_n "checking size of double... " >&6; }
11844if test "${ac_cv_sizeof_double+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
a097ef55 11846else
5213506e
RW
11847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
11848
11849else
11850 if test "$ac_cv_type_double" = yes; then
11851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11853{ as_fn_set_status 77
11854as_fn_error "cannot compute sizeof (double)
11855See \`config.log' for more details." "$LINENO" 5; }; }
11856 else
11857 ac_cv_sizeof_double=0
11858 fi
11859fi
11860
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11863$as_echo "$ac_cv_sizeof_double" >&6; }
11864
11865
11866
11867cat >>confdefs.h <<_ACEOF
11868#define SIZEOF_DOUBLE $ac_cv_sizeof_double
a097ef55 11869_ACEOF
5213506e
RW
11870
11871
11872# The cast to long int works around a bug in the HP C Compiler
11873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11875# This bug is HP SR number 8606223364.
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
11877$as_echo_n "checking size of long double... " >&6; }
11878if test "${ac_cv_sizeof_long_double+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
a097ef55 11880else
5213506e 11881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
a097ef55 11882
5213506e
RW
11883else
11884 if test "$ac_cv_type_long_double" = yes; then
11885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11887{ as_fn_set_status 77
11888as_fn_error "cannot compute sizeof (long double)
11889See \`config.log' for more details." "$LINENO" 5; }; }
11890 else
11891 ac_cv_sizeof_long_double=0
11892 fi
a097ef55 11893fi
5213506e 11894
a097ef55 11895fi
5213506e
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
11897$as_echo "$ac_cv_sizeof_long_double" >&6; }
a097ef55 11898
5213506e
RW
11899
11900
11901cat >>confdefs.h <<_ACEOF
11902#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
a097ef55 11903_ACEOF
5213506e
RW
11904
11905
11906
11907# Also AC_SUBST this variable for ffi.h.
11908if test -z "$HAVE_LONG_DOUBLE"; then
11909 HAVE_LONG_DOUBLE=0
11910 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
11911 if test $ac_cv_sizeof_long_double != 0; then
11912 HAVE_LONG_DOUBLE=1
11913
11914$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11915
11916 fi
11917 fi
11918fi
11919
11920
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11922$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11923if test "${ac_cv_c_bigendian+set}" = set; then :
11924 $as_echo_n "(cached) " >&6
11925else
11926 ac_cv_c_bigendian=unknown
11927 # See if we're dealing with a universal compiler.
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 11929/* end confdefs.h. */
5213506e
RW
11930#ifndef __APPLE_CC__
11931 not a universal capable compiler
11932 #endif
11933 typedef int dummy;
11934
11935_ACEOF
11936if ac_fn_c_try_compile "$LINENO"; then :
11937
11938 # Check for potential -arch flags. It is not universal unless
11939 # there are at least two -arch flags with different values.
11940 ac_arch=
11941 ac_prev=
11942 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11943 if test -n "$ac_prev"; then
11944 case $ac_word in
11945 i?86 | x86_64 | ppc | ppc64)
11946 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11947 ac_arch=$ac_word
11948 else
11949 ac_cv_c_bigendian=universal
11950 break
11951 fi
11952 ;;
11953 esac
11954 ac_prev=
11955 elif test "x$ac_word" = "x-arch"; then
11956 ac_prev=arch
11957 fi
11958 done
11959fi
11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 if test $ac_cv_c_bigendian = unknown; then
11962 # See if sys/param.h defines the BYTE_ORDER macro.
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964/* end confdefs.h. */
11965#include <sys/types.h>
11966 #include <sys/param.h>
11967
a097ef55
KC
11968int
11969main ()
11970{
5213506e
RW
11971#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11972 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11973 && LITTLE_ENDIAN)
11974 bogus endian macros
11975 #endif
a097ef55
KC
11976
11977 ;
11978 return 0;
11979}
11980_ACEOF
5213506e
RW
11981if ac_fn_c_try_compile "$LINENO"; then :
11982 # It does; now see whether it defined to BIG_ENDIAN or not.
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 11984/* end confdefs.h. */
5213506e
RW
11985#include <sys/types.h>
11986 #include <sys/param.h>
11987
a097ef55
KC
11988int
11989main ()
11990{
5213506e
RW
11991#if BYTE_ORDER != BIG_ENDIAN
11992 not big endian
11993 #endif
a097ef55
KC
11994
11995 ;
11996 return 0;
11997}
11998_ACEOF
5213506e
RW
11999if ac_fn_c_try_compile "$LINENO"; then :
12000 ac_cv_c_bigendian=yes
a097ef55 12001else
5213506e 12002 ac_cv_c_bigendian=no
a097ef55 12003fi
5213506e
RW
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005fi
12006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007 fi
12008 if test $ac_cv_c_bigendian = unknown; then
12009 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12011/* end confdefs.h. */
5213506e
RW
12012#include <limits.h>
12013
a097ef55
KC
12014int
12015main ()
12016{
5213506e
RW
12017#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12018 bogus endian macros
12019 #endif
a097ef55
KC
12020
12021 ;
12022 return 0;
12023}
12024_ACEOF
5213506e
RW
12025if ac_fn_c_try_compile "$LINENO"; then :
12026 # It does; now see whether it defined to _BIG_ENDIAN or not.
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12028/* end confdefs.h. */
5213506e
RW
12029#include <limits.h>
12030
a097ef55
KC
12031int
12032main ()
12033{
5213506e
RW
12034#ifndef _BIG_ENDIAN
12035 not big endian
12036 #endif
a097ef55
KC
12037
12038 ;
12039 return 0;
12040}
12041_ACEOF
5213506e
RW
12042if ac_fn_c_try_compile "$LINENO"; then :
12043 ac_cv_c_bigendian=yes
a097ef55 12044else
5213506e 12045 ac_cv_c_bigendian=no
a097ef55 12046fi
5213506e 12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12048fi
5213506e
RW
12049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 fi
12051 if test $ac_cv_c_bigendian = unknown; then
12052 # Compile a test program.
12053 if test "$cross_compiling" = yes; then :
12054 # Try to guess by grepping values from an object file.
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55 12056/* end confdefs.h. */
5213506e
RW
12057short int ascii_mm[] =
12058 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12059 short int ascii_ii[] =
12060 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12061 int use_ascii (int i) {
12062 return ascii_mm[i] + ascii_ii[i];
12063 }
12064 short int ebcdic_ii[] =
12065 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12066 short int ebcdic_mm[] =
12067 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12068 int use_ebcdic (int i) {
12069 return ebcdic_mm[i] + ebcdic_ii[i];
12070 }
12071 extern int foo;
12072
a097ef55
KC
12073int
12074main ()
12075{
5213506e 12076return use_ascii (foo) == use_ebcdic (foo);
a097ef55
KC
12077 ;
12078 return 0;
12079}
12080_ACEOF
5213506e
RW
12081if ac_fn_c_try_compile "$LINENO"; then :
12082 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12083 ac_cv_c_bigendian=yes
12084 fi
12085 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12086 if test "$ac_cv_c_bigendian" = unknown; then
12087 ac_cv_c_bigendian=no
12088 else
12089 # finding both strings is unlikely to happen, but who knows?
12090 ac_cv_c_bigendian=unknown
12091 fi
12092 fi
63e5e3e0 12093fi
5213506e 12094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55 12095else
5213506e 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a097ef55
KC
12097/* end confdefs.h. */
12098$ac_includes_default
3ed8e5b6
AT
12099int
12100main ()
12101{
3ed8e5b6 12102
5213506e
RW
12103 /* Are we little or big endian? From Harbison&Steele. */
12104 union
12105 {
12106 long int l;
12107 char c[sizeof (long int)];
12108 } u;
12109 u.l = 1;
12110 return u.c[sizeof (long int) - 1] == 1;
3ed8e5b6 12111
a097ef55
KC
12112 ;
12113 return 0;
12114}
12115_ACEOF
5213506e 12116if ac_fn_c_try_run "$LINENO"; then :
63e5e3e0
AG
12117 ac_cv_c_bigendian=no
12118else
5213506e 12119 ac_cv_c_bigendian=yes
63e5e3e0 12120fi
5213506e
RW
12121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12122 conftest.$ac_objext conftest.beam conftest.$ac_ext
63e5e3e0 12123fi
3ed8e5b6 12124
5213506e
RW
12125 fi
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12128$as_echo "$ac_cv_c_bigendian" >&6; }
12129 case $ac_cv_c_bigendian in #(
12130 yes)
12131 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12132;; #(
12133 no)
12134 ;; #(
12135 universal)
12136
12137$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12138
12139 ;; #(
12140 *)
12141 as_fn_error "unknown endianness
12142 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12143 esac
63e5e3e0
AG
12144
12145
5213506e
RW
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12147$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12148if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
e6fbf387
RZ
12150else
12151
12152 libffi_cv_as_cfi_pseudo_op=unknown
5213506e 12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e6fbf387
RZ
12154/* end confdefs.h. */
12155asm (".cfi_startproc\n\t.cfi_endproc");
12156int
12157main ()
12158{
12159
12160 ;
12161 return 0;
12162}
12163_ACEOF
5213506e 12164if ac_fn_c_try_compile "$LINENO"; then :
e6fbf387
RZ
12165 libffi_cv_as_cfi_pseudo_op=yes
12166else
5213506e 12167 libffi_cv_as_cfi_pseudo_op=no
e6fbf387 12168fi
5213506e 12169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e6fbf387
RZ
12170
12171fi
5213506e
RW
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12173$as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
e6fbf387
RZ
12174if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12175
5213506e 12176$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
e6fbf387
RZ
12177
12178fi
12179
189ab118 12180if test x$TARGET = xSPARC; then
5213506e
RW
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12182$as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12183if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12184 $as_echo_n "(cached) " >&6
5d84cf0b 12185else
3ed8e5b6 12186
5d84cf0b
JJ
12187 save_CFLAGS="$CFLAGS"
12188 save_LDFLAGS="$LDFLAGS"
12189 CFLAGS="$CFLAGS -fpic"
12190 LDFLAGS="$LDFLAGS -shared"
5213506e 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12192/* end confdefs.h. */
5d84cf0b 12193asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12194int
12195main ()
12196{
5d84cf0b 12197
3ed8e5b6
AT
12198 ;
12199 return 0;
12200}
12201_ACEOF
5213506e 12202if ac_fn_c_try_link "$LINENO"; then :
5d84cf0b
JJ
12203 libffi_cv_as_sparc_ua_pcrel=yes
12204else
5213506e 12205 libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12206fi
5213506e
RW
12207rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12209 CFLAGS="$save_CFLAGS"
12210 LDFLAGS="$save_LDFLAGS"
12211fi
5213506e
RW
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12213$as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
5d84cf0b 12214 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6 12215
5213506e 12216$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
bd19c9f4
JS
12217
12218 fi
12219
5213506e
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12221$as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12222if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
bd19c9f4 12224else
3ed8e5b6 12225
bd19c9f4
JS
12226 libffi_cv_as_register_pseudo_op=unknown
12227 # Check if we have .register
5213506e 12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3ed8e5b6 12229/* end confdefs.h. */
bd19c9f4 12230asm (".register %g2, #scratch");
3ed8e5b6
AT
12231int
12232main ()
12233{
bd19c9f4 12234
3ed8e5b6
AT
12235 ;
12236 return 0;
12237}
12238_ACEOF
5213506e 12239if ac_fn_c_try_compile "$LINENO"; then :
bd19c9f4
JS
12240 libffi_cv_as_register_pseudo_op=yes
12241else
5213506e 12242 libffi_cv_as_register_pseudo_op=no
bd19c9f4 12243fi
5213506e 12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12245
3ed8e5b6 12246fi
5213506e
RW
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12248$as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
bd19c9f4 12249 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6 12250
5213506e 12251$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
5d84cf0b
JJ
12252
12253 fi
12254fi
12255
8353cd27 12256if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
5213506e
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12258$as_echo_n "checking assembler supports pc related relocs... " >&6; }
12259if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
4d3d4078
RO
12261else
12262
12263 libffi_cv_as_x86_pcrel=yes
12264 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12265 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12266 libffi_cv_as_x86_pcrel=no
12267 fi
12268
12269fi
5213506e
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12271$as_echo "$libffi_cv_as_x86_pcrel" >&6; }
4d3d4078
RO
12272 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12273
5213506e 12274$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
4d3d4078
RO
12275
12276 fi
12277fi
12278
5213506e
RW
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12280$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12281if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
a733b15e 12283else
3ed8e5b6 12284
a733b15e
JJ
12285 libffi_cv_ro_eh_frame=no
12286 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12287 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12288 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12289 libffi_cv_ro_eh_frame=yes
12290 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12291 | grep -v '#write' > /dev/null; then
12292 libffi_cv_ro_eh_frame=yes
12293 fi
12294 fi
12295 rm -f conftest.*
a733b15e 12296
3ed8e5b6 12297fi
5213506e
RW
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12299$as_echo "$libffi_cv_ro_eh_frame" >&6; }
a733b15e 12300if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6 12301
5213506e 12302$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
1450eb7a 12303
3ed8e5b6 12304
5213506e 12305$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
1450eb7a
AT
12306
12307else
3ed8e5b6 12308
5213506e 12309$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
a733b15e
JJ
12310
12311fi
12312
5213506e
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12314$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12315if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
8a42356f
JJ
12317else
12318
12319 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12320 libffi_cv_hidden_visibility_attribute=no
12321 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 12322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8a42356f
JJ
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
5213506e
RW
12325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12326 test $ac_status = 0; }; }; then
8a42356f
JJ
12327 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12328 libffi_cv_hidden_visibility_attribute=yes
12329 fi
12330 fi
12331 rm -f conftest.*
12332
12333fi
5213506e
RW
12334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12335$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
8a42356f
JJ
12336if test $libffi_cv_hidden_visibility_attribute = yes; then
12337
5213506e 12338$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
8a42356f
JJ
12339
12340fi
12341
12342
12343
12344
63e5e3e0
AG
12345
12346
12347
12348
5213506e
RW
12349# Check whether --enable-debug was given.
12350if test "${enable_debug+set}" = set; then :
12351 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
63e5e3e0 12352
5213506e 12353$as_echo "#define FFI_DEBUG 1" >>confdefs.h
3ed8e5b6
AT
12354
12355 fi
5213506e 12356fi
3ed8e5b6 12357
3ed8e5b6 12358
5213506e
RW
12359# Check whether --enable-structs was given.
12360if test "${enable_structs+set}" = set; then :
12361 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12362
12363$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
3ed8e5b6
AT
12364
12365 fi
5213506e 12366fi
3ed8e5b6 12367
3ed8e5b6 12368
5213506e
RW
12369# Check whether --enable-raw-api was given.
12370if test "${enable_raw_api+set}" = set; then :
12371 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12372
12373$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
3ed8e5b6
AT
12374
12375 fi
5213506e 12376fi
3ed8e5b6 12377
3ed8e5b6 12378
5213506e
RW
12379# Check whether --enable-purify-safety was given.
12380if test "${enable_purify_safety+set}" = set; then :
12381 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12382
12383$as_echo "#define USING_PURIFY 1" >>confdefs.h
3ed8e5b6
AT
12384
12385 fi
5213506e
RW
12386fi
12387
3ed8e5b6
AT
12388
12389if test -n "$with_cross_host" &&
12390 test x"$with_cross_host" != x"no"; then
12391 toolexecdir='$(exec_prefix)/$(target_alias)'
12392 toolexeclibdir='$(toolexecdir)/lib'
12393else
12394 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12395 toolexeclibdir='$(libdir)'
12396fi
12397multi_os_directory=`$CC -print-multi-os-directory`
12398case $multi_os_directory in
12399 .) ;; # Avoid trailing /.
12400 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12401esac
12402
12403
12404
3ed8e5b6
AT
12405if test "${multilib}" = "yes"; then
12406 multilib_arg="--enable-multilib"
12407else
12408 multilib_arg=
12409fi
12410
5213506e 12411ac_config_commands="$ac_config_commands include"
3ed8e5b6 12412
5213506e 12413ac_config_commands="$ac_config_commands src"
3ed8e5b6
AT
12414
12415
5213506e 12416ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
3ed8e5b6
AT
12417
12418
5213506e 12419ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
3ed8e5b6
AT
12420
12421
12422cat >confcache <<\_ACEOF
12423# This file is a shell script that caches the results of configure
12424# tests run on this system so they can be shared between configure
12425# scripts and configure runs, see configure's option --config-cache.
12426# It is not useful on other systems. If it contains results you don't
12427# want to keep, you may remove or edit it.
12428#
12429# config.status only pays attention to the cache file if you give it
12430# the --recheck option to rerun configure.
12431#
12432# `ac_cv_env_foo' variables (set or unset) will be overridden when
12433# loading this file, other *unset* `ac_cv_foo' will be assigned the
12434# following values.
12435
12436_ACEOF
12437
12438# The following way of writing the cache mishandles newlines in values,
12439# but we know of no workaround that is simple, portable, and efficient.
5213506e 12440# So, we kill variables containing newlines.
3ed8e5b6
AT
12441# Ultrix sh set writes to stderr and can't be redirected directly,
12442# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
12443(
12444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12445 eval ac_val=\$$ac_var
12446 case $ac_val in #(
12447 *${as_nl}*)
12448 case $ac_var in #(
12449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12451 esac
12452 case $ac_var in #(
12453 _ | IFS | as_nl) ;; #(
12454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12455 *) { eval $ac_var=; unset $ac_var;} ;;
12456 esac ;;
12457 esac
12458 done
12459
3ed8e5b6 12460 (set) 2>&1 |
5213506e
RW
12461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12462 *${as_nl}ac_space=\ *)
12463 # `set' does not quote correctly, so add quotes: double-quote
12464 # substitution turns \\\\ into \\, and sed turns \\ into \.
3ed8e5b6
AT
12465 sed -n \
12466 "s/'/'\\\\''/g;
12467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 12468 ;; #(
3ed8e5b6
AT
12469 *)
12470 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 12471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3ed8e5b6 12472 ;;
5213506e
RW
12473 esac |
12474 sort
12475) |
3ed8e5b6 12476 sed '
5213506e 12477 /^ac_cv_env_/b end
3ed8e5b6 12478 t clear
5213506e 12479 :clear
3ed8e5b6
AT
12480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12481 t end
5213506e
RW
12482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12483 :end' >>confcache
12484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12485 if test -w "$cache_file"; then
12486 test "x$cache_file" != "x/dev/null" &&
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12488$as_echo "$as_me: updating cache $cache_file" >&6;}
3ed8e5b6
AT
12489 cat confcache >$cache_file
12490 else
5213506e
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12492$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3ed8e5b6
AT
12493 fi
12494fi
12495rm -f confcache
12496
12497test "x$prefix" = xNONE && prefix=$ac_default_prefix
12498# Let make expand exec_prefix.
12499test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12500
3ed8e5b6
AT
12501DEFS=-DHAVE_CONFIG_H
12502
12503ac_libobjs=
12504ac_ltlibobjs=
12505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12506 # 1. Remove the extension, and $U if already installed.
5213506e
RW
12507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12510 # will be set to the directory where LIBOBJS objects are built.
12511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3ed8e5b6
AT
12513done
12514LIBOBJS=$ac_libobjs
12515
12516LTLIBOBJS=$ac_ltlibobjs
12517
12518
5213506e
RW
12519 if test -n "$EXEEXT"; then
12520 am__EXEEXT_TRUE=
12521 am__EXEEXT_FALSE='#'
12522else
12523 am__EXEEXT_TRUE='#'
12524 am__EXEEXT_FALSE=
12525fi
12526
3ed8e5b6 12527if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
12528 as_fn_error "conditional \"AMDEP\" was never defined.
12529Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12530fi
12531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
12532 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12533Usually this means the macro was only invoked conditionally." "$LINENO" 5
12534fi
12535if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12536 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12537Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12538fi
12539if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
12540 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12541Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12542fi
12543if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
5213506e
RW
12544 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12545Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12546fi
8d5c5e35 12547if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
5213506e
RW
12548 as_fn_error "conditional \"MIPS\" was never defined.
12549Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12550fi
12551if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
5213506e
RW
12552 as_fn_error "conditional \"SPARC\" was never defined.
12553Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12554fi
12555if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
5213506e
RW
12556 as_fn_error "conditional \"X86\" was never defined.
12557Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12558fi
b7b857bb 12559if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
5213506e
RW
12560 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12561Usually this means the macro was only invoked conditionally." "$LINENO" 5
b7b857bb 12562fi
3ed8e5b6 12563if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
5213506e
RW
12564 as_fn_error "conditional \"X86_WIN32\" was never defined.
12565Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12566fi
fe673cc9 12567if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
5213506e
RW
12568 as_fn_error "conditional \"X86_WIN64\" was never defined.
12569Usually this means the macro was only invoked conditionally." "$LINENO" 5
fe673cc9 12570fi
a3bd50cc 12571if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
5213506e
RW
12572 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12573Usually this means the macro was only invoked conditionally." "$LINENO" 5
a3bd50cc 12574fi
3ed8e5b6 12575if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
5213506e
RW
12576 as_fn_error "conditional \"ALPHA\" was never defined.
12577Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12578fi
12579if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
5213506e
RW
12580 as_fn_error "conditional \"IA64\" was never defined.
12581Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12582fi
a472e9d4 12583if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
5213506e
RW
12584 as_fn_error "conditional \"M32R\" was never defined.
12585Usually this means the macro was only invoked conditionally." "$LINENO" 5
a472e9d4 12586fi
3ed8e5b6 12587if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
5213506e
RW
12588 as_fn_error "conditional \"M68K\" was never defined.
12589Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12590fi
12591if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
5213506e
RW
12592 as_fn_error "conditional \"POWERPC\" was never defined.
12593Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12594fi
12595if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
5213506e
RW
12596 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12597Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12598fi
12599if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
5213506e
RW
12600 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12601Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12602fi
97067642 12603if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
5213506e
RW
12604 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12605Usually this means the macro was only invoked conditionally." "$LINENO" 5
97067642 12606fi
3ed8e5b6 12607if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
5213506e
RW
12608 as_fn_error "conditional \"ARM\" was never defined.
12609Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12610fi
614348bb 12611if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
5213506e
RW
12612 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12613Usually this means the macro was only invoked conditionally." "$LINENO" 5
614348bb 12614fi
88d8c771 12615if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
5213506e
RW
12616 as_fn_error "conditional \"FRV\" was never defined.
12617Usually this means the macro was only invoked conditionally." "$LINENO" 5
88d8c771 12618fi
3ed8e5b6 12619if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
5213506e
RW
12620 as_fn_error "conditional \"S390\" was never defined.
12621Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12622fi
12623if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
5213506e
RW
12624 as_fn_error "conditional \"X86_64\" was never defined.
12625Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12626fi
12627if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
5213506e
RW
12628 as_fn_error "conditional \"SH\" was never defined.
12629Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6
AT
12630fi
12631if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
5213506e
RW
12632 as_fn_error "conditional \"SH64\" was never defined.
12633Usually this means the macro was only invoked conditionally." "$LINENO" 5
3ed8e5b6 12634fi
e6c300ef 12635if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
5213506e
RW
12636 as_fn_error "conditional \"PA_LINUX\" was never defined.
12637Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12638fi
12639if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
5213506e
RW
12640 as_fn_error "conditional \"PA_HPUX\" was never defined.
12641Usually this means the macro was only invoked conditionally." "$LINENO" 5
e6c300ef
JDA
12642fi
12643if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
5213506e
RW
12644 as_fn_error "conditional \"PA64_HPUX\" was never defined.
12645Usually this means the macro was only invoked conditionally." "$LINENO" 5
d65a810f 12646fi
3ed8e5b6 12647
5213506e 12648
3ed8e5b6 12649: ${CONFIG_STATUS=./config.status}
5213506e 12650ac_write_fail=0
3ed8e5b6
AT
12651ac_clean_files_save=$ac_clean_files
12652ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12654$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12655as_write_fail=0
12656cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3ed8e5b6
AT
12657#! $SHELL
12658# Generated by $as_me.
12659# Run this file to recreate the current configuration.
12660# Compiler output produced by configure, useful for debugging
12661# configure, is in config.log if it exists.
12662
12663debug=false
12664ac_cs_recheck=false
12665ac_cs_silent=false
3ed8e5b6 12666
5213506e
RW
12667SHELL=\${CONFIG_SHELL-$SHELL}
12668export SHELL
12669_ASEOF
12670cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12671## -------------------- ##
12672## M4sh Initialization. ##
12673## -------------------- ##
12674
12675# Be more Bourne compatible
12676DUALCASE=1; export DUALCASE # for MKS sh
12677if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3ed8e5b6
AT
12678 emulate sh
12679 NULLCMD=:
5213506e 12680 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3ed8e5b6
AT
12681 # is contrary to our usage. Disable this feature.
12682 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
12683 setopt NO_GLOB_SUBST
12684else
12685 case `(set -o) 2>/dev/null` in #(
12686 *posix*) :
12687 set -o posix ;; #(
12688 *) :
12689 ;;
12690esac
3ed8e5b6 12691fi
3ed8e5b6 12692
5213506e
RW
12693
12694as_nl='
12695'
12696export as_nl
12697# Printing a long string crashes Solaris 7 /usr/bin/printf.
12698as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12699as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12700as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12701# Prefer a ksh shell builtin over an external printf program on Solaris,
12702# but without wasting forks for bash or zsh.
12703if test -z "$BASH_VERSION$ZSH_VERSION" \
12704 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12705 as_echo='print -r --'
12706 as_echo_n='print -rn --'
12707elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12708 as_echo='printf %s\n'
12709 as_echo_n='printf %s'
12710else
12711 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12712 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12713 as_echo_n='/usr/ucb/echo -n'
12714 else
12715 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12716 as_echo_n_body='eval
12717 arg=$1;
12718 case $arg in #(
12719 *"$as_nl"*)
12720 expr "X$arg" : "X\\(.*\\)$as_nl";
12721 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12722 esac;
12723 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12724 '
12725 export as_echo_n_body
12726 as_echo_n='sh -c $as_echo_n_body as_echo'
12727 fi
12728 export as_echo_body
12729 as_echo='sh -c $as_echo_body as_echo'
12730fi
12731
12732# The user is always right.
12733if test "${PATH_SEPARATOR+set}" != set; then
12734 PATH_SEPARATOR=:
12735 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12736 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12737 PATH_SEPARATOR=';'
12738 }
3ed8e5b6
AT
12739fi
12740
12741
5213506e
RW
12742# IFS
12743# We need space, tab and new line, in precisely that order. Quoting is
12744# there to prevent editors from complaining about space-tab.
12745# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12746# splitting by setting IFS to empty value.)
12747IFS=" "" $as_nl"
12748
12749# Find who we are. Look in the path if we contain no directory separator.
12750case $0 in #((
12751 *[\\/]* ) as_myself=$0 ;;
12752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753for as_dir in $PATH
12754do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12758 done
12759IFS=$as_save_IFS
12760
12761 ;;
12762esac
12763# We did not find ourselves, most probably we were run as `sh COMMAND'
12764# in which case we are not to be found in the path.
12765if test "x$as_myself" = x; then
12766 as_myself=$0
12767fi
12768if test ! -f "$as_myself"; then
12769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12770 exit 1
12771fi
12772
12773# Unset variables that we do not need and which cause bugs (e.g. in
12774# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12775# suppresses any "Segmentation fault" message there. '((' could
12776# trigger a bug in pdksh 5.2.14.
12777for as_var in BASH_ENV ENV MAIL MAILPATH
12778do eval test x\${$as_var+set} = xset \
12779 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12780done
3ed8e5b6
AT
12781PS1='$ '
12782PS2='> '
12783PS4='+ '
12784
12785# NLS nuisances.
5213506e
RW
12786LC_ALL=C
12787export LC_ALL
12788LANGUAGE=C
12789export LANGUAGE
12790
12791# CDPATH.
12792(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12793
12794
12795# as_fn_error ERROR [LINENO LOG_FD]
12796# ---------------------------------
12797# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12798# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12799# script with status $?, using 1 if that was 0.
12800as_fn_error ()
12801{
12802 as_status=$?; test $as_status -eq 0 && as_status=1
12803 if test "$3"; then
12804 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3ed8e5b6 12806 fi
5213506e
RW
12807 $as_echo "$as_me: error: $1" >&2
12808 as_fn_exit $as_status
12809} # as_fn_error
12810
12811
12812# as_fn_set_status STATUS
12813# -----------------------
12814# Set $? to STATUS, without forking.
12815as_fn_set_status ()
12816{
12817 return $1
12818} # as_fn_set_status
12819
12820# as_fn_exit STATUS
12821# -----------------
12822# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12823as_fn_exit ()
12824{
12825 set +e
12826 as_fn_set_status $1
12827 exit $1
12828} # as_fn_exit
12829
12830# as_fn_unset VAR
12831# ---------------
12832# Portably unset VAR.
12833as_fn_unset ()
12834{
12835 { eval $1=; unset $1;}
12836}
12837as_unset=as_fn_unset
12838# as_fn_append VAR VALUE
12839# ----------------------
12840# Append the text in VALUE to the end of the definition contained in VAR. Take
12841# advantage of any shell optimizations that allow amortized linear growth over
12842# repeated appends, instead of the typical quadratic growth present in naive
12843# implementations.
12844if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12845 eval 'as_fn_append ()
12846 {
12847 eval $1+=\$2
12848 }'
12849else
12850 as_fn_append ()
12851 {
12852 eval $1=\$$1\$2
12853 }
12854fi # as_fn_append
12855
12856# as_fn_arith ARG...
12857# ------------------
12858# Perform arithmetic evaluation on the ARGs, and store the result in the
12859# global $as_val. Take advantage of shells that can avoid forks. The arguments
12860# must be portable across $(()) and expr.
12861if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12862 eval 'as_fn_arith ()
12863 {
12864 as_val=$(( $* ))
12865 }'
12866else
12867 as_fn_arith ()
12868 {
12869 as_val=`expr "$@" || test $? -eq 1`
12870 }
12871fi # as_fn_arith
12872
3ed8e5b6 12873
5213506e
RW
12874if expr a : '\(a\)' >/dev/null 2>&1 &&
12875 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3ed8e5b6
AT
12876 as_expr=expr
12877else
12878 as_expr=false
12879fi
12880
5213506e 12881if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3ed8e5b6
AT
12882 as_basename=basename
12883else
12884 as_basename=false
12885fi
12886
5213506e
RW
12887if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12888 as_dirname=dirname
12889else
12890 as_dirname=false
12891fi
3ed8e5b6 12892
5213506e 12893as_me=`$as_basename -- "$0" ||
3ed8e5b6
AT
12894$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12895 X"$0" : 'X\(//\)$' \| \
5213506e
RW
12896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12897$as_echo X/"$0" |
12898 sed '/^.*\/\([^/][^/]*\)\/*$/{
12899 s//\1/
12900 q
12901 }
12902 /^X\/\(\/\/\)$/{
12903 s//\1/
12904 q
12905 }
12906 /^X\/\(\/\).*/{
12907 s//\1/
12908 q
12909 }
12910 s/.*/./; q'`
3ed8e5b6 12911
3ed8e5b6
AT
12912# Avoid depending upon Character Ranges.
12913as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12914as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12915as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12916as_cr_digits='0123456789'
12917as_cr_alnum=$as_cr_Letters$as_cr_digits
12918
5213506e
RW
12919ECHO_C= ECHO_N= ECHO_T=
12920case `echo -n x` in #(((((
12921-n*)
12922 case `echo 'xy\c'` in
12923 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12924 xy) ECHO_C='\c';;
12925 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12926 ECHO_T=' ';;
12927 esac;;
12928*)
12929 ECHO_N='-n';;
3ed8e5b6
AT
12930esac
12931
5213506e
RW
12932rm -f conf$$ conf$$.exe conf$$.file
12933if test -d conf$$.dir; then
12934 rm -f conf$$.dir/conf$$.file
3ed8e5b6 12935else
5213506e
RW
12936 rm -f conf$$.dir
12937 mkdir conf$$.dir 2>/dev/null
3ed8e5b6 12938fi
5213506e
RW
12939if (echo >conf$$.file) 2>/dev/null; then
12940 if ln -s conf$$.file conf$$ 2>/dev/null; then
3ed8e5b6 12941 as_ln_s='ln -s'
5213506e
RW
12942 # ... but there are two gotchas:
12943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12945 # In both cases, we have to default to `cp -p'.
12946 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12947 as_ln_s='cp -p'
12948 elif ln conf$$.file conf$$ 2>/dev/null; then
12949 as_ln_s=ln
12950 else
12951 as_ln_s='cp -p'
7d45b968 12952 fi
3ed8e5b6
AT
12953else
12954 as_ln_s='cp -p'
12955fi
5213506e
RW
12956rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12957rmdir conf$$.dir 2>/dev/null
12958
12959
12960# as_fn_mkdir_p
12961# -------------
12962# Create "$as_dir" as a directory, including parents if necessary.
12963as_fn_mkdir_p ()
12964{
12965
12966 case $as_dir in #(
12967 -*) as_dir=./$as_dir;;
12968 esac
12969 test -d "$as_dir" || eval $as_mkdir_p || {
12970 as_dirs=
12971 while :; do
12972 case $as_dir in #(
12973 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12974 *) as_qdir=$as_dir;;
12975 esac
12976 as_dirs="'$as_qdir' $as_dirs"
12977 as_dir=`$as_dirname -- "$as_dir" ||
12978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12979 X"$as_dir" : 'X\(//\)[^/]' \| \
12980 X"$as_dir" : 'X\(//\)$' \| \
12981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12982$as_echo X"$as_dir" |
12983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12984 s//\1/
12985 q
12986 }
12987 /^X\(\/\/\)[^/].*/{
12988 s//\1/
12989 q
12990 }
12991 /^X\(\/\/\)$/{
12992 s//\1/
12993 q
12994 }
12995 /^X\(\/\).*/{
12996 s//\1/
12997 q
12998 }
12999 s/.*/./; q'`
13000 test -d "$as_dir" && break
13001 done
13002 test -z "$as_dirs" || eval "mkdir $as_dirs"
13003 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13004
3ed8e5b6 13005
5213506e 13006} # as_fn_mkdir_p
3ed8e5b6 13007if mkdir -p . 2>/dev/null; then
5213506e 13008 as_mkdir_p='mkdir -p "$as_dir"'
3ed8e5b6
AT
13009else
13010 test -d ./-p && rmdir ./-p
13011 as_mkdir_p=false
63e5e3e0
AG
13012fi
13013
5213506e
RW
13014if test -x / >/dev/null 2>&1; then
13015 as_test_x='test -x'
13016else
13017 if ls -dL / >/dev/null 2>&1; then
13018 as_ls_L_option=L
13019 else
13020 as_ls_L_option=
13021 fi
13022 as_test_x='
13023 eval sh -c '\''
13024 if test -d "$1"; then
13025 test -d "$1/.";
13026 else
13027 case $1 in #(
13028 -*)set "./$1";;
13029 esac;
13030 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13031 ???[sx]*):;;*)false;;esac;fi
13032 '\'' sh
13033 '
13034fi
13035as_executable_p=$as_test_x
3ed8e5b6
AT
13036
13037# Sed expression to map a string onto a valid CPP name.
13038as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13039
13040# Sed expression to map a string onto a valid variable name.
13041as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13042
13043
3ed8e5b6 13044exec 6>&1
5213506e
RW
13045## ----------------------------------- ##
13046## Main body of $CONFIG_STATUS script. ##
13047## ----------------------------------- ##
13048_ASEOF
13049test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13050
13051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052# Save the log message, to keep $0 and so on meaningful, and to
3ed8e5b6 13053# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
13054# values after options handling.
13055ac_log="
b7b857bb 13056This file was extended by libffi $as_me 3.0.8, which was
5213506e 13057generated by GNU Autoconf 2.64. Invocation command line was
63e5e3e0 13058
3ed8e5b6
AT
13059 CONFIG_FILES = $CONFIG_FILES
13060 CONFIG_HEADERS = $CONFIG_HEADERS
13061 CONFIG_LINKS = $CONFIG_LINKS
13062 CONFIG_COMMANDS = $CONFIG_COMMANDS
13063 $ $0 $@
63e5e3e0 13064
5213506e
RW
13065on `(hostname || uname -n) 2>/dev/null | sed 1q`
13066"
13067
3ed8e5b6 13068_ACEOF
63e5e3e0 13069
5213506e
RW
13070case $ac_config_files in *"
13071"*) set x $ac_config_files; shift; ac_config_files=$*;;
13072esac
63e5e3e0 13073
5213506e
RW
13074case $ac_config_headers in *"
13075"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13076esac
63e5e3e0 13077
63e5e3e0 13078
5213506e
RW
13079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080# Files that config.status was made for.
13081config_files="$ac_config_files"
13082config_headers="$ac_config_headers"
13083config_links="$ac_config_links"
13084config_commands="$ac_config_commands"
63e5e3e0 13085
5213506e 13086_ACEOF
63e5e3e0 13087
5213506e 13088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13089ac_cs_usage="\
5213506e
RW
13090\`$as_me' instantiates files and other configuration actions
13091from templates according to the current configuration. Unless the files
13092and actions are specified as TAGs, all are instantiated by default.
db2cd5e6 13093
5213506e 13094Usage: $0 [OPTION]... [TAG]...
db2cd5e6 13095
3ed8e5b6 13096 -h, --help print this help, then exit
5213506e
RW
13097 -V, --version print version number and configuration settings, then exit
13098 -q, --quiet, --silent
13099 do not print progress messages
3ed8e5b6
AT
13100 -d, --debug don't remove temporary files
13101 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
13102 --file=FILE[:TEMPLATE]
13103 instantiate the configuration file FILE
13104 --header=FILE[:TEMPLATE]
13105 instantiate the configuration header FILE
0721f64e 13106
3ed8e5b6
AT
13107Configuration files:
13108$config_files
ea81d2a3 13109
3ed8e5b6
AT
13110Configuration headers:
13111$config_headers
ea81d2a3 13112
3ed8e5b6
AT
13113Configuration links:
13114$config_links
ea81d2a3 13115
3ed8e5b6
AT
13116Configuration commands:
13117$config_commands
ea81d2a3 13118
5213506e 13119Report bugs to <http://gcc.gnu.org/bugs.html>."
3c18f2d1 13120
5213506e
RW
13121_ACEOF
13122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13123ac_cs_version="\\
b7b857bb 13124libffi config.status 3.0.8
5213506e
RW
13125configured by $0, generated by GNU Autoconf 2.64,
13126 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3ed8e5b6 13127
5213506e 13128Copyright (C) 2009 Free Software Foundation, Inc.
3ed8e5b6
AT
13129This config.status script is free software; the Free Software Foundation
13130gives unlimited permission to copy, distribute and modify it."
5213506e
RW
13131
13132ac_pwd='$ac_pwd'
13133srcdir='$srcdir'
13134INSTALL='$INSTALL'
13135MKDIR_P='$MKDIR_P'
13136AWK='$AWK'
13137test -n "\$AWK" || AWK=awk
3ed8e5b6
AT
13138_ACEOF
13139
5213506e
RW
13140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141# The default lists apply if the user does not specify any file.
3ed8e5b6
AT
13142ac_need_defaults=:
13143while test $# != 0
13144do
13145 case $1 in
13146 --*=*)
5213506e
RW
13147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13148 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3ed8e5b6 13149 ac_shift=:
63e5e3e0 13150 ;;
5213506e 13151 *)
3ed8e5b6
AT
13152 ac_option=$1
13153 ac_optarg=$2
13154 ac_shift=shift
63e5e3e0 13155 ;;
3ed8e5b6
AT
13156 esac
13157
13158 case $ac_option in
13159 # Handling of the options.
3ed8e5b6
AT
13160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13161 ac_cs_recheck=: ;;
5213506e
RW
13162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13163 $as_echo "$ac_cs_version"; exit ;;
13164 --debug | --debu | --deb | --de | --d | -d )
3ed8e5b6
AT
13165 debug=: ;;
13166 --file | --fil | --fi | --f )
13167 $ac_shift
5213506e
RW
13168 case $ac_optarg in
13169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13170 esac
13171 as_fn_append CONFIG_FILES " '$ac_optarg'"
3ed8e5b6
AT
13172 ac_need_defaults=false;;
13173 --header | --heade | --head | --hea )
13174 $ac_shift
5213506e
RW
13175 case $ac_optarg in
13176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13177 esac
13178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3ed8e5b6 13179 ac_need_defaults=false;;
5213506e
RW
13180 --he | --h)
13181 # Conflict between --help and --header
13182 as_fn_error "ambiguous option: \`$1'
13183Try \`$0 --help' for more information.";;
13184 --help | --hel | -h )
13185 $as_echo "$ac_cs_usage"; exit ;;
3ed8e5b6
AT
13186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13188 ac_cs_silent=: ;;
63e5e3e0 13189
3ed8e5b6 13190 # This is an error.
5213506e
RW
13191 -*) as_fn_error "unrecognized option: \`$1'
13192Try \`$0 --help' for more information." ;;
63e5e3e0 13193
5213506e
RW
13194 *) as_fn_append ac_config_targets " $1"
13195 ac_need_defaults=false ;;
63e5e3e0 13196
3ed8e5b6
AT
13197 esac
13198 shift
13199done
63e5e3e0 13200
3ed8e5b6 13201ac_configure_extra_args=
63e5e3e0 13202
3ed8e5b6
AT
13203if $ac_cs_silent; then
13204 exec 6>/dev/null
13205 ac_configure_extra_args="$ac_configure_extra_args --silent"
13206fi
63e5e3e0 13207
3ed8e5b6 13208_ACEOF
5213506e 13209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3ed8e5b6 13210if \$ac_cs_recheck; then
5213506e
RW
13211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13212 shift
13213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13214 CONFIG_SHELL='$SHELL'
13215 export CONFIG_SHELL
13216 exec "\$@"
3ed8e5b6 13217fi
63e5e3e0 13218
3ed8e5b6 13219_ACEOF
5213506e
RW
13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221exec 5>>config.log
13222{
13223 echo
13224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13225## Running $as_me. ##
13226_ASBOX
13227 $as_echo "$ac_log"
13228} >&5
13229
13230_ACEOF
13231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63e5e3e0 13232#
5213506e 13233# INIT-COMMANDS
63e5e3e0 13234#
63e5e3e0 13235
3ed8e5b6
AT
13236srcdir="$srcdir"
13237host="$host"
13238target="$target"
13239with_multisubdir="$with_multisubdir"
13240with_multisrctop="$with_multisrctop"
13241with_target_subdir="$with_target_subdir"
13242ac_configure_args="${multilib_arg} ${ac_configure_args}"
13243multi_basedir="$multi_basedir"
13244CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13245CC="$CC"
fe673cc9
AH
13246CXX="$CXX"
13247GFORTRAN="$GFORTRAN"
13248GCJ="$GCJ"
3ed8e5b6 13249AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13250
13251
13252# The HP-UX ksh and POSIX shell print the target directory to stdout
13253# if CDPATH is set.
13254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13255
13256sed_quote_subst='$sed_quote_subst'
13257double_quote_subst='$double_quote_subst'
13258delay_variable_subst='$delay_variable_subst'
13259macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13260macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13261enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13262enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13263pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13264enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13265host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13266host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13267host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13268build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13269build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13270build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13271SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13272Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13273GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13274EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13275FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13276LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13277NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13278LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13279max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13280ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13281exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13282lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13283lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13284lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13285reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13286reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb 13287OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
13288deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13289file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13290AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13291AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13292STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13293RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13294old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13295old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13296old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13297CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13298CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13299compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13300GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13301lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13302lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13303lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb 13304lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
13305objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13306SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13307ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13308MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13309lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13310lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13311lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13312lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13313lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13314need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb
PG
13315DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13316NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13317LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13318OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13319OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
13320libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13321shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13322extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13323archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13324enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13325export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13326whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13327compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13328old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13329old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13330archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13331archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13332module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13333module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13334with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13335allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13336no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13337hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13338hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13339hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13340hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13341hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13342hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13343hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13344hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13345inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13346link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13347fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13348always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13349export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13350exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13351include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13352prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13353file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13354variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13355need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13356need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13357version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13358runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13359shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13360shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13361libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13362library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13363soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13364postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13365postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13366finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13367finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13368hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13369sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13370sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13372enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13373enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13374enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13375old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13376striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13377
13378LTCC='$LTCC'
13379LTCFLAGS='$LTCFLAGS'
13380compiler='$compiler_DEFAULT'
13381
13382# Quote evaled strings.
13383for var in SED \
13384GREP \
13385EGREP \
13386FGREP \
13387LD \
13388NM \
13389LN_S \
13390lt_SP2NL \
13391lt_NL2SP \
13392reload_flag \
80c6c2cb 13393OBJDUMP \
1cf3d07d
SE
13394deplibs_check_method \
13395file_magic_cmd \
13396AR \
13397AR_FLAGS \
13398STRIP \
13399RANLIB \
13400CC \
13401CFLAGS \
13402compiler \
13403lt_cv_sys_global_symbol_pipe \
13404lt_cv_sys_global_symbol_to_cdecl \
13405lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 13406lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
13407SHELL \
13408ECHO \
13409lt_prog_compiler_no_builtin_flag \
13410lt_prog_compiler_wl \
13411lt_prog_compiler_pic \
13412lt_prog_compiler_static \
13413lt_cv_prog_compiler_c_o \
13414need_locks \
80c6c2cb
PG
13415DSYMUTIL \
13416NMEDIT \
13417LIPO \
13418OTOOL \
13419OTOOL64 \
1cf3d07d
SE
13420shrext_cmds \
13421export_dynamic_flag_spec \
13422whole_archive_flag_spec \
13423compiler_needs_object \
13424with_gnu_ld \
13425allow_undefined_flag \
13426no_undefined_flag \
13427hardcode_libdir_flag_spec \
13428hardcode_libdir_flag_spec_ld \
13429hardcode_libdir_separator \
13430fix_srcfile_path \
13431exclude_expsyms \
13432include_expsyms \
13433file_list_spec \
13434variables_saved_for_relink \
13435libname_spec \
13436library_names_spec \
13437soname_spec \
13438finish_eval \
13439old_striplib \
13440striplib; do
13441 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13442 *[\\\\\\\`\\"\\\$]*)
13443 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13444 ;;
13445 *)
13446 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13447 ;;
13448 esac
13449done
13450
13451# Double-quote double-evaled strings.
13452for var in reload_cmds \
13453old_postinstall_cmds \
13454old_postuninstall_cmds \
13455old_archive_cmds \
13456extract_expsyms_cmds \
13457old_archive_from_new_cmds \
13458old_archive_from_expsyms_cmds \
13459archive_cmds \
13460archive_expsym_cmds \
13461module_cmds \
13462module_expsym_cmds \
13463export_symbols_cmds \
13464prelink_cmds \
13465postinstall_cmds \
13466postuninstall_cmds \
13467finish_cmds \
13468sys_lib_search_path_spec \
13469sys_lib_dlsearch_path_spec; do
13470 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13471 *[\\\\\\\`\\"\\\$]*)
13472 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13473 ;;
13474 *)
13475 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13476 ;;
13477 esac
13478done
13479
13480# Fix-up fallback echo if it was mangled by the above quoting rules.
13481case \$lt_ECHO in
13482*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13483 ;;
13484esac
13485
13486ac_aux_dir='$ac_aux_dir'
13487xsi_shell='$xsi_shell'
13488lt_shell_append='$lt_shell_append'
13489
13490# See if we are running on zsh, and set the options which allow our
13491# commands through without removal of \ escapes INIT.
13492if test -n "\${ZSH_VERSION+set}" ; then
13493 setopt NO_GLOB_SUBST
13494fi
13495
13496
13497 PACKAGE='$PACKAGE'
13498 VERSION='$VERSION'
13499 TIMESTAMP='$TIMESTAMP'
13500 RM='$RM'
13501 ofile='$ofile'
13502
13503
13504
3ed8e5b6
AT
13505TARGETDIR="$TARGETDIR"
13506
13507_ACEOF
13508
5213506e 13509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6 13510
5213506e 13511# Handling of arguments.
3ed8e5b6 13512for ac_config_target in $ac_config_targets
63e5e3e0 13513do
5213506e
RW
13514 case $ac_config_target in
13515 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13516 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13517 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13518 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13519 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13520 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13521 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13522 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13523 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13524 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13525 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13526 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13527
13528 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
63e5e3e0
AG
13529 esac
13530done
13531
5213506e 13532
3ed8e5b6
AT
13533# If the user did not use the arguments to specify the items to instantiate,
13534# then the envvar interface is used. Set only those that are not.
13535# We use the long form for the default assignment because of an extremely
13536# bizarre bug on SunOS 4.1.3.
13537if $ac_need_defaults; then
13538 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13539 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13540 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13542fi
13543
13544# Have a temporary directory for convenience. Make it in the build tree
5213506e 13545# simply because there is no reason against having it here, and in addition,
3ed8e5b6 13546# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
13547# Hook for its removal unless debugging.
13548# Note that there is a small window in which the directory will not be cleaned:
13549# after its creation but before its name has been assigned to `$tmp'.
3ed8e5b6
AT
13550$debug ||
13551{
5213506e
RW
13552 tmp=
13553 trap 'exit_status=$?
13554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13555' 0
13556 trap 'as_fn_exit 1' 1 2 13 15
3ed8e5b6 13557}
3ed8e5b6 13558# Create a (secure) tmp directory for tmp files.
63e5e3e0 13559
3ed8e5b6 13560{
5213506e 13561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3ed8e5b6
AT
13562 test -n "$tmp" && test -d "$tmp"
13563} ||
13564{
5213506e
RW
13565 tmp=./conf$$-$RANDOM
13566 (umask 077 && mkdir "$tmp")
13567} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13568
13569# Set up the scripts for CONFIG_FILES section.
13570# No need to generate them if there are no CONFIG_FILES.
13571# This happens for instance with `./config.status config.h'.
13572if test -n "$CONFIG_FILES"; then
13573
13574
13575ac_cr=`echo X | tr X '\015'`
13576# On cygwin, bash can eat \r inside `` if the user requested igncr.
13577# But we know of no other shell where ac_cr would be empty at this
13578# point, so we can use a bashism as a fallback.
13579if test "x$ac_cr" = x; then
13580 eval ac_cr=\$\'\\r\'
13581fi
13582ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13583if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13584 ac_cs_awk_cr='\r'
13585else
13586 ac_cs_awk_cr=$ac_cr
13587fi
13588
13589echo 'BEGIN {' >"$tmp/subs1.awk" &&
13590_ACEOF
13591
13592
3ed8e5b6 13593{
5213506e
RW
13594 echo "cat >conf$$subs.awk <<_ACEOF" &&
13595 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13596 echo "_ACEOF"
13597} >conf$$subs.sh ||
13598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13599ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13600ac_delim='%!_!# '
13601for ac_last_try in false false false false false :; do
13602 . ./conf$$subs.sh ||
13603 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13604
13605 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13606 if test $ac_delim_n = $ac_delim_num; then
13607 break
13608 elif $ac_last_try; then
13609 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13610 else
13611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13612 fi
13613done
13614rm -f conf$$subs.sh
13615
13616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13617cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13618_ACEOF
13619sed -n '
13620h
13621s/^/S["/; s/!.*/"]=/
13622p
13623g
13624s/^[^!]*!//
13625:repl
13626t repl
13627s/'"$ac_delim"'$//
13628t delim
13629:nl
13630h
13631s/\(.\{148\}\).*/\1/
13632t more1
13633s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13634p
13635n
13636b repl
13637:more1
13638s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13639p
13640g
13641s/.\{148\}//
13642t nl
13643:delim
13644h
13645s/\(.\{148\}\).*/\1/
13646t more2
13647s/["\\]/\\&/g; s/^/"/; s/$/"/
13648p
13649b
13650:more2
13651s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13652p
13653g
13654s/.\{148\}//
13655t delim
13656' <conf$$subs.awk | sed '
13657/^[^""]/{
13658 N
13659 s/\n//
3ed8e5b6 13660}
5213506e
RW
13661' >>$CONFIG_STATUS || ac_write_fail=1
13662rm -f conf$$subs.awk
13663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13664_ACAWK
13665cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13666 for (key in S) S_is_set[key] = 1
13667 FS = "\a"
3ed8e5b6 13668
5213506e
RW
13669}
13670{
13671 line = $ 0
13672 nfields = split(line, field, "@")
13673 substed = 0
13674 len = length(field[1])
13675 for (i = 2; i < nfields; i++) {
13676 key = field[i]
13677 keylen = length(key)
13678 if (S_is_set[key]) {
13679 value = S[key]
13680 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13681 len += length(value) + length(field[++i])
13682 substed = 1
13683 } else
13684 len += 1 + keylen
13685 }
3ed8e5b6 13686
5213506e
RW
13687 print line
13688}
3ed8e5b6 13689
5213506e
RW
13690_ACAWK
13691_ACEOF
13692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13693if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13694 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13695else
13696 cat
13697fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13698 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13699_ACEOF
13700
13701# VPATH may cause trouble with some makes, so we remove $(srcdir),
13702# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13703# trailing colons and then remove the whole line if VPATH becomes empty
13704# (actually we leave an empty line to preserve line numbers).
13705if test "x$srcdir" = x.; then
13706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13707s/:*\$(srcdir):*/:/
13708s/:*\${srcdir}:*/:/
13709s/:*@srcdir@:*/:/
13710s/^\([^=]*=[ ]*\):*/\1/
13711s/:*$//
13712s/^[^=]*=[ ]*$//
13713}'
13714fi
63e5e3e0 13715
5213506e
RW
13716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717fi # test -n "$CONFIG_FILES"
63e5e3e0 13718
5213506e
RW
13719# Set up the scripts for CONFIG_HEADERS section.
13720# No need to generate them if there are no CONFIG_HEADERS.
13721# This happens for instance with `./config.status Makefile'.
13722if test -n "$CONFIG_HEADERS"; then
13723cat >"$tmp/defines.awk" <<\_ACAWK ||
13724BEGIN {
3ed8e5b6
AT
13725_ACEOF
13726
5213506e
RW
13727# Transform confdefs.h into an awk script `defines.awk', embedded as
13728# here-document in config.status, that substitutes the proper values into
13729# config.h.in to produce config.h.
13730
13731# Create a delimiter string that does not exist in confdefs.h, to ease
13732# handling of long lines.
13733ac_delim='%!_!# '
13734for ac_last_try in false false :; do
13735 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13736 if test -z "$ac_t"; then
13737 break
13738 elif $ac_last_try; then
13739 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13740 else
13741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
63e5e3e0 13742 fi
5213506e 13743done
63e5e3e0 13744
5213506e
RW
13745# For the awk script, D is an array of macro values keyed by name,
13746# likewise P contains macro parameters if any. Preserve backslash
13747# newline sequences.
13748
13749ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13750sed -n '
13751s/.\{148\}/&'"$ac_delim"'/g
13752t rset
13753:rset
13754s/^[ ]*#[ ]*define[ ][ ]*/ /
13755t def
13756d
13757:def
13758s/\\$//
13759t bsnl
13760s/["\\]/\\&/g
13761s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13762D["\1"]=" \3"/p
13763s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13764d
13765:bsnl
13766s/["\\]/\\&/g
13767s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13768D["\1"]=" \3\\\\\\n"\\/p
13769t cont
13770s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13771t cont
13772d
13773:cont
13774n
13775s/.\{148\}/&'"$ac_delim"'/g
13776t clear
13777:clear
13778s/\\$//
13779t bsnlc
13780s/["\\]/\\&/g; s/^/"/; s/$/"/p
13781d
13782:bsnlc
13783s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13784b cont
13785' <confdefs.h | sed '
13786s/'"$ac_delim"'/"\\\
13787"/g' >>$CONFIG_STATUS || ac_write_fail=1
13788
13789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13790 for (key in D) D_is_set[key] = 1
13791 FS = "\a"
13792}
13793/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13794 line = \$ 0
13795 split(line, arg, " ")
13796 if (arg[1] == "#") {
13797 defundef = arg[2]
13798 mac1 = arg[3]
13799 } else {
13800 defundef = substr(arg[1], 2)
13801 mac1 = arg[2]
13802 }
13803 split(mac1, mac2, "(") #)
13804 macro = mac2[1]
13805 prefix = substr(line, 1, index(line, defundef) - 1)
13806 if (D_is_set[macro]) {
13807 # Preserve the white space surrounding the "#".
13808 print prefix "define", macro P[macro] D[macro]
13809 next
13810 } else {
13811 # Replace #undef with comments. This is necessary, for example,
13812 # in the case of _POSIX_SOURCE, which is predefined and required
13813 # on some systems where configure will not decide to define it.
13814 if (defundef == "undef") {
13815 print "/*", prefix defundef, macro, "*/"
13816 next
13817 }
13818 }
13819}
13820{ print }
13821_ACAWK
3ed8e5b6 13822_ACEOF
5213506e
RW
13823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13824 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13825fi # test -n "$CONFIG_HEADERS"
13826
13827
13828eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
13829shift
13830for ac_tag
13831do
13832 case $ac_tag in
13833 :[FHLC]) ac_mode=$ac_tag; continue;;
13834 esac
13835 case $ac_mode$ac_tag in
13836 :[FHL]*:*);;
13837 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13838 :[FH]-) ac_tag=-:-;;
13839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13840 esac
13841 ac_save_IFS=$IFS
13842 IFS=:
13843 set x $ac_tag
13844 IFS=$ac_save_IFS
13845 shift
13846 ac_file=$1
13847 shift
13848
13849 case $ac_mode in
13850 :L) ac_source=$1;;
13851 :[FH])
13852 ac_file_inputs=
13853 for ac_f
13854 do
13855 case $ac_f in
13856 -) ac_f="$tmp/stdin";;
13857 *) # Look for the file first in the build tree, then in the source tree
13858 # (if the path is not absolute). The absolute path cannot be DOS-style,
13859 # because $ac_f cannot contain `:'.
13860 test -f "$ac_f" ||
13861 case $ac_f in
13862 [\\/$]*) false;;
13863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13864 esac ||
13865 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13866 esac
13867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13868 as_fn_append ac_file_inputs " '$ac_f'"
13869 done
13870
13871 # Let's still pretend it is `configure' which instantiates (i.e., don't
13872 # use $as_me), people would be surprised to read:
13873 # /* config.h. Generated by config.status. */
13874 configure_input='Generated from '`
13875 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13876 `' by configure.'
13877 if test x"$ac_file" != x-; then
13878 configure_input="$ac_file. $configure_input"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13880$as_echo "$as_me: creating $ac_file" >&6;}
13881 fi
13882 # Neutralize special characters interpreted by sed in replacement strings.
13883 case $configure_input in #(
13884 *\&* | *\|* | *\\* )
13885 ac_sed_conf_input=`$as_echo "$configure_input" |
13886 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13887 *) ac_sed_conf_input=$configure_input;;
13888 esac
13889
13890 case $ac_tag in
13891 *:-:* | *:-) cat >"$tmp/stdin" \
13892 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13893 esac
13894 ;;
63e5e3e0
AG
13895 esac
13896
5213506e 13897 ac_dir=`$as_dirname -- "$ac_file" ||
3ed8e5b6
AT
13898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13899 X"$ac_file" : 'X\(//\)[^/]' \| \
13900 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
13901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13902$as_echo X"$ac_file" |
13903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13904 s//\1/
13905 q
13906 }
13907 /^X\(\/\/\)[^/].*/{
13908 s//\1/
13909 q
13910 }
13911 /^X\(\/\/\)$/{
13912 s//\1/
13913 q
13914 }
13915 /^X\(\/\).*/{
13916 s//\1/
13917 q
13918 }
13919 s/.*/./; q'`
13920 as_dir="$ac_dir"; as_fn_mkdir_p
3ed8e5b6
AT
13921 ac_builddir=.
13922
5213506e
RW
13923case "$ac_dir" in
13924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13925*)
13926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13927 # A ".." for each directory in $ac_dir_suffix.
13928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13929 case $ac_top_builddir_sub in
13930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13932 esac ;;
13933esac
13934ac_abs_top_builddir=$ac_pwd
13935ac_abs_builddir=$ac_pwd$ac_dir_suffix
13936# for backward compatibility:
13937ac_top_builddir=$ac_top_build_prefix
63e5e3e0 13938
3ed8e5b6 13939case $srcdir in
5213506e 13940 .) # We are building in place.
3ed8e5b6 13941 ac_srcdir=.
5213506e
RW
13942 ac_top_srcdir=$ac_top_builddir_sub
13943 ac_abs_top_srcdir=$ac_pwd ;;
13944 [\\/]* | ?:[\\/]* ) # Absolute name.
3ed8e5b6 13945 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
13946 ac_top_srcdir=$srcdir
13947 ac_abs_top_srcdir=$srcdir ;;
13948 *) # Relative name.
13949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13950 ac_top_srcdir=$ac_top_build_prefix$srcdir
13951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3ed8e5b6 13952esac
5213506e 13953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3ed8e5b6 13954
63e5e3e0 13955
5213506e
RW
13956 case $ac_mode in
13957 :F)
13958 #
13959 # CONFIG_FILE
13960 #
63e5e3e0 13961
3ed8e5b6
AT
13962 case $INSTALL in
13963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e
RW
13964 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13965 esac
13966 ac_MKDIR_P=$MKDIR_P
13967 case $MKDIR_P in
13968 [\\/$]* | ?:[\\/]* ) ;;
13969 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
63e5e3e0 13970 esac
5213506e 13971_ACEOF
63e5e3e0 13972
5213506e
RW
13973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13974# If the template does not know about datarootdir, expand it.
13975# FIXME: This hack should be removed a few years after 2.60.
13976ac_datarootdir_hack=; ac_datarootdir_seen=
13977ac_sed_dataroot='
13978/datarootdir/ {
13979 p
13980 q
13981}
13982/@datadir@/p
13983/@docdir@/p
13984/@infodir@/p
13985/@localedir@/p
13986/@mandir@/p'
13987case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13988*datarootdir*) ac_datarootdir_seen=yes;;
13989*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13991$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13992_ACEOF
13993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994 ac_datarootdir_hack='
13995 s&@datadir@&$datadir&g
13996 s&@docdir@&$docdir&g
13997 s&@infodir@&$infodir&g
13998 s&@localedir@&$localedir&g
13999 s&@mandir@&$mandir&g
14000 s&\\\${datarootdir}&$datarootdir&g' ;;
14001esac
3ed8e5b6 14002_ACEOF
5213506e
RW
14003
14004# Neutralize VPATH when `$srcdir' = `.'.
14005# Shell code in configure.ac might set extrasub.
14006# FIXME: do we really want to maintain this feature?
14007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14008ac_sed_extra="$ac_vpsub
3ed8e5b6
AT
14009$extrasub
14010_ACEOF
5213506e 14011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3ed8e5b6
AT
14012:t
14013/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
14014s|@configure_input@|$ac_sed_conf_input|;t t
14015s&@top_builddir@&$ac_top_builddir_sub&;t t
14016s&@top_build_prefix@&$ac_top_build_prefix&;t t
14017s&@srcdir@&$ac_srcdir&;t t
14018s&@abs_srcdir@&$ac_abs_srcdir&;t t
14019s&@top_srcdir@&$ac_top_srcdir&;t t
14020s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14021s&@builddir@&$ac_builddir&;t t
14022s&@abs_builddir@&$ac_abs_builddir&;t t
14023s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14024s&@INSTALL@&$ac_INSTALL&;t t
14025s&@MKDIR_P@&$ac_MKDIR_P&;t t
14026$ac_datarootdir_hack
14027"
14028eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14029 || as_fn_error "could not create $ac_file" "$LINENO" 5
14030
14031test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14035which seems to be undefined. Please make sure it is defined." >&5
14036$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14037which seems to be undefined. Please make sure it is defined." >&2;}
14038
14039 rm -f "$tmp/stdin"
3ed8e5b6 14040 case $ac_file in
5213506e
RW
14041 -) cat "$tmp/out" && rm -f "$tmp/out";;
14042 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14043 esac \
14044 || as_fn_error "could not create $ac_file" "$LINENO" 5
14045 ;;
14046 :H)
14047 #
14048 # CONFIG_HEADER
14049 #
3ed8e5b6 14050 if test x"$ac_file" != x-; then
5213506e
RW
14051 {
14052 $as_echo "/* $configure_input */" \
14053 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14054 } >"$tmp/config.h" \
14055 || as_fn_error "could not create $ac_file" "$LINENO" 5
14056 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14058$as_echo "$as_me: $ac_file is unchanged" >&6;}
3ed8e5b6 14059 else
5213506e
RW
14060 rm -f "$ac_file"
14061 mv "$tmp/config.h" "$ac_file" \
14062 || as_fn_error "could not create $ac_file" "$LINENO" 5
3ed8e5b6
AT
14063 fi
14064 else
5213506e
RW
14065 $as_echo "/* $configure_input */" \
14066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14067 || as_fn_error "could not create -" "$LINENO" 5
3ed8e5b6 14068 fi
5213506e
RW
14069# Compute "$ac_file"'s index in $config_headers.
14070_am_arg="$ac_file"
3ed8e5b6
AT
14071_am_stamp_count=1
14072for _am_header in $config_headers :; do
14073 case $_am_header in
5213506e 14074 $_am_arg | $_am_arg:* )
3ed8e5b6
AT
14075 break ;;
14076 * )
14077 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14078 esac
14079done
5213506e
RW
14080echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14081$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14082 X"$_am_arg" : 'X\(//\)[^/]' \| \
14083 X"$_am_arg" : 'X\(//\)$' \| \
14084 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14085$as_echo X"$_am_arg" |
14086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14087 s//\1/
14088 q
14089 }
14090 /^X\(\/\/\)[^/].*/{
14091 s//\1/
14092 q
14093 }
14094 /^X\(\/\/\)$/{
14095 s//\1/
14096 q
14097 }
14098 /^X\(\/\).*/{
14099 s//\1/
14100 q
14101 }
14102 s/.*/./; q'`/stamp-h$_am_stamp_count
14103 ;;
14104 :L)
14105 #
14106 # CONFIG_LINK
14107 #
1450eb7a 14108
5213506e
RW
14109 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14110 :
1450eb7a 14111 else
5213506e
RW
14112 # Prefer the file from the source tree if names are identical.
14113 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14114 ac_source=$srcdir/$ac_source
14115 fi
3ed8e5b6 14116
5213506e
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14118$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
3ed8e5b6 14119
5213506e
RW
14120 if test ! -r "$ac_source"; then
14121 as_fn_error "$ac_source: file not found" "$LINENO" 5
14122 fi
14123 rm -f "$ac_file"
1450eb7a 14124
5213506e
RW
14125 # Try a relative symlink, then a hard link, then a copy.
14126 case $srcdir in
14127 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14128 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14129 esac
14130 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14131 ln "$ac_source" "$ac_file" 2>/dev/null ||
14132 cp -p "$ac_source" "$ac_file" ||
14133 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14134 fi
14135 ;;
14136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14137$as_echo "$as_me: executing $ac_file commands" >&6;}
14138 ;;
1450eb7a
AT
14139 esac
14140
63e5e3e0 14141
5213506e
RW
14142 case $ac_file$ac_mode in
14143 "default-1":C)
3ed8e5b6
AT
14144# Only add multilib support code if we just rebuilt the top-level
14145# Makefile.
14146case " $CONFIG_FILES " in
14147 *" Makefile "*)
14148 ac_file=Makefile . ${multi_basedir}/config-ml.in
14149 ;;
14150esac ;;
5213506e
RW
14151 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14152 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14153 # are listed without --file. Let's play safe and only enable the eval
14154 # if we detect the quoting.
14155 case $CONFIG_FILES in
14156 *\'*) eval set x "$CONFIG_FILES" ;;
14157 *) set x $CONFIG_FILES ;;
14158 esac
14159 shift
14160 for mf
14161 do
14162 # Strip MF so we end up with the name of the file.
14163 mf=`echo "$mf" | sed -e 's/:.*$//'`
14164 # Check whether this is an Automake generated Makefile or not.
14165 # We used to match only the files named `Makefile.in', but
14166 # some people rename them; so instead we look at the file content.
14167 # Grep'ing the first line is not enough: some people post-process
14168 # each Makefile.in and add a new line on top of each file to say so.
14169 # Grep'ing the whole file is not good either: AIX grep has a line
14170 # limit of 2048, but all sed's we know have understand at least 4000.
14171 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14172 dirpart=`$as_dirname -- "$mf" ||
3ed8e5b6
AT
14173$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14174 X"$mf" : 'X\(//\)[^/]' \| \
14175 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
14176 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14177$as_echo X"$mf" |
14178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14179 s//\1/
14180 q
14181 }
14182 /^X\(\/\/\)[^/].*/{
14183 s//\1/
14184 q
14185 }
14186 /^X\(\/\/\)$/{
14187 s//\1/
14188 q
14189 }
14190 /^X\(\/\).*/{
14191 s//\1/
14192 q
14193 }
14194 s/.*/./; q'`
14195 else
14196 continue
14197 fi
14198 # Extract the definition of DEPDIR, am__include, and am__quote
14199 # from the Makefile without running `make'.
14200 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14201 test -z "$DEPDIR" && continue
14202 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14203 test -z "am__include" && continue
14204 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14205 # When using ansi2knr, U may be empty or an underscore; expand it
14206 U=`sed -n 's/^U = //p' < "$mf"`
14207 # Find all dependency output files, they are included files with
14208 # $(DEPDIR) in their names. We invoke sed twice because it is the
14209 # simplest approach to changing $(DEPDIR) to its actual value in the
14210 # expansion.
14211 for file in `sed -n "
14212 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14213 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14214 # Make sure the directory exists.
14215 test -f "$dirpart/$file" && continue
14216 fdir=`$as_dirname -- "$file" ||
3ed8e5b6
AT
14217$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14218 X"$file" : 'X\(//\)[^/]' \| \
14219 X"$file" : 'X\(//\)$' \| \
5213506e
RW
14220 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14221$as_echo X"$file" |
14222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14223 s//\1/
14224 q
14225 }
14226 /^X\(\/\/\)[^/].*/{
14227 s//\1/
14228 q
14229 }
14230 /^X\(\/\/\)$/{
14231 s//\1/
14232 q
14233 }
14234 /^X\(\/\).*/{
14235 s//\1/
14236 q
14237 }
14238 s/.*/./; q'`
14239 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14240 # echo "creating $dirpart/$file"
14241 echo '# dummy' > "$dirpart/$file"
3ed8e5b6 14242 done
3ed8e5b6 14243 done
5213506e 14244}
1cf3d07d 14245 ;;
5213506e 14246 "libtool":C)
1cf3d07d
SE
14247
14248 # See if we are running on zsh, and set the options which allow our
14249 # commands through without removal of \ escapes.
14250 if test -n "${ZSH_VERSION+set}" ; then
14251 setopt NO_GLOB_SUBST
14252 fi
14253
14254 cfgfile="${ofile}T"
14255 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14256 $RM "$cfgfile"
14257
14258 cat <<_LT_EOF >> "$cfgfile"
14259#! $SHELL
14260
14261# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 14262# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
14263# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14264# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14265#
80c6c2cb
PG
14266# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14267# 2006, 2007, 2008 Free Software Foundation, Inc.
14268# Written by Gordon Matzigkeit, 1996
1cf3d07d 14269#
80c6c2cb 14270# This file is part of GNU Libtool.
1cf3d07d 14271#
80c6c2cb
PG
14272# GNU Libtool is free software; you can redistribute it and/or
14273# modify it under the terms of the GNU General Public License as
14274# published by the Free Software Foundation; either version 2 of
14275# the License, or (at your option) any later version.
1cf3d07d 14276#
80c6c2cb
PG
14277# As a special exception to the GNU General Public License,
14278# if you distribute this file as part of a program or library that
14279# is built using GNU Libtool, you may include this file under the
14280# same distribution terms that you use for the rest of that program.
1cf3d07d 14281#
80c6c2cb
PG
14282# GNU Libtool is distributed in the hope that it will be useful,
14283# but WITHOUT ANY WARRANTY; without even the implied warranty of
14284# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14285# GNU General Public License for more details.
1cf3d07d 14286#
80c6c2cb
PG
14287# You should have received a copy of the GNU General Public License
14288# along with GNU Libtool; see the file COPYING. If not, a copy
14289# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14290# obtained by writing to the Free Software Foundation, Inc.,
14291# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
14292
14293
14294# The names of the tagged configurations supported by this script.
14295available_tags=""
14296
14297# ### BEGIN LIBTOOL CONFIG
14298
14299# Which release of libtool.m4 was used?
14300macro_version=$macro_version
14301macro_revision=$macro_revision
14302
14303# Whether or not to build shared libraries.
14304build_libtool_libs=$enable_shared
14305
14306# Whether or not to build static libraries.
14307build_old_libs=$enable_static
14308
14309# What type of objects to build.
14310pic_mode=$pic_mode
14311
14312# Whether or not to optimize for fast installation.
14313fast_install=$enable_fast_install
14314
14315# The host system.
14316host_alias=$host_alias
14317host=$host
14318host_os=$host_os
14319
14320# The build system.
14321build_alias=$build_alias
14322build=$build
14323build_os=$build_os
14324
14325# A sed program that does not truncate output.
14326SED=$lt_SED
14327
14328# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14329Xsed="\$SED -e 1s/^X//"
14330
14331# A grep program that handles long lines.
14332GREP=$lt_GREP
14333
14334# An ERE matcher.
14335EGREP=$lt_EGREP
14336
14337# A literal string matcher.
14338FGREP=$lt_FGREP
14339
14340# A BSD- or MS-compatible name lister.
14341NM=$lt_NM
14342
14343# Whether we need soft or hard links.
14344LN_S=$lt_LN_S
14345
14346# What is the maximum length of a command?
14347max_cmd_len=$max_cmd_len
14348
14349# Object file suffix (normally "o").
14350objext=$ac_objext
14351
14352# Executable file suffix (normally "").
14353exeext=$exeext
14354
14355# whether the shell understands "unset".
14356lt_unset=$lt_unset
14357
14358# turn spaces into newlines.
14359SP2NL=$lt_lt_SP2NL
14360
14361# turn newlines into spaces.
14362NL2SP=$lt_lt_NL2SP
14363
14364# How to create reloadable object files.
14365reload_flag=$lt_reload_flag
14366reload_cmds=$lt_reload_cmds
14367
80c6c2cb
PG
14368# An object symbol dumper.
14369OBJDUMP=$lt_OBJDUMP
14370
1cf3d07d
SE
14371# Method to check whether dependent libraries are shared objects.
14372deplibs_check_method=$lt_deplibs_check_method
14373
14374# Command to use when deplibs_check_method == "file_magic".
14375file_magic_cmd=$lt_file_magic_cmd
14376
14377# The archiver.
14378AR=$lt_AR
14379AR_FLAGS=$lt_AR_FLAGS
14380
14381# A symbol stripping program.
14382STRIP=$lt_STRIP
14383
14384# Commands used to install an old-style archive.
14385RANLIB=$lt_RANLIB
14386old_postinstall_cmds=$lt_old_postinstall_cmds
14387old_postuninstall_cmds=$lt_old_postuninstall_cmds
14388
14389# A C compiler.
14390LTCC=$lt_CC
14391
14392# LTCC compiler flags.
14393LTCFLAGS=$lt_CFLAGS
14394
14395# Take the output of nm and produce a listing of raw symbols and C names.
14396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14397
14398# Transform the output of nm in a proper C declaration.
14399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14400
14401# Transform the output of nm in a C name address pair.
14402global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14403
80c6c2cb
PG
14404# Transform the output of nm in a C name address pair when lib prefix is needed.
14405global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14406
1cf3d07d
SE
14407# The name of the directory that contains temporary libtool files.
14408objdir=$objdir
14409
14410# Shell to use when invoking shell scripts.
14411SHELL=$lt_SHELL
14412
14413# An echo program that does not interpret backslashes.
14414ECHO=$lt_ECHO
14415
14416# Used to examine libraries when file_magic_cmd begins with "file".
14417MAGIC_CMD=$MAGIC_CMD
14418
14419# Must we lock files when doing compilation?
14420need_locks=$lt_need_locks
14421
80c6c2cb
PG
14422# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14423DSYMUTIL=$lt_DSYMUTIL
14424
14425# Tool to change global to local symbols on Mac OS X.
14426NMEDIT=$lt_NMEDIT
14427
14428# Tool to manipulate fat objects and archives on Mac OS X.
14429LIPO=$lt_LIPO
14430
14431# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14432OTOOL=$lt_OTOOL
14433
14434# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14435OTOOL64=$lt_OTOOL64
14436
1cf3d07d
SE
14437# Old archive suffix (normally "a").
14438libext=$libext
14439
14440# Shared library suffix (normally ".so").
14441shrext_cmds=$lt_shrext_cmds
14442
14443# The commands to extract the exported symbol list from a shared archive.
14444extract_expsyms_cmds=$lt_extract_expsyms_cmds
14445
14446# Variables whose values should be saved in libtool wrapper scripts and
14447# restored at link time.
14448variables_saved_for_relink=$lt_variables_saved_for_relink
14449
14450# Do we need the "lib" prefix for modules?
14451need_lib_prefix=$need_lib_prefix
14452
14453# Do we need a version for libraries?
14454need_version=$need_version
14455
14456# Library versioning type.
14457version_type=$version_type
14458
14459# Shared library runtime path variable.
14460runpath_var=$runpath_var
14461
14462# Shared library path variable.
14463shlibpath_var=$shlibpath_var
14464
14465# Is shlibpath searched before the hard-coded library search path?
14466shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14467
14468# Format of library name prefix.
14469libname_spec=$lt_libname_spec
14470
14471# List of archive names. First name is the real one, the rest are links.
14472# The last name is the one that the linker finds with -lNAME
14473library_names_spec=$lt_library_names_spec
14474
14475# The coded name of the library, if different from the real name.
14476soname_spec=$lt_soname_spec
14477
14478# Command to use after installation of a shared archive.
14479postinstall_cmds=$lt_postinstall_cmds
14480
14481# Command to use after uninstallation of a shared archive.
14482postuninstall_cmds=$lt_postuninstall_cmds
14483
14484# Commands used to finish a libtool library installation in a directory.
14485finish_cmds=$lt_finish_cmds
14486
14487# As "finish_cmds", except a single script fragment to be evaled but
14488# not shown.
14489finish_eval=$lt_finish_eval
14490
14491# Whether we should hardcode library paths into libraries.
14492hardcode_into_libs=$hardcode_into_libs
14493
14494# Compile-time system search path for libraries.
14495sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14496
14497# Run-time system search path for libraries.
14498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14499
14500# Whether dlopen is supported.
14501dlopen_support=$enable_dlopen
14502
14503# Whether dlopen of programs is supported.
14504dlopen_self=$enable_dlopen_self
14505
14506# Whether dlopen of statically linked programs is supported.
14507dlopen_self_static=$enable_dlopen_self_static
14508
14509# Commands to strip libraries.
14510old_striplib=$lt_old_striplib
14511striplib=$lt_striplib
14512
14513
14514# The linker used to build libraries.
14515LD=$lt_LD
14516
14517# Commands used to build an old-style archive.
14518old_archive_cmds=$lt_old_archive_cmds
14519
14520# A language specific compiler.
14521CC=$lt_compiler
14522
14523# Is the compiler the GNU compiler?
14524with_gcc=$GCC
14525
14526# Compiler flag to turn off builtin functions.
14527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14528
14529# How to pass a linker flag through the compiler.
14530wl=$lt_lt_prog_compiler_wl
14531
14532# Additional compiler flags for building library objects.
14533pic_flag=$lt_lt_prog_compiler_pic
14534
14535# Compiler flag to prevent dynamic linking.
14536link_static_flag=$lt_lt_prog_compiler_static
14537
14538# Does compiler simultaneously support -c and -o options?
14539compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14540
14541# Whether or not to add -lc for building shared libraries.
14542build_libtool_need_lc=$archive_cmds_need_lc
14543
14544# Whether or not to disallow shared libs when runtime libs are static.
14545allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14546
14547# Compiler flag to allow reflexive dlopens.
14548export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14549
14550# Compiler flag to generate shared objects directly from archives.
14551whole_archive_flag_spec=$lt_whole_archive_flag_spec
14552
14553# Whether the compiler copes with passing no objects directly.
14554compiler_needs_object=$lt_compiler_needs_object
14555
14556# Create an old-style archive from a shared archive.
14557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14558
14559# Create a temporary old-style archive to link instead of a shared archive.
14560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14561
14562# Commands used to build a shared archive.
14563archive_cmds=$lt_archive_cmds
14564archive_expsym_cmds=$lt_archive_expsym_cmds
14565
14566# Commands used to build a loadable module if different from building
14567# a shared archive.
14568module_cmds=$lt_module_cmds
14569module_expsym_cmds=$lt_module_expsym_cmds
14570
14571# Whether we are building with GNU ld or not.
14572with_gnu_ld=$lt_with_gnu_ld
14573
14574# Flag that allows shared libraries with undefined symbols to be built.
14575allow_undefined_flag=$lt_allow_undefined_flag
14576
14577# Flag that enforces no undefined symbols.
14578no_undefined_flag=$lt_no_undefined_flag
14579
14580# Flag to hardcode \$libdir into a binary during linking.
14581# This must work even if \$libdir does not exist
14582hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14583
14584# If ld is used when linking, flag to hardcode \$libdir into a binary
14585# during linking. This must work even if \$libdir does not exist.
14586hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14587
14588# Whether we need a single "-rpath" flag with a separated argument.
14589hardcode_libdir_separator=$lt_hardcode_libdir_separator
14590
14591# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14592# DIR into the resulting binary.
14593hardcode_direct=$hardcode_direct
14594
14595# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14596# DIR into the resulting binary and the resulting library dependency is
14597# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14598# library is relocated.
14599hardcode_direct_absolute=$hardcode_direct_absolute
14600
14601# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14602# into the resulting binary.
14603hardcode_minus_L=$hardcode_minus_L
14604
14605# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14606# into the resulting binary.
14607hardcode_shlibpath_var=$hardcode_shlibpath_var
14608
14609# Set to "yes" if building a shared library automatically hardcodes DIR
14610# into the library and all subsequent libraries and executables linked
14611# against it.
14612hardcode_automatic=$hardcode_automatic
14613
14614# Set to yes if linker adds runtime paths of dependent libraries
14615# to runtime path list.
14616inherit_rpath=$inherit_rpath
14617
14618# Whether libtool must link a program against all its dependency libraries.
14619link_all_deplibs=$link_all_deplibs
14620
14621# Fix the shell variable \$srcfile for the compiler.
14622fix_srcfile_path=$lt_fix_srcfile_path
14623
14624# Set to "yes" if exported symbols are required.
14625always_export_symbols=$always_export_symbols
14626
14627# The commands to list exported symbols.
14628export_symbols_cmds=$lt_export_symbols_cmds
14629
14630# Symbols that should not be listed in the preloaded symbols.
14631exclude_expsyms=$lt_exclude_expsyms
14632
14633# Symbols that must always be exported.
14634include_expsyms=$lt_include_expsyms
14635
14636# Commands necessary for linking programs (against libraries) with templates.
14637prelink_cmds=$lt_prelink_cmds
14638
14639# Specify filename containing input files.
14640file_list_spec=$lt_file_list_spec
14641
14642# How to hardcode a shared library path into an executable.
14643hardcode_action=$hardcode_action
14644
14645# ### END LIBTOOL CONFIG
14646
14647_LT_EOF
14648
14649 case $host_os in
14650 aix3*)
14651 cat <<\_LT_EOF >> "$cfgfile"
14652# AIX sometimes has problems with the GCC collect2 program. For some
14653# reason, if we set the COLLECT_NAMES environment variable, the problems
14654# vanish in a puff of smoke.
14655if test "X${COLLECT_NAMES+set}" != Xset; then
14656 COLLECT_NAMES=
14657 export COLLECT_NAMES
14658fi
14659_LT_EOF
14660 ;;
14661 esac
14662
14663
14664ltmain="$ac_aux_dir/ltmain.sh"
14665
14666
14667 # We use sed instead of cat because bash on DJGPP gets confused if
14668 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14669 # text mode, it properly converts lines to CR/LF. This bash problem
14670 # is reportedly fixed, but why not run on old versions too?
14671 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14672 || (rm -f "$cfgfile"; exit 1)
14673
14674 case $xsi_shell in
14675 yes)
14676 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 14677
1cf3d07d
SE
14678# func_dirname file append nondir_replacement
14679# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14680# otherwise set result to NONDIR_REPLACEMENT.
14681func_dirname ()
14682{
14683 case ${1} in
14684 */*) func_dirname_result="${1%/*}${2}" ;;
14685 * ) func_dirname_result="${3}" ;;
14686 esac
14687}
14688
14689# func_basename file
14690func_basename ()
14691{
14692 func_basename_result="${1##*/}"
14693}
14694
80c6c2cb
PG
14695# func_dirname_and_basename file append nondir_replacement
14696# perform func_basename and func_dirname in a single function
14697# call:
14698# dirname: Compute the dirname of FILE. If nonempty,
14699# add APPEND to the result, otherwise set result
14700# to NONDIR_REPLACEMENT.
14701# value returned in "$func_dirname_result"
14702# basename: Compute filename of FILE.
14703# value retuned in "$func_basename_result"
14704# Implementation must be kept synchronized with func_dirname
14705# and func_basename. For efficiency, we do not delegate to
14706# those functions but instead duplicate the functionality here.
14707func_dirname_and_basename ()
14708{
14709 case ${1} in
14710 */*) func_dirname_result="${1%/*}${2}" ;;
14711 * ) func_dirname_result="${3}" ;;
14712 esac
14713 func_basename_result="${1##*/}"
14714}
14715
1cf3d07d
SE
14716# func_stripname prefix suffix name
14717# strip PREFIX and SUFFIX off of NAME.
14718# PREFIX and SUFFIX must not contain globbing or regex special
14719# characters, hashes, percent signs, but SUFFIX may contain a leading
14720# dot (in which case that matches only a dot).
14721func_stripname ()
14722{
14723 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14724 # positional parameters, so assign one to ordinary parameter first.
14725 func_stripname_result=${3}
14726 func_stripname_result=${func_stripname_result#"${1}"}
14727 func_stripname_result=${func_stripname_result%"${2}"}
14728}
14729
14730# func_opt_split
14731func_opt_split ()
14732{
14733 func_opt_split_opt=${1%%=*}
14734 func_opt_split_arg=${1#*=}
14735}
14736
14737# func_lo2o object
14738func_lo2o ()
14739{
14740 case ${1} in
14741 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14742 *) func_lo2o_result=${1} ;;
14743 esac
14744}
80c6c2cb
PG
14745
14746# func_xform libobj-or-source
14747func_xform ()
14748{
14749 func_xform_result=${1%.*}.lo
14750}
14751
14752# func_arith arithmetic-term...
14753func_arith ()
14754{
14755 func_arith_result=$(( $* ))
14756}
14757
14758# func_len string
14759# STRING may not start with a hyphen.
14760func_len ()
14761{
14762 func_len_result=${#1}
14763}
14764
1cf3d07d
SE
14765_LT_EOF
14766 ;;
14767 *) # Bourne compatible functions.
14768 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 14769
1cf3d07d
SE
14770# func_dirname file append nondir_replacement
14771# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14772# otherwise set result to NONDIR_REPLACEMENT.
14773func_dirname ()
14774{
14775 # Extract subdirectory from the argument.
14776 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14777 if test "X$func_dirname_result" = "X${1}"; then
14778 func_dirname_result="${3}"
14779 else
14780 func_dirname_result="$func_dirname_result${2}"
14781 fi
14782}
14783
14784# func_basename file
14785func_basename ()
14786{
14787 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14788}
14789
80c6c2cb 14790
1cf3d07d
SE
14791# func_stripname prefix suffix name
14792# strip PREFIX and SUFFIX off of NAME.
14793# PREFIX and SUFFIX must not contain globbing or regex special
14794# characters, hashes, percent signs, but SUFFIX may contain a leading
14795# dot (in which case that matches only a dot).
14796# func_strip_suffix prefix name
14797func_stripname ()
14798{
14799 case ${2} in
14800 .*) func_stripname_result=`$ECHO "X${3}" \
14801 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14802 *) func_stripname_result=`$ECHO "X${3}" \
14803 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14804 esac
14805}
14806
14807# sed scripts:
14808my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14809my_sed_long_arg='1s/^-[^=]*=//'
14810
14811# func_opt_split
14812func_opt_split ()
14813{
14814 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14815 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14816}
14817
14818# func_lo2o object
14819func_lo2o ()
14820{
14821 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14822}
80c6c2cb
PG
14823
14824# func_xform libobj-or-source
14825func_xform ()
14826{
14827 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14828}
14829
14830# func_arith arithmetic-term...
14831func_arith ()
14832{
14833 func_arith_result=`expr "$@"`
14834}
14835
14836# func_len string
14837# STRING may not start with a hyphen.
14838func_len ()
14839{
14840 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14841}
14842
1cf3d07d
SE
14843_LT_EOF
14844esac
14845
14846case $lt_shell_append in
14847 yes)
14848 cat << \_LT_EOF >> "$cfgfile"
14849
14850# func_append var value
14851# Append VALUE to the end of shell variable VAR.
14852func_append ()
14853{
14854 eval "$1+=\$2"
14855}
14856_LT_EOF
14857 ;;
14858 *)
14859 cat << \_LT_EOF >> "$cfgfile"
14860
14861# func_append var value
14862# Append VALUE to the end of shell variable VAR.
14863func_append ()
14864{
14865 eval "$1=\$$1\$2"
14866}
80c6c2cb 14867
1cf3d07d
SE
14868_LT_EOF
14869 ;;
14870 esac
14871
14872
14873 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14874 || (rm -f "$cfgfile"; exit 1)
14875
14876 mv -f "$cfgfile" "$ofile" ||
14877 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14878 chmod +x "$ofile"
14879
3ed8e5b6 14880 ;;
5213506e
RW
14881 "include":C) test -d include || mkdir include ;;
14882 "src":C)
3ed8e5b6
AT
14883test -d src || mkdir src
14884test -d src/$TARGETDIR || mkdir src/$TARGETDIR
14885 ;;
5213506e 14886
3ed8e5b6 14887 esac
5213506e 14888done # for ac_tag
3ed8e5b6 14889
3ed8e5b6 14890
5213506e 14891as_fn_exit 0
3ed8e5b6 14892_ACEOF
3ed8e5b6
AT
14893ac_clean_files=$ac_clean_files_save
14894
5213506e
RW
14895test $ac_write_fail = 0 ||
14896 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14897
3ed8e5b6
AT
14898
14899# configure is writing to config.log, and then calls config.status.
14900# config.status does its own redirection, appending to config.log.
14901# Unfortunately, on DOS this fails, as config.log is still kept open
14902# by configure, so config.status won't be able to write to it; its
14903# output is simply discarded. So we exec the FD to /dev/null,
14904# effectively closing config.log, so it can be properly (re)opened and
14905# appended to by config.status. When coming back to configure, we
14906# need to make the FD available again.
14907if test "$no_create" != yes; then
14908 ac_cs_success=:
14909 ac_config_status_args=
14910 test "$silent" = yes &&
14911 ac_config_status_args="$ac_config_status_args --quiet"
14912 exec 5>/dev/null
14913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14914 exec 5>>config.log
14915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14916 # would make configure fail if this is the last instruction.
5213506e
RW
14917 $ac_cs_success || as_fn_exit $?
14918fi
14919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3ed8e5b6 14922fi
63e5e3e0 14923
This page took 2.815744 seconds and 5 git commands to generate.