1 |
148 |
jeremybenn |
#! /bin/sh
|
2 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
3 |
|
|
# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
|
4 |
|
|
#
|
5 |
|
|
# Copyright (C) 2003 Free Software Foundation, Inc.
|
6 |
|
|
# This configure script is free software; the Free Software Foundation
|
7 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
8 |
|
|
## --------------------- ##
|
9 |
|
|
## M4sh Initialization. ##
|
10 |
|
|
## --------------------- ##
|
11 |
|
|
|
12 |
|
|
# Be Bourne compatible
|
13 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
14 |
|
|
emulate sh
|
15 |
|
|
NULLCMD=:
|
16 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
17 |
|
|
# is contrary to our usage. Disable this feature.
|
18 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
19 |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
20 |
|
|
set -o posix
|
21 |
|
|
fi
|
22 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
23 |
|
|
|
24 |
|
|
# Support unset when possible.
|
25 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
26 |
|
|
as_unset=unset
|
27 |
|
|
else
|
28 |
|
|
as_unset=false
|
29 |
|
|
fi
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
33 |
|
|
$as_unset ENV MAIL MAILPATH
|
34 |
|
|
PS1='$ '
|
35 |
|
|
PS2='> '
|
36 |
|
|
PS4='+ '
|
37 |
|
|
|
38 |
|
|
# NLS nuisances.
|
39 |
|
|
for as_var in \
|
40 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
41 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
42 |
|
|
LC_TELEPHONE LC_TIME
|
43 |
|
|
do
|
44 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
45 |
|
|
eval $as_var=C; export $as_var
|
46 |
|
|
else
|
47 |
|
|
$as_unset $as_var
|
48 |
|
|
fi
|
49 |
|
|
done
|
50 |
|
|
|
51 |
|
|
# Required to use basename.
|
52 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
53 |
|
|
as_expr=expr
|
54 |
|
|
else
|
55 |
|
|
as_expr=false
|
56 |
|
|
fi
|
57 |
|
|
|
58 |
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
59 |
|
|
as_basename=basename
|
60 |
|
|
else
|
61 |
|
|
as_basename=false
|
62 |
|
|
fi
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
# Name of the executable.
|
66 |
|
|
as_me=`$as_basename "$0" ||
|
67 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
68 |
|
|
X"$0" : 'X\(//\)$' \| \
|
69 |
|
|
X"$0" : 'X\(/\)$' \| \
|
70 |
|
|
. : '\(.\)' 2>/dev/null ||
|
71 |
|
|
echo X/"$0" |
|
72 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
73 |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; }
|
74 |
|
|
/^X\/\(\/\).*/{ s//\1/; q; }
|
75 |
|
|
s/.*/./; q'`
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
# PATH needs CR, and LINENO needs CR and PATH.
|
79 |
|
|
# Avoid depending upon Character Ranges.
|
80 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
81 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
82 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
83 |
|
|
as_cr_digits='0123456789'
|
84 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
85 |
|
|
|
86 |
|
|
# The user is always right.
|
87 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
88 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
89 |
|
|
echo "exit 0" >>conf$$.sh
|
90 |
|
|
chmod +x conf$$.sh
|
91 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
92 |
|
|
PATH_SEPARATOR=';'
|
93 |
|
|
else
|
94 |
|
|
PATH_SEPARATOR=:
|
95 |
|
|
fi
|
96 |
|
|
rm -f conf$$.sh
|
97 |
|
|
fi
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
as_lineno_1=$LINENO
|
101 |
|
|
as_lineno_2=$LINENO
|
102 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
103 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
104 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || {
|
105 |
|
|
# Find who we are. Look in the path if we contain no path at all
|
106 |
|
|
# relative or not.
|
107 |
|
|
case $0 in
|
108 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
109 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
110 |
|
|
for as_dir in $PATH
|
111 |
|
|
do
|
112 |
|
|
IFS=$as_save_IFS
|
113 |
|
|
test -z "$as_dir" && as_dir=.
|
114 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
115 |
|
|
done
|
116 |
|
|
|
117 |
|
|
;;
|
118 |
|
|
esac
|
119 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
120 |
|
|
# in which case we are not to be found in the path.
|
121 |
|
|
if test "x$as_myself" = x; then
|
122 |
|
|
as_myself=$0
|
123 |
|
|
fi
|
124 |
|
|
if test ! -f "$as_myself"; then
|
125 |
|
|
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
126 |
|
|
{ (exit 1); exit 1; }; }
|
127 |
|
|
fi
|
128 |
|
|
case $CONFIG_SHELL in
|
129 |
|
|
'')
|
130 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
131 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
132 |
|
|
do
|
133 |
|
|
IFS=$as_save_IFS
|
134 |
|
|
test -z "$as_dir" && as_dir=.
|
135 |
|
|
for as_base in sh bash ksh sh5; do
|
136 |
|
|
case $as_dir in
|
137 |
|
|
/*)
|
138 |
|
|
if ("$as_dir/$as_base" -c '
|
139 |
|
|
as_lineno_1=$LINENO
|
140 |
|
|
as_lineno_2=$LINENO
|
141 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
142 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
143 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
144 |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
145 |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
146 |
|
|
CONFIG_SHELL=$as_dir/$as_base
|
147 |
|
|
export CONFIG_SHELL
|
148 |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
149 |
|
|
fi;;
|
150 |
|
|
esac
|
151 |
|
|
done
|
152 |
|
|
done
|
153 |
|
|
;;
|
154 |
|
|
esac
|
155 |
|
|
|
156 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
157 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
158 |
|
|
# line-number line before each line; the second 'sed' does the real
|
159 |
|
|
# work. The second script uses 'N' to pair each line-number line
|
160 |
|
|
# with the numbered line, and appends trailing '-' during
|
161 |
|
|
# substitution so that $LINENO is not a special case at line end.
|
162 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
163 |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
164 |
|
|
sed '=' <$as_myself |
|
165 |
|
|
sed '
|
166 |
|
|
N
|
167 |
|
|
s,$,-,
|
168 |
|
|
: loop
|
169 |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
170 |
|
|
t loop
|
171 |
|
|
s,-$,,
|
172 |
|
|
s,^['$as_cr_digits']*\n,,
|
173 |
|
|
' >$as_me.lineno &&
|
174 |
|
|
chmod +x $as_me.lineno ||
|
175 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
176 |
|
|
{ (exit 1); exit 1; }; }
|
177 |
|
|
|
178 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
179 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
180 |
|
|
# original and so on. Autoconf is especially sensible to this).
|
181 |
|
|
. ./$as_me.lineno
|
182 |
|
|
# Exit status is that of the last command.
|
183 |
|
|
exit
|
184 |
|
|
}
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
188 |
|
|
*c*,-n*) ECHO_N= ECHO_C='
|
189 |
|
|
' ECHO_T=' ' ;;
|
190 |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
191 |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
192 |
|
|
esac
|
193 |
|
|
|
194 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
195 |
|
|
as_expr=expr
|
196 |
|
|
else
|
197 |
|
|
as_expr=false
|
198 |
|
|
fi
|
199 |
|
|
|
200 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
201 |
|
|
echo >conf$$.file
|
202 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
203 |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic
|
204 |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
205 |
|
|
if test -f conf$$.exe; then
|
206 |
|
|
# Don't use ln at all; we don't have any links
|
207 |
|
|
as_ln_s='cp -p'
|
208 |
|
|
else
|
209 |
|
|
as_ln_s='ln -s'
|
210 |
|
|
fi
|
211 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
212 |
|
|
as_ln_s=ln
|
213 |
|
|
else
|
214 |
|
|
as_ln_s='cp -p'
|
215 |
|
|
fi
|
216 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
217 |
|
|
|
218 |
|
|
if mkdir -p . 2>/dev/null; then
|
219 |
|
|
as_mkdir_p=:
|
220 |
|
|
else
|
221 |
|
|
test -d ./-p && rmdir ./-p
|
222 |
|
|
as_mkdir_p=false
|
223 |
|
|
fi
|
224 |
|
|
|
225 |
|
|
as_executable_p="test -f"
|
226 |
|
|
|
227 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
228 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
229 |
|
|
|
230 |
|
|
# Sed expression to map a string onto a valid variable name.
|
231 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
232 |
|
|
|
233 |
|
|
|
234 |
|
|
# IFS
|
235 |
|
|
# We need space, tab and new line, in precisely that order.
|
236 |
|
|
as_nl='
|
237 |
|
|
'
|
238 |
|
|
IFS=" $as_nl"
|
239 |
|
|
|
240 |
|
|
# CDPATH.
|
241 |
|
|
$as_unset CDPATH
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
# Check that we are running under the correct shell.
|
246 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
247 |
|
|
|
248 |
|
|
case X$lt_ECHO in
|
249 |
|
|
X*--fallback-echo)
|
250 |
|
|
# Remove one level of quotation (which was required for Make).
|
251 |
|
|
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
252 |
|
|
;;
|
253 |
|
|
esac
|
254 |
|
|
|
255 |
|
|
ECHO=${lt_ECHO-echo}
|
256 |
|
|
if test "X$1" = X--no-reexec; then
|
257 |
|
|
# Discard the --no-reexec flag, and continue.
|
258 |
|
|
shift
|
259 |
|
|
elif test "X$1" = X--fallback-echo; then
|
260 |
|
|
# Avoid inline document here, it may be left over
|
261 |
|
|
:
|
262 |
|
|
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
|
263 |
|
|
# Yippee, $ECHO works!
|
264 |
|
|
:
|
265 |
|
|
else
|
266 |
|
|
# Restart under the correct shell.
|
267 |
|
|
exec $SHELL "$0" --no-reexec ${1+"$@"}
|
268 |
|
|
fi
|
269 |
|
|
|
270 |
|
|
if test "X$1" = X--fallback-echo; then
|
271 |
|
|
# used as fallback echo
|
272 |
|
|
shift
|
273 |
|
|
cat <<_LT_EOF
|
274 |
|
|
$*
|
275 |
|
|
_LT_EOF
|
276 |
|
|
exit 0
|
277 |
|
|
fi
|
278 |
|
|
|
279 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
280 |
|
|
# if CDPATH is set.
|
281 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
282 |
|
|
|
283 |
|
|
if test -z "$lt_ECHO"; then
|
284 |
|
|
if test "X${echo_test_string+set}" != Xset; then
|
285 |
|
|
# find a string as large as possible, as long as the shell can cope with it
|
286 |
|
|
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
287 |
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
288 |
|
|
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
|
289 |
|
|
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
|
290 |
|
|
then
|
291 |
|
|
break
|
292 |
|
|
fi
|
293 |
|
|
done
|
294 |
|
|
fi
|
295 |
|
|
|
296 |
|
|
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
297 |
|
|
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
298 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
299 |
|
|
:
|
300 |
|
|
else
|
301 |
|
|
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
302 |
|
|
# backslashes. This makes it impossible to quote backslashes using
|
303 |
|
|
# echo "$something" | sed 's/\\/\\\\/g'
|
304 |
|
|
#
|
305 |
|
|
# So, first we look for a working echo in the user's PATH.
|
306 |
|
|
|
307 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
308 |
|
|
for dir in $PATH /usr/ucb; do
|
309 |
|
|
IFS="$lt_save_ifs"
|
310 |
|
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
311 |
|
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
312 |
|
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
313 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
314 |
|
|
ECHO="$dir/echo"
|
315 |
|
|
break
|
316 |
|
|
fi
|
317 |
|
|
done
|
318 |
|
|
IFS="$lt_save_ifs"
|
319 |
|
|
|
320 |
|
|
if test "X$ECHO" = Xecho; then
|
321 |
|
|
# We didn't find a better echo, so look for alternatives.
|
322 |
|
|
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
|
323 |
|
|
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
|
324 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
325 |
|
|
# This shell has a builtin print -r that does the trick.
|
326 |
|
|
ECHO='print -r'
|
327 |
|
|
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
|
328 |
|
|
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
329 |
|
|
# If we have ksh, try running configure again with it.
|
330 |
|
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
331 |
|
|
export ORIGINAL_CONFIG_SHELL
|
332 |
|
|
CONFIG_SHELL=/bin/ksh
|
333 |
|
|
export CONFIG_SHELL
|
334 |
|
|
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
335 |
|
|
else
|
336 |
|
|
# Try using printf.
|
337 |
|
|
ECHO='printf %s\n'
|
338 |
|
|
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
|
339 |
|
|
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
|
340 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
341 |
|
|
# Cool, printf works
|
342 |
|
|
:
|
343 |
|
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
344 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
345 |
|
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
346 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
347 |
|
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
348 |
|
|
export CONFIG_SHELL
|
349 |
|
|
SHELL="$CONFIG_SHELL"
|
350 |
|
|
export SHELL
|
351 |
|
|
ECHO="$CONFIG_SHELL $0 --fallback-echo"
|
352 |
|
|
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
353 |
|
|
test "X$echo_testing_string" = 'X\t' &&
|
354 |
|
|
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
355 |
|
|
test "X$echo_testing_string" = "X$echo_test_string"; then
|
356 |
|
|
ECHO="$CONFIG_SHELL $0 --fallback-echo"
|
357 |
|
|
else
|
358 |
|
|
# maybe with a smaller string...
|
359 |
|
|
prev=:
|
360 |
|
|
|
361 |
|
|
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
362 |
|
|
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
|
363 |
|
|
then
|
364 |
|
|
break
|
365 |
|
|
fi
|
366 |
|
|
prev="$cmd"
|
367 |
|
|
done
|
368 |
|
|
|
369 |
|
|
if test "$prev" != 'sed 50q "$0"'; then
|
370 |
|
|
echo_test_string=`eval $prev`
|
371 |
|
|
export echo_test_string
|
372 |
|
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
373 |
|
|
else
|
374 |
|
|
# Oops. We lost completely, so just stick with echo.
|
375 |
|
|
ECHO=echo
|
376 |
|
|
fi
|
377 |
|
|
fi
|
378 |
|
|
fi
|
379 |
|
|
fi
|
380 |
|
|
fi
|
381 |
|
|
fi
|
382 |
|
|
|
383 |
|
|
# Copy echo and quote the copy suitably for passing to libtool from
|
384 |
|
|
# the Makefile, instead of quoting the original, which is used later.
|
385 |
|
|
lt_ECHO=$ECHO
|
386 |
|
|
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
387 |
|
|
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
388 |
|
|
fi
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
|
|
# Name of the host.
|
394 |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
395 |
|
|
# so uname gets run too.
|
396 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
397 |
|
|
|
398 |
|
|
exec 6>&1
|
399 |
|
|
|
400 |
|
|
#
|
401 |
|
|
# Initializations.
|
402 |
|
|
#
|
403 |
|
|
ac_default_prefix=/usr/local
|
404 |
|
|
ac_config_libobj_dir=.
|
405 |
|
|
cross_compiling=no
|
406 |
|
|
subdirs=
|
407 |
|
|
MFLAGS=
|
408 |
|
|
MAKEFLAGS=
|
409 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
410 |
|
|
|
411 |
|
|
# Maximum number of lines to put in a shell here document.
|
412 |
|
|
# This variable seems obsolete. It should probably be removed, and
|
413 |
|
|
# only ac_max_sed_lines should be used.
|
414 |
|
|
: ${ac_max_here_lines=38}
|
415 |
|
|
|
416 |
|
|
# Identity of this package.
|
417 |
|
|
PACKAGE_NAME='newlib'
|
418 |
|
|
PACKAGE_TARNAME='newlib'
|
419 |
|
|
PACKAGE_VERSION='1.17.0'
|
420 |
|
|
PACKAGE_STRING='newlib 1.17.0'
|
421 |
|
|
PACKAGE_BUGREPORT=''
|
422 |
|
|
|
423 |
|
|
ac_unique_file="linux.c"
|
424 |
|
|
# Factoring default headers for most tests.
|
425 |
|
|
ac_includes_default="\
|
426 |
|
|
#include
|
427 |
|
|
#if HAVE_SYS_TYPES_H
|
428 |
|
|
# include
|
429 |
|
|
#endif
|
430 |
|
|
#if HAVE_SYS_STAT_H
|
431 |
|
|
# include
|
432 |
|
|
#endif
|
433 |
|
|
#if STDC_HEADERS
|
434 |
|
|
# include
|
435 |
|
|
# include
|
436 |
|
|
#else
|
437 |
|
|
# if HAVE_STDLIB_H
|
438 |
|
|
# include
|
439 |
|
|
# endif
|
440 |
|
|
#endif
|
441 |
|
|
#if HAVE_STRING_H
|
442 |
|
|
# if !STDC_HEADERS && HAVE_MEMORY_H
|
443 |
|
|
# include
|
444 |
|
|
# endif
|
445 |
|
|
# include
|
446 |
|
|
#endif
|
447 |
|
|
#if HAVE_STRINGS_H
|
448 |
|
|
# include
|
449 |
|
|
#endif
|
450 |
|
|
#if HAVE_INTTYPES_H
|
451 |
|
|
# include
|
452 |
|
|
#else
|
453 |
|
|
# if HAVE_STDINT_H
|
454 |
|
|
# include
|
455 |
|
|
# endif
|
456 |
|
|
#endif
|
457 |
|
|
#if HAVE_UNISTD_H
|
458 |
|
|
# include
|
459 |
|
|
#endif"
|
460 |
|
|
|
461 |
|
|
ac_subdirs_all="$ac_subdirs_all machine"
|
462 |
|
|
ac_subdirs_all="$ac_subdirs_all linuxthreads"
|
463 |
|
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP subdirs LINUX_MACH_LIB EXTRA_SUBDIRS EXTRA_SUBLIBS LIBOBJS LTLIBOBJS'
|
464 |
|
|
ac_subst_files=''
|
465 |
|
|
|
466 |
|
|
# Initialize some variables set by options.
|
467 |
|
|
ac_init_help=
|
468 |
|
|
ac_init_version=false
|
469 |
|
|
# The variables have the same names as the options, with
|
470 |
|
|
# dashes changed to underlines.
|
471 |
|
|
cache_file=/dev/null
|
472 |
|
|
exec_prefix=NONE
|
473 |
|
|
no_create=
|
474 |
|
|
no_recursion=
|
475 |
|
|
prefix=NONE
|
476 |
|
|
program_prefix=NONE
|
477 |
|
|
program_suffix=NONE
|
478 |
|
|
program_transform_name=s,x,x,
|
479 |
|
|
silent=
|
480 |
|
|
site=
|
481 |
|
|
srcdir=
|
482 |
|
|
verbose=
|
483 |
|
|
x_includes=NONE
|
484 |
|
|
x_libraries=NONE
|
485 |
|
|
|
486 |
|
|
# Installation directory options.
|
487 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
488 |
|
|
# and all the variables that are supposed to be based on exec_prefix
|
489 |
|
|
# by default will actually change.
|
490 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
491 |
|
|
bindir='${exec_prefix}/bin'
|
492 |
|
|
sbindir='${exec_prefix}/sbin'
|
493 |
|
|
libexecdir='${exec_prefix}/libexec'
|
494 |
|
|
datadir='${prefix}/share'
|
495 |
|
|
sysconfdir='${prefix}/etc'
|
496 |
|
|
sharedstatedir='${prefix}/com'
|
497 |
|
|
localstatedir='${prefix}/var'
|
498 |
|
|
libdir='${exec_prefix}/lib'
|
499 |
|
|
includedir='${prefix}/include'
|
500 |
|
|
oldincludedir='/usr/include'
|
501 |
|
|
infodir='${prefix}/info'
|
502 |
|
|
mandir='${prefix}/man'
|
503 |
|
|
|
504 |
|
|
ac_prev=
|
505 |
|
|
for ac_option
|
506 |
|
|
do
|
507 |
|
|
# If the previous option needs an argument, assign it.
|
508 |
|
|
if test -n "$ac_prev"; then
|
509 |
|
|
eval "$ac_prev=\$ac_option"
|
510 |
|
|
ac_prev=
|
511 |
|
|
continue
|
512 |
|
|
fi
|
513 |
|
|
|
514 |
|
|
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
515 |
|
|
|
516 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
517 |
|
|
|
518 |
|
|
case $ac_option in
|
519 |
|
|
|
520 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
521 |
|
|
ac_prev=bindir ;;
|
522 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
523 |
|
|
bindir=$ac_optarg ;;
|
524 |
|
|
|
525 |
|
|
-build | --build | --buil | --bui | --bu)
|
526 |
|
|
ac_prev=build_alias ;;
|
527 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
528 |
|
|
build_alias=$ac_optarg ;;
|
529 |
|
|
|
530 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
531 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
532 |
|
|
ac_prev=cache_file ;;
|
533 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
534 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
535 |
|
|
cache_file=$ac_optarg ;;
|
536 |
|
|
|
537 |
|
|
--config-cache | -C)
|
538 |
|
|
cache_file=config.cache ;;
|
539 |
|
|
|
540 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
541 |
|
|
ac_prev=datadir ;;
|
542 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
543 |
|
|
| --da=*)
|
544 |
|
|
datadir=$ac_optarg ;;
|
545 |
|
|
|
546 |
|
|
-disable-* | --disable-*)
|
547 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
548 |
|
|
# Reject names that are not valid shell variable names.
|
549 |
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
550 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
551 |
|
|
{ (exit 1); exit 1; }; }
|
552 |
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
553 |
|
|
eval "enable_$ac_feature=no" ;;
|
554 |
|
|
|
555 |
|
|
-enable-* | --enable-*)
|
556 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
557 |
|
|
# Reject names that are not valid shell variable names.
|
558 |
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
559 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
560 |
|
|
{ (exit 1); exit 1; }; }
|
561 |
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
562 |
|
|
case $ac_option in
|
563 |
|
|
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
564 |
|
|
*) ac_optarg=yes ;;
|
565 |
|
|
esac
|
566 |
|
|
eval "enable_$ac_feature='$ac_optarg'" ;;
|
567 |
|
|
|
568 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
569 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
570 |
|
|
| --exec | --exe | --ex)
|
571 |
|
|
ac_prev=exec_prefix ;;
|
572 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
573 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
574 |
|
|
| --exec=* | --exe=* | --ex=*)
|
575 |
|
|
exec_prefix=$ac_optarg ;;
|
576 |
|
|
|
577 |
|
|
-gas | --gas | --ga | --g)
|
578 |
|
|
# Obsolete; use --with-gas.
|
579 |
|
|
with_gas=yes ;;
|
580 |
|
|
|
581 |
|
|
-help | --help | --hel | --he | -h)
|
582 |
|
|
ac_init_help=long ;;
|
583 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
584 |
|
|
ac_init_help=recursive ;;
|
585 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
586 |
|
|
ac_init_help=short ;;
|
587 |
|
|
|
588 |
|
|
-host | --host | --hos | --ho)
|
589 |
|
|
ac_prev=host_alias ;;
|
590 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
591 |
|
|
host_alias=$ac_optarg ;;
|
592 |
|
|
|
593 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
594 |
|
|
| --includ | --inclu | --incl | --inc)
|
595 |
|
|
ac_prev=includedir ;;
|
596 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
597 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
598 |
|
|
includedir=$ac_optarg ;;
|
599 |
|
|
|
600 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
601 |
|
|
ac_prev=infodir ;;
|
602 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
603 |
|
|
infodir=$ac_optarg ;;
|
604 |
|
|
|
605 |
|
|
-libdir | --libdir | --libdi | --libd)
|
606 |
|
|
ac_prev=libdir ;;
|
607 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
608 |
|
|
libdir=$ac_optarg ;;
|
609 |
|
|
|
610 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
611 |
|
|
| --libexe | --libex | --libe)
|
612 |
|
|
ac_prev=libexecdir ;;
|
613 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
614 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
615 |
|
|
libexecdir=$ac_optarg ;;
|
616 |
|
|
|
617 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
618 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
619 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
620 |
|
|
ac_prev=localstatedir ;;
|
621 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
622 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
623 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
624 |
|
|
localstatedir=$ac_optarg ;;
|
625 |
|
|
|
626 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
627 |
|
|
ac_prev=mandir ;;
|
628 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
629 |
|
|
mandir=$ac_optarg ;;
|
630 |
|
|
|
631 |
|
|
-nfp | --nfp | --nf)
|
632 |
|
|
# Obsolete; use --without-fp.
|
633 |
|
|
with_fp=no ;;
|
634 |
|
|
|
635 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
636 |
|
|
| --no-cr | --no-c | -n)
|
637 |
|
|
no_create=yes ;;
|
638 |
|
|
|
639 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
640 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
641 |
|
|
no_recursion=yes ;;
|
642 |
|
|
|
643 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
644 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
645 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
646 |
|
|
ac_prev=oldincludedir ;;
|
647 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
648 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
649 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
650 |
|
|
oldincludedir=$ac_optarg ;;
|
651 |
|
|
|
652 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
653 |
|
|
ac_prev=prefix ;;
|
654 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
655 |
|
|
prefix=$ac_optarg ;;
|
656 |
|
|
|
657 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
658 |
|
|
| --program-pre | --program-pr | --program-p)
|
659 |
|
|
ac_prev=program_prefix ;;
|
660 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
661 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
662 |
|
|
program_prefix=$ac_optarg ;;
|
663 |
|
|
|
664 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
665 |
|
|
| --program-suf | --program-su | --program-s)
|
666 |
|
|
ac_prev=program_suffix ;;
|
667 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
668 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
669 |
|
|
program_suffix=$ac_optarg ;;
|
670 |
|
|
|
671 |
|
|
-program-transform-name | --program-transform-name \
|
672 |
|
|
| --program-transform-nam | --program-transform-na \
|
673 |
|
|
| --program-transform-n | --program-transform- \
|
674 |
|
|
| --program-transform | --program-transfor \
|
675 |
|
|
| --program-transfo | --program-transf \
|
676 |
|
|
| --program-trans | --program-tran \
|
677 |
|
|
| --progr-tra | --program-tr | --program-t)
|
678 |
|
|
ac_prev=program_transform_name ;;
|
679 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
680 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
681 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
682 |
|
|
| --program-transform=* | --program-transfor=* \
|
683 |
|
|
| --program-transfo=* | --program-transf=* \
|
684 |
|
|
| --program-trans=* | --program-tran=* \
|
685 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
686 |
|
|
program_transform_name=$ac_optarg ;;
|
687 |
|
|
|
688 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
689 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
690 |
|
|
silent=yes ;;
|
691 |
|
|
|
692 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
693 |
|
|
ac_prev=sbindir ;;
|
694 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
695 |
|
|
| --sbi=* | --sb=*)
|
696 |
|
|
sbindir=$ac_optarg ;;
|
697 |
|
|
|
698 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
699 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
700 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
701 |
|
|
| --sha | --sh)
|
702 |
|
|
ac_prev=sharedstatedir ;;
|
703 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
704 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
705 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
706 |
|
|
| --sha=* | --sh=*)
|
707 |
|
|
sharedstatedir=$ac_optarg ;;
|
708 |
|
|
|
709 |
|
|
-site | --site | --sit)
|
710 |
|
|
ac_prev=site ;;
|
711 |
|
|
-site=* | --site=* | --sit=*)
|
712 |
|
|
site=$ac_optarg ;;
|
713 |
|
|
|
714 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
715 |
|
|
ac_prev=srcdir ;;
|
716 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
717 |
|
|
srcdir=$ac_optarg ;;
|
718 |
|
|
|
719 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
720 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
721 |
|
|
ac_prev=sysconfdir ;;
|
722 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
723 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
724 |
|
|
sysconfdir=$ac_optarg ;;
|
725 |
|
|
|
726 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
727 |
|
|
ac_prev=target_alias ;;
|
728 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
729 |
|
|
target_alias=$ac_optarg ;;
|
730 |
|
|
|
731 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
732 |
|
|
verbose=yes ;;
|
733 |
|
|
|
734 |
|
|
-version | --version | --versio | --versi | --vers | -V)
|
735 |
|
|
ac_init_version=: ;;
|
736 |
|
|
|
737 |
|
|
-with-* | --with-*)
|
738 |
|
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
739 |
|
|
# Reject names that are not valid shell variable names.
|
740 |
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
741 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
742 |
|
|
{ (exit 1); exit 1; }; }
|
743 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
744 |
|
|
case $ac_option in
|
745 |
|
|
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
746 |
|
|
*) ac_optarg=yes ;;
|
747 |
|
|
esac
|
748 |
|
|
eval "with_$ac_package='$ac_optarg'" ;;
|
749 |
|
|
|
750 |
|
|
-without-* | --without-*)
|
751 |
|
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
752 |
|
|
# Reject names that are not valid shell variable names.
|
753 |
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
754 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
755 |
|
|
{ (exit 1); exit 1; }; }
|
756 |
|
|
ac_package=`echo $ac_package | sed 's/-/_/g'`
|
757 |
|
|
eval "with_$ac_package=no" ;;
|
758 |
|
|
|
759 |
|
|
--x)
|
760 |
|
|
# Obsolete; use --with-x.
|
761 |
|
|
with_x=yes ;;
|
762 |
|
|
|
763 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
764 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
765 |
|
|
ac_prev=x_includes ;;
|
766 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
767 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
768 |
|
|
x_includes=$ac_optarg ;;
|
769 |
|
|
|
770 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
771 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
772 |
|
|
ac_prev=x_libraries ;;
|
773 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
774 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
775 |
|
|
x_libraries=$ac_optarg ;;
|
776 |
|
|
|
777 |
|
|
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
778 |
|
|
Try \`$0 --help' for more information." >&2
|
779 |
|
|
{ (exit 1); exit 1; }; }
|
780 |
|
|
;;
|
781 |
|
|
|
782 |
|
|
*=*)
|
783 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
784 |
|
|
# Reject names that are not valid shell variable names.
|
785 |
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
786 |
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
787 |
|
|
{ (exit 1); exit 1; }; }
|
788 |
|
|
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
789 |
|
|
eval "$ac_envvar='$ac_optarg'"
|
790 |
|
|
export $ac_envvar ;;
|
791 |
|
|
|
792 |
|
|
*)
|
793 |
|
|
# FIXME: should be removed in autoconf 3.0.
|
794 |
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
795 |
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
796 |
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
797 |
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
798 |
|
|
;;
|
799 |
|
|
|
800 |
|
|
esac
|
801 |
|
|
done
|
802 |
|
|
|
803 |
|
|
if test -n "$ac_prev"; then
|
804 |
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
805 |
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
806 |
|
|
{ (exit 1); exit 1; }; }
|
807 |
|
|
fi
|
808 |
|
|
|
809 |
|
|
# Be sure to have absolute paths.
|
810 |
|
|
for ac_var in exec_prefix prefix
|
811 |
|
|
do
|
812 |
|
|
eval ac_val=$`echo $ac_var`
|
813 |
|
|
case $ac_val in
|
814 |
|
|
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
815 |
|
|
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
816 |
|
|
{ (exit 1); exit 1; }; };;
|
817 |
|
|
esac
|
818 |
|
|
done
|
819 |
|
|
|
820 |
|
|
# Be sure to have absolute paths.
|
821 |
|
|
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
822 |
|
|
localstatedir libdir includedir oldincludedir infodir mandir
|
823 |
|
|
do
|
824 |
|
|
eval ac_val=$`echo $ac_var`
|
825 |
|
|
case $ac_val in
|
826 |
|
|
[\\/$]* | ?:[\\/]* ) ;;
|
827 |
|
|
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
828 |
|
|
{ (exit 1); exit 1; }; };;
|
829 |
|
|
esac
|
830 |
|
|
done
|
831 |
|
|
|
832 |
|
|
# There might be people who depend on the old broken behavior: `$host'
|
833 |
|
|
# used to hold the argument of --host etc.
|
834 |
|
|
# FIXME: To remove some day.
|
835 |
|
|
build=$build_alias
|
836 |
|
|
host=$host_alias
|
837 |
|
|
target=$target_alias
|
838 |
|
|
|
839 |
|
|
# FIXME: To remove some day.
|
840 |
|
|
if test "x$host_alias" != x; then
|
841 |
|
|
if test "x$build_alias" = x; then
|
842 |
|
|
cross_compiling=maybe
|
843 |
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
844 |
|
|
If a cross compiler is detected then cross compile mode will be used." >&2
|
845 |
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
846 |
|
|
cross_compiling=yes
|
847 |
|
|
fi
|
848 |
|
|
fi
|
849 |
|
|
|
850 |
|
|
ac_tool_prefix=
|
851 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
852 |
|
|
|
853 |
|
|
test "$silent" = yes && exec 6>/dev/null
|
854 |
|
|
|
855 |
|
|
|
856 |
|
|
# Find the source files, if location was not specified.
|
857 |
|
|
if test -z "$srcdir"; then
|
858 |
|
|
ac_srcdir_defaulted=yes
|
859 |
|
|
# Try the directory containing this script, then its parent.
|
860 |
|
|
ac_confdir=`(dirname "$0") 2>/dev/null ||
|
861 |
|
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
862 |
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
863 |
|
|
X"$0" : 'X\(//\)$' \| \
|
864 |
|
|
X"$0" : 'X\(/\)' \| \
|
865 |
|
|
. : '\(.\)' 2>/dev/null ||
|
866 |
|
|
echo X"$0" |
|
867 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
868 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
869 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
870 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
871 |
|
|
s/.*/./; q'`
|
872 |
|
|
srcdir=$ac_confdir
|
873 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
874 |
|
|
srcdir=..
|
875 |
|
|
fi
|
876 |
|
|
else
|
877 |
|
|
ac_srcdir_defaulted=no
|
878 |
|
|
fi
|
879 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
880 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
881 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
882 |
|
|
{ (exit 1); exit 1; }; }
|
883 |
|
|
else
|
884 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
885 |
|
|
{ (exit 1); exit 1; }; }
|
886 |
|
|
fi
|
887 |
|
|
fi
|
888 |
|
|
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
889 |
|
|
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
890 |
|
|
{ (exit 1); exit 1; }; }
|
891 |
|
|
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
892 |
|
|
ac_env_build_alias_set=${build_alias+set}
|
893 |
|
|
ac_env_build_alias_value=$build_alias
|
894 |
|
|
ac_cv_env_build_alias_set=${build_alias+set}
|
895 |
|
|
ac_cv_env_build_alias_value=$build_alias
|
896 |
|
|
ac_env_host_alias_set=${host_alias+set}
|
897 |
|
|
ac_env_host_alias_value=$host_alias
|
898 |
|
|
ac_cv_env_host_alias_set=${host_alias+set}
|
899 |
|
|
ac_cv_env_host_alias_value=$host_alias
|
900 |
|
|
ac_env_target_alias_set=${target_alias+set}
|
901 |
|
|
ac_env_target_alias_value=$target_alias
|
902 |
|
|
ac_cv_env_target_alias_set=${target_alias+set}
|
903 |
|
|
ac_cv_env_target_alias_value=$target_alias
|
904 |
|
|
ac_env_CCAS_set=${CCAS+set}
|
905 |
|
|
ac_env_CCAS_value=$CCAS
|
906 |
|
|
ac_cv_env_CCAS_set=${CCAS+set}
|
907 |
|
|
ac_cv_env_CCAS_value=$CCAS
|
908 |
|
|
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
|
909 |
|
|
ac_env_CCASFLAGS_value=$CCASFLAGS
|
910 |
|
|
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
|
911 |
|
|
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
|
912 |
|
|
ac_env_CC_set=${CC+set}
|
913 |
|
|
ac_env_CC_value=$CC
|
914 |
|
|
ac_cv_env_CC_set=${CC+set}
|
915 |
|
|
ac_cv_env_CC_value=$CC
|
916 |
|
|
ac_env_CFLAGS_set=${CFLAGS+set}
|
917 |
|
|
ac_env_CFLAGS_value=$CFLAGS
|
918 |
|
|
ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
919 |
|
|
ac_cv_env_CFLAGS_value=$CFLAGS
|
920 |
|
|
ac_env_LDFLAGS_set=${LDFLAGS+set}
|
921 |
|
|
ac_env_LDFLAGS_value=$LDFLAGS
|
922 |
|
|
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
923 |
|
|
ac_cv_env_LDFLAGS_value=$LDFLAGS
|
924 |
|
|
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
925 |
|
|
ac_env_CPPFLAGS_value=$CPPFLAGS
|
926 |
|
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
927 |
|
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
928 |
|
|
ac_env_CPP_set=${CPP+set}
|
929 |
|
|
ac_env_CPP_value=$CPP
|
930 |
|
|
ac_cv_env_CPP_set=${CPP+set}
|
931 |
|
|
ac_cv_env_CPP_value=$CPP
|
932 |
|
|
|
933 |
|
|
#
|
934 |
|
|
# Report the --help message.
|
935 |
|
|
#
|
936 |
|
|
if test "$ac_init_help" = "long"; then
|
937 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
938 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
939 |
|
|
cat <<_ACEOF
|
940 |
|
|
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
|
941 |
|
|
|
942 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
943 |
|
|
|
944 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
945 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
946 |
|
|
|
947 |
|
|
Defaults for the options are specified in brackets.
|
948 |
|
|
|
949 |
|
|
Configuration:
|
950 |
|
|
-h, --help display this help and exit
|
951 |
|
|
--help=short display options specific to this package
|
952 |
|
|
--help=recursive display the short help of all the included packages
|
953 |
|
|
-V, --version display version information and exit
|
954 |
|
|
-q, --quiet, --silent do not print \`checking...' messages
|
955 |
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
956 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
957 |
|
|
-n, --no-create do not create output files
|
958 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
959 |
|
|
|
960 |
|
|
_ACEOF
|
961 |
|
|
|
962 |
|
|
cat <<_ACEOF
|
963 |
|
|
Installation directories:
|
964 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
965 |
|
|
[$ac_default_prefix]
|
966 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
967 |
|
|
[PREFIX]
|
968 |
|
|
|
969 |
|
|
By default, \`make install' will install all the files in
|
970 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
971 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
972 |
|
|
for instance \`--prefix=\$HOME'.
|
973 |
|
|
|
974 |
|
|
For better control, use the options below.
|
975 |
|
|
|
976 |
|
|
Fine tuning of the installation directories:
|
977 |
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
978 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
979 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
980 |
|
|
--datadir=DIR read-only architecture-independent data [PREFIX/share]
|
981 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
982 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
983 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
984 |
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
985 |
|
|
--includedir=DIR C header files [PREFIX/include]
|
986 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
987 |
|
|
--infodir=DIR info documentation [PREFIX/info]
|
988 |
|
|
--mandir=DIR man documentation [PREFIX/man]
|
989 |
|
|
_ACEOF
|
990 |
|
|
|
991 |
|
|
cat <<\_ACEOF
|
992 |
|
|
|
993 |
|
|
Program names:
|
994 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
995 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
996 |
|
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
997 |
|
|
|
998 |
|
|
System types:
|
999 |
|
|
--build=BUILD configure for building on BUILD [guessed]
|
1000 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
1001 |
|
|
_ACEOF
|
1002 |
|
|
fi
|
1003 |
|
|
|
1004 |
|
|
if test -n "$ac_init_help"; then
|
1005 |
|
|
case $ac_init_help in
|
1006 |
|
|
short | recursive ) echo "Configuration of newlib 1.17.0:";;
|
1007 |
|
|
esac
|
1008 |
|
|
cat <<\_ACEOF
|
1009 |
|
|
|
1010 |
|
|
Optional Features:
|
1011 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
1012 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
1013 |
|
|
--enable-multilib build many library versions (default)
|
1014 |
|
|
--enable-target-optspace optimize for space
|
1015 |
|
|
--enable-malloc-debugging indicate malloc debugging requested
|
1016 |
|
|
--enable-newlib-multithread enable support for multiple threads
|
1017 |
|
|
--enable-newlib-iconv enable iconv library support
|
1018 |
|
|
--enable-newlib-elix-level supply desired elix library level (1-4)
|
1019 |
|
|
--disable-newlib-io-float disable printf/scanf family float support
|
1020 |
|
|
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
1021 |
|
|
--disable-dependency-tracking speeds up one-time build
|
1022 |
|
|
--enable-dependency-tracking do not reject slow dependency extractors
|
1023 |
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
1024 |
|
|
(and sometimes confusing) to the casual installer
|
1025 |
|
|
--enable-shared[=PKGS]
|
1026 |
|
|
build shared libraries [default=yes]
|
1027 |
|
|
--enable-static[=PKGS]
|
1028 |
|
|
build static libraries [default=yes]
|
1029 |
|
|
--enable-fast-install[=PKGS]
|
1030 |
|
|
optimize for fast installation [default=yes]
|
1031 |
|
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
1032 |
|
|
|
1033 |
|
|
Optional Packages:
|
1034 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
1035 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
1036 |
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
1037 |
|
|
both]
|
1038 |
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
1039 |
|
|
|
1040 |
|
|
Some influential environment variables:
|
1041 |
|
|
CCAS assembler compiler command (defaults to CC)
|
1042 |
|
|
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
|
1043 |
|
|
CC C compiler command
|
1044 |
|
|
CFLAGS C compiler flags
|
1045 |
|
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
1046 |
|
|
nonstandard directory
|
1047 |
|
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have
|
1048 |
|
|
headers in a nonstandard directory
|
1049 |
|
|
CPP C preprocessor
|
1050 |
|
|
|
1051 |
|
|
Use these variables to override the choices made by `configure' or to help
|
1052 |
|
|
it to find libraries and programs with nonstandard names/locations.
|
1053 |
|
|
|
1054 |
|
|
_ACEOF
|
1055 |
|
|
fi
|
1056 |
|
|
|
1057 |
|
|
if test "$ac_init_help" = "recursive"; then
|
1058 |
|
|
# If there are subdirs, report their specific --help.
|
1059 |
|
|
ac_popdir=`pwd`
|
1060 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
1061 |
|
|
test -d $ac_dir || continue
|
1062 |
|
|
ac_builddir=.
|
1063 |
|
|
|
1064 |
|
|
if test "$ac_dir" != .; then
|
1065 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
1066 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
1067 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
1068 |
|
|
else
|
1069 |
|
|
ac_dir_suffix= ac_top_builddir=
|
1070 |
|
|
fi
|
1071 |
|
|
|
1072 |
|
|
case $srcdir in
|
1073 |
|
|
.) # No --srcdir option. We are building in place.
|
1074 |
|
|
ac_srcdir=.
|
1075 |
|
|
if test -z "$ac_top_builddir"; then
|
1076 |
|
|
ac_top_srcdir=.
|
1077 |
|
|
else
|
1078 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
1079 |
|
|
fi ;;
|
1080 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
1081 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
1082 |
|
|
ac_top_srcdir=$srcdir ;;
|
1083 |
|
|
*) # Relative path.
|
1084 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
1085 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
1086 |
|
|
esac
|
1087 |
|
|
|
1088 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
1089 |
|
|
# the directories may not exist.
|
1090 |
|
|
case `pwd` in
|
1091 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
1092 |
|
|
*)
|
1093 |
|
|
case "$ac_dir" in
|
1094 |
|
|
.) ac_abs_builddir=`pwd`;;
|
1095 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
1096 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
1097 |
|
|
esac;;
|
1098 |
|
|
esac
|
1099 |
|
|
case $ac_abs_builddir in
|
1100 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
1101 |
|
|
*)
|
1102 |
|
|
case ${ac_top_builddir}. in
|
1103 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
1104 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
1105 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
1106 |
|
|
esac;;
|
1107 |
|
|
esac
|
1108 |
|
|
case $ac_abs_builddir in
|
1109 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
1110 |
|
|
*)
|
1111 |
|
|
case $ac_srcdir in
|
1112 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
1113 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
1114 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
1115 |
|
|
esac;;
|
1116 |
|
|
esac
|
1117 |
|
|
case $ac_abs_builddir in
|
1118 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
1119 |
|
|
*)
|
1120 |
|
|
case $ac_top_srcdir in
|
1121 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
1122 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
1123 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
1124 |
|
|
esac;;
|
1125 |
|
|
esac
|
1126 |
|
|
|
1127 |
|
|
cd $ac_dir
|
1128 |
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
1129 |
|
|
if test -f $ac_srcdir/configure.gnu; then
|
1130 |
|
|
echo
|
1131 |
|
|
$SHELL $ac_srcdir/configure.gnu --help=recursive
|
1132 |
|
|
elif test -f $ac_srcdir/configure; then
|
1133 |
|
|
echo
|
1134 |
|
|
$SHELL $ac_srcdir/configure --help=recursive
|
1135 |
|
|
elif test -f $ac_srcdir/configure.ac ||
|
1136 |
|
|
test -f $ac_srcdir/configure.in; then
|
1137 |
|
|
echo
|
1138 |
|
|
$ac_configure --help
|
1139 |
|
|
else
|
1140 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
1141 |
|
|
fi
|
1142 |
|
|
cd $ac_popdir
|
1143 |
|
|
done
|
1144 |
|
|
fi
|
1145 |
|
|
|
1146 |
|
|
test -n "$ac_init_help" && exit 0
|
1147 |
|
|
if $ac_init_version; then
|
1148 |
|
|
cat <<\_ACEOF
|
1149 |
|
|
newlib configure 1.17.0
|
1150 |
|
|
generated by GNU Autoconf 2.59
|
1151 |
|
|
|
1152 |
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
1153 |
|
|
This configure script is free software; the Free Software Foundation
|
1154 |
|
|
gives unlimited permission to copy, distribute and modify it.
|
1155 |
|
|
_ACEOF
|
1156 |
|
|
exit 0
|
1157 |
|
|
fi
|
1158 |
|
|
exec 5>config.log
|
1159 |
|
|
cat >&5 <<_ACEOF
|
1160 |
|
|
This file contains any messages produced by compilers while
|
1161 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
1162 |
|
|
|
1163 |
|
|
It was created by newlib $as_me 1.17.0, which was
|
1164 |
|
|
generated by GNU Autoconf 2.59. Invocation command line was
|
1165 |
|
|
|
1166 |
|
|
$ $0 $@
|
1167 |
|
|
|
1168 |
|
|
_ACEOF
|
1169 |
|
|
{
|
1170 |
|
|
cat <<_ASUNAME
|
1171 |
|
|
## --------- ##
|
1172 |
|
|
## Platform. ##
|
1173 |
|
|
## --------- ##
|
1174 |
|
|
|
1175 |
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
1176 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
1177 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
1178 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1179 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1180 |
|
|
|
1181 |
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
1182 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
1183 |
|
|
|
1184 |
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
1185 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
1186 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
1187 |
|
|
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
1188 |
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
1189 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
1190 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
1191 |
|
|
|
1192 |
|
|
_ASUNAME
|
1193 |
|
|
|
1194 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1195 |
|
|
for as_dir in $PATH
|
1196 |
|
|
do
|
1197 |
|
|
IFS=$as_save_IFS
|
1198 |
|
|
test -z "$as_dir" && as_dir=.
|
1199 |
|
|
echo "PATH: $as_dir"
|
1200 |
|
|
done
|
1201 |
|
|
|
1202 |
|
|
} >&5
|
1203 |
|
|
|
1204 |
|
|
cat >&5 <<_ACEOF
|
1205 |
|
|
|
1206 |
|
|
|
1207 |
|
|
## ----------- ##
|
1208 |
|
|
## Core tests. ##
|
1209 |
|
|
## ----------- ##
|
1210 |
|
|
|
1211 |
|
|
_ACEOF
|
1212 |
|
|
|
1213 |
|
|
|
1214 |
|
|
# Keep a trace of the command line.
|
1215 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
1216 |
|
|
# Strip out --silent because we don't want to record it for future runs.
|
1217 |
|
|
# Also quote any args containing shell meta-characters.
|
1218 |
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
1219 |
|
|
ac_configure_args=
|
1220 |
|
|
ac_configure_args0=
|
1221 |
|
|
ac_configure_args1=
|
1222 |
|
|
ac_sep=
|
1223 |
|
|
ac_must_keep_next=false
|
1224 |
|
|
for ac_pass in 1 2
|
1225 |
|
|
do
|
1226 |
|
|
for ac_arg
|
1227 |
|
|
do
|
1228 |
|
|
case $ac_arg in
|
1229 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
1230 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1231 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1232 |
|
|
continue ;;
|
1233 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
1234 |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1235 |
|
|
esac
|
1236 |
|
|
case $ac_pass in
|
1237 |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
1238 |
|
|
2)
|
1239 |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
1240 |
|
|
if test $ac_must_keep_next = true; then
|
1241 |
|
|
ac_must_keep_next=false # Got value, back to normal.
|
1242 |
|
|
else
|
1243 |
|
|
case $ac_arg in
|
1244 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
1245 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
1246 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
1247 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
1248 |
|
|
case "$ac_configure_args0 " in
|
1249 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
1250 |
|
|
esac
|
1251 |
|
|
;;
|
1252 |
|
|
-* ) ac_must_keep_next=true ;;
|
1253 |
|
|
esac
|
1254 |
|
|
fi
|
1255 |
|
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
1256 |
|
|
# Get rid of the leading space.
|
1257 |
|
|
ac_sep=" "
|
1258 |
|
|
;;
|
1259 |
|
|
esac
|
1260 |
|
|
done
|
1261 |
|
|
done
|
1262 |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
1263 |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
1264 |
|
|
|
1265 |
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
1266 |
|
|
# config.log. We remove comments because anyway the quotes in there
|
1267 |
|
|
# would cause problems or look ugly.
|
1268 |
|
|
# WARNING: Be sure not to use single quotes in there, as some shells,
|
1269 |
|
|
# such as our DU 5.0 friend, will then `close' the trap.
|
1270 |
|
|
trap 'exit_status=$?
|
1271 |
|
|
# Save into config.log some information that might help in debugging.
|
1272 |
|
|
{
|
1273 |
|
|
echo
|
1274 |
|
|
|
1275 |
|
|
cat <<\_ASBOX
|
1276 |
|
|
## ---------------- ##
|
1277 |
|
|
## Cache variables. ##
|
1278 |
|
|
## ---------------- ##
|
1279 |
|
|
_ASBOX
|
1280 |
|
|
echo
|
1281 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1282 |
|
|
{
|
1283 |
|
|
(set) 2>&1 |
|
1284 |
|
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
1285 |
|
|
*ac_space=\ *)
|
1286 |
|
|
sed -n \
|
1287 |
|
|
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
1288 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
1289 |
|
|
;;
|
1290 |
|
|
*)
|
1291 |
|
|
sed -n \
|
1292 |
|
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
1293 |
|
|
;;
|
1294 |
|
|
esac;
|
1295 |
|
|
}
|
1296 |
|
|
echo
|
1297 |
|
|
|
1298 |
|
|
cat <<\_ASBOX
|
1299 |
|
|
## ----------------- ##
|
1300 |
|
|
## Output variables. ##
|
1301 |
|
|
## ----------------- ##
|
1302 |
|
|
_ASBOX
|
1303 |
|
|
echo
|
1304 |
|
|
for ac_var in $ac_subst_vars
|
1305 |
|
|
do
|
1306 |
|
|
eval ac_val=$`echo $ac_var`
|
1307 |
|
|
echo "$ac_var='"'"'$ac_val'"'"'"
|
1308 |
|
|
done | sort
|
1309 |
|
|
echo
|
1310 |
|
|
|
1311 |
|
|
if test -n "$ac_subst_files"; then
|
1312 |
|
|
cat <<\_ASBOX
|
1313 |
|
|
## ------------- ##
|
1314 |
|
|
## Output files. ##
|
1315 |
|
|
## ------------- ##
|
1316 |
|
|
_ASBOX
|
1317 |
|
|
echo
|
1318 |
|
|
for ac_var in $ac_subst_files
|
1319 |
|
|
do
|
1320 |
|
|
eval ac_val=$`echo $ac_var`
|
1321 |
|
|
echo "$ac_var='"'"'$ac_val'"'"'"
|
1322 |
|
|
done | sort
|
1323 |
|
|
echo
|
1324 |
|
|
fi
|
1325 |
|
|
|
1326 |
|
|
if test -s confdefs.h; then
|
1327 |
|
|
cat <<\_ASBOX
|
1328 |
|
|
## ----------- ##
|
1329 |
|
|
## confdefs.h. ##
|
1330 |
|
|
## ----------- ##
|
1331 |
|
|
_ASBOX
|
1332 |
|
|
echo
|
1333 |
|
|
sed "/^$/d" confdefs.h | sort
|
1334 |
|
|
echo
|
1335 |
|
|
fi
|
1336 |
|
|
test "$ac_signal" != 0 &&
|
1337 |
|
|
echo "$as_me: caught signal $ac_signal"
|
1338 |
|
|
echo "$as_me: exit $exit_status"
|
1339 |
|
|
} >&5
|
1340 |
|
|
rm -f core *.core &&
|
1341 |
|
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
1342 |
|
|
exit $exit_status
|
1343 |
|
|
' 0
|
1344 |
|
|
for ac_signal in 1 2 13 15; do
|
1345 |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
1346 |
|
|
done
|
1347 |
|
|
ac_signal=0
|
1348 |
|
|
|
1349 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
1350 |
|
|
rm -rf conftest* confdefs.h
|
1351 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
1352 |
|
|
echo >confdefs.h
|
1353 |
|
|
|
1354 |
|
|
# Predefined preprocessor variables.
|
1355 |
|
|
|
1356 |
|
|
cat >>confdefs.h <<_ACEOF
|
1357 |
|
|
#define PACKAGE_NAME "$PACKAGE_NAME"
|
1358 |
|
|
_ACEOF
|
1359 |
|
|
|
1360 |
|
|
|
1361 |
|
|
cat >>confdefs.h <<_ACEOF
|
1362 |
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
1363 |
|
|
_ACEOF
|
1364 |
|
|
|
1365 |
|
|
|
1366 |
|
|
cat >>confdefs.h <<_ACEOF
|
1367 |
|
|
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
1368 |
|
|
_ACEOF
|
1369 |
|
|
|
1370 |
|
|
|
1371 |
|
|
cat >>confdefs.h <<_ACEOF
|
1372 |
|
|
#define PACKAGE_STRING "$PACKAGE_STRING"
|
1373 |
|
|
_ACEOF
|
1374 |
|
|
|
1375 |
|
|
|
1376 |
|
|
cat >>confdefs.h <<_ACEOF
|
1377 |
|
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
1378 |
|
|
_ACEOF
|
1379 |
|
|
|
1380 |
|
|
|
1381 |
|
|
# Let the site file select an alternate cache file if it wants to.
|
1382 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
1383 |
|
|
if test -z "$CONFIG_SITE"; then
|
1384 |
|
|
if test "x$prefix" != xNONE; then
|
1385 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
1386 |
|
|
else
|
1387 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
1388 |
|
|
fi
|
1389 |
|
|
fi
|
1390 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
1391 |
|
|
if test -r "$ac_site_file"; then
|
1392 |
|
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
1393 |
|
|
echo "$as_me: loading site script $ac_site_file" >&6;}
|
1394 |
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
1395 |
|
|
. "$ac_site_file"
|
1396 |
|
|
fi
|
1397 |
|
|
done
|
1398 |
|
|
|
1399 |
|
|
if test -r "$cache_file"; then
|
1400 |
|
|
# Some versions of bash will fail to source /dev/null (special
|
1401 |
|
|
# files actually), so we avoid doing that.
|
1402 |
|
|
if test -f "$cache_file"; then
|
1403 |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
1404 |
|
|
echo "$as_me: loading cache $cache_file" >&6;}
|
1405 |
|
|
case $cache_file in
|
1406 |
|
|
[\\/]* | ?:[\\/]* ) . $cache_file;;
|
1407 |
|
|
*) . ./$cache_file;;
|
1408 |
|
|
esac
|
1409 |
|
|
fi
|
1410 |
|
|
else
|
1411 |
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
1412 |
|
|
echo "$as_me: creating cache $cache_file" >&6;}
|
1413 |
|
|
>$cache_file
|
1414 |
|
|
fi
|
1415 |
|
|
|
1416 |
|
|
# Check that the precious variables saved in the cache have kept the same
|
1417 |
|
|
# value.
|
1418 |
|
|
ac_cache_corrupted=false
|
1419 |
|
|
for ac_var in `(set) 2>&1 |
|
1420 |
|
|
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
1421 |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
1422 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
1423 |
|
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
1424 |
|
|
eval ac_new_val="\$ac_env_${ac_var}_value"
|
1425 |
|
|
case $ac_old_set,$ac_new_set in
|
1426 |
|
|
set,)
|
1427 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
1428 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
1429 |
|
|
ac_cache_corrupted=: ;;
|
1430 |
|
|
,set)
|
1431 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
1432 |
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
1433 |
|
|
ac_cache_corrupted=: ;;
|
1434 |
|
|
,);;
|
1435 |
|
|
*)
|
1436 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
1437 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
1438 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
1439 |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
1440 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;}
|
1441 |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
1442 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;}
|
1443 |
|
|
ac_cache_corrupted=:
|
1444 |
|
|
fi;;
|
1445 |
|
|
esac
|
1446 |
|
|
# Pass precious variables to config.status.
|
1447 |
|
|
if test "$ac_new_set" = set; then
|
1448 |
|
|
case $ac_new_val in
|
1449 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
1450 |
|
|
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1451 |
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
1452 |
|
|
esac
|
1453 |
|
|
case " $ac_configure_args " in
|
1454 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
1455 |
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
1456 |
|
|
esac
|
1457 |
|
|
fi
|
1458 |
|
|
done
|
1459 |
|
|
if $ac_cache_corrupted; then
|
1460 |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
1461 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
1462 |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
1463 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
1464 |
|
|
{ (exit 1); exit 1; }; }
|
1465 |
|
|
fi
|
1466 |
|
|
|
1467 |
|
|
ac_ext=c
|
1468 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1469 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1470 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1471 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1472 |
|
|
|
1473 |
|
|
|
1474 |
|
|
|
1475 |
|
|
|
1476 |
|
|
|
1477 |
|
|
|
1478 |
|
|
|
1479 |
|
|
|
1480 |
|
|
|
1481 |
|
|
|
1482 |
|
|
|
1483 |
|
|
|
1484 |
|
|
|
1485 |
|
|
|
1486 |
|
|
|
1487 |
|
|
|
1488 |
|
|
|
1489 |
|
|
|
1490 |
|
|
|
1491 |
|
|
|
1492 |
|
|
|
1493 |
|
|
|
1494 |
|
|
|
1495 |
|
|
|
1496 |
|
|
|
1497 |
|
|
|
1498 |
|
|
|
1499 |
|
|
|
1500 |
|
|
|
1501 |
|
|
ac_aux_dir=
|
1502 |
|
|
for ac_dir in ../../../.. $srcdir/../../../..; do
|
1503 |
|
|
if test -f $ac_dir/install-sh; then
|
1504 |
|
|
ac_aux_dir=$ac_dir
|
1505 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
1506 |
|
|
break
|
1507 |
|
|
elif test -f $ac_dir/install.sh; then
|
1508 |
|
|
ac_aux_dir=$ac_dir
|
1509 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
1510 |
|
|
break
|
1511 |
|
|
elif test -f $ac_dir/shtool; then
|
1512 |
|
|
ac_aux_dir=$ac_dir
|
1513 |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
1514 |
|
|
break
|
1515 |
|
|
fi
|
1516 |
|
|
done
|
1517 |
|
|
if test -z "$ac_aux_dir"; then
|
1518 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5
|
1519 |
|
|
echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;}
|
1520 |
|
|
{ (exit 1); exit 1; }; }
|
1521 |
|
|
fi
|
1522 |
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
1523 |
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
1524 |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
1525 |
|
|
|
1526 |
|
|
|
1527 |
|
|
|
1528 |
|
|
# Make sure we can run config.sub.
|
1529 |
|
|
$ac_config_sub sun4 >/dev/null 2>&1 ||
|
1530 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
1531 |
|
|
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
1532 |
|
|
{ (exit 1); exit 1; }; }
|
1533 |
|
|
|
1534 |
|
|
echo "$as_me:$LINENO: checking build system type" >&5
|
1535 |
|
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
1536 |
|
|
if test "${ac_cv_build+set}" = set; then
|
1537 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1538 |
|
|
else
|
1539 |
|
|
ac_cv_build_alias=$build_alias
|
1540 |
|
|
test -z "$ac_cv_build_alias" &&
|
1541 |
|
|
ac_cv_build_alias=`$ac_config_guess`
|
1542 |
|
|
test -z "$ac_cv_build_alias" &&
|
1543 |
|
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
1544 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
1545 |
|
|
{ (exit 1); exit 1; }; }
|
1546 |
|
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
1547 |
|
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
1548 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
1549 |
|
|
{ (exit 1); exit 1; }; }
|
1550 |
|
|
|
1551 |
|
|
fi
|
1552 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
1553 |
|
|
echo "${ECHO_T}$ac_cv_build" >&6
|
1554 |
|
|
build=$ac_cv_build
|
1555 |
|
|
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1556 |
|
|
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1557 |
|
|
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1558 |
|
|
|
1559 |
|
|
|
1560 |
|
|
am__api_version="1.9"
|
1561 |
|
|
# Find a good install program. We prefer a C program (faster),
|
1562 |
|
|
# so one script is as good as another. But avoid the broken or
|
1563 |
|
|
# incompatible versions:
|
1564 |
|
|
# SysV /etc/install, /usr/sbin/install
|
1565 |
|
|
# SunOS /usr/etc/install
|
1566 |
|
|
# IRIX /sbin/install
|
1567 |
|
|
# AIX /bin/install
|
1568 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
1569 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
1570 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
1571 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
1572 |
|
|
# OS/2's system install, which has a completely different semantic
|
1573 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
1574 |
|
|
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
1575 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
1576 |
|
|
if test -z "$INSTALL"; then
|
1577 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
1578 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1579 |
|
|
else
|
1580 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1581 |
|
|
for as_dir in $PATH
|
1582 |
|
|
do
|
1583 |
|
|
IFS=$as_save_IFS
|
1584 |
|
|
test -z "$as_dir" && as_dir=.
|
1585 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
1586 |
|
|
case $as_dir/ in
|
1587 |
|
|
./ | .// | /cC/* | \
|
1588 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
1589 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
1590 |
|
|
/usr/ucb/* ) ;;
|
1591 |
|
|
*)
|
1592 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
1593 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
1594 |
|
|
# by default.
|
1595 |
|
|
for ac_prog in ginstall scoinst install; do
|
1596 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1597 |
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
1598 |
|
|
if test $ac_prog = install &&
|
1599 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
1600 |
|
|
# AIX install. It has an incompatible calling convention.
|
1601 |
|
|
:
|
1602 |
|
|
elif test $ac_prog = install &&
|
1603 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
1604 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
1605 |
|
|
:
|
1606 |
|
|
else
|
1607 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
1608 |
|
|
break 3
|
1609 |
|
|
fi
|
1610 |
|
|
fi
|
1611 |
|
|
done
|
1612 |
|
|
done
|
1613 |
|
|
;;
|
1614 |
|
|
esac
|
1615 |
|
|
done
|
1616 |
|
|
|
1617 |
|
|
|
1618 |
|
|
fi
|
1619 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
1620 |
|
|
INSTALL=$ac_cv_path_install
|
1621 |
|
|
else
|
1622 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
1623 |
|
|
# path for INSTALL within a source directory, because that will
|
1624 |
|
|
# break other packages using the cache if that directory is
|
1625 |
|
|
# removed, or if the path is relative.
|
1626 |
|
|
INSTALL=$ac_install_sh
|
1627 |
|
|
fi
|
1628 |
|
|
fi
|
1629 |
|
|
echo "$as_me:$LINENO: result: $INSTALL" >&5
|
1630 |
|
|
echo "${ECHO_T}$INSTALL" >&6
|
1631 |
|
|
|
1632 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
1633 |
|
|
# It thinks the first close brace ends the variable substitution.
|
1634 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
1635 |
|
|
|
1636 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
1637 |
|
|
|
1638 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
1639 |
|
|
|
1640 |
|
|
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
1641 |
|
|
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
1642 |
|
|
# Just in case
|
1643 |
|
|
sleep 1
|
1644 |
|
|
echo timestamp > conftest.file
|
1645 |
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
1646 |
|
|
# arguments. Must try -L first in case configure is actually a
|
1647 |
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
1648 |
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
1649 |
|
|
# directory).
|
1650 |
|
|
if (
|
1651 |
|
|
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
1652 |
|
|
if test "$*" = "X"; then
|
1653 |
|
|
# -L didn't work.
|
1654 |
|
|
set X `ls -t $srcdir/configure conftest.file`
|
1655 |
|
|
fi
|
1656 |
|
|
rm -f conftest.file
|
1657 |
|
|
if test "$*" != "X $srcdir/configure conftest.file" \
|
1658 |
|
|
&& test "$*" != "X conftest.file $srcdir/configure"; then
|
1659 |
|
|
|
1660 |
|
|
# If neither matched, then we have a broken ls. This can happen
|
1661 |
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
1662 |
|
|
# broken ls alias from the environment. This has actually
|
1663 |
|
|
# happened. Such a system could not be considered "sane".
|
1664 |
|
|
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
1665 |
|
|
alias in your environment" >&5
|
1666 |
|
|
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
1667 |
|
|
alias in your environment" >&2;}
|
1668 |
|
|
{ (exit 1); exit 1; }; }
|
1669 |
|
|
fi
|
1670 |
|
|
|
1671 |
|
|
test "$2" = conftest.file
|
1672 |
|
|
)
|
1673 |
|
|
then
|
1674 |
|
|
# Ok.
|
1675 |
|
|
:
|
1676 |
|
|
else
|
1677 |
|
|
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
1678 |
|
|
Check your system clock" >&5
|
1679 |
|
|
echo "$as_me: error: newly created file is older than distributed files!
|
1680 |
|
|
Check your system clock" >&2;}
|
1681 |
|
|
{ (exit 1); exit 1; }; }
|
1682 |
|
|
fi
|
1683 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
1684 |
|
|
echo "${ECHO_T}yes" >&6
|
1685 |
|
|
test "$program_prefix" != NONE &&
|
1686 |
|
|
program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
1687 |
|
|
# Use a double $ so make ignores it.
|
1688 |
|
|
test "$program_suffix" != NONE &&
|
1689 |
|
|
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
1690 |
|
|
# Double any \ or $. echo might interpret backslashes.
|
1691 |
|
|
# By default was `s,x,x', remove it if useless.
|
1692 |
|
|
cat <<\_ACEOF >conftest.sed
|
1693 |
|
|
s/[\\$]/&&/g;s/;s,x,x,$//
|
1694 |
|
|
_ACEOF
|
1695 |
|
|
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
1696 |
|
|
rm conftest.sed
|
1697 |
|
|
|
1698 |
|
|
# expand $ac_aux_dir to an absolute path
|
1699 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
1700 |
|
|
|
1701 |
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
1702 |
|
|
# Use eval to expand $SHELL
|
1703 |
|
|
if eval "$MISSING --run true"; then
|
1704 |
|
|
am_missing_run="$MISSING --run "
|
1705 |
|
|
else
|
1706 |
|
|
am_missing_run=
|
1707 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
1708 |
|
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
1709 |
|
|
fi
|
1710 |
|
|
|
1711 |
|
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
1712 |
|
|
# We used to keeping the `.' as first argument, in order to
|
1713 |
|
|
# allow $(mkdir_p) to be used without argument. As in
|
1714 |
|
|
# $(mkdir_p) $(somedir)
|
1715 |
|
|
# where $(somedir) is conditionally defined. However this is wrong
|
1716 |
|
|
# for two reasons:
|
1717 |
|
|
# 1. if the package is installed by a user who cannot write `.'
|
1718 |
|
|
# make install will fail,
|
1719 |
|
|
# 2. the above comment should most certainly read
|
1720 |
|
|
# $(mkdir_p) $(DESTDIR)$(somedir)
|
1721 |
|
|
# so it does not work when $(somedir) is undefined and
|
1722 |
|
|
# $(DESTDIR) is not.
|
1723 |
|
|
# To support the latter case, we have to write
|
1724 |
|
|
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
1725 |
|
|
# so the `.' trick is pointless.
|
1726 |
|
|
mkdir_p='mkdir -p --'
|
1727 |
|
|
else
|
1728 |
|
|
# On NextStep and OpenStep, the `mkdir' command does not
|
1729 |
|
|
# recognize any option. It will interpret all options as
|
1730 |
|
|
# directories to create, and then abort because `.' already
|
1731 |
|
|
# exists.
|
1732 |
|
|
for d in ./-p ./--version;
|
1733 |
|
|
do
|
1734 |
|
|
test -d $d && rmdir $d
|
1735 |
|
|
done
|
1736 |
|
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
1737 |
|
|
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
1738 |
|
|
mkdir_p='$(mkinstalldirs)'
|
1739 |
|
|
else
|
1740 |
|
|
mkdir_p='$(install_sh) -d'
|
1741 |
|
|
fi
|
1742 |
|
|
fi
|
1743 |
|
|
|
1744 |
|
|
for ac_prog in gawk mawk nawk awk
|
1745 |
|
|
do
|
1746 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
1747 |
|
|
set dummy $ac_prog; ac_word=$2
|
1748 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1749 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1750 |
|
|
if test "${ac_cv_prog_AWK+set}" = set; then
|
1751 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1752 |
|
|
else
|
1753 |
|
|
if test -n "$AWK"; then
|
1754 |
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
1755 |
|
|
else
|
1756 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1757 |
|
|
for as_dir in $PATH
|
1758 |
|
|
do
|
1759 |
|
|
IFS=$as_save_IFS
|
1760 |
|
|
test -z "$as_dir" && as_dir=.
|
1761 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1762 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1763 |
|
|
ac_cv_prog_AWK="$ac_prog"
|
1764 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1765 |
|
|
break 2
|
1766 |
|
|
fi
|
1767 |
|
|
done
|
1768 |
|
|
done
|
1769 |
|
|
|
1770 |
|
|
fi
|
1771 |
|
|
fi
|
1772 |
|
|
AWK=$ac_cv_prog_AWK
|
1773 |
|
|
if test -n "$AWK"; then
|
1774 |
|
|
echo "$as_me:$LINENO: result: $AWK" >&5
|
1775 |
|
|
echo "${ECHO_T}$AWK" >&6
|
1776 |
|
|
else
|
1777 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1778 |
|
|
echo "${ECHO_T}no" >&6
|
1779 |
|
|
fi
|
1780 |
|
|
|
1781 |
|
|
test -n "$AWK" && break
|
1782 |
|
|
done
|
1783 |
|
|
|
1784 |
|
|
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
1785 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
1786 |
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
1787 |
|
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
1788 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1789 |
|
|
else
|
1790 |
|
|
cat >conftest.make <<\_ACEOF
|
1791 |
|
|
all:
|
1792 |
|
|
@echo 'ac_maketemp="$(MAKE)"'
|
1793 |
|
|
_ACEOF
|
1794 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
1795 |
|
|
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
1796 |
|
|
if test -n "$ac_maketemp"; then
|
1797 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
1798 |
|
|
else
|
1799 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
1800 |
|
|
fi
|
1801 |
|
|
rm -f conftest.make
|
1802 |
|
|
fi
|
1803 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
1804 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
1805 |
|
|
echo "${ECHO_T}yes" >&6
|
1806 |
|
|
SET_MAKE=
|
1807 |
|
|
else
|
1808 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1809 |
|
|
echo "${ECHO_T}no" >&6
|
1810 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
1811 |
|
|
fi
|
1812 |
|
|
|
1813 |
|
|
rm -rf .tst 2>/dev/null
|
1814 |
|
|
mkdir .tst 2>/dev/null
|
1815 |
|
|
if test -d .tst; then
|
1816 |
|
|
am__leading_dot=.
|
1817 |
|
|
else
|
1818 |
|
|
am__leading_dot=_
|
1819 |
|
|
fi
|
1820 |
|
|
rmdir .tst 2>/dev/null
|
1821 |
|
|
|
1822 |
|
|
DEPDIR="${am__leading_dot}deps"
|
1823 |
|
|
|
1824 |
|
|
ac_config_commands="$ac_config_commands depfiles"
|
1825 |
|
|
|
1826 |
|
|
|
1827 |
|
|
am_make=${MAKE-make}
|
1828 |
|
|
cat > confinc << 'END'
|
1829 |
|
|
am__doit:
|
1830 |
|
|
@echo done
|
1831 |
|
|
.PHONY: am__doit
|
1832 |
|
|
END
|
1833 |
|
|
# If we don't find an include directive, just comment out the code.
|
1834 |
|
|
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
1835 |
|
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
1836 |
|
|
am__include="#"
|
1837 |
|
|
am__quote=
|
1838 |
|
|
_am_result=none
|
1839 |
|
|
# First try GNU make style include.
|
1840 |
|
|
echo "include confinc" > confmf
|
1841 |
|
|
# We grep out `Entering directory' and `Leaving directory'
|
1842 |
|
|
# messages which can occur if `w' ends up in MAKEFLAGS.
|
1843 |
|
|
# In particular we don't look at `^make:' because GNU make might
|
1844 |
|
|
# be invoked under some other name (usually "gmake"), in which
|
1845 |
|
|
# case it prints its new name instead of `make'.
|
1846 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
1847 |
|
|
am__include=include
|
1848 |
|
|
am__quote=
|
1849 |
|
|
_am_result=GNU
|
1850 |
|
|
fi
|
1851 |
|
|
# Now try BSD make style include.
|
1852 |
|
|
if test "$am__include" = "#"; then
|
1853 |
|
|
echo '.include "confinc"' > confmf
|
1854 |
|
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
1855 |
|
|
am__include=.include
|
1856 |
|
|
am__quote="\""
|
1857 |
|
|
_am_result=BSD
|
1858 |
|
|
fi
|
1859 |
|
|
fi
|
1860 |
|
|
|
1861 |
|
|
|
1862 |
|
|
echo "$as_me:$LINENO: result: $_am_result" >&5
|
1863 |
|
|
echo "${ECHO_T}$_am_result" >&6
|
1864 |
|
|
rm -f confinc confmf
|
1865 |
|
|
|
1866 |
|
|
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
|
1867 |
|
|
if test "${enable_dependency_tracking+set}" = set; then
|
1868 |
|
|
enableval="$enable_dependency_tracking"
|
1869 |
|
|
|
1870 |
|
|
fi;
|
1871 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
1872 |
|
|
am_depcomp="$ac_aux_dir/depcomp"
|
1873 |
|
|
AMDEPBACKSLASH='\'
|
1874 |
|
|
fi
|
1875 |
|
|
|
1876 |
|
|
|
1877 |
|
|
if test "x$enable_dependency_tracking" != xno; then
|
1878 |
|
|
AMDEP_TRUE=
|
1879 |
|
|
AMDEP_FALSE='#'
|
1880 |
|
|
else
|
1881 |
|
|
AMDEP_TRUE='#'
|
1882 |
|
|
AMDEP_FALSE=
|
1883 |
|
|
fi
|
1884 |
|
|
|
1885 |
|
|
|
1886 |
|
|
|
1887 |
|
|
|
1888 |
|
|
# Check whether --enable-multilib or --disable-multilib was given.
|
1889 |
|
|
if test "${enable_multilib+set}" = set; then
|
1890 |
|
|
enableval="$enable_multilib"
|
1891 |
|
|
case "${enableval}" in
|
1892 |
|
|
yes) multilib=yes ;;
|
1893 |
|
|
no) multilib=no ;;
|
1894 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
|
1895 |
|
|
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
|
1896 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1897 |
|
|
esac
|
1898 |
|
|
else
|
1899 |
|
|
multilib=yes
|
1900 |
|
|
fi;
|
1901 |
|
|
# Check whether --enable-target-optspace or --disable-target-optspace was given.
|
1902 |
|
|
if test "${enable_target_optspace+set}" = set; then
|
1903 |
|
|
enableval="$enable_target_optspace"
|
1904 |
|
|
case "${enableval}" in
|
1905 |
|
|
yes) target_optspace=yes ;;
|
1906 |
|
|
no) target_optspace=no ;;
|
1907 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
|
1908 |
|
|
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
|
1909 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1910 |
|
|
esac
|
1911 |
|
|
else
|
1912 |
|
|
target_optspace=
|
1913 |
|
|
fi;
|
1914 |
|
|
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
|
1915 |
|
|
if test "${enable_malloc_debugging+set}" = set; then
|
1916 |
|
|
enableval="$enable_malloc_debugging"
|
1917 |
|
|
case "${enableval}" in
|
1918 |
|
|
yes) malloc_debugging=yes ;;
|
1919 |
|
|
no) malloc_debugging=no ;;
|
1920 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
|
1921 |
|
|
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
|
1922 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1923 |
|
|
esac
|
1924 |
|
|
else
|
1925 |
|
|
malloc_debugging=
|
1926 |
|
|
fi;
|
1927 |
|
|
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
|
1928 |
|
|
if test "${enable_newlib_multithread+set}" = set; then
|
1929 |
|
|
enableval="$enable_newlib_multithread"
|
1930 |
|
|
case "${enableval}" in
|
1931 |
|
|
yes) newlib_multithread=yes ;;
|
1932 |
|
|
no) newlib_multithread=no ;;
|
1933 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
|
1934 |
|
|
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
|
1935 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1936 |
|
|
esac
|
1937 |
|
|
else
|
1938 |
|
|
newlib_multithread=yes
|
1939 |
|
|
fi;
|
1940 |
|
|
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
|
1941 |
|
|
if test "${enable_newlib_iconv+set}" = set; then
|
1942 |
|
|
enableval="$enable_newlib_iconv"
|
1943 |
|
|
if test "${newlib_iconv+set}" != set; then
|
1944 |
|
|
case "${enableval}" in
|
1945 |
|
|
yes) newlib_iconv=yes ;;
|
1946 |
|
|
no) newlib_iconv=no ;;
|
1947 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
|
1948 |
|
|
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
|
1949 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1950 |
|
|
esac
|
1951 |
|
|
fi
|
1952 |
|
|
else
|
1953 |
|
|
newlib_iconv=${newlib_iconv}
|
1954 |
|
|
fi;
|
1955 |
|
|
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
|
1956 |
|
|
if test "${enable_newlib_elix_level+set}" = set; then
|
1957 |
|
|
enableval="$enable_newlib_elix_level"
|
1958 |
|
|
case "${enableval}" in
|
1959 |
|
|
0) newlib_elix_level=0 ;;
|
1960 |
|
|
1) newlib_elix_level=1 ;;
|
1961 |
|
|
2) newlib_elix_level=2 ;;
|
1962 |
|
|
3) newlib_elix_level=3 ;;
|
1963 |
|
|
4) newlib_elix_level=4 ;;
|
1964 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
|
1965 |
|
|
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
|
1966 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1967 |
|
|
esac
|
1968 |
|
|
else
|
1969 |
|
|
newlib_elix_level=0
|
1970 |
|
|
fi;
|
1971 |
|
|
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
|
1972 |
|
|
if test "${enable_newlib_io_float+set}" = set; then
|
1973 |
|
|
enableval="$enable_newlib_io_float"
|
1974 |
|
|
case "${enableval}" in
|
1975 |
|
|
yes) newlib_io_float=yes ;;
|
1976 |
|
|
no) newlib_io_float=no ;;
|
1977 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
|
1978 |
|
|
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
|
1979 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1980 |
|
|
esac
|
1981 |
|
|
else
|
1982 |
|
|
newlib_io_float=yes
|
1983 |
|
|
fi;
|
1984 |
|
|
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
|
1985 |
|
|
if test "${enable_newlib_supplied_syscalls+set}" = set; then
|
1986 |
|
|
enableval="$enable_newlib_supplied_syscalls"
|
1987 |
|
|
case "${enableval}" in
|
1988 |
|
|
yes) newlib_may_supply_syscalls=yes ;;
|
1989 |
|
|
no) newlib_may_supply_syscalls=no ;;
|
1990 |
|
|
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
|
1991 |
|
|
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
|
1992 |
|
|
{ (exit 1); exit 1; }; } ;;
|
1993 |
|
|
esac
|
1994 |
|
|
else
|
1995 |
|
|
newlib_may_supply_syscalls=yes
|
1996 |
|
|
fi;
|
1997 |
|
|
|
1998 |
|
|
|
1999 |
|
|
if test x${newlib_may_supply_syscalls} = xyes; then
|
2000 |
|
|
MAY_SUPPLY_SYSCALLS_TRUE=
|
2001 |
|
|
MAY_SUPPLY_SYSCALLS_FALSE='#'
|
2002 |
|
|
else
|
2003 |
|
|
MAY_SUPPLY_SYSCALLS_TRUE='#'
|
2004 |
|
|
MAY_SUPPLY_SYSCALLS_FALSE=
|
2005 |
|
|
fi
|
2006 |
|
|
|
2007 |
|
|
|
2008 |
|
|
|
2009 |
|
|
test -z "${with_target_subdir}" && with_target_subdir=.
|
2010 |
|
|
|
2011 |
|
|
if test "${srcdir}" = "."; then
|
2012 |
|
|
if test "${with_target_subdir}" != "."; then
|
2013 |
|
|
newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
|
2014 |
|
|
else
|
2015 |
|
|
newlib_basedir="${srcdir}/${with_multisrctop}../../.."
|
2016 |
|
|
fi
|
2017 |
|
|
else
|
2018 |
|
|
newlib_basedir="${srcdir}/../../.."
|
2019 |
|
|
fi
|
2020 |
|
|
|
2021 |
|
|
|
2022 |
|
|
echo "$as_me:$LINENO: checking host system type" >&5
|
2023 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
2024 |
|
|
if test "${ac_cv_host+set}" = set; then
|
2025 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2026 |
|
|
else
|
2027 |
|
|
ac_cv_host_alias=$host_alias
|
2028 |
|
|
test -z "$ac_cv_host_alias" &&
|
2029 |
|
|
ac_cv_host_alias=$ac_cv_build_alias
|
2030 |
|
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
2031 |
|
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
2032 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
2033 |
|
|
{ (exit 1); exit 1; }; }
|
2034 |
|
|
|
2035 |
|
|
fi
|
2036 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
2037 |
|
|
echo "${ECHO_T}$ac_cv_host" >&6
|
2038 |
|
|
host=$ac_cv_host
|
2039 |
|
|
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
2040 |
|
|
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
2041 |
|
|
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
2042 |
|
|
|
2043 |
|
|
|
2044 |
|
|
|
2045 |
|
|
# test to see if srcdir already configured
|
2046 |
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
2047 |
|
|
test -f $srcdir/config.status; then
|
2048 |
|
|
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
2049 |
|
|
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
2050 |
|
|
{ (exit 1); exit 1; }; }
|
2051 |
|
|
fi
|
2052 |
|
|
|
2053 |
|
|
# test whether we have cygpath
|
2054 |
|
|
if test -z "$CYGPATH_W"; then
|
2055 |
|
|
if (cygpath --version) >/dev/null 2>/dev/null; then
|
2056 |
|
|
CYGPATH_W='cygpath -w'
|
2057 |
|
|
else
|
2058 |
|
|
CYGPATH_W=echo
|
2059 |
|
|
fi
|
2060 |
|
|
fi
|
2061 |
|
|
|
2062 |
|
|
|
2063 |
|
|
# Define the identity of the package.
|
2064 |
|
|
PACKAGE='newlib'
|
2065 |
|
|
VERSION='1.17.0'
|
2066 |
|
|
|
2067 |
|
|
|
2068 |
|
|
# Some tools Automake needs.
|
2069 |
|
|
|
2070 |
|
|
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
2071 |
|
|
|
2072 |
|
|
|
2073 |
|
|
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
2074 |
|
|
|
2075 |
|
|
|
2076 |
|
|
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
2077 |
|
|
|
2078 |
|
|
|
2079 |
|
|
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
2080 |
|
|
|
2081 |
|
|
|
2082 |
|
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
2083 |
|
|
|
2084 |
|
|
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
2085 |
|
|
|
2086 |
|
|
# Installed binaries are usually stripped using `strip' when the user
|
2087 |
|
|
# run `make install-strip'. However `strip' might not be the right
|
2088 |
|
|
# tool to use in cross-compilation environments, therefore Automake
|
2089 |
|
|
# will honor the `STRIP' environment variable to overrule this program.
|
2090 |
|
|
if test "$cross_compiling" != no; then
|
2091 |
|
|
if test -n "$ac_tool_prefix"; then
|
2092 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
2093 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
2094 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2095 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2096 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
2097 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2098 |
|
|
else
|
2099 |
|
|
if test -n "$STRIP"; then
|
2100 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
2101 |
|
|
else
|
2102 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2103 |
|
|
for as_dir in $PATH
|
2104 |
|
|
do
|
2105 |
|
|
IFS=$as_save_IFS
|
2106 |
|
|
test -z "$as_dir" && as_dir=.
|
2107 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2108 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2109 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
2110 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2111 |
|
|
break 2
|
2112 |
|
|
fi
|
2113 |
|
|
done
|
2114 |
|
|
done
|
2115 |
|
|
|
2116 |
|
|
fi
|
2117 |
|
|
fi
|
2118 |
|
|
STRIP=$ac_cv_prog_STRIP
|
2119 |
|
|
if test -n "$STRIP"; then
|
2120 |
|
|
echo "$as_me:$LINENO: result: $STRIP" >&5
|
2121 |
|
|
echo "${ECHO_T}$STRIP" >&6
|
2122 |
|
|
else
|
2123 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2124 |
|
|
echo "${ECHO_T}no" >&6
|
2125 |
|
|
fi
|
2126 |
|
|
|
2127 |
|
|
fi
|
2128 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
2129 |
|
|
ac_ct_STRIP=$STRIP
|
2130 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
2131 |
|
|
set dummy strip; ac_word=$2
|
2132 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2133 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2134 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
2135 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2136 |
|
|
else
|
2137 |
|
|
if test -n "$ac_ct_STRIP"; then
|
2138 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
2139 |
|
|
else
|
2140 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2141 |
|
|
for as_dir in $PATH
|
2142 |
|
|
do
|
2143 |
|
|
IFS=$as_save_IFS
|
2144 |
|
|
test -z "$as_dir" && as_dir=.
|
2145 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2146 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2147 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
2148 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2149 |
|
|
break 2
|
2150 |
|
|
fi
|
2151 |
|
|
done
|
2152 |
|
|
done
|
2153 |
|
|
|
2154 |
|
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
2155 |
|
|
fi
|
2156 |
|
|
fi
|
2157 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
2158 |
|
|
if test -n "$ac_ct_STRIP"; then
|
2159 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
2160 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6
|
2161 |
|
|
else
|
2162 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2163 |
|
|
echo "${ECHO_T}no" >&6
|
2164 |
|
|
fi
|
2165 |
|
|
|
2166 |
|
|
STRIP=$ac_ct_STRIP
|
2167 |
|
|
else
|
2168 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
2169 |
|
|
fi
|
2170 |
|
|
|
2171 |
|
|
fi
|
2172 |
|
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
2173 |
|
|
|
2174 |
|
|
# We need awk for the "check" target. The system "awk" is bad on
|
2175 |
|
|
# some platforms.
|
2176 |
|
|
# Always define AMTAR for backward compatibility.
|
2177 |
|
|
|
2178 |
|
|
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
2179 |
|
|
|
2180 |
|
|
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
2181 |
|
|
|
2182 |
|
|
|
2183 |
|
|
|
2184 |
|
|
|
2185 |
|
|
|
2186 |
|
|
|
2187 |
|
|
# FIXME: We temporarily define our own version of AC_PROG_CC. This is
|
2188 |
|
|
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
|
2189 |
|
|
# are probably using a cross compiler, which will not be able to fully
|
2190 |
|
|
# link an executable. This should really be fixed in autoconf
|
2191 |
|
|
# itself.
|
2192 |
|
|
|
2193 |
|
|
|
2194 |
|
|
|
2195 |
|
|
|
2196 |
|
|
|
2197 |
|
|
|
2198 |
|
|
|
2199 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
2200 |
|
|
set dummy gcc; ac_word=$2
|
2201 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2202 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2203 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2204 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2205 |
|
|
else
|
2206 |
|
|
if test -n "$CC"; then
|
2207 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2208 |
|
|
else
|
2209 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2210 |
|
|
for as_dir in $PATH
|
2211 |
|
|
do
|
2212 |
|
|
IFS=$as_save_IFS
|
2213 |
|
|
test -z "$as_dir" && as_dir=.
|
2214 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2215 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2216 |
|
|
ac_cv_prog_CC="gcc"
|
2217 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2218 |
|
|
break 2
|
2219 |
|
|
fi
|
2220 |
|
|
done
|
2221 |
|
|
done
|
2222 |
|
|
|
2223 |
|
|
fi
|
2224 |
|
|
fi
|
2225 |
|
|
CC=$ac_cv_prog_CC
|
2226 |
|
|
if test -n "$CC"; then
|
2227 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
2228 |
|
|
echo "${ECHO_T}$CC" >&6
|
2229 |
|
|
else
|
2230 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2231 |
|
|
echo "${ECHO_T}no" >&6
|
2232 |
|
|
fi
|
2233 |
|
|
|
2234 |
|
|
|
2235 |
|
|
depcc="$CC" am_compiler_list=
|
2236 |
|
|
|
2237 |
|
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
2238 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
2239 |
|
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
2240 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2241 |
|
|
else
|
2242 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
2243 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
2244 |
|
|
# making bogus files that we don't know about and never remove. For
|
2245 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
2246 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
2247 |
|
|
# in D'.
|
2248 |
|
|
mkdir conftest.dir
|
2249 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
2250 |
|
|
# using a relative directory.
|
2251 |
|
|
cp "$am_depcomp" conftest.dir
|
2252 |
|
|
cd conftest.dir
|
2253 |
|
|
# We will build objects and dependencies in a subdirectory because
|
2254 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
2255 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
2256 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
2257 |
|
|
# the current directory while Tru64 will put them in the object
|
2258 |
|
|
# directory.
|
2259 |
|
|
mkdir sub
|
2260 |
|
|
|
2261 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
2262 |
|
|
if test "$am_compiler_list" = ""; then
|
2263 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
2264 |
|
|
fi
|
2265 |
|
|
for depmode in $am_compiler_list; do
|
2266 |
|
|
# Setup a source with many dependencies, because some compilers
|
2267 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
2268 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
2269 |
|
|
#
|
2270 |
|
|
# We need to recreate these files for each test, as the compiler may
|
2271 |
|
|
# overwrite some of them when testing with obscure command lines.
|
2272 |
|
|
# This happens at least with the AIX C compiler.
|
2273 |
|
|
: > sub/conftest.c
|
2274 |
|
|
for i in 1 2 3 4 5 6; do
|
2275 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
2276 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
2277 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
2278 |
|
|
touch sub/conftst$i.h
|
2279 |
|
|
done
|
2280 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
2281 |
|
|
|
2282 |
|
|
case $depmode in
|
2283 |
|
|
nosideeffect)
|
2284 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
2285 |
|
|
# only be used when explicitly requested
|
2286 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
2287 |
|
|
continue
|
2288 |
|
|
else
|
2289 |
|
|
break
|
2290 |
|
|
fi
|
2291 |
|
|
;;
|
2292 |
|
|
none) break ;;
|
2293 |
|
|
esac
|
2294 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
2295 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
2296 |
|
|
# handle `-M -o', and we need to detect this.
|
2297 |
|
|
if depmode=$depmode \
|
2298 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
2299 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
2300 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
2301 |
|
|
>/dev/null 2>conftest.err &&
|
2302 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
2303 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
2304 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
2305 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
2306 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
2307 |
|
|
# that says an option was ignored or not supported.
|
2308 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
2309 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
2310 |
|
|
# The diagnosis changed in icc 8.0:
|
2311 |
|
|
# icc: Command line remark: option '-MP' not supported
|
2312 |
|
|
if (grep 'ignoring option' conftest.err ||
|
2313 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
2314 |
|
|
am_cv_CC_dependencies_compiler_type=$depmode
|
2315 |
|
|
break
|
2316 |
|
|
fi
|
2317 |
|
|
fi
|
2318 |
|
|
done
|
2319 |
|
|
|
2320 |
|
|
cd ..
|
2321 |
|
|
rm -rf conftest.dir
|
2322 |
|
|
else
|
2323 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
2324 |
|
|
fi
|
2325 |
|
|
|
2326 |
|
|
fi
|
2327 |
|
|
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
2328 |
|
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
2329 |
|
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
2330 |
|
|
|
2331 |
|
|
|
2332 |
|
|
|
2333 |
|
|
if
|
2334 |
|
|
test "x$enable_dependency_tracking" != xno \
|
2335 |
|
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
2336 |
|
|
am__fastdepCC_TRUE=
|
2337 |
|
|
am__fastdepCC_FALSE='#'
|
2338 |
|
|
else
|
2339 |
|
|
am__fastdepCC_TRUE='#'
|
2340 |
|
|
am__fastdepCC_FALSE=
|
2341 |
|
|
fi
|
2342 |
|
|
|
2343 |
|
|
|
2344 |
|
|
if test -z "$CC"; then
|
2345 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
2346 |
|
|
set dummy cc; ac_word=$2
|
2347 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2348 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2349 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
2350 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2351 |
|
|
else
|
2352 |
|
|
if test -n "$CC"; then
|
2353 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
2354 |
|
|
else
|
2355 |
|
|
ac_prog_rejected=no
|
2356 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2357 |
|
|
for as_dir in $PATH
|
2358 |
|
|
do
|
2359 |
|
|
IFS=$as_save_IFS
|
2360 |
|
|
test -z "$as_dir" && as_dir=.
|
2361 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2362 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2363 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
2364 |
|
|
ac_prog_rejected=yes
|
2365 |
|
|
continue
|
2366 |
|
|
fi
|
2367 |
|
|
ac_cv_prog_CC="cc"
|
2368 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2369 |
|
|
break 2
|
2370 |
|
|
fi
|
2371 |
|
|
done
|
2372 |
|
|
done
|
2373 |
|
|
|
2374 |
|
|
if test $ac_prog_rejected = yes; then
|
2375 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
2376 |
|
|
set dummy $ac_cv_prog_CC
|
2377 |
|
|
shift
|
2378 |
|
|
if test $# != 0; then
|
2379 |
|
|
# We chose a different compiler from the bogus one.
|
2380 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
2381 |
|
|
# first if we set CC to just the basename; use the full file name.
|
2382 |
|
|
shift
|
2383 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
2384 |
|
|
fi
|
2385 |
|
|
fi
|
2386 |
|
|
fi
|
2387 |
|
|
fi
|
2388 |
|
|
CC=$ac_cv_prog_CC
|
2389 |
|
|
if test -n "$CC"; then
|
2390 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
2391 |
|
|
echo "${ECHO_T}$CC" >&6
|
2392 |
|
|
else
|
2393 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2394 |
|
|
echo "${ECHO_T}no" >&6
|
2395 |
|
|
fi
|
2396 |
|
|
|
2397 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
|
2398 |
|
|
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
|
2399 |
|
|
{ (exit 1); exit 1; }; }
|
2400 |
|
|
fi
|
2401 |
|
|
|
2402 |
|
|
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
|
2403 |
|
|
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
|
2404 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
2405 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2406 |
|
|
else
|
2407 |
|
|
cat > conftest.c <
|
2408 |
|
|
#ifdef __GNUC__
|
2409 |
|
|
yes;
|
2410 |
|
|
#endif
|
2411 |
|
|
EOF
|
2412 |
|
|
if { ac_try='${CC-cc} -E conftest.c'
|
2413 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2414 |
|
|
(eval $ac_try) 2>&5
|
2415 |
|
|
ac_status=$?
|
2416 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2417 |
|
|
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
|
2418 |
|
|
ac_cv_c_compiler_gnu=yes
|
2419 |
|
|
else
|
2420 |
|
|
ac_cv_c_compiler_gnu=no
|
2421 |
|
|
fi
|
2422 |
|
|
fi
|
2423 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
2424 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
2425 |
|
|
|
2426 |
|
|
if test $ac_cv_c_compiler_gnu = yes; then
|
2427 |
|
|
GCC=yes
|
2428 |
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
2429 |
|
|
ac_save_CFLAGS="$CFLAGS"
|
2430 |
|
|
CFLAGS=
|
2431 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
2432 |
|
|
ac_save_CFLAGS=$CFLAGS
|
2433 |
|
|
CFLAGS="-g"
|
2434 |
|
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
2435 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
2436 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
2437 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2438 |
|
|
else
|
2439 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2440 |
|
|
/* confdefs.h. */
|
2441 |
|
|
_ACEOF
|
2442 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2443 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2444 |
|
|
/* end confdefs.h. */
|
2445 |
|
|
|
2446 |
|
|
int
|
2447 |
|
|
main ()
|
2448 |
|
|
{
|
2449 |
|
|
|
2450 |
|
|
;
|
2451 |
|
|
return 0;
|
2452 |
|
|
}
|
2453 |
|
|
_ACEOF
|
2454 |
|
|
rm -f conftest.$ac_objext
|
2455 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2456 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2457 |
|
|
ac_status=$?
|
2458 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2459 |
|
|
rm -f conftest.er1
|
2460 |
|
|
cat conftest.err >&5
|
2461 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2462 |
|
|
(exit $ac_status); } &&
|
2463 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2464 |
|
|
|| test ! -s conftest.err'
|
2465 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2466 |
|
|
(eval $ac_try) 2>&5
|
2467 |
|
|
ac_status=$?
|
2468 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2469 |
|
|
(exit $ac_status); }; } &&
|
2470 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2471 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2472 |
|
|
(eval $ac_try) 2>&5
|
2473 |
|
|
ac_status=$?
|
2474 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2475 |
|
|
(exit $ac_status); }; }; then
|
2476 |
|
|
ac_cv_prog_cc_g=yes
|
2477 |
|
|
else
|
2478 |
|
|
echo "$as_me: failed program was:" >&5
|
2479 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2480 |
|
|
|
2481 |
|
|
ac_cv_prog_cc_g=no
|
2482 |
|
|
fi
|
2483 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2484 |
|
|
fi
|
2485 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
2486 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
2487 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
2488 |
|
|
CFLAGS=$ac_save_CFLAGS
|
2489 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
2490 |
|
|
if test "$GCC" = yes; then
|
2491 |
|
|
CFLAGS="-g -O2"
|
2492 |
|
|
else
|
2493 |
|
|
CFLAGS="-g"
|
2494 |
|
|
fi
|
2495 |
|
|
else
|
2496 |
|
|
if test "$GCC" = yes; then
|
2497 |
|
|
CFLAGS="-O2"
|
2498 |
|
|
else
|
2499 |
|
|
CFLAGS=
|
2500 |
|
|
fi
|
2501 |
|
|
fi
|
2502 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
2503 |
|
|
CFLAGS="$ac_save_CFLAGS"
|
2504 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
2505 |
|
|
CFLAGS="-g -O2"
|
2506 |
|
|
else
|
2507 |
|
|
CFLAGS="-O2"
|
2508 |
|
|
fi
|
2509 |
|
|
else
|
2510 |
|
|
GCC=
|
2511 |
|
|
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
2512 |
|
|
fi
|
2513 |
|
|
|
2514 |
|
|
|
2515 |
|
|
if test -n "$ac_tool_prefix"; then
|
2516 |
|
|
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
2517 |
|
|
set dummy ${ac_tool_prefix}as; ac_word=$2
|
2518 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2519 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2520 |
|
|
if test "${ac_cv_prog_AS+set}" = set; then
|
2521 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2522 |
|
|
else
|
2523 |
|
|
if test -n "$AS"; then
|
2524 |
|
|
ac_cv_prog_AS="$AS" # Let the user override the test.
|
2525 |
|
|
else
|
2526 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2527 |
|
|
for as_dir in $PATH
|
2528 |
|
|
do
|
2529 |
|
|
IFS=$as_save_IFS
|
2530 |
|
|
test -z "$as_dir" && as_dir=.
|
2531 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2532 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2533 |
|
|
ac_cv_prog_AS="${ac_tool_prefix}as"
|
2534 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2535 |
|
|
break 2
|
2536 |
|
|
fi
|
2537 |
|
|
done
|
2538 |
|
|
done
|
2539 |
|
|
|
2540 |
|
|
fi
|
2541 |
|
|
fi
|
2542 |
|
|
AS=$ac_cv_prog_AS
|
2543 |
|
|
if test -n "$AS"; then
|
2544 |
|
|
echo "$as_me:$LINENO: result: $AS" >&5
|
2545 |
|
|
echo "${ECHO_T}$AS" >&6
|
2546 |
|
|
else
|
2547 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2548 |
|
|
echo "${ECHO_T}no" >&6
|
2549 |
|
|
fi
|
2550 |
|
|
|
2551 |
|
|
fi
|
2552 |
|
|
if test -z "$ac_cv_prog_AS"; then
|
2553 |
|
|
ac_ct_AS=$AS
|
2554 |
|
|
# Extract the first word of "as", so it can be a program name with args.
|
2555 |
|
|
set dummy as; ac_word=$2
|
2556 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2557 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2558 |
|
|
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
|
2559 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2560 |
|
|
else
|
2561 |
|
|
if test -n "$ac_ct_AS"; then
|
2562 |
|
|
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
2563 |
|
|
else
|
2564 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2565 |
|
|
for as_dir in $PATH
|
2566 |
|
|
do
|
2567 |
|
|
IFS=$as_save_IFS
|
2568 |
|
|
test -z "$as_dir" && as_dir=.
|
2569 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2570 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2571 |
|
|
ac_cv_prog_ac_ct_AS="as"
|
2572 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2573 |
|
|
break 2
|
2574 |
|
|
fi
|
2575 |
|
|
done
|
2576 |
|
|
done
|
2577 |
|
|
|
2578 |
|
|
fi
|
2579 |
|
|
fi
|
2580 |
|
|
ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
2581 |
|
|
if test -n "$ac_ct_AS"; then
|
2582 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
|
2583 |
|
|
echo "${ECHO_T}$ac_ct_AS" >&6
|
2584 |
|
|
else
|
2585 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2586 |
|
|
echo "${ECHO_T}no" >&6
|
2587 |
|
|
fi
|
2588 |
|
|
|
2589 |
|
|
AS=$ac_ct_AS
|
2590 |
|
|
else
|
2591 |
|
|
AS="$ac_cv_prog_AS"
|
2592 |
|
|
fi
|
2593 |
|
|
|
2594 |
|
|
if test -n "$ac_tool_prefix"; then
|
2595 |
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
2596 |
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
2597 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2598 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2599 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
2600 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2601 |
|
|
else
|
2602 |
|
|
if test -n "$AR"; then
|
2603 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
2604 |
|
|
else
|
2605 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2606 |
|
|
for as_dir in $PATH
|
2607 |
|
|
do
|
2608 |
|
|
IFS=$as_save_IFS
|
2609 |
|
|
test -z "$as_dir" && as_dir=.
|
2610 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2611 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2612 |
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
2613 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2614 |
|
|
break 2
|
2615 |
|
|
fi
|
2616 |
|
|
done
|
2617 |
|
|
done
|
2618 |
|
|
|
2619 |
|
|
fi
|
2620 |
|
|
fi
|
2621 |
|
|
AR=$ac_cv_prog_AR
|
2622 |
|
|
if test -n "$AR"; then
|
2623 |
|
|
echo "$as_me:$LINENO: result: $AR" >&5
|
2624 |
|
|
echo "${ECHO_T}$AR" >&6
|
2625 |
|
|
else
|
2626 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2627 |
|
|
echo "${ECHO_T}no" >&6
|
2628 |
|
|
fi
|
2629 |
|
|
|
2630 |
|
|
fi
|
2631 |
|
|
if test -z "$ac_cv_prog_AR"; then
|
2632 |
|
|
ac_ct_AR=$AR
|
2633 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
2634 |
|
|
set dummy ar; ac_word=$2
|
2635 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2636 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2637 |
|
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
2638 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2639 |
|
|
else
|
2640 |
|
|
if test -n "$ac_ct_AR"; then
|
2641 |
|
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
2642 |
|
|
else
|
2643 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2644 |
|
|
for as_dir in $PATH
|
2645 |
|
|
do
|
2646 |
|
|
IFS=$as_save_IFS
|
2647 |
|
|
test -z "$as_dir" && as_dir=.
|
2648 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2649 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2650 |
|
|
ac_cv_prog_ac_ct_AR="ar"
|
2651 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2652 |
|
|
break 2
|
2653 |
|
|
fi
|
2654 |
|
|
done
|
2655 |
|
|
done
|
2656 |
|
|
|
2657 |
|
|
fi
|
2658 |
|
|
fi
|
2659 |
|
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
2660 |
|
|
if test -n "$ac_ct_AR"; then
|
2661 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
2662 |
|
|
echo "${ECHO_T}$ac_ct_AR" >&6
|
2663 |
|
|
else
|
2664 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2665 |
|
|
echo "${ECHO_T}no" >&6
|
2666 |
|
|
fi
|
2667 |
|
|
|
2668 |
|
|
AR=$ac_ct_AR
|
2669 |
|
|
else
|
2670 |
|
|
AR="$ac_cv_prog_AR"
|
2671 |
|
|
fi
|
2672 |
|
|
|
2673 |
|
|
if test -n "$ac_tool_prefix"; then
|
2674 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
2675 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
2676 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2677 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2678 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
2679 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2680 |
|
|
else
|
2681 |
|
|
if test -n "$RANLIB"; then
|
2682 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
2683 |
|
|
else
|
2684 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2685 |
|
|
for as_dir in $PATH
|
2686 |
|
|
do
|
2687 |
|
|
IFS=$as_save_IFS
|
2688 |
|
|
test -z "$as_dir" && as_dir=.
|
2689 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2690 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2691 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
2692 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2693 |
|
|
break 2
|
2694 |
|
|
fi
|
2695 |
|
|
done
|
2696 |
|
|
done
|
2697 |
|
|
|
2698 |
|
|
fi
|
2699 |
|
|
fi
|
2700 |
|
|
RANLIB=$ac_cv_prog_RANLIB
|
2701 |
|
|
if test -n "$RANLIB"; then
|
2702 |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5
|
2703 |
|
|
echo "${ECHO_T}$RANLIB" >&6
|
2704 |
|
|
else
|
2705 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2706 |
|
|
echo "${ECHO_T}no" >&6
|
2707 |
|
|
fi
|
2708 |
|
|
|
2709 |
|
|
fi
|
2710 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
2711 |
|
|
ac_ct_RANLIB=$RANLIB
|
2712 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
2713 |
|
|
set dummy ranlib; ac_word=$2
|
2714 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2715 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2716 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
2717 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2718 |
|
|
else
|
2719 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
2720 |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
2721 |
|
|
else
|
2722 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2723 |
|
|
for as_dir in $PATH
|
2724 |
|
|
do
|
2725 |
|
|
IFS=$as_save_IFS
|
2726 |
|
|
test -z "$as_dir" && as_dir=.
|
2727 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2728 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2729 |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
2730 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2731 |
|
|
break 2
|
2732 |
|
|
fi
|
2733 |
|
|
done
|
2734 |
|
|
done
|
2735 |
|
|
|
2736 |
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
2737 |
|
|
fi
|
2738 |
|
|
fi
|
2739 |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
2740 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
2741 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
2742 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
2743 |
|
|
else
|
2744 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2745 |
|
|
echo "${ECHO_T}no" >&6
|
2746 |
|
|
fi
|
2747 |
|
|
|
2748 |
|
|
RANLIB=$ac_ct_RANLIB
|
2749 |
|
|
else
|
2750 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
2751 |
|
|
fi
|
2752 |
|
|
|
2753 |
|
|
if test -n "$ac_tool_prefix"; then
|
2754 |
|
|
# Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
|
2755 |
|
|
set dummy ${ac_tool_prefix}readelf; ac_word=$2
|
2756 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2757 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2758 |
|
|
if test "${ac_cv_prog_READELF+set}" = set; then
|
2759 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2760 |
|
|
else
|
2761 |
|
|
if test -n "$READELF"; then
|
2762 |
|
|
ac_cv_prog_READELF="$READELF" # Let the user override the test.
|
2763 |
|
|
else
|
2764 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2765 |
|
|
for as_dir in $PATH
|
2766 |
|
|
do
|
2767 |
|
|
IFS=$as_save_IFS
|
2768 |
|
|
test -z "$as_dir" && as_dir=.
|
2769 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2770 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2771 |
|
|
ac_cv_prog_READELF="${ac_tool_prefix}readelf"
|
2772 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2773 |
|
|
break 2
|
2774 |
|
|
fi
|
2775 |
|
|
done
|
2776 |
|
|
done
|
2777 |
|
|
|
2778 |
|
|
fi
|
2779 |
|
|
fi
|
2780 |
|
|
READELF=$ac_cv_prog_READELF
|
2781 |
|
|
if test -n "$READELF"; then
|
2782 |
|
|
echo "$as_me:$LINENO: result: $READELF" >&5
|
2783 |
|
|
echo "${ECHO_T}$READELF" >&6
|
2784 |
|
|
else
|
2785 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2786 |
|
|
echo "${ECHO_T}no" >&6
|
2787 |
|
|
fi
|
2788 |
|
|
|
2789 |
|
|
fi
|
2790 |
|
|
if test -z "$ac_cv_prog_READELF"; then
|
2791 |
|
|
ac_ct_READELF=$READELF
|
2792 |
|
|
# Extract the first word of "readelf", so it can be a program name with args.
|
2793 |
|
|
set dummy readelf; ac_word=$2
|
2794 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
2795 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
2796 |
|
|
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
|
2797 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2798 |
|
|
else
|
2799 |
|
|
if test -n "$ac_ct_READELF"; then
|
2800 |
|
|
ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
|
2801 |
|
|
else
|
2802 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2803 |
|
|
for as_dir in $PATH
|
2804 |
|
|
do
|
2805 |
|
|
IFS=$as_save_IFS
|
2806 |
|
|
test -z "$as_dir" && as_dir=.
|
2807 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2808 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
2809 |
|
|
ac_cv_prog_ac_ct_READELF="readelf"
|
2810 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
2811 |
|
|
break 2
|
2812 |
|
|
fi
|
2813 |
|
|
done
|
2814 |
|
|
done
|
2815 |
|
|
|
2816 |
|
|
test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
|
2817 |
|
|
fi
|
2818 |
|
|
fi
|
2819 |
|
|
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
|
2820 |
|
|
if test -n "$ac_ct_READELF"; then
|
2821 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
|
2822 |
|
|
echo "${ECHO_T}$ac_ct_READELF" >&6
|
2823 |
|
|
else
|
2824 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
2825 |
|
|
echo "${ECHO_T}no" >&6
|
2826 |
|
|
fi
|
2827 |
|
|
|
2828 |
|
|
READELF=$ac_ct_READELF
|
2829 |
|
|
else
|
2830 |
|
|
READELF="$ac_cv_prog_READELF"
|
2831 |
|
|
fi
|
2832 |
|
|
|
2833 |
|
|
|
2834 |
|
|
# Find a good install program. We prefer a C program (faster),
|
2835 |
|
|
# so one script is as good as another. But avoid the broken or
|
2836 |
|
|
# incompatible versions:
|
2837 |
|
|
# SysV /etc/install, /usr/sbin/install
|
2838 |
|
|
# SunOS /usr/etc/install
|
2839 |
|
|
# IRIX /sbin/install
|
2840 |
|
|
# AIX /bin/install
|
2841 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
2842 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
2843 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
2844 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
2845 |
|
|
# OS/2's system install, which has a completely different semantic
|
2846 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
2847 |
|
|
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
2848 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
2849 |
|
|
if test -z "$INSTALL"; then
|
2850 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
2851 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2852 |
|
|
else
|
2853 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2854 |
|
|
for as_dir in $PATH
|
2855 |
|
|
do
|
2856 |
|
|
IFS=$as_save_IFS
|
2857 |
|
|
test -z "$as_dir" && as_dir=.
|
2858 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
2859 |
|
|
case $as_dir/ in
|
2860 |
|
|
./ | .// | /cC/* | \
|
2861 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
2862 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
2863 |
|
|
/usr/ucb/* ) ;;
|
2864 |
|
|
*)
|
2865 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
2866 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
2867 |
|
|
# by default.
|
2868 |
|
|
for ac_prog in ginstall scoinst install; do
|
2869 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2870 |
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
2871 |
|
|
if test $ac_prog = install &&
|
2872 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
2873 |
|
|
# AIX install. It has an incompatible calling convention.
|
2874 |
|
|
:
|
2875 |
|
|
elif test $ac_prog = install &&
|
2876 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
2877 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
2878 |
|
|
:
|
2879 |
|
|
else
|
2880 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
2881 |
|
|
break 3
|
2882 |
|
|
fi
|
2883 |
|
|
fi
|
2884 |
|
|
done
|
2885 |
|
|
done
|
2886 |
|
|
;;
|
2887 |
|
|
esac
|
2888 |
|
|
done
|
2889 |
|
|
|
2890 |
|
|
|
2891 |
|
|
fi
|
2892 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
2893 |
|
|
INSTALL=$ac_cv_path_install
|
2894 |
|
|
else
|
2895 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
2896 |
|
|
# path for INSTALL within a source directory, because that will
|
2897 |
|
|
# break other packages using the cache if that directory is
|
2898 |
|
|
# removed, or if the path is relative.
|
2899 |
|
|
INSTALL=$ac_install_sh
|
2900 |
|
|
fi
|
2901 |
|
|
fi
|
2902 |
|
|
echo "$as_me:$LINENO: result: $INSTALL" >&5
|
2903 |
|
|
echo "${ECHO_T}$INSTALL" >&6
|
2904 |
|
|
|
2905 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
2906 |
|
|
# It thinks the first close brace ends the variable substitution.
|
2907 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
2908 |
|
|
|
2909 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
2910 |
|
|
|
2911 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
2912 |
|
|
|
2913 |
|
|
|
2914 |
|
|
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
|
2915 |
|
|
ac_given_INSTALL=$INSTALL
|
2916 |
|
|
|
2917 |
|
|
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
2918 |
|
|
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
|
2919 |
|
|
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
2920 |
|
|
if test "${enable_maintainer_mode+set}" = set; then
|
2921 |
|
|
enableval="$enable_maintainer_mode"
|
2922 |
|
|
USE_MAINTAINER_MODE=$enableval
|
2923 |
|
|
else
|
2924 |
|
|
USE_MAINTAINER_MODE=no
|
2925 |
|
|
fi;
|
2926 |
|
|
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
|
2927 |
|
|
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
|
2928 |
|
|
|
2929 |
|
|
|
2930 |
|
|
if test $USE_MAINTAINER_MODE = yes; then
|
2931 |
|
|
MAINTAINER_MODE_TRUE=
|
2932 |
|
|
MAINTAINER_MODE_FALSE='#'
|
2933 |
|
|
else
|
2934 |
|
|
MAINTAINER_MODE_TRUE='#'
|
2935 |
|
|
MAINTAINER_MODE_FALSE=
|
2936 |
|
|
fi
|
2937 |
|
|
|
2938 |
|
|
MAINT=$MAINTAINER_MODE_TRUE
|
2939 |
|
|
|
2940 |
|
|
|
2941 |
|
|
# By default we simply use the C compiler to build assembly code.
|
2942 |
|
|
|
2943 |
|
|
test "${CCAS+set}" = set || CCAS=$CC
|
2944 |
|
|
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
2945 |
|
|
|
2946 |
|
|
|
2947 |
|
|
|
2948 |
|
|
|
2949 |
|
|
# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
|
2950 |
|
|
# at least currently, we never actually build a program, so we never
|
2951 |
|
|
# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
|
2952 |
|
|
# fails, because we are probably configuring with a cross compiler
|
2953 |
|
|
# which can't create executables. So we include AC_EXEEXT to keep
|
2954 |
|
|
# automake happy, but we don't execute it, since we don't care about
|
2955 |
|
|
# the result.
|
2956 |
|
|
if false; then
|
2957 |
|
|
|
2958 |
|
|
dummy_var=1
|
2959 |
|
|
fi
|
2960 |
|
|
|
2961 |
|
|
. ${newlib_basedir}/configure.host
|
2962 |
|
|
|
2963 |
|
|
newlib_cflags="${newlib_cflags} -fno-builtin"
|
2964 |
|
|
|
2965 |
|
|
NEWLIB_CFLAGS=${newlib_cflags}
|
2966 |
|
|
|
2967 |
|
|
|
2968 |
|
|
LDFLAGS=${ldflags}
|
2969 |
|
|
|
2970 |
|
|
|
2971 |
|
|
|
2972 |
|
|
|
2973 |
|
|
if test x${newlib_elix_level} = x0; then
|
2974 |
|
|
ELIX_LEVEL_0_TRUE=
|
2975 |
|
|
ELIX_LEVEL_0_FALSE='#'
|
2976 |
|
|
else
|
2977 |
|
|
ELIX_LEVEL_0_TRUE='#'
|
2978 |
|
|
ELIX_LEVEL_0_FALSE=
|
2979 |
|
|
fi
|
2980 |
|
|
|
2981 |
|
|
|
2982 |
|
|
|
2983 |
|
|
if test x${newlib_elix_level} = x1; then
|
2984 |
|
|
ELIX_LEVEL_1_TRUE=
|
2985 |
|
|
ELIX_LEVEL_1_FALSE='#'
|
2986 |
|
|
else
|
2987 |
|
|
ELIX_LEVEL_1_TRUE='#'
|
2988 |
|
|
ELIX_LEVEL_1_FALSE=
|
2989 |
|
|
fi
|
2990 |
|
|
|
2991 |
|
|
|
2992 |
|
|
|
2993 |
|
|
if test x${newlib_elix_level} = x2; then
|
2994 |
|
|
ELIX_LEVEL_2_TRUE=
|
2995 |
|
|
ELIX_LEVEL_2_FALSE='#'
|
2996 |
|
|
else
|
2997 |
|
|
ELIX_LEVEL_2_TRUE='#'
|
2998 |
|
|
ELIX_LEVEL_2_FALSE=
|
2999 |
|
|
fi
|
3000 |
|
|
|
3001 |
|
|
|
3002 |
|
|
|
3003 |
|
|
if test x${newlib_elix_level} = x3; then
|
3004 |
|
|
ELIX_LEVEL_3_TRUE=
|
3005 |
|
|
ELIX_LEVEL_3_FALSE='#'
|
3006 |
|
|
else
|
3007 |
|
|
ELIX_LEVEL_3_TRUE='#'
|
3008 |
|
|
ELIX_LEVEL_3_FALSE=
|
3009 |
|
|
fi
|
3010 |
|
|
|
3011 |
|
|
|
3012 |
|
|
|
3013 |
|
|
if test x${newlib_elix_level} = x4; then
|
3014 |
|
|
ELIX_LEVEL_4_TRUE=
|
3015 |
|
|
ELIX_LEVEL_4_FALSE='#'
|
3016 |
|
|
else
|
3017 |
|
|
ELIX_LEVEL_4_TRUE='#'
|
3018 |
|
|
ELIX_LEVEL_4_FALSE=
|
3019 |
|
|
fi
|
3020 |
|
|
|
3021 |
|
|
|
3022 |
|
|
|
3023 |
|
|
|
3024 |
|
|
if test x${use_libtool} = xyes; then
|
3025 |
|
|
USE_LIBTOOL_TRUE=
|
3026 |
|
|
USE_LIBTOOL_FALSE='#'
|
3027 |
|
|
else
|
3028 |
|
|
USE_LIBTOOL_TRUE='#'
|
3029 |
|
|
USE_LIBTOOL_FALSE=
|
3030 |
|
|
fi
|
3031 |
|
|
|
3032 |
|
|
|
3033 |
|
|
# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
|
3034 |
|
|
# use oext, which is set in configure.host based on the target platform.
|
3035 |
|
|
OBJEXT=${oext}
|
3036 |
|
|
|
3037 |
|
|
|
3038 |
|
|
|
3039 |
|
|
|
3040 |
|
|
|
3041 |
|
|
|
3042 |
|
|
|
3043 |
|
|
|
3044 |
|
|
|
3045 |
|
|
|
3046 |
|
|
|
3047 |
|
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
3048 |
|
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
|
3049 |
|
|
if test "${lt_cv_path_SED+set}" = set; then
|
3050 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3051 |
|
|
else
|
3052 |
|
|
# Loop through the user's path and test for sed and gsed.
|
3053 |
|
|
# Then use that list of sed's as ones to test for truncation.
|
3054 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3055 |
|
|
for as_dir in $PATH
|
3056 |
|
|
do
|
3057 |
|
|
IFS=$as_save_IFS
|
3058 |
|
|
test -z "$as_dir" && as_dir=.
|
3059 |
|
|
for lt_ac_prog in sed gsed; do
|
3060 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3061 |
|
|
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
3062 |
|
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
3063 |
|
|
fi
|
3064 |
|
|
done
|
3065 |
|
|
done
|
3066 |
|
|
done
|
3067 |
|
|
IFS=$as_save_IFS
|
3068 |
|
|
lt_ac_max=0
|
3069 |
|
|
lt_ac_count=0
|
3070 |
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
3071 |
|
|
# along with /bin/sed that truncates output.
|
3072 |
|
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
3073 |
|
|
test ! -f $lt_ac_sed && continue
|
3074 |
|
|
cat /dev/null > conftest.in
|
3075 |
|
|
lt_ac_count=0
|
3076 |
|
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
3077 |
|
|
# Check for GNU sed and select it if it is found.
|
3078 |
|
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
3079 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3080 |
|
|
break
|
3081 |
|
|
fi
|
3082 |
|
|
while true; do
|
3083 |
|
|
cat conftest.in conftest.in >conftest.tmp
|
3084 |
|
|
mv conftest.tmp conftest.in
|
3085 |
|
|
cp conftest.in conftest.nl
|
3086 |
|
|
echo >>conftest.nl
|
3087 |
|
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
3088 |
|
|
cmp -s conftest.out conftest.nl || break
|
3089 |
|
|
# 10000 chars as input seems more than enough
|
3090 |
|
|
test $lt_ac_count -gt 10 && break
|
3091 |
|
|
lt_ac_count=`expr $lt_ac_count + 1`
|
3092 |
|
|
if test $lt_ac_count -gt $lt_ac_max; then
|
3093 |
|
|
lt_ac_max=$lt_ac_count
|
3094 |
|
|
lt_cv_path_SED=$lt_ac_sed
|
3095 |
|
|
fi
|
3096 |
|
|
done
|
3097 |
|
|
done
|
3098 |
|
|
|
3099 |
|
|
fi
|
3100 |
|
|
|
3101 |
|
|
SED=$lt_cv_path_SED
|
3102 |
|
|
|
3103 |
|
|
echo "$as_me:$LINENO: result: $SED" >&5
|
3104 |
|
|
echo "${ECHO_T}$SED" >&6
|
3105 |
|
|
|
3106 |
|
|
test -z "$SED" && SED=sed
|
3107 |
|
|
Xsed="$SED -e 1s/^X//"
|
3108 |
|
|
|
3109 |
|
|
|
3110 |
|
|
|
3111 |
|
|
|
3112 |
|
|
|
3113 |
|
|
|
3114 |
|
|
|
3115 |
|
|
|
3116 |
|
|
|
3117 |
|
|
|
3118 |
|
|
|
3119 |
|
|
for ac_prog in gawk mawk nawk awk
|
3120 |
|
|
do
|
3121 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
3122 |
|
|
set dummy $ac_prog; ac_word=$2
|
3123 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3124 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3125 |
|
|
if test "${ac_cv_prog_AWK+set}" = set; then
|
3126 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3127 |
|
|
else
|
3128 |
|
|
if test -n "$AWK"; then
|
3129 |
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
3130 |
|
|
else
|
3131 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3132 |
|
|
for as_dir in $PATH
|
3133 |
|
|
do
|
3134 |
|
|
IFS=$as_save_IFS
|
3135 |
|
|
test -z "$as_dir" && as_dir=.
|
3136 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3137 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3138 |
|
|
ac_cv_prog_AWK="$ac_prog"
|
3139 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3140 |
|
|
break 2
|
3141 |
|
|
fi
|
3142 |
|
|
done
|
3143 |
|
|
done
|
3144 |
|
|
|
3145 |
|
|
fi
|
3146 |
|
|
fi
|
3147 |
|
|
AWK=$ac_cv_prog_AWK
|
3148 |
|
|
if test -n "$AWK"; then
|
3149 |
|
|
echo "$as_me:$LINENO: result: $AWK" >&5
|
3150 |
|
|
echo "${ECHO_T}$AWK" >&6
|
3151 |
|
|
else
|
3152 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3153 |
|
|
echo "${ECHO_T}no" >&6
|
3154 |
|
|
fi
|
3155 |
|
|
|
3156 |
|
|
test -n "$AWK" && break
|
3157 |
|
|
done
|
3158 |
|
|
|
3159 |
|
|
if test "${use_libtool}" = "yes"; then
|
3160 |
|
|
enable_win32_dll=yes
|
3161 |
|
|
|
3162 |
|
|
case $host in
|
3163 |
|
|
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
|
3164 |
|
|
if test -n "$ac_tool_prefix"; then
|
3165 |
|
|
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
3166 |
|
|
set dummy ${ac_tool_prefix}as; ac_word=$2
|
3167 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3168 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3169 |
|
|
if test "${ac_cv_prog_AS+set}" = set; then
|
3170 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3171 |
|
|
else
|
3172 |
|
|
if test -n "$AS"; then
|
3173 |
|
|
ac_cv_prog_AS="$AS" # Let the user override the test.
|
3174 |
|
|
else
|
3175 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3176 |
|
|
for as_dir in $PATH
|
3177 |
|
|
do
|
3178 |
|
|
IFS=$as_save_IFS
|
3179 |
|
|
test -z "$as_dir" && as_dir=.
|
3180 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3181 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3182 |
|
|
ac_cv_prog_AS="${ac_tool_prefix}as"
|
3183 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3184 |
|
|
break 2
|
3185 |
|
|
fi
|
3186 |
|
|
done
|
3187 |
|
|
done
|
3188 |
|
|
|
3189 |
|
|
fi
|
3190 |
|
|
fi
|
3191 |
|
|
AS=$ac_cv_prog_AS
|
3192 |
|
|
if test -n "$AS"; then
|
3193 |
|
|
echo "$as_me:$LINENO: result: $AS" >&5
|
3194 |
|
|
echo "${ECHO_T}$AS" >&6
|
3195 |
|
|
else
|
3196 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3197 |
|
|
echo "${ECHO_T}no" >&6
|
3198 |
|
|
fi
|
3199 |
|
|
|
3200 |
|
|
fi
|
3201 |
|
|
if test -z "$ac_cv_prog_AS"; then
|
3202 |
|
|
ac_ct_AS=$AS
|
3203 |
|
|
# Extract the first word of "as", so it can be a program name with args.
|
3204 |
|
|
set dummy as; ac_word=$2
|
3205 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3206 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3207 |
|
|
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
|
3208 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3209 |
|
|
else
|
3210 |
|
|
if test -n "$ac_ct_AS"; then
|
3211 |
|
|
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
3212 |
|
|
else
|
3213 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3214 |
|
|
for as_dir in $PATH
|
3215 |
|
|
do
|
3216 |
|
|
IFS=$as_save_IFS
|
3217 |
|
|
test -z "$as_dir" && as_dir=.
|
3218 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3219 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3220 |
|
|
ac_cv_prog_ac_ct_AS="as"
|
3221 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3222 |
|
|
break 2
|
3223 |
|
|
fi
|
3224 |
|
|
done
|
3225 |
|
|
done
|
3226 |
|
|
|
3227 |
|
|
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
|
3228 |
|
|
fi
|
3229 |
|
|
fi
|
3230 |
|
|
ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
3231 |
|
|
if test -n "$ac_ct_AS"; then
|
3232 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
|
3233 |
|
|
echo "${ECHO_T}$ac_ct_AS" >&6
|
3234 |
|
|
else
|
3235 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3236 |
|
|
echo "${ECHO_T}no" >&6
|
3237 |
|
|
fi
|
3238 |
|
|
|
3239 |
|
|
AS=$ac_ct_AS
|
3240 |
|
|
else
|
3241 |
|
|
AS="$ac_cv_prog_AS"
|
3242 |
|
|
fi
|
3243 |
|
|
|
3244 |
|
|
if test -n "$ac_tool_prefix"; then
|
3245 |
|
|
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
3246 |
|
|
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
3247 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3248 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3249 |
|
|
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
|
3250 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3251 |
|
|
else
|
3252 |
|
|
if test -n "$DLLTOOL"; then
|
3253 |
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
3254 |
|
|
else
|
3255 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3256 |
|
|
for as_dir in $PATH
|
3257 |
|
|
do
|
3258 |
|
|
IFS=$as_save_IFS
|
3259 |
|
|
test -z "$as_dir" && as_dir=.
|
3260 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3261 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3262 |
|
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
3263 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3264 |
|
|
break 2
|
3265 |
|
|
fi
|
3266 |
|
|
done
|
3267 |
|
|
done
|
3268 |
|
|
|
3269 |
|
|
fi
|
3270 |
|
|
fi
|
3271 |
|
|
DLLTOOL=$ac_cv_prog_DLLTOOL
|
3272 |
|
|
if test -n "$DLLTOOL"; then
|
3273 |
|
|
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
|
3274 |
|
|
echo "${ECHO_T}$DLLTOOL" >&6
|
3275 |
|
|
else
|
3276 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3277 |
|
|
echo "${ECHO_T}no" >&6
|
3278 |
|
|
fi
|
3279 |
|
|
|
3280 |
|
|
fi
|
3281 |
|
|
if test -z "$ac_cv_prog_DLLTOOL"; then
|
3282 |
|
|
ac_ct_DLLTOOL=$DLLTOOL
|
3283 |
|
|
# Extract the first word of "dlltool", so it can be a program name with args.
|
3284 |
|
|
set dummy dlltool; ac_word=$2
|
3285 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3286 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3287 |
|
|
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
|
3288 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3289 |
|
|
else
|
3290 |
|
|
if test -n "$ac_ct_DLLTOOL"; then
|
3291 |
|
|
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
3292 |
|
|
else
|
3293 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3294 |
|
|
for as_dir in $PATH
|
3295 |
|
|
do
|
3296 |
|
|
IFS=$as_save_IFS
|
3297 |
|
|
test -z "$as_dir" && as_dir=.
|
3298 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3299 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3300 |
|
|
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
3301 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3302 |
|
|
break 2
|
3303 |
|
|
fi
|
3304 |
|
|
done
|
3305 |
|
|
done
|
3306 |
|
|
|
3307 |
|
|
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
|
3308 |
|
|
fi
|
3309 |
|
|
fi
|
3310 |
|
|
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
3311 |
|
|
if test -n "$ac_ct_DLLTOOL"; then
|
3312 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
|
3313 |
|
|
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
|
3314 |
|
|
else
|
3315 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3316 |
|
|
echo "${ECHO_T}no" >&6
|
3317 |
|
|
fi
|
3318 |
|
|
|
3319 |
|
|
DLLTOOL=$ac_ct_DLLTOOL
|
3320 |
|
|
else
|
3321 |
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
3322 |
|
|
fi
|
3323 |
|
|
|
3324 |
|
|
if test -n "$ac_tool_prefix"; then
|
3325 |
|
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
3326 |
|
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
3327 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3328 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3329 |
|
|
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
|
3330 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3331 |
|
|
else
|
3332 |
|
|
if test -n "$OBJDUMP"; then
|
3333 |
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
3334 |
|
|
else
|
3335 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3336 |
|
|
for as_dir in $PATH
|
3337 |
|
|
do
|
3338 |
|
|
IFS=$as_save_IFS
|
3339 |
|
|
test -z "$as_dir" && as_dir=.
|
3340 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3341 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3342 |
|
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
3343 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3344 |
|
|
break 2
|
3345 |
|
|
fi
|
3346 |
|
|
done
|
3347 |
|
|
done
|
3348 |
|
|
|
3349 |
|
|
fi
|
3350 |
|
|
fi
|
3351 |
|
|
OBJDUMP=$ac_cv_prog_OBJDUMP
|
3352 |
|
|
if test -n "$OBJDUMP"; then
|
3353 |
|
|
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
|
3354 |
|
|
echo "${ECHO_T}$OBJDUMP" >&6
|
3355 |
|
|
else
|
3356 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3357 |
|
|
echo "${ECHO_T}no" >&6
|
3358 |
|
|
fi
|
3359 |
|
|
|
3360 |
|
|
fi
|
3361 |
|
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
3362 |
|
|
ac_ct_OBJDUMP=$OBJDUMP
|
3363 |
|
|
# Extract the first word of "objdump", so it can be a program name with args.
|
3364 |
|
|
set dummy objdump; ac_word=$2
|
3365 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3366 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3367 |
|
|
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
|
3368 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3369 |
|
|
else
|
3370 |
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
3371 |
|
|
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
3372 |
|
|
else
|
3373 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3374 |
|
|
for as_dir in $PATH
|
3375 |
|
|
do
|
3376 |
|
|
IFS=$as_save_IFS
|
3377 |
|
|
test -z "$as_dir" && as_dir=.
|
3378 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3379 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3380 |
|
|
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
3381 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3382 |
|
|
break 2
|
3383 |
|
|
fi
|
3384 |
|
|
done
|
3385 |
|
|
done
|
3386 |
|
|
|
3387 |
|
|
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
|
3388 |
|
|
fi
|
3389 |
|
|
fi
|
3390 |
|
|
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
3391 |
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
3392 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
|
3393 |
|
|
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
|
3394 |
|
|
else
|
3395 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3396 |
|
|
echo "${ECHO_T}no" >&6
|
3397 |
|
|
fi
|
3398 |
|
|
|
3399 |
|
|
OBJDUMP=$ac_ct_OBJDUMP
|
3400 |
|
|
else
|
3401 |
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
3402 |
|
|
fi
|
3403 |
|
|
|
3404 |
|
|
;;
|
3405 |
|
|
esac
|
3406 |
|
|
|
3407 |
|
|
test -z "$AS" && AS=as
|
3408 |
|
|
|
3409 |
|
|
|
3410 |
|
|
|
3411 |
|
|
|
3412 |
|
|
|
3413 |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
3414 |
|
|
|
3415 |
|
|
|
3416 |
|
|
|
3417 |
|
|
|
3418 |
|
|
|
3419 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
3420 |
|
|
|
3421 |
|
|
|
3422 |
|
|
|
3423 |
|
|
|
3424 |
|
|
|
3425 |
|
|
|
3426 |
|
|
|
3427 |
|
|
case `pwd` in
|
3428 |
|
|
*\ * | *\ *)
|
3429 |
|
|
{ echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
3430 |
|
|
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
3431 |
|
|
esac
|
3432 |
|
|
|
3433 |
|
|
|
3434 |
|
|
|
3435 |
|
|
macro_version='2.2.6'
|
3436 |
|
|
macro_revision='1.3012'
|
3437 |
|
|
|
3438 |
|
|
|
3439 |
|
|
|
3440 |
|
|
|
3441 |
|
|
|
3442 |
|
|
|
3443 |
|
|
|
3444 |
|
|
|
3445 |
|
|
|
3446 |
|
|
|
3447 |
|
|
|
3448 |
|
|
|
3449 |
|
|
|
3450 |
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
3451 |
|
|
|
3452 |
|
|
ac_ext=c
|
3453 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
3454 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
3455 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
3456 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
3457 |
|
|
if test -n "$ac_tool_prefix"; then
|
3458 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
3459 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
3460 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3461 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3462 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
3463 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3464 |
|
|
else
|
3465 |
|
|
if test -n "$CC"; then
|
3466 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3467 |
|
|
else
|
3468 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3469 |
|
|
for as_dir in $PATH
|
3470 |
|
|
do
|
3471 |
|
|
IFS=$as_save_IFS
|
3472 |
|
|
test -z "$as_dir" && as_dir=.
|
3473 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3474 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3475 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
3476 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3477 |
|
|
break 2
|
3478 |
|
|
fi
|
3479 |
|
|
done
|
3480 |
|
|
done
|
3481 |
|
|
|
3482 |
|
|
fi
|
3483 |
|
|
fi
|
3484 |
|
|
CC=$ac_cv_prog_CC
|
3485 |
|
|
if test -n "$CC"; then
|
3486 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
3487 |
|
|
echo "${ECHO_T}$CC" >&6
|
3488 |
|
|
else
|
3489 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3490 |
|
|
echo "${ECHO_T}no" >&6
|
3491 |
|
|
fi
|
3492 |
|
|
|
3493 |
|
|
fi
|
3494 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
3495 |
|
|
ac_ct_CC=$CC
|
3496 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
3497 |
|
|
set dummy gcc; ac_word=$2
|
3498 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3499 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3500 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
3501 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3502 |
|
|
else
|
3503 |
|
|
if test -n "$ac_ct_CC"; then
|
3504 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
3505 |
|
|
else
|
3506 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3507 |
|
|
for as_dir in $PATH
|
3508 |
|
|
do
|
3509 |
|
|
IFS=$as_save_IFS
|
3510 |
|
|
test -z "$as_dir" && as_dir=.
|
3511 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3512 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3513 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
3514 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3515 |
|
|
break 2
|
3516 |
|
|
fi
|
3517 |
|
|
done
|
3518 |
|
|
done
|
3519 |
|
|
|
3520 |
|
|
fi
|
3521 |
|
|
fi
|
3522 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
3523 |
|
|
if test -n "$ac_ct_CC"; then
|
3524 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
3525 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
3526 |
|
|
else
|
3527 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3528 |
|
|
echo "${ECHO_T}no" >&6
|
3529 |
|
|
fi
|
3530 |
|
|
|
3531 |
|
|
CC=$ac_ct_CC
|
3532 |
|
|
else
|
3533 |
|
|
CC="$ac_cv_prog_CC"
|
3534 |
|
|
fi
|
3535 |
|
|
|
3536 |
|
|
if test -z "$CC"; then
|
3537 |
|
|
if test -n "$ac_tool_prefix"; then
|
3538 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
3539 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
3540 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3541 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3542 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
3543 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3544 |
|
|
else
|
3545 |
|
|
if test -n "$CC"; then
|
3546 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3547 |
|
|
else
|
3548 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3549 |
|
|
for as_dir in $PATH
|
3550 |
|
|
do
|
3551 |
|
|
IFS=$as_save_IFS
|
3552 |
|
|
test -z "$as_dir" && as_dir=.
|
3553 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3554 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3555 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
3556 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3557 |
|
|
break 2
|
3558 |
|
|
fi
|
3559 |
|
|
done
|
3560 |
|
|
done
|
3561 |
|
|
|
3562 |
|
|
fi
|
3563 |
|
|
fi
|
3564 |
|
|
CC=$ac_cv_prog_CC
|
3565 |
|
|
if test -n "$CC"; then
|
3566 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
3567 |
|
|
echo "${ECHO_T}$CC" >&6
|
3568 |
|
|
else
|
3569 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3570 |
|
|
echo "${ECHO_T}no" >&6
|
3571 |
|
|
fi
|
3572 |
|
|
|
3573 |
|
|
fi
|
3574 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
3575 |
|
|
ac_ct_CC=$CC
|
3576 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
3577 |
|
|
set dummy cc; ac_word=$2
|
3578 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3579 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3580 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
3581 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3582 |
|
|
else
|
3583 |
|
|
if test -n "$ac_ct_CC"; then
|
3584 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
3585 |
|
|
else
|
3586 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3587 |
|
|
for as_dir in $PATH
|
3588 |
|
|
do
|
3589 |
|
|
IFS=$as_save_IFS
|
3590 |
|
|
test -z "$as_dir" && as_dir=.
|
3591 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3592 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3593 |
|
|
ac_cv_prog_ac_ct_CC="cc"
|
3594 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3595 |
|
|
break 2
|
3596 |
|
|
fi
|
3597 |
|
|
done
|
3598 |
|
|
done
|
3599 |
|
|
|
3600 |
|
|
fi
|
3601 |
|
|
fi
|
3602 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
3603 |
|
|
if test -n "$ac_ct_CC"; then
|
3604 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
3605 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
3606 |
|
|
else
|
3607 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3608 |
|
|
echo "${ECHO_T}no" >&6
|
3609 |
|
|
fi
|
3610 |
|
|
|
3611 |
|
|
CC=$ac_ct_CC
|
3612 |
|
|
else
|
3613 |
|
|
CC="$ac_cv_prog_CC"
|
3614 |
|
|
fi
|
3615 |
|
|
|
3616 |
|
|
fi
|
3617 |
|
|
if test -z "$CC"; then
|
3618 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
3619 |
|
|
set dummy cc; ac_word=$2
|
3620 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3621 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3622 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
3623 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3624 |
|
|
else
|
3625 |
|
|
if test -n "$CC"; then
|
3626 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3627 |
|
|
else
|
3628 |
|
|
ac_prog_rejected=no
|
3629 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3630 |
|
|
for as_dir in $PATH
|
3631 |
|
|
do
|
3632 |
|
|
IFS=$as_save_IFS
|
3633 |
|
|
test -z "$as_dir" && as_dir=.
|
3634 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3635 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3636 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
3637 |
|
|
ac_prog_rejected=yes
|
3638 |
|
|
continue
|
3639 |
|
|
fi
|
3640 |
|
|
ac_cv_prog_CC="cc"
|
3641 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3642 |
|
|
break 2
|
3643 |
|
|
fi
|
3644 |
|
|
done
|
3645 |
|
|
done
|
3646 |
|
|
|
3647 |
|
|
if test $ac_prog_rejected = yes; then
|
3648 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
3649 |
|
|
set dummy $ac_cv_prog_CC
|
3650 |
|
|
shift
|
3651 |
|
|
if test $# != 0; then
|
3652 |
|
|
# We chose a different compiler from the bogus one.
|
3653 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
3654 |
|
|
# first if we set CC to just the basename; use the full file name.
|
3655 |
|
|
shift
|
3656 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
3657 |
|
|
fi
|
3658 |
|
|
fi
|
3659 |
|
|
fi
|
3660 |
|
|
fi
|
3661 |
|
|
CC=$ac_cv_prog_CC
|
3662 |
|
|
if test -n "$CC"; then
|
3663 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
3664 |
|
|
echo "${ECHO_T}$CC" >&6
|
3665 |
|
|
else
|
3666 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3667 |
|
|
echo "${ECHO_T}no" >&6
|
3668 |
|
|
fi
|
3669 |
|
|
|
3670 |
|
|
fi
|
3671 |
|
|
if test -z "$CC"; then
|
3672 |
|
|
if test -n "$ac_tool_prefix"; then
|
3673 |
|
|
for ac_prog in cl
|
3674 |
|
|
do
|
3675 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
3676 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
3677 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3678 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3679 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
3680 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3681 |
|
|
else
|
3682 |
|
|
if test -n "$CC"; then
|
3683 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
3684 |
|
|
else
|
3685 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3686 |
|
|
for as_dir in $PATH
|
3687 |
|
|
do
|
3688 |
|
|
IFS=$as_save_IFS
|
3689 |
|
|
test -z "$as_dir" && as_dir=.
|
3690 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3691 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3692 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
3693 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3694 |
|
|
break 2
|
3695 |
|
|
fi
|
3696 |
|
|
done
|
3697 |
|
|
done
|
3698 |
|
|
|
3699 |
|
|
fi
|
3700 |
|
|
fi
|
3701 |
|
|
CC=$ac_cv_prog_CC
|
3702 |
|
|
if test -n "$CC"; then
|
3703 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
3704 |
|
|
echo "${ECHO_T}$CC" >&6
|
3705 |
|
|
else
|
3706 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3707 |
|
|
echo "${ECHO_T}no" >&6
|
3708 |
|
|
fi
|
3709 |
|
|
|
3710 |
|
|
test -n "$CC" && break
|
3711 |
|
|
done
|
3712 |
|
|
fi
|
3713 |
|
|
if test -z "$CC"; then
|
3714 |
|
|
ac_ct_CC=$CC
|
3715 |
|
|
for ac_prog in cl
|
3716 |
|
|
do
|
3717 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
3718 |
|
|
set dummy $ac_prog; ac_word=$2
|
3719 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3720 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3721 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
3722 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3723 |
|
|
else
|
3724 |
|
|
if test -n "$ac_ct_CC"; then
|
3725 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
3726 |
|
|
else
|
3727 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3728 |
|
|
for as_dir in $PATH
|
3729 |
|
|
do
|
3730 |
|
|
IFS=$as_save_IFS
|
3731 |
|
|
test -z "$as_dir" && as_dir=.
|
3732 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3733 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3734 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
3735 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3736 |
|
|
break 2
|
3737 |
|
|
fi
|
3738 |
|
|
done
|
3739 |
|
|
done
|
3740 |
|
|
|
3741 |
|
|
fi
|
3742 |
|
|
fi
|
3743 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
3744 |
|
|
if test -n "$ac_ct_CC"; then
|
3745 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
3746 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
3747 |
|
|
else
|
3748 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3749 |
|
|
echo "${ECHO_T}no" >&6
|
3750 |
|
|
fi
|
3751 |
|
|
|
3752 |
|
|
test -n "$ac_ct_CC" && break
|
3753 |
|
|
done
|
3754 |
|
|
|
3755 |
|
|
CC=$ac_ct_CC
|
3756 |
|
|
fi
|
3757 |
|
|
|
3758 |
|
|
fi
|
3759 |
|
|
|
3760 |
|
|
|
3761 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
3762 |
|
|
See \`config.log' for more details." >&5
|
3763 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
3764 |
|
|
See \`config.log' for more details." >&2;}
|
3765 |
|
|
{ (exit 1); exit 1; }; }
|
3766 |
|
|
|
3767 |
|
|
# Provide some information about the compiler.
|
3768 |
|
|
echo "$as_me:$LINENO:" \
|
3769 |
|
|
"checking for C compiler version" >&5
|
3770 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
3771 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
|
3772 |
|
|
(eval $ac_compiler --version &5) 2>&5
|
3773 |
|
|
ac_status=$?
|
3774 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3775 |
|
|
(exit $ac_status); }
|
3776 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
|
3777 |
|
|
(eval $ac_compiler -v &5) 2>&5
|
3778 |
|
|
ac_status=$?
|
3779 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3780 |
|
|
(exit $ac_status); }
|
3781 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
|
3782 |
|
|
(eval $ac_compiler -V &5) 2>&5
|
3783 |
|
|
ac_status=$?
|
3784 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3785 |
|
|
(exit $ac_status); }
|
3786 |
|
|
|
3787 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3788 |
|
|
/* confdefs.h. */
|
3789 |
|
|
_ACEOF
|
3790 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3791 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3792 |
|
|
/* end confdefs.h. */
|
3793 |
|
|
|
3794 |
|
|
int
|
3795 |
|
|
main ()
|
3796 |
|
|
{
|
3797 |
|
|
|
3798 |
|
|
;
|
3799 |
|
|
return 0;
|
3800 |
|
|
}
|
3801 |
|
|
_ACEOF
|
3802 |
|
|
ac_clean_files_save=$ac_clean_files
|
3803 |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
3804 |
|
|
# Try to create an executable without -o first, disregard a.out.
|
3805 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
3806 |
|
|
# of exeext.
|
3807 |
|
|
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
3808 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
3809 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
3810 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
3811 |
|
|
(eval $ac_link_default) 2>&5
|
3812 |
|
|
ac_status=$?
|
3813 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3814 |
|
|
(exit $ac_status); }; then
|
3815 |
|
|
# Find the output, starting from the most likely. This scheme is
|
3816 |
|
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
3817 |
|
|
# resort.
|
3818 |
|
|
|
3819 |
|
|
# Be careful to initialize this variable, since it used to be cached.
|
3820 |
|
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
3821 |
|
|
ac_cv_exeext=
|
3822 |
|
|
# b.out is created by i960 compilers.
|
3823 |
|
|
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
3824 |
|
|
do
|
3825 |
|
|
test -f "$ac_file" || continue
|
3826 |
|
|
case $ac_file in
|
3827 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
3828 |
|
|
;;
|
3829 |
|
|
conftest.$ac_ext )
|
3830 |
|
|
# This is the source file.
|
3831 |
|
|
;;
|
3832 |
|
|
[ab].out )
|
3833 |
|
|
# We found the default executable, but exeext='' is most
|
3834 |
|
|
# certainly right.
|
3835 |
|
|
break;;
|
3836 |
|
|
*.* )
|
3837 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
3838 |
|
|
# FIXME: I believe we export ac_cv_exeext for Libtool,
|
3839 |
|
|
# but it would be cool to find out if it's true. Does anybody
|
3840 |
|
|
# maintain Libtool? --akim.
|
3841 |
|
|
export ac_cv_exeext
|
3842 |
|
|
break;;
|
3843 |
|
|
* )
|
3844 |
|
|
break;;
|
3845 |
|
|
esac
|
3846 |
|
|
done
|
3847 |
|
|
else
|
3848 |
|
|
echo "$as_me: failed program was:" >&5
|
3849 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3850 |
|
|
|
3851 |
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
3852 |
|
|
See \`config.log' for more details." >&5
|
3853 |
|
|
echo "$as_me: error: C compiler cannot create executables
|
3854 |
|
|
See \`config.log' for more details." >&2;}
|
3855 |
|
|
{ (exit 77); exit 77; }; }
|
3856 |
|
|
fi
|
3857 |
|
|
|
3858 |
|
|
ac_exeext=$ac_cv_exeext
|
3859 |
|
|
echo "$as_me:$LINENO: result: $ac_file" >&5
|
3860 |
|
|
echo "${ECHO_T}$ac_file" >&6
|
3861 |
|
|
|
3862 |
|
|
# Check the compiler produces executables we can run. If not, either
|
3863 |
|
|
# the compiler is broken, or we cross compile.
|
3864 |
|
|
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
3865 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
3866 |
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
3867 |
|
|
# If not cross compiling, check that we can run a simple program.
|
3868 |
|
|
if test "$cross_compiling" != yes; then
|
3869 |
|
|
if { ac_try='./$ac_file'
|
3870 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3871 |
|
|
(eval $ac_try) 2>&5
|
3872 |
|
|
ac_status=$?
|
3873 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3874 |
|
|
(exit $ac_status); }; }; then
|
3875 |
|
|
cross_compiling=no
|
3876 |
|
|
else
|
3877 |
|
|
if test "$cross_compiling" = maybe; then
|
3878 |
|
|
cross_compiling=yes
|
3879 |
|
|
else
|
3880 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
3881 |
|
|
If you meant to cross compile, use \`--host'.
|
3882 |
|
|
See \`config.log' for more details." >&5
|
3883 |
|
|
echo "$as_me: error: cannot run C compiled programs.
|
3884 |
|
|
If you meant to cross compile, use \`--host'.
|
3885 |
|
|
See \`config.log' for more details." >&2;}
|
3886 |
|
|
{ (exit 1); exit 1; }; }
|
3887 |
|
|
fi
|
3888 |
|
|
fi
|
3889 |
|
|
fi
|
3890 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
3891 |
|
|
echo "${ECHO_T}yes" >&6
|
3892 |
|
|
|
3893 |
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
3894 |
|
|
ac_clean_files=$ac_clean_files_save
|
3895 |
|
|
# Check the compiler produces executables we can run. If not, either
|
3896 |
|
|
# the compiler is broken, or we cross compile.
|
3897 |
|
|
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
3898 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
3899 |
|
|
echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
3900 |
|
|
echo "${ECHO_T}$cross_compiling" >&6
|
3901 |
|
|
|
3902 |
|
|
echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
3903 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
3904 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
3905 |
|
|
(eval $ac_link) 2>&5
|
3906 |
|
|
ac_status=$?
|
3907 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3908 |
|
|
(exit $ac_status); }; then
|
3909 |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
3910 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
3911 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
3912 |
|
|
# `rm'.
|
3913 |
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
3914 |
|
|
test -f "$ac_file" || continue
|
3915 |
|
|
case $ac_file in
|
3916 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
3917 |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
3918 |
|
|
export ac_cv_exeext
|
3919 |
|
|
break;;
|
3920 |
|
|
* ) break;;
|
3921 |
|
|
esac
|
3922 |
|
|
done
|
3923 |
|
|
else
|
3924 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
3925 |
|
|
See \`config.log' for more details." >&5
|
3926 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
3927 |
|
|
See \`config.log' for more details." >&2;}
|
3928 |
|
|
{ (exit 1); exit 1; }; }
|
3929 |
|
|
fi
|
3930 |
|
|
|
3931 |
|
|
rm -f conftest$ac_cv_exeext
|
3932 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
3933 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6
|
3934 |
|
|
|
3935 |
|
|
rm -f conftest.$ac_ext
|
3936 |
|
|
EXEEXT=$ac_cv_exeext
|
3937 |
|
|
ac_exeext=$EXEEXT
|
3938 |
|
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
3939 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
3940 |
|
|
if test "${ac_cv_objext+set}" = set; then
|
3941 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3942 |
|
|
else
|
3943 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3944 |
|
|
/* confdefs.h. */
|
3945 |
|
|
_ACEOF
|
3946 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3947 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3948 |
|
|
/* end confdefs.h. */
|
3949 |
|
|
|
3950 |
|
|
int
|
3951 |
|
|
main ()
|
3952 |
|
|
{
|
3953 |
|
|
|
3954 |
|
|
;
|
3955 |
|
|
return 0;
|
3956 |
|
|
}
|
3957 |
|
|
_ACEOF
|
3958 |
|
|
rm -f conftest.o conftest.obj
|
3959 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3960 |
|
|
(eval $ac_compile) 2>&5
|
3961 |
|
|
ac_status=$?
|
3962 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3963 |
|
|
(exit $ac_status); }; then
|
3964 |
|
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
3965 |
|
|
case $ac_file in
|
3966 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
3967 |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
3968 |
|
|
break;;
|
3969 |
|
|
esac
|
3970 |
|
|
done
|
3971 |
|
|
else
|
3972 |
|
|
echo "$as_me: failed program was:" >&5
|
3973 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3974 |
|
|
|
3975 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
3976 |
|
|
See \`config.log' for more details." >&5
|
3977 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
3978 |
|
|
See \`config.log' for more details." >&2;}
|
3979 |
|
|
{ (exit 1); exit 1; }; }
|
3980 |
|
|
fi
|
3981 |
|
|
|
3982 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
3983 |
|
|
fi
|
3984 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
3985 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6
|
3986 |
|
|
OBJEXT=$ac_cv_objext
|
3987 |
|
|
ac_objext=$OBJEXT
|
3988 |
|
|
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
3989 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
3990 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
3991 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3992 |
|
|
else
|
3993 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3994 |
|
|
/* confdefs.h. */
|
3995 |
|
|
_ACEOF
|
3996 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3997 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3998 |
|
|
/* end confdefs.h. */
|
3999 |
|
|
|
4000 |
|
|
int
|
4001 |
|
|
main ()
|
4002 |
|
|
{
|
4003 |
|
|
#ifndef __GNUC__
|
4004 |
|
|
choke me
|
4005 |
|
|
#endif
|
4006 |
|
|
|
4007 |
|
|
;
|
4008 |
|
|
return 0;
|
4009 |
|
|
}
|
4010 |
|
|
_ACEOF
|
4011 |
|
|
rm -f conftest.$ac_objext
|
4012 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4013 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4014 |
|
|
ac_status=$?
|
4015 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4016 |
|
|
rm -f conftest.er1
|
4017 |
|
|
cat conftest.err >&5
|
4018 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4019 |
|
|
(exit $ac_status); } &&
|
4020 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4021 |
|
|
|| test ! -s conftest.err'
|
4022 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4023 |
|
|
(eval $ac_try) 2>&5
|
4024 |
|
|
ac_status=$?
|
4025 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4026 |
|
|
(exit $ac_status); }; } &&
|
4027 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4028 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4029 |
|
|
(eval $ac_try) 2>&5
|
4030 |
|
|
ac_status=$?
|
4031 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4032 |
|
|
(exit $ac_status); }; }; then
|
4033 |
|
|
ac_compiler_gnu=yes
|
4034 |
|
|
else
|
4035 |
|
|
echo "$as_me: failed program was:" >&5
|
4036 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4037 |
|
|
|
4038 |
|
|
ac_compiler_gnu=no
|
4039 |
|
|
fi
|
4040 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4041 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
4042 |
|
|
|
4043 |
|
|
fi
|
4044 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
4045 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
4046 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
4047 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
4048 |
|
|
ac_save_CFLAGS=$CFLAGS
|
4049 |
|
|
CFLAGS="-g"
|
4050 |
|
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
4051 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
4052 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
4053 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4054 |
|
|
else
|
4055 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4056 |
|
|
/* confdefs.h. */
|
4057 |
|
|
_ACEOF
|
4058 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4059 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4060 |
|
|
/* end confdefs.h. */
|
4061 |
|
|
|
4062 |
|
|
int
|
4063 |
|
|
main ()
|
4064 |
|
|
{
|
4065 |
|
|
|
4066 |
|
|
;
|
4067 |
|
|
return 0;
|
4068 |
|
|
}
|
4069 |
|
|
_ACEOF
|
4070 |
|
|
rm -f conftest.$ac_objext
|
4071 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4072 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4073 |
|
|
ac_status=$?
|
4074 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4075 |
|
|
rm -f conftest.er1
|
4076 |
|
|
cat conftest.err >&5
|
4077 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4078 |
|
|
(exit $ac_status); } &&
|
4079 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4080 |
|
|
|| test ! -s conftest.err'
|
4081 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4082 |
|
|
(eval $ac_try) 2>&5
|
4083 |
|
|
ac_status=$?
|
4084 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4085 |
|
|
(exit $ac_status); }; } &&
|
4086 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4087 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4088 |
|
|
(eval $ac_try) 2>&5
|
4089 |
|
|
ac_status=$?
|
4090 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4091 |
|
|
(exit $ac_status); }; }; then
|
4092 |
|
|
ac_cv_prog_cc_g=yes
|
4093 |
|
|
else
|
4094 |
|
|
echo "$as_me: failed program was:" >&5
|
4095 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4096 |
|
|
|
4097 |
|
|
ac_cv_prog_cc_g=no
|
4098 |
|
|
fi
|
4099 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4100 |
|
|
fi
|
4101 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
4102 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
4103 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
4104 |
|
|
CFLAGS=$ac_save_CFLAGS
|
4105 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
4106 |
|
|
if test "$GCC" = yes; then
|
4107 |
|
|
CFLAGS="-g -O2"
|
4108 |
|
|
else
|
4109 |
|
|
CFLAGS="-g"
|
4110 |
|
|
fi
|
4111 |
|
|
else
|
4112 |
|
|
if test "$GCC" = yes; then
|
4113 |
|
|
CFLAGS="-O2"
|
4114 |
|
|
else
|
4115 |
|
|
CFLAGS=
|
4116 |
|
|
fi
|
4117 |
|
|
fi
|
4118 |
|
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
4119 |
|
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
4120 |
|
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
4121 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4122 |
|
|
else
|
4123 |
|
|
ac_cv_prog_cc_stdc=no
|
4124 |
|
|
ac_save_CC=$CC
|
4125 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4126 |
|
|
/* confdefs.h. */
|
4127 |
|
|
_ACEOF
|
4128 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4129 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4130 |
|
|
/* end confdefs.h. */
|
4131 |
|
|
#include
|
4132 |
|
|
#include
|
4133 |
|
|
#include
|
4134 |
|
|
#include
|
4135 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
4136 |
|
|
struct buf { int x; };
|
4137 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
4138 |
|
|
static char *e (p, i)
|
4139 |
|
|
char **p;
|
4140 |
|
|
int i;
|
4141 |
|
|
{
|
4142 |
|
|
return p[i];
|
4143 |
|
|
}
|
4144 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
4145 |
|
|
{
|
4146 |
|
|
char *s;
|
4147 |
|
|
va_list v;
|
4148 |
|
|
va_start (v,p);
|
4149 |
|
|
s = g (p, va_arg (v,int));
|
4150 |
|
|
va_end (v);
|
4151 |
|
|
return s;
|
4152 |
|
|
}
|
4153 |
|
|
|
4154 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
4155 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
4156 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
4157 |
|
|
as 'x'. The following induces an error, until -std1 is added to get
|
4158 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
4159 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
4160 |
|
|
that's true only with -std1. */
|
4161 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
4162 |
|
|
|
4163 |
|
|
int test (int i, double x);
|
4164 |
|
|
struct s1 {int (*f) (int a);};
|
4165 |
|
|
struct s2 {int (*f) (double a);};
|
4166 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
4167 |
|
|
int argc;
|
4168 |
|
|
char **argv;
|
4169 |
|
|
int
|
4170 |
|
|
main ()
|
4171 |
|
|
{
|
4172 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
4173 |
|
|
;
|
4174 |
|
|
return 0;
|
4175 |
|
|
}
|
4176 |
|
|
_ACEOF
|
4177 |
|
|
# Don't try gcc -ansi; that turns off useful extensions and
|
4178 |
|
|
# breaks some systems' header files.
|
4179 |
|
|
# AIX -qlanglvl=ansi
|
4180 |
|
|
# Ultrix and OSF/1 -std1
|
4181 |
|
|
# HP-UX 10.20 and later -Ae
|
4182 |
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE
|
4183 |
|
|
# SVR4 -Xc -D__EXTENSIONS__
|
4184 |
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
4185 |
|
|
do
|
4186 |
|
|
CC="$ac_save_CC $ac_arg"
|
4187 |
|
|
rm -f conftest.$ac_objext
|
4188 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4189 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4190 |
|
|
ac_status=$?
|
4191 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4192 |
|
|
rm -f conftest.er1
|
4193 |
|
|
cat conftest.err >&5
|
4194 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4195 |
|
|
(exit $ac_status); } &&
|
4196 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4197 |
|
|
|| test ! -s conftest.err'
|
4198 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4199 |
|
|
(eval $ac_try) 2>&5
|
4200 |
|
|
ac_status=$?
|
4201 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4202 |
|
|
(exit $ac_status); }; } &&
|
4203 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4204 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4205 |
|
|
(eval $ac_try) 2>&5
|
4206 |
|
|
ac_status=$?
|
4207 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4208 |
|
|
(exit $ac_status); }; }; then
|
4209 |
|
|
ac_cv_prog_cc_stdc=$ac_arg
|
4210 |
|
|
break
|
4211 |
|
|
else
|
4212 |
|
|
echo "$as_me: failed program was:" >&5
|
4213 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4214 |
|
|
|
4215 |
|
|
fi
|
4216 |
|
|
rm -f conftest.err conftest.$ac_objext
|
4217 |
|
|
done
|
4218 |
|
|
rm -f conftest.$ac_ext conftest.$ac_objext
|
4219 |
|
|
CC=$ac_save_CC
|
4220 |
|
|
|
4221 |
|
|
fi
|
4222 |
|
|
|
4223 |
|
|
case "x$ac_cv_prog_cc_stdc" in
|
4224 |
|
|
x|xno)
|
4225 |
|
|
echo "$as_me:$LINENO: result: none needed" >&5
|
4226 |
|
|
echo "${ECHO_T}none needed" >&6 ;;
|
4227 |
|
|
*)
|
4228 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
4229 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
4230 |
|
|
CC="$CC $ac_cv_prog_cc_stdc" ;;
|
4231 |
|
|
esac
|
4232 |
|
|
|
4233 |
|
|
# Some people use a C++ compiler to compile C. Since we use `exit',
|
4234 |
|
|
# in C++ we need to declare it. In case someone uses the same compiler
|
4235 |
|
|
# for both compiling C and C++ we need to have the C++ compiler decide
|
4236 |
|
|
# the declaration of exit, since it's the most demanding environment.
|
4237 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4238 |
|
|
#ifndef __cplusplus
|
4239 |
|
|
choke me
|
4240 |
|
|
#endif
|
4241 |
|
|
_ACEOF
|
4242 |
|
|
rm -f conftest.$ac_objext
|
4243 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4244 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4245 |
|
|
ac_status=$?
|
4246 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4247 |
|
|
rm -f conftest.er1
|
4248 |
|
|
cat conftest.err >&5
|
4249 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4250 |
|
|
(exit $ac_status); } &&
|
4251 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4252 |
|
|
|| test ! -s conftest.err'
|
4253 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4254 |
|
|
(eval $ac_try) 2>&5
|
4255 |
|
|
ac_status=$?
|
4256 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4257 |
|
|
(exit $ac_status); }; } &&
|
4258 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4259 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4260 |
|
|
(eval $ac_try) 2>&5
|
4261 |
|
|
ac_status=$?
|
4262 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4263 |
|
|
(exit $ac_status); }; }; then
|
4264 |
|
|
for ac_declaration in \
|
4265 |
|
|
'' \
|
4266 |
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
4267 |
|
|
'extern "C" void std::exit (int); using std::exit;' \
|
4268 |
|
|
'extern "C" void exit (int) throw ();' \
|
4269 |
|
|
'extern "C" void exit (int);' \
|
4270 |
|
|
'void exit (int);'
|
4271 |
|
|
do
|
4272 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4273 |
|
|
/* confdefs.h. */
|
4274 |
|
|
_ACEOF
|
4275 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4276 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4277 |
|
|
/* end confdefs.h. */
|
4278 |
|
|
$ac_declaration
|
4279 |
|
|
#include
|
4280 |
|
|
int
|
4281 |
|
|
main ()
|
4282 |
|
|
{
|
4283 |
|
|
exit (42);
|
4284 |
|
|
;
|
4285 |
|
|
return 0;
|
4286 |
|
|
}
|
4287 |
|
|
_ACEOF
|
4288 |
|
|
rm -f conftest.$ac_objext
|
4289 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4290 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4291 |
|
|
ac_status=$?
|
4292 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4293 |
|
|
rm -f conftest.er1
|
4294 |
|
|
cat conftest.err >&5
|
4295 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4296 |
|
|
(exit $ac_status); } &&
|
4297 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4298 |
|
|
|| test ! -s conftest.err'
|
4299 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4300 |
|
|
(eval $ac_try) 2>&5
|
4301 |
|
|
ac_status=$?
|
4302 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4303 |
|
|
(exit $ac_status); }; } &&
|
4304 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4305 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4306 |
|
|
(eval $ac_try) 2>&5
|
4307 |
|
|
ac_status=$?
|
4308 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4309 |
|
|
(exit $ac_status); }; }; then
|
4310 |
|
|
:
|
4311 |
|
|
else
|
4312 |
|
|
echo "$as_me: failed program was:" >&5
|
4313 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4314 |
|
|
|
4315 |
|
|
continue
|
4316 |
|
|
fi
|
4317 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4318 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4319 |
|
|
/* confdefs.h. */
|
4320 |
|
|
_ACEOF
|
4321 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4322 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4323 |
|
|
/* end confdefs.h. */
|
4324 |
|
|
$ac_declaration
|
4325 |
|
|
int
|
4326 |
|
|
main ()
|
4327 |
|
|
{
|
4328 |
|
|
exit (42);
|
4329 |
|
|
;
|
4330 |
|
|
return 0;
|
4331 |
|
|
}
|
4332 |
|
|
_ACEOF
|
4333 |
|
|
rm -f conftest.$ac_objext
|
4334 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4335 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4336 |
|
|
ac_status=$?
|
4337 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4338 |
|
|
rm -f conftest.er1
|
4339 |
|
|
cat conftest.err >&5
|
4340 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4341 |
|
|
(exit $ac_status); } &&
|
4342 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4343 |
|
|
|| test ! -s conftest.err'
|
4344 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4345 |
|
|
(eval $ac_try) 2>&5
|
4346 |
|
|
ac_status=$?
|
4347 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4348 |
|
|
(exit $ac_status); }; } &&
|
4349 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4350 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4351 |
|
|
(eval $ac_try) 2>&5
|
4352 |
|
|
ac_status=$?
|
4353 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4354 |
|
|
(exit $ac_status); }; }; then
|
4355 |
|
|
break
|
4356 |
|
|
else
|
4357 |
|
|
echo "$as_me: failed program was:" >&5
|
4358 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4359 |
|
|
|
4360 |
|
|
fi
|
4361 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4362 |
|
|
done
|
4363 |
|
|
rm -f conftest*
|
4364 |
|
|
if test -n "$ac_declaration"; then
|
4365 |
|
|
echo '#ifdef __cplusplus' >>confdefs.h
|
4366 |
|
|
echo $ac_declaration >>confdefs.h
|
4367 |
|
|
echo '#endif' >>confdefs.h
|
4368 |
|
|
fi
|
4369 |
|
|
|
4370 |
|
|
else
|
4371 |
|
|
echo "$as_me: failed program was:" >&5
|
4372 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4373 |
|
|
|
4374 |
|
|
fi
|
4375 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4376 |
|
|
ac_ext=c
|
4377 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
4378 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
4379 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
4380 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
4381 |
|
|
|
4382 |
|
|
depcc="$CC" am_compiler_list=
|
4383 |
|
|
|
4384 |
|
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
4385 |
|
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
4386 |
|
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
4387 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4388 |
|
|
else
|
4389 |
|
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
4390 |
|
|
# We make a subdir and do the tests there. Otherwise we can end up
|
4391 |
|
|
# making bogus files that we don't know about and never remove. For
|
4392 |
|
|
# instance it was reported that on HP-UX the gcc test will end up
|
4393 |
|
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
4394 |
|
|
# in D'.
|
4395 |
|
|
mkdir conftest.dir
|
4396 |
|
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
4397 |
|
|
# using a relative directory.
|
4398 |
|
|
cp "$am_depcomp" conftest.dir
|
4399 |
|
|
cd conftest.dir
|
4400 |
|
|
# We will build objects and dependencies in a subdirectory because
|
4401 |
|
|
# it helps to detect inapplicable dependency modes. For instance
|
4402 |
|
|
# both Tru64's cc and ICC support -MD to output dependencies as a
|
4403 |
|
|
# side effect of compilation, but ICC will put the dependencies in
|
4404 |
|
|
# the current directory while Tru64 will put them in the object
|
4405 |
|
|
# directory.
|
4406 |
|
|
mkdir sub
|
4407 |
|
|
|
4408 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
4409 |
|
|
if test "$am_compiler_list" = ""; then
|
4410 |
|
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
4411 |
|
|
fi
|
4412 |
|
|
for depmode in $am_compiler_list; do
|
4413 |
|
|
# Setup a source with many dependencies, because some compilers
|
4414 |
|
|
# like to wrap large dependency lists on column 80 (with \), and
|
4415 |
|
|
# we should not choose a depcomp mode which is confused by this.
|
4416 |
|
|
#
|
4417 |
|
|
# We need to recreate these files for each test, as the compiler may
|
4418 |
|
|
# overwrite some of them when testing with obscure command lines.
|
4419 |
|
|
# This happens at least with the AIX C compiler.
|
4420 |
|
|
: > sub/conftest.c
|
4421 |
|
|
for i in 1 2 3 4 5 6; do
|
4422 |
|
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
4423 |
|
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
4424 |
|
|
# Solaris 8's {/usr,}/bin/sh.
|
4425 |
|
|
touch sub/conftst$i.h
|
4426 |
|
|
done
|
4427 |
|
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
4428 |
|
|
|
4429 |
|
|
case $depmode in
|
4430 |
|
|
nosideeffect)
|
4431 |
|
|
# after this tag, mechanisms are not by side-effect, so they'll
|
4432 |
|
|
# only be used when explicitly requested
|
4433 |
|
|
if test "x$enable_dependency_tracking" = xyes; then
|
4434 |
|
|
continue
|
4435 |
|
|
else
|
4436 |
|
|
break
|
4437 |
|
|
fi
|
4438 |
|
|
;;
|
4439 |
|
|
none) break ;;
|
4440 |
|
|
esac
|
4441 |
|
|
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
4442 |
|
|
# mode. It turns out that the SunPro C++ compiler does not properly
|
4443 |
|
|
# handle `-M -o', and we need to detect this.
|
4444 |
|
|
if depmode=$depmode \
|
4445 |
|
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
4446 |
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
4447 |
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
4448 |
|
|
>/dev/null 2>conftest.err &&
|
4449 |
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
4450 |
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
4451 |
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
4452 |
|
|
# icc doesn't choke on unknown options, it will just issue warnings
|
4453 |
|
|
# or remarks (even with -Werror). So we grep stderr for any message
|
4454 |
|
|
# that says an option was ignored or not supported.
|
4455 |
|
|
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
4456 |
|
|
# icc: Command line warning: ignoring option '-M'; no argument required
|
4457 |
|
|
# The diagnosis changed in icc 8.0:
|
4458 |
|
|
# icc: Command line remark: option '-MP' not supported
|
4459 |
|
|
if (grep 'ignoring option' conftest.err ||
|
4460 |
|
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
4461 |
|
|
am_cv_CC_dependencies_compiler_type=$depmode
|
4462 |
|
|
break
|
4463 |
|
|
fi
|
4464 |
|
|
fi
|
4465 |
|
|
done
|
4466 |
|
|
|
4467 |
|
|
cd ..
|
4468 |
|
|
rm -rf conftest.dir
|
4469 |
|
|
else
|
4470 |
|
|
am_cv_CC_dependencies_compiler_type=none
|
4471 |
|
|
fi
|
4472 |
|
|
|
4473 |
|
|
fi
|
4474 |
|
|
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
4475 |
|
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
4476 |
|
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
4477 |
|
|
|
4478 |
|
|
|
4479 |
|
|
|
4480 |
|
|
if
|
4481 |
|
|
test "x$enable_dependency_tracking" != xno \
|
4482 |
|
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
4483 |
|
|
am__fastdepCC_TRUE=
|
4484 |
|
|
am__fastdepCC_FALSE='#'
|
4485 |
|
|
else
|
4486 |
|
|
am__fastdepCC_TRUE='#'
|
4487 |
|
|
am__fastdepCC_FALSE=
|
4488 |
|
|
fi
|
4489 |
|
|
|
4490 |
|
|
|
4491 |
|
|
echo "$as_me:$LINENO: checking for egrep" >&5
|
4492 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
4493 |
|
|
if test "${ac_cv_prog_egrep+set}" = set; then
|
4494 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4495 |
|
|
else
|
4496 |
|
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
4497 |
|
|
then ac_cv_prog_egrep='grep -E'
|
4498 |
|
|
else ac_cv_prog_egrep='egrep'
|
4499 |
|
|
fi
|
4500 |
|
|
fi
|
4501 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
4502 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
4503 |
|
|
EGREP=$ac_cv_prog_egrep
|
4504 |
|
|
|
4505 |
|
|
|
4506 |
|
|
echo "$as_me:$LINENO: checking for fgrep" >&5
|
4507 |
|
|
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
|
4508 |
|
|
if test "${ac_cv_prog_fgrep+set}" = set; then
|
4509 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4510 |
|
|
else
|
4511 |
|
|
if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
|
4512 |
|
|
then ac_cv_prog_fgrep='grep -F'
|
4513 |
|
|
else ac_cv_prog_fgrep='fgrep'
|
4514 |
|
|
fi
|
4515 |
|
|
fi
|
4516 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
|
4517 |
|
|
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
|
4518 |
|
|
FGREP=$ac_cv_prog_fgrep
|
4519 |
|
|
|
4520 |
|
|
|
4521 |
|
|
test -z "$GREP" && GREP=grep
|
4522 |
|
|
|
4523 |
|
|
|
4524 |
|
|
|
4525 |
|
|
|
4526 |
|
|
|
4527 |
|
|
|
4528 |
|
|
|
4529 |
|
|
|
4530 |
|
|
|
4531 |
|
|
|
4532 |
|
|
|
4533 |
|
|
|
4534 |
|
|
|
4535 |
|
|
|
4536 |
|
|
|
4537 |
|
|
|
4538 |
|
|
|
4539 |
|
|
|
4540 |
|
|
|
4541 |
|
|
# Check whether --with-gnu-ld or --without-gnu-ld was given.
|
4542 |
|
|
if test "${with_gnu_ld+set}" = set; then
|
4543 |
|
|
withval="$with_gnu_ld"
|
4544 |
|
|
test "$withval" = no || with_gnu_ld=yes
|
4545 |
|
|
else
|
4546 |
|
|
with_gnu_ld=no
|
4547 |
|
|
fi;
|
4548 |
|
|
ac_prog=ld
|
4549 |
|
|
if test "$GCC" = yes; then
|
4550 |
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
4551 |
|
|
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
4552 |
|
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
|
4553 |
|
|
case $host in
|
4554 |
|
|
*-*-mingw*)
|
4555 |
|
|
# gcc leaves a trailing carriage return which upsets mingw
|
4556 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
4557 |
|
|
*)
|
4558 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
4559 |
|
|
esac
|
4560 |
|
|
case $ac_prog in
|
4561 |
|
|
# Accept absolute paths.
|
4562 |
|
|
[\\/]* | ?:[\\/]*)
|
4563 |
|
|
re_direlt='/[^/][^/]*/\.\./'
|
4564 |
|
|
# Canonicalize the pathname of ld
|
4565 |
|
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
4566 |
|
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
4567 |
|
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
4568 |
|
|
done
|
4569 |
|
|
test -z "$LD" && LD="$ac_prog"
|
4570 |
|
|
;;
|
4571 |
|
|
"")
|
4572 |
|
|
# If it fails, then pretend we aren't using GCC.
|
4573 |
|
|
ac_prog=ld
|
4574 |
|
|
;;
|
4575 |
|
|
*)
|
4576 |
|
|
# If it is relative, then search for the first ld in PATH.
|
4577 |
|
|
with_gnu_ld=unknown
|
4578 |
|
|
;;
|
4579 |
|
|
esac
|
4580 |
|
|
elif test "$with_gnu_ld" = yes; then
|
4581 |
|
|
echo "$as_me:$LINENO: checking for GNU ld" >&5
|
4582 |
|
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
|
4583 |
|
|
else
|
4584 |
|
|
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
4585 |
|
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
|
4586 |
|
|
fi
|
4587 |
|
|
if test "${lt_cv_path_LD+set}" = set; then
|
4588 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4589 |
|
|
else
|
4590 |
|
|
if test -z "$LD"; then
|
4591 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
4592 |
|
|
for ac_dir in $PATH; do
|
4593 |
|
|
IFS="$lt_save_ifs"
|
4594 |
|
|
test -z "$ac_dir" && ac_dir=.
|
4595 |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
4596 |
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
4597 |
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
4598 |
|
|
# but apparently some variants of GNU ld only accept -v.
|
4599 |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
4600 |
|
|
case `"$lt_cv_path_LD" -v 2>&1
|
4601 |
|
|
*GNU* | *'with BFD'*)
|
4602 |
|
|
test "$with_gnu_ld" != no && break
|
4603 |
|
|
;;
|
4604 |
|
|
*)
|
4605 |
|
|
test "$with_gnu_ld" != yes && break
|
4606 |
|
|
;;
|
4607 |
|
|
esac
|
4608 |
|
|
fi
|
4609 |
|
|
done
|
4610 |
|
|
IFS="$lt_save_ifs"
|
4611 |
|
|
else
|
4612 |
|
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
4613 |
|
|
fi
|
4614 |
|
|
fi
|
4615 |
|
|
|
4616 |
|
|
LD="$lt_cv_path_LD"
|
4617 |
|
|
if test -n "$LD"; then
|
4618 |
|
|
echo "$as_me:$LINENO: result: $LD" >&5
|
4619 |
|
|
echo "${ECHO_T}$LD" >&6
|
4620 |
|
|
else
|
4621 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
4622 |
|
|
echo "${ECHO_T}no" >&6
|
4623 |
|
|
fi
|
4624 |
|
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
4625 |
|
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
4626 |
|
|
{ (exit 1); exit 1; }; }
|
4627 |
|
|
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
4628 |
|
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
|
4629 |
|
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
4630 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4631 |
|
|
else
|
4632 |
|
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
4633 |
|
|
case `$LD -v 2>&1
|
4634 |
|
|
*GNU* | *'with BFD'*)
|
4635 |
|
|
lt_cv_prog_gnu_ld=yes
|
4636 |
|
|
;;
|
4637 |
|
|
*)
|
4638 |
|
|
lt_cv_prog_gnu_ld=no
|
4639 |
|
|
;;
|
4640 |
|
|
esac
|
4641 |
|
|
fi
|
4642 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
4643 |
|
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
|
4644 |
|
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
4645 |
|
|
|
4646 |
|
|
|
4647 |
|
|
|
4648 |
|
|
|
4649 |
|
|
|
4650 |
|
|
|
4651 |
|
|
|
4652 |
|
|
|
4653 |
|
|
|
4654 |
|
|
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
|
4655 |
|
|
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
|
4656 |
|
|
if test "${lt_cv_path_NM+set}" = set; then
|
4657 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4658 |
|
|
else
|
4659 |
|
|
if test -n "$NM"; then
|
4660 |
|
|
# Let the user override the test.
|
4661 |
|
|
lt_cv_path_NM="$NM"
|
4662 |
|
|
else
|
4663 |
|
|
lt_nm_to_check="${ac_tool_prefix}nm"
|
4664 |
|
|
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
4665 |
|
|
lt_nm_to_check="$lt_nm_to_check nm"
|
4666 |
|
|
fi
|
4667 |
|
|
for lt_tmp_nm in $lt_nm_to_check; do
|
4668 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
4669 |
|
|
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
4670 |
|
|
IFS="$lt_save_ifs"
|
4671 |
|
|
test -z "$ac_dir" && ac_dir=.
|
4672 |
|
|
tmp_nm="$ac_dir/$lt_tmp_nm"
|
4673 |
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
4674 |
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
4675 |
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
4676 |
|
|
# nm: unknown option "B" ignored
|
4677 |
|
|
# Tru64's nm complains that /dev/null is an invalid object file
|
4678 |
|
|
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
4679 |
|
|
*/dev/null* | *'Invalid file or object type'*)
|
4680 |
|
|
lt_cv_path_NM="$tmp_nm -B"
|
4681 |
|
|
break
|
4682 |
|
|
;;
|
4683 |
|
|
*)
|
4684 |
|
|
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
4685 |
|
|
*/dev/null*)
|
4686 |
|
|
lt_cv_path_NM="$tmp_nm -p"
|
4687 |
|
|
break
|
4688 |
|
|
;;
|
4689 |
|
|
*)
|
4690 |
|
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
4691 |
|
|
continue # so that we can try to find one that supports BSD flags
|
4692 |
|
|
;;
|
4693 |
|
|
esac
|
4694 |
|
|
;;
|
4695 |
|
|
esac
|
4696 |
|
|
fi
|
4697 |
|
|
done
|
4698 |
|
|
IFS="$lt_save_ifs"
|
4699 |
|
|
done
|
4700 |
|
|
: ${lt_cv_path_NM=no}
|
4701 |
|
|
fi
|
4702 |
|
|
fi
|
4703 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
4704 |
|
|
echo "${ECHO_T}$lt_cv_path_NM" >&6
|
4705 |
|
|
if test "$lt_cv_path_NM" != "no"; then
|
4706 |
|
|
NM="$lt_cv_path_NM"
|
4707 |
|
|
else
|
4708 |
|
|
# Didn't find any BSD compatible name lister, look for dumpbin.
|
4709 |
|
|
if test -n "$ac_tool_prefix"; then
|
4710 |
|
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
4711 |
|
|
do
|
4712 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
4713 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
4714 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4715 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
4716 |
|
|
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
|
4717 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4718 |
|
|
else
|
4719 |
|
|
if test -n "$DUMPBIN"; then
|
4720 |
|
|
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
4721 |
|
|
else
|
4722 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4723 |
|
|
for as_dir in $PATH
|
4724 |
|
|
do
|
4725 |
|
|
IFS=$as_save_IFS
|
4726 |
|
|
test -z "$as_dir" && as_dir=.
|
4727 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4728 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
4729 |
|
|
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
4730 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4731 |
|
|
break 2
|
4732 |
|
|
fi
|
4733 |
|
|
done
|
4734 |
|
|
done
|
4735 |
|
|
|
4736 |
|
|
fi
|
4737 |
|
|
fi
|
4738 |
|
|
DUMPBIN=$ac_cv_prog_DUMPBIN
|
4739 |
|
|
if test -n "$DUMPBIN"; then
|
4740 |
|
|
echo "$as_me:$LINENO: result: $DUMPBIN" >&5
|
4741 |
|
|
echo "${ECHO_T}$DUMPBIN" >&6
|
4742 |
|
|
else
|
4743 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
4744 |
|
|
echo "${ECHO_T}no" >&6
|
4745 |
|
|
fi
|
4746 |
|
|
|
4747 |
|
|
test -n "$DUMPBIN" && break
|
4748 |
|
|
done
|
4749 |
|
|
fi
|
4750 |
|
|
if test -z "$DUMPBIN"; then
|
4751 |
|
|
ac_ct_DUMPBIN=$DUMPBIN
|
4752 |
|
|
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
|
4753 |
|
|
do
|
4754 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
4755 |
|
|
set dummy $ac_prog; ac_word=$2
|
4756 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
4757 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
4758 |
|
|
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
|
4759 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4760 |
|
|
else
|
4761 |
|
|
if test -n "$ac_ct_DUMPBIN"; then
|
4762 |
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
4763 |
|
|
else
|
4764 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
4765 |
|
|
for as_dir in $PATH
|
4766 |
|
|
do
|
4767 |
|
|
IFS=$as_save_IFS
|
4768 |
|
|
test -z "$as_dir" && as_dir=.
|
4769 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
4770 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
4771 |
|
|
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
4772 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
4773 |
|
|
break 2
|
4774 |
|
|
fi
|
4775 |
|
|
done
|
4776 |
|
|
done
|
4777 |
|
|
|
4778 |
|
|
fi
|
4779 |
|
|
fi
|
4780 |
|
|
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
4781 |
|
|
if test -n "$ac_ct_DUMPBIN"; then
|
4782 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
|
4783 |
|
|
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
|
4784 |
|
|
else
|
4785 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
4786 |
|
|
echo "${ECHO_T}no" >&6
|
4787 |
|
|
fi
|
4788 |
|
|
|
4789 |
|
|
test -n "$ac_ct_DUMPBIN" && break
|
4790 |
|
|
done
|
4791 |
|
|
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
|
4792 |
|
|
|
4793 |
|
|
DUMPBIN=$ac_ct_DUMPBIN
|
4794 |
|
|
fi
|
4795 |
|
|
|
4796 |
|
|
|
4797 |
|
|
if test "$DUMPBIN" != ":"; then
|
4798 |
|
|
NM="$DUMPBIN"
|
4799 |
|
|
fi
|
4800 |
|
|
fi
|
4801 |
|
|
test -z "$NM" && NM=nm
|
4802 |
|
|
|
4803 |
|
|
|
4804 |
|
|
|
4805 |
|
|
|
4806 |
|
|
|
4807 |
|
|
|
4808 |
|
|
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
|
4809 |
|
|
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
|
4810 |
|
|
if test "${lt_cv_nm_interface+set}" = set; then
|
4811 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4812 |
|
|
else
|
4813 |
|
|
lt_cv_nm_interface="BSD nm"
|
4814 |
|
|
echo "int some_variable = 0;" > conftest.$ac_ext
|
4815 |
|
|
(eval echo "\"\$as_me:4815: $ac_compile\"" >&5)
|
4816 |
|
|
(eval "$ac_compile" 2>conftest.err)
|
4817 |
|
|
cat conftest.err >&5
|
4818 |
|
|
(eval echo "\"\$as_me:4818: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
4819 |
|
|
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
4820 |
|
|
cat conftest.err >&5
|
4821 |
|
|
(eval echo "\"\$as_me:4821: output\"" >&5)
|
4822 |
|
|
cat conftest.out >&5
|
4823 |
|
|
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
4824 |
|
|
lt_cv_nm_interface="MS dumpbin"
|
4825 |
|
|
fi
|
4826 |
|
|
rm -f conftest*
|
4827 |
|
|
fi
|
4828 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
|
4829 |
|
|
echo "${ECHO_T}$lt_cv_nm_interface" >&6
|
4830 |
|
|
|
4831 |
|
|
echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
4832 |
|
|
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
4833 |
|
|
LN_S=$as_ln_s
|
4834 |
|
|
if test "$LN_S" = "ln -s"; then
|
4835 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
4836 |
|
|
echo "${ECHO_T}yes" >&6
|
4837 |
|
|
else
|
4838 |
|
|
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
4839 |
|
|
echo "${ECHO_T}no, using $LN_S" >&6
|
4840 |
|
|
fi
|
4841 |
|
|
|
4842 |
|
|
# find the maximum length of command line arguments
|
4843 |
|
|
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
4844 |
|
|
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
|
4845 |
|
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
4846 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4847 |
|
|
else
|
4848 |
|
|
i=0
|
4849 |
|
|
teststring="ABCD"
|
4850 |
|
|
|
4851 |
|
|
case $build_os in
|
4852 |
|
|
msdosdjgpp*)
|
4853 |
|
|
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
4854 |
|
|
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
4855 |
|
|
# during glob expansion). Even if it were fixed, the result of this
|
4856 |
|
|
# check would be larger than it should be.
|
4857 |
|
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
4858 |
|
|
;;
|
4859 |
|
|
|
4860 |
|
|
gnu*)
|
4861 |
|
|
# Under GNU Hurd, this test is not required because there is
|
4862 |
|
|
# no limit to the length of command line arguments.
|
4863 |
|
|
# Libtool will interpret -1 as no limit whatsoever
|
4864 |
|
|
lt_cv_sys_max_cmd_len=-1;
|
4865 |
|
|
;;
|
4866 |
|
|
|
4867 |
|
|
cygwin* | mingw* | cegcc*)
|
4868 |
|
|
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
4869 |
|
|
# about 5 minutes as the teststring grows exponentially.
|
4870 |
|
|
# Worse, since 9x/ME are not pre-emptively multitasking,
|
4871 |
|
|
# you end up with a "frozen" computer, even though with patience
|
4872 |
|
|
# the test eventually succeeds (with a max line length of 256k).
|
4873 |
|
|
# Instead, let's just punt: use the minimum linelength reported by
|
4874 |
|
|
# all of the supported platforms: 8192 (on NT/2K/XP).
|
4875 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
4876 |
|
|
;;
|
4877 |
|
|
|
4878 |
|
|
amigaos*)
|
4879 |
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
4880 |
|
|
# So we just punt and use a minimum line length of 8192.
|
4881 |
|
|
lt_cv_sys_max_cmd_len=8192;
|
4882 |
|
|
;;
|
4883 |
|
|
|
4884 |
|
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
4885 |
|
|
# This has been around since 386BSD, at least. Likely further.
|
4886 |
|
|
if test -x /sbin/sysctl; then
|
4887 |
|
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
4888 |
|
|
elif test -x /usr/sbin/sysctl; then
|
4889 |
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
4890 |
|
|
else
|
4891 |
|
|
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
4892 |
|
|
fi
|
4893 |
|
|
# And add a safety zone
|
4894 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
4895 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
4896 |
|
|
;;
|
4897 |
|
|
|
4898 |
|
|
interix*)
|
4899 |
|
|
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
4900 |
|
|
lt_cv_sys_max_cmd_len=196608
|
4901 |
|
|
;;
|
4902 |
|
|
|
4903 |
|
|
osf*)
|
4904 |
|
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
4905 |
|
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
4906 |
|
|
# nice to cause kernel panics so lets avoid the loop below.
|
4907 |
|
|
# First set a reasonable default.
|
4908 |
|
|
lt_cv_sys_max_cmd_len=16384
|
4909 |
|
|
#
|
4910 |
|
|
if test -x /sbin/sysconfig; then
|
4911 |
|
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
4912 |
|
|
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
4913 |
|
|
esac
|
4914 |
|
|
fi
|
4915 |
|
|
;;
|
4916 |
|
|
sco3.2v5*)
|
4917 |
|
|
lt_cv_sys_max_cmd_len=102400
|
4918 |
|
|
;;
|
4919 |
|
|
sysv5* | sco5v6* | sysv4.2uw2*)
|
4920 |
|
|
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
4921 |
|
|
if test -n "$kargmax"; then
|
4922 |
|
|
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
4923 |
|
|
else
|
4924 |
|
|
lt_cv_sys_max_cmd_len=32768
|
4925 |
|
|
fi
|
4926 |
|
|
;;
|
4927 |
|
|
*)
|
4928 |
|
|
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
4929 |
|
|
if test -n "$lt_cv_sys_max_cmd_len"; then
|
4930 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
4931 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
4932 |
|
|
else
|
4933 |
|
|
# Make teststring a little bigger before we do anything with it.
|
4934 |
|
|
# a 1K string should be a reasonable start.
|
4935 |
|
|
for i in 1 2 3 4 5 6 7 8 ; do
|
4936 |
|
|
teststring=$teststring$teststring
|
4937 |
|
|
done
|
4938 |
|
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
4939 |
|
|
# If test is not a shell built-in, we'll probably end up computing a
|
4940 |
|
|
# maximum length that is only half of the actual maximum length, but
|
4941 |
|
|
# we can't tell.
|
4942 |
|
|
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
|
4943 |
|
|
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
|
4944 |
|
|
test $i != 17 # 1/2 MB should be enough
|
4945 |
|
|
do
|
4946 |
|
|
i=`expr $i + 1`
|
4947 |
|
|
teststring=$teststring$teststring
|
4948 |
|
|
done
|
4949 |
|
|
# Only check the string length outside the loop.
|
4950 |
|
|
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
4951 |
|
|
teststring=
|
4952 |
|
|
# Add a significant safety factor because C++ compilers can tack on
|
4953 |
|
|
# massive amounts of additional arguments before passing them to the
|
4954 |
|
|
# linker. It appears as though 1/2 is a usable value.
|
4955 |
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
4956 |
|
|
fi
|
4957 |
|
|
;;
|
4958 |
|
|
esac
|
4959 |
|
|
|
4960 |
|
|
fi
|
4961 |
|
|
|
4962 |
|
|
if test -n $lt_cv_sys_max_cmd_len ; then
|
4963 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
4964 |
|
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
|
4965 |
|
|
else
|
4966 |
|
|
echo "$as_me:$LINENO: result: none" >&5
|
4967 |
|
|
echo "${ECHO_T}none" >&6
|
4968 |
|
|
fi
|
4969 |
|
|
max_cmd_len=$lt_cv_sys_max_cmd_len
|
4970 |
|
|
|
4971 |
|
|
|
4972 |
|
|
|
4973 |
|
|
|
4974 |
|
|
|
4975 |
|
|
|
4976 |
|
|
: ${CP="cp -f"}
|
4977 |
|
|
: ${MV="mv -f"}
|
4978 |
|
|
: ${RM="rm -f"}
|
4979 |
|
|
|
4980 |
|
|
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
|
4981 |
|
|
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
|
4982 |
|
|
# Try some XSI features
|
4983 |
|
|
xsi_shell=no
|
4984 |
|
|
( _lt_dummy="a/b/c"
|
4985 |
|
|
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
4986 |
|
|
= c,a/b,, \
|
4987 |
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
4988 |
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
4989 |
|
|
&& xsi_shell=yes
|
4990 |
|
|
echo "$as_me:$LINENO: result: $xsi_shell" >&5
|
4991 |
|
|
echo "${ECHO_T}$xsi_shell" >&6
|
4992 |
|
|
|
4993 |
|
|
|
4994 |
|
|
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
|
4995 |
|
|
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
|
4996 |
|
|
lt_shell_append=no
|
4997 |
|
|
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
|
4998 |
|
|
>/dev/null 2>&1 \
|
4999 |
|
|
&& lt_shell_append=yes
|
5000 |
|
|
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
|
5001 |
|
|
echo "${ECHO_T}$lt_shell_append" >&6
|
5002 |
|
|
|
5003 |
|
|
|
5004 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
5005 |
|
|
lt_unset=unset
|
5006 |
|
|
else
|
5007 |
|
|
lt_unset=false
|
5008 |
|
|
fi
|
5009 |
|
|
|
5010 |
|
|
|
5011 |
|
|
|
5012 |
|
|
|
5013 |
|
|
|
5014 |
|
|
# test EBCDIC or ASCII
|
5015 |
|
|
case `echo X|tr X '\101'` in
|
5016 |
|
|
A) # ASCII based system
|
5017 |
|
|
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
5018 |
|
|
lt_SP2NL='tr \040 \012'
|
5019 |
|
|
lt_NL2SP='tr \015\012 \040\040'
|
5020 |
|
|
;;
|
5021 |
|
|
*) # EBCDIC based system
|
5022 |
|
|
lt_SP2NL='tr \100 \n'
|
5023 |
|
|
lt_NL2SP='tr \r\n \100\100'
|
5024 |
|
|
;;
|
5025 |
|
|
esac
|
5026 |
|
|
|
5027 |
|
|
|
5028 |
|
|
|
5029 |
|
|
|
5030 |
|
|
|
5031 |
|
|
|
5032 |
|
|
|
5033 |
|
|
|
5034 |
|
|
|
5035 |
|
|
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
5036 |
|
|
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
|
5037 |
|
|
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
5038 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5039 |
|
|
else
|
5040 |
|
|
lt_cv_ld_reload_flag='-r'
|
5041 |
|
|
fi
|
5042 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
5043 |
|
|
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
|
5044 |
|
|
reload_flag=$lt_cv_ld_reload_flag
|
5045 |
|
|
case $reload_flag in
|
5046 |
|
|
"" | " "*) ;;
|
5047 |
|
|
*) reload_flag=" $reload_flag" ;;
|
5048 |
|
|
esac
|
5049 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
5050 |
|
|
case $host_os in
|
5051 |
|
|
darwin*)
|
5052 |
|
|
if test "$GCC" = yes; then
|
5053 |
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
5054 |
|
|
else
|
5055 |
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
5056 |
|
|
fi
|
5057 |
|
|
;;
|
5058 |
|
|
esac
|
5059 |
|
|
|
5060 |
|
|
|
5061 |
|
|
|
5062 |
|
|
|
5063 |
|
|
|
5064 |
|
|
|
5065 |
|
|
|
5066 |
|
|
|
5067 |
|
|
|
5068 |
|
|
if test -n "$ac_tool_prefix"; then
|
5069 |
|
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
5070 |
|
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
5071 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5072 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5073 |
|
|
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
|
5074 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5075 |
|
|
else
|
5076 |
|
|
if test -n "$OBJDUMP"; then
|
5077 |
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
5078 |
|
|
else
|
5079 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5080 |
|
|
for as_dir in $PATH
|
5081 |
|
|
do
|
5082 |
|
|
IFS=$as_save_IFS
|
5083 |
|
|
test -z "$as_dir" && as_dir=.
|
5084 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5085 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5086 |
|
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
5087 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5088 |
|
|
break 2
|
5089 |
|
|
fi
|
5090 |
|
|
done
|
5091 |
|
|
done
|
5092 |
|
|
|
5093 |
|
|
fi
|
5094 |
|
|
fi
|
5095 |
|
|
OBJDUMP=$ac_cv_prog_OBJDUMP
|
5096 |
|
|
if test -n "$OBJDUMP"; then
|
5097 |
|
|
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
|
5098 |
|
|
echo "${ECHO_T}$OBJDUMP" >&6
|
5099 |
|
|
else
|
5100 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5101 |
|
|
echo "${ECHO_T}no" >&6
|
5102 |
|
|
fi
|
5103 |
|
|
|
5104 |
|
|
fi
|
5105 |
|
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
5106 |
|
|
ac_ct_OBJDUMP=$OBJDUMP
|
5107 |
|
|
# Extract the first word of "objdump", so it can be a program name with args.
|
5108 |
|
|
set dummy objdump; ac_word=$2
|
5109 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5110 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5111 |
|
|
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
|
5112 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5113 |
|
|
else
|
5114 |
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
5115 |
|
|
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
5116 |
|
|
else
|
5117 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5118 |
|
|
for as_dir in $PATH
|
5119 |
|
|
do
|
5120 |
|
|
IFS=$as_save_IFS
|
5121 |
|
|
test -z "$as_dir" && as_dir=.
|
5122 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5123 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5124 |
|
|
ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
5125 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5126 |
|
|
break 2
|
5127 |
|
|
fi
|
5128 |
|
|
done
|
5129 |
|
|
done
|
5130 |
|
|
|
5131 |
|
|
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
|
5132 |
|
|
fi
|
5133 |
|
|
fi
|
5134 |
|
|
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
5135 |
|
|
if test -n "$ac_ct_OBJDUMP"; then
|
5136 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
|
5137 |
|
|
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
|
5138 |
|
|
else
|
5139 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5140 |
|
|
echo "${ECHO_T}no" >&6
|
5141 |
|
|
fi
|
5142 |
|
|
|
5143 |
|
|
OBJDUMP=$ac_ct_OBJDUMP
|
5144 |
|
|
else
|
5145 |
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
5146 |
|
|
fi
|
5147 |
|
|
|
5148 |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
5149 |
|
|
|
5150 |
|
|
|
5151 |
|
|
|
5152 |
|
|
|
5153 |
|
|
|
5154 |
|
|
|
5155 |
|
|
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
5156 |
|
|
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
|
5157 |
|
|
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
5158 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5159 |
|
|
else
|
5160 |
|
|
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
5161 |
|
|
lt_cv_file_magic_test_file=
|
5162 |
|
|
lt_cv_deplibs_check_method='unknown'
|
5163 |
|
|
# Need to set the preceding variable on all platforms that support
|
5164 |
|
|
# interlibrary dependencies.
|
5165 |
|
|
# 'none' -- dependencies not supported.
|
5166 |
|
|
# `unknown' -- same as none, but documents that we really don't know.
|
5167 |
|
|
# 'pass_all' -- all dependencies passed with no checks.
|
5168 |
|
|
# 'test_compile' -- check by making test program.
|
5169 |
|
|
# 'file_magic [[regex]]' -- check by looking for files in library path
|
5170 |
|
|
# which responds to the $file_magic_cmd with a given extended regex.
|
5171 |
|
|
# If you have `file' or equivalent on your system and you're not sure
|
5172 |
|
|
# whether `pass_all' will *always* work, you probably want this one.
|
5173 |
|
|
|
5174 |
|
|
case $host_os in
|
5175 |
|
|
aix[4-9]*)
|
5176 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5177 |
|
|
;;
|
5178 |
|
|
|
5179 |
|
|
beos*)
|
5180 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5181 |
|
|
;;
|
5182 |
|
|
|
5183 |
|
|
bsdi[45]*)
|
5184 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
5185 |
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
5186 |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so
|
5187 |
|
|
;;
|
5188 |
|
|
|
5189 |
|
|
cygwin*)
|
5190 |
|
|
# func_win32_libid is a shell function defined in ltmain.sh
|
5191 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
5192 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
5193 |
|
|
;;
|
5194 |
|
|
|
5195 |
|
|
mingw* | pw32*)
|
5196 |
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by
|
5197 |
|
|
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
5198 |
|
|
# unless we find 'file', for example because we are cross-compiling.
|
5199 |
|
|
if ( file / ) >/dev/null 2>&1; then
|
5200 |
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
5201 |
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
5202 |
|
|
else
|
5203 |
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
5204 |
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
5205 |
|
|
fi
|
5206 |
|
|
;;
|
5207 |
|
|
|
5208 |
|
|
cegcc)
|
5209 |
|
|
# use the weaker test based on 'objdump'. See mingw*.
|
5210 |
|
|
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
5211 |
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
5212 |
|
|
;;
|
5213 |
|
|
|
5214 |
|
|
darwin* | rhapsody*)
|
5215 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5216 |
|
|
;;
|
5217 |
|
|
|
5218 |
|
|
freebsd* | dragonfly*)
|
5219 |
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
5220 |
|
|
case $host_cpu in
|
5221 |
|
|
i*86 )
|
5222 |
|
|
# Not sure whether the presence of OpenBSD here was a mistake.
|
5223 |
|
|
# Let's accept both of them until this is cleared up.
|
5224 |
|
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
5225 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
5226 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
5227 |
|
|
;;
|
5228 |
|
|
esac
|
5229 |
|
|
else
|
5230 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5231 |
|
|
fi
|
5232 |
|
|
;;
|
5233 |
|
|
|
5234 |
|
|
gnu*)
|
5235 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5236 |
|
|
;;
|
5237 |
|
|
|
5238 |
|
|
hpux10.20* | hpux11*)
|
5239 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
5240 |
|
|
case $host_cpu in
|
5241 |
|
|
ia64*)
|
5242 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
5243 |
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
5244 |
|
|
;;
|
5245 |
|
|
hppa*64*)
|
5246 |
|
|
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]'
|
5247 |
|
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
5248 |
|
|
;;
|
5249 |
|
|
*)
|
5250 |
|
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
5251 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
5252 |
|
|
;;
|
5253 |
|
|
esac
|
5254 |
|
|
;;
|
5255 |
|
|
|
5256 |
|
|
interix[3-9]*)
|
5257 |
|
|
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
5258 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
5259 |
|
|
;;
|
5260 |
|
|
|
5261 |
|
|
irix5* | irix6* | nonstopux*)
|
5262 |
|
|
case $LD in
|
5263 |
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
5264 |
|
|
*-n32|*"-n32 ") libmagic=N32;;
|
5265 |
|
|
*-64|*"-64 ") libmagic=64-bit;;
|
5266 |
|
|
*) libmagic=never-match;;
|
5267 |
|
|
esac
|
5268 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5269 |
|
|
;;
|
5270 |
|
|
|
5271 |
|
|
# This must be Linux ELF.
|
5272 |
|
|
linux* | k*bsd*-gnu)
|
5273 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5274 |
|
|
;;
|
5275 |
|
|
|
5276 |
|
|
netbsd*)
|
5277 |
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
5278 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
5279 |
|
|
else
|
5280 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
5281 |
|
|
fi
|
5282 |
|
|
;;
|
5283 |
|
|
|
5284 |
|
|
newos6*)
|
5285 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
5286 |
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
5287 |
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
5288 |
|
|
;;
|
5289 |
|
|
|
5290 |
|
|
*nto* | *qnx*)
|
5291 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5292 |
|
|
;;
|
5293 |
|
|
|
5294 |
|
|
openbsd*)
|
5295 |
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
5296 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
5297 |
|
|
else
|
5298 |
|
|
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
5299 |
|
|
fi
|
5300 |
|
|
;;
|
5301 |
|
|
|
5302 |
|
|
osf3* | osf4* | osf5*)
|
5303 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5304 |
|
|
;;
|
5305 |
|
|
|
5306 |
|
|
rdos*)
|
5307 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5308 |
|
|
;;
|
5309 |
|
|
|
5310 |
|
|
solaris*)
|
5311 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5312 |
|
|
;;
|
5313 |
|
|
|
5314 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
5315 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5316 |
|
|
;;
|
5317 |
|
|
|
5318 |
|
|
sysv4 | sysv4.3*)
|
5319 |
|
|
case $host_vendor in
|
5320 |
|
|
motorola)
|
5321 |
|
|
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]'
|
5322 |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
5323 |
|
|
;;
|
5324 |
|
|
ncr)
|
5325 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5326 |
|
|
;;
|
5327 |
|
|
sequent)
|
5328 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
5329 |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
5330 |
|
|
;;
|
5331 |
|
|
sni)
|
5332 |
|
|
lt_cv_file_magic_cmd='/bin/file'
|
5333 |
|
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
5334 |
|
|
lt_cv_file_magic_test_file=/lib/libc.so
|
5335 |
|
|
;;
|
5336 |
|
|
siemens)
|
5337 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5338 |
|
|
;;
|
5339 |
|
|
pc)
|
5340 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5341 |
|
|
;;
|
5342 |
|
|
esac
|
5343 |
|
|
;;
|
5344 |
|
|
|
5345 |
|
|
tpf*)
|
5346 |
|
|
lt_cv_deplibs_check_method=pass_all
|
5347 |
|
|
;;
|
5348 |
|
|
esac
|
5349 |
|
|
|
5350 |
|
|
fi
|
5351 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
5352 |
|
|
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
|
5353 |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
5354 |
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
5355 |
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
5356 |
|
|
|
5357 |
|
|
|
5358 |
|
|
|
5359 |
|
|
|
5360 |
|
|
|
5361 |
|
|
|
5362 |
|
|
|
5363 |
|
|
|
5364 |
|
|
|
5365 |
|
|
|
5366 |
|
|
|
5367 |
|
|
|
5368 |
|
|
if test -n "$ac_tool_prefix"; then
|
5369 |
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
5370 |
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
5371 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5372 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5373 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
5374 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5375 |
|
|
else
|
5376 |
|
|
if test -n "$AR"; then
|
5377 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
5378 |
|
|
else
|
5379 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5380 |
|
|
for as_dir in $PATH
|
5381 |
|
|
do
|
5382 |
|
|
IFS=$as_save_IFS
|
5383 |
|
|
test -z "$as_dir" && as_dir=.
|
5384 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5385 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5386 |
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
5387 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5388 |
|
|
break 2
|
5389 |
|
|
fi
|
5390 |
|
|
done
|
5391 |
|
|
done
|
5392 |
|
|
|
5393 |
|
|
fi
|
5394 |
|
|
fi
|
5395 |
|
|
AR=$ac_cv_prog_AR
|
5396 |
|
|
if test -n "$AR"; then
|
5397 |
|
|
echo "$as_me:$LINENO: result: $AR" >&5
|
5398 |
|
|
echo "${ECHO_T}$AR" >&6
|
5399 |
|
|
else
|
5400 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5401 |
|
|
echo "${ECHO_T}no" >&6
|
5402 |
|
|
fi
|
5403 |
|
|
|
5404 |
|
|
fi
|
5405 |
|
|
if test -z "$ac_cv_prog_AR"; then
|
5406 |
|
|
ac_ct_AR=$AR
|
5407 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
5408 |
|
|
set dummy ar; ac_word=$2
|
5409 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5410 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5411 |
|
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
5412 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5413 |
|
|
else
|
5414 |
|
|
if test -n "$ac_ct_AR"; then
|
5415 |
|
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
5416 |
|
|
else
|
5417 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5418 |
|
|
for as_dir in $PATH
|
5419 |
|
|
do
|
5420 |
|
|
IFS=$as_save_IFS
|
5421 |
|
|
test -z "$as_dir" && as_dir=.
|
5422 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5423 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5424 |
|
|
ac_cv_prog_ac_ct_AR="ar"
|
5425 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5426 |
|
|
break 2
|
5427 |
|
|
fi
|
5428 |
|
|
done
|
5429 |
|
|
done
|
5430 |
|
|
|
5431 |
|
|
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
|
5432 |
|
|
fi
|
5433 |
|
|
fi
|
5434 |
|
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
5435 |
|
|
if test -n "$ac_ct_AR"; then
|
5436 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
5437 |
|
|
echo "${ECHO_T}$ac_ct_AR" >&6
|
5438 |
|
|
else
|
5439 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5440 |
|
|
echo "${ECHO_T}no" >&6
|
5441 |
|
|
fi
|
5442 |
|
|
|
5443 |
|
|
AR=$ac_ct_AR
|
5444 |
|
|
else
|
5445 |
|
|
AR="$ac_cv_prog_AR"
|
5446 |
|
|
fi
|
5447 |
|
|
|
5448 |
|
|
test -z "$AR" && AR=ar
|
5449 |
|
|
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
5450 |
|
|
|
5451 |
|
|
|
5452 |
|
|
|
5453 |
|
|
|
5454 |
|
|
|
5455 |
|
|
|
5456 |
|
|
|
5457 |
|
|
|
5458 |
|
|
|
5459 |
|
|
|
5460 |
|
|
|
5461 |
|
|
if test -n "$ac_tool_prefix"; then
|
5462 |
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
5463 |
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
5464 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5465 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5466 |
|
|
if test "${ac_cv_prog_STRIP+set}" = set; then
|
5467 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5468 |
|
|
else
|
5469 |
|
|
if test -n "$STRIP"; then
|
5470 |
|
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
5471 |
|
|
else
|
5472 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5473 |
|
|
for as_dir in $PATH
|
5474 |
|
|
do
|
5475 |
|
|
IFS=$as_save_IFS
|
5476 |
|
|
test -z "$as_dir" && as_dir=.
|
5477 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5478 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5479 |
|
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
5480 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5481 |
|
|
break 2
|
5482 |
|
|
fi
|
5483 |
|
|
done
|
5484 |
|
|
done
|
5485 |
|
|
|
5486 |
|
|
fi
|
5487 |
|
|
fi
|
5488 |
|
|
STRIP=$ac_cv_prog_STRIP
|
5489 |
|
|
if test -n "$STRIP"; then
|
5490 |
|
|
echo "$as_me:$LINENO: result: $STRIP" >&5
|
5491 |
|
|
echo "${ECHO_T}$STRIP" >&6
|
5492 |
|
|
else
|
5493 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5494 |
|
|
echo "${ECHO_T}no" >&6
|
5495 |
|
|
fi
|
5496 |
|
|
|
5497 |
|
|
fi
|
5498 |
|
|
if test -z "$ac_cv_prog_STRIP"; then
|
5499 |
|
|
ac_ct_STRIP=$STRIP
|
5500 |
|
|
# Extract the first word of "strip", so it can be a program name with args.
|
5501 |
|
|
set dummy strip; ac_word=$2
|
5502 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5503 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5504 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
5505 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5506 |
|
|
else
|
5507 |
|
|
if test -n "$ac_ct_STRIP"; then
|
5508 |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
5509 |
|
|
else
|
5510 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5511 |
|
|
for as_dir in $PATH
|
5512 |
|
|
do
|
5513 |
|
|
IFS=$as_save_IFS
|
5514 |
|
|
test -z "$as_dir" && as_dir=.
|
5515 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5516 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5517 |
|
|
ac_cv_prog_ac_ct_STRIP="strip"
|
5518 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5519 |
|
|
break 2
|
5520 |
|
|
fi
|
5521 |
|
|
done
|
5522 |
|
|
done
|
5523 |
|
|
|
5524 |
|
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
5525 |
|
|
fi
|
5526 |
|
|
fi
|
5527 |
|
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
5528 |
|
|
if test -n "$ac_ct_STRIP"; then
|
5529 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
5530 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6
|
5531 |
|
|
else
|
5532 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5533 |
|
|
echo "${ECHO_T}no" >&6
|
5534 |
|
|
fi
|
5535 |
|
|
|
5536 |
|
|
STRIP=$ac_ct_STRIP
|
5537 |
|
|
else
|
5538 |
|
|
STRIP="$ac_cv_prog_STRIP"
|
5539 |
|
|
fi
|
5540 |
|
|
|
5541 |
|
|
test -z "$STRIP" && STRIP=:
|
5542 |
|
|
|
5543 |
|
|
|
5544 |
|
|
|
5545 |
|
|
|
5546 |
|
|
|
5547 |
|
|
|
5548 |
|
|
if test -n "$ac_tool_prefix"; then
|
5549 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
5550 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
5551 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5552 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5553 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
5554 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5555 |
|
|
else
|
5556 |
|
|
if test -n "$RANLIB"; then
|
5557 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
5558 |
|
|
else
|
5559 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5560 |
|
|
for as_dir in $PATH
|
5561 |
|
|
do
|
5562 |
|
|
IFS=$as_save_IFS
|
5563 |
|
|
test -z "$as_dir" && as_dir=.
|
5564 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5565 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5566 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
5567 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5568 |
|
|
break 2
|
5569 |
|
|
fi
|
5570 |
|
|
done
|
5571 |
|
|
done
|
5572 |
|
|
|
5573 |
|
|
fi
|
5574 |
|
|
fi
|
5575 |
|
|
RANLIB=$ac_cv_prog_RANLIB
|
5576 |
|
|
if test -n "$RANLIB"; then
|
5577 |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5
|
5578 |
|
|
echo "${ECHO_T}$RANLIB" >&6
|
5579 |
|
|
else
|
5580 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5581 |
|
|
echo "${ECHO_T}no" >&6
|
5582 |
|
|
fi
|
5583 |
|
|
|
5584 |
|
|
fi
|
5585 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
5586 |
|
|
ac_ct_RANLIB=$RANLIB
|
5587 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
5588 |
|
|
set dummy ranlib; ac_word=$2
|
5589 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
5590 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
5591 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
5592 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5593 |
|
|
else
|
5594 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
5595 |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
5596 |
|
|
else
|
5597 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
5598 |
|
|
for as_dir in $PATH
|
5599 |
|
|
do
|
5600 |
|
|
IFS=$as_save_IFS
|
5601 |
|
|
test -z "$as_dir" && as_dir=.
|
5602 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
5603 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
5604 |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
5605 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
5606 |
|
|
break 2
|
5607 |
|
|
fi
|
5608 |
|
|
done
|
5609 |
|
|
done
|
5610 |
|
|
|
5611 |
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
5612 |
|
|
fi
|
5613 |
|
|
fi
|
5614 |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
5615 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
5616 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
5617 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
5618 |
|
|
else
|
5619 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
5620 |
|
|
echo "${ECHO_T}no" >&6
|
5621 |
|
|
fi
|
5622 |
|
|
|
5623 |
|
|
RANLIB=$ac_ct_RANLIB
|
5624 |
|
|
else
|
5625 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
5626 |
|
|
fi
|
5627 |
|
|
|
5628 |
|
|
test -z "$RANLIB" && RANLIB=:
|
5629 |
|
|
|
5630 |
|
|
|
5631 |
|
|
|
5632 |
|
|
|
5633 |
|
|
|
5634 |
|
|
|
5635 |
|
|
# Determine commands to create old-style static archives.
|
5636 |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
5637 |
|
|
old_postinstall_cmds='chmod 644 $oldlib'
|
5638 |
|
|
old_postuninstall_cmds=
|
5639 |
|
|
|
5640 |
|
|
if test -n "$RANLIB"; then
|
5641 |
|
|
case $host_os in
|
5642 |
|
|
openbsd*)
|
5643 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
5644 |
|
|
;;
|
5645 |
|
|
*)
|
5646 |
|
|
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
5647 |
|
|
;;
|
5648 |
|
|
esac
|
5649 |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
5650 |
|
|
fi
|
5651 |
|
|
|
5652 |
|
|
|
5653 |
|
|
|
5654 |
|
|
|
5655 |
|
|
|
5656 |
|
|
|
5657 |
|
|
|
5658 |
|
|
|
5659 |
|
|
|
5660 |
|
|
|
5661 |
|
|
|
5662 |
|
|
|
5663 |
|
|
|
5664 |
|
|
|
5665 |
|
|
|
5666 |
|
|
|
5667 |
|
|
|
5668 |
|
|
|
5669 |
|
|
|
5670 |
|
|
|
5671 |
|
|
|
5672 |
|
|
|
5673 |
|
|
|
5674 |
|
|
|
5675 |
|
|
|
5676 |
|
|
|
5677 |
|
|
|
5678 |
|
|
|
5679 |
|
|
|
5680 |
|
|
|
5681 |
|
|
|
5682 |
|
|
|
5683 |
|
|
|
5684 |
|
|
|
5685 |
|
|
# If no C compiler was specified, use CC.
|
5686 |
|
|
LTCC=${LTCC-"$CC"}
|
5687 |
|
|
|
5688 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
5689 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
5690 |
|
|
|
5691 |
|
|
# Allow CC to be a program name with arguments.
|
5692 |
|
|
compiler=$CC
|
5693 |
|
|
|
5694 |
|
|
|
5695 |
|
|
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
5696 |
|
|
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
5697 |
|
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
|
5698 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
5699 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5700 |
|
|
else
|
5701 |
|
|
|
5702 |
|
|
# These are sane defaults that work on at least a few old systems.
|
5703 |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
5704 |
|
|
|
5705 |
|
|
# Character class describing NM global symbol codes.
|
5706 |
|
|
symcode='[BCDEGRST]'
|
5707 |
|
|
|
5708 |
|
|
# Regexp to match symbols that can be accessed directly from C.
|
5709 |
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
5710 |
|
|
|
5711 |
|
|
# Define system-specific variables.
|
5712 |
|
|
case $host_os in
|
5713 |
|
|
aix*)
|
5714 |
|
|
symcode='[BCDT]'
|
5715 |
|
|
;;
|
5716 |
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
5717 |
|
|
symcode='[ABCDGISTW]'
|
5718 |
|
|
;;
|
5719 |
|
|
hpux*)
|
5720 |
|
|
if test "$host_cpu" = ia64; then
|
5721 |
|
|
symcode='[ABCDEGRST]'
|
5722 |
|
|
fi
|
5723 |
|
|
;;
|
5724 |
|
|
irix* | nonstopux*)
|
5725 |
|
|
symcode='[BCDEGRST]'
|
5726 |
|
|
;;
|
5727 |
|
|
osf*)
|
5728 |
|
|
symcode='[BCDEGQRST]'
|
5729 |
|
|
;;
|
5730 |
|
|
solaris*)
|
5731 |
|
|
symcode='[BDRT]'
|
5732 |
|
|
;;
|
5733 |
|
|
sco3.2v5*)
|
5734 |
|
|
symcode='[DT]'
|
5735 |
|
|
;;
|
5736 |
|
|
sysv4.2uw2*)
|
5737 |
|
|
symcode='[DT]'
|
5738 |
|
|
;;
|
5739 |
|
|
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
5740 |
|
|
symcode='[ABDT]'
|
5741 |
|
|
;;
|
5742 |
|
|
sysv4)
|
5743 |
|
|
symcode='[DFNSTU]'
|
5744 |
|
|
;;
|
5745 |
|
|
esac
|
5746 |
|
|
|
5747 |
|
|
# If we're using GNU nm, then use its standard symbol codes.
|
5748 |
|
|
case `$NM -V 2>&1` in
|
5749 |
|
|
*GNU* | *'with BFD'*)
|
5750 |
|
|
symcode='[ABCDGIRSTW]' ;;
|
5751 |
|
|
esac
|
5752 |
|
|
|
5753 |
|
|
# Transform an extracted symbol line into a proper C declaration.
|
5754 |
|
|
# Some systems (esp. on ia64) link data and code symbols differently,
|
5755 |
|
|
# so use this general approach.
|
5756 |
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
5757 |
|
|
|
5758 |
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
5759 |
|
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
5760 |
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
5761 |
|
|
|
5762 |
|
|
# Handle CRLF in mingw tool chain
|
5763 |
|
|
opt_cr=
|
5764 |
|
|
case $build_os in
|
5765 |
|
|
mingw*)
|
5766 |
|
|
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
5767 |
|
|
;;
|
5768 |
|
|
esac
|
5769 |
|
|
|
5770 |
|
|
# Try without a prefix underscore, then with it.
|
5771 |
|
|
for ac_symprfx in "" "_"; do
|
5772 |
|
|
|
5773 |
|
|
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
5774 |
|
|
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
5775 |
|
|
|
5776 |
|
|
# Write the raw and C identifiers.
|
5777 |
|
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
5778 |
|
|
# Fake it for dumpbin and say T for any non-static function
|
5779 |
|
|
# and D for any global variable.
|
5780 |
|
|
# Also find C++ and __fastcall symbols from MSVC++,
|
5781 |
|
|
# which start with @ or ?.
|
5782 |
|
|
lt_cv_sys_global_symbol_pipe="$AWK '"\
|
5783 |
|
|
" {last_section=section; section=\$ 3};"\
|
5784 |
|
|
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
5785 |
|
|
" \$ 0!~/External *\|/{next};"\
|
5786 |
|
|
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
5787 |
|
|
" {if(hide[section]) next};"\
|
5788 |
|
|
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
|
5789 |
|
|
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
|
5790 |
|
|
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
|
5791 |
|
|
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
|
5792 |
|
|
" ' prfx=^$ac_symprfx"
|
5793 |
|
|
else
|
5794 |
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
5795 |
|
|
fi
|
5796 |
|
|
|
5797 |
|
|
# Check to see that the pipe works correctly.
|
5798 |
|
|
pipe_works=no
|
5799 |
|
|
|
5800 |
|
|
rm -f conftest*
|
5801 |
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
5802 |
|
|
#ifdef __cplusplus
|
5803 |
|
|
extern "C" {
|
5804 |
|
|
#endif
|
5805 |
|
|
char nm_test_var;
|
5806 |
|
|
void nm_test_func(void);
|
5807 |
|
|
void nm_test_func(void){}
|
5808 |
|
|
#ifdef __cplusplus
|
5809 |
|
|
}
|
5810 |
|
|
#endif
|
5811 |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);}
|
5812 |
|
|
_LT_EOF
|
5813 |
|
|
|
5814 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5815 |
|
|
(eval $ac_compile) 2>&5
|
5816 |
|
|
ac_status=$?
|
5817 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5818 |
|
|
(exit $ac_status); }; then
|
5819 |
|
|
# Now try to grab the symbols.
|
5820 |
|
|
nlist=conftest.nm
|
5821 |
|
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
5822 |
|
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
5823 |
|
|
ac_status=$?
|
5824 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5825 |
|
|
(exit $ac_status); } && test -s "$nlist"; then
|
5826 |
|
|
# Try sorting and uniquifying the output.
|
5827 |
|
|
if sort "$nlist" | uniq > "$nlist"T; then
|
5828 |
|
|
mv -f "$nlist"T "$nlist"
|
5829 |
|
|
else
|
5830 |
|
|
rm -f "$nlist"T
|
5831 |
|
|
fi
|
5832 |
|
|
|
5833 |
|
|
# Make sure that we snagged all the symbols we need.
|
5834 |
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
5835 |
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
5836 |
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
5837 |
|
|
#ifdef __cplusplus
|
5838 |
|
|
extern "C" {
|
5839 |
|
|
#endif
|
5840 |
|
|
|
5841 |
|
|
_LT_EOF
|
5842 |
|
|
# Now generate the symbol file.
|
5843 |
|
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
5844 |
|
|
|
5845 |
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
5846 |
|
|
|
5847 |
|
|
/* The mapping between symbol names and symbols. */
|
5848 |
|
|
const struct {
|
5849 |
|
|
const char *name;
|
5850 |
|
|
void *address;
|
5851 |
|
|
}
|
5852 |
|
|
lt__PROGRAM__LTX_preloaded_symbols[] =
|
5853 |
|
|
{
|
5854 |
|
|
{ "@PROGRAM@", (void *) 0 },
|
5855 |
|
|
_LT_EOF
|
5856 |
|
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
5857 |
|
|
cat <<\_LT_EOF >> conftest.$ac_ext
|
5858 |
|
|
{0, (void *) 0}
|
5859 |
|
|
};
|
5860 |
|
|
|
5861 |
|
|
/* This works around a problem in FreeBSD linker */
|
5862 |
|
|
#ifdef FREEBSD_WORKAROUND
|
5863 |
|
|
static const void *lt_preloaded_setup() {
|
5864 |
|
|
return lt__PROGRAM__LTX_preloaded_symbols;
|
5865 |
|
|
}
|
5866 |
|
|
#endif
|
5867 |
|
|
|
5868 |
|
|
#ifdef __cplusplus
|
5869 |
|
|
}
|
5870 |
|
|
#endif
|
5871 |
|
|
_LT_EOF
|
5872 |
|
|
# Now try linking the two files.
|
5873 |
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
5874 |
|
|
lt_save_LIBS="$LIBS"
|
5875 |
|
|
lt_save_CFLAGS="$CFLAGS"
|
5876 |
|
|
LIBS="conftstm.$ac_objext"
|
5877 |
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
5878 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5879 |
|
|
(eval $ac_link) 2>&5
|
5880 |
|
|
ac_status=$?
|
5881 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5882 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
5883 |
|
|
pipe_works=yes
|
5884 |
|
|
fi
|
5885 |
|
|
LIBS="$lt_save_LIBS"
|
5886 |
|
|
CFLAGS="$lt_save_CFLAGS"
|
5887 |
|
|
else
|
5888 |
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
5889 |
|
|
fi
|
5890 |
|
|
else
|
5891 |
|
|
echo "cannot find nm_test_var in $nlist" >&5
|
5892 |
|
|
fi
|
5893 |
|
|
else
|
5894 |
|
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
5895 |
|
|
fi
|
5896 |
|
|
else
|
5897 |
|
|
echo "$progname: failed program was:" >&5
|
5898 |
|
|
cat conftest.$ac_ext >&5
|
5899 |
|
|
fi
|
5900 |
|
|
rm -rf conftest* conftst*
|
5901 |
|
|
|
5902 |
|
|
# Do not use the global_symbol_pipe unless it works.
|
5903 |
|
|
if test "$pipe_works" = yes; then
|
5904 |
|
|
break
|
5905 |
|
|
else
|
5906 |
|
|
lt_cv_sys_global_symbol_pipe=
|
5907 |
|
|
fi
|
5908 |
|
|
done
|
5909 |
|
|
|
5910 |
|
|
fi
|
5911 |
|
|
|
5912 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
5913 |
|
|
lt_cv_sys_global_symbol_to_cdecl=
|
5914 |
|
|
fi
|
5915 |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
5916 |
|
|
echo "$as_me:$LINENO: result: failed" >&5
|
5917 |
|
|
echo "${ECHO_T}failed" >&6
|
5918 |
|
|
else
|
5919 |
|
|
echo "$as_me:$LINENO: result: ok" >&5
|
5920 |
|
|
echo "${ECHO_T}ok" >&6
|
5921 |
|
|
fi
|
5922 |
|
|
|
5923 |
|
|
|
5924 |
|
|
|
5925 |
|
|
|
5926 |
|
|
|
5927 |
|
|
|
5928 |
|
|
|
5929 |
|
|
|
5930 |
|
|
|
5931 |
|
|
|
5932 |
|
|
|
5933 |
|
|
|
5934 |
|
|
|
5935 |
|
|
|
5936 |
|
|
|
5937 |
|
|
|
5938 |
|
|
|
5939 |
|
|
|
5940 |
|
|
|
5941 |
|
|
|
5942 |
|
|
|
5943 |
|
|
|
5944 |
|
|
|
5945 |
|
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
5946 |
|
|
if test "${enable_libtool_lock+set}" = set; then
|
5947 |
|
|
enableval="$enable_libtool_lock"
|
5948 |
|
|
|
5949 |
|
|
fi;
|
5950 |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
5951 |
|
|
|
5952 |
|
|
# Some flags need to be propagated to the compiler or linker for good
|
5953 |
|
|
# libtool support.
|
5954 |
|
|
case $host in
|
5955 |
|
|
ia64-*-hpux*)
|
5956 |
|
|
# Find out which ABI we are using.
|
5957 |
|
|
echo 'int i;' > conftest.$ac_ext
|
5958 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5959 |
|
|
(eval $ac_compile) 2>&5
|
5960 |
|
|
ac_status=$?
|
5961 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5962 |
|
|
(exit $ac_status); }; then
|
5963 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
5964 |
|
|
*ELF-32*)
|
5965 |
|
|
HPUX_IA64_MODE="32"
|
5966 |
|
|
;;
|
5967 |
|
|
*ELF-64*)
|
5968 |
|
|
HPUX_IA64_MODE="64"
|
5969 |
|
|
;;
|
5970 |
|
|
esac
|
5971 |
|
|
fi
|
5972 |
|
|
rm -rf conftest*
|
5973 |
|
|
;;
|
5974 |
|
|
*-*-irix6*)
|
5975 |
|
|
# Find out which ABI we are using.
|
5976 |
|
|
echo '#line 5976 "configure"' > conftest.$ac_ext
|
5977 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5978 |
|
|
(eval $ac_compile) 2>&5
|
5979 |
|
|
ac_status=$?
|
5980 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5981 |
|
|
(exit $ac_status); }; then
|
5982 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
5983 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
5984 |
|
|
*32-bit*)
|
5985 |
|
|
LD="${LD-ld} -melf32bsmip"
|
5986 |
|
|
;;
|
5987 |
|
|
*N32*)
|
5988 |
|
|
LD="${LD-ld} -melf32bmipn32"
|
5989 |
|
|
;;
|
5990 |
|
|
*64-bit*)
|
5991 |
|
|
LD="${LD-ld} -melf64bmip"
|
5992 |
|
|
;;
|
5993 |
|
|
esac
|
5994 |
|
|
else
|
5995 |
|
|
case `/usr/bin/file conftest.$ac_objext` in
|
5996 |
|
|
*32-bit*)
|
5997 |
|
|
LD="${LD-ld} -32"
|
5998 |
|
|
;;
|
5999 |
|
|
*N32*)
|
6000 |
|
|
LD="${LD-ld} -n32"
|
6001 |
|
|
;;
|
6002 |
|
|
*64-bit*)
|
6003 |
|
|
LD="${LD-ld} -64"
|
6004 |
|
|
;;
|
6005 |
|
|
esac
|
6006 |
|
|
fi
|
6007 |
|
|
fi
|
6008 |
|
|
rm -rf conftest*
|
6009 |
|
|
;;
|
6010 |
|
|
|
6011 |
|
|
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
6012 |
|
|
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
6013 |
|
|
# Find out which ABI we are using.
|
6014 |
|
|
echo 'int i;' > conftest.$ac_ext
|
6015 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6016 |
|
|
(eval $ac_compile) 2>&5
|
6017 |
|
|
ac_status=$?
|
6018 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6019 |
|
|
(exit $ac_status); }; then
|
6020 |
|
|
case `/usr/bin/file conftest.o` in
|
6021 |
|
|
*32-bit*)
|
6022 |
|
|
case $host in
|
6023 |
|
|
x86_64-*kfreebsd*-gnu)
|
6024 |
|
|
LD="${LD-ld} -m elf_i386_fbsd"
|
6025 |
|
|
;;
|
6026 |
|
|
x86_64-*linux*)
|
6027 |
|
|
LD="${LD-ld} -m elf_i386"
|
6028 |
|
|
;;
|
6029 |
|
|
ppc64-*linux*|powerpc64-*linux*)
|
6030 |
|
|
LD="${LD-ld} -m elf32ppclinux"
|
6031 |
|
|
;;
|
6032 |
|
|
s390x-*linux*)
|
6033 |
|
|
LD="${LD-ld} -m elf_s390"
|
6034 |
|
|
;;
|
6035 |
|
|
sparc64-*linux*)
|
6036 |
|
|
LD="${LD-ld} -m elf32_sparc"
|
6037 |
|
|
;;
|
6038 |
|
|
esac
|
6039 |
|
|
;;
|
6040 |
|
|
*64-bit*)
|
6041 |
|
|
case $host in
|
6042 |
|
|
x86_64-*kfreebsd*-gnu)
|
6043 |
|
|
LD="${LD-ld} -m elf_x86_64_fbsd"
|
6044 |
|
|
;;
|
6045 |
|
|
x86_64-*linux*)
|
6046 |
|
|
LD="${LD-ld} -m elf_x86_64"
|
6047 |
|
|
;;
|
6048 |
|
|
ppc*-*linux*|powerpc*-*linux*)
|
6049 |
|
|
LD="${LD-ld} -m elf64ppc"
|
6050 |
|
|
;;
|
6051 |
|
|
s390*-*linux*|s390*-*tpf*)
|
6052 |
|
|
LD="${LD-ld} -m elf64_s390"
|
6053 |
|
|
;;
|
6054 |
|
|
sparc*-*linux*)
|
6055 |
|
|
LD="${LD-ld} -m elf64_sparc"
|
6056 |
|
|
;;
|
6057 |
|
|
esac
|
6058 |
|
|
;;
|
6059 |
|
|
esac
|
6060 |
|
|
fi
|
6061 |
|
|
rm -rf conftest*
|
6062 |
|
|
;;
|
6063 |
|
|
|
6064 |
|
|
*-*-sco3.2v5*)
|
6065 |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
6066 |
|
|
SAVE_CFLAGS="$CFLAGS"
|
6067 |
|
|
CFLAGS="$CFLAGS -belf"
|
6068 |
|
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
6069 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
|
6070 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
6071 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6072 |
|
|
else
|
6073 |
|
|
ac_ext=c
|
6074 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6075 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6076 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6077 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6078 |
|
|
|
6079 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6080 |
|
|
/* confdefs.h. */
|
6081 |
|
|
_ACEOF
|
6082 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6083 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6084 |
|
|
/* end confdefs.h. */
|
6085 |
|
|
|
6086 |
|
|
int
|
6087 |
|
|
main ()
|
6088 |
|
|
{
|
6089 |
|
|
|
6090 |
|
|
;
|
6091 |
|
|
return 0;
|
6092 |
|
|
}
|
6093 |
|
|
_ACEOF
|
6094 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6095 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6096 |
|
|
(eval $ac_link) 2>conftest.er1
|
6097 |
|
|
ac_status=$?
|
6098 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6099 |
|
|
rm -f conftest.er1
|
6100 |
|
|
cat conftest.err >&5
|
6101 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6102 |
|
|
(exit $ac_status); } &&
|
6103 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6104 |
|
|
|| test ! -s conftest.err'
|
6105 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6106 |
|
|
(eval $ac_try) 2>&5
|
6107 |
|
|
ac_status=$?
|
6108 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6109 |
|
|
(exit $ac_status); }; } &&
|
6110 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6111 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6112 |
|
|
(eval $ac_try) 2>&5
|
6113 |
|
|
ac_status=$?
|
6114 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6115 |
|
|
(exit $ac_status); }; }; then
|
6116 |
|
|
lt_cv_cc_needs_belf=yes
|
6117 |
|
|
else
|
6118 |
|
|
echo "$as_me: failed program was:" >&5
|
6119 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6120 |
|
|
|
6121 |
|
|
lt_cv_cc_needs_belf=no
|
6122 |
|
|
fi
|
6123 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6124 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6125 |
|
|
ac_ext=c
|
6126 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6127 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6128 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6129 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6130 |
|
|
|
6131 |
|
|
fi
|
6132 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
6133 |
|
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
|
6134 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
6135 |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
6136 |
|
|
CFLAGS="$SAVE_CFLAGS"
|
6137 |
|
|
fi
|
6138 |
|
|
;;
|
6139 |
|
|
sparc*-*solaris*)
|
6140 |
|
|
# Find out which ABI we are using.
|
6141 |
|
|
echo 'int i;' > conftest.$ac_ext
|
6142 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6143 |
|
|
(eval $ac_compile) 2>&5
|
6144 |
|
|
ac_status=$?
|
6145 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6146 |
|
|
(exit $ac_status); }; then
|
6147 |
|
|
case `/usr/bin/file conftest.o` in
|
6148 |
|
|
*64-bit*)
|
6149 |
|
|
case $lt_cv_prog_gnu_ld in
|
6150 |
|
|
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
6151 |
|
|
*)
|
6152 |
|
|
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
6153 |
|
|
LD="${LD-ld} -64"
|
6154 |
|
|
fi
|
6155 |
|
|
;;
|
6156 |
|
|
esac
|
6157 |
|
|
;;
|
6158 |
|
|
esac
|
6159 |
|
|
fi
|
6160 |
|
|
rm -rf conftest*
|
6161 |
|
|
;;
|
6162 |
|
|
esac
|
6163 |
|
|
|
6164 |
|
|
need_locks="$enable_libtool_lock"
|
6165 |
|
|
|
6166 |
|
|
|
6167 |
|
|
case $host_os in
|
6168 |
|
|
rhapsody* | darwin*)
|
6169 |
|
|
if test -n "$ac_tool_prefix"; then
|
6170 |
|
|
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
6171 |
|
|
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
6172 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6173 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6174 |
|
|
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
|
6175 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6176 |
|
|
else
|
6177 |
|
|
if test -n "$DSYMUTIL"; then
|
6178 |
|
|
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
6179 |
|
|
else
|
6180 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6181 |
|
|
for as_dir in $PATH
|
6182 |
|
|
do
|
6183 |
|
|
IFS=$as_save_IFS
|
6184 |
|
|
test -z "$as_dir" && as_dir=.
|
6185 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6186 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6187 |
|
|
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
6188 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6189 |
|
|
break 2
|
6190 |
|
|
fi
|
6191 |
|
|
done
|
6192 |
|
|
done
|
6193 |
|
|
|
6194 |
|
|
fi
|
6195 |
|
|
fi
|
6196 |
|
|
DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
6197 |
|
|
if test -n "$DSYMUTIL"; then
|
6198 |
|
|
echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
|
6199 |
|
|
echo "${ECHO_T}$DSYMUTIL" >&6
|
6200 |
|
|
else
|
6201 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6202 |
|
|
echo "${ECHO_T}no" >&6
|
6203 |
|
|
fi
|
6204 |
|
|
|
6205 |
|
|
fi
|
6206 |
|
|
if test -z "$ac_cv_prog_DSYMUTIL"; then
|
6207 |
|
|
ac_ct_DSYMUTIL=$DSYMUTIL
|
6208 |
|
|
# Extract the first word of "dsymutil", so it can be a program name with args.
|
6209 |
|
|
set dummy dsymutil; ac_word=$2
|
6210 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6211 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6212 |
|
|
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
|
6213 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6214 |
|
|
else
|
6215 |
|
|
if test -n "$ac_ct_DSYMUTIL"; then
|
6216 |
|
|
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
6217 |
|
|
else
|
6218 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6219 |
|
|
for as_dir in $PATH
|
6220 |
|
|
do
|
6221 |
|
|
IFS=$as_save_IFS
|
6222 |
|
|
test -z "$as_dir" && as_dir=.
|
6223 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6224 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6225 |
|
|
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
6226 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6227 |
|
|
break 2
|
6228 |
|
|
fi
|
6229 |
|
|
done
|
6230 |
|
|
done
|
6231 |
|
|
|
6232 |
|
|
test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
|
6233 |
|
|
fi
|
6234 |
|
|
fi
|
6235 |
|
|
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
6236 |
|
|
if test -n "$ac_ct_DSYMUTIL"; then
|
6237 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
|
6238 |
|
|
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
|
6239 |
|
|
else
|
6240 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6241 |
|
|
echo "${ECHO_T}no" >&6
|
6242 |
|
|
fi
|
6243 |
|
|
|
6244 |
|
|
DSYMUTIL=$ac_ct_DSYMUTIL
|
6245 |
|
|
else
|
6246 |
|
|
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
6247 |
|
|
fi
|
6248 |
|
|
|
6249 |
|
|
if test -n "$ac_tool_prefix"; then
|
6250 |
|
|
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
6251 |
|
|
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
6252 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6253 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6254 |
|
|
if test "${ac_cv_prog_NMEDIT+set}" = set; then
|
6255 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6256 |
|
|
else
|
6257 |
|
|
if test -n "$NMEDIT"; then
|
6258 |
|
|
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
6259 |
|
|
else
|
6260 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6261 |
|
|
for as_dir in $PATH
|
6262 |
|
|
do
|
6263 |
|
|
IFS=$as_save_IFS
|
6264 |
|
|
test -z "$as_dir" && as_dir=.
|
6265 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6266 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6267 |
|
|
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
6268 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6269 |
|
|
break 2
|
6270 |
|
|
fi
|
6271 |
|
|
done
|
6272 |
|
|
done
|
6273 |
|
|
|
6274 |
|
|
fi
|
6275 |
|
|
fi
|
6276 |
|
|
NMEDIT=$ac_cv_prog_NMEDIT
|
6277 |
|
|
if test -n "$NMEDIT"; then
|
6278 |
|
|
echo "$as_me:$LINENO: result: $NMEDIT" >&5
|
6279 |
|
|
echo "${ECHO_T}$NMEDIT" >&6
|
6280 |
|
|
else
|
6281 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6282 |
|
|
echo "${ECHO_T}no" >&6
|
6283 |
|
|
fi
|
6284 |
|
|
|
6285 |
|
|
fi
|
6286 |
|
|
if test -z "$ac_cv_prog_NMEDIT"; then
|
6287 |
|
|
ac_ct_NMEDIT=$NMEDIT
|
6288 |
|
|
# Extract the first word of "nmedit", so it can be a program name with args.
|
6289 |
|
|
set dummy nmedit; ac_word=$2
|
6290 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6291 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6292 |
|
|
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
|
6293 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6294 |
|
|
else
|
6295 |
|
|
if test -n "$ac_ct_NMEDIT"; then
|
6296 |
|
|
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
6297 |
|
|
else
|
6298 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6299 |
|
|
for as_dir in $PATH
|
6300 |
|
|
do
|
6301 |
|
|
IFS=$as_save_IFS
|
6302 |
|
|
test -z "$as_dir" && as_dir=.
|
6303 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6304 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6305 |
|
|
ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
6306 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6307 |
|
|
break 2
|
6308 |
|
|
fi
|
6309 |
|
|
done
|
6310 |
|
|
done
|
6311 |
|
|
|
6312 |
|
|
test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
|
6313 |
|
|
fi
|
6314 |
|
|
fi
|
6315 |
|
|
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
6316 |
|
|
if test -n "$ac_ct_NMEDIT"; then
|
6317 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
|
6318 |
|
|
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
|
6319 |
|
|
else
|
6320 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6321 |
|
|
echo "${ECHO_T}no" >&6
|
6322 |
|
|
fi
|
6323 |
|
|
|
6324 |
|
|
NMEDIT=$ac_ct_NMEDIT
|
6325 |
|
|
else
|
6326 |
|
|
NMEDIT="$ac_cv_prog_NMEDIT"
|
6327 |
|
|
fi
|
6328 |
|
|
|
6329 |
|
|
if test -n "$ac_tool_prefix"; then
|
6330 |
|
|
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
6331 |
|
|
set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
6332 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6333 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6334 |
|
|
if test "${ac_cv_prog_LIPO+set}" = set; then
|
6335 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6336 |
|
|
else
|
6337 |
|
|
if test -n "$LIPO"; then
|
6338 |
|
|
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
6339 |
|
|
else
|
6340 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6341 |
|
|
for as_dir in $PATH
|
6342 |
|
|
do
|
6343 |
|
|
IFS=$as_save_IFS
|
6344 |
|
|
test -z "$as_dir" && as_dir=.
|
6345 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6346 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6347 |
|
|
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
6348 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6349 |
|
|
break 2
|
6350 |
|
|
fi
|
6351 |
|
|
done
|
6352 |
|
|
done
|
6353 |
|
|
|
6354 |
|
|
fi
|
6355 |
|
|
fi
|
6356 |
|
|
LIPO=$ac_cv_prog_LIPO
|
6357 |
|
|
if test -n "$LIPO"; then
|
6358 |
|
|
echo "$as_me:$LINENO: result: $LIPO" >&5
|
6359 |
|
|
echo "${ECHO_T}$LIPO" >&6
|
6360 |
|
|
else
|
6361 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6362 |
|
|
echo "${ECHO_T}no" >&6
|
6363 |
|
|
fi
|
6364 |
|
|
|
6365 |
|
|
fi
|
6366 |
|
|
if test -z "$ac_cv_prog_LIPO"; then
|
6367 |
|
|
ac_ct_LIPO=$LIPO
|
6368 |
|
|
# Extract the first word of "lipo", so it can be a program name with args.
|
6369 |
|
|
set dummy lipo; ac_word=$2
|
6370 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6371 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6372 |
|
|
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
|
6373 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6374 |
|
|
else
|
6375 |
|
|
if test -n "$ac_ct_LIPO"; then
|
6376 |
|
|
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
6377 |
|
|
else
|
6378 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6379 |
|
|
for as_dir in $PATH
|
6380 |
|
|
do
|
6381 |
|
|
IFS=$as_save_IFS
|
6382 |
|
|
test -z "$as_dir" && as_dir=.
|
6383 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6384 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6385 |
|
|
ac_cv_prog_ac_ct_LIPO="lipo"
|
6386 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6387 |
|
|
break 2
|
6388 |
|
|
fi
|
6389 |
|
|
done
|
6390 |
|
|
done
|
6391 |
|
|
|
6392 |
|
|
test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
|
6393 |
|
|
fi
|
6394 |
|
|
fi
|
6395 |
|
|
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
6396 |
|
|
if test -n "$ac_ct_LIPO"; then
|
6397 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
|
6398 |
|
|
echo "${ECHO_T}$ac_ct_LIPO" >&6
|
6399 |
|
|
else
|
6400 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6401 |
|
|
echo "${ECHO_T}no" >&6
|
6402 |
|
|
fi
|
6403 |
|
|
|
6404 |
|
|
LIPO=$ac_ct_LIPO
|
6405 |
|
|
else
|
6406 |
|
|
LIPO="$ac_cv_prog_LIPO"
|
6407 |
|
|
fi
|
6408 |
|
|
|
6409 |
|
|
if test -n "$ac_tool_prefix"; then
|
6410 |
|
|
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
6411 |
|
|
set dummy ${ac_tool_prefix}otool; ac_word=$2
|
6412 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6413 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6414 |
|
|
if test "${ac_cv_prog_OTOOL+set}" = set; then
|
6415 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6416 |
|
|
else
|
6417 |
|
|
if test -n "$OTOOL"; then
|
6418 |
|
|
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
6419 |
|
|
else
|
6420 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6421 |
|
|
for as_dir in $PATH
|
6422 |
|
|
do
|
6423 |
|
|
IFS=$as_save_IFS
|
6424 |
|
|
test -z "$as_dir" && as_dir=.
|
6425 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6426 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6427 |
|
|
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
6428 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6429 |
|
|
break 2
|
6430 |
|
|
fi
|
6431 |
|
|
done
|
6432 |
|
|
done
|
6433 |
|
|
|
6434 |
|
|
fi
|
6435 |
|
|
fi
|
6436 |
|
|
OTOOL=$ac_cv_prog_OTOOL
|
6437 |
|
|
if test -n "$OTOOL"; then
|
6438 |
|
|
echo "$as_me:$LINENO: result: $OTOOL" >&5
|
6439 |
|
|
echo "${ECHO_T}$OTOOL" >&6
|
6440 |
|
|
else
|
6441 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6442 |
|
|
echo "${ECHO_T}no" >&6
|
6443 |
|
|
fi
|
6444 |
|
|
|
6445 |
|
|
fi
|
6446 |
|
|
if test -z "$ac_cv_prog_OTOOL"; then
|
6447 |
|
|
ac_ct_OTOOL=$OTOOL
|
6448 |
|
|
# Extract the first word of "otool", so it can be a program name with args.
|
6449 |
|
|
set dummy otool; ac_word=$2
|
6450 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6451 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6452 |
|
|
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
|
6453 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6454 |
|
|
else
|
6455 |
|
|
if test -n "$ac_ct_OTOOL"; then
|
6456 |
|
|
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
6457 |
|
|
else
|
6458 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6459 |
|
|
for as_dir in $PATH
|
6460 |
|
|
do
|
6461 |
|
|
IFS=$as_save_IFS
|
6462 |
|
|
test -z "$as_dir" && as_dir=.
|
6463 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6464 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6465 |
|
|
ac_cv_prog_ac_ct_OTOOL="otool"
|
6466 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6467 |
|
|
break 2
|
6468 |
|
|
fi
|
6469 |
|
|
done
|
6470 |
|
|
done
|
6471 |
|
|
|
6472 |
|
|
test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
|
6473 |
|
|
fi
|
6474 |
|
|
fi
|
6475 |
|
|
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
6476 |
|
|
if test -n "$ac_ct_OTOOL"; then
|
6477 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
|
6478 |
|
|
echo "${ECHO_T}$ac_ct_OTOOL" >&6
|
6479 |
|
|
else
|
6480 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6481 |
|
|
echo "${ECHO_T}no" >&6
|
6482 |
|
|
fi
|
6483 |
|
|
|
6484 |
|
|
OTOOL=$ac_ct_OTOOL
|
6485 |
|
|
else
|
6486 |
|
|
OTOOL="$ac_cv_prog_OTOOL"
|
6487 |
|
|
fi
|
6488 |
|
|
|
6489 |
|
|
if test -n "$ac_tool_prefix"; then
|
6490 |
|
|
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
6491 |
|
|
set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
6492 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6493 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6494 |
|
|
if test "${ac_cv_prog_OTOOL64+set}" = set; then
|
6495 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6496 |
|
|
else
|
6497 |
|
|
if test -n "$OTOOL64"; then
|
6498 |
|
|
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
6499 |
|
|
else
|
6500 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6501 |
|
|
for as_dir in $PATH
|
6502 |
|
|
do
|
6503 |
|
|
IFS=$as_save_IFS
|
6504 |
|
|
test -z "$as_dir" && as_dir=.
|
6505 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6506 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6507 |
|
|
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
6508 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6509 |
|
|
break 2
|
6510 |
|
|
fi
|
6511 |
|
|
done
|
6512 |
|
|
done
|
6513 |
|
|
|
6514 |
|
|
fi
|
6515 |
|
|
fi
|
6516 |
|
|
OTOOL64=$ac_cv_prog_OTOOL64
|
6517 |
|
|
if test -n "$OTOOL64"; then
|
6518 |
|
|
echo "$as_me:$LINENO: result: $OTOOL64" >&5
|
6519 |
|
|
echo "${ECHO_T}$OTOOL64" >&6
|
6520 |
|
|
else
|
6521 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6522 |
|
|
echo "${ECHO_T}no" >&6
|
6523 |
|
|
fi
|
6524 |
|
|
|
6525 |
|
|
fi
|
6526 |
|
|
if test -z "$ac_cv_prog_OTOOL64"; then
|
6527 |
|
|
ac_ct_OTOOL64=$OTOOL64
|
6528 |
|
|
# Extract the first word of "otool64", so it can be a program name with args.
|
6529 |
|
|
set dummy otool64; ac_word=$2
|
6530 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
6531 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
6532 |
|
|
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
|
6533 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6534 |
|
|
else
|
6535 |
|
|
if test -n "$ac_ct_OTOOL64"; then
|
6536 |
|
|
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
6537 |
|
|
else
|
6538 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
6539 |
|
|
for as_dir in $PATH
|
6540 |
|
|
do
|
6541 |
|
|
IFS=$as_save_IFS
|
6542 |
|
|
test -z "$as_dir" && as_dir=.
|
6543 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
6544 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
6545 |
|
|
ac_cv_prog_ac_ct_OTOOL64="otool64"
|
6546 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
6547 |
|
|
break 2
|
6548 |
|
|
fi
|
6549 |
|
|
done
|
6550 |
|
|
done
|
6551 |
|
|
|
6552 |
|
|
test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
|
6553 |
|
|
fi
|
6554 |
|
|
fi
|
6555 |
|
|
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
6556 |
|
|
if test -n "$ac_ct_OTOOL64"; then
|
6557 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
|
6558 |
|
|
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
|
6559 |
|
|
else
|
6560 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
6561 |
|
|
echo "${ECHO_T}no" >&6
|
6562 |
|
|
fi
|
6563 |
|
|
|
6564 |
|
|
OTOOL64=$ac_ct_OTOOL64
|
6565 |
|
|
else
|
6566 |
|
|
OTOOL64="$ac_cv_prog_OTOOL64"
|
6567 |
|
|
fi
|
6568 |
|
|
|
6569 |
|
|
|
6570 |
|
|
|
6571 |
|
|
|
6572 |
|
|
|
6573 |
|
|
|
6574 |
|
|
|
6575 |
|
|
|
6576 |
|
|
|
6577 |
|
|
|
6578 |
|
|
|
6579 |
|
|
|
6580 |
|
|
|
6581 |
|
|
|
6582 |
|
|
|
6583 |
|
|
|
6584 |
|
|
|
6585 |
|
|
|
6586 |
|
|
|
6587 |
|
|
|
6588 |
|
|
|
6589 |
|
|
|
6590 |
|
|
|
6591 |
|
|
|
6592 |
|
|
|
6593 |
|
|
|
6594 |
|
|
|
6595 |
|
|
echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
|
6596 |
|
|
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
|
6597 |
|
|
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
|
6598 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6599 |
|
|
else
|
6600 |
|
|
lt_cv_apple_cc_single_mod=no
|
6601 |
|
|
if test -z "${LT_MULTI_MODULE}"; then
|
6602 |
|
|
# By default we will add the -single_module flag. You can override
|
6603 |
|
|
# by either setting the environment variable LT_MULTI_MODULE
|
6604 |
|
|
# non-empty at configure time, or by adding -multi_module to the
|
6605 |
|
|
# link flags.
|
6606 |
|
|
rm -rf libconftest.dylib*
|
6607 |
|
|
echo "int foo(void){return 1;}" > conftest.c
|
6608 |
|
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
6609 |
|
|
-dynamiclib -Wl,-single_module conftest.c" >&5
|
6610 |
|
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
6611 |
|
|
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
6612 |
|
|
_lt_result=$?
|
6613 |
|
|
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
|
6614 |
|
|
lt_cv_apple_cc_single_mod=yes
|
6615 |
|
|
else
|
6616 |
|
|
cat conftest.err >&5
|
6617 |
|
|
fi
|
6618 |
|
|
rm -rf libconftest.dylib*
|
6619 |
|
|
rm -f conftest.*
|
6620 |
|
|
fi
|
6621 |
|
|
fi
|
6622 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
|
6623 |
|
|
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
|
6624 |
|
|
echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
|
6625 |
|
|
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
|
6626 |
|
|
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
|
6627 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6628 |
|
|
else
|
6629 |
|
|
lt_cv_ld_exported_symbols_list=no
|
6630 |
|
|
save_LDFLAGS=$LDFLAGS
|
6631 |
|
|
echo "_main" > conftest.sym
|
6632 |
|
|
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
6633 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6634 |
|
|
/* confdefs.h. */
|
6635 |
|
|
_ACEOF
|
6636 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6637 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6638 |
|
|
/* end confdefs.h. */
|
6639 |
|
|
|
6640 |
|
|
int
|
6641 |
|
|
main ()
|
6642 |
|
|
{
|
6643 |
|
|
|
6644 |
|
|
;
|
6645 |
|
|
return 0;
|
6646 |
|
|
}
|
6647 |
|
|
_ACEOF
|
6648 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6649 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6650 |
|
|
(eval $ac_link) 2>conftest.er1
|
6651 |
|
|
ac_status=$?
|
6652 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6653 |
|
|
rm -f conftest.er1
|
6654 |
|
|
cat conftest.err >&5
|
6655 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6656 |
|
|
(exit $ac_status); } &&
|
6657 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6658 |
|
|
|| test ! -s conftest.err'
|
6659 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6660 |
|
|
(eval $ac_try) 2>&5
|
6661 |
|
|
ac_status=$?
|
6662 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6663 |
|
|
(exit $ac_status); }; } &&
|
6664 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6665 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6666 |
|
|
(eval $ac_try) 2>&5
|
6667 |
|
|
ac_status=$?
|
6668 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6669 |
|
|
(exit $ac_status); }; }; then
|
6670 |
|
|
lt_cv_ld_exported_symbols_list=yes
|
6671 |
|
|
else
|
6672 |
|
|
echo "$as_me: failed program was:" >&5
|
6673 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6674 |
|
|
|
6675 |
|
|
lt_cv_ld_exported_symbols_list=no
|
6676 |
|
|
fi
|
6677 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6678 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6679 |
|
|
LDFLAGS="$save_LDFLAGS"
|
6680 |
|
|
|
6681 |
|
|
fi
|
6682 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
|
6683 |
|
|
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
|
6684 |
|
|
case $host_os in
|
6685 |
|
|
rhapsody* | darwin1.[012])
|
6686 |
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
|
6687 |
|
|
darwin1.*)
|
6688 |
|
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
6689 |
|
|
darwin*) # darwin 5.x on
|
6690 |
|
|
# if running on 10.5 or later, the deployment target defaults
|
6691 |
|
|
# to the OS version, if on x86, and 10.4, the deployment
|
6692 |
|
|
# target defaults to 10.4. Don't you love it?
|
6693 |
|
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
6694 |
|
|
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
6695 |
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
6696 |
|
|
10.[012]*)
|
6697 |
|
|
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
|
6698 |
|
|
10.*)
|
6699 |
|
|
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
|
6700 |
|
|
esac
|
6701 |
|
|
;;
|
6702 |
|
|
esac
|
6703 |
|
|
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
|
6704 |
|
|
_lt_dar_single_mod='$single_module'
|
6705 |
|
|
fi
|
6706 |
|
|
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
|
6707 |
|
|
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
|
6708 |
|
|
else
|
6709 |
|
|
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
6710 |
|
|
fi
|
6711 |
|
|
if test "$DSYMUTIL" != ":"; then
|
6712 |
|
|
_lt_dsymutil='~$DSYMUTIL $lib || :'
|
6713 |
|
|
else
|
6714 |
|
|
_lt_dsymutil=
|
6715 |
|
|
fi
|
6716 |
|
|
;;
|
6717 |
|
|
esac
|
6718 |
|
|
|
6719 |
|
|
ac_ext=c
|
6720 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6721 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6722 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6723 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6724 |
|
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
6725 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
6726 |
|
|
# On Suns, sometimes $CPP names a directory.
|
6727 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
6728 |
|
|
CPP=
|
6729 |
|
|
fi
|
6730 |
|
|
if test -z "$CPP"; then
|
6731 |
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
6732 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6733 |
|
|
else
|
6734 |
|
|
# Double quotes because CPP needs to be expanded
|
6735 |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
6736 |
|
|
do
|
6737 |
|
|
ac_preproc_ok=false
|
6738 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
6739 |
|
|
do
|
6740 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
6741 |
|
|
# with a fresh cross-compiler works.
|
6742 |
|
|
# Prefer to if __STDC__ is defined, since
|
6743 |
|
|
# exists even on freestanding compilers.
|
6744 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
6745 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
6746 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6747 |
|
|
/* confdefs.h. */
|
6748 |
|
|
_ACEOF
|
6749 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6750 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6751 |
|
|
/* end confdefs.h. */
|
6752 |
|
|
#ifdef __STDC__
|
6753 |
|
|
# include
|
6754 |
|
|
#else
|
6755 |
|
|
# include
|
6756 |
|
|
#endif
|
6757 |
|
|
Syntax error
|
6758 |
|
|
_ACEOF
|
6759 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
6760 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
6761 |
|
|
ac_status=$?
|
6762 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6763 |
|
|
rm -f conftest.er1
|
6764 |
|
|
cat conftest.err >&5
|
6765 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6766 |
|
|
(exit $ac_status); } >/dev/null; then
|
6767 |
|
|
if test -s conftest.err; then
|
6768 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
6769 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
6770 |
|
|
else
|
6771 |
|
|
ac_cpp_err=
|
6772 |
|
|
fi
|
6773 |
|
|
else
|
6774 |
|
|
ac_cpp_err=yes
|
6775 |
|
|
fi
|
6776 |
|
|
if test -z "$ac_cpp_err"; then
|
6777 |
|
|
:
|
6778 |
|
|
else
|
6779 |
|
|
echo "$as_me: failed program was:" >&5
|
6780 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6781 |
|
|
|
6782 |
|
|
# Broken: fails on valid input.
|
6783 |
|
|
continue
|
6784 |
|
|
fi
|
6785 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6786 |
|
|
|
6787 |
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
6788 |
|
|
# can be detected and how.
|
6789 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6790 |
|
|
/* confdefs.h. */
|
6791 |
|
|
_ACEOF
|
6792 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6793 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6794 |
|
|
/* end confdefs.h. */
|
6795 |
|
|
#include
|
6796 |
|
|
_ACEOF
|
6797 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
6798 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
6799 |
|
|
ac_status=$?
|
6800 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6801 |
|
|
rm -f conftest.er1
|
6802 |
|
|
cat conftest.err >&5
|
6803 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6804 |
|
|
(exit $ac_status); } >/dev/null; then
|
6805 |
|
|
if test -s conftest.err; then
|
6806 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
6807 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
6808 |
|
|
else
|
6809 |
|
|
ac_cpp_err=
|
6810 |
|
|
fi
|
6811 |
|
|
else
|
6812 |
|
|
ac_cpp_err=yes
|
6813 |
|
|
fi
|
6814 |
|
|
if test -z "$ac_cpp_err"; then
|
6815 |
|
|
# Broken: success on invalid input.
|
6816 |
|
|
continue
|
6817 |
|
|
else
|
6818 |
|
|
echo "$as_me: failed program was:" >&5
|
6819 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6820 |
|
|
|
6821 |
|
|
# Passes both tests.
|
6822 |
|
|
ac_preproc_ok=:
|
6823 |
|
|
break
|
6824 |
|
|
fi
|
6825 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6826 |
|
|
|
6827 |
|
|
done
|
6828 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
6829 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6830 |
|
|
if $ac_preproc_ok; then
|
6831 |
|
|
break
|
6832 |
|
|
fi
|
6833 |
|
|
|
6834 |
|
|
done
|
6835 |
|
|
ac_cv_prog_CPP=$CPP
|
6836 |
|
|
|
6837 |
|
|
fi
|
6838 |
|
|
CPP=$ac_cv_prog_CPP
|
6839 |
|
|
else
|
6840 |
|
|
ac_cv_prog_CPP=$CPP
|
6841 |
|
|
fi
|
6842 |
|
|
echo "$as_me:$LINENO: result: $CPP" >&5
|
6843 |
|
|
echo "${ECHO_T}$CPP" >&6
|
6844 |
|
|
ac_preproc_ok=false
|
6845 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
6846 |
|
|
do
|
6847 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
6848 |
|
|
# with a fresh cross-compiler works.
|
6849 |
|
|
# Prefer to if __STDC__ is defined, since
|
6850 |
|
|
# exists even on freestanding compilers.
|
6851 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
6852 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
6853 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6854 |
|
|
/* confdefs.h. */
|
6855 |
|
|
_ACEOF
|
6856 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6857 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6858 |
|
|
/* end confdefs.h. */
|
6859 |
|
|
#ifdef __STDC__
|
6860 |
|
|
# include
|
6861 |
|
|
#else
|
6862 |
|
|
# include
|
6863 |
|
|
#endif
|
6864 |
|
|
Syntax error
|
6865 |
|
|
_ACEOF
|
6866 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
6867 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
6868 |
|
|
ac_status=$?
|
6869 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6870 |
|
|
rm -f conftest.er1
|
6871 |
|
|
cat conftest.err >&5
|
6872 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6873 |
|
|
(exit $ac_status); } >/dev/null; then
|
6874 |
|
|
if test -s conftest.err; then
|
6875 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
6876 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
6877 |
|
|
else
|
6878 |
|
|
ac_cpp_err=
|
6879 |
|
|
fi
|
6880 |
|
|
else
|
6881 |
|
|
ac_cpp_err=yes
|
6882 |
|
|
fi
|
6883 |
|
|
if test -z "$ac_cpp_err"; then
|
6884 |
|
|
:
|
6885 |
|
|
else
|
6886 |
|
|
echo "$as_me: failed program was:" >&5
|
6887 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6888 |
|
|
|
6889 |
|
|
# Broken: fails on valid input.
|
6890 |
|
|
continue
|
6891 |
|
|
fi
|
6892 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6893 |
|
|
|
6894 |
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
6895 |
|
|
# can be detected and how.
|
6896 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6897 |
|
|
/* confdefs.h. */
|
6898 |
|
|
_ACEOF
|
6899 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6900 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6901 |
|
|
/* end confdefs.h. */
|
6902 |
|
|
#include
|
6903 |
|
|
_ACEOF
|
6904 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
6905 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
6906 |
|
|
ac_status=$?
|
6907 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6908 |
|
|
rm -f conftest.er1
|
6909 |
|
|
cat conftest.err >&5
|
6910 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6911 |
|
|
(exit $ac_status); } >/dev/null; then
|
6912 |
|
|
if test -s conftest.err; then
|
6913 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
6914 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
6915 |
|
|
else
|
6916 |
|
|
ac_cpp_err=
|
6917 |
|
|
fi
|
6918 |
|
|
else
|
6919 |
|
|
ac_cpp_err=yes
|
6920 |
|
|
fi
|
6921 |
|
|
if test -z "$ac_cpp_err"; then
|
6922 |
|
|
# Broken: success on invalid input.
|
6923 |
|
|
continue
|
6924 |
|
|
else
|
6925 |
|
|
echo "$as_me: failed program was:" >&5
|
6926 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6927 |
|
|
|
6928 |
|
|
# Passes both tests.
|
6929 |
|
|
ac_preproc_ok=:
|
6930 |
|
|
break
|
6931 |
|
|
fi
|
6932 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6933 |
|
|
|
6934 |
|
|
done
|
6935 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
6936 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6937 |
|
|
if $ac_preproc_ok; then
|
6938 |
|
|
:
|
6939 |
|
|
else
|
6940 |
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
6941 |
|
|
See \`config.log' for more details." >&5
|
6942 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
6943 |
|
|
See \`config.log' for more details." >&2;}
|
6944 |
|
|
{ (exit 1); exit 1; }; }
|
6945 |
|
|
fi
|
6946 |
|
|
|
6947 |
|
|
ac_ext=c
|
6948 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
6949 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
6950 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
6951 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
6952 |
|
|
|
6953 |
|
|
|
6954 |
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
6955 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
6956 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
6957 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6958 |
|
|
else
|
6959 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6960 |
|
|
/* confdefs.h. */
|
6961 |
|
|
_ACEOF
|
6962 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6963 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6964 |
|
|
/* end confdefs.h. */
|
6965 |
|
|
#include
|
6966 |
|
|
#include
|
6967 |
|
|
#include
|
6968 |
|
|
#include
|
6969 |
|
|
|
6970 |
|
|
int
|
6971 |
|
|
main ()
|
6972 |
|
|
{
|
6973 |
|
|
|
6974 |
|
|
;
|
6975 |
|
|
return 0;
|
6976 |
|
|
}
|
6977 |
|
|
_ACEOF
|
6978 |
|
|
rm -f conftest.$ac_objext
|
6979 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6980 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6981 |
|
|
ac_status=$?
|
6982 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6983 |
|
|
rm -f conftest.er1
|
6984 |
|
|
cat conftest.err >&5
|
6985 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6986 |
|
|
(exit $ac_status); } &&
|
6987 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6988 |
|
|
|| test ! -s conftest.err'
|
6989 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6990 |
|
|
(eval $ac_try) 2>&5
|
6991 |
|
|
ac_status=$?
|
6992 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6993 |
|
|
(exit $ac_status); }; } &&
|
6994 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6995 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6996 |
|
|
(eval $ac_try) 2>&5
|
6997 |
|
|
ac_status=$?
|
6998 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6999 |
|
|
(exit $ac_status); }; }; then
|
7000 |
|
|
ac_cv_header_stdc=yes
|
7001 |
|
|
else
|
7002 |
|
|
echo "$as_me: failed program was:" >&5
|
7003 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7004 |
|
|
|
7005 |
|
|
ac_cv_header_stdc=no
|
7006 |
|
|
fi
|
7007 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7008 |
|
|
|
7009 |
|
|
if test $ac_cv_header_stdc = yes; then
|
7010 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
7011 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7012 |
|
|
/* confdefs.h. */
|
7013 |
|
|
_ACEOF
|
7014 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7015 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7016 |
|
|
/* end confdefs.h. */
|
7017 |
|
|
#include
|
7018 |
|
|
|
7019 |
|
|
_ACEOF
|
7020 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
7021 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
7022 |
|
|
:
|
7023 |
|
|
else
|
7024 |
|
|
ac_cv_header_stdc=no
|
7025 |
|
|
fi
|
7026 |
|
|
rm -f conftest*
|
7027 |
|
|
|
7028 |
|
|
fi
|
7029 |
|
|
|
7030 |
|
|
if test $ac_cv_header_stdc = yes; then
|
7031 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
7032 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7033 |
|
|
/* confdefs.h. */
|
7034 |
|
|
_ACEOF
|
7035 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7036 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7037 |
|
|
/* end confdefs.h. */
|
7038 |
|
|
#include
|
7039 |
|
|
|
7040 |
|
|
_ACEOF
|
7041 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
7042 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
7043 |
|
|
:
|
7044 |
|
|
else
|
7045 |
|
|
ac_cv_header_stdc=no
|
7046 |
|
|
fi
|
7047 |
|
|
rm -f conftest*
|
7048 |
|
|
|
7049 |
|
|
fi
|
7050 |
|
|
|
7051 |
|
|
if test $ac_cv_header_stdc = yes; then
|
7052 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
7053 |
|
|
if test "$cross_compiling" = yes; then
|
7054 |
|
|
:
|
7055 |
|
|
else
|
7056 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7057 |
|
|
/* confdefs.h. */
|
7058 |
|
|
_ACEOF
|
7059 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7060 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7061 |
|
|
/* end confdefs.h. */
|
7062 |
|
|
#include
|
7063 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
7064 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
7065 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
7066 |
|
|
#else
|
7067 |
|
|
# define ISLOWER(c) \
|
7068 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
7069 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
7070 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
7071 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
7072 |
|
|
#endif
|
7073 |
|
|
|
7074 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
7075 |
|
|
int
|
7076 |
|
|
main ()
|
7077 |
|
|
{
|
7078 |
|
|
int i;
|
7079 |
|
|
for (i = 0; i < 256; i++)
|
7080 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
7081 |
|
|
|| toupper (i) != TOUPPER (i))
|
7082 |
|
|
exit(2);
|
7083 |
|
|
exit (0);
|
7084 |
|
|
}
|
7085 |
|
|
_ACEOF
|
7086 |
|
|
rm -f conftest$ac_exeext
|
7087 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7088 |
|
|
(eval $ac_link) 2>&5
|
7089 |
|
|
ac_status=$?
|
7090 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7091 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
7092 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7093 |
|
|
(eval $ac_try) 2>&5
|
7094 |
|
|
ac_status=$?
|
7095 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7096 |
|
|
(exit $ac_status); }; }; then
|
7097 |
|
|
:
|
7098 |
|
|
else
|
7099 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
7100 |
|
|
echo "$as_me: failed program was:" >&5
|
7101 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7102 |
|
|
|
7103 |
|
|
( exit $ac_status )
|
7104 |
|
|
ac_cv_header_stdc=no
|
7105 |
|
|
fi
|
7106 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
7107 |
|
|
fi
|
7108 |
|
|
fi
|
7109 |
|
|
fi
|
7110 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
7111 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
7112 |
|
|
if test $ac_cv_header_stdc = yes; then
|
7113 |
|
|
|
7114 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7115 |
|
|
#define STDC_HEADERS 1
|
7116 |
|
|
_ACEOF
|
7117 |
|
|
|
7118 |
|
|
fi
|
7119 |
|
|
|
7120 |
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
7121 |
|
|
|
7122 |
|
|
|
7123 |
|
|
|
7124 |
|
|
|
7125 |
|
|
|
7126 |
|
|
|
7127 |
|
|
|
7128 |
|
|
|
7129 |
|
|
|
7130 |
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
7131 |
|
|
inttypes.h stdint.h unistd.h
|
7132 |
|
|
do
|
7133 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7134 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7135 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7136 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7137 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7138 |
|
|
else
|
7139 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7140 |
|
|
/* confdefs.h. */
|
7141 |
|
|
_ACEOF
|
7142 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7143 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7144 |
|
|
/* end confdefs.h. */
|
7145 |
|
|
$ac_includes_default
|
7146 |
|
|
|
7147 |
|
|
#include <$ac_header>
|
7148 |
|
|
_ACEOF
|
7149 |
|
|
rm -f conftest.$ac_objext
|
7150 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7151 |
|
|
(eval $ac_compile) 2>conftest.er1
|
7152 |
|
|
ac_status=$?
|
7153 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7154 |
|
|
rm -f conftest.er1
|
7155 |
|
|
cat conftest.err >&5
|
7156 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7157 |
|
|
(exit $ac_status); } &&
|
7158 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7159 |
|
|
|| test ! -s conftest.err'
|
7160 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7161 |
|
|
(eval $ac_try) 2>&5
|
7162 |
|
|
ac_status=$?
|
7163 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7164 |
|
|
(exit $ac_status); }; } &&
|
7165 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
7166 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7167 |
|
|
(eval $ac_try) 2>&5
|
7168 |
|
|
ac_status=$?
|
7169 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7170 |
|
|
(exit $ac_status); }; }; then
|
7171 |
|
|
eval "$as_ac_Header=yes"
|
7172 |
|
|
else
|
7173 |
|
|
echo "$as_me: failed program was:" >&5
|
7174 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7175 |
|
|
|
7176 |
|
|
eval "$as_ac_Header=no"
|
7177 |
|
|
fi
|
7178 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7179 |
|
|
fi
|
7180 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7181 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7182 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7183 |
|
|
cat >>confdefs.h <<_ACEOF
|
7184 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
7185 |
|
|
_ACEOF
|
7186 |
|
|
|
7187 |
|
|
fi
|
7188 |
|
|
|
7189 |
|
|
done
|
7190 |
|
|
|
7191 |
|
|
|
7192 |
|
|
|
7193 |
|
|
for ac_header in dlfcn.h
|
7194 |
|
|
do
|
7195 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7196 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7197 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7198 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7199 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7200 |
|
|
else
|
7201 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7202 |
|
|
/* confdefs.h. */
|
7203 |
|
|
_ACEOF
|
7204 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7205 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7206 |
|
|
/* end confdefs.h. */
|
7207 |
|
|
$ac_includes_default
|
7208 |
|
|
|
7209 |
|
|
#include <$ac_header>
|
7210 |
|
|
_ACEOF
|
7211 |
|
|
rm -f conftest.$ac_objext
|
7212 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7213 |
|
|
(eval $ac_compile) 2>conftest.er1
|
7214 |
|
|
ac_status=$?
|
7215 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7216 |
|
|
rm -f conftest.er1
|
7217 |
|
|
cat conftest.err >&5
|
7218 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7219 |
|
|
(exit $ac_status); } &&
|
7220 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7221 |
|
|
|| test ! -s conftest.err'
|
7222 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7223 |
|
|
(eval $ac_try) 2>&5
|
7224 |
|
|
ac_status=$?
|
7225 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7226 |
|
|
(exit $ac_status); }; } &&
|
7227 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
7228 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7229 |
|
|
(eval $ac_try) 2>&5
|
7230 |
|
|
ac_status=$?
|
7231 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7232 |
|
|
(exit $ac_status); }; }; then
|
7233 |
|
|
eval "$as_ac_Header=yes"
|
7234 |
|
|
else
|
7235 |
|
|
echo "$as_me: failed program was:" >&5
|
7236 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7237 |
|
|
|
7238 |
|
|
eval "$as_ac_Header=no"
|
7239 |
|
|
fi
|
7240 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7241 |
|
|
fi
|
7242 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7243 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7244 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7245 |
|
|
cat >>confdefs.h <<_ACEOF
|
7246 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
7247 |
|
|
_ACEOF
|
7248 |
|
|
|
7249 |
|
|
fi
|
7250 |
|
|
|
7251 |
|
|
done
|
7252 |
|
|
|
7253 |
|
|
|
7254 |
|
|
|
7255 |
|
|
# Set options
|
7256 |
|
|
|
7257 |
|
|
|
7258 |
|
|
|
7259 |
|
|
enable_dlopen=no
|
7260 |
|
|
|
7261 |
|
|
|
7262 |
|
|
|
7263 |
|
|
# Check whether --enable-shared or --disable-shared was given.
|
7264 |
|
|
if test "${enable_shared+set}" = set; then
|
7265 |
|
|
enableval="$enable_shared"
|
7266 |
|
|
p=${PACKAGE-default}
|
7267 |
|
|
case $enableval in
|
7268 |
|
|
yes) enable_shared=yes ;;
|
7269 |
|
|
no) enable_shared=no ;;
|
7270 |
|
|
*)
|
7271 |
|
|
enable_shared=no
|
7272 |
|
|
# Look at the argument we got. We use all the common list separators.
|
7273 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
7274 |
|
|
for pkg in $enableval; do
|
7275 |
|
|
IFS="$lt_save_ifs"
|
7276 |
|
|
if test "X$pkg" = "X$p"; then
|
7277 |
|
|
enable_shared=yes
|
7278 |
|
|
fi
|
7279 |
|
|
done
|
7280 |
|
|
IFS="$lt_save_ifs"
|
7281 |
|
|
;;
|
7282 |
|
|
esac
|
7283 |
|
|
else
|
7284 |
|
|
enable_shared=yes
|
7285 |
|
|
fi;
|
7286 |
|
|
|
7287 |
|
|
|
7288 |
|
|
|
7289 |
|
|
|
7290 |
|
|
|
7291 |
|
|
|
7292 |
|
|
|
7293 |
|
|
|
7294 |
|
|
# Check whether --enable-static or --disable-static was given.
|
7295 |
|
|
if test "${enable_static+set}" = set; then
|
7296 |
|
|
enableval="$enable_static"
|
7297 |
|
|
p=${PACKAGE-default}
|
7298 |
|
|
case $enableval in
|
7299 |
|
|
yes) enable_static=yes ;;
|
7300 |
|
|
no) enable_static=no ;;
|
7301 |
|
|
*)
|
7302 |
|
|
enable_static=no
|
7303 |
|
|
# Look at the argument we got. We use all the common list separators.
|
7304 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
7305 |
|
|
for pkg in $enableval; do
|
7306 |
|
|
IFS="$lt_save_ifs"
|
7307 |
|
|
if test "X$pkg" = "X$p"; then
|
7308 |
|
|
enable_static=yes
|
7309 |
|
|
fi
|
7310 |
|
|
done
|
7311 |
|
|
IFS="$lt_save_ifs"
|
7312 |
|
|
;;
|
7313 |
|
|
esac
|
7314 |
|
|
else
|
7315 |
|
|
enable_static=yes
|
7316 |
|
|
fi;
|
7317 |
|
|
|
7318 |
|
|
|
7319 |
|
|
|
7320 |
|
|
|
7321 |
|
|
|
7322 |
|
|
|
7323 |
|
|
|
7324 |
|
|
|
7325 |
|
|
|
7326 |
|
|
# Check whether --with-pic or --without-pic was given.
|
7327 |
|
|
if test "${with_pic+set}" = set; then
|
7328 |
|
|
withval="$with_pic"
|
7329 |
|
|
pic_mode="$withval"
|
7330 |
|
|
else
|
7331 |
|
|
pic_mode=default
|
7332 |
|
|
fi;
|
7333 |
|
|
|
7334 |
|
|
test -z "$pic_mode" && pic_mode=default
|
7335 |
|
|
|
7336 |
|
|
|
7337 |
|
|
|
7338 |
|
|
|
7339 |
|
|
|
7340 |
|
|
|
7341 |
|
|
|
7342 |
|
|
# Check whether --enable-fast-install or --disable-fast-install was given.
|
7343 |
|
|
if test "${enable_fast_install+set}" = set; then
|
7344 |
|
|
enableval="$enable_fast_install"
|
7345 |
|
|
p=${PACKAGE-default}
|
7346 |
|
|
case $enableval in
|
7347 |
|
|
yes) enable_fast_install=yes ;;
|
7348 |
|
|
no) enable_fast_install=no ;;
|
7349 |
|
|
*)
|
7350 |
|
|
enable_fast_install=no
|
7351 |
|
|
# Look at the argument we got. We use all the common list separators.
|
7352 |
|
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
7353 |
|
|
for pkg in $enableval; do
|
7354 |
|
|
IFS="$lt_save_ifs"
|
7355 |
|
|
if test "X$pkg" = "X$p"; then
|
7356 |
|
|
enable_fast_install=yes
|
7357 |
|
|
fi
|
7358 |
|
|
done
|
7359 |
|
|
IFS="$lt_save_ifs"
|
7360 |
|
|
;;
|
7361 |
|
|
esac
|
7362 |
|
|
else
|
7363 |
|
|
enable_fast_install=yes
|
7364 |
|
|
fi;
|
7365 |
|
|
|
7366 |
|
|
|
7367 |
|
|
|
7368 |
|
|
|
7369 |
|
|
|
7370 |
|
|
|
7371 |
|
|
|
7372 |
|
|
|
7373 |
|
|
|
7374 |
|
|
|
7375 |
|
|
# This can be used to rebuild libtool when needed
|
7376 |
|
|
LIBTOOL_DEPS="$ltmain"
|
7377 |
|
|
|
7378 |
|
|
# Always use our own libtool.
|
7379 |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
7380 |
|
|
|
7381 |
|
|
|
7382 |
|
|
|
7383 |
|
|
|
7384 |
|
|
|
7385 |
|
|
|
7386 |
|
|
|
7387 |
|
|
|
7388 |
|
|
|
7389 |
|
|
|
7390 |
|
|
|
7391 |
|
|
|
7392 |
|
|
|
7393 |
|
|
|
7394 |
|
|
|
7395 |
|
|
|
7396 |
|
|
|
7397 |
|
|
|
7398 |
|
|
|
7399 |
|
|
|
7400 |
|
|
|
7401 |
|
|
|
7402 |
|
|
|
7403 |
|
|
|
7404 |
|
|
|
7405 |
|
|
test -z "$LN_S" && LN_S="ln -s"
|
7406 |
|
|
|
7407 |
|
|
|
7408 |
|
|
|
7409 |
|
|
|
7410 |
|
|
|
7411 |
|
|
|
7412 |
|
|
|
7413 |
|
|
|
7414 |
|
|
|
7415 |
|
|
|
7416 |
|
|
|
7417 |
|
|
|
7418 |
|
|
|
7419 |
|
|
|
7420 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
7421 |
|
|
setopt NO_GLOB_SUBST
|
7422 |
|
|
fi
|
7423 |
|
|
|
7424 |
|
|
echo "$as_me:$LINENO: checking for objdir" >&5
|
7425 |
|
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
|
7426 |
|
|
if test "${lt_cv_objdir+set}" = set; then
|
7427 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7428 |
|
|
else
|
7429 |
|
|
rm -f .libs 2>/dev/null
|
7430 |
|
|
mkdir .libs 2>/dev/null
|
7431 |
|
|
if test -d .libs; then
|
7432 |
|
|
lt_cv_objdir=.libs
|
7433 |
|
|
else
|
7434 |
|
|
# MS-DOS does not allow filenames that begin with a dot.
|
7435 |
|
|
lt_cv_objdir=_libs
|
7436 |
|
|
fi
|
7437 |
|
|
rmdir .libs 2>/dev/null
|
7438 |
|
|
fi
|
7439 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
7440 |
|
|
echo "${ECHO_T}$lt_cv_objdir" >&6
|
7441 |
|
|
objdir=$lt_cv_objdir
|
7442 |
|
|
|
7443 |
|
|
|
7444 |
|
|
|
7445 |
|
|
|
7446 |
|
|
|
7447 |
|
|
cat >>confdefs.h <<_ACEOF
|
7448 |
|
|
#define LT_OBJDIR "$lt_cv_objdir/"
|
7449 |
|
|
_ACEOF
|
7450 |
|
|
|
7451 |
|
|
|
7452 |
|
|
|
7453 |
|
|
|
7454 |
|
|
|
7455 |
|
|
|
7456 |
|
|
|
7457 |
|
|
|
7458 |
|
|
|
7459 |
|
|
|
7460 |
|
|
|
7461 |
|
|
|
7462 |
|
|
|
7463 |
|
|
|
7464 |
|
|
|
7465 |
|
|
|
7466 |
|
|
|
7467 |
|
|
case $host_os in
|
7468 |
|
|
aix3*)
|
7469 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
7470 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
7471 |
|
|
# vanish in a puff of smoke.
|
7472 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
7473 |
|
|
COLLECT_NAMES=
|
7474 |
|
|
export COLLECT_NAMES
|
7475 |
|
|
fi
|
7476 |
|
|
;;
|
7477 |
|
|
esac
|
7478 |
|
|
|
7479 |
|
|
# Sed substitution that helps us do robust quoting. It backslashifies
|
7480 |
|
|
# metacharacters that are still active within double-quoted strings.
|
7481 |
|
|
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
7482 |
|
|
|
7483 |
|
|
# Same as above, but do not quote variable references.
|
7484 |
|
|
double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
7485 |
|
|
|
7486 |
|
|
# Sed substitution to delay expansion of an escaped shell variable in a
|
7487 |
|
|
# double_quote_subst'ed string.
|
7488 |
|
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
7489 |
|
|
|
7490 |
|
|
# Sed substitution to delay expansion of an escaped single quote.
|
7491 |
|
|
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
7492 |
|
|
|
7493 |
|
|
# Sed substitution to avoid accidental globbing in evaled expressions
|
7494 |
|
|
no_glob_subst='s/\*/\\\*/g'
|
7495 |
|
|
|
7496 |
|
|
# Global variables:
|
7497 |
|
|
ofile=libtool
|
7498 |
|
|
can_build_shared=yes
|
7499 |
|
|
|
7500 |
|
|
# All known linkers require a `.a' archive for static linking (except MSVC,
|
7501 |
|
|
# which needs '.lib').
|
7502 |
|
|
libext=a
|
7503 |
|
|
|
7504 |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
7505 |
|
|
|
7506 |
|
|
old_CC="$CC"
|
7507 |
|
|
old_CFLAGS="$CFLAGS"
|
7508 |
|
|
|
7509 |
|
|
# Set sane defaults for various variables
|
7510 |
|
|
test -z "$CC" && CC=cc
|
7511 |
|
|
test -z "$LTCC" && LTCC=$CC
|
7512 |
|
|
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
7513 |
|
|
test -z "$LD" && LD=ld
|
7514 |
|
|
test -z "$ac_objext" && ac_objext=o
|
7515 |
|
|
|
7516 |
|
|
for cc_temp in $compiler""; do
|
7517 |
|
|
case $cc_temp in
|
7518 |
|
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
7519 |
|
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
7520 |
|
|
\-*) ;;
|
7521 |
|
|
*) break;;
|
7522 |
|
|
esac
|
7523 |
|
|
done
|
7524 |
|
|
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
7525 |
|
|
|
7526 |
|
|
|
7527 |
|
|
# Only perform the check for file, if the check method requires it
|
7528 |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
7529 |
|
|
case $deplibs_check_method in
|
7530 |
|
|
file_magic*)
|
7531 |
|
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
7532 |
|
|
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
7533 |
|
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
|
7534 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
7535 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7536 |
|
|
else
|
7537 |
|
|
case $MAGIC_CMD in
|
7538 |
|
|
[\\/*] | ?:[\\/]*)
|
7539 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
7540 |
|
|
;;
|
7541 |
|
|
*)
|
7542 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
7543 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
7544 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
7545 |
|
|
for ac_dir in $ac_dummy; do
|
7546 |
|
|
IFS="$lt_save_ifs"
|
7547 |
|
|
test -z "$ac_dir" && ac_dir=.
|
7548 |
|
|
if test -f $ac_dir/${ac_tool_prefix}file; then
|
7549 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
7550 |
|
|
if test -n "$file_magic_test_file"; then
|
7551 |
|
|
case $deplibs_check_method in
|
7552 |
|
|
"file_magic "*)
|
7553 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
7554 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
7555 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
7556 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
7557 |
|
|
:
|
7558 |
|
|
else
|
7559 |
|
|
cat <<_LT_EOF 1>&2
|
7560 |
|
|
|
7561 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
7562 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
7563 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
7564 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
7565 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
7566 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
7567 |
|
|
*** may want to report the problem to your system manager and/or to
|
7568 |
|
|
*** bug-libtool@gnu.org
|
7569 |
|
|
|
7570 |
|
|
_LT_EOF
|
7571 |
|
|
fi ;;
|
7572 |
|
|
esac
|
7573 |
|
|
fi
|
7574 |
|
|
break
|
7575 |
|
|
fi
|
7576 |
|
|
done
|
7577 |
|
|
IFS="$lt_save_ifs"
|
7578 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
7579 |
|
|
;;
|
7580 |
|
|
esac
|
7581 |
|
|
fi
|
7582 |
|
|
|
7583 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
7584 |
|
|
if test -n "$MAGIC_CMD"; then
|
7585 |
|
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
7586 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6
|
7587 |
|
|
else
|
7588 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
7589 |
|
|
echo "${ECHO_T}no" >&6
|
7590 |
|
|
fi
|
7591 |
|
|
|
7592 |
|
|
|
7593 |
|
|
|
7594 |
|
|
|
7595 |
|
|
|
7596 |
|
|
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
7597 |
|
|
if test -n "$ac_tool_prefix"; then
|
7598 |
|
|
echo "$as_me:$LINENO: checking for file" >&5
|
7599 |
|
|
echo $ECHO_N "checking for file... $ECHO_C" >&6
|
7600 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
7601 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7602 |
|
|
else
|
7603 |
|
|
case $MAGIC_CMD in
|
7604 |
|
|
[\\/*] | ?:[\\/]*)
|
7605 |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
7606 |
|
|
;;
|
7607 |
|
|
*)
|
7608 |
|
|
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
7609 |
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
7610 |
|
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
7611 |
|
|
for ac_dir in $ac_dummy; do
|
7612 |
|
|
IFS="$lt_save_ifs"
|
7613 |
|
|
test -z "$ac_dir" && ac_dir=.
|
7614 |
|
|
if test -f $ac_dir/file; then
|
7615 |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
7616 |
|
|
if test -n "$file_magic_test_file"; then
|
7617 |
|
|
case $deplibs_check_method in
|
7618 |
|
|
"file_magic "*)
|
7619 |
|
|
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
7620 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
7621 |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
7622 |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
7623 |
|
|
:
|
7624 |
|
|
else
|
7625 |
|
|
cat <<_LT_EOF 1>&2
|
7626 |
|
|
|
7627 |
|
|
*** Warning: the command libtool uses to detect shared libraries,
|
7628 |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
7629 |
|
|
*** The result is that libtool may fail to recognize shared libraries
|
7630 |
|
|
*** as such. This will affect the creation of libtool libraries that
|
7631 |
|
|
*** depend on shared libraries, but programs linked with such libtool
|
7632 |
|
|
*** libraries will work regardless of this problem. Nevertheless, you
|
7633 |
|
|
*** may want to report the problem to your system manager and/or to
|
7634 |
|
|
*** bug-libtool@gnu.org
|
7635 |
|
|
|
7636 |
|
|
_LT_EOF
|
7637 |
|
|
fi ;;
|
7638 |
|
|
esac
|
7639 |
|
|
fi
|
7640 |
|
|
break
|
7641 |
|
|
fi
|
7642 |
|
|
done
|
7643 |
|
|
IFS="$lt_save_ifs"
|
7644 |
|
|
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
7645 |
|
|
;;
|
7646 |
|
|
esac
|
7647 |
|
|
fi
|
7648 |
|
|
|
7649 |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
7650 |
|
|
if test -n "$MAGIC_CMD"; then
|
7651 |
|
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
7652 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6
|
7653 |
|
|
else
|
7654 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
7655 |
|
|
echo "${ECHO_T}no" >&6
|
7656 |
|
|
fi
|
7657 |
|
|
|
7658 |
|
|
|
7659 |
|
|
else
|
7660 |
|
|
MAGIC_CMD=:
|
7661 |
|
|
fi
|
7662 |
|
|
fi
|
7663 |
|
|
|
7664 |
|
|
fi
|
7665 |
|
|
;;
|
7666 |
|
|
esac
|
7667 |
|
|
|
7668 |
|
|
# Use C for the default configuration in the libtool script
|
7669 |
|
|
|
7670 |
|
|
lt_save_CC="$CC"
|
7671 |
|
|
ac_ext=c
|
7672 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
7673 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
7674 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
7675 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
7676 |
|
|
|
7677 |
|
|
|
7678 |
|
|
# Source file extension for C test sources.
|
7679 |
|
|
ac_ext=c
|
7680 |
|
|
|
7681 |
|
|
# Object file extension for compiled C test sources.
|
7682 |
|
|
objext=o
|
7683 |
|
|
objext=$objext
|
7684 |
|
|
|
7685 |
|
|
# Code to be used in simple compile tests
|
7686 |
|
|
lt_simple_compile_test_code="int some_variable = 0;"
|
7687 |
|
|
|
7688 |
|
|
# Code to be used in simple link tests
|
7689 |
|
|
lt_simple_link_test_code='int main(){return(0);}'
|
7690 |
|
|
|
7691 |
|
|
|
7692 |
|
|
|
7693 |
|
|
|
7694 |
|
|
|
7695 |
|
|
|
7696 |
|
|
|
7697 |
|
|
# If no C compiler was specified, use CC.
|
7698 |
|
|
LTCC=${LTCC-"$CC"}
|
7699 |
|
|
|
7700 |
|
|
# If no C compiler flags were specified, use CFLAGS.
|
7701 |
|
|
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
7702 |
|
|
|
7703 |
|
|
# Allow CC to be a program name with arguments.
|
7704 |
|
|
compiler=$CC
|
7705 |
|
|
|
7706 |
|
|
# Save the default compiler, since it gets overwritten when the other
|
7707 |
|
|
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
7708 |
|
|
compiler_DEFAULT=$CC
|
7709 |
|
|
|
7710 |
|
|
# save warnings/boilerplate of simple test code
|
7711 |
|
|
ac_outfile=conftest.$ac_objext
|
7712 |
|
|
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
7713 |
|
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
7714 |
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
7715 |
|
|
$RM conftest*
|
7716 |
|
|
|
7717 |
|
|
ac_outfile=conftest.$ac_objext
|
7718 |
|
|
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
7719 |
|
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
7720 |
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
7721 |
|
|
$RM -r conftest*
|
7722 |
|
|
|
7723 |
|
|
|
7724 |
|
|
## CAVEAT EMPTOR:
|
7725 |
|
|
## There is no encapsulation within the following macros, do not change
|
7726 |
|
|
## the running order or otherwise move them around unless you know exactly
|
7727 |
|
|
## what you are doing...
|
7728 |
|
|
if test -n "$compiler"; then
|
7729 |
|
|
|
7730 |
|
|
lt_prog_compiler_no_builtin_flag=
|
7731 |
|
|
|
7732 |
|
|
if test "$GCC" = yes; then
|
7733 |
|
|
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
7734 |
|
|
|
7735 |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
7736 |
|
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
|
7737 |
|
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
7738 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7739 |
|
|
else
|
7740 |
|
|
lt_cv_prog_compiler_rtti_exceptions=no
|
7741 |
|
|
ac_outfile=conftest.$ac_objext
|
7742 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
7743 |
|
|
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
7744 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
7745 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
7746 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
7747 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
7748 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
7749 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
7750 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
7751 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
7752 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
7753 |
|
|
(eval echo "\"\$as_me:7753: $lt_compile\"" >&5)
|
7754 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
7755 |
|
|
ac_status=$?
|
7756 |
|
|
cat conftest.err >&5
|
7757 |
|
|
echo "$as_me:7757: \$? = $ac_status" >&5
|
7758 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
7759 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
7760 |
|
|
# So say no if there are warnings other than the usual output.
|
7761 |
|
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
7762 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
7763 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
7764 |
|
|
lt_cv_prog_compiler_rtti_exceptions=yes
|
7765 |
|
|
fi
|
7766 |
|
|
fi
|
7767 |
|
|
$RM conftest*
|
7768 |
|
|
|
7769 |
|
|
fi
|
7770 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
7771 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
|
7772 |
|
|
|
7773 |
|
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
7774 |
|
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
7775 |
|
|
else
|
7776 |
|
|
:
|
7777 |
|
|
fi
|
7778 |
|
|
|
7779 |
|
|
fi
|
7780 |
|
|
|
7781 |
|
|
|
7782 |
|
|
|
7783 |
|
|
|
7784 |
|
|
|
7785 |
|
|
|
7786 |
|
|
lt_prog_compiler_wl=
|
7787 |
|
|
lt_prog_compiler_pic=
|
7788 |
|
|
lt_prog_compiler_static=
|
7789 |
|
|
|
7790 |
|
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
7791 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
7792 |
|
|
|
7793 |
|
|
if test "$GCC" = yes; then
|
7794 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7795 |
|
|
lt_prog_compiler_static='-static'
|
7796 |
|
|
|
7797 |
|
|
case $host_os in
|
7798 |
|
|
aix*)
|
7799 |
|
|
# All AIX code is PIC.
|
7800 |
|
|
if test "$host_cpu" = ia64; then
|
7801 |
|
|
# AIX 5 now supports IA64 processor
|
7802 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7803 |
|
|
fi
|
7804 |
|
|
;;
|
7805 |
|
|
|
7806 |
|
|
amigaos*)
|
7807 |
|
|
case $host_cpu in
|
7808 |
|
|
powerpc)
|
7809 |
|
|
# see comment about AmigaOS4 .so support
|
7810 |
|
|
lt_prog_compiler_pic='-fPIC'
|
7811 |
|
|
;;
|
7812 |
|
|
m68k)
|
7813 |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but
|
7814 |
|
|
# adding the `-m68020' flag to GCC prevents building anything better,
|
7815 |
|
|
# like `-m68040'.
|
7816 |
|
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
7817 |
|
|
;;
|
7818 |
|
|
esac
|
7819 |
|
|
;;
|
7820 |
|
|
|
7821 |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
7822 |
|
|
# PIC is the default for these OSes.
|
7823 |
|
|
;;
|
7824 |
|
|
|
7825 |
|
|
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
7826 |
|
|
# This hack is so that the source file can tell whether it is being
|
7827 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
7828 |
|
|
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
7829 |
|
|
# (--disable-auto-import) libraries
|
7830 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
7831 |
|
|
;;
|
7832 |
|
|
|
7833 |
|
|
darwin* | rhapsody*)
|
7834 |
|
|
# PIC is the default on this platform
|
7835 |
|
|
# Common symbols not allowed in MH_DYLIB files
|
7836 |
|
|
lt_prog_compiler_pic='-fno-common'
|
7837 |
|
|
;;
|
7838 |
|
|
|
7839 |
|
|
hpux*)
|
7840 |
|
|
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
7841 |
|
|
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
7842 |
|
|
# sets the default TLS model and affects inlining.
|
7843 |
|
|
case $host_cpu in
|
7844 |
|
|
hppa*64*)
|
7845 |
|
|
# +Z the default
|
7846 |
|
|
;;
|
7847 |
|
|
*)
|
7848 |
|
|
lt_prog_compiler_pic='-fPIC'
|
7849 |
|
|
;;
|
7850 |
|
|
esac
|
7851 |
|
|
;;
|
7852 |
|
|
|
7853 |
|
|
interix[3-9]*)
|
7854 |
|
|
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
7855 |
|
|
# Instead, we relocate shared libraries at runtime.
|
7856 |
|
|
;;
|
7857 |
|
|
|
7858 |
|
|
msdosdjgpp*)
|
7859 |
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
7860 |
|
|
# on systems that don't support them.
|
7861 |
|
|
lt_prog_compiler_can_build_shared=no
|
7862 |
|
|
enable_shared=no
|
7863 |
|
|
;;
|
7864 |
|
|
|
7865 |
|
|
*nto* | *qnx*)
|
7866 |
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
7867 |
|
|
# it will coredump.
|
7868 |
|
|
lt_prog_compiler_pic='-fPIC -shared'
|
7869 |
|
|
;;
|
7870 |
|
|
|
7871 |
|
|
sysv4*MP*)
|
7872 |
|
|
if test -d /usr/nec; then
|
7873 |
|
|
lt_prog_compiler_pic=-Kconform_pic
|
7874 |
|
|
fi
|
7875 |
|
|
;;
|
7876 |
|
|
|
7877 |
|
|
*)
|
7878 |
|
|
lt_prog_compiler_pic='-fPIC'
|
7879 |
|
|
;;
|
7880 |
|
|
esac
|
7881 |
|
|
else
|
7882 |
|
|
# PORTME Check for flag to pass linker flags through the system compiler.
|
7883 |
|
|
case $host_os in
|
7884 |
|
|
aix*)
|
7885 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7886 |
|
|
if test "$host_cpu" = ia64; then
|
7887 |
|
|
# AIX 5 now supports IA64 processor
|
7888 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7889 |
|
|
else
|
7890 |
|
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
7891 |
|
|
fi
|
7892 |
|
|
;;
|
7893 |
|
|
|
7894 |
|
|
mingw* | cygwin* | pw32* | os2* | cegcc*)
|
7895 |
|
|
# This hack is so that the source file can tell whether it is being
|
7896 |
|
|
# built for inclusion in a dll (and should export symbols for example).
|
7897 |
|
|
lt_prog_compiler_pic='-DDLL_EXPORT'
|
7898 |
|
|
;;
|
7899 |
|
|
|
7900 |
|
|
hpux9* | hpux10* | hpux11*)
|
7901 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7902 |
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
7903 |
|
|
# not for PA HP-UX.
|
7904 |
|
|
case $host_cpu in
|
7905 |
|
|
hppa*64*|ia64*)
|
7906 |
|
|
# +Z the default
|
7907 |
|
|
;;
|
7908 |
|
|
*)
|
7909 |
|
|
lt_prog_compiler_pic='+Z'
|
7910 |
|
|
;;
|
7911 |
|
|
esac
|
7912 |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
7913 |
|
|
lt_prog_compiler_static='${wl}-a ${wl}archive'
|
7914 |
|
|
;;
|
7915 |
|
|
|
7916 |
|
|
irix5* | irix6* | nonstopux*)
|
7917 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7918 |
|
|
# PIC (with -KPIC) is the default.
|
7919 |
|
|
lt_prog_compiler_static='-non_shared'
|
7920 |
|
|
;;
|
7921 |
|
|
|
7922 |
|
|
linux* | k*bsd*-gnu)
|
7923 |
|
|
case $cc_basename in
|
7924 |
|
|
# old Intel for x86_64 which still supported -KPIC.
|
7925 |
|
|
ecc*)
|
7926 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7927 |
|
|
lt_prog_compiler_pic='-KPIC'
|
7928 |
|
|
lt_prog_compiler_static='-static'
|
7929 |
|
|
;;
|
7930 |
|
|
# icc used to be incompatible with GCC.
|
7931 |
|
|
# ICC 10 doesn't accept -KPIC any more.
|
7932 |
|
|
icc* | ifort*)
|
7933 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7934 |
|
|
lt_prog_compiler_pic='-fPIC'
|
7935 |
|
|
lt_prog_compiler_static='-static'
|
7936 |
|
|
;;
|
7937 |
|
|
# Lahey Fortran 8.1.
|
7938 |
|
|
lf95*)
|
7939 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7940 |
|
|
lt_prog_compiler_pic='--shared'
|
7941 |
|
|
lt_prog_compiler_static='--static'
|
7942 |
|
|
;;
|
7943 |
|
|
pgcc* | pgf77* | pgf90* | pgf95*)
|
7944 |
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
7945 |
|
|
# which looks to be a dead project)
|
7946 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7947 |
|
|
lt_prog_compiler_pic='-fpic'
|
7948 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7949 |
|
|
;;
|
7950 |
|
|
ccc*)
|
7951 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7952 |
|
|
# All Alpha code is PIC.
|
7953 |
|
|
lt_prog_compiler_static='-non_shared'
|
7954 |
|
|
;;
|
7955 |
|
|
xl*)
|
7956 |
|
|
# IBM XL C 8.0/Fortran 10.1 on PPC
|
7957 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7958 |
|
|
lt_prog_compiler_pic='-qpic'
|
7959 |
|
|
lt_prog_compiler_static='-qstaticlink'
|
7960 |
|
|
;;
|
7961 |
|
|
*)
|
7962 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
7963 |
|
|
*Sun\ C*)
|
7964 |
|
|
# Sun C 5.9
|
7965 |
|
|
lt_prog_compiler_pic='-KPIC'
|
7966 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7967 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7968 |
|
|
;;
|
7969 |
|
|
*Sun\ F*)
|
7970 |
|
|
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
7971 |
|
|
lt_prog_compiler_pic='-KPIC'
|
7972 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7973 |
|
|
lt_prog_compiler_wl=''
|
7974 |
|
|
;;
|
7975 |
|
|
esac
|
7976 |
|
|
;;
|
7977 |
|
|
esac
|
7978 |
|
|
;;
|
7979 |
|
|
|
7980 |
|
|
newsos6)
|
7981 |
|
|
lt_prog_compiler_pic='-KPIC'
|
7982 |
|
|
lt_prog_compiler_static='-Bstatic'
|
7983 |
|
|
;;
|
7984 |
|
|
|
7985 |
|
|
*nto* | *qnx*)
|
7986 |
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
7987 |
|
|
# it will coredump.
|
7988 |
|
|
lt_prog_compiler_pic='-fPIC -shared'
|
7989 |
|
|
;;
|
7990 |
|
|
|
7991 |
|
|
osf3* | osf4* | osf5*)
|
7992 |
|
|
lt_prog_compiler_wl='-Wl,'
|
7993 |
|
|
# All OSF/1 code is PIC.
|
7994 |
|
|
lt_prog_compiler_static='-non_shared'
|
7995 |
|
|
;;
|
7996 |
|
|
|
7997 |
|
|
rdos*)
|
7998 |
|
|
lt_prog_compiler_static='-non_shared'
|
7999 |
|
|
;;
|
8000 |
|
|
|
8001 |
|
|
solaris*)
|
8002 |
|
|
lt_prog_compiler_pic='-KPIC'
|
8003 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8004 |
|
|
case $cc_basename in
|
8005 |
|
|
f77* | f90* | f95*)
|
8006 |
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
8007 |
|
|
*)
|
8008 |
|
|
lt_prog_compiler_wl='-Wl,';;
|
8009 |
|
|
esac
|
8010 |
|
|
;;
|
8011 |
|
|
|
8012 |
|
|
sunos4*)
|
8013 |
|
|
lt_prog_compiler_wl='-Qoption ld '
|
8014 |
|
|
lt_prog_compiler_pic='-PIC'
|
8015 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8016 |
|
|
;;
|
8017 |
|
|
|
8018 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3*)
|
8019 |
|
|
lt_prog_compiler_wl='-Wl,'
|
8020 |
|
|
lt_prog_compiler_pic='-KPIC'
|
8021 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8022 |
|
|
;;
|
8023 |
|
|
|
8024 |
|
|
sysv4*MP*)
|
8025 |
|
|
if test -d /usr/nec ;then
|
8026 |
|
|
lt_prog_compiler_pic='-Kconform_pic'
|
8027 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8028 |
|
|
fi
|
8029 |
|
|
;;
|
8030 |
|
|
|
8031 |
|
|
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
8032 |
|
|
lt_prog_compiler_wl='-Wl,'
|
8033 |
|
|
lt_prog_compiler_pic='-KPIC'
|
8034 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8035 |
|
|
;;
|
8036 |
|
|
|
8037 |
|
|
unicos*)
|
8038 |
|
|
lt_prog_compiler_wl='-Wl,'
|
8039 |
|
|
lt_prog_compiler_can_build_shared=no
|
8040 |
|
|
;;
|
8041 |
|
|
|
8042 |
|
|
uts4*)
|
8043 |
|
|
lt_prog_compiler_pic='-pic'
|
8044 |
|
|
lt_prog_compiler_static='-Bstatic'
|
8045 |
|
|
;;
|
8046 |
|
|
|
8047 |
|
|
*)
|
8048 |
|
|
lt_prog_compiler_can_build_shared=no
|
8049 |
|
|
;;
|
8050 |
|
|
esac
|
8051 |
|
|
fi
|
8052 |
|
|
|
8053 |
|
|
case $host_os in
|
8054 |
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
8055 |
|
|
*djgpp*)
|
8056 |
|
|
lt_prog_compiler_pic=
|
8057 |
|
|
;;
|
8058 |
|
|
*)
|
8059 |
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
8060 |
|
|
;;
|
8061 |
|
|
esac
|
8062 |
|
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
8063 |
|
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
|
8064 |
|
|
|
8065 |
|
|
|
8066 |
|
|
|
8067 |
|
|
|
8068 |
|
|
|
8069 |
|
|
|
8070 |
|
|
#
|
8071 |
|
|
# Check to make sure the PIC flag actually works.
|
8072 |
|
|
#
|
8073 |
|
|
if test -n "$lt_prog_compiler_pic"; then
|
8074 |
|
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
8075 |
|
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
|
8076 |
|
|
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
|
8077 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8078 |
|
|
else
|
8079 |
|
|
lt_cv_prog_compiler_pic_works=no
|
8080 |
|
|
ac_outfile=conftest.$ac_objext
|
8081 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
8082 |
|
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
8083 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
8084 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
8085 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
8086 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
8087 |
|
|
# The option is referenced via a variable to avoid confusing sed.
|
8088 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
8089 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8090 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8091 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
8092 |
|
|
(eval echo "\"\$as_me:8092: $lt_compile\"" >&5)
|
8093 |
|
|
(eval "$lt_compile" 2>conftest.err)
|
8094 |
|
|
ac_status=$?
|
8095 |
|
|
cat conftest.err >&5
|
8096 |
|
|
echo "$as_me:8096: \$? = $ac_status" >&5
|
8097 |
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
8098 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
8099 |
|
|
# So say no if there are warnings other than the usual output.
|
8100 |
|
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
8101 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
8102 |
|
|
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
8103 |
|
|
lt_cv_prog_compiler_pic_works=yes
|
8104 |
|
|
fi
|
8105 |
|
|
fi
|
8106 |
|
|
$RM conftest*
|
8107 |
|
|
|
8108 |
|
|
fi
|
8109 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
|
8110 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
|
8111 |
|
|
|
8112 |
|
|
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
|
8113 |
|
|
case $lt_prog_compiler_pic in
|
8114 |
|
|
"" | " "*) ;;
|
8115 |
|
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
8116 |
|
|
esac
|
8117 |
|
|
else
|
8118 |
|
|
lt_prog_compiler_pic=
|
8119 |
|
|
lt_prog_compiler_can_build_shared=no
|
8120 |
|
|
fi
|
8121 |
|
|
|
8122 |
|
|
fi
|
8123 |
|
|
|
8124 |
|
|
|
8125 |
|
|
|
8126 |
|
|
|
8127 |
|
|
|
8128 |
|
|
|
8129 |
|
|
#
|
8130 |
|
|
# Check to make sure the static flag actually works.
|
8131 |
|
|
#
|
8132 |
|
|
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
8133 |
|
|
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
8134 |
|
|
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
8135 |
|
|
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
|
8136 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8137 |
|
|
else
|
8138 |
|
|
lt_cv_prog_compiler_static_works=no
|
8139 |
|
|
save_LDFLAGS="$LDFLAGS"
|
8140 |
|
|
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
8141 |
|
|
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
8142 |
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
8143 |
|
|
# The linker can only warn and ignore the option if not recognized
|
8144 |
|
|
# So say no if there are warnings
|
8145 |
|
|
if test -s conftest.err; then
|
8146 |
|
|
# Append any errors to the config.log.
|
8147 |
|
|
cat conftest.err 1>&5
|
8148 |
|
|
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
8149 |
|
|
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
8150 |
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
8151 |
|
|
lt_cv_prog_compiler_static_works=yes
|
8152 |
|
|
fi
|
8153 |
|
|
else
|
8154 |
|
|
lt_cv_prog_compiler_static_works=yes
|
8155 |
|
|
fi
|
8156 |
|
|
fi
|
8157 |
|
|
$RM -r conftest*
|
8158 |
|
|
LDFLAGS="$save_LDFLAGS"
|
8159 |
|
|
|
8160 |
|
|
fi
|
8161 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
|
8162 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
|
8163 |
|
|
|
8164 |
|
|
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
|
8165 |
|
|
:
|
8166 |
|
|
else
|
8167 |
|
|
lt_prog_compiler_static=
|
8168 |
|
|
fi
|
8169 |
|
|
|
8170 |
|
|
|
8171 |
|
|
|
8172 |
|
|
|
8173 |
|
|
|
8174 |
|
|
|
8175 |
|
|
|
8176 |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
8177 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
8178 |
|
|
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
8179 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8180 |
|
|
else
|
8181 |
|
|
lt_cv_prog_compiler_c_o=no
|
8182 |
|
|
$RM -r conftest 2>/dev/null
|
8183 |
|
|
mkdir conftest
|
8184 |
|
|
cd conftest
|
8185 |
|
|
mkdir out
|
8186 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
8187 |
|
|
|
8188 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
8189 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
8190 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
8191 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
8192 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
8193 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
8194 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8195 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8196 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
8197 |
|
|
(eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
|
8198 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
8199 |
|
|
ac_status=$?
|
8200 |
|
|
cat out/conftest.err >&5
|
8201 |
|
|
echo "$as_me:8201: \$? = $ac_status" >&5
|
8202 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
8203 |
|
|
then
|
8204 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
8205 |
|
|
# So say no if there are warnings
|
8206 |
|
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
8207 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
8208 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
8209 |
|
|
lt_cv_prog_compiler_c_o=yes
|
8210 |
|
|
fi
|
8211 |
|
|
fi
|
8212 |
|
|
chmod u+w . 2>&5
|
8213 |
|
|
$RM conftest*
|
8214 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
8215 |
|
|
# template instantiation
|
8216 |
|
|
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
8217 |
|
|
$RM out/* && rmdir out
|
8218 |
|
|
cd ..
|
8219 |
|
|
$RM -r conftest
|
8220 |
|
|
$RM conftest*
|
8221 |
|
|
|
8222 |
|
|
fi
|
8223 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
8224 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
|
8225 |
|
|
|
8226 |
|
|
|
8227 |
|
|
|
8228 |
|
|
|
8229 |
|
|
|
8230 |
|
|
|
8231 |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
8232 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
8233 |
|
|
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
8234 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8235 |
|
|
else
|
8236 |
|
|
lt_cv_prog_compiler_c_o=no
|
8237 |
|
|
$RM -r conftest 2>/dev/null
|
8238 |
|
|
mkdir conftest
|
8239 |
|
|
cd conftest
|
8240 |
|
|
mkdir out
|
8241 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
8242 |
|
|
|
8243 |
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
8244 |
|
|
# Insert the option either (1) after the last *FLAGS variable, or
|
8245 |
|
|
# (2) before a word containing "conftest.", or (3) at the end.
|
8246 |
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
8247 |
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
8248 |
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
8249 |
|
|
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8250 |
|
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8251 |
|
|
-e 's:$: $lt_compiler_flag:'`
|
8252 |
|
|
(eval echo "\"\$as_me:8252: $lt_compile\"" >&5)
|
8253 |
|
|
(eval "$lt_compile" 2>out/conftest.err)
|
8254 |
|
|
ac_status=$?
|
8255 |
|
|
cat out/conftest.err >&5
|
8256 |
|
|
echo "$as_me:8256: \$? = $ac_status" >&5
|
8257 |
|
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
8258 |
|
|
then
|
8259 |
|
|
# The compiler can only warn and ignore the option if not recognized
|
8260 |
|
|
# So say no if there are warnings
|
8261 |
|
|
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
8262 |
|
|
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
8263 |
|
|
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
8264 |
|
|
lt_cv_prog_compiler_c_o=yes
|
8265 |
|
|
fi
|
8266 |
|
|
fi
|
8267 |
|
|
chmod u+w . 2>&5
|
8268 |
|
|
$RM conftest*
|
8269 |
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
8270 |
|
|
# template instantiation
|
8271 |
|
|
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
8272 |
|
|
$RM out/* && rmdir out
|
8273 |
|
|
cd ..
|
8274 |
|
|
$RM -r conftest
|
8275 |
|
|
$RM conftest*
|
8276 |
|
|
|
8277 |
|
|
fi
|
8278 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
8279 |
|
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
|
8280 |
|
|
|
8281 |
|
|
|
8282 |
|
|
|
8283 |
|
|
|
8284 |
|
|
hard_links="nottested"
|
8285 |
|
|
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
8286 |
|
|
# do not overwrite the value of need_locks provided by the user
|
8287 |
|
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
8288 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
|
8289 |
|
|
hard_links=yes
|
8290 |
|
|
$RM conftest*
|
8291 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
8292 |
|
|
touch conftest.a
|
8293 |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no
|
8294 |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
8295 |
|
|
echo "$as_me:$LINENO: result: $hard_links" >&5
|
8296 |
|
|
echo "${ECHO_T}$hard_links" >&6
|
8297 |
|
|
if test "$hard_links" = no; then
|
8298 |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
8299 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
8300 |
|
|
need_locks=warn
|
8301 |
|
|
fi
|
8302 |
|
|
else
|
8303 |
|
|
need_locks=no
|
8304 |
|
|
fi
|
8305 |
|
|
|
8306 |
|
|
|
8307 |
|
|
|
8308 |
|
|
|
8309 |
|
|
|
8310 |
|
|
|
8311 |
|
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
8312 |
|
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
|
8313 |
|
|
|
8314 |
|
|
runpath_var=
|
8315 |
|
|
allow_undefined_flag=
|
8316 |
|
|
always_export_symbols=no
|
8317 |
|
|
archive_cmds=
|
8318 |
|
|
archive_expsym_cmds=
|
8319 |
|
|
compiler_needs_object=no
|
8320 |
|
|
enable_shared_with_static_runtimes=no
|
8321 |
|
|
export_dynamic_flag_spec=
|
8322 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
8323 |
|
|
hardcode_automatic=no
|
8324 |
|
|
hardcode_direct=no
|
8325 |
|
|
hardcode_direct_absolute=no
|
8326 |
|
|
hardcode_libdir_flag_spec=
|
8327 |
|
|
hardcode_libdir_flag_spec_ld=
|
8328 |
|
|
hardcode_libdir_separator=
|
8329 |
|
|
hardcode_minus_L=no
|
8330 |
|
|
hardcode_shlibpath_var=unsupported
|
8331 |
|
|
inherit_rpath=no
|
8332 |
|
|
link_all_deplibs=unknown
|
8333 |
|
|
module_cmds=
|
8334 |
|
|
module_expsym_cmds=
|
8335 |
|
|
old_archive_from_new_cmds=
|
8336 |
|
|
old_archive_from_expsyms_cmds=
|
8337 |
|
|
thread_safe_flag_spec=
|
8338 |
|
|
whole_archive_flag_spec=
|
8339 |
|
|
# include_expsyms should be a list of space-separated symbols to be *always*
|
8340 |
|
|
# included in the symbol list
|
8341 |
|
|
include_expsyms=
|
8342 |
|
|
# exclude_expsyms can be an extended regexp of symbols to exclude
|
8343 |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
8344 |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
8345 |
|
|
# as well as any symbol that contains `d'.
|
8346 |
|
|
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
8347 |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
8348 |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if
|
8349 |
|
|
# the symbol is explicitly referenced. Since portable code cannot
|
8350 |
|
|
# rely on this symbol name, it's probably fine to never include it in
|
8351 |
|
|
# preloaded symbol tables.
|
8352 |
|
|
# Exclude shared library initialization/finalization symbols.
|
8353 |
|
|
extract_expsyms_cmds=
|
8354 |
|
|
|
8355 |
|
|
case $host_os in
|
8356 |
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
8357 |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
8358 |
|
|
# When not using gcc, we currently assume that we are using
|
8359 |
|
|
# Microsoft Visual C++.
|
8360 |
|
|
if test "$GCC" != yes; then
|
8361 |
|
|
with_gnu_ld=no
|
8362 |
|
|
fi
|
8363 |
|
|
;;
|
8364 |
|
|
interix*)
|
8365 |
|
|
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
8366 |
|
|
with_gnu_ld=yes
|
8367 |
|
|
;;
|
8368 |
|
|
openbsd*)
|
8369 |
|
|
with_gnu_ld=no
|
8370 |
|
|
;;
|
8371 |
|
|
esac
|
8372 |
|
|
|
8373 |
|
|
ld_shlibs=yes
|
8374 |
|
|
if test "$with_gnu_ld" = yes; then
|
8375 |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty
|
8376 |
|
|
wlarc='${wl}'
|
8377 |
|
|
|
8378 |
|
|
# Set some defaults for GNU ld with shared library support. These
|
8379 |
|
|
# are reset later if shared libraries are not supported. Putting them
|
8380 |
|
|
# here allows them to be overridden if necessary.
|
8381 |
|
|
runpath_var=LD_RUN_PATH
|
8382 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
8383 |
|
|
export_dynamic_flag_spec='${wl}--export-dynamic'
|
8384 |
|
|
# ancient GNU ld didn't support --whole-archive et. al.
|
8385 |
|
|
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
8386 |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
8387 |
|
|
else
|
8388 |
|
|
whole_archive_flag_spec=
|
8389 |
|
|
fi
|
8390 |
|
|
supports_anon_versioning=no
|
8391 |
|
|
case `$LD -v 2>&1` in
|
8392 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
8393 |
|
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
8394 |
|
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
8395 |
|
|
*\ 2.11.*) ;; # other 2.11 versions
|
8396 |
|
|
*) supports_anon_versioning=yes ;;
|
8397 |
|
|
esac
|
8398 |
|
|
|
8399 |
|
|
# See if GNU ld supports shared libraries.
|
8400 |
|
|
case $host_os in
|
8401 |
|
|
aix[3-9]*)
|
8402 |
|
|
# On AIX/PPC, the GNU linker is very broken
|
8403 |
|
|
if test "$host_cpu" != ia64; then
|
8404 |
|
|
ld_shlibs=no
|
8405 |
|
|
cat <<_LT_EOF 1>&2
|
8406 |
|
|
|
8407 |
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
8408 |
|
|
*** to be unable to reliably create shared libraries on AIX.
|
8409 |
|
|
*** Therefore, libtool is disabling shared libraries support. If you
|
8410 |
|
|
*** really care for shared libraries, you may want to modify your PATH
|
8411 |
|
|
*** so that a non-GNU linker is found, and then restart.
|
8412 |
|
|
|
8413 |
|
|
_LT_EOF
|
8414 |
|
|
fi
|
8415 |
|
|
;;
|
8416 |
|
|
|
8417 |
|
|
amigaos*)
|
8418 |
|
|
case $host_cpu in
|
8419 |
|
|
powerpc)
|
8420 |
|
|
# see comment about AmigaOS4 .so support
|
8421 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8422 |
|
|
archive_expsym_cmds=''
|
8423 |
|
|
;;
|
8424 |
|
|
m68k)
|
8425 |
|
|
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)'
|
8426 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
8427 |
|
|
hardcode_minus_L=yes
|
8428 |
|
|
;;
|
8429 |
|
|
esac
|
8430 |
|
|
;;
|
8431 |
|
|
|
8432 |
|
|
beos*)
|
8433 |
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
8434 |
|
|
allow_undefined_flag=unsupported
|
8435 |
|
|
# Joseph Beckenbach says some releases of gcc
|
8436 |
|
|
# support --undefined. This deserves some investigation. FIXME
|
8437 |
|
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8438 |
|
|
else
|
8439 |
|
|
ld_shlibs=no
|
8440 |
|
|
fi
|
8441 |
|
|
;;
|
8442 |
|
|
|
8443 |
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
8444 |
|
|
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
8445 |
|
|
# as there is no search path for DLLs.
|
8446 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
8447 |
|
|
allow_undefined_flag=unsupported
|
8448 |
|
|
always_export_symbols=no
|
8449 |
|
|
enable_shared_with_static_runtimes=yes
|
8450 |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
8451 |
|
|
|
8452 |
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
8453 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
8454 |
|
|
# If the export-symbols file already is a .def file (1st line
|
8455 |
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
8456 |
|
|
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
8457 |
|
|
cp $export_symbols $output_objdir/$soname.def;
|
8458 |
|
|
else
|
8459 |
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
8460 |
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
8461 |
|
|
fi~
|
8462 |
|
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
8463 |
|
|
else
|
8464 |
|
|
ld_shlibs=no
|
8465 |
|
|
fi
|
8466 |
|
|
;;
|
8467 |
|
|
|
8468 |
|
|
interix[3-9]*)
|
8469 |
|
|
hardcode_direct=no
|
8470 |
|
|
hardcode_shlibpath_var=no
|
8471 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
8472 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
8473 |
|
|
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
8474 |
|
|
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
8475 |
|
|
# default) and relocated if they conflict, which is a slow very memory
|
8476 |
|
|
# consuming and fragmenting process. To avoid this, we pick a random,
|
8477 |
|
|
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
8478 |
|
|
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
8479 |
|
|
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
8480 |
|
|
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'
|
8481 |
|
|
;;
|
8482 |
|
|
|
8483 |
|
|
gnu* | linux* | tpf* | k*bsd*-gnu)
|
8484 |
|
|
tmp_diet=no
|
8485 |
|
|
if test "$host_os" = linux-dietlibc; then
|
8486 |
|
|
case $cc_basename in
|
8487 |
|
|
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
8488 |
|
|
esac
|
8489 |
|
|
fi
|
8490 |
|
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
8491 |
|
|
&& test "$tmp_diet" = no
|
8492 |
|
|
then
|
8493 |
|
|
tmp_addflag=
|
8494 |
|
|
tmp_sharedflag='-shared'
|
8495 |
|
|
case $cc_basename,$host_cpu in
|
8496 |
|
|
pgcc*) # Portland Group C compiler
|
8497 |
|
|
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'
|
8498 |
|
|
tmp_addflag=' $pic_flag'
|
8499 |
|
|
;;
|
8500 |
|
|
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
8501 |
|
|
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'
|
8502 |
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
8503 |
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
8504 |
|
|
tmp_addflag=' -i_dynamic' ;;
|
8505 |
|
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
8506 |
|
|
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
8507 |
|
|
ifc* | ifort*) # Intel Fortran compiler
|
8508 |
|
|
tmp_addflag=' -nofor_main' ;;
|
8509 |
|
|
lf95*) # Lahey Fortran 8.1
|
8510 |
|
|
whole_archive_flag_spec=
|
8511 |
|
|
tmp_sharedflag='--shared' ;;
|
8512 |
|
|
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
8513 |
|
|
tmp_sharedflag='-qmkshrobj'
|
8514 |
|
|
tmp_addflag= ;;
|
8515 |
|
|
esac
|
8516 |
|
|
case `$CC -V 2>&1 | sed 5q` in
|
8517 |
|
|
*Sun\ C*) # Sun C 5.9
|
8518 |
|
|
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'
|
8519 |
|
|
compiler_needs_object=yes
|
8520 |
|
|
tmp_sharedflag='-G' ;;
|
8521 |
|
|
*Sun\ F*) # Sun Fortran 8.3
|
8522 |
|
|
tmp_sharedflag='-G' ;;
|
8523 |
|
|
esac
|
8524 |
|
|
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8525 |
|
|
|
8526 |
|
|
if test "x$supports_anon_versioning" = xyes; then
|
8527 |
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
8528 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
8529 |
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
8530 |
|
|
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
8531 |
|
|
fi
|
8532 |
|
|
|
8533 |
|
|
case $cc_basename in
|
8534 |
|
|
xlf*)
|
8535 |
|
|
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
8536 |
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
8537 |
|
|
hardcode_libdir_flag_spec=
|
8538 |
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
8539 |
|
|
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
8540 |
|
|
if test "x$supports_anon_versioning" = xyes; then
|
8541 |
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
8542 |
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
8543 |
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
8544 |
|
|
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
8545 |
|
|
fi
|
8546 |
|
|
;;
|
8547 |
|
|
esac
|
8548 |
|
|
else
|
8549 |
|
|
ld_shlibs=no
|
8550 |
|
|
fi
|
8551 |
|
|
;;
|
8552 |
|
|
|
8553 |
|
|
netbsd*)
|
8554 |
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
8555 |
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
8556 |
|
|
wlarc=
|
8557 |
|
|
else
|
8558 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8559 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
8560 |
|
|
fi
|
8561 |
|
|
;;
|
8562 |
|
|
|
8563 |
|
|
solaris*)
|
8564 |
|
|
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
8565 |
|
|
ld_shlibs=no
|
8566 |
|
|
cat <<_LT_EOF 1>&2
|
8567 |
|
|
|
8568 |
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
8569 |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool
|
8570 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
8571 |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify
|
8572 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
8573 |
|
|
*** used, and then restart.
|
8574 |
|
|
|
8575 |
|
|
_LT_EOF
|
8576 |
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
8577 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8578 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
8579 |
|
|
else
|
8580 |
|
|
ld_shlibs=no
|
8581 |
|
|
fi
|
8582 |
|
|
;;
|
8583 |
|
|
|
8584 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
8585 |
|
|
case `$LD -v 2>&1` in
|
8586 |
|
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
8587 |
|
|
ld_shlibs=no
|
8588 |
|
|
cat <<_LT_EOF 1>&2
|
8589 |
|
|
|
8590 |
|
|
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
8591 |
|
|
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
8592 |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU
|
8593 |
|
|
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
8594 |
|
|
*** your PATH or compiler configuration so that the native linker is
|
8595 |
|
|
*** used, and then restart.
|
8596 |
|
|
|
8597 |
|
|
_LT_EOF
|
8598 |
|
|
;;
|
8599 |
|
|
*)
|
8600 |
|
|
# For security reasons, it is highly recommended that you always
|
8601 |
|
|
# use absolute paths for naming shared libraries, and exclude the
|
8602 |
|
|
# DT_RUNPATH tag from executables and libraries. But doing so
|
8603 |
|
|
# requires that you compile everything twice, which is a pain.
|
8604 |
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
8605 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
8606 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8607 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
8608 |
|
|
else
|
8609 |
|
|
ld_shlibs=no
|
8610 |
|
|
fi
|
8611 |
|
|
;;
|
8612 |
|
|
esac
|
8613 |
|
|
;;
|
8614 |
|
|
|
8615 |
|
|
sunos4*)
|
8616 |
|
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
8617 |
|
|
wlarc=
|
8618 |
|
|
hardcode_direct=yes
|
8619 |
|
|
hardcode_shlibpath_var=no
|
8620 |
|
|
;;
|
8621 |
|
|
|
8622 |
|
|
*)
|
8623 |
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
8624 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8625 |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
8626 |
|
|
else
|
8627 |
|
|
ld_shlibs=no
|
8628 |
|
|
fi
|
8629 |
|
|
;;
|
8630 |
|
|
esac
|
8631 |
|
|
|
8632 |
|
|
if test "$ld_shlibs" = no; then
|
8633 |
|
|
runpath_var=
|
8634 |
|
|
hardcode_libdir_flag_spec=
|
8635 |
|
|
export_dynamic_flag_spec=
|
8636 |
|
|
whole_archive_flag_spec=
|
8637 |
|
|
fi
|
8638 |
|
|
else
|
8639 |
|
|
# PORTME fill in a description of your system's linker (not GNU ld)
|
8640 |
|
|
case $host_os in
|
8641 |
|
|
aix3*)
|
8642 |
|
|
allow_undefined_flag=unsupported
|
8643 |
|
|
always_export_symbols=yes
|
8644 |
|
|
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'
|
8645 |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
8646 |
|
|
# are no directories specified by -L.
|
8647 |
|
|
hardcode_minus_L=yes
|
8648 |
|
|
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
8649 |
|
|
# Neither direct hardcoding nor static linking is supported with a
|
8650 |
|
|
# broken collect2.
|
8651 |
|
|
hardcode_direct=unsupported
|
8652 |
|
|
fi
|
8653 |
|
|
;;
|
8654 |
|
|
|
8655 |
|
|
aix[4-9]*)
|
8656 |
|
|
if test "$host_cpu" = ia64; then
|
8657 |
|
|
# On IA64, the linker does run time linking by default, so we don't
|
8658 |
|
|
# have to do anything special.
|
8659 |
|
|
aix_use_runtimelinking=no
|
8660 |
|
|
exp_sym_flag='-Bexport'
|
8661 |
|
|
no_entry_flag=""
|
8662 |
|
|
else
|
8663 |
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
8664 |
|
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
8665 |
|
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
8666 |
|
|
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'
|
8667 |
|
|
else
|
8668 |
|
|
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'
|
8669 |
|
|
fi
|
8670 |
|
|
aix_use_runtimelinking=no
|
8671 |
|
|
|
8672 |
|
|
# Test if we are trying to use run time linking or normal
|
8673 |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
8674 |
|
|
# need to do runtime linking.
|
8675 |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
8676 |
|
|
for ld_flag in $LDFLAGS; do
|
8677 |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
8678 |
|
|
aix_use_runtimelinking=yes
|
8679 |
|
|
break
|
8680 |
|
|
fi
|
8681 |
|
|
done
|
8682 |
|
|
;;
|
8683 |
|
|
esac
|
8684 |
|
|
|
8685 |
|
|
exp_sym_flag='-bexport'
|
8686 |
|
|
no_entry_flag='-bnoentry'
|
8687 |
|
|
fi
|
8688 |
|
|
|
8689 |
|
|
# When large executables or shared objects are built, AIX ld can
|
8690 |
|
|
# have problems creating the table of contents. If linking a library
|
8691 |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to
|
8692 |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
8693 |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
8694 |
|
|
|
8695 |
|
|
archive_cmds=''
|
8696 |
|
|
hardcode_direct=yes
|
8697 |
|
|
hardcode_direct_absolute=yes
|
8698 |
|
|
hardcode_libdir_separator=':'
|
8699 |
|
|
link_all_deplibs=yes
|
8700 |
|
|
file_list_spec='${wl}-f,'
|
8701 |
|
|
|
8702 |
|
|
if test "$GCC" = yes; then
|
8703 |
|
|
case $host_os in aix4.[012]|aix4.[012].*)
|
8704 |
|
|
# We only want to do this on AIX 4.2 and lower, the check
|
8705 |
|
|
# below for broken collect2 doesn't work under 4.3+
|
8706 |
|
|
collect2name=`${CC} -print-prog-name=collect2`
|
8707 |
|
|
if test -f "$collect2name" &&
|
8708 |
|
|
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
8709 |
|
|
then
|
8710 |
|
|
# We have reworked collect2
|
8711 |
|
|
:
|
8712 |
|
|
else
|
8713 |
|
|
# We have old collect2
|
8714 |
|
|
hardcode_direct=unsupported
|
8715 |
|
|
# It fails to find uninstalled libraries when the uninstalled
|
8716 |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L
|
8717 |
|
|
# to unsupported forces relinking
|
8718 |
|
|
hardcode_minus_L=yes
|
8719 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
8720 |
|
|
hardcode_libdir_separator=
|
8721 |
|
|
fi
|
8722 |
|
|
;;
|
8723 |
|
|
esac
|
8724 |
|
|
shared_flag='-shared'
|
8725 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
8726 |
|
|
shared_flag="$shared_flag "'${wl}-G'
|
8727 |
|
|
fi
|
8728 |
|
|
else
|
8729 |
|
|
# not using gcc
|
8730 |
|
|
if test "$host_cpu" = ia64; then
|
8731 |
|
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
8732 |
|
|
# chokes on -Wl,-G. The following line is correct:
|
8733 |
|
|
shared_flag='-G'
|
8734 |
|
|
else
|
8735 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
8736 |
|
|
shared_flag='${wl}-G'
|
8737 |
|
|
else
|
8738 |
|
|
shared_flag='${wl}-bM:SRE'
|
8739 |
|
|
fi
|
8740 |
|
|
fi
|
8741 |
|
|
fi
|
8742 |
|
|
|
8743 |
|
|
export_dynamic_flag_spec='${wl}-bexpall'
|
8744 |
|
|
# It seems that -bexpall does not export symbols beginning with
|
8745 |
|
|
# underscore (_), so it is better to generate a list of symbols to export.
|
8746 |
|
|
always_export_symbols=yes
|
8747 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
8748 |
|
|
# Warning - without using the other runtime loading flags (-brtl),
|
8749 |
|
|
# -berok will link without error, but may produce a broken library.
|
8750 |
|
|
allow_undefined_flag='-berok'
|
8751 |
|
|
# Determine the default libpath from the value encoded in an
|
8752 |
|
|
# empty executable.
|
8753 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8754 |
|
|
/* confdefs.h. */
|
8755 |
|
|
_ACEOF
|
8756 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8757 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8758 |
|
|
/* end confdefs.h. */
|
8759 |
|
|
|
8760 |
|
|
int
|
8761 |
|
|
main ()
|
8762 |
|
|
{
|
8763 |
|
|
|
8764 |
|
|
;
|
8765 |
|
|
return 0;
|
8766 |
|
|
}
|
8767 |
|
|
_ACEOF
|
8768 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8769 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8770 |
|
|
(eval $ac_link) 2>conftest.er1
|
8771 |
|
|
ac_status=$?
|
8772 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8773 |
|
|
rm -f conftest.er1
|
8774 |
|
|
cat conftest.err >&5
|
8775 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8776 |
|
|
(exit $ac_status); } &&
|
8777 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
8778 |
|
|
|| test ! -s conftest.err'
|
8779 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8780 |
|
|
(eval $ac_try) 2>&5
|
8781 |
|
|
ac_status=$?
|
8782 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8783 |
|
|
(exit $ac_status); }; } &&
|
8784 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
8785 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8786 |
|
|
(eval $ac_try) 2>&5
|
8787 |
|
|
ac_status=$?
|
8788 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8789 |
|
|
(exit $ac_status); }; }; then
|
8790 |
|
|
|
8791 |
|
|
lt_aix_libpath_sed='
|
8792 |
|
|
/Import File Strings/,/^$/ {
|
8793 |
|
|
/^0/ {
|
8794 |
|
|
s/^0 *\(.*\)$/\1/
|
8795 |
|
|
p
|
8796 |
|
|
}
|
8797 |
|
|
}'
|
8798 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
8799 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
8800 |
|
|
if test -z "$aix_libpath"; then
|
8801 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
8802 |
|
|
fi
|
8803 |
|
|
else
|
8804 |
|
|
echo "$as_me: failed program was:" >&5
|
8805 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8806 |
|
|
|
8807 |
|
|
fi
|
8808 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
8809 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8810 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
8811 |
|
|
|
8812 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
8813 |
|
|
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"
|
8814 |
|
|
else
|
8815 |
|
|
if test "$host_cpu" = ia64; then
|
8816 |
|
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
8817 |
|
|
allow_undefined_flag="-z nodefs"
|
8818 |
|
|
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"
|
8819 |
|
|
else
|
8820 |
|
|
# Determine the default libpath from the value encoded in an
|
8821 |
|
|
# empty executable.
|
8822 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
8823 |
|
|
/* confdefs.h. */
|
8824 |
|
|
_ACEOF
|
8825 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8826 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8827 |
|
|
/* end confdefs.h. */
|
8828 |
|
|
|
8829 |
|
|
int
|
8830 |
|
|
main ()
|
8831 |
|
|
{
|
8832 |
|
|
|
8833 |
|
|
;
|
8834 |
|
|
return 0;
|
8835 |
|
|
}
|
8836 |
|
|
_ACEOF
|
8837 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8838 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8839 |
|
|
(eval $ac_link) 2>conftest.er1
|
8840 |
|
|
ac_status=$?
|
8841 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8842 |
|
|
rm -f conftest.er1
|
8843 |
|
|
cat conftest.err >&5
|
8844 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8845 |
|
|
(exit $ac_status); } &&
|
8846 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
8847 |
|
|
|| test ! -s conftest.err'
|
8848 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8849 |
|
|
(eval $ac_try) 2>&5
|
8850 |
|
|
ac_status=$?
|
8851 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8852 |
|
|
(exit $ac_status); }; } &&
|
8853 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
8854 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8855 |
|
|
(eval $ac_try) 2>&5
|
8856 |
|
|
ac_status=$?
|
8857 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8858 |
|
|
(exit $ac_status); }; }; then
|
8859 |
|
|
|
8860 |
|
|
lt_aix_libpath_sed='
|
8861 |
|
|
/Import File Strings/,/^$/ {
|
8862 |
|
|
/^0/ {
|
8863 |
|
|
s/^0 *\(.*\)$/\1/
|
8864 |
|
|
p
|
8865 |
|
|
}
|
8866 |
|
|
}'
|
8867 |
|
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
8868 |
|
|
# Check for a 64-bit object if we didn't find anything.
|
8869 |
|
|
if test -z "$aix_libpath"; then
|
8870 |
|
|
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
8871 |
|
|
fi
|
8872 |
|
|
else
|
8873 |
|
|
echo "$as_me: failed program was:" >&5
|
8874 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8875 |
|
|
|
8876 |
|
|
fi
|
8877 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
8878 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8879 |
|
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
8880 |
|
|
|
8881 |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
8882 |
|
|
# Warning - without using the other run time loading flags,
|
8883 |
|
|
# -berok will link without error, but may produce a broken library.
|
8884 |
|
|
no_undefined_flag=' ${wl}-bernotok'
|
8885 |
|
|
allow_undefined_flag=' ${wl}-berok'
|
8886 |
|
|
# Exported symbols can be pulled into shared objects from archives
|
8887 |
|
|
whole_archive_flag_spec='$convenience'
|
8888 |
|
|
archive_cmds_need_lc=yes
|
8889 |
|
|
# This is similar to how AIX traditionally builds its shared libraries.
|
8890 |
|
|
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'
|
8891 |
|
|
fi
|
8892 |
|
|
fi
|
8893 |
|
|
;;
|
8894 |
|
|
|
8895 |
|
|
amigaos*)
|
8896 |
|
|
case $host_cpu in
|
8897 |
|
|
powerpc)
|
8898 |
|
|
# see comment about AmigaOS4 .so support
|
8899 |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
8900 |
|
|
archive_expsym_cmds=''
|
8901 |
|
|
;;
|
8902 |
|
|
m68k)
|
8903 |
|
|
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)'
|
8904 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
8905 |
|
|
hardcode_minus_L=yes
|
8906 |
|
|
;;
|
8907 |
|
|
esac
|
8908 |
|
|
;;
|
8909 |
|
|
|
8910 |
|
|
bsdi[45]*)
|
8911 |
|
|
export_dynamic_flag_spec=-rdynamic
|
8912 |
|
|
;;
|
8913 |
|
|
|
8914 |
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
8915 |
|
|
# When not using gcc, we currently assume that we are using
|
8916 |
|
|
# Microsoft Visual C++.
|
8917 |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
8918 |
|
|
# no search path for DLLs.
|
8919 |
|
|
hardcode_libdir_flag_spec=' '
|
8920 |
|
|
allow_undefined_flag=unsupported
|
8921 |
|
|
# Tell ltmain to make .lib files, not .a files.
|
8922 |
|
|
libext=lib
|
8923 |
|
|
# Tell ltmain to make .dll files, not .so files.
|
8924 |
|
|
shrext_cmds=".dll"
|
8925 |
|
|
# FIXME: Setting linknames here is a bad hack.
|
8926 |
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
8927 |
|
|
# The linker will automatically build a .lib file if we build a DLL.
|
8928 |
|
|
old_archive_from_new_cmds='true'
|
8929 |
|
|
# FIXME: Should let the user specify the lib program.
|
8930 |
|
|
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
8931 |
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
8932 |
|
|
enable_shared_with_static_runtimes=yes
|
8933 |
|
|
;;
|
8934 |
|
|
|
8935 |
|
|
darwin* | rhapsody*)
|
8936 |
|
|
|
8937 |
|
|
|
8938 |
|
|
archive_cmds_need_lc=no
|
8939 |
|
|
hardcode_direct=no
|
8940 |
|
|
hardcode_automatic=yes
|
8941 |
|
|
hardcode_shlibpath_var=unsupported
|
8942 |
|
|
whole_archive_flag_spec=''
|
8943 |
|
|
link_all_deplibs=yes
|
8944 |
|
|
allow_undefined_flag="$_lt_dar_allow_undefined"
|
8945 |
|
|
case $cc_basename in
|
8946 |
|
|
ifort*) _lt_dar_can_shared=yes ;;
|
8947 |
|
|
*) _lt_dar_can_shared=$GCC ;;
|
8948 |
|
|
esac
|
8949 |
|
|
if test "$_lt_dar_can_shared" = "yes"; then
|
8950 |
|
|
output_verbose_link_cmd=echo
|
8951 |
|
|
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
|
8952 |
|
|
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
|
8953 |
|
|
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}"
|
8954 |
|
|
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}"
|
8955 |
|
|
|
8956 |
|
|
else
|
8957 |
|
|
ld_shlibs=no
|
8958 |
|
|
fi
|
8959 |
|
|
|
8960 |
|
|
;;
|
8961 |
|
|
|
8962 |
|
|
dgux*)
|
8963 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
8964 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
8965 |
|
|
hardcode_shlibpath_var=no
|
8966 |
|
|
;;
|
8967 |
|
|
|
8968 |
|
|
freebsd1*)
|
8969 |
|
|
ld_shlibs=no
|
8970 |
|
|
;;
|
8971 |
|
|
|
8972 |
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
8973 |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o
|
8974 |
|
|
# does not break anything, and helps significantly (at the cost of a little
|
8975 |
|
|
# extra space).
|
8976 |
|
|
freebsd2.2*)
|
8977 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
8978 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
8979 |
|
|
hardcode_direct=yes
|
8980 |
|
|
hardcode_shlibpath_var=no
|
8981 |
|
|
;;
|
8982 |
|
|
|
8983 |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
8984 |
|
|
freebsd2*)
|
8985 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
8986 |
|
|
hardcode_direct=yes
|
8987 |
|
|
hardcode_minus_L=yes
|
8988 |
|
|
hardcode_shlibpath_var=no
|
8989 |
|
|
;;
|
8990 |
|
|
|
8991 |
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
8992 |
|
|
freebsd* | dragonfly*)
|
8993 |
|
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
8994 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
8995 |
|
|
hardcode_direct=yes
|
8996 |
|
|
hardcode_shlibpath_var=no
|
8997 |
|
|
;;
|
8998 |
|
|
|
8999 |
|
|
hpux9*)
|
9000 |
|
|
if test "$GCC" = yes; then
|
9001 |
|
|
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'
|
9002 |
|
|
else
|
9003 |
|
|
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'
|
9004 |
|
|
fi
|
9005 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
9006 |
|
|
hardcode_libdir_separator=:
|
9007 |
|
|
hardcode_direct=yes
|
9008 |
|
|
|
9009 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
9010 |
|
|
# but as the default location of the library.
|
9011 |
|
|
hardcode_minus_L=yes
|
9012 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
9013 |
|
|
;;
|
9014 |
|
|
|
9015 |
|
|
hpux10*)
|
9016 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
9017 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
9018 |
|
|
else
|
9019 |
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
9020 |
|
|
fi
|
9021 |
|
|
if test "$with_gnu_ld" = no; then
|
9022 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
9023 |
|
|
hardcode_libdir_flag_spec_ld='+b $libdir'
|
9024 |
|
|
hardcode_libdir_separator=:
|
9025 |
|
|
hardcode_direct=yes
|
9026 |
|
|
hardcode_direct_absolute=yes
|
9027 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
9028 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
9029 |
|
|
# but as the default location of the library.
|
9030 |
|
|
hardcode_minus_L=yes
|
9031 |
|
|
fi
|
9032 |
|
|
;;
|
9033 |
|
|
|
9034 |
|
|
hpux11*)
|
9035 |
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
9036 |
|
|
case $host_cpu in
|
9037 |
|
|
hppa*64*)
|
9038 |
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9039 |
|
|
;;
|
9040 |
|
|
ia64*)
|
9041 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
9042 |
|
|
;;
|
9043 |
|
|
*)
|
9044 |
|
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
9045 |
|
|
;;
|
9046 |
|
|
esac
|
9047 |
|
|
else
|
9048 |
|
|
case $host_cpu in
|
9049 |
|
|
hppa*64*)
|
9050 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9051 |
|
|
;;
|
9052 |
|
|
ia64*)
|
9053 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
9054 |
|
|
;;
|
9055 |
|
|
*)
|
9056 |
|
|
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
9057 |
|
|
;;
|
9058 |
|
|
esac
|
9059 |
|
|
fi
|
9060 |
|
|
if test "$with_gnu_ld" = no; then
|
9061 |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
9062 |
|
|
hardcode_libdir_separator=:
|
9063 |
|
|
|
9064 |
|
|
case $host_cpu in
|
9065 |
|
|
hppa*64*|ia64*)
|
9066 |
|
|
hardcode_direct=no
|
9067 |
|
|
hardcode_shlibpath_var=no
|
9068 |
|
|
;;
|
9069 |
|
|
*)
|
9070 |
|
|
hardcode_direct=yes
|
9071 |
|
|
hardcode_direct_absolute=yes
|
9072 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
9073 |
|
|
|
9074 |
|
|
# hardcode_minus_L: Not really in the search PATH,
|
9075 |
|
|
# but as the default location of the library.
|
9076 |
|
|
hardcode_minus_L=yes
|
9077 |
|
|
;;
|
9078 |
|
|
esac
|
9079 |
|
|
fi
|
9080 |
|
|
;;
|
9081 |
|
|
|
9082 |
|
|
irix5* | irix6* | nonstopux*)
|
9083 |
|
|
if test "$GCC" = yes; then
|
9084 |
|
|
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'
|
9085 |
|
|
# Try to use the -exported_symbol ld option, if it does not
|
9086 |
|
|
# work, assume that -exports_file does not work either and
|
9087 |
|
|
# implicitly export all symbols.
|
9088 |
|
|
save_LDFLAGS="$LDFLAGS"
|
9089 |
|
|
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
9090 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
9091 |
|
|
int foo(void) {}
|
9092 |
|
|
_ACEOF
|
9093 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
9094 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
9095 |
|
|
(eval $ac_link) 2>conftest.er1
|
9096 |
|
|
ac_status=$?
|
9097 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
9098 |
|
|
rm -f conftest.er1
|
9099 |
|
|
cat conftest.err >&5
|
9100 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9101 |
|
|
(exit $ac_status); } &&
|
9102 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
9103 |
|
|
|| test ! -s conftest.err'
|
9104 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
9105 |
|
|
(eval $ac_try) 2>&5
|
9106 |
|
|
ac_status=$?
|
9107 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9108 |
|
|
(exit $ac_status); }; } &&
|
9109 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
9110 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
9111 |
|
|
(eval $ac_try) 2>&5
|
9112 |
|
|
ac_status=$?
|
9113 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9114 |
|
|
(exit $ac_status); }; }; then
|
9115 |
|
|
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'
|
9116 |
|
|
|
9117 |
|
|
else
|
9118 |
|
|
echo "$as_me: failed program was:" >&5
|
9119 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
9120 |
|
|
|
9121 |
|
|
fi
|
9122 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
9123 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
9124 |
|
|
LDFLAGS="$save_LDFLAGS"
|
9125 |
|
|
else
|
9126 |
|
|
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'
|
9127 |
|
|
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'
|
9128 |
|
|
fi
|
9129 |
|
|
archive_cmds_need_lc='no'
|
9130 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
9131 |
|
|
hardcode_libdir_separator=:
|
9132 |
|
|
inherit_rpath=yes
|
9133 |
|
|
link_all_deplibs=yes
|
9134 |
|
|
;;
|
9135 |
|
|
|
9136 |
|
|
netbsd*)
|
9137 |
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
9138 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
9139 |
|
|
else
|
9140 |
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
9141 |
|
|
fi
|
9142 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
9143 |
|
|
hardcode_direct=yes
|
9144 |
|
|
hardcode_shlibpath_var=no
|
9145 |
|
|
;;
|
9146 |
|
|
|
9147 |
|
|
newsos6)
|
9148 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9149 |
|
|
hardcode_direct=yes
|
9150 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
9151 |
|
|
hardcode_libdir_separator=:
|
9152 |
|
|
hardcode_shlibpath_var=no
|
9153 |
|
|
;;
|
9154 |
|
|
|
9155 |
|
|
*nto* | *qnx*)
|
9156 |
|
|
;;
|
9157 |
|
|
|
9158 |
|
|
openbsd*)
|
9159 |
|
|
if test -f /usr/libexec/ld.so; then
|
9160 |
|
|
hardcode_direct=yes
|
9161 |
|
|
hardcode_shlibpath_var=no
|
9162 |
|
|
hardcode_direct_absolute=yes
|
9163 |
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
9164 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
9165 |
|
|
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
9166 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
9167 |
|
|
export_dynamic_flag_spec='${wl}-E'
|
9168 |
|
|
else
|
9169 |
|
|
case $host_os in
|
9170 |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
9171 |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
9172 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
9173 |
|
|
;;
|
9174 |
|
|
*)
|
9175 |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
9176 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
9177 |
|
|
;;
|
9178 |
|
|
esac
|
9179 |
|
|
fi
|
9180 |
|
|
else
|
9181 |
|
|
ld_shlibs=no
|
9182 |
|
|
fi
|
9183 |
|
|
;;
|
9184 |
|
|
|
9185 |
|
|
os2*)
|
9186 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
9187 |
|
|
hardcode_minus_L=yes
|
9188 |
|
|
allow_undefined_flag=unsupported
|
9189 |
|
|
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'
|
9190 |
|
|
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
9191 |
|
|
;;
|
9192 |
|
|
|
9193 |
|
|
osf3*)
|
9194 |
|
|
if test "$GCC" = yes; then
|
9195 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
9196 |
|
|
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'
|
9197 |
|
|
else
|
9198 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
9199 |
|
|
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'
|
9200 |
|
|
fi
|
9201 |
|
|
archive_cmds_need_lc='no'
|
9202 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
9203 |
|
|
hardcode_libdir_separator=:
|
9204 |
|
|
;;
|
9205 |
|
|
|
9206 |
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
9207 |
|
|
if test "$GCC" = yes; then
|
9208 |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
9209 |
|
|
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'
|
9210 |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
9211 |
|
|
else
|
9212 |
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
9213 |
|
|
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'
|
9214 |
|
|
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~
|
9215 |
|
|
$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'
|
9216 |
|
|
|
9217 |
|
|
# Both c and cxx compiler support -rpath directly
|
9218 |
|
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
9219 |
|
|
fi
|
9220 |
|
|
archive_cmds_need_lc='no'
|
9221 |
|
|
hardcode_libdir_separator=:
|
9222 |
|
|
;;
|
9223 |
|
|
|
9224 |
|
|
solaris*)
|
9225 |
|
|
no_undefined_flag=' -z defs'
|
9226 |
|
|
if test "$GCC" = yes; then
|
9227 |
|
|
wlarc='${wl}'
|
9228 |
|
|
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9229 |
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
9230 |
|
|
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
9231 |
|
|
else
|
9232 |
|
|
case `$CC -V 2>&1` in
|
9233 |
|
|
*"Compilers 5.0"*)
|
9234 |
|
|
wlarc=''
|
9235 |
|
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9236 |
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
9237 |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
9238 |
|
|
;;
|
9239 |
|
|
*)
|
9240 |
|
|
wlarc='${wl}'
|
9241 |
|
|
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
9242 |
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
9243 |
|
|
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
9244 |
|
|
;;
|
9245 |
|
|
esac
|
9246 |
|
|
fi
|
9247 |
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
9248 |
|
|
hardcode_shlibpath_var=no
|
9249 |
|
|
case $host_os in
|
9250 |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
9251 |
|
|
*)
|
9252 |
|
|
# The compiler driver will combine and reorder linker options,
|
9253 |
|
|
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
9254 |
|
|
# but is careful enough not to reorder.
|
9255 |
|
|
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
9256 |
|
|
if test "$GCC" = yes; then
|
9257 |
|
|
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
9258 |
|
|
else
|
9259 |
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
9260 |
|
|
fi
|
9261 |
|
|
;;
|
9262 |
|
|
esac
|
9263 |
|
|
link_all_deplibs=yes
|
9264 |
|
|
;;
|
9265 |
|
|
|
9266 |
|
|
sunos4*)
|
9267 |
|
|
if test "x$host_vendor" = xsequent; then
|
9268 |
|
|
# Use $CC to link under sequent, because it throws in some extra .o
|
9269 |
|
|
# files that make .init and .fini sections work.
|
9270 |
|
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
9271 |
|
|
else
|
9272 |
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
9273 |
|
|
fi
|
9274 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
9275 |
|
|
hardcode_direct=yes
|
9276 |
|
|
hardcode_minus_L=yes
|
9277 |
|
|
hardcode_shlibpath_var=no
|
9278 |
|
|
;;
|
9279 |
|
|
|
9280 |
|
|
sysv4)
|
9281 |
|
|
case $host_vendor in
|
9282 |
|
|
sni)
|
9283 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9284 |
|
|
hardcode_direct=yes # is this really true???
|
9285 |
|
|
;;
|
9286 |
|
|
siemens)
|
9287 |
|
|
## LD is ld it makes a PLAMLIB
|
9288 |
|
|
## CC just makes a GrossModule.
|
9289 |
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
9290 |
|
|
reload_cmds='$CC -r -o $output$reload_objs'
|
9291 |
|
|
hardcode_direct=no
|
9292 |
|
|
;;
|
9293 |
|
|
motorola)
|
9294 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9295 |
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
9296 |
|
|
;;
|
9297 |
|
|
esac
|
9298 |
|
|
runpath_var='LD_RUN_PATH'
|
9299 |
|
|
hardcode_shlibpath_var=no
|
9300 |
|
|
;;
|
9301 |
|
|
|
9302 |
|
|
sysv4.3*)
|
9303 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9304 |
|
|
hardcode_shlibpath_var=no
|
9305 |
|
|
export_dynamic_flag_spec='-Bexport'
|
9306 |
|
|
;;
|
9307 |
|
|
|
9308 |
|
|
sysv4*MP*)
|
9309 |
|
|
if test -d /usr/nec; then
|
9310 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9311 |
|
|
hardcode_shlibpath_var=no
|
9312 |
|
|
runpath_var=LD_RUN_PATH
|
9313 |
|
|
hardcode_runpath_var=yes
|
9314 |
|
|
ld_shlibs=yes
|
9315 |
|
|
fi
|
9316 |
|
|
;;
|
9317 |
|
|
|
9318 |
|
|
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
9319 |
|
|
no_undefined_flag='${wl}-z,text'
|
9320 |
|
|
archive_cmds_need_lc=no
|
9321 |
|
|
hardcode_shlibpath_var=no
|
9322 |
|
|
runpath_var='LD_RUN_PATH'
|
9323 |
|
|
|
9324 |
|
|
if test "$GCC" = yes; then
|
9325 |
|
|
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9326 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9327 |
|
|
else
|
9328 |
|
|
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9329 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9330 |
|
|
fi
|
9331 |
|
|
;;
|
9332 |
|
|
|
9333 |
|
|
sysv5* | sco3.2v5* | sco5v6*)
|
9334 |
|
|
# Note: We can NOT use -z defs as we might desire, because we do not
|
9335 |
|
|
# link with -lc, and that would cause any symbols used from libc to
|
9336 |
|
|
# always be unresolved, which means just about no library would
|
9337 |
|
|
# ever link correctly. If we're not using GNU ld we use -z text
|
9338 |
|
|
# though, which does catch some bad symbols but isn't as heavy-handed
|
9339 |
|
|
# as -z defs.
|
9340 |
|
|
no_undefined_flag='${wl}-z,text'
|
9341 |
|
|
allow_undefined_flag='${wl}-z,nodefs'
|
9342 |
|
|
archive_cmds_need_lc=no
|
9343 |
|
|
hardcode_shlibpath_var=no
|
9344 |
|
|
hardcode_libdir_flag_spec='${wl}-R,$libdir'
|
9345 |
|
|
hardcode_libdir_separator=':'
|
9346 |
|
|
link_all_deplibs=yes
|
9347 |
|
|
export_dynamic_flag_spec='${wl}-Bexport'
|
9348 |
|
|
runpath_var='LD_RUN_PATH'
|
9349 |
|
|
|
9350 |
|
|
if test "$GCC" = yes; then
|
9351 |
|
|
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9352 |
|
|
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9353 |
|
|
else
|
9354 |
|
|
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9355 |
|
|
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9356 |
|
|
fi
|
9357 |
|
|
;;
|
9358 |
|
|
|
9359 |
|
|
uts4*)
|
9360 |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9361 |
|
|
hardcode_libdir_flag_spec='-L$libdir'
|
9362 |
|
|
hardcode_shlibpath_var=no
|
9363 |
|
|
;;
|
9364 |
|
|
|
9365 |
|
|
*)
|
9366 |
|
|
ld_shlibs=no
|
9367 |
|
|
;;
|
9368 |
|
|
esac
|
9369 |
|
|
|
9370 |
|
|
if test x$host_vendor = xsni; then
|
9371 |
|
|
case $host in
|
9372 |
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
9373 |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
9374 |
|
|
;;
|
9375 |
|
|
esac
|
9376 |
|
|
fi
|
9377 |
|
|
fi
|
9378 |
|
|
|
9379 |
|
|
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
9380 |
|
|
echo "${ECHO_T}$ld_shlibs" >&6
|
9381 |
|
|
test "$ld_shlibs" = no && can_build_shared=no
|
9382 |
|
|
|
9383 |
|
|
with_gnu_ld=$with_gnu_ld
|
9384 |
|
|
|
9385 |
|
|
|
9386 |
|
|
|
9387 |
|
|
|
9388 |
|
|
|
9389 |
|
|
|
9390 |
|
|
|
9391 |
|
|
|
9392 |
|
|
|
9393 |
|
|
|
9394 |
|
|
|
9395 |
|
|
|
9396 |
|
|
|
9397 |
|
|
|
9398 |
|
|
|
9399 |
|
|
#
|
9400 |
|
|
# Do we need to explicitly link libc?
|
9401 |
|
|
#
|
9402 |
|
|
case "x$archive_cmds_need_lc" in
|
9403 |
|
|
x|xyes)
|
9404 |
|
|
# Assume -lc should be added
|
9405 |
|
|
archive_cmds_need_lc=yes
|
9406 |
|
|
|
9407 |
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
9408 |
|
|
case $archive_cmds in
|
9409 |
|
|
*'~'*)
|
9410 |
|
|
# FIXME: we may have to deal with multi-command sequences.
|
9411 |
|
|
;;
|
9412 |
|
|
'$CC '*)
|
9413 |
|
|
# Test whether the compiler implicitly links with -lc since on some
|
9414 |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
9415 |
|
|
# to ld, don't add -lc before -lgcc.
|
9416 |
|
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
9417 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
|
9418 |
|
|
$RM conftest*
|
9419 |
|
|
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
9420 |
|
|
|
9421 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
9422 |
|
|
(eval $ac_compile) 2>&5
|
9423 |
|
|
ac_status=$?
|
9424 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9425 |
|
|
(exit $ac_status); } 2>conftest.err; then
|
9426 |
|
|
soname=conftest
|
9427 |
|
|
lib=conftest
|
9428 |
|
|
libobjs=conftest.$ac_objext
|
9429 |
|
|
deplibs=
|
9430 |
|
|
wl=$lt_prog_compiler_wl
|
9431 |
|
|
pic_flag=$lt_prog_compiler_pic
|
9432 |
|
|
compiler_flags=-v
|
9433 |
|
|
linker_flags=-v
|
9434 |
|
|
verstring=
|
9435 |
|
|
output_objdir=.
|
9436 |
|
|
libname=conftest
|
9437 |
|
|
lt_save_allow_undefined_flag=$allow_undefined_flag
|
9438 |
|
|
allow_undefined_flag=
|
9439 |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
9440 |
|
|
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
9441 |
|
|
ac_status=$?
|
9442 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
9443 |
|
|
(exit $ac_status); }
|
9444 |
|
|
then
|
9445 |
|
|
archive_cmds_need_lc=no
|
9446 |
|
|
else
|
9447 |
|
|
archive_cmds_need_lc=yes
|
9448 |
|
|
fi
|
9449 |
|
|
allow_undefined_flag=$lt_save_allow_undefined_flag
|
9450 |
|
|
else
|
9451 |
|
|
cat conftest.err 1>&5
|
9452 |
|
|
fi
|
9453 |
|
|
$RM conftest*
|
9454 |
|
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
9455 |
|
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6
|
9456 |
|
|
;;
|
9457 |
|
|
esac
|
9458 |
|
|
fi
|
9459 |
|
|
;;
|
9460 |
|
|
esac
|
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 |
|
|
|
9587 |
|
|
|
9588 |
|
|
|
9589 |
|
|
|
9590 |
|
|
|
9591 |
|
|
|
9592 |
|
|
|
9593 |
|
|
|
9594 |
|
|
|
9595 |
|
|
|
9596 |
|
|
|
9597 |
|
|
|
9598 |
|
|
|
9599 |
|
|
|
9600 |
|
|
|
9601 |
|
|
|
9602 |
|
|
|
9603 |
|
|
|
9604 |
|
|
|
9605 |
|
|
|
9606 |
|
|
|
9607 |
|
|
|
9608 |
|
|
|
9609 |
|
|
|
9610 |
|
|
|
9611 |
|
|
|
9612 |
|
|
|
9613 |
|
|
|
9614 |
|
|
|
9615 |
|
|
|
9616 |
|
|
|
9617 |
|
|
|
9618 |
|
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
9619 |
|
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
|
9620 |
|
|
|
9621 |
|
|
if test "$GCC" = yes; then
|
9622 |
|
|
case $host_os in
|
9623 |
|
|
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
9624 |
|
|
*) lt_awk_arg="/^libraries:/" ;;
|
9625 |
|
|
esac
|
9626 |
|
|
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
9627 |
|
|
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
|
9628 |
|
|
# if the path contains ";" then we assume it to be the separator
|
9629 |
|
|
# otherwise default to the standard path separator (i.e. ":") - it is
|
9630 |
|
|
# assumed that no part of a normal pathname contains ";" but that should
|
9631 |
|
|
# okay in the real world where ";" in dirpaths is itself problematic.
|
9632 |
|
|
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
9633 |
|
|
else
|
9634 |
|
|
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
9635 |
|
|
fi
|
9636 |
|
|
# Ok, now we have the path, separated by spaces, we can step through it
|
9637 |
|
|
# and add multilib dir if necessary.
|
9638 |
|
|
lt_tmp_lt_search_path_spec=
|
9639 |
|
|
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
9640 |
|
|
for lt_sys_path in $lt_search_path_spec; do
|
9641 |
|
|
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
9642 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
9643 |
|
|
else
|
9644 |
|
|
test -d "$lt_sys_path" && \
|
9645 |
|
|
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
9646 |
|
|
fi
|
9647 |
|
|
done
|
9648 |
|
|
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
|
9649 |
|
|
BEGIN {RS=" "; FS="/|\n";} {
|
9650 |
|
|
lt_foo="";
|
9651 |
|
|
lt_count=0;
|
9652 |
|
|
for (lt_i = NF; lt_i > 0; lt_i--) {
|
9653 |
|
|
if ($lt_i != "" && $lt_i != ".") {
|
9654 |
|
|
if ($lt_i == "..") {
|
9655 |
|
|
lt_count++;
|
9656 |
|
|
} else {
|
9657 |
|
|
if (lt_count == 0) {
|
9658 |
|
|
lt_foo="/" $lt_i lt_foo;
|
9659 |
|
|
} else {
|
9660 |
|
|
lt_count--;
|
9661 |
|
|
}
|
9662 |
|
|
}
|
9663 |
|
|
}
|
9664 |
|
|
}
|
9665 |
|
|
if (lt_foo != "") { lt_freq[lt_foo]++; }
|
9666 |
|
|
if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
9667 |
|
|
}'`
|
9668 |
|
|
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
|
9669 |
|
|
else
|
9670 |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
9671 |
|
|
fi
|
9672 |
|
|
library_names_spec=
|
9673 |
|
|
libname_spec='lib$name'
|
9674 |
|
|
soname_spec=
|
9675 |
|
|
shrext_cmds=".so"
|
9676 |
|
|
postinstall_cmds=
|
9677 |
|
|
postuninstall_cmds=
|
9678 |
|
|
finish_cmds=
|
9679 |
|
|
finish_eval=
|
9680 |
|
|
shlibpath_var=
|
9681 |
|
|
shlibpath_overrides_runpath=unknown
|
9682 |
|
|
version_type=none
|
9683 |
|
|
dynamic_linker="$host_os ld.so"
|
9684 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
9685 |
|
|
need_lib_prefix=unknown
|
9686 |
|
|
hardcode_into_libs=no
|
9687 |
|
|
|
9688 |
|
|
# when you set need_version to no, make sure it does not cause -set_version
|
9689 |
|
|
# flags to be left without arguments
|
9690 |
|
|
need_version=unknown
|
9691 |
|
|
|
9692 |
|
|
case $host_os in
|
9693 |
|
|
aix3*)
|
9694 |
|
|
version_type=linux
|
9695 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
9696 |
|
|
shlibpath_var=LIBPATH
|
9697 |
|
|
|
9698 |
|
|
# AIX 3 has no versioning support, so we append a major version to the name.
|
9699 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9700 |
|
|
;;
|
9701 |
|
|
|
9702 |
|
|
aix[4-9]*)
|
9703 |
|
|
version_type=linux
|
9704 |
|
|
need_lib_prefix=no
|
9705 |
|
|
need_version=no
|
9706 |
|
|
hardcode_into_libs=yes
|
9707 |
|
|
if test "$host_cpu" = ia64; then
|
9708 |
|
|
# AIX 5 supports IA64
|
9709 |
|
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
9710 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9711 |
|
|
else
|
9712 |
|
|
# With GCC up to 2.95.x, collect2 would create an import file
|
9713 |
|
|
# for dependence libraries. The import file would start with
|
9714 |
|
|
# the line `#! .'. This would cause the generated library to
|
9715 |
|
|
# depend on `.', always an invalid library. This was fixed in
|
9716 |
|
|
# development snapshots of GCC prior to 3.0.
|
9717 |
|
|
case $host_os in
|
9718 |
|
|
aix4 | aix4.[01] | aix4.[01].*)
|
9719 |
|
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
9720 |
|
|
echo ' yes '
|
9721 |
|
|
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
|
9722 |
|
|
:
|
9723 |
|
|
else
|
9724 |
|
|
can_build_shared=no
|
9725 |
|
|
fi
|
9726 |
|
|
;;
|
9727 |
|
|
esac
|
9728 |
|
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
9729 |
|
|
# soname into executable. Probably we can add versioning support to
|
9730 |
|
|
# collect2, so additional links can be useful in future.
|
9731 |
|
|
if test "$aix_use_runtimelinking" = yes; then
|
9732 |
|
|
# If using run time linking (on AIX 4.2 or later) use lib.so
|
9733 |
|
|
# instead of lib.a to let people know that these are not
|
9734 |
|
|
# typical AIX shared libraries.
|
9735 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9736 |
|
|
else
|
9737 |
|
|
# We preserve .a as extension for shared libraries through AIX4.2
|
9738 |
|
|
# and later when we are not doing run time linking.
|
9739 |
|
|
library_names_spec='${libname}${release}.a $libname.a'
|
9740 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9741 |
|
|
fi
|
9742 |
|
|
shlibpath_var=LIBPATH
|
9743 |
|
|
fi
|
9744 |
|
|
;;
|
9745 |
|
|
|
9746 |
|
|
amigaos*)
|
9747 |
|
|
case $host_cpu in
|
9748 |
|
|
powerpc)
|
9749 |
|
|
# Since July 2007 AmigaOS4 officially supports .so libraries.
|
9750 |
|
|
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
9751 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9752 |
|
|
;;
|
9753 |
|
|
m68k)
|
9754 |
|
|
library_names_spec='$libname.ixlibrary $libname.a'
|
9755 |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
9756 |
|
|
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'
|
9757 |
|
|
;;
|
9758 |
|
|
esac
|
9759 |
|
|
;;
|
9760 |
|
|
|
9761 |
|
|
beos*)
|
9762 |
|
|
library_names_spec='${libname}${shared_ext}'
|
9763 |
|
|
dynamic_linker="$host_os ld.so"
|
9764 |
|
|
shlibpath_var=LIBRARY_PATH
|
9765 |
|
|
;;
|
9766 |
|
|
|
9767 |
|
|
bsdi[45]*)
|
9768 |
|
|
version_type=linux
|
9769 |
|
|
need_version=no
|
9770 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9771 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9772 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
9773 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9774 |
|
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
9775 |
|
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
9776 |
|
|
# the default ld.so.conf also contains /usr/contrib/lib and
|
9777 |
|
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
9778 |
|
|
# libtool to hard-code these into programs
|
9779 |
|
|
;;
|
9780 |
|
|
|
9781 |
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
9782 |
|
|
version_type=windows
|
9783 |
|
|
shrext_cmds=".dll"
|
9784 |
|
|
need_version=no
|
9785 |
|
|
need_lib_prefix=no
|
9786 |
|
|
|
9787 |
|
|
case $GCC,$host_os in
|
9788 |
|
|
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
9789 |
|
|
library_names_spec='$libname.dll.a'
|
9790 |
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
9791 |
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
9792 |
|
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
9793 |
|
|
dldir=$destdir/`dirname \$dlpath`~
|
9794 |
|
|
test -d \$dldir || mkdir -p \$dldir~
|
9795 |
|
|
$install_prog $dir/$dlname \$dldir/$dlname~
|
9796 |
|
|
chmod a+x \$dldir/$dlname~
|
9797 |
|
|
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
9798 |
|
|
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
9799 |
|
|
fi'
|
9800 |
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
9801 |
|
|
dlpath=$dir/\$dldll~
|
9802 |
|
|
$RM \$dlpath'
|
9803 |
|
|
shlibpath_overrides_runpath=yes
|
9804 |
|
|
|
9805 |
|
|
case $host_os in
|
9806 |
|
|
cygwin*)
|
9807 |
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
9808 |
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
9809 |
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
9810 |
|
|
;;
|
9811 |
|
|
mingw* | cegcc*)
|
9812 |
|
|
# MinGW DLLs use traditional 'lib' prefix
|
9813 |
|
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
9814 |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
9815 |
|
|
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
9816 |
|
|
# It is most probably a Windows format PATH printed by
|
9817 |
|
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
9818 |
|
|
# path with ; separators, and with drive letters. We can handle the
|
9819 |
|
|
# drive letters (cygwin fileutils understands them), so leave them,
|
9820 |
|
|
# especially as we might pass files found there to a mingw objdump,
|
9821 |
|
|
# which wouldn't understand a cygwinified path. Ahh.
|
9822 |
|
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
9823 |
|
|
else
|
9824 |
|
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
9825 |
|
|
fi
|
9826 |
|
|
;;
|
9827 |
|
|
pw32*)
|
9828 |
|
|
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
9829 |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
9830 |
|
|
;;
|
9831 |
|
|
esac
|
9832 |
|
|
;;
|
9833 |
|
|
|
9834 |
|
|
*)
|
9835 |
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
9836 |
|
|
;;
|
9837 |
|
|
esac
|
9838 |
|
|
dynamic_linker='Win32 ld.exe'
|
9839 |
|
|
# FIXME: first we should search . and the directory the executable is in
|
9840 |
|
|
shlibpath_var=PATH
|
9841 |
|
|
;;
|
9842 |
|
|
|
9843 |
|
|
darwin* | rhapsody*)
|
9844 |
|
|
dynamic_linker="$host_os dyld"
|
9845 |
|
|
version_type=darwin
|
9846 |
|
|
need_lib_prefix=no
|
9847 |
|
|
need_version=no
|
9848 |
|
|
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
9849 |
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
9850 |
|
|
shlibpath_overrides_runpath=yes
|
9851 |
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
9852 |
|
|
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
9853 |
|
|
|
9854 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
9855 |
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
9856 |
|
|
;;
|
9857 |
|
|
|
9858 |
|
|
dgux*)
|
9859 |
|
|
version_type=linux
|
9860 |
|
|
need_lib_prefix=no
|
9861 |
|
|
need_version=no
|
9862 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
9863 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9864 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9865 |
|
|
;;
|
9866 |
|
|
|
9867 |
|
|
freebsd1*)
|
9868 |
|
|
dynamic_linker=no
|
9869 |
|
|
;;
|
9870 |
|
|
|
9871 |
|
|
freebsd* | dragonfly*)
|
9872 |
|
|
# DragonFly does not have aout. When/if they implement a new
|
9873 |
|
|
# versioning mechanism, adjust this.
|
9874 |
|
|
if test -x /usr/bin/objformat; then
|
9875 |
|
|
objformat=`/usr/bin/objformat`
|
9876 |
|
|
else
|
9877 |
|
|
case $host_os in
|
9878 |
|
|
freebsd[123]*) objformat=aout ;;
|
9879 |
|
|
*) objformat=elf ;;
|
9880 |
|
|
esac
|
9881 |
|
|
fi
|
9882 |
|
|
version_type=freebsd-$objformat
|
9883 |
|
|
case $version_type in
|
9884 |
|
|
freebsd-elf*)
|
9885 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
9886 |
|
|
need_version=no
|
9887 |
|
|
need_lib_prefix=no
|
9888 |
|
|
;;
|
9889 |
|
|
freebsd-*)
|
9890 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
9891 |
|
|
need_version=yes
|
9892 |
|
|
;;
|
9893 |
|
|
esac
|
9894 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9895 |
|
|
case $host_os in
|
9896 |
|
|
freebsd2*)
|
9897 |
|
|
shlibpath_overrides_runpath=yes
|
9898 |
|
|
;;
|
9899 |
|
|
freebsd3.[01]* | freebsdelf3.[01]*)
|
9900 |
|
|
shlibpath_overrides_runpath=yes
|
9901 |
|
|
hardcode_into_libs=yes
|
9902 |
|
|
;;
|
9903 |
|
|
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
9904 |
|
|
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
9905 |
|
|
shlibpath_overrides_runpath=no
|
9906 |
|
|
hardcode_into_libs=yes
|
9907 |
|
|
;;
|
9908 |
|
|
*) # from 4.6 on, and DragonFly
|
9909 |
|
|
shlibpath_overrides_runpath=yes
|
9910 |
|
|
hardcode_into_libs=yes
|
9911 |
|
|
;;
|
9912 |
|
|
esac
|
9913 |
|
|
;;
|
9914 |
|
|
|
9915 |
|
|
gnu*)
|
9916 |
|
|
version_type=linux
|
9917 |
|
|
need_lib_prefix=no
|
9918 |
|
|
need_version=no
|
9919 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
9920 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9921 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9922 |
|
|
hardcode_into_libs=yes
|
9923 |
|
|
;;
|
9924 |
|
|
|
9925 |
|
|
hpux9* | hpux10* | hpux11*)
|
9926 |
|
|
# Give a soname corresponding to the major version so that dld.sl refuses to
|
9927 |
|
|
# link against other versions.
|
9928 |
|
|
version_type=sunos
|
9929 |
|
|
need_lib_prefix=no
|
9930 |
|
|
need_version=no
|
9931 |
|
|
case $host_cpu in
|
9932 |
|
|
ia64*)
|
9933 |
|
|
shrext_cmds='.so'
|
9934 |
|
|
hardcode_into_libs=yes
|
9935 |
|
|
dynamic_linker="$host_os dld.so"
|
9936 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9937 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
9938 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9939 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9940 |
|
|
if test "X$HPUX_IA64_MODE" = X32; then
|
9941 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
9942 |
|
|
else
|
9943 |
|
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
9944 |
|
|
fi
|
9945 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
9946 |
|
|
;;
|
9947 |
|
|
hppa*64*)
|
9948 |
|
|
shrext_cmds='.sl'
|
9949 |
|
|
hardcode_into_libs=yes
|
9950 |
|
|
dynamic_linker="$host_os dld.sl"
|
9951 |
|
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
9952 |
|
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
9953 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9954 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9955 |
|
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
9956 |
|
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
9957 |
|
|
;;
|
9958 |
|
|
*)
|
9959 |
|
|
shrext_cmds='.sl'
|
9960 |
|
|
dynamic_linker="$host_os dld.sl"
|
9961 |
|
|
shlibpath_var=SHLIB_PATH
|
9962 |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
9963 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
9964 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9965 |
|
|
;;
|
9966 |
|
|
esac
|
9967 |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
9968 |
|
|
postinstall_cmds='chmod 555 $lib'
|
9969 |
|
|
;;
|
9970 |
|
|
|
9971 |
|
|
interix[3-9]*)
|
9972 |
|
|
version_type=linux
|
9973 |
|
|
need_lib_prefix=no
|
9974 |
|
|
need_version=no
|
9975 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
9976 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9977 |
|
|
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
9978 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
9979 |
|
|
shlibpath_overrides_runpath=no
|
9980 |
|
|
hardcode_into_libs=yes
|
9981 |
|
|
;;
|
9982 |
|
|
|
9983 |
|
|
irix5* | irix6* | nonstopux*)
|
9984 |
|
|
case $host_os in
|
9985 |
|
|
nonstopux*) version_type=nonstopux ;;
|
9986 |
|
|
*)
|
9987 |
|
|
if test "$lt_cv_prog_gnu_ld" = yes; then
|
9988 |
|
|
version_type=linux
|
9989 |
|
|
else
|
9990 |
|
|
version_type=irix
|
9991 |
|
|
fi ;;
|
9992 |
|
|
esac
|
9993 |
|
|
need_lib_prefix=no
|
9994 |
|
|
need_version=no
|
9995 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
9996 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
9997 |
|
|
case $host_os in
|
9998 |
|
|
irix5* | nonstopux*)
|
9999 |
|
|
libsuff= shlibsuff=
|
10000 |
|
|
;;
|
10001 |
|
|
*)
|
10002 |
|
|
case $LD in # libtool.m4 will add one of these switches to LD
|
10003 |
|
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
10004 |
|
|
libsuff= shlibsuff= libmagic=32-bit;;
|
10005 |
|
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
10006 |
|
|
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
10007 |
|
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
10008 |
|
|
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
10009 |
|
|
*) libsuff= shlibsuff= libmagic=never-match;;
|
10010 |
|
|
esac
|
10011 |
|
|
;;
|
10012 |
|
|
esac
|
10013 |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
10014 |
|
|
shlibpath_overrides_runpath=no
|
10015 |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
10016 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
10017 |
|
|
hardcode_into_libs=yes
|
10018 |
|
|
;;
|
10019 |
|
|
|
10020 |
|
|
# No shared lib support for Linux oldld, aout, or coff.
|
10021 |
|
|
linux*oldld* | linux*aout* | linux*coff*)
|
10022 |
|
|
dynamic_linker=no
|
10023 |
|
|
;;
|
10024 |
|
|
|
10025 |
|
|
# This must be Linux ELF.
|
10026 |
|
|
linux* | k*bsd*-gnu)
|
10027 |
|
|
version_type=linux
|
10028 |
|
|
need_lib_prefix=no
|
10029 |
|
|
need_version=no
|
10030 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10031 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10032 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
10033 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10034 |
|
|
shlibpath_overrides_runpath=no
|
10035 |
|
|
# Some binutils ld are patched to set DT_RUNPATH
|
10036 |
|
|
save_LDFLAGS=$LDFLAGS
|
10037 |
|
|
save_libdir=$libdir
|
10038 |
|
|
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
10039 |
|
|
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
10040 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10041 |
|
|
/* confdefs.h. */
|
10042 |
|
|
_ACEOF
|
10043 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10044 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10045 |
|
|
/* end confdefs.h. */
|
10046 |
|
|
|
10047 |
|
|
int
|
10048 |
|
|
main ()
|
10049 |
|
|
{
|
10050 |
|
|
|
10051 |
|
|
;
|
10052 |
|
|
return 0;
|
10053 |
|
|
}
|
10054 |
|
|
_ACEOF
|
10055 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10056 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10057 |
|
|
(eval $ac_link) 2>conftest.er1
|
10058 |
|
|
ac_status=$?
|
10059 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10060 |
|
|
rm -f conftest.er1
|
10061 |
|
|
cat conftest.err >&5
|
10062 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10063 |
|
|
(exit $ac_status); } &&
|
10064 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10065 |
|
|
|| test ! -s conftest.err'
|
10066 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10067 |
|
|
(eval $ac_try) 2>&5
|
10068 |
|
|
ac_status=$?
|
10069 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10070 |
|
|
(exit $ac_status); }; } &&
|
10071 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10072 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10073 |
|
|
(eval $ac_try) 2>&5
|
10074 |
|
|
ac_status=$?
|
10075 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10076 |
|
|
(exit $ac_status); }; }; then
|
10077 |
|
|
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
|
10078 |
|
|
shlibpath_overrides_runpath=yes
|
10079 |
|
|
fi
|
10080 |
|
|
|
10081 |
|
|
else
|
10082 |
|
|
echo "$as_me: failed program was:" >&5
|
10083 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10084 |
|
|
|
10085 |
|
|
fi
|
10086 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10087 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10088 |
|
|
LDFLAGS=$save_LDFLAGS
|
10089 |
|
|
libdir=$save_libdir
|
10090 |
|
|
|
10091 |
|
|
# This implies no fast_install, which is unacceptable.
|
10092 |
|
|
# Some rework will be needed to allow for fast_install
|
10093 |
|
|
# before this can be enabled.
|
10094 |
|
|
hardcode_into_libs=yes
|
10095 |
|
|
|
10096 |
|
|
# Append ld.so.conf contents to the search path
|
10097 |
|
|
if test -f /etc/ld.so.conf; then
|
10098 |
|
|
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' ' '`
|
10099 |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
10100 |
|
|
fi
|
10101 |
|
|
|
10102 |
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
10103 |
|
|
# powerpc, because MkLinux only supported shared libraries with the
|
10104 |
|
|
# GNU dynamic linker. Since this was broken with cross compilers,
|
10105 |
|
|
# most powerpc-linux boxes support dynamic linking these days and
|
10106 |
|
|
# people can always --disable-shared, the test was removed, and we
|
10107 |
|
|
# assume the GNU/Linux dynamic linker is in use.
|
10108 |
|
|
dynamic_linker='GNU/Linux ld.so'
|
10109 |
|
|
;;
|
10110 |
|
|
|
10111 |
|
|
netbsd*)
|
10112 |
|
|
version_type=sunos
|
10113 |
|
|
need_lib_prefix=no
|
10114 |
|
|
need_version=no
|
10115 |
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
10116 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
10117 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
10118 |
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
10119 |
|
|
else
|
10120 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
10121 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10122 |
|
|
dynamic_linker='NetBSD ld.elf_so'
|
10123 |
|
|
fi
|
10124 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10125 |
|
|
shlibpath_overrides_runpath=yes
|
10126 |
|
|
hardcode_into_libs=yes
|
10127 |
|
|
;;
|
10128 |
|
|
|
10129 |
|
|
newsos6)
|
10130 |
|
|
version_type=linux
|
10131 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10132 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10133 |
|
|
shlibpath_overrides_runpath=yes
|
10134 |
|
|
;;
|
10135 |
|
|
|
10136 |
|
|
*nto* | *qnx*)
|
10137 |
|
|
version_type=qnx
|
10138 |
|
|
need_lib_prefix=no
|
10139 |
|
|
need_version=no
|
10140 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10141 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10142 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10143 |
|
|
shlibpath_overrides_runpath=no
|
10144 |
|
|
hardcode_into_libs=yes
|
10145 |
|
|
dynamic_linker='ldqnx.so'
|
10146 |
|
|
;;
|
10147 |
|
|
|
10148 |
|
|
openbsd*)
|
10149 |
|
|
version_type=sunos
|
10150 |
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
10151 |
|
|
need_lib_prefix=no
|
10152 |
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
10153 |
|
|
case $host_os in
|
10154 |
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
10155 |
|
|
*) need_version=no ;;
|
10156 |
|
|
esac
|
10157 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
10158 |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
10159 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10160 |
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
10161 |
|
|
case $host_os in
|
10162 |
|
|
openbsd2.[89] | openbsd2.[89].*)
|
10163 |
|
|
shlibpath_overrides_runpath=no
|
10164 |
|
|
;;
|
10165 |
|
|
*)
|
10166 |
|
|
shlibpath_overrides_runpath=yes
|
10167 |
|
|
;;
|
10168 |
|
|
esac
|
10169 |
|
|
else
|
10170 |
|
|
shlibpath_overrides_runpath=yes
|
10171 |
|
|
fi
|
10172 |
|
|
;;
|
10173 |
|
|
|
10174 |
|
|
os2*)
|
10175 |
|
|
libname_spec='$name'
|
10176 |
|
|
shrext_cmds=".dll"
|
10177 |
|
|
need_lib_prefix=no
|
10178 |
|
|
library_names_spec='$libname${shared_ext} $libname.a'
|
10179 |
|
|
dynamic_linker='OS/2 ld.exe'
|
10180 |
|
|
shlibpath_var=LIBPATH
|
10181 |
|
|
;;
|
10182 |
|
|
|
10183 |
|
|
osf3* | osf4* | osf5*)
|
10184 |
|
|
version_type=osf
|
10185 |
|
|
need_lib_prefix=no
|
10186 |
|
|
need_version=no
|
10187 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10188 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10189 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10190 |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
10191 |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
10192 |
|
|
;;
|
10193 |
|
|
|
10194 |
|
|
rdos*)
|
10195 |
|
|
dynamic_linker=no
|
10196 |
|
|
;;
|
10197 |
|
|
|
10198 |
|
|
solaris*)
|
10199 |
|
|
version_type=linux
|
10200 |
|
|
need_lib_prefix=no
|
10201 |
|
|
need_version=no
|
10202 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10203 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10204 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10205 |
|
|
shlibpath_overrides_runpath=yes
|
10206 |
|
|
hardcode_into_libs=yes
|
10207 |
|
|
# ldd complains unless libraries are executable
|
10208 |
|
|
postinstall_cmds='chmod +x $lib'
|
10209 |
|
|
;;
|
10210 |
|
|
|
10211 |
|
|
sunos4*)
|
10212 |
|
|
version_type=sunos
|
10213 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
10214 |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
10215 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10216 |
|
|
shlibpath_overrides_runpath=yes
|
10217 |
|
|
if test "$with_gnu_ld" = yes; then
|
10218 |
|
|
need_lib_prefix=no
|
10219 |
|
|
fi
|
10220 |
|
|
need_version=yes
|
10221 |
|
|
;;
|
10222 |
|
|
|
10223 |
|
|
sysv4 | sysv4.3*)
|
10224 |
|
|
version_type=linux
|
10225 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10226 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10227 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10228 |
|
|
case $host_vendor in
|
10229 |
|
|
sni)
|
10230 |
|
|
shlibpath_overrides_runpath=no
|
10231 |
|
|
need_lib_prefix=no
|
10232 |
|
|
runpath_var=LD_RUN_PATH
|
10233 |
|
|
;;
|
10234 |
|
|
siemens)
|
10235 |
|
|
need_lib_prefix=no
|
10236 |
|
|
;;
|
10237 |
|
|
motorola)
|
10238 |
|
|
need_lib_prefix=no
|
10239 |
|
|
need_version=no
|
10240 |
|
|
shlibpath_overrides_runpath=no
|
10241 |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
10242 |
|
|
;;
|
10243 |
|
|
esac
|
10244 |
|
|
;;
|
10245 |
|
|
|
10246 |
|
|
sysv4*MP*)
|
10247 |
|
|
if test -d /usr/nec ;then
|
10248 |
|
|
version_type=linux
|
10249 |
|
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
10250 |
|
|
soname_spec='$libname${shared_ext}.$major'
|
10251 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10252 |
|
|
fi
|
10253 |
|
|
;;
|
10254 |
|
|
|
10255 |
|
|
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
10256 |
|
|
version_type=freebsd-elf
|
10257 |
|
|
need_lib_prefix=no
|
10258 |
|
|
need_version=no
|
10259 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
10260 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10261 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10262 |
|
|
shlibpath_overrides_runpath=yes
|
10263 |
|
|
hardcode_into_libs=yes
|
10264 |
|
|
if test "$with_gnu_ld" = yes; then
|
10265 |
|
|
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
10266 |
|
|
else
|
10267 |
|
|
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
10268 |
|
|
case $host_os in
|
10269 |
|
|
sco3.2v5*)
|
10270 |
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
10271 |
|
|
;;
|
10272 |
|
|
esac
|
10273 |
|
|
fi
|
10274 |
|
|
sys_lib_dlsearch_path_spec='/usr/lib'
|
10275 |
|
|
;;
|
10276 |
|
|
|
10277 |
|
|
tpf*)
|
10278 |
|
|
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
10279 |
|
|
version_type=linux
|
10280 |
|
|
need_lib_prefix=no
|
10281 |
|
|
need_version=no
|
10282 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10283 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10284 |
|
|
shlibpath_overrides_runpath=no
|
10285 |
|
|
hardcode_into_libs=yes
|
10286 |
|
|
;;
|
10287 |
|
|
|
10288 |
|
|
uts4*)
|
10289 |
|
|
version_type=linux
|
10290 |
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10291 |
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
10292 |
|
|
shlibpath_var=LD_LIBRARY_PATH
|
10293 |
|
|
;;
|
10294 |
|
|
|
10295 |
|
|
*)
|
10296 |
|
|
dynamic_linker=no
|
10297 |
|
|
;;
|
10298 |
|
|
esac
|
10299 |
|
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
10300 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6
|
10301 |
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
10302 |
|
|
|
10303 |
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
10304 |
|
|
if test "$GCC" = yes; then
|
10305 |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
10306 |
|
|
fi
|
10307 |
|
|
|
10308 |
|
|
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
|
10309 |
|
|
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
|
10310 |
|
|
fi
|
10311 |
|
|
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
|
10312 |
|
|
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
|
10313 |
|
|
fi
|
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 |
|
|
|
10349 |
|
|
|
10350 |
|
|
|
10351 |
|
|
|
10352 |
|
|
|
10353 |
|
|
|
10354 |
|
|
|
10355 |
|
|
|
10356 |
|
|
|
10357 |
|
|
|
10358 |
|
|
|
10359 |
|
|
|
10360 |
|
|
|
10361 |
|
|
|
10362 |
|
|
|
10363 |
|
|
|
10364 |
|
|
|
10365 |
|
|
|
10366 |
|
|
|
10367 |
|
|
|
10368 |
|
|
|
10369 |
|
|
|
10370 |
|
|
|
10371 |
|
|
|
10372 |
|
|
|
10373 |
|
|
|
10374 |
|
|
|
10375 |
|
|
|
10376 |
|
|
|
10377 |
|
|
|
10378 |
|
|
|
10379 |
|
|
|
10380 |
|
|
|
10381 |
|
|
|
10382 |
|
|
|
10383 |
|
|
|
10384 |
|
|
|
10385 |
|
|
|
10386 |
|
|
|
10387 |
|
|
|
10388 |
|
|
|
10389 |
|
|
|
10390 |
|
|
|
10391 |
|
|
|
10392 |
|
|
|
10393 |
|
|
|
10394 |
|
|
|
10395 |
|
|
|
10396 |
|
|
|
10397 |
|
|
|
10398 |
|
|
|
10399 |
|
|
|
10400 |
|
|
|
10401 |
|
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
10402 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
10403 |
|
|
hardcode_action=
|
10404 |
|
|
if test -n "$hardcode_libdir_flag_spec" ||
|
10405 |
|
|
test -n "$runpath_var" ||
|
10406 |
|
|
test "X$hardcode_automatic" = "Xyes" ; then
|
10407 |
|
|
|
10408 |
|
|
# We can hardcode non-existent directories.
|
10409 |
|
|
if test "$hardcode_direct" != no &&
|
10410 |
|
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
10411 |
|
|
# have to relink, otherwise we might link with an installed library
|
10412 |
|
|
# when we should be linking with a yet-to-be-installed one
|
10413 |
|
|
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
10414 |
|
|
test "$hardcode_minus_L" != no; then
|
10415 |
|
|
# Linking always hardcodes the temporary library directory.
|
10416 |
|
|
hardcode_action=relink
|
10417 |
|
|
else
|
10418 |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
10419 |
|
|
hardcode_action=immediate
|
10420 |
|
|
fi
|
10421 |
|
|
else
|
10422 |
|
|
# We cannot hardcode anything, or else we can only hardcode existing
|
10423 |
|
|
# directories.
|
10424 |
|
|
hardcode_action=unsupported
|
10425 |
|
|
fi
|
10426 |
|
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
10427 |
|
|
echo "${ECHO_T}$hardcode_action" >&6
|
10428 |
|
|
|
10429 |
|
|
if test "$hardcode_action" = relink ||
|
10430 |
|
|
test "$inherit_rpath" = yes; then
|
10431 |
|
|
# Fast installation is not supported
|
10432 |
|
|
enable_fast_install=no
|
10433 |
|
|
elif test "$shlibpath_overrides_runpath" = yes ||
|
10434 |
|
|
test "$enable_shared" = no; then
|
10435 |
|
|
# Fast installation is not necessary
|
10436 |
|
|
enable_fast_install=needless
|
10437 |
|
|
fi
|
10438 |
|
|
|
10439 |
|
|
|
10440 |
|
|
|
10441 |
|
|
|
10442 |
|
|
|
10443 |
|
|
|
10444 |
|
|
if test "x$enable_dlopen" != xyes; then
|
10445 |
|
|
enable_dlopen=unknown
|
10446 |
|
|
enable_dlopen_self=unknown
|
10447 |
|
|
enable_dlopen_self_static=unknown
|
10448 |
|
|
else
|
10449 |
|
|
lt_cv_dlopen=no
|
10450 |
|
|
lt_cv_dlopen_libs=
|
10451 |
|
|
|
10452 |
|
|
case $host_os in
|
10453 |
|
|
beos*)
|
10454 |
|
|
lt_cv_dlopen="load_add_on"
|
10455 |
|
|
lt_cv_dlopen_libs=
|
10456 |
|
|
lt_cv_dlopen_self=yes
|
10457 |
|
|
;;
|
10458 |
|
|
|
10459 |
|
|
mingw* | pw32* | cegcc*)
|
10460 |
|
|
lt_cv_dlopen="LoadLibrary"
|
10461 |
|
|
lt_cv_dlopen_libs=
|
10462 |
|
|
;;
|
10463 |
|
|
|
10464 |
|
|
cygwin*)
|
10465 |
|
|
lt_cv_dlopen="dlopen"
|
10466 |
|
|
lt_cv_dlopen_libs=
|
10467 |
|
|
;;
|
10468 |
|
|
|
10469 |
|
|
darwin*)
|
10470 |
|
|
# if libdl is installed we need to link against it
|
10471 |
|
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
10472 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
10473 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
10474 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10475 |
|
|
else
|
10476 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
10477 |
|
|
LIBS="-ldl $LIBS"
|
10478 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10479 |
|
|
/* confdefs.h. */
|
10480 |
|
|
_ACEOF
|
10481 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10482 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10483 |
|
|
/* end confdefs.h. */
|
10484 |
|
|
|
10485 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10486 |
|
|
#ifdef __cplusplus
|
10487 |
|
|
extern "C"
|
10488 |
|
|
#endif
|
10489 |
|
|
/* We use char because int might match the return type of a gcc2
|
10490 |
|
|
builtin and then its argument prototype would still apply. */
|
10491 |
|
|
char dlopen ();
|
10492 |
|
|
int
|
10493 |
|
|
main ()
|
10494 |
|
|
{
|
10495 |
|
|
dlopen ();
|
10496 |
|
|
;
|
10497 |
|
|
return 0;
|
10498 |
|
|
}
|
10499 |
|
|
_ACEOF
|
10500 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10501 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10502 |
|
|
(eval $ac_link) 2>conftest.er1
|
10503 |
|
|
ac_status=$?
|
10504 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10505 |
|
|
rm -f conftest.er1
|
10506 |
|
|
cat conftest.err >&5
|
10507 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10508 |
|
|
(exit $ac_status); } &&
|
10509 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10510 |
|
|
|| test ! -s conftest.err'
|
10511 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10512 |
|
|
(eval $ac_try) 2>&5
|
10513 |
|
|
ac_status=$?
|
10514 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10515 |
|
|
(exit $ac_status); }; } &&
|
10516 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10517 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10518 |
|
|
(eval $ac_try) 2>&5
|
10519 |
|
|
ac_status=$?
|
10520 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10521 |
|
|
(exit $ac_status); }; }; then
|
10522 |
|
|
ac_cv_lib_dl_dlopen=yes
|
10523 |
|
|
else
|
10524 |
|
|
echo "$as_me: failed program was:" >&5
|
10525 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10526 |
|
|
|
10527 |
|
|
ac_cv_lib_dl_dlopen=no
|
10528 |
|
|
fi
|
10529 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10530 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10531 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
10532 |
|
|
fi
|
10533 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
10534 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
10535 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
10536 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
10537 |
|
|
else
|
10538 |
|
|
|
10539 |
|
|
lt_cv_dlopen="dyld"
|
10540 |
|
|
lt_cv_dlopen_libs=
|
10541 |
|
|
lt_cv_dlopen_self=yes
|
10542 |
|
|
|
10543 |
|
|
fi
|
10544 |
|
|
|
10545 |
|
|
;;
|
10546 |
|
|
|
10547 |
|
|
*)
|
10548 |
|
|
echo "$as_me:$LINENO: checking for shl_load" >&5
|
10549 |
|
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
10550 |
|
|
if test "${ac_cv_func_shl_load+set}" = set; then
|
10551 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10552 |
|
|
else
|
10553 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10554 |
|
|
/* confdefs.h. */
|
10555 |
|
|
_ACEOF
|
10556 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10557 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10558 |
|
|
/* end confdefs.h. */
|
10559 |
|
|
/* Define shl_load to an innocuous variant, in case declares shl_load.
|
10560 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
10561 |
|
|
#define shl_load innocuous_shl_load
|
10562 |
|
|
|
10563 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
10564 |
|
|
which can conflict with char shl_load (); below.
|
10565 |
|
|
Prefer to if __STDC__ is defined, since
|
10566 |
|
|
exists even on freestanding compilers. */
|
10567 |
|
|
|
10568 |
|
|
#ifdef __STDC__
|
10569 |
|
|
# include
|
10570 |
|
|
#else
|
10571 |
|
|
# include
|
10572 |
|
|
#endif
|
10573 |
|
|
|
10574 |
|
|
#undef shl_load
|
10575 |
|
|
|
10576 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10577 |
|
|
#ifdef __cplusplus
|
10578 |
|
|
extern "C"
|
10579 |
|
|
{
|
10580 |
|
|
#endif
|
10581 |
|
|
/* We use char because int might match the return type of a gcc2
|
10582 |
|
|
builtin and then its argument prototype would still apply. */
|
10583 |
|
|
char shl_load ();
|
10584 |
|
|
/* The GNU C library defines this for functions which it implements
|
10585 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
10586 |
|
|
something starting with __ and the normal name is an alias. */
|
10587 |
|
|
#if defined (__stub_shl_load) || defined (__stub___shl_load)
|
10588 |
|
|
choke me
|
10589 |
|
|
#else
|
10590 |
|
|
char (*f) () = shl_load;
|
10591 |
|
|
#endif
|
10592 |
|
|
#ifdef __cplusplus
|
10593 |
|
|
}
|
10594 |
|
|
#endif
|
10595 |
|
|
|
10596 |
|
|
int
|
10597 |
|
|
main ()
|
10598 |
|
|
{
|
10599 |
|
|
return f != shl_load;
|
10600 |
|
|
;
|
10601 |
|
|
return 0;
|
10602 |
|
|
}
|
10603 |
|
|
_ACEOF
|
10604 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10605 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10606 |
|
|
(eval $ac_link) 2>conftest.er1
|
10607 |
|
|
ac_status=$?
|
10608 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10609 |
|
|
rm -f conftest.er1
|
10610 |
|
|
cat conftest.err >&5
|
10611 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10612 |
|
|
(exit $ac_status); } &&
|
10613 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10614 |
|
|
|| test ! -s conftest.err'
|
10615 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10616 |
|
|
(eval $ac_try) 2>&5
|
10617 |
|
|
ac_status=$?
|
10618 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10619 |
|
|
(exit $ac_status); }; } &&
|
10620 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10621 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10622 |
|
|
(eval $ac_try) 2>&5
|
10623 |
|
|
ac_status=$?
|
10624 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10625 |
|
|
(exit $ac_status); }; }; then
|
10626 |
|
|
ac_cv_func_shl_load=yes
|
10627 |
|
|
else
|
10628 |
|
|
echo "$as_me: failed program was:" >&5
|
10629 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10630 |
|
|
|
10631 |
|
|
ac_cv_func_shl_load=no
|
10632 |
|
|
fi
|
10633 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10634 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10635 |
|
|
fi
|
10636 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
10637 |
|
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
10638 |
|
|
if test $ac_cv_func_shl_load = yes; then
|
10639 |
|
|
lt_cv_dlopen="shl_load"
|
10640 |
|
|
else
|
10641 |
|
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
10642 |
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
10643 |
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
10644 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10645 |
|
|
else
|
10646 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
10647 |
|
|
LIBS="-ldld $LIBS"
|
10648 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10649 |
|
|
/* confdefs.h. */
|
10650 |
|
|
_ACEOF
|
10651 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10652 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10653 |
|
|
/* end confdefs.h. */
|
10654 |
|
|
|
10655 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10656 |
|
|
#ifdef __cplusplus
|
10657 |
|
|
extern "C"
|
10658 |
|
|
#endif
|
10659 |
|
|
/* We use char because int might match the return type of a gcc2
|
10660 |
|
|
builtin and then its argument prototype would still apply. */
|
10661 |
|
|
char shl_load ();
|
10662 |
|
|
int
|
10663 |
|
|
main ()
|
10664 |
|
|
{
|
10665 |
|
|
shl_load ();
|
10666 |
|
|
;
|
10667 |
|
|
return 0;
|
10668 |
|
|
}
|
10669 |
|
|
_ACEOF
|
10670 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10671 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10672 |
|
|
(eval $ac_link) 2>conftest.er1
|
10673 |
|
|
ac_status=$?
|
10674 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10675 |
|
|
rm -f conftest.er1
|
10676 |
|
|
cat conftest.err >&5
|
10677 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10678 |
|
|
(exit $ac_status); } &&
|
10679 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10680 |
|
|
|| test ! -s conftest.err'
|
10681 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10682 |
|
|
(eval $ac_try) 2>&5
|
10683 |
|
|
ac_status=$?
|
10684 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10685 |
|
|
(exit $ac_status); }; } &&
|
10686 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10687 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10688 |
|
|
(eval $ac_try) 2>&5
|
10689 |
|
|
ac_status=$?
|
10690 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10691 |
|
|
(exit $ac_status); }; }; then
|
10692 |
|
|
ac_cv_lib_dld_shl_load=yes
|
10693 |
|
|
else
|
10694 |
|
|
echo "$as_me: failed program was:" >&5
|
10695 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10696 |
|
|
|
10697 |
|
|
ac_cv_lib_dld_shl_load=no
|
10698 |
|
|
fi
|
10699 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10700 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10701 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
10702 |
|
|
fi
|
10703 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
10704 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
10705 |
|
|
if test $ac_cv_lib_dld_shl_load = yes; then
|
10706 |
|
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
|
10707 |
|
|
else
|
10708 |
|
|
echo "$as_me:$LINENO: checking for dlopen" >&5
|
10709 |
|
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
10710 |
|
|
if test "${ac_cv_func_dlopen+set}" = set; then
|
10711 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10712 |
|
|
else
|
10713 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10714 |
|
|
/* confdefs.h. */
|
10715 |
|
|
_ACEOF
|
10716 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10717 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10718 |
|
|
/* end confdefs.h. */
|
10719 |
|
|
/* Define dlopen to an innocuous variant, in case declares dlopen.
|
10720 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
10721 |
|
|
#define dlopen innocuous_dlopen
|
10722 |
|
|
|
10723 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
10724 |
|
|
which can conflict with char dlopen (); below.
|
10725 |
|
|
Prefer to if __STDC__ is defined, since
|
10726 |
|
|
exists even on freestanding compilers. */
|
10727 |
|
|
|
10728 |
|
|
#ifdef __STDC__
|
10729 |
|
|
# include
|
10730 |
|
|
#else
|
10731 |
|
|
# include
|
10732 |
|
|
#endif
|
10733 |
|
|
|
10734 |
|
|
#undef dlopen
|
10735 |
|
|
|
10736 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10737 |
|
|
#ifdef __cplusplus
|
10738 |
|
|
extern "C"
|
10739 |
|
|
{
|
10740 |
|
|
#endif
|
10741 |
|
|
/* We use char because int might match the return type of a gcc2
|
10742 |
|
|
builtin and then its argument prototype would still apply. */
|
10743 |
|
|
char dlopen ();
|
10744 |
|
|
/* The GNU C library defines this for functions which it implements
|
10745 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
10746 |
|
|
something starting with __ and the normal name is an alias. */
|
10747 |
|
|
#if defined (__stub_dlopen) || defined (__stub___dlopen)
|
10748 |
|
|
choke me
|
10749 |
|
|
#else
|
10750 |
|
|
char (*f) () = dlopen;
|
10751 |
|
|
#endif
|
10752 |
|
|
#ifdef __cplusplus
|
10753 |
|
|
}
|
10754 |
|
|
#endif
|
10755 |
|
|
|
10756 |
|
|
int
|
10757 |
|
|
main ()
|
10758 |
|
|
{
|
10759 |
|
|
return f != dlopen;
|
10760 |
|
|
;
|
10761 |
|
|
return 0;
|
10762 |
|
|
}
|
10763 |
|
|
_ACEOF
|
10764 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10765 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10766 |
|
|
(eval $ac_link) 2>conftest.er1
|
10767 |
|
|
ac_status=$?
|
10768 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10769 |
|
|
rm -f conftest.er1
|
10770 |
|
|
cat conftest.err >&5
|
10771 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10772 |
|
|
(exit $ac_status); } &&
|
10773 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10774 |
|
|
|| test ! -s conftest.err'
|
10775 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10776 |
|
|
(eval $ac_try) 2>&5
|
10777 |
|
|
ac_status=$?
|
10778 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10779 |
|
|
(exit $ac_status); }; } &&
|
10780 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10781 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10782 |
|
|
(eval $ac_try) 2>&5
|
10783 |
|
|
ac_status=$?
|
10784 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10785 |
|
|
(exit $ac_status); }; }; then
|
10786 |
|
|
ac_cv_func_dlopen=yes
|
10787 |
|
|
else
|
10788 |
|
|
echo "$as_me: failed program was:" >&5
|
10789 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10790 |
|
|
|
10791 |
|
|
ac_cv_func_dlopen=no
|
10792 |
|
|
fi
|
10793 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10794 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10795 |
|
|
fi
|
10796 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
10797 |
|
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
10798 |
|
|
if test $ac_cv_func_dlopen = yes; then
|
10799 |
|
|
lt_cv_dlopen="dlopen"
|
10800 |
|
|
else
|
10801 |
|
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
10802 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
10803 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
10804 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10805 |
|
|
else
|
10806 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
10807 |
|
|
LIBS="-ldl $LIBS"
|
10808 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10809 |
|
|
/* confdefs.h. */
|
10810 |
|
|
_ACEOF
|
10811 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10812 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10813 |
|
|
/* end confdefs.h. */
|
10814 |
|
|
|
10815 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10816 |
|
|
#ifdef __cplusplus
|
10817 |
|
|
extern "C"
|
10818 |
|
|
#endif
|
10819 |
|
|
/* We use char because int might match the return type of a gcc2
|
10820 |
|
|
builtin and then its argument prototype would still apply. */
|
10821 |
|
|
char dlopen ();
|
10822 |
|
|
int
|
10823 |
|
|
main ()
|
10824 |
|
|
{
|
10825 |
|
|
dlopen ();
|
10826 |
|
|
;
|
10827 |
|
|
return 0;
|
10828 |
|
|
}
|
10829 |
|
|
_ACEOF
|
10830 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10831 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10832 |
|
|
(eval $ac_link) 2>conftest.er1
|
10833 |
|
|
ac_status=$?
|
10834 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10835 |
|
|
rm -f conftest.er1
|
10836 |
|
|
cat conftest.err >&5
|
10837 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10838 |
|
|
(exit $ac_status); } &&
|
10839 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10840 |
|
|
|| test ! -s conftest.err'
|
10841 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10842 |
|
|
(eval $ac_try) 2>&5
|
10843 |
|
|
ac_status=$?
|
10844 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10845 |
|
|
(exit $ac_status); }; } &&
|
10846 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10847 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10848 |
|
|
(eval $ac_try) 2>&5
|
10849 |
|
|
ac_status=$?
|
10850 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10851 |
|
|
(exit $ac_status); }; }; then
|
10852 |
|
|
ac_cv_lib_dl_dlopen=yes
|
10853 |
|
|
else
|
10854 |
|
|
echo "$as_me: failed program was:" >&5
|
10855 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10856 |
|
|
|
10857 |
|
|
ac_cv_lib_dl_dlopen=no
|
10858 |
|
|
fi
|
10859 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10860 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10861 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
10862 |
|
|
fi
|
10863 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
10864 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
10865 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then
|
10866 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
10867 |
|
|
else
|
10868 |
|
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
10869 |
|
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
10870 |
|
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
10871 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10872 |
|
|
else
|
10873 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
10874 |
|
|
LIBS="-lsvld $LIBS"
|
10875 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10876 |
|
|
/* confdefs.h. */
|
10877 |
|
|
_ACEOF
|
10878 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10879 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10880 |
|
|
/* end confdefs.h. */
|
10881 |
|
|
|
10882 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10883 |
|
|
#ifdef __cplusplus
|
10884 |
|
|
extern "C"
|
10885 |
|
|
#endif
|
10886 |
|
|
/* We use char because int might match the return type of a gcc2
|
10887 |
|
|
builtin and then its argument prototype would still apply. */
|
10888 |
|
|
char dlopen ();
|
10889 |
|
|
int
|
10890 |
|
|
main ()
|
10891 |
|
|
{
|
10892 |
|
|
dlopen ();
|
10893 |
|
|
;
|
10894 |
|
|
return 0;
|
10895 |
|
|
}
|
10896 |
|
|
_ACEOF
|
10897 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10898 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10899 |
|
|
(eval $ac_link) 2>conftest.er1
|
10900 |
|
|
ac_status=$?
|
10901 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10902 |
|
|
rm -f conftest.er1
|
10903 |
|
|
cat conftest.err >&5
|
10904 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10905 |
|
|
(exit $ac_status); } &&
|
10906 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10907 |
|
|
|| test ! -s conftest.err'
|
10908 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10909 |
|
|
(eval $ac_try) 2>&5
|
10910 |
|
|
ac_status=$?
|
10911 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10912 |
|
|
(exit $ac_status); }; } &&
|
10913 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10914 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10915 |
|
|
(eval $ac_try) 2>&5
|
10916 |
|
|
ac_status=$?
|
10917 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10918 |
|
|
(exit $ac_status); }; }; then
|
10919 |
|
|
ac_cv_lib_svld_dlopen=yes
|
10920 |
|
|
else
|
10921 |
|
|
echo "$as_me: failed program was:" >&5
|
10922 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10923 |
|
|
|
10924 |
|
|
ac_cv_lib_svld_dlopen=no
|
10925 |
|
|
fi
|
10926 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10927 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10928 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
10929 |
|
|
fi
|
10930 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
10931 |
|
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
10932 |
|
|
if test $ac_cv_lib_svld_dlopen = yes; then
|
10933 |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
10934 |
|
|
else
|
10935 |
|
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
10936 |
|
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
10937 |
|
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
10938 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
10939 |
|
|
else
|
10940 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
10941 |
|
|
LIBS="-ldld $LIBS"
|
10942 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
10943 |
|
|
/* confdefs.h. */
|
10944 |
|
|
_ACEOF
|
10945 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
10946 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
10947 |
|
|
/* end confdefs.h. */
|
10948 |
|
|
|
10949 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
10950 |
|
|
#ifdef __cplusplus
|
10951 |
|
|
extern "C"
|
10952 |
|
|
#endif
|
10953 |
|
|
/* We use char because int might match the return type of a gcc2
|
10954 |
|
|
builtin and then its argument prototype would still apply. */
|
10955 |
|
|
char dld_link ();
|
10956 |
|
|
int
|
10957 |
|
|
main ()
|
10958 |
|
|
{
|
10959 |
|
|
dld_link ();
|
10960 |
|
|
;
|
10961 |
|
|
return 0;
|
10962 |
|
|
}
|
10963 |
|
|
_ACEOF
|
10964 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
10965 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
10966 |
|
|
(eval $ac_link) 2>conftest.er1
|
10967 |
|
|
ac_status=$?
|
10968 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
10969 |
|
|
rm -f conftest.er1
|
10970 |
|
|
cat conftest.err >&5
|
10971 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10972 |
|
|
(exit $ac_status); } &&
|
10973 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
10974 |
|
|
|| test ! -s conftest.err'
|
10975 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10976 |
|
|
(eval $ac_try) 2>&5
|
10977 |
|
|
ac_status=$?
|
10978 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10979 |
|
|
(exit $ac_status); }; } &&
|
10980 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
10981 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
10982 |
|
|
(eval $ac_try) 2>&5
|
10983 |
|
|
ac_status=$?
|
10984 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10985 |
|
|
(exit $ac_status); }; }; then
|
10986 |
|
|
ac_cv_lib_dld_dld_link=yes
|
10987 |
|
|
else
|
10988 |
|
|
echo "$as_me: failed program was:" >&5
|
10989 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
10990 |
|
|
|
10991 |
|
|
ac_cv_lib_dld_dld_link=no
|
10992 |
|
|
fi
|
10993 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
10994 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
10995 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
10996 |
|
|
fi
|
10997 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
10998 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
10999 |
|
|
if test $ac_cv_lib_dld_dld_link = yes; then
|
11000 |
|
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
|
11001 |
|
|
fi
|
11002 |
|
|
|
11003 |
|
|
|
11004 |
|
|
fi
|
11005 |
|
|
|
11006 |
|
|
|
11007 |
|
|
fi
|
11008 |
|
|
|
11009 |
|
|
|
11010 |
|
|
fi
|
11011 |
|
|
|
11012 |
|
|
|
11013 |
|
|
fi
|
11014 |
|
|
|
11015 |
|
|
|
11016 |
|
|
fi
|
11017 |
|
|
|
11018 |
|
|
;;
|
11019 |
|
|
esac
|
11020 |
|
|
|
11021 |
|
|
if test "x$lt_cv_dlopen" != xno; then
|
11022 |
|
|
enable_dlopen=yes
|
11023 |
|
|
else
|
11024 |
|
|
enable_dlopen=no
|
11025 |
|
|
fi
|
11026 |
|
|
|
11027 |
|
|
case $lt_cv_dlopen in
|
11028 |
|
|
dlopen)
|
11029 |
|
|
save_CPPFLAGS="$CPPFLAGS"
|
11030 |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
11031 |
|
|
|
11032 |
|
|
save_LDFLAGS="$LDFLAGS"
|
11033 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
11034 |
|
|
|
11035 |
|
|
save_LIBS="$LIBS"
|
11036 |
|
|
LIBS="$lt_cv_dlopen_libs $LIBS"
|
11037 |
|
|
|
11038 |
|
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
11039 |
|
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
11040 |
|
|
if test "${lt_cv_dlopen_self+set}" = set; then
|
11041 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11042 |
|
|
else
|
11043 |
|
|
if test "$cross_compiling" = yes; then :
|
11044 |
|
|
lt_cv_dlopen_self=cross
|
11045 |
|
|
else
|
11046 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
11047 |
|
|
lt_status=$lt_dlunknown
|
11048 |
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
11049 |
|
|
#line 11049 "configure"
|
11050 |
|
|
#include "confdefs.h"
|
11051 |
|
|
|
11052 |
|
|
#if HAVE_DLFCN_H
|
11053 |
|
|
#include
|
11054 |
|
|
#endif
|
11055 |
|
|
|
11056 |
|
|
#include
|
11057 |
|
|
|
11058 |
|
|
#ifdef RTLD_GLOBAL
|
11059 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
11060 |
|
|
#else
|
11061 |
|
|
# ifdef DL_GLOBAL
|
11062 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
11063 |
|
|
# else
|
11064 |
|
|
# define LT_DLGLOBAL 0
|
11065 |
|
|
# endif
|
11066 |
|
|
#endif
|
11067 |
|
|
|
11068 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
11069 |
|
|
find out it does not work in some platform. */
|
11070 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
11071 |
|
|
# ifdef RTLD_LAZY
|
11072 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
11073 |
|
|
# else
|
11074 |
|
|
# ifdef DL_LAZY
|
11075 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
11076 |
|
|
# else
|
11077 |
|
|
# ifdef RTLD_NOW
|
11078 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
11079 |
|
|
# else
|
11080 |
|
|
# ifdef DL_NOW
|
11081 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
11082 |
|
|
# else
|
11083 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
11084 |
|
|
# endif
|
11085 |
|
|
# endif
|
11086 |
|
|
# endif
|
11087 |
|
|
# endif
|
11088 |
|
|
#endif
|
11089 |
|
|
|
11090 |
|
|
void fnord() { int i=42;}
|
11091 |
|
|
int main ()
|
11092 |
|
|
{
|
11093 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
11094 |
|
|
int status = $lt_dlunknown;
|
11095 |
|
|
|
11096 |
|
|
if (self)
|
11097 |
|
|
{
|
11098 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
11099 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
11100 |
|
|
/* dlclose (self); */
|
11101 |
|
|
}
|
11102 |
|
|
else
|
11103 |
|
|
puts (dlerror ());
|
11104 |
|
|
|
11105 |
|
|
return status;
|
11106 |
|
|
}
|
11107 |
|
|
_LT_EOF
|
11108 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
11109 |
|
|
(eval $ac_link) 2>&5
|
11110 |
|
|
ac_status=$?
|
11111 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11112 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
11113 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
11114 |
|
|
lt_status=$?
|
11115 |
|
|
case x$lt_status in
|
11116 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
11117 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
11118 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
11119 |
|
|
esac
|
11120 |
|
|
else :
|
11121 |
|
|
# compilation failed
|
11122 |
|
|
lt_cv_dlopen_self=no
|
11123 |
|
|
fi
|
11124 |
|
|
fi
|
11125 |
|
|
rm -fr conftest*
|
11126 |
|
|
|
11127 |
|
|
|
11128 |
|
|
fi
|
11129 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
11130 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
11131 |
|
|
|
11132 |
|
|
if test "x$lt_cv_dlopen_self" = xyes; then
|
11133 |
|
|
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
11134 |
|
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
11135 |
|
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
11136 |
|
|
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
11137 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
11138 |
|
|
else
|
11139 |
|
|
if test "$cross_compiling" = yes; then :
|
11140 |
|
|
lt_cv_dlopen_self_static=cross
|
11141 |
|
|
else
|
11142 |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
11143 |
|
|
lt_status=$lt_dlunknown
|
11144 |
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
11145 |
|
|
#line 11145 "configure"
|
11146 |
|
|
#include "confdefs.h"
|
11147 |
|
|
|
11148 |
|
|
#if HAVE_DLFCN_H
|
11149 |
|
|
#include
|
11150 |
|
|
#endif
|
11151 |
|
|
|
11152 |
|
|
#include
|
11153 |
|
|
|
11154 |
|
|
#ifdef RTLD_GLOBAL
|
11155 |
|
|
# define LT_DLGLOBAL RTLD_GLOBAL
|
11156 |
|
|
#else
|
11157 |
|
|
# ifdef DL_GLOBAL
|
11158 |
|
|
# define LT_DLGLOBAL DL_GLOBAL
|
11159 |
|
|
# else
|
11160 |
|
|
# define LT_DLGLOBAL 0
|
11161 |
|
|
# endif
|
11162 |
|
|
#endif
|
11163 |
|
|
|
11164 |
|
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
11165 |
|
|
find out it does not work in some platform. */
|
11166 |
|
|
#ifndef LT_DLLAZY_OR_NOW
|
11167 |
|
|
# ifdef RTLD_LAZY
|
11168 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
11169 |
|
|
# else
|
11170 |
|
|
# ifdef DL_LAZY
|
11171 |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY
|
11172 |
|
|
# else
|
11173 |
|
|
# ifdef RTLD_NOW
|
11174 |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
11175 |
|
|
# else
|
11176 |
|
|
# ifdef DL_NOW
|
11177 |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW
|
11178 |
|
|
# else
|
11179 |
|
|
# define LT_DLLAZY_OR_NOW 0
|
11180 |
|
|
# endif
|
11181 |
|
|
# endif
|
11182 |
|
|
# endif
|
11183 |
|
|
# endif
|
11184 |
|
|
#endif
|
11185 |
|
|
|
11186 |
|
|
void fnord() { int i=42;}
|
11187 |
|
|
int main ()
|
11188 |
|
|
{
|
11189 |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
11190 |
|
|
int status = $lt_dlunknown;
|
11191 |
|
|
|
11192 |
|
|
if (self)
|
11193 |
|
|
{
|
11194 |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
11195 |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
11196 |
|
|
/* dlclose (self); */
|
11197 |
|
|
}
|
11198 |
|
|
else
|
11199 |
|
|
puts (dlerror ());
|
11200 |
|
|
|
11201 |
|
|
return status;
|
11202 |
|
|
}
|
11203 |
|
|
_LT_EOF
|
11204 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
11205 |
|
|
(eval $ac_link) 2>&5
|
11206 |
|
|
ac_status=$?
|
11207 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
11208 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
11209 |
|
|
(./conftest; exit; ) >&5 2>/dev/null
|
11210 |
|
|
lt_status=$?
|
11211 |
|
|
case x$lt_status in
|
11212 |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
11213 |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
11214 |
|
|
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
11215 |
|
|
esac
|
11216 |
|
|
else :
|
11217 |
|
|
# compilation failed
|
11218 |
|
|
lt_cv_dlopen_self_static=no
|
11219 |
|
|
fi
|
11220 |
|
|
fi
|
11221 |
|
|
rm -fr conftest*
|
11222 |
|
|
|
11223 |
|
|
|
11224 |
|
|
fi
|
11225 |
|
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
11226 |
|
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
11227 |
|
|
fi
|
11228 |
|
|
|
11229 |
|
|
CPPFLAGS="$save_CPPFLAGS"
|
11230 |
|
|
LDFLAGS="$save_LDFLAGS"
|
11231 |
|
|
LIBS="$save_LIBS"
|
11232 |
|
|
;;
|
11233 |
|
|
esac
|
11234 |
|
|
|
11235 |
|
|
case $lt_cv_dlopen_self in
|
11236 |
|
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
11237 |
|
|
*) enable_dlopen_self=unknown ;;
|
11238 |
|
|
esac
|
11239 |
|
|
|
11240 |
|
|
case $lt_cv_dlopen_self_static in
|
11241 |
|
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
11242 |
|
|
*) enable_dlopen_self_static=unknown ;;
|
11243 |
|
|
esac
|
11244 |
|
|
fi
|
11245 |
|
|
|
11246 |
|
|
|
11247 |
|
|
|
11248 |
|
|
|
11249 |
|
|
|
11250 |
|
|
|
11251 |
|
|
|
11252 |
|
|
|
11253 |
|
|
|
11254 |
|
|
|
11255 |
|
|
|
11256 |
|
|
|
11257 |
|
|
|
11258 |
|
|
|
11259 |
|
|
|
11260 |
|
|
|
11261 |
|
|
|
11262 |
|
|
striplib=
|
11263 |
|
|
old_striplib=
|
11264 |
|
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
11265 |
|
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
11266 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
11267 |
|
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
11268 |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
11269 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
11270 |
|
|
echo "${ECHO_T}yes" >&6
|
11271 |
|
|
else
|
11272 |
|
|
# FIXME - insert some real tests, host_os isn't really good enough
|
11273 |
|
|
case $host_os in
|
11274 |
|
|
darwin*)
|
11275 |
|
|
if test -n "$STRIP" ; then
|
11276 |
|
|
striplib="$STRIP -x"
|
11277 |
|
|
old_striplib="$STRIP -S"
|
11278 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
11279 |
|
|
echo "${ECHO_T}yes" >&6
|
11280 |
|
|
else
|
11281 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
11282 |
|
|
echo "${ECHO_T}no" >&6
|
11283 |
|
|
fi
|
11284 |
|
|
;;
|
11285 |
|
|
*)
|
11286 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
11287 |
|
|
echo "${ECHO_T}no" >&6
|
11288 |
|
|
;;
|
11289 |
|
|
esac
|
11290 |
|
|
fi
|
11291 |
|
|
|
11292 |
|
|
|
11293 |
|
|
|
11294 |
|
|
|
11295 |
|
|
|
11296 |
|
|
|
11297 |
|
|
|
11298 |
|
|
|
11299 |
|
|
|
11300 |
|
|
|
11301 |
|
|
|
11302 |
|
|
|
11303 |
|
|
# Report which library types will actually be built
|
11304 |
|
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
11305 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
11306 |
|
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
11307 |
|
|
echo "${ECHO_T}$can_build_shared" >&6
|
11308 |
|
|
|
11309 |
|
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
11310 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
|
11311 |
|
|
test "$can_build_shared" = "no" && enable_shared=no
|
11312 |
|
|
|
11313 |
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
11314 |
|
|
# are all built from PIC.
|
11315 |
|
|
case $host_os in
|
11316 |
|
|
aix3*)
|
11317 |
|
|
test "$enable_shared" = yes && enable_static=no
|
11318 |
|
|
if test -n "$RANLIB"; then
|
11319 |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
11320 |
|
|
postinstall_cmds='$RANLIB $lib'
|
11321 |
|
|
fi
|
11322 |
|
|
;;
|
11323 |
|
|
|
11324 |
|
|
aix[4-9]*)
|
11325 |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
11326 |
|
|
test "$enable_shared" = yes && enable_static=no
|
11327 |
|
|
fi
|
11328 |
|
|
;;
|
11329 |
|
|
esac
|
11330 |
|
|
echo "$as_me:$LINENO: result: $enable_shared" >&5
|
11331 |
|
|
echo "${ECHO_T}$enable_shared" >&6
|
11332 |
|
|
|
11333 |
|
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
11334 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
|
11335 |
|
|
# Make sure either enable_shared or enable_static is yes.
|
11336 |
|
|
test "$enable_shared" = yes || enable_static=yes
|
11337 |
|
|
echo "$as_me:$LINENO: result: $enable_static" >&5
|
11338 |
|
|
echo "${ECHO_T}$enable_static" >&6
|
11339 |
|
|
|
11340 |
|
|
|
11341 |
|
|
|
11342 |
|
|
|
11343 |
|
|
fi
|
11344 |
|
|
ac_ext=c
|
11345 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
11346 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
11347 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
11348 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
11349 |
|
|
|
11350 |
|
|
CC="$lt_save_CC"
|
11351 |
|
|
|
11352 |
|
|
|
11353 |
|
|
|
11354 |
|
|
|
11355 |
|
|
|
11356 |
|
|
|
11357 |
|
|
|
11358 |
|
|
|
11359 |
|
|
|
11360 |
|
|
|
11361 |
|
|
|
11362 |
|
|
|
11363 |
|
|
|
11364 |
|
|
ac_config_commands="$ac_config_commands libtool"
|
11365 |
|
|
|
11366 |
|
|
|
11367 |
|
|
|
11368 |
|
|
|
11369 |
|
|
# Only expand once:
|
11370 |
|
|
|
11371 |
|
|
|
11372 |
|
|
fi
|
11373 |
|
|
|
11374 |
|
|
|
11375 |
|
|
|
11376 |
|
|
subdirs="$subdirs machine"
|
11377 |
|
|
|
11378 |
|
|
|
11379 |
|
|
if test "${newlib_multithread}" = "yes"; then
|
11380 |
|
|
|
11381 |
|
|
|
11382 |
|
|
subdirs="$subdirs linuxthreads"
|
11383 |
|
|
|
11384 |
|
|
fi
|
11385 |
|
|
|
11386 |
|
|
LINUX_MACH_LIB=
|
11387 |
|
|
if test -n "${machine_dir}"; then
|
11388 |
|
|
if test "${use_libtool}" = "yes"; then
|
11389 |
|
|
LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
|
11390 |
|
|
else
|
11391 |
|
|
LINUX_MACH_LIB=machine/lib.${aext}
|
11392 |
|
|
fi
|
11393 |
|
|
fi
|
11394 |
|
|
|
11395 |
|
|
|
11396 |
|
|
EXTRA_SUBDIRS=
|
11397 |
|
|
EXTRA_SUBLIBS=
|
11398 |
|
|
|
11399 |
|
|
if test "x${newlib_elix_level}" = "x1"; then
|
11400 |
|
|
EXTRA_SUBDIRS=linuxthreads net
|
11401 |
|
|
else
|
11402 |
|
|
EXTRA_SUBDIRS="linuxthreads net intl iconv dl"
|
11403 |
|
|
EXTRA_SUBLIBS="net/libnet.la intl/libintl.la iconv/libiconv.la dl/libdl.la"
|
11404 |
|
|
fi
|
11405 |
|
|
|
11406 |
|
|
|
11407 |
|
|
|
11408 |
|
|
|
11409 |
|
|
ac_config_files="$ac_config_files Makefile intl/Makefile net/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile"
|
11410 |
|
|
|
11411 |
|
|
cat >confcache <<\_ACEOF
|
11412 |
|
|
# This file is a shell script that caches the results of configure
|
11413 |
|
|
# tests run on this system so they can be shared between configure
|
11414 |
|
|
# scripts and configure runs, see configure's option --config-cache.
|
11415 |
|
|
# It is not useful on other systems. If it contains results you don't
|
11416 |
|
|
# want to keep, you may remove or edit it.
|
11417 |
|
|
#
|
11418 |
|
|
# config.status only pays attention to the cache file if you give it
|
11419 |
|
|
# the --recheck option to rerun configure.
|
11420 |
|
|
#
|
11421 |
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
11422 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
11423 |
|
|
# following values.
|
11424 |
|
|
|
11425 |
|
|
_ACEOF
|
11426 |
|
|
|
11427 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
11428 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
11429 |
|
|
# So, don't put newlines in cache variables' values.
|
11430 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
11431 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
11432 |
|
|
{
|
11433 |
|
|
(set) 2>&1 |
|
11434 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
11435 |
|
|
*ac_space=\ *)
|
11436 |
|
|
# `set' does not quote correctly, so add quotes (double-quote
|
11437 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
11438 |
|
|
sed -n \
|
11439 |
|
|
"s/'/'\\\\''/g;
|
11440 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
11441 |
|
|
;;
|
11442 |
|
|
*)
|
11443 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
11444 |
|
|
sed -n \
|
11445 |
|
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
11446 |
|
|
;;
|
11447 |
|
|
esac;
|
11448 |
|
|
} |
|
11449 |
|
|
sed '
|
11450 |
|
|
t clear
|
11451 |
|
|
: clear
|
11452 |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
11453 |
|
|
t end
|
11454 |
|
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
11455 |
|
|
: end' >>confcache
|
11456 |
|
|
if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
11457 |
|
|
if test -w $cache_file; then
|
11458 |
|
|
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
11459 |
|
|
cat confcache >$cache_file
|
11460 |
|
|
else
|
11461 |
|
|
echo "not updating unwritable cache $cache_file"
|
11462 |
|
|
fi
|
11463 |
|
|
fi
|
11464 |
|
|
rm -f confcache
|
11465 |
|
|
|
11466 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
11467 |
|
|
# Let make expand exec_prefix.
|
11468 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
11469 |
|
|
|
11470 |
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
11471 |
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
11472 |
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
11473 |
|
|
# (actually we leave an empty line to preserve line numbers).
|
11474 |
|
|
if test "x$srcdir" = x.; then
|
11475 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
11476 |
|
|
s/:*\$(srcdir):*/:/;
|
11477 |
|
|
s/:*\${srcdir}:*/:/;
|
11478 |
|
|
s/:*@srcdir@:*/:/;
|
11479 |
|
|
s/^\([^=]*=[ ]*\):*/\1/;
|
11480 |
|
|
s/:*$//;
|
11481 |
|
|
s/^[^=]*=[ ]*$//;
|
11482 |
|
|
}'
|
11483 |
|
|
fi
|
11484 |
|
|
|
11485 |
|
|
# Transform confdefs.h into DEFS.
|
11486 |
|
|
# Protect against shell expansion while executing Makefile rules.
|
11487 |
|
|
# Protect against Makefile macro expansion.
|
11488 |
|
|
#
|
11489 |
|
|
# If the first sed substitution is executed (which looks for macros that
|
11490 |
|
|
# take arguments), then we branch to the quote section. Otherwise,
|
11491 |
|
|
# look for a macro that doesn't take arguments.
|
11492 |
|
|
cat >confdef2opt.sed <<\_ACEOF
|
11493 |
|
|
t clear
|
11494 |
|
|
: clear
|
11495 |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
11496 |
|
|
t quote
|
11497 |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
11498 |
|
|
t quote
|
11499 |
|
|
d
|
11500 |
|
|
: quote
|
11501 |
|
|
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
11502 |
|
|
s,\[,\\&,g
|
11503 |
|
|
s,\],\\&,g
|
11504 |
|
|
s,\$,$$,g
|
11505 |
|
|
p
|
11506 |
|
|
_ACEOF
|
11507 |
|
|
# We use echo to avoid assuming a particular line-breaking character.
|
11508 |
|
|
# The extra dot is to prevent the shell from consuming trailing
|
11509 |
|
|
# line-breaks from the sub-command output. A line-break within
|
11510 |
|
|
# single-quotes doesn't work because, if this script is created in a
|
11511 |
|
|
# platform that uses two characters for line-breaks (e.g., DOS), tr
|
11512 |
|
|
# would break.
|
11513 |
|
|
ac_LF_and_DOT=`echo; echo .`
|
11514 |
|
|
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
11515 |
|
|
rm -f confdef2opt.sed
|
11516 |
|
|
|
11517 |
|
|
|
11518 |
|
|
ac_libobjs=
|
11519 |
|
|
ac_ltlibobjs=
|
11520 |
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
11521 |
|
|
# 1. Remove the extension, and $U if already installed.
|
11522 |
|
|
ac_i=`echo "$ac_i" |
|
11523 |
|
|
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
11524 |
|
|
# 2. Add them.
|
11525 |
|
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
11526 |
|
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
11527 |
|
|
done
|
11528 |
|
|
LIBOBJS=$ac_libobjs
|
11529 |
|
|
|
11530 |
|
|
LTLIBOBJS=$ac_ltlibobjs
|
11531 |
|
|
|
11532 |
|
|
|
11533 |
|
|
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
|
11534 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
|
11535 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11536 |
|
|
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
|
11537 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11538 |
|
|
{ (exit 1); exit 1; }; }
|
11539 |
|
|
fi
|
11540 |
|
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
11541 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
11542 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11543 |
|
|
echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
11544 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11545 |
|
|
{ (exit 1); exit 1; }; }
|
11546 |
|
|
fi
|
11547 |
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
11548 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
11549 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11550 |
|
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
11551 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11552 |
|
|
{ (exit 1); exit 1; }; }
|
11553 |
|
|
fi
|
11554 |
|
|
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
11555 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
|
11556 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11557 |
|
|
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
|
11558 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11559 |
|
|
{ (exit 1); exit 1; }; }
|
11560 |
|
|
fi
|
11561 |
|
|
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
|
11562 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
|
11563 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11564 |
|
|
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
|
11565 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11566 |
|
|
{ (exit 1); exit 1; }; }
|
11567 |
|
|
fi
|
11568 |
|
|
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
|
11569 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
|
11570 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11571 |
|
|
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
|
11572 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11573 |
|
|
{ (exit 1); exit 1; }; }
|
11574 |
|
|
fi
|
11575 |
|
|
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
|
11576 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
|
11577 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11578 |
|
|
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
|
11579 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11580 |
|
|
{ (exit 1); exit 1; }; }
|
11581 |
|
|
fi
|
11582 |
|
|
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
|
11583 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
|
11584 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11585 |
|
|
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
|
11586 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11587 |
|
|
{ (exit 1); exit 1; }; }
|
11588 |
|
|
fi
|
11589 |
|
|
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
|
11590 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
|
11591 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11592 |
|
|
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
|
11593 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11594 |
|
|
{ (exit 1); exit 1; }; }
|
11595 |
|
|
fi
|
11596 |
|
|
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
|
11597 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
|
11598 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11599 |
|
|
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
|
11600 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11601 |
|
|
{ (exit 1); exit 1; }; }
|
11602 |
|
|
fi
|
11603 |
|
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
11604 |
|
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
11605 |
|
|
Usually this means the macro was only invoked conditionally." >&5
|
11606 |
|
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
11607 |
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
11608 |
|
|
{ (exit 1); exit 1; }; }
|
11609 |
|
|
fi
|
11610 |
|
|
|
11611 |
|
|
: ${CONFIG_STATUS=./config.status}
|
11612 |
|
|
ac_clean_files_save=$ac_clean_files
|
11613 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
11614 |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
11615 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
11616 |
|
|
cat >$CONFIG_STATUS <<_ACEOF
|
11617 |
|
|
#! $SHELL
|
11618 |
|
|
# Generated by $as_me.
|
11619 |
|
|
# Run this file to recreate the current configuration.
|
11620 |
|
|
# Compiler output produced by configure, useful for debugging
|
11621 |
|
|
# configure, is in config.log if it exists.
|
11622 |
|
|
|
11623 |
|
|
debug=false
|
11624 |
|
|
ac_cs_recheck=false
|
11625 |
|
|
ac_cs_silent=false
|
11626 |
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
11627 |
|
|
_ACEOF
|
11628 |
|
|
|
11629 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
11630 |
|
|
## --------------------- ##
|
11631 |
|
|
## M4sh Initialization. ##
|
11632 |
|
|
## --------------------- ##
|
11633 |
|
|
|
11634 |
|
|
# Be Bourne compatible
|
11635 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
11636 |
|
|
emulate sh
|
11637 |
|
|
NULLCMD=:
|
11638 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
11639 |
|
|
# is contrary to our usage. Disable this feature.
|
11640 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
11641 |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
11642 |
|
|
set -o posix
|
11643 |
|
|
fi
|
11644 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
11645 |
|
|
|
11646 |
|
|
# Support unset when possible.
|
11647 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
11648 |
|
|
as_unset=unset
|
11649 |
|
|
else
|
11650 |
|
|
as_unset=false
|
11651 |
|
|
fi
|
11652 |
|
|
|
11653 |
|
|
|
11654 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
11655 |
|
|
$as_unset ENV MAIL MAILPATH
|
11656 |
|
|
PS1='$ '
|
11657 |
|
|
PS2='> '
|
11658 |
|
|
PS4='+ '
|
11659 |
|
|
|
11660 |
|
|
# NLS nuisances.
|
11661 |
|
|
for as_var in \
|
11662 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
11663 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
11664 |
|
|
LC_TELEPHONE LC_TIME
|
11665 |
|
|
do
|
11666 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
11667 |
|
|
eval $as_var=C; export $as_var
|
11668 |
|
|
else
|
11669 |
|
|
$as_unset $as_var
|
11670 |
|
|
fi
|
11671 |
|
|
done
|
11672 |
|
|
|
11673 |
|
|
# Required to use basename.
|
11674 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
11675 |
|
|
as_expr=expr
|
11676 |
|
|
else
|
11677 |
|
|
as_expr=false
|
11678 |
|
|
fi
|
11679 |
|
|
|
11680 |
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
11681 |
|
|
as_basename=basename
|
11682 |
|
|
else
|
11683 |
|
|
as_basename=false
|
11684 |
|
|
fi
|
11685 |
|
|
|
11686 |
|
|
|
11687 |
|
|
# Name of the executable.
|
11688 |
|
|
as_me=`$as_basename "$0" ||
|
11689 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
11690 |
|
|
X"$0" : 'X\(//\)$' \| \
|
11691 |
|
|
X"$0" : 'X\(/\)$' \| \
|
11692 |
|
|
. : '\(.\)' 2>/dev/null ||
|
11693 |
|
|
echo X/"$0" |
|
11694 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
11695 |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; }
|
11696 |
|
|
/^X\/\(\/\).*/{ s//\1/; q; }
|
11697 |
|
|
s/.*/./; q'`
|
11698 |
|
|
|
11699 |
|
|
|
11700 |
|
|
# PATH needs CR, and LINENO needs CR and PATH.
|
11701 |
|
|
# Avoid depending upon Character Ranges.
|
11702 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
11703 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
11704 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
11705 |
|
|
as_cr_digits='0123456789'
|
11706 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
11707 |
|
|
|
11708 |
|
|
# The user is always right.
|
11709 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
11710 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
11711 |
|
|
echo "exit 0" >>conf$$.sh
|
11712 |
|
|
chmod +x conf$$.sh
|
11713 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
11714 |
|
|
PATH_SEPARATOR=';'
|
11715 |
|
|
else
|
11716 |
|
|
PATH_SEPARATOR=:
|
11717 |
|
|
fi
|
11718 |
|
|
rm -f conf$$.sh
|
11719 |
|
|
fi
|
11720 |
|
|
|
11721 |
|
|
|
11722 |
|
|
as_lineno_1=$LINENO
|
11723 |
|
|
as_lineno_2=$LINENO
|
11724 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
11725 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
11726 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || {
|
11727 |
|
|
# Find who we are. Look in the path if we contain no path at all
|
11728 |
|
|
# relative or not.
|
11729 |
|
|
case $0 in
|
11730 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
11731 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
11732 |
|
|
for as_dir in $PATH
|
11733 |
|
|
do
|
11734 |
|
|
IFS=$as_save_IFS
|
11735 |
|
|
test -z "$as_dir" && as_dir=.
|
11736 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
11737 |
|
|
done
|
11738 |
|
|
|
11739 |
|
|
;;
|
11740 |
|
|
esac
|
11741 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
11742 |
|
|
# in which case we are not to be found in the path.
|
11743 |
|
|
if test "x$as_myself" = x; then
|
11744 |
|
|
as_myself=$0
|
11745 |
|
|
fi
|
11746 |
|
|
if test ! -f "$as_myself"; then
|
11747 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
11748 |
|
|
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
11749 |
|
|
{ (exit 1); exit 1; }; }
|
11750 |
|
|
fi
|
11751 |
|
|
case $CONFIG_SHELL in
|
11752 |
|
|
'')
|
11753 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
11754 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
11755 |
|
|
do
|
11756 |
|
|
IFS=$as_save_IFS
|
11757 |
|
|
test -z "$as_dir" && as_dir=.
|
11758 |
|
|
for as_base in sh bash ksh sh5; do
|
11759 |
|
|
case $as_dir in
|
11760 |
|
|
/*)
|
11761 |
|
|
if ("$as_dir/$as_base" -c '
|
11762 |
|
|
as_lineno_1=$LINENO
|
11763 |
|
|
as_lineno_2=$LINENO
|
11764 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
11765 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
11766 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
11767 |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
11768 |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
11769 |
|
|
CONFIG_SHELL=$as_dir/$as_base
|
11770 |
|
|
export CONFIG_SHELL
|
11771 |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
11772 |
|
|
fi;;
|
11773 |
|
|
esac
|
11774 |
|
|
done
|
11775 |
|
|
done
|
11776 |
|
|
;;
|
11777 |
|
|
esac
|
11778 |
|
|
|
11779 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
11780 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
11781 |
|
|
# line-number line before each line; the second 'sed' does the real
|
11782 |
|
|
# work. The second script uses 'N' to pair each line-number line
|
11783 |
|
|
# with the numbered line, and appends trailing '-' during
|
11784 |
|
|
# substitution so that $LINENO is not a special case at line end.
|
11785 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
11786 |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
11787 |
|
|
sed '=' <$as_myself |
|
11788 |
|
|
sed '
|
11789 |
|
|
N
|
11790 |
|
|
s,$,-,
|
11791 |
|
|
: loop
|
11792 |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
11793 |
|
|
t loop
|
11794 |
|
|
s,-$,,
|
11795 |
|
|
s,^['$as_cr_digits']*\n,,
|
11796 |
|
|
' >$as_me.lineno &&
|
11797 |
|
|
chmod +x $as_me.lineno ||
|
11798 |
|
|
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
11799 |
|
|
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
11800 |
|
|
{ (exit 1); exit 1; }; }
|
11801 |
|
|
|
11802 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
11803 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
11804 |
|
|
# original and so on. Autoconf is especially sensible to this).
|
11805 |
|
|
. ./$as_me.lineno
|
11806 |
|
|
# Exit status is that of the last command.
|
11807 |
|
|
exit
|
11808 |
|
|
}
|
11809 |
|
|
|
11810 |
|
|
|
11811 |
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
11812 |
|
|
*c*,-n*) ECHO_N= ECHO_C='
|
11813 |
|
|
' ECHO_T=' ' ;;
|
11814 |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
11815 |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
11816 |
|
|
esac
|
11817 |
|
|
|
11818 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
11819 |
|
|
as_expr=expr
|
11820 |
|
|
else
|
11821 |
|
|
as_expr=false
|
11822 |
|
|
fi
|
11823 |
|
|
|
11824 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
11825 |
|
|
echo >conf$$.file
|
11826 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
11827 |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic
|
11828 |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
11829 |
|
|
if test -f conf$$.exe; then
|
11830 |
|
|
# Don't use ln at all; we don't have any links
|
11831 |
|
|
as_ln_s='cp -p'
|
11832 |
|
|
else
|
11833 |
|
|
as_ln_s='ln -s'
|
11834 |
|
|
fi
|
11835 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
11836 |
|
|
as_ln_s=ln
|
11837 |
|
|
else
|
11838 |
|
|
as_ln_s='cp -p'
|
11839 |
|
|
fi
|
11840 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
11841 |
|
|
|
11842 |
|
|
if mkdir -p . 2>/dev/null; then
|
11843 |
|
|
as_mkdir_p=:
|
11844 |
|
|
else
|
11845 |
|
|
test -d ./-p && rmdir ./-p
|
11846 |
|
|
as_mkdir_p=false
|
11847 |
|
|
fi
|
11848 |
|
|
|
11849 |
|
|
as_executable_p="test -f"
|
11850 |
|
|
|
11851 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
11852 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
11853 |
|
|
|
11854 |
|
|
# Sed expression to map a string onto a valid variable name.
|
11855 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
11856 |
|
|
|
11857 |
|
|
|
11858 |
|
|
# IFS
|
11859 |
|
|
# We need space, tab and new line, in precisely that order.
|
11860 |
|
|
as_nl='
|
11861 |
|
|
'
|
11862 |
|
|
IFS=" $as_nl"
|
11863 |
|
|
|
11864 |
|
|
# CDPATH.
|
11865 |
|
|
$as_unset CDPATH
|
11866 |
|
|
|
11867 |
|
|
exec 6>&1
|
11868 |
|
|
|
11869 |
|
|
# Open the log real soon, to keep \$[0] and so on meaningful, and to
|
11870 |
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
11871 |
|
|
# values after options handling. Logging --version etc. is OK.
|
11872 |
|
|
exec 5>>config.log
|
11873 |
|
|
{
|
11874 |
|
|
echo
|
11875 |
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
11876 |
|
|
## Running $as_me. ##
|
11877 |
|
|
_ASBOX
|
11878 |
|
|
} >&5
|
11879 |
|
|
cat >&5 <<_CSEOF
|
11880 |
|
|
|
11881 |
|
|
This file was extended by newlib $as_me 1.17.0, which was
|
11882 |
|
|
generated by GNU Autoconf 2.59. Invocation command line was
|
11883 |
|
|
|
11884 |
|
|
CONFIG_FILES = $CONFIG_FILES
|
11885 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
11886 |
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
11887 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
11888 |
|
|
$ $0 $@
|
11889 |
|
|
|
11890 |
|
|
_CSEOF
|
11891 |
|
|
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
11892 |
|
|
echo >&5
|
11893 |
|
|
_ACEOF
|
11894 |
|
|
|
11895 |
|
|
# Files that config.status was made for.
|
11896 |
|
|
if test -n "$ac_config_files"; then
|
11897 |
|
|
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
11898 |
|
|
fi
|
11899 |
|
|
|
11900 |
|
|
if test -n "$ac_config_headers"; then
|
11901 |
|
|
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
11902 |
|
|
fi
|
11903 |
|
|
|
11904 |
|
|
if test -n "$ac_config_links"; then
|
11905 |
|
|
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
11906 |
|
|
fi
|
11907 |
|
|
|
11908 |
|
|
if test -n "$ac_config_commands"; then
|
11909 |
|
|
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
11910 |
|
|
fi
|
11911 |
|
|
|
11912 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
11913 |
|
|
|
11914 |
|
|
ac_cs_usage="\
|
11915 |
|
|
\`$as_me' instantiates files from templates according to the
|
11916 |
|
|
current configuration.
|
11917 |
|
|
|
11918 |
|
|
Usage: $0 [OPTIONS] [FILE]...
|
11919 |
|
|
|
11920 |
|
|
-h, --help print this help, then exit
|
11921 |
|
|
-V, --version print version number, then exit
|
11922 |
|
|
-q, --quiet do not print progress messages
|
11923 |
|
|
-d, --debug don't remove temporary files
|
11924 |
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
11925 |
|
|
--file=FILE[:TEMPLATE]
|
11926 |
|
|
instantiate the configuration file FILE
|
11927 |
|
|
|
11928 |
|
|
Configuration files:
|
11929 |
|
|
$config_files
|
11930 |
|
|
|
11931 |
|
|
Configuration commands:
|
11932 |
|
|
$config_commands
|
11933 |
|
|
|
11934 |
|
|
Report bugs to ."
|
11935 |
|
|
_ACEOF
|
11936 |
|
|
|
11937 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
11938 |
|
|
ac_cs_version="\\
|
11939 |
|
|
newlib config.status 1.17.0
|
11940 |
|
|
configured by $0, generated by GNU Autoconf 2.59,
|
11941 |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
11942 |
|
|
|
11943 |
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
11944 |
|
|
This config.status script is free software; the Free Software Foundation
|
11945 |
|
|
gives unlimited permission to copy, distribute and modify it."
|
11946 |
|
|
srcdir=$srcdir
|
11947 |
|
|
INSTALL="$INSTALL"
|
11948 |
|
|
_ACEOF
|
11949 |
|
|
|
11950 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
11951 |
|
|
# If no file are specified by the user, then we need to provide default
|
11952 |
|
|
# value. By we need to know if files were specified by the user.
|
11953 |
|
|
ac_need_defaults=:
|
11954 |
|
|
while test $# != 0
|
11955 |
|
|
do
|
11956 |
|
|
case $1 in
|
11957 |
|
|
--*=*)
|
11958 |
|
|
ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
11959 |
|
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
11960 |
|
|
ac_shift=:
|
11961 |
|
|
;;
|
11962 |
|
|
-*)
|
11963 |
|
|
ac_option=$1
|
11964 |
|
|
ac_optarg=$2
|
11965 |
|
|
ac_shift=shift
|
11966 |
|
|
;;
|
11967 |
|
|
*) # This is not an option, so the user has probably given explicit
|
11968 |
|
|
# arguments.
|
11969 |
|
|
ac_option=$1
|
11970 |
|
|
ac_need_defaults=false;;
|
11971 |
|
|
esac
|
11972 |
|
|
|
11973 |
|
|
case $ac_option in
|
11974 |
|
|
# Handling of the options.
|
11975 |
|
|
_ACEOF
|
11976 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
11977 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
11978 |
|
|
ac_cs_recheck=: ;;
|
11979 |
|
|
--version | --vers* | -V )
|
11980 |
|
|
echo "$ac_cs_version"; exit 0 ;;
|
11981 |
|
|
--he | --h)
|
11982 |
|
|
# Conflict between --help and --header
|
11983 |
|
|
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
|
11984 |
|
|
Try \`$0 --help' for more information." >&5
|
11985 |
|
|
echo "$as_me: error: ambiguous option: $1
|
11986 |
|
|
Try \`$0 --help' for more information." >&2;}
|
11987 |
|
|
{ (exit 1); exit 1; }; };;
|
11988 |
|
|
--help | --hel | -h )
|
11989 |
|
|
echo "$ac_cs_usage"; exit 0 ;;
|
11990 |
|
|
--debug | --d* | -d )
|
11991 |
|
|
debug=: ;;
|
11992 |
|
|
--file | --fil | --fi | --f )
|
11993 |
|
|
$ac_shift
|
11994 |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
11995 |
|
|
ac_need_defaults=false;;
|
11996 |
|
|
--header | --heade | --head | --hea )
|
11997 |
|
|
$ac_shift
|
11998 |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
11999 |
|
|
ac_need_defaults=false;;
|
12000 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
12001 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
12002 |
|
|
ac_cs_silent=: ;;
|
12003 |
|
|
|
12004 |
|
|
# This is an error.
|
12005 |
|
|
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
12006 |
|
|
Try \`$0 --help' for more information." >&5
|
12007 |
|
|
echo "$as_me: error: unrecognized option: $1
|
12008 |
|
|
Try \`$0 --help' for more information." >&2;}
|
12009 |
|
|
{ (exit 1); exit 1; }; } ;;
|
12010 |
|
|
|
12011 |
|
|
*) ac_config_targets="$ac_config_targets $1" ;;
|
12012 |
|
|
|
12013 |
|
|
esac
|
12014 |
|
|
shift
|
12015 |
|
|
done
|
12016 |
|
|
|
12017 |
|
|
ac_configure_extra_args=
|
12018 |
|
|
|
12019 |
|
|
if $ac_cs_silent; then
|
12020 |
|
|
exec 6>/dev/null
|
12021 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
12022 |
|
|
fi
|
12023 |
|
|
|
12024 |
|
|
_ACEOF
|
12025 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
12026 |
|
|
if \$ac_cs_recheck; then
|
12027 |
|
|
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
12028 |
|
|
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
12029 |
|
|
fi
|
12030 |
|
|
|
12031 |
|
|
_ACEOF
|
12032 |
|
|
|
12033 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
12034 |
|
|
#
|
12035 |
|
|
# INIT-COMMANDS section.
|
12036 |
|
|
#
|
12037 |
|
|
|
12038 |
|
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
12039 |
|
|
|
12040 |
|
|
|
12041 |
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
12042 |
|
|
# if CDPATH is set.
|
12043 |
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
12044 |
|
|
|
12045 |
|
|
sed_quote_subst='$sed_quote_subst'
|
12046 |
|
|
double_quote_subst='$double_quote_subst'
|
12047 |
|
|
delay_variable_subst='$delay_variable_subst'
|
12048 |
|
|
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
|
12049 |
|
|
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
|
12050 |
|
|
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
|
12051 |
|
|
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
|
12052 |
|
|
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
|
12053 |
|
|
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
|
12054 |
|
|
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
|
12055 |
|
|
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
|
12056 |
|
|
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
|
12057 |
|
|
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
|
12058 |
|
|
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
|
12059 |
|
|
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
|
12060 |
|
|
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
|
12061 |
|
|
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
|
12062 |
|
|
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
|
12063 |
|
|
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
|
12064 |
|
|
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
|
12065 |
|
|
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
|
12066 |
|
|
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
|
12067 |
|
|
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
|
12068 |
|
|
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
|
12069 |
|
|
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
|
12070 |
|
|
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
|
12071 |
|
|
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
|
12072 |
|
|
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
|
12073 |
|
|
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
|
12074 |
|
|
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
|
12075 |
|
|
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
|
12076 |
|
|
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
|
12077 |
|
|
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
12078 |
|
|
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12079 |
|
|
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
|
12080 |
|
|
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
|
12081 |
|
|
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
|
12082 |
|
|
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
|
12083 |
|
|
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
|
12084 |
|
|
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
|
12085 |
|
|
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12086 |
|
|
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12087 |
|
|
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12088 |
|
|
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
|
12089 |
|
|
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
|
12090 |
|
|
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
|
12091 |
|
|
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
|
12092 |
|
|
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
|
12093 |
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
|
12094 |
|
|
lt_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"`'
|
12095 |
|
|
lt_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"`'
|
12096 |
|
|
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
|
12097 |
|
|
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
|
12098 |
|
|
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
|
12099 |
|
|
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
|
12100 |
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
12101 |
|
|
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
|
12102 |
|
|
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
|
12103 |
|
|
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
|
12104 |
|
|
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
|
12105 |
|
|
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
|
12106 |
|
|
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
|
12107 |
|
|
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
|
12108 |
|
|
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
|
12109 |
|
|
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
|
12110 |
|
|
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
|
12111 |
|
|
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
|
12112 |
|
|
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12113 |
|
|
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12114 |
|
|
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
|
12115 |
|
|
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
|
12116 |
|
|
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12117 |
|
|
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12118 |
|
|
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
|
12119 |
|
|
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12120 |
|
|
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12121 |
|
|
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12122 |
|
|
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12123 |
|
|
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12124 |
|
|
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12125 |
|
|
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
|
12126 |
|
|
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
12127 |
|
|
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
|
12128 |
|
|
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12129 |
|
|
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
|
12130 |
|
|
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
|
12131 |
|
|
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
|
12132 |
|
|
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
|
12133 |
|
|
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
|
12134 |
|
|
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
12135 |
|
|
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
|
12136 |
|
|
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
|
12137 |
|
|
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
|
12138 |
|
|
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
|
12139 |
|
|
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
|
12140 |
|
|
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12141 |
|
|
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
|
12142 |
|
|
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
|
12143 |
|
|
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12144 |
|
|
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12145 |
|
|
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
|
12146 |
|
|
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
|
12147 |
|
|
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
|
12148 |
|
|
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
|
12149 |
|
|
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
12150 |
|
|
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
|
12151 |
|
|
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
|
12152 |
|
|
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12153 |
|
|
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12154 |
|
|
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12155 |
|
|
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12156 |
|
|
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12157 |
|
|
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
|
12158 |
|
|
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
|
12159 |
|
|
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
|
12160 |
|
|
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12161 |
|
|
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
|
12162 |
|
|
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
|
12163 |
|
|
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
|
12164 |
|
|
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
|
12165 |
|
|
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
|
12166 |
|
|
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
|
12167 |
|
|
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
|
12168 |
|
|
|
12169 |
|
|
LTCC='$LTCC'
|
12170 |
|
|
LTCFLAGS='$LTCFLAGS'
|
12171 |
|
|
compiler='$compiler_DEFAULT'
|
12172 |
|
|
|
12173 |
|
|
# Quote evaled strings.
|
12174 |
|
|
for var in SED \
|
12175 |
|
|
GREP \
|
12176 |
|
|
EGREP \
|
12177 |
|
|
FGREP \
|
12178 |
|
|
LD \
|
12179 |
|
|
NM \
|
12180 |
|
|
LN_S \
|
12181 |
|
|
lt_SP2NL \
|
12182 |
|
|
lt_NL2SP \
|
12183 |
|
|
reload_flag \
|
12184 |
|
|
deplibs_check_method \
|
12185 |
|
|
file_magic_cmd \
|
12186 |
|
|
AR \
|
12187 |
|
|
AR_FLAGS \
|
12188 |
|
|
STRIP \
|
12189 |
|
|
RANLIB \
|
12190 |
|
|
CC \
|
12191 |
|
|
CFLAGS \
|
12192 |
|
|
compiler \
|
12193 |
|
|
lt_cv_sys_global_symbol_pipe \
|
12194 |
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
12195 |
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
12196 |
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
12197 |
|
|
SHELL \
|
12198 |
|
|
ECHO \
|
12199 |
|
|
lt_prog_compiler_no_builtin_flag \
|
12200 |
|
|
lt_prog_compiler_wl \
|
12201 |
|
|
lt_prog_compiler_pic \
|
12202 |
|
|
lt_prog_compiler_static \
|
12203 |
|
|
lt_cv_prog_compiler_c_o \
|
12204 |
|
|
need_locks \
|
12205 |
|
|
DSYMUTIL \
|
12206 |
|
|
NMEDIT \
|
12207 |
|
|
LIPO \
|
12208 |
|
|
OTOOL \
|
12209 |
|
|
OTOOL64 \
|
12210 |
|
|
shrext_cmds \
|
12211 |
|
|
export_dynamic_flag_spec \
|
12212 |
|
|
whole_archive_flag_spec \
|
12213 |
|
|
compiler_needs_object \
|
12214 |
|
|
with_gnu_ld \
|
12215 |
|
|
allow_undefined_flag \
|
12216 |
|
|
no_undefined_flag \
|
12217 |
|
|
hardcode_libdir_flag_spec \
|
12218 |
|
|
hardcode_libdir_flag_spec_ld \
|
12219 |
|
|
hardcode_libdir_separator \
|
12220 |
|
|
fix_srcfile_path \
|
12221 |
|
|
exclude_expsyms \
|
12222 |
|
|
include_expsyms \
|
12223 |
|
|
file_list_spec \
|
12224 |
|
|
variables_saved_for_relink \
|
12225 |
|
|
libname_spec \
|
12226 |
|
|
library_names_spec \
|
12227 |
|
|
soname_spec \
|
12228 |
|
|
finish_eval \
|
12229 |
|
|
old_striplib \
|
12230 |
|
|
striplib; do
|
12231 |
|
|
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
12232 |
|
|
*[\\\\\\\`\\"\\\$]*)
|
12233 |
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
|
12234 |
|
|
;;
|
12235 |
|
|
*)
|
12236 |
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
12237 |
|
|
;;
|
12238 |
|
|
esac
|
12239 |
|
|
done
|
12240 |
|
|
|
12241 |
|
|
# Double-quote double-evaled strings.
|
12242 |
|
|
for var in reload_cmds \
|
12243 |
|
|
old_postinstall_cmds \
|
12244 |
|
|
old_postuninstall_cmds \
|
12245 |
|
|
old_archive_cmds \
|
12246 |
|
|
extract_expsyms_cmds \
|
12247 |
|
|
old_archive_from_new_cmds \
|
12248 |
|
|
old_archive_from_expsyms_cmds \
|
12249 |
|
|
archive_cmds \
|
12250 |
|
|
archive_expsym_cmds \
|
12251 |
|
|
module_cmds \
|
12252 |
|
|
module_expsym_cmds \
|
12253 |
|
|
export_symbols_cmds \
|
12254 |
|
|
prelink_cmds \
|
12255 |
|
|
postinstall_cmds \
|
12256 |
|
|
postuninstall_cmds \
|
12257 |
|
|
finish_cmds \
|
12258 |
|
|
sys_lib_search_path_spec \
|
12259 |
|
|
sys_lib_dlsearch_path_spec; do
|
12260 |
|
|
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
|
12261 |
|
|
*[\\\\\\\`\\"\\\$]*)
|
12262 |
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
12263 |
|
|
;;
|
12264 |
|
|
*)
|
12265 |
|
|
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
12266 |
|
|
;;
|
12267 |
|
|
esac
|
12268 |
|
|
done
|
12269 |
|
|
|
12270 |
|
|
# Fix-up fallback echo if it was mangled by the above quoting rules.
|
12271 |
|
|
case \$lt_ECHO in
|
12272 |
|
|
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
|
12273 |
|
|
;;
|
12274 |
|
|
esac
|
12275 |
|
|
|
12276 |
|
|
ac_aux_dir='$ac_aux_dir'
|
12277 |
|
|
xsi_shell='$xsi_shell'
|
12278 |
|
|
lt_shell_append='$lt_shell_append'
|
12279 |
|
|
|
12280 |
|
|
# See if we are running on zsh, and set the options which allow our
|
12281 |
|
|
# commands through without removal of \ escapes INIT.
|
12282 |
|
|
if test -n "\${ZSH_VERSION+set}" ; then
|
12283 |
|
|
setopt NO_GLOB_SUBST
|
12284 |
|
|
fi
|
12285 |
|
|
|
12286 |
|
|
|
12287 |
|
|
PACKAGE='$PACKAGE'
|
12288 |
|
|
VERSION='$VERSION'
|
12289 |
|
|
TIMESTAMP='$TIMESTAMP'
|
12290 |
|
|
RM='$RM'
|
12291 |
|
|
ofile='$ofile'
|
12292 |
|
|
|
12293 |
|
|
|
12294 |
|
|
|
12295 |
|
|
|
12296 |
|
|
_ACEOF
|
12297 |
|
|
|
12298 |
|
|
|
12299 |
|
|
|
12300 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
12301 |
|
|
for ac_config_target in $ac_config_targets
|
12302 |
|
|
do
|
12303 |
|
|
case "$ac_config_target" in
|
12304 |
|
|
# Handling of arguments.
|
12305 |
|
|
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
12306 |
|
|
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
|
12307 |
|
|
"net/Makefile" ) CONFIG_FILES="$CONFIG_FILES net/Makefile" ;;
|
12308 |
|
|
"iconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
|
12309 |
|
|
"dl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dl/Makefile" ;;
|
12310 |
|
|
"cmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmath/Makefile" ;;
|
12311 |
|
|
"argp/Makefile" ) CONFIG_FILES="$CONFIG_FILES argp/Makefile" ;;
|
12312 |
|
|
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
12313 |
|
|
"libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
12314 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
12315 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
12316 |
|
|
{ (exit 1); exit 1; }; };;
|
12317 |
|
|
esac
|
12318 |
|
|
done
|
12319 |
|
|
|
12320 |
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
12321 |
|
|
# then the envvar interface is used. Set only those that are not.
|
12322 |
|
|
# We use the long form for the default assignment because of an extremely
|
12323 |
|
|
# bizarre bug on SunOS 4.1.3.
|
12324 |
|
|
if $ac_need_defaults; then
|
12325 |
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
12326 |
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
12327 |
|
|
fi
|
12328 |
|
|
|
12329 |
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
12330 |
|
|
# simply because there is no reason to put it here, and in addition,
|
12331 |
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
12332 |
|
|
# Create a temporary directory, and hook for its removal unless debugging.
|
12333 |
|
|
$debug ||
|
12334 |
|
|
{
|
12335 |
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
12336 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
12337 |
|
|
}
|
12338 |
|
|
|
12339 |
|
|
# Create a (secure) tmp directory for tmp files.
|
12340 |
|
|
|
12341 |
|
|
{
|
12342 |
|
|
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
12343 |
|
|
test -n "$tmp" && test -d "$tmp"
|
12344 |
|
|
} ||
|
12345 |
|
|
{
|
12346 |
|
|
tmp=./confstat$$-$RANDOM
|
12347 |
|
|
(umask 077 && mkdir $tmp)
|
12348 |
|
|
} ||
|
12349 |
|
|
{
|
12350 |
|
|
echo "$me: cannot create a temporary directory in ." >&2
|
12351 |
|
|
{ (exit 1); exit 1; }
|
12352 |
|
|
}
|
12353 |
|
|
|
12354 |
|
|
_ACEOF
|
12355 |
|
|
|
12356 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
12357 |
|
|
|
12358 |
|
|
#
|
12359 |
|
|
# CONFIG_FILES section.
|
12360 |
|
|
#
|
12361 |
|
|
|
12362 |
|
|
# No need to generate the scripts if there are no CONFIG_FILES.
|
12363 |
|
|
# This happens for instance when ./config.status config.h
|
12364 |
|
|
if test -n "\$CONFIG_FILES"; then
|
12365 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
12366 |
|
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
12367 |
|
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
12368 |
|
|
s,@SHELL@,$SHELL,;t t
|
12369 |
|
|
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
12370 |
|
|
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
12371 |
|
|
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
12372 |
|
|
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
12373 |
|
|
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
12374 |
|
|
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
12375 |
|
|
s,@exec_prefix@,$exec_prefix,;t t
|
12376 |
|
|
s,@prefix@,$prefix,;t t
|
12377 |
|
|
s,@program_transform_name@,$program_transform_name,;t t
|
12378 |
|
|
s,@bindir@,$bindir,;t t
|
12379 |
|
|
s,@sbindir@,$sbindir,;t t
|
12380 |
|
|
s,@libexecdir@,$libexecdir,;t t
|
12381 |
|
|
s,@datadir@,$datadir,;t t
|
12382 |
|
|
s,@sysconfdir@,$sysconfdir,;t t
|
12383 |
|
|
s,@sharedstatedir@,$sharedstatedir,;t t
|
12384 |
|
|
s,@localstatedir@,$localstatedir,;t t
|
12385 |
|
|
s,@libdir@,$libdir,;t t
|
12386 |
|
|
s,@includedir@,$includedir,;t t
|
12387 |
|
|
s,@oldincludedir@,$oldincludedir,;t t
|
12388 |
|
|
s,@infodir@,$infodir,;t t
|
12389 |
|
|
s,@mandir@,$mandir,;t t
|
12390 |
|
|
s,@build_alias@,$build_alias,;t t
|
12391 |
|
|
s,@host_alias@,$host_alias,;t t
|
12392 |
|
|
s,@target_alias@,$target_alias,;t t
|
12393 |
|
|
s,@DEFS@,$DEFS,;t t
|
12394 |
|
|
s,@ECHO_C@,$ECHO_C,;t t
|
12395 |
|
|
s,@ECHO_N@,$ECHO_N,;t t
|
12396 |
|
|
s,@ECHO_T@,$ECHO_T,;t t
|
12397 |
|
|
s,@LIBS@,$LIBS,;t t
|
12398 |
|
|
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
|
12399 |
|
|
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
|
12400 |
|
|
s,@newlib_basedir@,$newlib_basedir,;t t
|
12401 |
|
|
s,@build@,$build,;t t
|
12402 |
|
|
s,@build_cpu@,$build_cpu,;t t
|
12403 |
|
|
s,@build_vendor@,$build_vendor,;t t
|
12404 |
|
|
s,@build_os@,$build_os,;t t
|
12405 |
|
|
s,@host@,$host,;t t
|
12406 |
|
|
s,@host_cpu@,$host_cpu,;t t
|
12407 |
|
|
s,@host_vendor@,$host_vendor,;t t
|
12408 |
|
|
s,@host_os@,$host_os,;t t
|
12409 |
|
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
12410 |
|
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
12411 |
|
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
12412 |
|
|
s,@CYGPATH_W@,$CYGPATH_W,;t t
|
12413 |
|
|
s,@PACKAGE@,$PACKAGE,;t t
|
12414 |
|
|
s,@VERSION@,$VERSION,;t t
|
12415 |
|
|
s,@ACLOCAL@,$ACLOCAL,;t t
|
12416 |
|
|
s,@AUTOCONF@,$AUTOCONF,;t t
|
12417 |
|
|
s,@AUTOMAKE@,$AUTOMAKE,;t t
|
12418 |
|
|
s,@AUTOHEADER@,$AUTOHEADER,;t t
|
12419 |
|
|
s,@MAKEINFO@,$MAKEINFO,;t t
|
12420 |
|
|
s,@install_sh@,$install_sh,;t t
|
12421 |
|
|
s,@STRIP@,$STRIP,;t t
|
12422 |
|
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
12423 |
|
|
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
12424 |
|
|
s,@mkdir_p@,$mkdir_p,;t t
|
12425 |
|
|
s,@AWK@,$AWK,;t t
|
12426 |
|
|
s,@SET_MAKE@,$SET_MAKE,;t t
|
12427 |
|
|
s,@am__leading_dot@,$am__leading_dot,;t t
|
12428 |
|
|
s,@AMTAR@,$AMTAR,;t t
|
12429 |
|
|
s,@am__tar@,$am__tar,;t t
|
12430 |
|
|
s,@am__untar@,$am__untar,;t t
|
12431 |
|
|
s,@CC@,$CC,;t t
|
12432 |
|
|
s,@DEPDIR@,$DEPDIR,;t t
|
12433 |
|
|
s,@am__include@,$am__include,;t t
|
12434 |
|
|
s,@am__quote@,$am__quote,;t t
|
12435 |
|
|
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
|
12436 |
|
|
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
|
12437 |
|
|
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
|
12438 |
|
|
s,@CCDEPMODE@,$CCDEPMODE,;t t
|
12439 |
|
|
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
|
12440 |
|
|
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
|
12441 |
|
|
s,@AS@,$AS,;t t
|
12442 |
|
|
s,@ac_ct_AS@,$ac_ct_AS,;t t
|
12443 |
|
|
s,@AR@,$AR,;t t
|
12444 |
|
|
s,@ac_ct_AR@,$ac_ct_AR,;t t
|
12445 |
|
|
s,@RANLIB@,$RANLIB,;t t
|
12446 |
|
|
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
12447 |
|
|
s,@READELF@,$READELF,;t t
|
12448 |
|
|
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
|
12449 |
|
|
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
|
12450 |
|
|
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
|
12451 |
|
|
s,@MAINT@,$MAINT,;t t
|
12452 |
|
|
s,@CCAS@,$CCAS,;t t
|
12453 |
|
|
s,@CCASFLAGS@,$CCASFLAGS,;t t
|
12454 |
|
|
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
|
12455 |
|
|
s,@LDFLAGS@,$LDFLAGS,;t t
|
12456 |
|
|
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
|
12457 |
|
|
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
|
12458 |
|
|
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
|
12459 |
|
|
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
|
12460 |
|
|
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
|
12461 |
|
|
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
|
12462 |
|
|
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
|
12463 |
|
|
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
|
12464 |
|
|
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
|
12465 |
|
|
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
|
12466 |
|
|
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
|
12467 |
|
|
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
|
12468 |
|
|
s,@OBJEXT@,$OBJEXT,;t t
|
12469 |
|
|
s,@oext@,$oext,;t t
|
12470 |
|
|
s,@aext@,$aext,;t t
|
12471 |
|
|
s,@lpfx@,$lpfx,;t t
|
12472 |
|
|
s,@libm_machine_dir@,$libm_machine_dir,;t t
|
12473 |
|
|
s,@machine_dir@,$machine_dir,;t t
|
12474 |
|
|
s,@sys_dir@,$sys_dir,;t t
|
12475 |
|
|
s,@SED@,$SED,;t t
|
12476 |
|
|
s,@DLLTOOL@,$DLLTOOL,;t t
|
12477 |
|
|
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
|
12478 |
|
|
s,@OBJDUMP@,$OBJDUMP,;t t
|
12479 |
|
|
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
|
12480 |
|
|
s,@LIBTOOL@,$LIBTOOL,;t t
|
12481 |
|
|
s,@CFLAGS@,$CFLAGS,;t t
|
12482 |
|
|
s,@CPPFLAGS@,$CPPFLAGS,;t t
|
12483 |
|
|
s,@ac_ct_CC@,$ac_ct_CC,;t t
|
12484 |
|
|
s,@EXEEXT@,$EXEEXT,;t t
|
12485 |
|
|
s,@EGREP@,$EGREP,;t t
|
12486 |
|
|
s,@FGREP@,$FGREP,;t t
|
12487 |
|
|
s,@GREP@,$GREP,;t t
|
12488 |
|
|
s,@LD@,$LD,;t t
|
12489 |
|
|
s,@DUMPBIN@,$DUMPBIN,;t t
|
12490 |
|
|
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
|
12491 |
|
|
s,@NM@,$NM,;t t
|
12492 |
|
|
s,@LN_S@,$LN_S,;t t
|
12493 |
|
|
s,@lt_ECHO@,$lt_ECHO,;t t
|
12494 |
|
|
s,@DSYMUTIL@,$DSYMUTIL,;t t
|
12495 |
|
|
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
|
12496 |
|
|
s,@NMEDIT@,$NMEDIT,;t t
|
12497 |
|
|
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
|
12498 |
|
|
s,@LIPO@,$LIPO,;t t
|
12499 |
|
|
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
|
12500 |
|
|
s,@OTOOL@,$OTOOL,;t t
|
12501 |
|
|
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
|
12502 |
|
|
s,@OTOOL64@,$OTOOL64,;t t
|
12503 |
|
|
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
|
12504 |
|
|
s,@CPP@,$CPP,;t t
|
12505 |
|
|
s,@subdirs@,$subdirs,;t t
|
12506 |
|
|
s,@LINUX_MACH_LIB@,$LINUX_MACH_LIB,;t t
|
12507 |
|
|
s,@EXTRA_SUBDIRS@,$EXTRA_SUBDIRS,;t t
|
12508 |
|
|
s,@EXTRA_SUBLIBS@,$EXTRA_SUBLIBS,;t t
|
12509 |
|
|
s,@LIBOBJS@,$LIBOBJS,;t t
|
12510 |
|
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
12511 |
|
|
CEOF
|
12512 |
|
|
|
12513 |
|
|
_ACEOF
|
12514 |
|
|
|
12515 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
12516 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
12517 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
12518 |
|
|
ac_max_sed_lines=48
|
12519 |
|
|
ac_sed_frag=1 # Number of current file.
|
12520 |
|
|
ac_beg=1 # First line for current file.
|
12521 |
|
|
ac_end=$ac_max_sed_lines # Line after last line for current file.
|
12522 |
|
|
ac_more_lines=:
|
12523 |
|
|
ac_sed_cmds=
|
12524 |
|
|
while $ac_more_lines; do
|
12525 |
|
|
if test $ac_beg -gt 1; then
|
12526 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
12527 |
|
|
else
|
12528 |
|
|
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
12529 |
|
|
fi
|
12530 |
|
|
if test ! -s $tmp/subs.frag; then
|
12531 |
|
|
ac_more_lines=false
|
12532 |
|
|
else
|
12533 |
|
|
# The purpose of the label and of the branching condition is to
|
12534 |
|
|
# speed up the sed processing (if there are no `@' at all, there
|
12535 |
|
|
# is no need to browse any of the substitutions).
|
12536 |
|
|
# These are the two extra sed commands mentioned above.
|
12537 |
|
|
(echo ':t
|
12538 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
12539 |
|
|
if test -z "$ac_sed_cmds"; then
|
12540 |
|
|
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
12541 |
|
|
else
|
12542 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
12543 |
|
|
fi
|
12544 |
|
|
ac_sed_frag=`expr $ac_sed_frag + 1`
|
12545 |
|
|
ac_beg=$ac_end
|
12546 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_lines`
|
12547 |
|
|
fi
|
12548 |
|
|
done
|
12549 |
|
|
if test -z "$ac_sed_cmds"; then
|
12550 |
|
|
ac_sed_cmds=cat
|
12551 |
|
|
fi
|
12552 |
|
|
fi # test -n "$CONFIG_FILES"
|
12553 |
|
|
|
12554 |
|
|
_ACEOF
|
12555 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
12556 |
|
|
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
12557 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
12558 |
|
|
case $ac_file in
|
12559 |
|
|
- | *:- | *:-:* ) # input from stdin
|
12560 |
|
|
cat >$tmp/stdin
|
12561 |
|
|
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
12562 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
12563 |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
12564 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
12565 |
|
|
* ) ac_file_in=$ac_file.in ;;
|
12566 |
|
|
esac
|
12567 |
|
|
|
12568 |
|
|
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
12569 |
|
|
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
12570 |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12571 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
12572 |
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
12573 |
|
|
X"$ac_file" : 'X\(/\)' \| \
|
12574 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12575 |
|
|
echo X"$ac_file" |
|
12576 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12577 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12578 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12579 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12580 |
|
|
s/.*/./; q'`
|
12581 |
|
|
{ if $as_mkdir_p; then
|
12582 |
|
|
mkdir -p "$ac_dir"
|
12583 |
|
|
else
|
12584 |
|
|
as_dir="$ac_dir"
|
12585 |
|
|
as_dirs=
|
12586 |
|
|
while test ! -d "$as_dir"; do
|
12587 |
|
|
as_dirs="$as_dir $as_dirs"
|
12588 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
12589 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12590 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
12591 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
12592 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
12593 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12594 |
|
|
echo X"$as_dir" |
|
12595 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12596 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12597 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12598 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12599 |
|
|
s/.*/./; q'`
|
12600 |
|
|
done
|
12601 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
12602 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
12603 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
12604 |
|
|
{ (exit 1); exit 1; }; }; }
|
12605 |
|
|
|
12606 |
|
|
ac_builddir=.
|
12607 |
|
|
|
12608 |
|
|
if test "$ac_dir" != .; then
|
12609 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
12610 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
12611 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
12612 |
|
|
else
|
12613 |
|
|
ac_dir_suffix= ac_top_builddir=
|
12614 |
|
|
fi
|
12615 |
|
|
|
12616 |
|
|
case $srcdir in
|
12617 |
|
|
.) # No --srcdir option. We are building in place.
|
12618 |
|
|
ac_srcdir=.
|
12619 |
|
|
if test -z "$ac_top_builddir"; then
|
12620 |
|
|
ac_top_srcdir=.
|
12621 |
|
|
else
|
12622 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
12623 |
|
|
fi ;;
|
12624 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
12625 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
12626 |
|
|
ac_top_srcdir=$srcdir ;;
|
12627 |
|
|
*) # Relative path.
|
12628 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
12629 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
12630 |
|
|
esac
|
12631 |
|
|
|
12632 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
12633 |
|
|
# the directories may not exist.
|
12634 |
|
|
case `pwd` in
|
12635 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
12636 |
|
|
*)
|
12637 |
|
|
case "$ac_dir" in
|
12638 |
|
|
.) ac_abs_builddir=`pwd`;;
|
12639 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
12640 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
12641 |
|
|
esac;;
|
12642 |
|
|
esac
|
12643 |
|
|
case $ac_abs_builddir in
|
12644 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
12645 |
|
|
*)
|
12646 |
|
|
case ${ac_top_builddir}. in
|
12647 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
12648 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
12649 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
12650 |
|
|
esac;;
|
12651 |
|
|
esac
|
12652 |
|
|
case $ac_abs_builddir in
|
12653 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
12654 |
|
|
*)
|
12655 |
|
|
case $ac_srcdir in
|
12656 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
12657 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
12658 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
12659 |
|
|
esac;;
|
12660 |
|
|
esac
|
12661 |
|
|
case $ac_abs_builddir in
|
12662 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
12663 |
|
|
*)
|
12664 |
|
|
case $ac_top_srcdir in
|
12665 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
12666 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
12667 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
12668 |
|
|
esac;;
|
12669 |
|
|
esac
|
12670 |
|
|
|
12671 |
|
|
|
12672 |
|
|
case $INSTALL in
|
12673 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
12674 |
|
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
12675 |
|
|
esac
|
12676 |
|
|
|
12677 |
|
|
if test x"$ac_file" != x-; then
|
12678 |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
12679 |
|
|
echo "$as_me: creating $ac_file" >&6;}
|
12680 |
|
|
rm -f "$ac_file"
|
12681 |
|
|
fi
|
12682 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
12683 |
|
|
# use $as_me), people would be surprised to read:
|
12684 |
|
|
# /* config.h. Generated by config.status. */
|
12685 |
|
|
if test x"$ac_file" = x-; then
|
12686 |
|
|
configure_input=
|
12687 |
|
|
else
|
12688 |
|
|
configure_input="$ac_file. "
|
12689 |
|
|
fi
|
12690 |
|
|
configure_input=$configure_input"Generated from `echo $ac_file_in |
|
12691 |
|
|
sed 's,.*/,,'` by configure."
|
12692 |
|
|
|
12693 |
|
|
# First look for the input files in the build tree, otherwise in the
|
12694 |
|
|
# src tree.
|
12695 |
|
|
ac_file_inputs=`IFS=:
|
12696 |
|
|
for f in $ac_file_in; do
|
12697 |
|
|
case $f in
|
12698 |
|
|
-) echo $tmp/stdin ;;
|
12699 |
|
|
[\\/$]*)
|
12700 |
|
|
# Absolute (can't be DOS-style, as IFS=:)
|
12701 |
|
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
12702 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
12703 |
|
|
{ (exit 1); exit 1; }; }
|
12704 |
|
|
echo "$f";;
|
12705 |
|
|
*) # Relative
|
12706 |
|
|
if test -f "$f"; then
|
12707 |
|
|
# Build tree
|
12708 |
|
|
echo "$f"
|
12709 |
|
|
elif test -f "$srcdir/$f"; then
|
12710 |
|
|
# Source tree
|
12711 |
|
|
echo "$srcdir/$f"
|
12712 |
|
|
else
|
12713 |
|
|
# /dev/null tree
|
12714 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
12715 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
12716 |
|
|
{ (exit 1); exit 1; }; }
|
12717 |
|
|
fi;;
|
12718 |
|
|
esac
|
12719 |
|
|
done` || { (exit 1); exit 1; }
|
12720 |
|
|
_ACEOF
|
12721 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
12722 |
|
|
sed "$ac_vpsub
|
12723 |
|
|
$extrasub
|
12724 |
|
|
_ACEOF
|
12725 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
12726 |
|
|
:t
|
12727 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
12728 |
|
|
s,@configure_input@,$configure_input,;t t
|
12729 |
|
|
s,@srcdir@,$ac_srcdir,;t t
|
12730 |
|
|
s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
12731 |
|
|
s,@top_srcdir@,$ac_top_srcdir,;t t
|
12732 |
|
|
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
12733 |
|
|
s,@builddir@,$ac_builddir,;t t
|
12734 |
|
|
s,@abs_builddir@,$ac_abs_builddir,;t t
|
12735 |
|
|
s,@top_builddir@,$ac_top_builddir,;t t
|
12736 |
|
|
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
12737 |
|
|
s,@INSTALL@,$ac_INSTALL,;t t
|
12738 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
12739 |
|
|
rm -f $tmp/stdin
|
12740 |
|
|
if test x"$ac_file" != x-; then
|
12741 |
|
|
mv $tmp/out $ac_file
|
12742 |
|
|
else
|
12743 |
|
|
cat $tmp/out
|
12744 |
|
|
rm -f $tmp/out
|
12745 |
|
|
fi
|
12746 |
|
|
|
12747 |
|
|
done
|
12748 |
|
|
_ACEOF
|
12749 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
12750 |
|
|
|
12751 |
|
|
#
|
12752 |
|
|
# CONFIG_COMMANDS section.
|
12753 |
|
|
#
|
12754 |
|
|
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
12755 |
|
|
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
12756 |
|
|
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
12757 |
|
|
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
12758 |
|
|
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12759 |
|
|
X"$ac_dest" : 'X\(//\)[^/]' \| \
|
12760 |
|
|
X"$ac_dest" : 'X\(//\)$' \| \
|
12761 |
|
|
X"$ac_dest" : 'X\(/\)' \| \
|
12762 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12763 |
|
|
echo X"$ac_dest" |
|
12764 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12765 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12766 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12767 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12768 |
|
|
s/.*/./; q'`
|
12769 |
|
|
{ if $as_mkdir_p; then
|
12770 |
|
|
mkdir -p "$ac_dir"
|
12771 |
|
|
else
|
12772 |
|
|
as_dir="$ac_dir"
|
12773 |
|
|
as_dirs=
|
12774 |
|
|
while test ! -d "$as_dir"; do
|
12775 |
|
|
as_dirs="$as_dir $as_dirs"
|
12776 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
12777 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12778 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
12779 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
12780 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
12781 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12782 |
|
|
echo X"$as_dir" |
|
12783 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12784 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12785 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12786 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12787 |
|
|
s/.*/./; q'`
|
12788 |
|
|
done
|
12789 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
12790 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
12791 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
12792 |
|
|
{ (exit 1); exit 1; }; }; }
|
12793 |
|
|
|
12794 |
|
|
ac_builddir=.
|
12795 |
|
|
|
12796 |
|
|
if test "$ac_dir" != .; then
|
12797 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
12798 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
12799 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
12800 |
|
|
else
|
12801 |
|
|
ac_dir_suffix= ac_top_builddir=
|
12802 |
|
|
fi
|
12803 |
|
|
|
12804 |
|
|
case $srcdir in
|
12805 |
|
|
.) # No --srcdir option. We are building in place.
|
12806 |
|
|
ac_srcdir=.
|
12807 |
|
|
if test -z "$ac_top_builddir"; then
|
12808 |
|
|
ac_top_srcdir=.
|
12809 |
|
|
else
|
12810 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
12811 |
|
|
fi ;;
|
12812 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
12813 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
12814 |
|
|
ac_top_srcdir=$srcdir ;;
|
12815 |
|
|
*) # Relative path.
|
12816 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
12817 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
12818 |
|
|
esac
|
12819 |
|
|
|
12820 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
12821 |
|
|
# the directories may not exist.
|
12822 |
|
|
case `pwd` in
|
12823 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
12824 |
|
|
*)
|
12825 |
|
|
case "$ac_dir" in
|
12826 |
|
|
.) ac_abs_builddir=`pwd`;;
|
12827 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
12828 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
12829 |
|
|
esac;;
|
12830 |
|
|
esac
|
12831 |
|
|
case $ac_abs_builddir in
|
12832 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
12833 |
|
|
*)
|
12834 |
|
|
case ${ac_top_builddir}. in
|
12835 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
12836 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
12837 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
12838 |
|
|
esac;;
|
12839 |
|
|
esac
|
12840 |
|
|
case $ac_abs_builddir in
|
12841 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
12842 |
|
|
*)
|
12843 |
|
|
case $ac_srcdir in
|
12844 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
12845 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
12846 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
12847 |
|
|
esac;;
|
12848 |
|
|
esac
|
12849 |
|
|
case $ac_abs_builddir in
|
12850 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
12851 |
|
|
*)
|
12852 |
|
|
case $ac_top_srcdir in
|
12853 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
12854 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
12855 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
12856 |
|
|
esac;;
|
12857 |
|
|
esac
|
12858 |
|
|
|
12859 |
|
|
|
12860 |
|
|
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
12861 |
|
|
echo "$as_me: executing $ac_dest commands" >&6;}
|
12862 |
|
|
case $ac_dest in
|
12863 |
|
|
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
12864 |
|
|
# Strip MF so we end up with the name of the file.
|
12865 |
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
12866 |
|
|
# Check whether this is an Automake generated Makefile or not.
|
12867 |
|
|
# We used to match only the files named `Makefile.in', but
|
12868 |
|
|
# some people rename them; so instead we look at the file content.
|
12869 |
|
|
# Grep'ing the first line is not enough: some people post-process
|
12870 |
|
|
# each Makefile.in and add a new line on top of each file to say so.
|
12871 |
|
|
# So let's grep whole file.
|
12872 |
|
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
12873 |
|
|
dirpart=`(dirname "$mf") 2>/dev/null ||
|
12874 |
|
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12875 |
|
|
X"$mf" : 'X\(//\)[^/]' \| \
|
12876 |
|
|
X"$mf" : 'X\(//\)$' \| \
|
12877 |
|
|
X"$mf" : 'X\(/\)' \| \
|
12878 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12879 |
|
|
echo X"$mf" |
|
12880 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12881 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12882 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12883 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12884 |
|
|
s/.*/./; q'`
|
12885 |
|
|
else
|
12886 |
|
|
continue
|
12887 |
|
|
fi
|
12888 |
|
|
# Extract the definition of DEPDIR, am__include, and am__quote
|
12889 |
|
|
# from the Makefile without running `make'.
|
12890 |
|
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
12891 |
|
|
test -z "$DEPDIR" && continue
|
12892 |
|
|
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
12893 |
|
|
test -z "am__include" && continue
|
12894 |
|
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
12895 |
|
|
# When using ansi2knr, U may be empty or an underscore; expand it
|
12896 |
|
|
U=`sed -n 's/^U = //p' < "$mf"`
|
12897 |
|
|
# Find all dependency output files, they are included files with
|
12898 |
|
|
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
12899 |
|
|
# simplest approach to changing $(DEPDIR) to its actual value in the
|
12900 |
|
|
# expansion.
|
12901 |
|
|
for file in `sed -n "
|
12902 |
|
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
12903 |
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
12904 |
|
|
# Make sure the directory exists.
|
12905 |
|
|
test -f "$dirpart/$file" && continue
|
12906 |
|
|
fdir=`(dirname "$file") 2>/dev/null ||
|
12907 |
|
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12908 |
|
|
X"$file" : 'X\(//\)[^/]' \| \
|
12909 |
|
|
X"$file" : 'X\(//\)$' \| \
|
12910 |
|
|
X"$file" : 'X\(/\)' \| \
|
12911 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12912 |
|
|
echo X"$file" |
|
12913 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12914 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12915 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12916 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12917 |
|
|
s/.*/./; q'`
|
12918 |
|
|
{ if $as_mkdir_p; then
|
12919 |
|
|
mkdir -p $dirpart/$fdir
|
12920 |
|
|
else
|
12921 |
|
|
as_dir=$dirpart/$fdir
|
12922 |
|
|
as_dirs=
|
12923 |
|
|
while test ! -d "$as_dir"; do
|
12924 |
|
|
as_dirs="$as_dir $as_dirs"
|
12925 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
12926 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
12927 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
12928 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
12929 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
12930 |
|
|
. : '\(.\)' 2>/dev/null ||
|
12931 |
|
|
echo X"$as_dir" |
|
12932 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
12933 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
12934 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
12935 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
12936 |
|
|
s/.*/./; q'`
|
12937 |
|
|
done
|
12938 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
12939 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
|
12940 |
|
|
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
|
12941 |
|
|
{ (exit 1); exit 1; }; }; }
|
12942 |
|
|
|
12943 |
|
|
# echo "creating $dirpart/$file"
|
12944 |
|
|
echo '# dummy' > "$dirpart/$file"
|
12945 |
|
|
done
|
12946 |
|
|
done
|
12947 |
|
|
;;
|
12948 |
|
|
libtool )
|
12949 |
|
|
|
12950 |
|
|
# See if we are running on zsh, and set the options which allow our
|
12951 |
|
|
# commands through without removal of \ escapes.
|
12952 |
|
|
if test -n "${ZSH_VERSION+set}" ; then
|
12953 |
|
|
setopt NO_GLOB_SUBST
|
12954 |
|
|
fi
|
12955 |
|
|
|
12956 |
|
|
cfgfile="${ofile}T"
|
12957 |
|
|
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
12958 |
|
|
$RM "$cfgfile"
|
12959 |
|
|
|
12960 |
|
|
cat <<_LT_EOF >> "$cfgfile"
|
12961 |
|
|
#! $SHELL
|
12962 |
|
|
|
12963 |
|
|
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
12964 |
|
|
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
|
12965 |
|
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
12966 |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
12967 |
|
|
#
|
12968 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
12969 |
|
|
# 2006, 2007, 2008 Free Software Foundation, Inc.
|
12970 |
|
|
# Written by Gordon Matzigkeit, 1996
|
12971 |
|
|
#
|
12972 |
|
|
# This file is part of GNU Libtool.
|
12973 |
|
|
#
|
12974 |
|
|
# GNU Libtool is free software; you can redistribute it and/or
|
12975 |
|
|
# modify it under the terms of the GNU General Public License as
|
12976 |
|
|
# published by the Free Software Foundation; either version 2 of
|
12977 |
|
|
# the License, or (at your option) any later version.
|
12978 |
|
|
#
|
12979 |
|
|
# As a special exception to the GNU General Public License,
|
12980 |
|
|
# if you distribute this file as part of a program or library that
|
12981 |
|
|
# is built using GNU Libtool, you may include this file under the
|
12982 |
|
|
# same distribution terms that you use for the rest of that program.
|
12983 |
|
|
#
|
12984 |
|
|
# GNU Libtool is distributed in the hope that it will be useful,
|
12985 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12986 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12987 |
|
|
# GNU General Public License for more details.
|
12988 |
|
|
#
|
12989 |
|
|
# You should have received a copy of the GNU General Public License
|
12990 |
|
|
# along with GNU Libtool; see the file COPYING. If not, a copy
|
12991 |
|
|
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
|
12992 |
|
|
# obtained by writing to the Free Software Foundation, Inc.,
|
12993 |
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
12994 |
|
|
|
12995 |
|
|
|
12996 |
|
|
# The names of the tagged configurations supported by this script.
|
12997 |
|
|
available_tags=""
|
12998 |
|
|
|
12999 |
|
|
# ### BEGIN LIBTOOL CONFIG
|
13000 |
|
|
|
13001 |
|
|
# A sed program that does not truncate output.
|
13002 |
|
|
SED=$lt_SED
|
13003 |
|
|
|
13004 |
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
13005 |
|
|
Xsed="\$SED -e 1s/^X//"
|
13006 |
|
|
|
13007 |
|
|
# Assembler program.
|
13008 |
|
|
AS=$AS
|
13009 |
|
|
|
13010 |
|
|
# DLL creation program.
|
13011 |
|
|
DLLTOOL=$DLLTOOL
|
13012 |
|
|
|
13013 |
|
|
# Object dumper program.
|
13014 |
|
|
OBJDUMP=$OBJDUMP
|
13015 |
|
|
|
13016 |
|
|
# Which release of libtool.m4 was used?
|
13017 |
|
|
macro_version=$macro_version
|
13018 |
|
|
macro_revision=$macro_revision
|
13019 |
|
|
|
13020 |
|
|
# Whether or not to build shared libraries.
|
13021 |
|
|
build_libtool_libs=$enable_shared
|
13022 |
|
|
|
13023 |
|
|
# Whether or not to build static libraries.
|
13024 |
|
|
build_old_libs=$enable_static
|
13025 |
|
|
|
13026 |
|
|
# What type of objects to build.
|
13027 |
|
|
pic_mode=$pic_mode
|
13028 |
|
|
|
13029 |
|
|
# Whether or not to optimize for fast installation.
|
13030 |
|
|
fast_install=$enable_fast_install
|
13031 |
|
|
|
13032 |
|
|
# The host system.
|
13033 |
|
|
host_alias=$host_alias
|
13034 |
|
|
host=$host
|
13035 |
|
|
host_os=$host_os
|
13036 |
|
|
|
13037 |
|
|
# The build system.
|
13038 |
|
|
build_alias=$build_alias
|
13039 |
|
|
build=$build
|
13040 |
|
|
build_os=$build_os
|
13041 |
|
|
|
13042 |
|
|
# A grep program that handles long lines.
|
13043 |
|
|
GREP=$lt_GREP
|
13044 |
|
|
|
13045 |
|
|
# An ERE matcher.
|
13046 |
|
|
EGREP=$lt_EGREP
|
13047 |
|
|
|
13048 |
|
|
# A literal string matcher.
|
13049 |
|
|
FGREP=$lt_FGREP
|
13050 |
|
|
|
13051 |
|
|
# A BSD- or MS-compatible name lister.
|
13052 |
|
|
NM=$lt_NM
|
13053 |
|
|
|
13054 |
|
|
# Whether we need soft or hard links.
|
13055 |
|
|
LN_S=$lt_LN_S
|
13056 |
|
|
|
13057 |
|
|
# What is the maximum length of a command?
|
13058 |
|
|
max_cmd_len=$max_cmd_len
|
13059 |
|
|
|
13060 |
|
|
# Object file suffix (normally "o").
|
13061 |
|
|
objext=$ac_objext
|
13062 |
|
|
|
13063 |
|
|
# Executable file suffix (normally "").
|
13064 |
|
|
exeext=$exeext
|
13065 |
|
|
|
13066 |
|
|
# whether the shell understands "unset".
|
13067 |
|
|
lt_unset=$lt_unset
|
13068 |
|
|
|
13069 |
|
|
# turn spaces into newlines.
|
13070 |
|
|
SP2NL=$lt_lt_SP2NL
|
13071 |
|
|
|
13072 |
|
|
# turn newlines into spaces.
|
13073 |
|
|
NL2SP=$lt_lt_NL2SP
|
13074 |
|
|
|
13075 |
|
|
# How to create reloadable object files.
|
13076 |
|
|
reload_flag=$lt_reload_flag
|
13077 |
|
|
reload_cmds=$lt_reload_cmds
|
13078 |
|
|
|
13079 |
|
|
# Method to check whether dependent libraries are shared objects.
|
13080 |
|
|
deplibs_check_method=$lt_deplibs_check_method
|
13081 |
|
|
|
13082 |
|
|
# Command to use when deplibs_check_method == "file_magic".
|
13083 |
|
|
file_magic_cmd=$lt_file_magic_cmd
|
13084 |
|
|
|
13085 |
|
|
# The archiver.
|
13086 |
|
|
AR=$lt_AR
|
13087 |
|
|
AR_FLAGS=$lt_AR_FLAGS
|
13088 |
|
|
|
13089 |
|
|
# A symbol stripping program.
|
13090 |
|
|
STRIP=$lt_STRIP
|
13091 |
|
|
|
13092 |
|
|
# Commands used to install an old-style archive.
|
13093 |
|
|
RANLIB=$lt_RANLIB
|
13094 |
|
|
old_postinstall_cmds=$lt_old_postinstall_cmds
|
13095 |
|
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
13096 |
|
|
|
13097 |
|
|
# A C compiler.
|
13098 |
|
|
LTCC=$lt_CC
|
13099 |
|
|
|
13100 |
|
|
# LTCC compiler flags.
|
13101 |
|
|
LTCFLAGS=$lt_CFLAGS
|
13102 |
|
|
|
13103 |
|
|
# Take the output of nm and produce a listing of raw symbols and C names.
|
13104 |
|
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
13105 |
|
|
|
13106 |
|
|
# Transform the output of nm in a proper C declaration.
|
13107 |
|
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
13108 |
|
|
|
13109 |
|
|
# Transform the output of nm in a C name address pair.
|
13110 |
|
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
13111 |
|
|
|
13112 |
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
13113 |
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
13114 |
|
|
|
13115 |
|
|
# The name of the directory that contains temporary libtool files.
|
13116 |
|
|
objdir=$objdir
|
13117 |
|
|
|
13118 |
|
|
# Shell to use when invoking shell scripts.
|
13119 |
|
|
SHELL=$lt_SHELL
|
13120 |
|
|
|
13121 |
|
|
# An echo program that does not interpret backslashes.
|
13122 |
|
|
ECHO=$lt_ECHO
|
13123 |
|
|
|
13124 |
|
|
# Used to examine libraries when file_magic_cmd begins with "file".
|
13125 |
|
|
MAGIC_CMD=$MAGIC_CMD
|
13126 |
|
|
|
13127 |
|
|
# Must we lock files when doing compilation?
|
13128 |
|
|
need_locks=$lt_need_locks
|
13129 |
|
|
|
13130 |
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
13131 |
|
|
DSYMUTIL=$lt_DSYMUTIL
|
13132 |
|
|
|
13133 |
|
|
# Tool to change global to local symbols on Mac OS X.
|
13134 |
|
|
NMEDIT=$lt_NMEDIT
|
13135 |
|
|
|
13136 |
|
|
# Tool to manipulate fat objects and archives on Mac OS X.
|
13137 |
|
|
LIPO=$lt_LIPO
|
13138 |
|
|
|
13139 |
|
|
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
13140 |
|
|
OTOOL=$lt_OTOOL
|
13141 |
|
|
|
13142 |
|
|
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
13143 |
|
|
OTOOL64=$lt_OTOOL64
|
13144 |
|
|
|
13145 |
|
|
# Old archive suffix (normally "a").
|
13146 |
|
|
libext=$libext
|
13147 |
|
|
|
13148 |
|
|
# Shared library suffix (normally ".so").
|
13149 |
|
|
shrext_cmds=$lt_shrext_cmds
|
13150 |
|
|
|
13151 |
|
|
# The commands to extract the exported symbol list from a shared archive.
|
13152 |
|
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
13153 |
|
|
|
13154 |
|
|
# Variables whose values should be saved in libtool wrapper scripts and
|
13155 |
|
|
# restored at link time.
|
13156 |
|
|
variables_saved_for_relink=$lt_variables_saved_for_relink
|
13157 |
|
|
|
13158 |
|
|
# Do we need the "lib" prefix for modules?
|
13159 |
|
|
need_lib_prefix=$need_lib_prefix
|
13160 |
|
|
|
13161 |
|
|
# Do we need a version for libraries?
|
13162 |
|
|
need_version=$need_version
|
13163 |
|
|
|
13164 |
|
|
# Library versioning type.
|
13165 |
|
|
version_type=$version_type
|
13166 |
|
|
|
13167 |
|
|
# Shared library runtime path variable.
|
13168 |
|
|
runpath_var=$runpath_var
|
13169 |
|
|
|
13170 |
|
|
# Shared library path variable.
|
13171 |
|
|
shlibpath_var=$shlibpath_var
|
13172 |
|
|
|
13173 |
|
|
# Is shlibpath searched before the hard-coded library search path?
|
13174 |
|
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
13175 |
|
|
|
13176 |
|
|
# Format of library name prefix.
|
13177 |
|
|
libname_spec=$lt_libname_spec
|
13178 |
|
|
|
13179 |
|
|
# List of archive names. First name is the real one, the rest are links.
|
13180 |
|
|
# The last name is the one that the linker finds with -lNAME
|
13181 |
|
|
library_names_spec=$lt_library_names_spec
|
13182 |
|
|
|
13183 |
|
|
# The coded name of the library, if different from the real name.
|
13184 |
|
|
soname_spec=$lt_soname_spec
|
13185 |
|
|
|
13186 |
|
|
# Command to use after installation of a shared archive.
|
13187 |
|
|
postinstall_cmds=$lt_postinstall_cmds
|
13188 |
|
|
|
13189 |
|
|
# Command to use after uninstallation of a shared archive.
|
13190 |
|
|
postuninstall_cmds=$lt_postuninstall_cmds
|
13191 |
|
|
|
13192 |
|
|
# Commands used to finish a libtool library installation in a directory.
|
13193 |
|
|
finish_cmds=$lt_finish_cmds
|
13194 |
|
|
|
13195 |
|
|
# As "finish_cmds", except a single script fragment to be evaled but
|
13196 |
|
|
# not shown.
|
13197 |
|
|
finish_eval=$lt_finish_eval
|
13198 |
|
|
|
13199 |
|
|
# Whether we should hardcode library paths into libraries.
|
13200 |
|
|
hardcode_into_libs=$hardcode_into_libs
|
13201 |
|
|
|
13202 |
|
|
# Compile-time system search path for libraries.
|
13203 |
|
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
13204 |
|
|
|
13205 |
|
|
# Run-time system search path for libraries.
|
13206 |
|
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
13207 |
|
|
|
13208 |
|
|
# Whether dlopen is supported.
|
13209 |
|
|
dlopen_support=$enable_dlopen
|
13210 |
|
|
|
13211 |
|
|
# Whether dlopen of programs is supported.
|
13212 |
|
|
dlopen_self=$enable_dlopen_self
|
13213 |
|
|
|
13214 |
|
|
# Whether dlopen of statically linked programs is supported.
|
13215 |
|
|
dlopen_self_static=$enable_dlopen_self_static
|
13216 |
|
|
|
13217 |
|
|
# Commands to strip libraries.
|
13218 |
|
|
old_striplib=$lt_old_striplib
|
13219 |
|
|
striplib=$lt_striplib
|
13220 |
|
|
|
13221 |
|
|
|
13222 |
|
|
# The linker used to build libraries.
|
13223 |
|
|
LD=$lt_LD
|
13224 |
|
|
|
13225 |
|
|
# Commands used to build an old-style archive.
|
13226 |
|
|
old_archive_cmds=$lt_old_archive_cmds
|
13227 |
|
|
|
13228 |
|
|
# A language specific compiler.
|
13229 |
|
|
CC=$lt_compiler
|
13230 |
|
|
|
13231 |
|
|
# Is the compiler the GNU compiler?
|
13232 |
|
|
with_gcc=$GCC
|
13233 |
|
|
|
13234 |
|
|
# Compiler flag to turn off builtin functions.
|
13235 |
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
13236 |
|
|
|
13237 |
|
|
# How to pass a linker flag through the compiler.
|
13238 |
|
|
wl=$lt_lt_prog_compiler_wl
|
13239 |
|
|
|
13240 |
|
|
# Additional compiler flags for building library objects.
|
13241 |
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
13242 |
|
|
|
13243 |
|
|
# Compiler flag to prevent dynamic linking.
|
13244 |
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
13245 |
|
|
|
13246 |
|
|
# Does compiler simultaneously support -c and -o options?
|
13247 |
|
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
13248 |
|
|
|
13249 |
|
|
# Whether or not to add -lc for building shared libraries.
|
13250 |
|
|
build_libtool_need_lc=$archive_cmds_need_lc
|
13251 |
|
|
|
13252 |
|
|
# Whether or not to disallow shared libs when runtime libs are static.
|
13253 |
|
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
13254 |
|
|
|
13255 |
|
|
# Compiler flag to allow reflexive dlopens.
|
13256 |
|
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
13257 |
|
|
|
13258 |
|
|
# Compiler flag to generate shared objects directly from archives.
|
13259 |
|
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
13260 |
|
|
|
13261 |
|
|
# Whether the compiler copes with passing no objects directly.
|
13262 |
|
|
compiler_needs_object=$lt_compiler_needs_object
|
13263 |
|
|
|
13264 |
|
|
# Create an old-style archive from a shared archive.
|
13265 |
|
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
13266 |
|
|
|
13267 |
|
|
# Create a temporary old-style archive to link instead of a shared archive.
|
13268 |
|
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
13269 |
|
|
|
13270 |
|
|
# Commands used to build a shared archive.
|
13271 |
|
|
archive_cmds=$lt_archive_cmds
|
13272 |
|
|
archive_expsym_cmds=$lt_archive_expsym_cmds
|
13273 |
|
|
|
13274 |
|
|
# Commands used to build a loadable module if different from building
|
13275 |
|
|
# a shared archive.
|
13276 |
|
|
module_cmds=$lt_module_cmds
|
13277 |
|
|
module_expsym_cmds=$lt_module_expsym_cmds
|
13278 |
|
|
|
13279 |
|
|
# Whether we are building with GNU ld or not.
|
13280 |
|
|
with_gnu_ld=$lt_with_gnu_ld
|
13281 |
|
|
|
13282 |
|
|
# Flag that allows shared libraries with undefined symbols to be built.
|
13283 |
|
|
allow_undefined_flag=$lt_allow_undefined_flag
|
13284 |
|
|
|
13285 |
|
|
# Flag that enforces no undefined symbols.
|
13286 |
|
|
no_undefined_flag=$lt_no_undefined_flag
|
13287 |
|
|
|
13288 |
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
13289 |
|
|
# This must work even if \$libdir does not exist
|
13290 |
|
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
13291 |
|
|
|
13292 |
|
|
# If ld is used when linking, flag to hardcode \$libdir into a binary
|
13293 |
|
|
# during linking. This must work even if \$libdir does not exist.
|
13294 |
|
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
13295 |
|
|
|
13296 |
|
|
# Whether we need a single "-rpath" flag with a separated argument.
|
13297 |
|
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
13298 |
|
|
|
13299 |
|
|
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
13300 |
|
|
# DIR into the resulting binary.
|
13301 |
|
|
hardcode_direct=$hardcode_direct
|
13302 |
|
|
|
13303 |
|
|
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
|
13304 |
|
|
# DIR into the resulting binary and the resulting library dependency is
|
13305 |
|
|
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
|
13306 |
|
|
# library is relocated.
|
13307 |
|
|
hardcode_direct_absolute=$hardcode_direct_absolute
|
13308 |
|
|
|
13309 |
|
|
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
13310 |
|
|
# into the resulting binary.
|
13311 |
|
|
hardcode_minus_L=$hardcode_minus_L
|
13312 |
|
|
|
13313 |
|
|
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
13314 |
|
|
# into the resulting binary.
|
13315 |
|
|
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
13316 |
|
|
|
13317 |
|
|
# Set to "yes" if building a shared library automatically hardcodes DIR
|
13318 |
|
|
# into the library and all subsequent libraries and executables linked
|
13319 |
|
|
# against it.
|
13320 |
|
|
hardcode_automatic=$hardcode_automatic
|
13321 |
|
|
|
13322 |
|
|
# Set to yes if linker adds runtime paths of dependent libraries
|
13323 |
|
|
# to runtime path list.
|
13324 |
|
|
inherit_rpath=$inherit_rpath
|
13325 |
|
|
|
13326 |
|
|
# Whether libtool must link a program against all its dependency libraries.
|
13327 |
|
|
link_all_deplibs=$link_all_deplibs
|
13328 |
|
|
|
13329 |
|
|
# Fix the shell variable \$srcfile for the compiler.
|
13330 |
|
|
fix_srcfile_path=$lt_fix_srcfile_path
|
13331 |
|
|
|
13332 |
|
|
# Set to "yes" if exported symbols are required.
|
13333 |
|
|
always_export_symbols=$always_export_symbols
|
13334 |
|
|
|
13335 |
|
|
# The commands to list exported symbols.
|
13336 |
|
|
export_symbols_cmds=$lt_export_symbols_cmds
|
13337 |
|
|
|
13338 |
|
|
# Symbols that should not be listed in the preloaded symbols.
|
13339 |
|
|
exclude_expsyms=$lt_exclude_expsyms
|
13340 |
|
|
|
13341 |
|
|
# Symbols that must always be exported.
|
13342 |
|
|
include_expsyms=$lt_include_expsyms
|
13343 |
|
|
|
13344 |
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
13345 |
|
|
prelink_cmds=$lt_prelink_cmds
|
13346 |
|
|
|
13347 |
|
|
# Specify filename containing input files.
|
13348 |
|
|
file_list_spec=$lt_file_list_spec
|
13349 |
|
|
|
13350 |
|
|
# How to hardcode a shared library path into an executable.
|
13351 |
|
|
hardcode_action=$hardcode_action
|
13352 |
|
|
|
13353 |
|
|
# ### END LIBTOOL CONFIG
|
13354 |
|
|
|
13355 |
|
|
_LT_EOF
|
13356 |
|
|
|
13357 |
|
|
case $host_os in
|
13358 |
|
|
aix3*)
|
13359 |
|
|
cat <<\_LT_EOF >> "$cfgfile"
|
13360 |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some
|
13361 |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
13362 |
|
|
# vanish in a puff of smoke.
|
13363 |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then
|
13364 |
|
|
COLLECT_NAMES=
|
13365 |
|
|
export COLLECT_NAMES
|
13366 |
|
|
fi
|
13367 |
|
|
_LT_EOF
|
13368 |
|
|
;;
|
13369 |
|
|
esac
|
13370 |
|
|
|
13371 |
|
|
|
13372 |
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
13373 |
|
|
|
13374 |
|
|
|
13375 |
|
|
# We use sed instead of cat because bash on DJGPP gets confused if
|
13376 |
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
13377 |
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
13378 |
|
|
# is reportedly fixed, but why not run on old versions too?
|
13379 |
|
|
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
13380 |
|
|
|| (rm -f "$cfgfile"; exit 1)
|
13381 |
|
|
|
13382 |
|
|
case $xsi_shell in
|
13383 |
|
|
yes)
|
13384 |
|
|
cat << \_LT_EOF >> "$cfgfile"
|
13385 |
|
|
|
13386 |
|
|
# func_dirname file append nondir_replacement
|
13387 |
|
|
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
13388 |
|
|
# otherwise set result to NONDIR_REPLACEMENT.
|
13389 |
|
|
func_dirname ()
|
13390 |
|
|
{
|
13391 |
|
|
case ${1} in
|
13392 |
|
|
*/*) func_dirname_result="${1%/*}${2}" ;;
|
13393 |
|
|
* ) func_dirname_result="${3}" ;;
|
13394 |
|
|
esac
|
13395 |
|
|
}
|
13396 |
|
|
|
13397 |
|
|
# func_basename file
|
13398 |
|
|
func_basename ()
|
13399 |
|
|
{
|
13400 |
|
|
func_basename_result="${1##*/}"
|
13401 |
|
|
}
|
13402 |
|
|
|
13403 |
|
|
# func_dirname_and_basename file append nondir_replacement
|
13404 |
|
|
# perform func_basename and func_dirname in a single function
|
13405 |
|
|
# call:
|
13406 |
|
|
# dirname: Compute the dirname of FILE. If nonempty,
|
13407 |
|
|
# add APPEND to the result, otherwise set result
|
13408 |
|
|
# to NONDIR_REPLACEMENT.
|
13409 |
|
|
# value returned in "$func_dirname_result"
|
13410 |
|
|
# basename: Compute filename of FILE.
|
13411 |
|
|
# value retuned in "$func_basename_result"
|
13412 |
|
|
# Implementation must be kept synchronized with func_dirname
|
13413 |
|
|
# and func_basename. For efficiency, we do not delegate to
|
13414 |
|
|
# those functions but instead duplicate the functionality here.
|
13415 |
|
|
func_dirname_and_basename ()
|
13416 |
|
|
{
|
13417 |
|
|
case ${1} in
|
13418 |
|
|
*/*) func_dirname_result="${1%/*}${2}" ;;
|
13419 |
|
|
* ) func_dirname_result="${3}" ;;
|
13420 |
|
|
esac
|
13421 |
|
|
func_basename_result="${1##*/}"
|
13422 |
|
|
}
|
13423 |
|
|
|
13424 |
|
|
# func_stripname prefix suffix name
|
13425 |
|
|
# strip PREFIX and SUFFIX off of NAME.
|
13426 |
|
|
# PREFIX and SUFFIX must not contain globbing or regex special
|
13427 |
|
|
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
13428 |
|
|
# dot (in which case that matches only a dot).
|
13429 |
|
|
func_stripname ()
|
13430 |
|
|
{
|
13431 |
|
|
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
13432 |
|
|
# positional parameters, so assign one to ordinary parameter first.
|
13433 |
|
|
func_stripname_result=${3}
|
13434 |
|
|
func_stripname_result=${func_stripname_result#"${1}"}
|
13435 |
|
|
func_stripname_result=${func_stripname_result%"${2}"}
|
13436 |
|
|
}
|
13437 |
|
|
|
13438 |
|
|
# func_opt_split
|
13439 |
|
|
func_opt_split ()
|
13440 |
|
|
{
|
13441 |
|
|
func_opt_split_opt=${1%%=*}
|
13442 |
|
|
func_opt_split_arg=${1#*=}
|
13443 |
|
|
}
|
13444 |
|
|
|
13445 |
|
|
# func_lo2o object
|
13446 |
|
|
func_lo2o ()
|
13447 |
|
|
{
|
13448 |
|
|
case ${1} in
|
13449 |
|
|
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
13450 |
|
|
*) func_lo2o_result=${1} ;;
|
13451 |
|
|
esac
|
13452 |
|
|
}
|
13453 |
|
|
|
13454 |
|
|
# func_xform libobj-or-source
|
13455 |
|
|
func_xform ()
|
13456 |
|
|
{
|
13457 |
|
|
func_xform_result=${1%.*}.lo
|
13458 |
|
|
}
|
13459 |
|
|
|
13460 |
|
|
# func_arith arithmetic-term...
|
13461 |
|
|
func_arith ()
|
13462 |
|
|
{
|
13463 |
|
|
func_arith_result=$(( $* ))
|
13464 |
|
|
}
|
13465 |
|
|
|
13466 |
|
|
# func_len string
|
13467 |
|
|
# STRING may not start with a hyphen.
|
13468 |
|
|
func_len ()
|
13469 |
|
|
{
|
13470 |
|
|
func_len_result=${#1}
|
13471 |
|
|
}
|
13472 |
|
|
|
13473 |
|
|
_LT_EOF
|
13474 |
|
|
;;
|
13475 |
|
|
*) # Bourne compatible functions.
|
13476 |
|
|
cat << \_LT_EOF >> "$cfgfile"
|
13477 |
|
|
|
13478 |
|
|
# func_dirname file append nondir_replacement
|
13479 |
|
|
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
13480 |
|
|
# otherwise set result to NONDIR_REPLACEMENT.
|
13481 |
|
|
func_dirname ()
|
13482 |
|
|
{
|
13483 |
|
|
# Extract subdirectory from the argument.
|
13484 |
|
|
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
|
13485 |
|
|
if test "X$func_dirname_result" = "X${1}"; then
|
13486 |
|
|
func_dirname_result="${3}"
|
13487 |
|
|
else
|
13488 |
|
|
func_dirname_result="$func_dirname_result${2}"
|
13489 |
|
|
fi
|
13490 |
|
|
}
|
13491 |
|
|
|
13492 |
|
|
# func_basename file
|
13493 |
|
|
func_basename ()
|
13494 |
|
|
{
|
13495 |
|
|
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
|
13496 |
|
|
}
|
13497 |
|
|
|
13498 |
|
|
|
13499 |
|
|
# func_stripname prefix suffix name
|
13500 |
|
|
# strip PREFIX and SUFFIX off of NAME.
|
13501 |
|
|
# PREFIX and SUFFIX must not contain globbing or regex special
|
13502 |
|
|
# characters, hashes, percent signs, but SUFFIX may contain a leading
|
13503 |
|
|
# dot (in which case that matches only a dot).
|
13504 |
|
|
# func_strip_suffix prefix name
|
13505 |
|
|
func_stripname ()
|
13506 |
|
|
{
|
13507 |
|
|
case ${2} in
|
13508 |
|
|
.*) func_stripname_result=`$ECHO "X${3}" \
|
13509 |
|
|
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
|
13510 |
|
|
*) func_stripname_result=`$ECHO "X${3}" \
|
13511 |
|
|
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
|
13512 |
|
|
esac
|
13513 |
|
|
}
|
13514 |
|
|
|
13515 |
|
|
# sed scripts:
|
13516 |
|
|
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
13517 |
|
|
my_sed_long_arg='1s/^-[^=]*=//'
|
13518 |
|
|
|
13519 |
|
|
# func_opt_split
|
13520 |
|
|
func_opt_split ()
|
13521 |
|
|
{
|
13522 |
|
|
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
|
13523 |
|
|
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
|
13524 |
|
|
}
|
13525 |
|
|
|
13526 |
|
|
# func_lo2o object
|
13527 |
|
|
func_lo2o ()
|
13528 |
|
|
{
|
13529 |
|
|
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
|
13530 |
|
|
}
|
13531 |
|
|
|
13532 |
|
|
# func_xform libobj-or-source
|
13533 |
|
|
func_xform ()
|
13534 |
|
|
{
|
13535 |
|
|
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
|
13536 |
|
|
}
|
13537 |
|
|
|
13538 |
|
|
# func_arith arithmetic-term...
|
13539 |
|
|
func_arith ()
|
13540 |
|
|
{
|
13541 |
|
|
func_arith_result=`expr "$@"`
|
13542 |
|
|
}
|
13543 |
|
|
|
13544 |
|
|
# func_len string
|
13545 |
|
|
# STRING may not start with a hyphen.
|
13546 |
|
|
func_len ()
|
13547 |
|
|
{
|
13548 |
|
|
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
13549 |
|
|
}
|
13550 |
|
|
|
13551 |
|
|
_LT_EOF
|
13552 |
|
|
esac
|
13553 |
|
|
|
13554 |
|
|
case $lt_shell_append in
|
13555 |
|
|
yes)
|
13556 |
|
|
cat << \_LT_EOF >> "$cfgfile"
|
13557 |
|
|
|
13558 |
|
|
# func_append var value
|
13559 |
|
|
# Append VALUE to the end of shell variable VAR.
|
13560 |
|
|
func_append ()
|
13561 |
|
|
{
|
13562 |
|
|
eval "$1+=\$2"
|
13563 |
|
|
}
|
13564 |
|
|
_LT_EOF
|
13565 |
|
|
;;
|
13566 |
|
|
*)
|
13567 |
|
|
cat << \_LT_EOF >> "$cfgfile"
|
13568 |
|
|
|
13569 |
|
|
# func_append var value
|
13570 |
|
|
# Append VALUE to the end of shell variable VAR.
|
13571 |
|
|
func_append ()
|
13572 |
|
|
{
|
13573 |
|
|
eval "$1=\$$1\$2"
|
13574 |
|
|
}
|
13575 |
|
|
|
13576 |
|
|
_LT_EOF
|
13577 |
|
|
;;
|
13578 |
|
|
esac
|
13579 |
|
|
|
13580 |
|
|
|
13581 |
|
|
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
13582 |
|
|
|| (rm -f "$cfgfile"; exit 1)
|
13583 |
|
|
|
13584 |
|
|
mv -f "$cfgfile" "$ofile" ||
|
13585 |
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
13586 |
|
|
chmod +x "$ofile"
|
13587 |
|
|
|
13588 |
|
|
;;
|
13589 |
|
|
esac
|
13590 |
|
|
done
|
13591 |
|
|
_ACEOF
|
13592 |
|
|
|
13593 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
13594 |
|
|
|
13595 |
|
|
{ (exit 0); exit 0; }
|
13596 |
|
|
_ACEOF
|
13597 |
|
|
chmod +x $CONFIG_STATUS
|
13598 |
|
|
ac_clean_files=$ac_clean_files_save
|
13599 |
|
|
|
13600 |
|
|
|
13601 |
|
|
# configure is writing to config.log, and then calls config.status.
|
13602 |
|
|
# config.status does its own redirection, appending to config.log.
|
13603 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
13604 |
|
|
# by configure, so config.status won't be able to write to it; its
|
13605 |
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
13606 |
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
13607 |
|
|
# appended to by config.status. When coming back to configure, we
|
13608 |
|
|
# need to make the FD available again.
|
13609 |
|
|
if test "$no_create" != yes; then
|
13610 |
|
|
ac_cs_success=:
|
13611 |
|
|
ac_config_status_args=
|
13612 |
|
|
test "$silent" = yes &&
|
13613 |
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
13614 |
|
|
exec 5>/dev/null
|
13615 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
13616 |
|
|
exec 5>>config.log
|
13617 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
13618 |
|
|
# would make configure fail if this is the last instruction.
|
13619 |
|
|
$ac_cs_success || { (exit 1); exit 1; }
|
13620 |
|
|
fi
|
13621 |
|
|
|
13622 |
|
|
#
|
13623 |
|
|
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
|
13624 |
|
|
#
|
13625 |
|
|
if test "$no_recursion" != yes; then
|
13626 |
|
|
|
13627 |
|
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
13628 |
|
|
ac_sub_configure_args=
|
13629 |
|
|
ac_prev=
|
13630 |
|
|
eval "set x $ac_configure_args"
|
13631 |
|
|
shift
|
13632 |
|
|
for ac_arg
|
13633 |
|
|
do
|
13634 |
|
|
if test -n "$ac_prev"; then
|
13635 |
|
|
ac_prev=
|
13636 |
|
|
continue
|
13637 |
|
|
fi
|
13638 |
|
|
case $ac_arg in
|
13639 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
13640 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
13641 |
|
|
ac_prev=cache_file ;;
|
13642 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
13643 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
13644 |
|
|
| --c=*)
|
13645 |
|
|
;;
|
13646 |
|
|
--config-cache | -C)
|
13647 |
|
|
;;
|
13648 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
13649 |
|
|
ac_prev=srcdir ;;
|
13650 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
13651 |
|
|
;;
|
13652 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
13653 |
|
|
ac_prev=prefix ;;
|
13654 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
13655 |
|
|
;;
|
13656 |
|
|
*)
|
13657 |
|
|
case $ac_arg in
|
13658 |
|
|
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
13659 |
|
|
esac
|
13660 |
|
|
ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
|
13661 |
|
|
esac
|
13662 |
|
|
done
|
13663 |
|
|
|
13664 |
|
|
# Always prepend --prefix to ensure using the same prefix
|
13665 |
|
|
# in subdir configurations.
|
13666 |
|
|
ac_arg="--prefix=$prefix"
|
13667 |
|
|
case $ac_arg in
|
13668 |
|
|
*\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
13669 |
|
|
esac
|
13670 |
|
|
ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
|
13671 |
|
|
|
13672 |
|
|
ac_popdir=`pwd`
|
13673 |
|
|
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
13674 |
|
|
|
13675 |
|
|
# Do not complain, so a configure script can configure whichever
|
13676 |
|
|
# parts of a large source tree are present.
|
13677 |
|
|
test -d "$srcdir/$ac_dir" || continue
|
13678 |
|
|
|
13679 |
|
|
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
13680 |
|
|
echo "$as_me: configuring in $ac_dir" >&6;}
|
13681 |
|
|
{ if $as_mkdir_p; then
|
13682 |
|
|
mkdir -p "$ac_dir"
|
13683 |
|
|
else
|
13684 |
|
|
as_dir="$ac_dir"
|
13685 |
|
|
as_dirs=
|
13686 |
|
|
while test ! -d "$as_dir"; do
|
13687 |
|
|
as_dirs="$as_dir $as_dirs"
|
13688 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
13689 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
13690 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
13691 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
13692 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
13693 |
|
|
. : '\(.\)' 2>/dev/null ||
|
13694 |
|
|
echo X"$as_dir" |
|
13695 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
13696 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
13697 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
13698 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
13699 |
|
|
s/.*/./; q'`
|
13700 |
|
|
done
|
13701 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
13702 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
13703 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
13704 |
|
|
{ (exit 1); exit 1; }; }; }
|
13705 |
|
|
|
13706 |
|
|
ac_builddir=.
|
13707 |
|
|
|
13708 |
|
|
if test "$ac_dir" != .; then
|
13709 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
13710 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
13711 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
13712 |
|
|
else
|
13713 |
|
|
ac_dir_suffix= ac_top_builddir=
|
13714 |
|
|
fi
|
13715 |
|
|
|
13716 |
|
|
case $srcdir in
|
13717 |
|
|
.) # No --srcdir option. We are building in place.
|
13718 |
|
|
ac_srcdir=.
|
13719 |
|
|
if test -z "$ac_top_builddir"; then
|
13720 |
|
|
ac_top_srcdir=.
|
13721 |
|
|
else
|
13722 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
13723 |
|
|
fi ;;
|
13724 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
13725 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
13726 |
|
|
ac_top_srcdir=$srcdir ;;
|
13727 |
|
|
*) # Relative path.
|
13728 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
13729 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
13730 |
|
|
esac
|
13731 |
|
|
|
13732 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
13733 |
|
|
# the directories may not exist.
|
13734 |
|
|
case `pwd` in
|
13735 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
13736 |
|
|
*)
|
13737 |
|
|
case "$ac_dir" in
|
13738 |
|
|
.) ac_abs_builddir=`pwd`;;
|
13739 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
13740 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
13741 |
|
|
esac;;
|
13742 |
|
|
esac
|
13743 |
|
|
case $ac_abs_builddir in
|
13744 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
13745 |
|
|
*)
|
13746 |
|
|
case ${ac_top_builddir}. in
|
13747 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
13748 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
13749 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
13750 |
|
|
esac;;
|
13751 |
|
|
esac
|
13752 |
|
|
case $ac_abs_builddir in
|
13753 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
13754 |
|
|
*)
|
13755 |
|
|
case $ac_srcdir in
|
13756 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
13757 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
13758 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
13759 |
|
|
esac;;
|
13760 |
|
|
esac
|
13761 |
|
|
case $ac_abs_builddir in
|
13762 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
13763 |
|
|
*)
|
13764 |
|
|
case $ac_top_srcdir in
|
13765 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
13766 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
13767 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
13768 |
|
|
esac;;
|
13769 |
|
|
esac
|
13770 |
|
|
|
13771 |
|
|
|
13772 |
|
|
cd "$ac_dir"
|
13773 |
|
|
|
13774 |
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
13775 |
|
|
if test -f "$ac_srcdir/configure.gnu"; then
|
13776 |
|
|
ac_sub_configure=$ac_srcdir/configure.gnu
|
13777 |
|
|
elif test -f "$ac_srcdir/configure"; then
|
13778 |
|
|
ac_sub_configure=$ac_srcdir/configure
|
13779 |
|
|
elif test -f "$ac_srcdir/configure.in"; then
|
13780 |
|
|
# This should be Cygnus configure.
|
13781 |
|
|
ac_sub_configure=$ac_aux_dir/configure
|
13782 |
|
|
else
|
13783 |
|
|
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
13784 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
13785 |
|
|
ac_sub_configure=
|
13786 |
|
|
fi
|
13787 |
|
|
|
13788 |
|
|
# The recursion is here.
|
13789 |
|
|
if test -n "$ac_sub_configure"; then
|
13790 |
|
|
# Make the cache file name correct relative to the subdirectory.
|
13791 |
|
|
case $cache_file in
|
13792 |
|
|
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
13793 |
|
|
*) # Relative path.
|
13794 |
|
|
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
13795 |
|
|
esac
|
13796 |
|
|
|
13797 |
|
|
{ echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
13798 |
|
|
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
13799 |
|
|
# The eval makes quoting arguments work.
|
13800 |
|
|
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
13801 |
|
|
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
13802 |
|
|
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
13803 |
|
|
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
13804 |
|
|
{ (exit 1); exit 1; }; }
|
13805 |
|
|
fi
|
13806 |
|
|
|
13807 |
|
|
cd "$ac_popdir"
|
13808 |
|
|
done
|
13809 |
|
|
fi
|
13810 |
|
|
|