411 |
kaklik |
1 |
@%:@! /bin/sh
|
|
|
2 |
@%:@ Guess values for system-dependent variables and create Makefiles.
|
|
|
3 |
@%:@ Generated by GNU Autoconf 2.61.
|
|
|
4 |
@%:@
|
|
|
5 |
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
|
6 |
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
|
7 |
@%:@ This configure script is free software; the Free Software Foundation
|
|
|
8 |
@%:@ gives unlimited permission to copy, distribute and modify it.
|
|
|
9 |
## --------------------- ##
|
|
|
10 |
## M4sh Initialization. ##
|
|
|
11 |
## --------------------- ##
|
|
|
12 |
|
|
|
13 |
# Be more Bourne compatible
|
|
|
14 |
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
15 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
|
16 |
emulate sh
|
|
|
17 |
NULLCMD=:
|
|
|
18 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
|
19 |
# is contrary to our usage. Disable this feature.
|
|
|
20 |
alias -g '${1+"$@"}'='"$@"'
|
|
|
21 |
setopt NO_GLOB_SUBST
|
|
|
22 |
else
|
|
|
23 |
case `(set -o) 2>/dev/null` in
|
|
|
24 |
*posix*) set -o posix ;;
|
|
|
25 |
esac
|
|
|
26 |
|
|
|
27 |
fi
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
# PATH needs CR
|
|
|
33 |
# Avoid depending upon Character Ranges.
|
|
|
34 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
|
35 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
|
36 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
|
37 |
as_cr_digits='0123456789'
|
|
|
38 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
39 |
|
|
|
40 |
# The user is always right.
|
|
|
41 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
|
42 |
echo "#! /bin/sh" >conf$$.sh
|
|
|
43 |
echo "exit 0" >>conf$$.sh
|
|
|
44 |
chmod +x conf$$.sh
|
|
|
45 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
|
46 |
PATH_SEPARATOR=';'
|
|
|
47 |
else
|
|
|
48 |
PATH_SEPARATOR=:
|
|
|
49 |
fi
|
|
|
50 |
rm -f conf$$.sh
|
|
|
51 |
fi
|
|
|
52 |
|
|
|
53 |
# Support unset when possible.
|
|
|
54 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
|
55 |
as_unset=unset
|
|
|
56 |
else
|
|
|
57 |
as_unset=false
|
|
|
58 |
fi
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
# IFS
|
|
|
62 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
|
63 |
# there to prevent editors from complaining about space-tab.
|
|
|
64 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
|
65 |
# splitting by setting IFS to empty value.)
|
|
|
66 |
as_nl='
|
|
|
67 |
'
|
|
|
68 |
IFS=" "" $as_nl"
|
|
|
69 |
|
|
|
70 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
|
71 |
case $0 in
|
|
|
72 |
*[\\/]* ) as_myself=$0 ;;
|
|
|
73 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
74 |
for as_dir in $PATH
|
|
|
75 |
do
|
|
|
76 |
IFS=$as_save_IFS
|
|
|
77 |
test -z "$as_dir" && as_dir=.
|
|
|
78 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
|
79 |
done
|
|
|
80 |
IFS=$as_save_IFS
|
|
|
81 |
|
|
|
82 |
;;
|
|
|
83 |
esac
|
|
|
84 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
|
85 |
# in which case we are not to be found in the path.
|
|
|
86 |
if test "x$as_myself" = x; then
|
|
|
87 |
as_myself=$0
|
|
|
88 |
fi
|
|
|
89 |
if test ! -f "$as_myself"; then
|
|
|
90 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
|
91 |
{ (exit 1); exit 1; }
|
|
|
92 |
fi
|
|
|
93 |
|
|
|
94 |
# Work around bugs in pre-3.0 UWIN ksh.
|
|
|
95 |
for as_var in ENV MAIL MAILPATH
|
|
|
96 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
|
97 |
done
|
|
|
98 |
PS1='$ '
|
|
|
99 |
PS2='> '
|
|
|
100 |
PS4='+ '
|
|
|
101 |
|
|
|
102 |
# NLS nuisances.
|
|
|
103 |
for as_var in \
|
|
|
104 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
|
105 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
|
106 |
LC_TELEPHONE LC_TIME
|
|
|
107 |
do
|
|
|
108 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
|
109 |
eval $as_var=C; export $as_var
|
|
|
110 |
else
|
|
|
111 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
|
112 |
fi
|
|
|
113 |
done
|
|
|
114 |
|
|
|
115 |
# Required to use basename.
|
|
|
116 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
|
117 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
|
118 |
as_expr=expr
|
|
|
119 |
else
|
|
|
120 |
as_expr=false
|
|
|
121 |
fi
|
|
|
122 |
|
|
|
123 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
|
124 |
as_basename=basename
|
|
|
125 |
else
|
|
|
126 |
as_basename=false
|
|
|
127 |
fi
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
# Name of the executable.
|
|
|
131 |
as_me=`$as_basename -- "$0" ||
|
|
|
132 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
|
133 |
X"$0" : 'X\(//\)$' \| \
|
|
|
134 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
135 |
echo X/"$0" |
|
|
|
136 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
|
137 |
s//\1/
|
|
|
138 |
q
|
|
|
139 |
}
|
|
|
140 |
/^X\/\(\/\/\)$/{
|
|
|
141 |
s//\1/
|
|
|
142 |
q
|
|
|
143 |
}
|
|
|
144 |
/^X\/\(\/\).*/{
|
|
|
145 |
s//\1/
|
|
|
146 |
q
|
|
|
147 |
}
|
|
|
148 |
s/.*/./; q'`
|
|
|
149 |
|
|
|
150 |
# CDPATH.
|
|
|
151 |
$as_unset CDPATH
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
if test "x$CONFIG_SHELL" = x; then
|
|
|
155 |
if (eval ":") 2>/dev/null; then
|
|
|
156 |
as_have_required=yes
|
|
|
157 |
else
|
|
|
158 |
as_have_required=no
|
|
|
159 |
fi
|
|
|
160 |
|
|
|
161 |
if test $as_have_required = yes && (eval ":
|
|
|
162 |
(as_func_return () {
|
|
|
163 |
(exit \$1)
|
|
|
164 |
}
|
|
|
165 |
as_func_success () {
|
|
|
166 |
as_func_return 0
|
|
|
167 |
}
|
|
|
168 |
as_func_failure () {
|
|
|
169 |
as_func_return 1
|
|
|
170 |
}
|
|
|
171 |
as_func_ret_success () {
|
|
|
172 |
return 0
|
|
|
173 |
}
|
|
|
174 |
as_func_ret_failure () {
|
|
|
175 |
return 1
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
exitcode=0
|
|
|
179 |
if as_func_success; then
|
|
|
180 |
:
|
|
|
181 |
else
|
|
|
182 |
exitcode=1
|
|
|
183 |
echo as_func_success failed.
|
|
|
184 |
fi
|
|
|
185 |
|
|
|
186 |
if as_func_failure; then
|
|
|
187 |
exitcode=1
|
|
|
188 |
echo as_func_failure succeeded.
|
|
|
189 |
fi
|
|
|
190 |
|
|
|
191 |
if as_func_ret_success; then
|
|
|
192 |
:
|
|
|
193 |
else
|
|
|
194 |
exitcode=1
|
|
|
195 |
echo as_func_ret_success failed.
|
|
|
196 |
fi
|
|
|
197 |
|
|
|
198 |
if as_func_ret_failure; then
|
|
|
199 |
exitcode=1
|
|
|
200 |
echo as_func_ret_failure succeeded.
|
|
|
201 |
fi
|
|
|
202 |
|
|
|
203 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
|
204 |
:
|
|
|
205 |
else
|
|
|
206 |
exitcode=1
|
|
|
207 |
echo positional parameters were not saved.
|
|
|
208 |
fi
|
|
|
209 |
|
|
|
210 |
test \$exitcode = 0) || { (exit 1); exit 1; }
|
|
|
211 |
|
|
|
212 |
(
|
|
|
213 |
as_lineno_1=\$LINENO
|
|
|
214 |
as_lineno_2=\$LINENO
|
|
|
215 |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
|
|
216 |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
|
|
217 |
") 2> /dev/null; then
|
|
|
218 |
:
|
|
|
219 |
else
|
|
|
220 |
as_candidate_shells=
|
|
|
221 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
222 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
|
|
223 |
do
|
|
|
224 |
IFS=$as_save_IFS
|
|
|
225 |
test -z "$as_dir" && as_dir=.
|
|
|
226 |
case $as_dir in
|
|
|
227 |
/*)
|
|
|
228 |
for as_base in sh bash ksh sh5; do
|
|
|
229 |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
|
|
230 |
done;;
|
|
|
231 |
esac
|
|
|
232 |
done
|
|
|
233 |
IFS=$as_save_IFS
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
for as_shell in $as_candidate_shells $SHELL; do
|
|
|
237 |
# Try only shells that exist, to save several forks.
|
|
|
238 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
|
|
239 |
{ ("$as_shell") 2> /dev/null <<\_ASEOF
|
|
|
240 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
|
241 |
emulate sh
|
|
|
242 |
NULLCMD=:
|
|
|
243 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
|
244 |
# is contrary to our usage. Disable this feature.
|
|
|
245 |
alias -g '${1+"$@"}'='"$@"'
|
|
|
246 |
setopt NO_GLOB_SUBST
|
|
|
247 |
else
|
|
|
248 |
case `(set -o) 2>/dev/null` in
|
|
|
249 |
*posix*) set -o posix ;;
|
|
|
250 |
esac
|
|
|
251 |
|
|
|
252 |
fi
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
:
|
|
|
256 |
_ASEOF
|
|
|
257 |
}; then
|
|
|
258 |
CONFIG_SHELL=$as_shell
|
|
|
259 |
as_have_required=yes
|
|
|
260 |
if { "$as_shell" 2> /dev/null <<\_ASEOF
|
|
|
261 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
|
262 |
emulate sh
|
|
|
263 |
NULLCMD=:
|
|
|
264 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
|
265 |
# is contrary to our usage. Disable this feature.
|
|
|
266 |
alias -g '${1+"$@"}'='"$@"'
|
|
|
267 |
setopt NO_GLOB_SUBST
|
|
|
268 |
else
|
|
|
269 |
case `(set -o) 2>/dev/null` in
|
|
|
270 |
*posix*) set -o posix ;;
|
|
|
271 |
esac
|
|
|
272 |
|
|
|
273 |
fi
|
|
|
274 |
|
|
|
275 |
|
|
|
276 |
:
|
|
|
277 |
(as_func_return () {
|
|
|
278 |
(exit $1)
|
|
|
279 |
}
|
|
|
280 |
as_func_success () {
|
|
|
281 |
as_func_return 0
|
|
|
282 |
}
|
|
|
283 |
as_func_failure () {
|
|
|
284 |
as_func_return 1
|
|
|
285 |
}
|
|
|
286 |
as_func_ret_success () {
|
|
|
287 |
return 0
|
|
|
288 |
}
|
|
|
289 |
as_func_ret_failure () {
|
|
|
290 |
return 1
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
exitcode=0
|
|
|
294 |
if as_func_success; then
|
|
|
295 |
:
|
|
|
296 |
else
|
|
|
297 |
exitcode=1
|
|
|
298 |
echo as_func_success failed.
|
|
|
299 |
fi
|
|
|
300 |
|
|
|
301 |
if as_func_failure; then
|
|
|
302 |
exitcode=1
|
|
|
303 |
echo as_func_failure succeeded.
|
|
|
304 |
fi
|
|
|
305 |
|
|
|
306 |
if as_func_ret_success; then
|
|
|
307 |
:
|
|
|
308 |
else
|
|
|
309 |
exitcode=1
|
|
|
310 |
echo as_func_ret_success failed.
|
|
|
311 |
fi
|
|
|
312 |
|
|
|
313 |
if as_func_ret_failure; then
|
|
|
314 |
exitcode=1
|
|
|
315 |
echo as_func_ret_failure succeeded.
|
|
|
316 |
fi
|
|
|
317 |
|
|
|
318 |
if ( set x; as_func_ret_success y && test x = "$1" ); then
|
|
|
319 |
:
|
|
|
320 |
else
|
|
|
321 |
exitcode=1
|
|
|
322 |
echo positional parameters were not saved.
|
|
|
323 |
fi
|
|
|
324 |
|
|
|
325 |
test $exitcode = 0) || { (exit 1); exit 1; }
|
|
|
326 |
|
|
|
327 |
(
|
|
|
328 |
as_lineno_1=$LINENO
|
|
|
329 |
as_lineno_2=$LINENO
|
|
|
330 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
|
331 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
|
|
332 |
|
|
|
333 |
_ASEOF
|
|
|
334 |
}; then
|
|
|
335 |
break
|
|
|
336 |
fi
|
|
|
337 |
|
|
|
338 |
fi
|
|
|
339 |
|
|
|
340 |
done
|
|
|
341 |
|
|
|
342 |
if test "x$CONFIG_SHELL" != x; then
|
|
|
343 |
for as_var in BASH_ENV ENV
|
|
|
344 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
|
345 |
done
|
|
|
346 |
export CONFIG_SHELL
|
|
|
347 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
|
|
348 |
fi
|
|
|
349 |
|
|
|
350 |
|
|
|
351 |
if test $as_have_required = no; then
|
|
|
352 |
echo This script requires a shell more modern than all the
|
|
|
353 |
echo shells that I found on your system. Please install a
|
|
|
354 |
echo modern shell, or manually run the script under such a
|
|
|
355 |
echo shell if you do have one.
|
|
|
356 |
{ (exit 1); exit 1; }
|
|
|
357 |
fi
|
|
|
358 |
|
|
|
359 |
|
|
|
360 |
fi
|
|
|
361 |
|
|
|
362 |
fi
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
(eval "as_func_return () {
|
|
|
367 |
(exit \$1)
|
|
|
368 |
}
|
|
|
369 |
as_func_success () {
|
|
|
370 |
as_func_return 0
|
|
|
371 |
}
|
|
|
372 |
as_func_failure () {
|
|
|
373 |
as_func_return 1
|
|
|
374 |
}
|
|
|
375 |
as_func_ret_success () {
|
|
|
376 |
return 0
|
|
|
377 |
}
|
|
|
378 |
as_func_ret_failure () {
|
|
|
379 |
return 1
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
exitcode=0
|
|
|
383 |
if as_func_success; then
|
|
|
384 |
:
|
|
|
385 |
else
|
|
|
386 |
exitcode=1
|
|
|
387 |
echo as_func_success failed.
|
|
|
388 |
fi
|
|
|
389 |
|
|
|
390 |
if as_func_failure; then
|
|
|
391 |
exitcode=1
|
|
|
392 |
echo as_func_failure succeeded.
|
|
|
393 |
fi
|
|
|
394 |
|
|
|
395 |
if as_func_ret_success; then
|
|
|
396 |
:
|
|
|
397 |
else
|
|
|
398 |
exitcode=1
|
|
|
399 |
echo as_func_ret_success failed.
|
|
|
400 |
fi
|
|
|
401 |
|
|
|
402 |
if as_func_ret_failure; then
|
|
|
403 |
exitcode=1
|
|
|
404 |
echo as_func_ret_failure succeeded.
|
|
|
405 |
fi
|
|
|
406 |
|
|
|
407 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
|
|
408 |
:
|
|
|
409 |
else
|
|
|
410 |
exitcode=1
|
|
|
411 |
echo positional parameters were not saved.
|
|
|
412 |
fi
|
|
|
413 |
|
|
|
414 |
test \$exitcode = 0") || {
|
|
|
415 |
echo No shell found that supports shell functions.
|
|
|
416 |
echo Please tell autoconf@gnu.org about your system,
|
|
|
417 |
echo including any error possibly output before this
|
|
|
418 |
echo message
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
|
|
|
422 |
|
|
|
423 |
as_lineno_1=$LINENO
|
|
|
424 |
as_lineno_2=$LINENO
|
|
|
425 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
|
426 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
|
427 |
|
|
|
428 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
|
429 |
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
|
430 |
# line-number line after each line using $LINENO; the second 'sed'
|
|
|
431 |
# does the real work. The second script uses 'N' to pair each
|
|
|
432 |
# line-number line with the line containing $LINENO, and appends
|
|
|
433 |
# trailing '-' during substitution so that $LINENO is not a special
|
|
|
434 |
# case at line end.
|
|
|
435 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
|
436 |
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
|
437 |
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
|
438 |
sed -n '
|
|
|
439 |
p
|
|
|
440 |
/[$]LINENO/=
|
|
|
441 |
' <$as_myself |
|
|
|
442 |
sed '
|
|
|
443 |
s/[$]LINENO.*/&-/
|
|
|
444 |
t lineno
|
|
|
445 |
b
|
|
|
446 |
:lineno
|
|
|
447 |
N
|
|
|
448 |
:loop
|
|
|
449 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
|
450 |
t loop
|
|
|
451 |
s/-\n.*//
|
|
|
452 |
' >$as_me.lineno &&
|
|
|
453 |
chmod +x "$as_me.lineno" ||
|
|
|
454 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
|
455 |
{ (exit 1); exit 1; }; }
|
|
|
456 |
|
|
|
457 |
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
|
458 |
# (the dirname of $[0] is not the place where we might find the
|
|
|
459 |
# original and so on. Autoconf is especially sensitive to this).
|
|
|
460 |
. "./$as_me.lineno"
|
|
|
461 |
# Exit status is that of the last command.
|
|
|
462 |
exit
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
|
|
|
466 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
|
467 |
as_dirname=dirname
|
|
|
468 |
else
|
|
|
469 |
as_dirname=false
|
|
|
470 |
fi
|
|
|
471 |
|
|
|
472 |
ECHO_C= ECHO_N= ECHO_T=
|
|
|
473 |
case `echo -n x` in
|
|
|
474 |
-n*)
|
|
|
475 |
case `echo 'x\c'` in
|
|
|
476 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
|
477 |
*) ECHO_C='\c';;
|
|
|
478 |
esac;;
|
|
|
479 |
*)
|
|
|
480 |
ECHO_N='-n';;
|
|
|
481 |
esac
|
|
|
482 |
|
|
|
483 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
|
484 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
|
485 |
as_expr=expr
|
|
|
486 |
else
|
|
|
487 |
as_expr=false
|
|
|
488 |
fi
|
|
|
489 |
|
|
|
490 |
rm -f conf$$ conf$$.exe conf$$.file
|
|
|
491 |
if test -d conf$$.dir; then
|
|
|
492 |
rm -f conf$$.dir/conf$$.file
|
|
|
493 |
else
|
|
|
494 |
rm -f conf$$.dir
|
|
|
495 |
mkdir conf$$.dir
|
|
|
496 |
fi
|
|
|
497 |
echo >conf$$.file
|
|
|
498 |
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
|
499 |
as_ln_s='ln -s'
|
|
|
500 |
# ... but there are two gotchas:
|
|
|
501 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
|
502 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
|
503 |
# In both cases, we have to default to `cp -p'.
|
|
|
504 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
|
505 |
as_ln_s='cp -p'
|
|
|
506 |
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
|
507 |
as_ln_s=ln
|
|
|
508 |
else
|
|
|
509 |
as_ln_s='cp -p'
|
|
|
510 |
fi
|
|
|
511 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
|
512 |
rmdir conf$$.dir 2>/dev/null
|
|
|
513 |
|
|
|
514 |
if mkdir -p . 2>/dev/null; then
|
|
|
515 |
as_mkdir_p=:
|
|
|
516 |
else
|
|
|
517 |
test -d ./-p && rmdir ./-p
|
|
|
518 |
as_mkdir_p=false
|
|
|
519 |
fi
|
|
|
520 |
|
|
|
521 |
if test -x / >/dev/null 2>&1; then
|
|
|
522 |
as_test_x='test -x'
|
|
|
523 |
else
|
|
|
524 |
if ls -dL / >/dev/null 2>&1; then
|
|
|
525 |
as_ls_L_option=L
|
|
|
526 |
else
|
|
|
527 |
as_ls_L_option=
|
|
|
528 |
fi
|
|
|
529 |
as_test_x='
|
|
|
530 |
eval sh -c '\''
|
|
|
531 |
if test -d "$1"; then
|
|
|
532 |
test -d "$1/.";
|
|
|
533 |
else
|
|
|
534 |
case $1 in
|
|
|
535 |
-*)set "./$1";;
|
|
|
536 |
esac;
|
|
|
537 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
|
|
538 |
???[sx]*):;;*)false;;esac;fi
|
|
|
539 |
'\'' sh
|
|
|
540 |
'
|
|
|
541 |
fi
|
|
|
542 |
as_executable_p=$as_test_x
|
|
|
543 |
|
|
|
544 |
# Sed expression to map a string onto a valid CPP name.
|
|
|
545 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
546 |
|
|
|
547 |
# Sed expression to map a string onto a valid variable name.
|
|
|
548 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
549 |
|
|
|
550 |
|
|
|
551 |
|
|
|
552 |
|
|
|
553 |
# Check that we are running under the correct shell.
|
|
|
554 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
555 |
|
|
|
556 |
case X$ECHO in
|
|
|
557 |
X*--fallback-echo)
|
|
|
558 |
# Remove one level of quotation (which was required for Make).
|
|
|
559 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
|
|
|
560 |
;;
|
|
|
561 |
esac
|
|
|
562 |
|
|
|
563 |
echo=${ECHO-echo}
|
|
|
564 |
if test "X$1" = X--no-reexec; then
|
|
|
565 |
# Discard the --no-reexec flag, and continue.
|
|
|
566 |
shift
|
|
|
567 |
elif test "X$1" = X--fallback-echo; then
|
|
|
568 |
# Avoid inline document here, it may be left over
|
|
|
569 |
:
|
|
|
570 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
|
|
571 |
# Yippee, $echo works!
|
|
|
572 |
:
|
|
|
573 |
else
|
|
|
574 |
# Restart under the correct shell.
|
|
|
575 |
exec $SHELL "$0" --no-reexec ${1+"$@"}
|
|
|
576 |
fi
|
|
|
577 |
|
|
|
578 |
if test "X$1" = X--fallback-echo; then
|
|
|
579 |
# used as fallback echo
|
|
|
580 |
shift
|
|
|
581 |
cat <<EOF
|
|
|
582 |
$*
|
|
|
583 |
EOF
|
|
|
584 |
exit 0
|
|
|
585 |
fi
|
|
|
586 |
|
|
|
587 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
588 |
# if CDPATH is set.
|
|
|
589 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
590 |
|
|
|
591 |
if test -z "$ECHO"; then
|
|
|
592 |
if test "X${echo_test_string+set}" != Xset; then
|
|
|
593 |
# find a string as large as possible, as long as the shell can cope with it
|
|
|
594 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
|
|
|
595 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|
|
596 |
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
|
|
597 |
echo_test_string=`eval $cmd` &&
|
|
|
598 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
|
|
599 |
then
|
|
|
600 |
break
|
|
|
601 |
fi
|
|
|
602 |
done
|
|
|
603 |
fi
|
|
|
604 |
|
|
|
605 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
606 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|
|
607 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
608 |
:
|
|
|
609 |
else
|
|
|
610 |
# The Solaris, AIX, and Digital Unix default echo programs unquote
|
|
|
611 |
# backslashes. This makes it impossible to quote backslashes using
|
|
|
612 |
# echo "$something" | sed 's/\\/\\\\/g'
|
|
|
613 |
#
|
|
|
614 |
# So, first we look for a working echo in the user's PATH.
|
|
|
615 |
|
|
|
616 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
617 |
for dir in $PATH /usr/ucb; do
|
|
|
618 |
IFS="$lt_save_ifs"
|
|
|
619 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
|
|
620 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
621 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
|
|
622 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
623 |
echo="$dir/echo"
|
|
|
624 |
break
|
|
|
625 |
fi
|
|
|
626 |
done
|
|
|
627 |
IFS="$lt_save_ifs"
|
|
|
628 |
|
|
|
629 |
if test "X$echo" = Xecho; then
|
|
|
630 |
# We didn't find a better echo, so look for alternatives.
|
|
|
631 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
632 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
|
|
633 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
634 |
# This shell has a builtin print -r that does the trick.
|
|
|
635 |
echo='print -r'
|
|
|
636 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
|
|
637 |
test "X$CONFIG_SHELL" != X/bin/ksh; then
|
|
|
638 |
# If we have ksh, try running configure again with it.
|
|
|
639 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
640 |
export ORIGINAL_CONFIG_SHELL
|
|
|
641 |
CONFIG_SHELL=/bin/ksh
|
|
|
642 |
export CONFIG_SHELL
|
|
|
643 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
|
|
|
644 |
else
|
|
|
645 |
# Try using printf.
|
|
|
646 |
echo='printf %s\n'
|
|
|
647 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
|
|
648 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
|
|
649 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
650 |
# Cool, printf works
|
|
|
651 |
:
|
|
|
652 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
|
|
653 |
test "X$echo_testing_string" = 'X\t' &&
|
|
|
654 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
|
655 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
656 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
|
|
657 |
export CONFIG_SHELL
|
|
|
658 |
SHELL="$CONFIG_SHELL"
|
|
|
659 |
export SHELL
|
|
|
660 |
echo="$CONFIG_SHELL $0 --fallback-echo"
|
|
|
661 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
|
|
|
662 |
test "X$echo_testing_string" = 'X\t' &&
|
|
|
663 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
|
|
664 |
test "X$echo_testing_string" = "X$echo_test_string"; then
|
|
|
665 |
echo="$CONFIG_SHELL $0 --fallback-echo"
|
|
|
666 |
else
|
|
|
667 |
# maybe with a smaller string...
|
|
|
668 |
prev=:
|
|
|
669 |
|
|
|
670 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
|
|
|
671 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
|
|
672 |
then
|
|
|
673 |
break
|
|
|
674 |
fi
|
|
|
675 |
prev="$cmd"
|
|
|
676 |
done
|
|
|
677 |
|
|
|
678 |
if test "$prev" != 'sed 50q "$0"'; then
|
|
|
679 |
echo_test_string=`eval $prev`
|
|
|
680 |
export echo_test_string
|
|
|
681 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
|
|
|
682 |
else
|
|
|
683 |
# Oops. We lost completely, so just stick with echo.
|
|
|
684 |
echo=echo
|
|
|
685 |
fi
|
|
|
686 |
fi
|
|
|
687 |
fi
|
|
|
688 |
fi
|
|
|
689 |
fi
|
|
|
690 |
fi
|
|
|
691 |
|
|
|
692 |
# Copy echo and quote the copy suitably for passing to libtool from
|
|
|
693 |
# the Makefile, instead of quoting the original, which is used later.
|
|
|
694 |
ECHO=$echo
|
|
|
695 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
|
|
|
696 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
|
|
|
697 |
fi
|
|
|
698 |
|
|
|
699 |
|
|
|
700 |
|
|
|
701 |
|
|
|
702 |
tagnames=${tagnames+${tagnames},}CXX
|
|
|
703 |
|
|
|
704 |
tagnames=${tagnames+${tagnames},}F77
|
|
|
705 |
|
|
|
706 |
exec 7<&0 </dev/null 6>&1
|
|
|
707 |
|
|
|
708 |
# Name of the host.
|
|
|
709 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
|
|
710 |
# so uname gets run too.
|
|
|
711 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
712 |
|
|
|
713 |
#
|
|
|
714 |
# Initializations.
|
|
|
715 |
#
|
|
|
716 |
ac_default_prefix=/usr/local
|
|
|
717 |
ac_clean_files=
|
|
|
718 |
ac_config_libobj_dir=.
|
|
|
719 |
LIB@&t@OBJS=
|
|
|
720 |
cross_compiling=no
|
|
|
721 |
subdirs=
|
|
|
722 |
MFLAGS=
|
|
|
723 |
MAKEFLAGS=
|
|
|
724 |
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
725 |
|
|
|
726 |
# Identity of this package.
|
|
|
727 |
PACKAGE_NAME=
|
|
|
728 |
PACKAGE_TARNAME=
|
|
|
729 |
PACKAGE_VERSION=
|
|
|
730 |
PACKAGE_STRING=
|
|
|
731 |
PACKAGE_BUGREPORT=
|
|
|
732 |
|
|
|
733 |
ac_unique_file="configure.in"
|
|
|
734 |
# Factoring default headers for most tests.
|
|
|
735 |
ac_includes_default="\
|
|
|
736 |
#include <stdio.h>
|
|
|
737 |
#ifdef HAVE_SYS_TYPES_H
|
|
|
738 |
# include <sys/types.h>
|
|
|
739 |
#endif
|
|
|
740 |
#ifdef HAVE_SYS_STAT_H
|
|
|
741 |
# include <sys/stat.h>
|
|
|
742 |
#endif
|
|
|
743 |
#ifdef STDC_HEADERS
|
|
|
744 |
# include <stdlib.h>
|
|
|
745 |
# include <stddef.h>
|
|
|
746 |
#else
|
|
|
747 |
# ifdef HAVE_STDLIB_H
|
|
|
748 |
# include <stdlib.h>
|
|
|
749 |
# endif
|
|
|
750 |
#endif
|
|
|
751 |
#ifdef HAVE_STRING_H
|
|
|
752 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
|
|
753 |
# include <memory.h>
|
|
|
754 |
# endif
|
|
|
755 |
# include <string.h>
|
|
|
756 |
#endif
|
|
|
757 |
#ifdef HAVE_STRINGS_H
|
|
|
758 |
# include <strings.h>
|
|
|
759 |
#endif
|
|
|
760 |
#ifdef HAVE_INTTYPES_H
|
|
|
761 |
# include <inttypes.h>
|
|
|
762 |
#endif
|
|
|
763 |
#ifdef HAVE_STDINT_H
|
|
|
764 |
# include <stdint.h>
|
|
|
765 |
#endif
|
|
|
766 |
#ifdef HAVE_UNISTD_H
|
|
|
767 |
# include <unistd.h>
|
|
|
768 |
#endif"
|
|
|
769 |
|
|
|
770 |
ac_subst_vars='SHELL
|
|
|
771 |
PATH_SEPARATOR
|
|
|
772 |
PACKAGE_NAME
|
|
|
773 |
PACKAGE_TARNAME
|
|
|
774 |
PACKAGE_VERSION
|
|
|
775 |
PACKAGE_STRING
|
|
|
776 |
PACKAGE_BUGREPORT
|
|
|
777 |
exec_prefix
|
|
|
778 |
prefix
|
|
|
779 |
program_transform_name
|
|
|
780 |
bindir
|
|
|
781 |
sbindir
|
|
|
782 |
libexecdir
|
|
|
783 |
datarootdir
|
|
|
784 |
datadir
|
|
|
785 |
sysconfdir
|
|
|
786 |
sharedstatedir
|
|
|
787 |
localstatedir
|
|
|
788 |
includedir
|
|
|
789 |
oldincludedir
|
|
|
790 |
docdir
|
|
|
791 |
infodir
|
|
|
792 |
htmldir
|
|
|
793 |
dvidir
|
|
|
794 |
pdfdir
|
|
|
795 |
psdir
|
|
|
796 |
libdir
|
|
|
797 |
localedir
|
|
|
798 |
mandir
|
|
|
799 |
DEFS
|
|
|
800 |
ECHO_C
|
|
|
801 |
ECHO_N
|
|
|
802 |
ECHO_T
|
|
|
803 |
LIBS
|
|
|
804 |
build_alias
|
|
|
805 |
host_alias
|
|
|
806 |
target_alias
|
|
|
807 |
INSTALL_PROGRAM
|
|
|
808 |
INSTALL_SCRIPT
|
|
|
809 |
INSTALL_DATA
|
|
|
810 |
am__isrc
|
|
|
811 |
CYGPATH_W
|
|
|
812 |
PACKAGE
|
|
|
813 |
VERSION
|
|
|
814 |
ACLOCAL
|
|
|
815 |
AUTOCONF
|
|
|
816 |
AUTOMAKE
|
|
|
817 |
AUTOHEADER
|
|
|
818 |
MAKEINFO
|
|
|
819 |
install_sh
|
|
|
820 |
STRIP
|
|
|
821 |
INSTALL_STRIP_PROGRAM
|
|
|
822 |
mkdir_p
|
|
|
823 |
AWK
|
|
|
824 |
SET_MAKE
|
|
|
825 |
am__leading_dot
|
|
|
826 |
AMTAR
|
|
|
827 |
am__tar
|
|
|
828 |
am__untar
|
|
|
829 |
CC
|
|
|
830 |
CFLAGS
|
|
|
831 |
LDFLAGS
|
|
|
832 |
CPPFLAGS
|
|
|
833 |
ac_ct_CC
|
|
|
834 |
EXEEXT
|
|
|
835 |
OBJEXT
|
|
|
836 |
DEPDIR
|
|
|
837 |
am__include
|
|
|
838 |
am__quote
|
|
|
839 |
AMDEP_TRUE
|
|
|
840 |
AMDEP_FALSE
|
|
|
841 |
AMDEPBACKSLASH
|
|
|
842 |
CCDEPMODE
|
|
|
843 |
am__fastdepCC_TRUE
|
|
|
844 |
am__fastdepCC_FALSE
|
|
|
845 |
build
|
|
|
846 |
build_cpu
|
|
|
847 |
build_vendor
|
|
|
848 |
build_os
|
|
|
849 |
host
|
|
|
850 |
host_cpu
|
|
|
851 |
host_vendor
|
|
|
852 |
host_os
|
|
|
853 |
SED
|
|
|
854 |
GREP
|
|
|
855 |
EGREP
|
|
|
856 |
LN_S
|
|
|
857 |
ECHO
|
|
|
858 |
AR
|
|
|
859 |
RANLIB
|
|
|
860 |
CPP
|
|
|
861 |
CXX
|
|
|
862 |
CXXFLAGS
|
|
|
863 |
ac_ct_CXX
|
|
|
864 |
CXXDEPMODE
|
|
|
865 |
am__fastdepCXX_TRUE
|
|
|
866 |
am__fastdepCXX_FALSE
|
|
|
867 |
CXXCPP
|
|
|
868 |
F77
|
|
|
869 |
FFLAGS
|
|
|
870 |
ac_ct_F77
|
|
|
871 |
LIBTOOL
|
|
|
872 |
LIB@&t@OBJS
|
|
|
873 |
LTLIBOBJS'
|
|
|
874 |
ac_subst_files=''
|
|
|
875 |
ac_precious_vars='build_alias
|
|
|
876 |
host_alias
|
|
|
877 |
target_alias
|
|
|
878 |
CC
|
|
|
879 |
CFLAGS
|
|
|
880 |
LDFLAGS
|
|
|
881 |
LIBS
|
|
|
882 |
CPPFLAGS
|
|
|
883 |
CPP
|
|
|
884 |
CXX
|
|
|
885 |
CXXFLAGS
|
|
|
886 |
CCC
|
|
|
887 |
CXXCPP
|
|
|
888 |
F77
|
|
|
889 |
FFLAGS'
|
|
|
890 |
|
|
|
891 |
|
|
|
892 |
# Initialize some variables set by options.
|
|
|
893 |
ac_init_help=
|
|
|
894 |
ac_init_version=false
|
|
|
895 |
# The variables have the same names as the options, with
|
|
|
896 |
# dashes changed to underlines.
|
|
|
897 |
cache_file=/dev/null
|
|
|
898 |
exec_prefix=NONE
|
|
|
899 |
no_create=
|
|
|
900 |
no_recursion=
|
|
|
901 |
prefix=NONE
|
|
|
902 |
program_prefix=NONE
|
|
|
903 |
program_suffix=NONE
|
|
|
904 |
program_transform_name=s,x,x,
|
|
|
905 |
silent=
|
|
|
906 |
site=
|
|
|
907 |
srcdir=
|
|
|
908 |
verbose=
|
|
|
909 |
x_includes=NONE
|
|
|
910 |
x_libraries=NONE
|
|
|
911 |
|
|
|
912 |
# Installation directory options.
|
|
|
913 |
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
|
|
914 |
# and all the variables that are supposed to be based on exec_prefix
|
|
|
915 |
# by default will actually change.
|
|
|
916 |
# Use braces instead of parens because sh, perl, etc. also accept them.
|
|
|
917 |
# (The list follows the same order as the GNU Coding Standards.)
|
|
|
918 |
bindir='${exec_prefix}/bin'
|
|
|
919 |
sbindir='${exec_prefix}/sbin'
|
|
|
920 |
libexecdir='${exec_prefix}/libexec'
|
|
|
921 |
datarootdir='${prefix}/share'
|
|
|
922 |
datadir='${datarootdir}'
|
|
|
923 |
sysconfdir='${prefix}/etc'
|
|
|
924 |
sharedstatedir='${prefix}/com'
|
|
|
925 |
localstatedir='${prefix}/var'
|
|
|
926 |
includedir='${prefix}/include'
|
|
|
927 |
oldincludedir='/usr/include'
|
|
|
928 |
docdir='${datarootdir}/doc/${PACKAGE}'
|
|
|
929 |
infodir='${datarootdir}/info'
|
|
|
930 |
htmldir='${docdir}'
|
|
|
931 |
dvidir='${docdir}'
|
|
|
932 |
pdfdir='${docdir}'
|
|
|
933 |
psdir='${docdir}'
|
|
|
934 |
libdir='${exec_prefix}/lib'
|
|
|
935 |
localedir='${datarootdir}/locale'
|
|
|
936 |
mandir='${datarootdir}/man'
|
|
|
937 |
|
|
|
938 |
ac_prev=
|
|
|
939 |
ac_dashdash=
|
|
|
940 |
for ac_option
|
|
|
941 |
do
|
|
|
942 |
# If the previous option needs an argument, assign it.
|
|
|
943 |
if test -n "$ac_prev"; then
|
|
|
944 |
eval $ac_prev=\$ac_option
|
|
|
945 |
ac_prev=
|
|
|
946 |
continue
|
|
|
947 |
fi
|
|
|
948 |
|
|
|
949 |
case $ac_option in
|
|
|
950 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
|
|
951 |
*) ac_optarg=yes ;;
|
|
|
952 |
esac
|
|
|
953 |
|
|
|
954 |
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
955 |
|
|
|
956 |
case $ac_dashdash$ac_option in
|
|
|
957 |
--)
|
|
|
958 |
ac_dashdash=yes ;;
|
|
|
959 |
|
|
|
960 |
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
|
961 |
ac_prev=bindir ;;
|
|
|
962 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
|
963 |
bindir=$ac_optarg ;;
|
|
|
964 |
|
|
|
965 |
-build | --build | --buil | --bui | --bu)
|
|
|
966 |
ac_prev=build_alias ;;
|
|
|
967 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
|
968 |
build_alias=$ac_optarg ;;
|
|
|
969 |
|
|
|
970 |
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
|
971 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
|
972 |
ac_prev=cache_file ;;
|
|
|
973 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
|
974 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
|
975 |
cache_file=$ac_optarg ;;
|
|
|
976 |
|
|
|
977 |
--config-cache | -C)
|
|
|
978 |
cache_file=config.cache ;;
|
|
|
979 |
|
|
|
980 |
-datadir | --datadir | --datadi | --datad)
|
|
|
981 |
ac_prev=datadir ;;
|
|
|
982 |
-datadir=* | --datadir=* | --datadi=* | --datad=*)
|
|
|
983 |
datadir=$ac_optarg ;;
|
|
|
984 |
|
|
|
985 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
|
|
986 |
| --dataroo | --dataro | --datar)
|
|
|
987 |
ac_prev=datarootdir ;;
|
|
|
988 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
|
|
989 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
|
|
990 |
datarootdir=$ac_optarg ;;
|
|
|
991 |
|
|
|
992 |
-disable-* | --disable-*)
|
|
|
993 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
|
|
994 |
# Reject names that are not valid shell variable names.
|
|
|
995 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
|
996 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
|
997 |
{ (exit 1); exit 1; }; }
|
|
|
998 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
|
|
999 |
eval enable_$ac_feature=no ;;
|
|
|
1000 |
|
|
|
1001 |
-docdir | --docdir | --docdi | --doc | --do)
|
|
|
1002 |
ac_prev=docdir ;;
|
|
|
1003 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
|
|
1004 |
docdir=$ac_optarg ;;
|
|
|
1005 |
|
|
|
1006 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
|
|
1007 |
ac_prev=dvidir ;;
|
|
|
1008 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
|
|
1009 |
dvidir=$ac_optarg ;;
|
|
|
1010 |
|
|
|
1011 |
-enable-* | --enable-*)
|
|
|
1012 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
|
|
1013 |
# Reject names that are not valid shell variable names.
|
|
|
1014 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
|
1015 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
|
|
1016 |
{ (exit 1); exit 1; }; }
|
|
|
1017 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
|
|
1018 |
eval enable_$ac_feature=\$ac_optarg ;;
|
|
|
1019 |
|
|
|
1020 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
|
1021 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
|
1022 |
| --exec | --exe | --ex)
|
|
|
1023 |
ac_prev=exec_prefix ;;
|
|
|
1024 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
|
1025 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
|
1026 |
| --exec=* | --exe=* | --ex=*)
|
|
|
1027 |
exec_prefix=$ac_optarg ;;
|
|
|
1028 |
|
|
|
1029 |
-gas | --gas | --ga | --g)
|
|
|
1030 |
# Obsolete; use --with-gas.
|
|
|
1031 |
with_gas=yes ;;
|
|
|
1032 |
|
|
|
1033 |
-help | --help | --hel | --he | -h)
|
|
|
1034 |
ac_init_help=long ;;
|
|
|
1035 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
|
|
1036 |
ac_init_help=recursive ;;
|
|
|
1037 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
|
|
1038 |
ac_init_help=short ;;
|
|
|
1039 |
|
|
|
1040 |
-host | --host | --hos | --ho)
|
|
|
1041 |
ac_prev=host_alias ;;
|
|
|
1042 |
-host=* | --host=* | --hos=* | --ho=*)
|
|
|
1043 |
host_alias=$ac_optarg ;;
|
|
|
1044 |
|
|
|
1045 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
|
|
1046 |
ac_prev=htmldir ;;
|
|
|
1047 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
|
|
1048 |
| --ht=*)
|
|
|
1049 |
htmldir=$ac_optarg ;;
|
|
|
1050 |
|
|
|
1051 |
-includedir | --includedir | --includedi | --included | --include \
|
|
|
1052 |
| --includ | --inclu | --incl | --inc)
|
|
|
1053 |
ac_prev=includedir ;;
|
|
|
1054 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
|
1055 |
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
|
1056 |
includedir=$ac_optarg ;;
|
|
|
1057 |
|
|
|
1058 |
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
|
1059 |
ac_prev=infodir ;;
|
|
|
1060 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
|
1061 |
infodir=$ac_optarg ;;
|
|
|
1062 |
|
|
|
1063 |
-libdir | --libdir | --libdi | --libd)
|
|
|
1064 |
ac_prev=libdir ;;
|
|
|
1065 |
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
|
1066 |
libdir=$ac_optarg ;;
|
|
|
1067 |
|
|
|
1068 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
|
1069 |
| --libexe | --libex | --libe)
|
|
|
1070 |
ac_prev=libexecdir ;;
|
|
|
1071 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
|
1072 |
| --libexe=* | --libex=* | --libe=*)
|
|
|
1073 |
libexecdir=$ac_optarg ;;
|
|
|
1074 |
|
|
|
1075 |
-localedir | --localedir | --localedi | --localed | --locale)
|
|
|
1076 |
ac_prev=localedir ;;
|
|
|
1077 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
|
|
1078 |
localedir=$ac_optarg ;;
|
|
|
1079 |
|
|
|
1080 |
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
|
1081 |
| --localstate | --localstat | --localsta | --localst | --locals)
|
|
|
1082 |
ac_prev=localstatedir ;;
|
|
|
1083 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
|
1084 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
|
|
1085 |
localstatedir=$ac_optarg ;;
|
|
|
1086 |
|
|
|
1087 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
|
1088 |
ac_prev=mandir ;;
|
|
|
1089 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
|
1090 |
mandir=$ac_optarg ;;
|
|
|
1091 |
|
|
|
1092 |
-nfp | --nfp | --nf)
|
|
|
1093 |
# Obsolete; use --without-fp.
|
|
|
1094 |
with_fp=no ;;
|
|
|
1095 |
|
|
|
1096 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
1097 |
| --no-cr | --no-c | -n)
|
|
|
1098 |
no_create=yes ;;
|
|
|
1099 |
|
|
|
1100 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
1101 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
|
1102 |
no_recursion=yes ;;
|
|
|
1103 |
|
|
|
1104 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
|
1105 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
|
1106 |
| --oldin | --oldi | --old | --ol | --o)
|
|
|
1107 |
ac_prev=oldincludedir ;;
|
|
|
1108 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
|
1109 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
|
1110 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
|
1111 |
oldincludedir=$ac_optarg ;;
|
|
|
1112 |
|
|
|
1113 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
|
1114 |
ac_prev=prefix ;;
|
|
|
1115 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
|
1116 |
prefix=$ac_optarg ;;
|
|
|
1117 |
|
|
|
1118 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
|
1119 |
| --program-pre | --program-pr | --program-p)
|
|
|
1120 |
ac_prev=program_prefix ;;
|
|
|
1121 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
|
1122 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
|
1123 |
program_prefix=$ac_optarg ;;
|
|
|
1124 |
|
|
|
1125 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
|
1126 |
| --program-suf | --program-su | --program-s)
|
|
|
1127 |
ac_prev=program_suffix ;;
|
|
|
1128 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
|
1129 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
|
1130 |
program_suffix=$ac_optarg ;;
|
|
|
1131 |
|
|
|
1132 |
-program-transform-name | --program-transform-name \
|
|
|
1133 |
| --program-transform-nam | --program-transform-na \
|
|
|
1134 |
| --program-transform-n | --program-transform- \
|
|
|
1135 |
| --program-transform | --program-transfor \
|
|
|
1136 |
| --program-transfo | --program-transf \
|
|
|
1137 |
| --program-trans | --program-tran \
|
|
|
1138 |
| --progr-tra | --program-tr | --program-t)
|
|
|
1139 |
ac_prev=program_transform_name ;;
|
|
|
1140 |
-program-transform-name=* | --program-transform-name=* \
|
|
|
1141 |
| --program-transform-nam=* | --program-transform-na=* \
|
|
|
1142 |
| --program-transform-n=* | --program-transform-=* \
|
|
|
1143 |
| --program-transform=* | --program-transfor=* \
|
|
|
1144 |
| --program-transfo=* | --program-transf=* \
|
|
|
1145 |
| --program-trans=* | --program-tran=* \
|
|
|
1146 |
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
|
1147 |
program_transform_name=$ac_optarg ;;
|
|
|
1148 |
|
|
|
1149 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
|
|
1150 |
ac_prev=pdfdir ;;
|
|
|
1151 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
|
|
1152 |
pdfdir=$ac_optarg ;;
|
|
|
1153 |
|
|
|
1154 |
-psdir | --psdir | --psdi | --psd | --ps)
|
|
|
1155 |
ac_prev=psdir ;;
|
|
|
1156 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
|
|
1157 |
psdir=$ac_optarg ;;
|
|
|
1158 |
|
|
|
1159 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
1160 |
| -silent | --silent | --silen | --sile | --sil)
|
|
|
1161 |
silent=yes ;;
|
|
|
1162 |
|
|
|
1163 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
|
1164 |
ac_prev=sbindir ;;
|
|
|
1165 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
|
1166 |
| --sbi=* | --sb=*)
|
|
|
1167 |
sbindir=$ac_optarg ;;
|
|
|
1168 |
|
|
|
1169 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
|
1170 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
|
1171 |
| --sharedst | --shareds | --shared | --share | --shar \
|
|
|
1172 |
| --sha | --sh)
|
|
|
1173 |
ac_prev=sharedstatedir ;;
|
|
|
1174 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
|
1175 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
|
1176 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
|
1177 |
| --sha=* | --sh=*)
|
|
|
1178 |
sharedstatedir=$ac_optarg ;;
|
|
|
1179 |
|
|
|
1180 |
-site | --site | --sit)
|
|
|
1181 |
ac_prev=site ;;
|
|
|
1182 |
-site=* | --site=* | --sit=*)
|
|
|
1183 |
site=$ac_optarg ;;
|
|
|
1184 |
|
|
|
1185 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
1186 |
ac_prev=srcdir ;;
|
|
|
1187 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
|
1188 |
srcdir=$ac_optarg ;;
|
|
|
1189 |
|
|
|
1190 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
|
1191 |
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
|
1192 |
ac_prev=sysconfdir ;;
|
|
|
1193 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
|
1194 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
|
1195 |
sysconfdir=$ac_optarg ;;
|
|
|
1196 |
|
|
|
1197 |
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
|
1198 |
ac_prev=target_alias ;;
|
|
|
1199 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
|
1200 |
target_alias=$ac_optarg ;;
|
|
|
1201 |
|
|
|
1202 |
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
|
1203 |
verbose=yes ;;
|
|
|
1204 |
|
|
|
1205 |
-version | --version | --versio | --versi | --vers | -V)
|
|
|
1206 |
ac_init_version=: ;;
|
|
|
1207 |
|
|
|
1208 |
-with-* | --with-*)
|
|
|
1209 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
|
|
1210 |
# Reject names that are not valid shell variable names.
|
|
|
1211 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
|
1212 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
|
1213 |
{ (exit 1); exit 1; }; }
|
|
|
1214 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
|
|
1215 |
eval with_$ac_package=\$ac_optarg ;;
|
|
|
1216 |
|
|
|
1217 |
-without-* | --without-*)
|
|
|
1218 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
|
|
1219 |
# Reject names that are not valid shell variable names.
|
|
|
1220 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
|
1221 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
|
|
1222 |
{ (exit 1); exit 1; }; }
|
|
|
1223 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
|
|
1224 |
eval with_$ac_package=no ;;
|
|
|
1225 |
|
|
|
1226 |
--x)
|
|
|
1227 |
# Obsolete; use --with-x.
|
|
|
1228 |
with_x=yes ;;
|
|
|
1229 |
|
|
|
1230 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
|
1231 |
| --x-incl | --x-inc | --x-in | --x-i)
|
|
|
1232 |
ac_prev=x_includes ;;
|
|
|
1233 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
|
1234 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
|
1235 |
x_includes=$ac_optarg ;;
|
|
|
1236 |
|
|
|
1237 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
|
1238 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
|
1239 |
ac_prev=x_libraries ;;
|
|
|
1240 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
|
1241 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
|
1242 |
x_libraries=$ac_optarg ;;
|
|
|
1243 |
|
|
|
1244 |
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
|
|
1245 |
Try \`$0 --help' for more information." >&2
|
|
|
1246 |
{ (exit 1); exit 1; }; }
|
|
|
1247 |
;;
|
|
|
1248 |
|
|
|
1249 |
*=*)
|
|
|
1250 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
|
|
1251 |
# Reject names that are not valid shell variable names.
|
|
|
1252 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
|
|
1253 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
|
|
1254 |
{ (exit 1); exit 1; }; }
|
|
|
1255 |
eval $ac_envvar=\$ac_optarg
|
|
|
1256 |
export $ac_envvar ;;
|
|
|
1257 |
|
|
|
1258 |
*)
|
|
|
1259 |
# FIXME: should be removed in autoconf 3.0.
|
|
|
1260 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
|
|
1261 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
|
|
1262 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
|
|
1263 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
|
|
1264 |
;;
|
|
|
1265 |
|
|
|
1266 |
esac
|
|
|
1267 |
done
|
|
|
1268 |
|
|
|
1269 |
if test -n "$ac_prev"; then
|
|
|
1270 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
|
|
1271 |
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
|
|
1272 |
{ (exit 1); exit 1; }; }
|
|
|
1273 |
fi
|
|
|
1274 |
|
|
|
1275 |
# Be sure to have absolute directory names.
|
|
|
1276 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
|
|
1277 |
datadir sysconfdir sharedstatedir localstatedir includedir \
|
|
|
1278 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
|
|
1279 |
libdir localedir mandir
|
|
|
1280 |
do
|
|
|
1281 |
eval ac_val=\$$ac_var
|
|
|
1282 |
case $ac_val in
|
|
|
1283 |
[\\/$]* | ?:[\\/]* ) continue;;
|
|
|
1284 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
|
|
1285 |
esac
|
|
|
1286 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
|
|
1287 |
{ (exit 1); exit 1; }; }
|
|
|
1288 |
done
|
|
|
1289 |
|
|
|
1290 |
# There might be people who depend on the old broken behavior: `$host'
|
|
|
1291 |
# used to hold the argument of --host etc.
|
|
|
1292 |
# FIXME: To remove some day.
|
|
|
1293 |
build=$build_alias
|
|
|
1294 |
host=$host_alias
|
|
|
1295 |
target=$target_alias
|
|
|
1296 |
|
|
|
1297 |
# FIXME: To remove some day.
|
|
|
1298 |
if test "x$host_alias" != x; then
|
|
|
1299 |
if test "x$build_alias" = x; then
|
|
|
1300 |
cross_compiling=maybe
|
|
|
1301 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
|
|
1302 |
If a cross compiler is detected then cross compile mode will be used." >&2
|
|
|
1303 |
elif test "x$build_alias" != "x$host_alias"; then
|
|
|
1304 |
cross_compiling=yes
|
|
|
1305 |
fi
|
|
|
1306 |
fi
|
|
|
1307 |
|
|
|
1308 |
ac_tool_prefix=
|
|
|
1309 |
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
|
|
1310 |
|
|
|
1311 |
test "$silent" = yes && exec 6>/dev/null
|
|
|
1312 |
|
|
|
1313 |
|
|
|
1314 |
ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
|
|
1315 |
ac_ls_di=`ls -di .` &&
|
|
|
1316 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
|
|
1317 |
{ echo "$as_me: error: Working directory cannot be determined" >&2
|
|
|
1318 |
{ (exit 1); exit 1; }; }
|
|
|
1319 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
|
|
1320 |
{ echo "$as_me: error: pwd does not report name of working directory" >&2
|
|
|
1321 |
{ (exit 1); exit 1; }; }
|
|
|
1322 |
|
|
|
1323 |
|
|
|
1324 |
# Find the source files, if location was not specified.
|
|
|
1325 |
if test -z "$srcdir"; then
|
|
|
1326 |
ac_srcdir_defaulted=yes
|
|
|
1327 |
# Try the directory containing this script, then the parent directory.
|
|
|
1328 |
ac_confdir=`$as_dirname -- "$0" ||
|
|
|
1329 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
1330 |
X"$0" : 'X\(//\)[^/]' \| \
|
|
|
1331 |
X"$0" : 'X\(//\)$' \| \
|
|
|
1332 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
1333 |
echo X"$0" |
|
|
|
1334 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
1335 |
s//\1/
|
|
|
1336 |
q
|
|
|
1337 |
}
|
|
|
1338 |
/^X\(\/\/\)[^/].*/{
|
|
|
1339 |
s//\1/
|
|
|
1340 |
q
|
|
|
1341 |
}
|
|
|
1342 |
/^X\(\/\/\)$/{
|
|
|
1343 |
s//\1/
|
|
|
1344 |
q
|
|
|
1345 |
}
|
|
|
1346 |
/^X\(\/\).*/{
|
|
|
1347 |
s//\1/
|
|
|
1348 |
q
|
|
|
1349 |
}
|
|
|
1350 |
s/.*/./; q'`
|
|
|
1351 |
srcdir=$ac_confdir
|
|
|
1352 |
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
|
1353 |
srcdir=..
|
|
|
1354 |
fi
|
|
|
1355 |
else
|
|
|
1356 |
ac_srcdir_defaulted=no
|
|
|
1357 |
fi
|
|
|
1358 |
if test ! -r "$srcdir/$ac_unique_file"; then
|
|
|
1359 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
|
|
1360 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
|
|
1361 |
{ (exit 1); exit 1; }; }
|
|
|
1362 |
fi
|
|
|
1363 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
|
|
1364 |
ac_abs_confdir=`(
|
|
|
1365 |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
|
|
1366 |
{ (exit 1); exit 1; }; }
|
|
|
1367 |
pwd)`
|
|
|
1368 |
# When building in place, set srcdir=.
|
|
|
1369 |
if test "$ac_abs_confdir" = "$ac_pwd"; then
|
|
|
1370 |
srcdir=.
|
|
|
1371 |
fi
|
|
|
1372 |
# Remove unnecessary trailing slashes from srcdir.
|
|
|
1373 |
# Double slashes in file names in object file debugging info
|
|
|
1374 |
# mess up M-x gdb in Emacs.
|
|
|
1375 |
case $srcdir in
|
|
|
1376 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
|
|
1377 |
esac
|
|
|
1378 |
for ac_var in $ac_precious_vars; do
|
|
|
1379 |
eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
|
|
1380 |
eval ac_env_${ac_var}_value=\$${ac_var}
|
|
|
1381 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
|
|
1382 |
eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
|
|
1383 |
done
|
|
|
1384 |
|
|
|
1385 |
#
|
|
|
1386 |
# Report the --help message.
|
|
|
1387 |
#
|
|
|
1388 |
if test "$ac_init_help" = "long"; then
|
|
|
1389 |
# Omit some internal or obsolete options to make the list less imposing.
|
|
|
1390 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
|
1391 |
cat <<_ACEOF
|
|
|
1392 |
\`configure' configures this package to adapt to many kinds of systems.
|
|
|
1393 |
|
|
|
1394 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
|
|
1395 |
|
|
|
1396 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
|
1397 |
VAR=VALUE. See below for descriptions of some of the useful variables.
|
|
|
1398 |
|
|
|
1399 |
Defaults for the options are specified in brackets.
|
|
|
1400 |
|
|
|
1401 |
Configuration:
|
|
|
1402 |
-h, --help display this help and exit
|
|
|
1403 |
--help=short display options specific to this package
|
|
|
1404 |
--help=recursive display the short help of all the included packages
|
|
|
1405 |
-V, --version display version information and exit
|
|
|
1406 |
-q, --quiet, --silent do not print \`checking...' messages
|
|
|
1407 |
--cache-file=FILE cache test results in FILE [disabled]
|
|
|
1408 |
-C, --config-cache alias for \`--cache-file=config.cache'
|
|
|
1409 |
-n, --no-create do not create output files
|
|
|
1410 |
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
|
|
1411 |
|
|
|
1412 |
Installation directories:
|
|
|
1413 |
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
|
1414 |
[$ac_default_prefix]
|
|
|
1415 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
|
1416 |
[PREFIX]
|
|
|
1417 |
|
|
|
1418 |
By default, \`make install' will install all the files in
|
|
|
1419 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
|
|
1420 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
|
|
1421 |
for instance \`--prefix=\$HOME'.
|
|
|
1422 |
|
|
|
1423 |
For better control, use the options below.
|
|
|
1424 |
|
|
|
1425 |
Fine tuning of the installation directories:
|
|
|
1426 |
--bindir=DIR user executables [EPREFIX/bin]
|
|
|
1427 |
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
|
|
1428 |
--libexecdir=DIR program executables [EPREFIX/libexec]
|
|
|
1429 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
|
|
1430 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
|
|
1431 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
|
|
1432 |
--libdir=DIR object code libraries [EPREFIX/lib]
|
|
|
1433 |
--includedir=DIR C header files [PREFIX/include]
|
|
|
1434 |
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
|
|
1435 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
|
|
1436 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
|
|
1437 |
--infodir=DIR info documentation [DATAROOTDIR/info]
|
|
|
1438 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
|
|
1439 |
--mandir=DIR man documentation [DATAROOTDIR/man]
|
|
|
1440 |
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
|
|
|
1441 |
--htmldir=DIR html documentation [DOCDIR]
|
|
|
1442 |
--dvidir=DIR dvi documentation [DOCDIR]
|
|
|
1443 |
--pdfdir=DIR pdf documentation [DOCDIR]
|
|
|
1444 |
--psdir=DIR ps documentation [DOCDIR]
|
|
|
1445 |
_ACEOF
|
|
|
1446 |
|
|
|
1447 |
cat <<\_ACEOF
|
|
|
1448 |
|
|
|
1449 |
Program names:
|
|
|
1450 |
--program-prefix=PREFIX prepend PREFIX to installed program names
|
|
|
1451 |
--program-suffix=SUFFIX append SUFFIX to installed program names
|
|
|
1452 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
|
|
1453 |
|
|
|
1454 |
System types:
|
|
|
1455 |
--build=BUILD configure for building on BUILD [guessed]
|
|
|
1456 |
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
|
|
1457 |
_ACEOF
|
|
|
1458 |
fi
|
|
|
1459 |
|
|
|
1460 |
if test -n "$ac_init_help"; then
|
|
|
1461 |
|
|
|
1462 |
cat <<\_ACEOF
|
|
|
1463 |
|
|
|
1464 |
Optional Features:
|
|
|
1465 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
|
1466 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
|
1467 |
--disable-dependency-tracking speeds up one-time build
|
|
|
1468 |
--enable-dependency-tracking do not reject slow dependency extractors
|
|
|
1469 |
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
|
|
|
1470 |
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
|
|
|
1471 |
--enable-fast-install@<:@=PKGS@:>@
|
|
|
1472 |
optimize for fast installation @<:@default=yes@:>@
|
|
|
1473 |
--disable-libtool-lock avoid locking (might break parallel builds)
|
|
|
1474 |
|
|
|
1475 |
Optional Packages:
|
|
|
1476 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
|
1477 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
|
1478 |
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
|
|
|
1479 |
--with-pic try to use only PIC/non-PIC objects @<:@default=use
|
|
|
1480 |
both@:>@
|
|
|
1481 |
--with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
|
|
|
1482 |
|
|
|
1483 |
Some influential environment variables:
|
|
|
1484 |
CC C compiler command
|
|
|
1485 |
CFLAGS C compiler flags
|
|
|
1486 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
|
1487 |
nonstandard directory <lib dir>
|
|
|
1488 |
LIBS libraries to pass to the linker, e.g. -l<library>
|
|
|
1489 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
|
|
1490 |
you have headers in a nonstandard directory <include dir>
|
|
|
1491 |
CPP C preprocessor
|
|
|
1492 |
CXX C++ compiler command
|
|
|
1493 |
CXXFLAGS C++ compiler flags
|
|
|
1494 |
CXXCPP C++ preprocessor
|
|
|
1495 |
F77 Fortran 77 compiler command
|
|
|
1496 |
FFLAGS Fortran 77 compiler flags
|
|
|
1497 |
|
|
|
1498 |
Use these variables to override the choices made by `configure' or to help
|
|
|
1499 |
it to find libraries and programs with nonstandard names/locations.
|
|
|
1500 |
|
|
|
1501 |
_ACEOF
|
|
|
1502 |
ac_status=$?
|
|
|
1503 |
fi
|
|
|
1504 |
|
|
|
1505 |
if test "$ac_init_help" = "recursive"; then
|
|
|
1506 |
# If there are subdirs, report their specific --help.
|
|
|
1507 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
|
|
1508 |
test -d "$ac_dir" || continue
|
|
|
1509 |
ac_builddir=.
|
|
|
1510 |
|
|
|
1511 |
case "$ac_dir" in
|
|
|
1512 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
|
1513 |
*)
|
|
|
1514 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
|
1515 |
# A ".." for each directory in $ac_dir_suffix.
|
|
|
1516 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
|
1517 |
case $ac_top_builddir_sub in
|
|
|
1518 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
|
1519 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
|
1520 |
esac ;;
|
|
|
1521 |
esac
|
|
|
1522 |
ac_abs_top_builddir=$ac_pwd
|
|
|
1523 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
|
1524 |
# for backward compatibility:
|
|
|
1525 |
ac_top_builddir=$ac_top_build_prefix
|
|
|
1526 |
|
|
|
1527 |
case $srcdir in
|
|
|
1528 |
.) # We are building in place.
|
|
|
1529 |
ac_srcdir=.
|
|
|
1530 |
ac_top_srcdir=$ac_top_builddir_sub
|
|
|
1531 |
ac_abs_top_srcdir=$ac_pwd ;;
|
|
|
1532 |
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
|
1533 |
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
|
1534 |
ac_top_srcdir=$srcdir
|
|
|
1535 |
ac_abs_top_srcdir=$srcdir ;;
|
|
|
1536 |
*) # Relative name.
|
|
|
1537 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
|
1538 |
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
|
1539 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
|
1540 |
esac
|
|
|
1541 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
1542 |
|
|
|
1543 |
cd "$ac_dir" || { ac_status=$?; continue; }
|
|
|
1544 |
# Check for guested configure.
|
|
|
1545 |
if test -f "$ac_srcdir/configure.gnu"; then
|
|
|
1546 |
echo &&
|
|
|
1547 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
|
|
1548 |
elif test -f "$ac_srcdir/configure"; then
|
|
|
1549 |
echo &&
|
|
|
1550 |
$SHELL "$ac_srcdir/configure" --help=recursive
|
|
|
1551 |
else
|
|
|
1552 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
|
|
1553 |
fi || ac_status=$?
|
|
|
1554 |
cd "$ac_pwd" || { ac_status=$?; break; }
|
|
|
1555 |
done
|
|
|
1556 |
fi
|
|
|
1557 |
|
|
|
1558 |
test -n "$ac_init_help" && exit $ac_status
|
|
|
1559 |
if $ac_init_version; then
|
|
|
1560 |
cat <<\_ACEOF
|
|
|
1561 |
configure
|
|
|
1562 |
generated by GNU Autoconf 2.61
|
|
|
1563 |
|
|
|
1564 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
|
1565 |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
|
1566 |
This configure script is free software; the Free Software Foundation
|
|
|
1567 |
gives unlimited permission to copy, distribute and modify it.
|
|
|
1568 |
_ACEOF
|
|
|
1569 |
exit
|
|
|
1570 |
fi
|
|
|
1571 |
cat >config.log <<_ACEOF
|
|
|
1572 |
This file contains any messages produced by compilers while
|
|
|
1573 |
running configure, to aid debugging if configure makes a mistake.
|
|
|
1574 |
|
|
|
1575 |
It was created by $as_me, which was
|
|
|
1576 |
generated by GNU Autoconf 2.61. Invocation command line was
|
|
|
1577 |
|
|
|
1578 |
$ $0 $@
|
|
|
1579 |
|
|
|
1580 |
_ACEOF
|
|
|
1581 |
exec 5>>config.log
|
|
|
1582 |
{
|
|
|
1583 |
cat <<_ASUNAME
|
|
|
1584 |
@%:@@%:@ --------- @%:@@%:@
|
|
|
1585 |
@%:@@%:@ Platform. @%:@@%:@
|
|
|
1586 |
@%:@@%:@ --------- @%:@@%:@
|
|
|
1587 |
|
|
|
1588 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
1589 |
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
|
|
1590 |
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
|
|
1591 |
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
|
|
1592 |
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
|
|
1593 |
|
|
|
1594 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
|
|
1595 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
|
|
1596 |
|
|
|
1597 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
|
|
1598 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
|
|
1599 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
|
|
1600 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
|
|
1601 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
|
|
1602 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
|
|
1603 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
|
|
1604 |
|
|
|
1605 |
_ASUNAME
|
|
|
1606 |
|
|
|
1607 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
1608 |
for as_dir in $PATH
|
|
|
1609 |
do
|
|
|
1610 |
IFS=$as_save_IFS
|
|
|
1611 |
test -z "$as_dir" && as_dir=.
|
|
|
1612 |
echo "PATH: $as_dir"
|
|
|
1613 |
done
|
|
|
1614 |
IFS=$as_save_IFS
|
|
|
1615 |
|
|
|
1616 |
} >&5
|
|
|
1617 |
|
|
|
1618 |
cat >&5 <<_ACEOF
|
|
|
1619 |
|
|
|
1620 |
|
|
|
1621 |
@%:@@%:@ ----------- @%:@@%:@
|
|
|
1622 |
@%:@@%:@ Core tests. @%:@@%:@
|
|
|
1623 |
@%:@@%:@ ----------- @%:@@%:@
|
|
|
1624 |
|
|
|
1625 |
_ACEOF
|
|
|
1626 |
|
|
|
1627 |
|
|
|
1628 |
# Keep a trace of the command line.
|
|
|
1629 |
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
|
1630 |
# Strip out --silent because we don't want to record it for future runs.
|
|
|
1631 |
# Also quote any args containing shell meta-characters.
|
|
|
1632 |
# Make two passes to allow for proper duplicate-argument suppression.
|
|
|
1633 |
ac_configure_args=
|
|
|
1634 |
ac_configure_args0=
|
|
|
1635 |
ac_configure_args1=
|
|
|
1636 |
ac_must_keep_next=false
|
|
|
1637 |
for ac_pass in 1 2
|
|
|
1638 |
do
|
|
|
1639 |
for ac_arg
|
|
|
1640 |
do
|
|
|
1641 |
case $ac_arg in
|
|
|
1642 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
|
|
1643 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
1644 |
| -silent | --silent | --silen | --sile | --sil)
|
|
|
1645 |
continue ;;
|
|
|
1646 |
*\'*)
|
|
|
1647 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
|
1648 |
esac
|
|
|
1649 |
case $ac_pass in
|
|
|
1650 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
|
|
1651 |
2)
|
|
|
1652 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
|
|
1653 |
if test $ac_must_keep_next = true; then
|
|
|
1654 |
ac_must_keep_next=false # Got value, back to normal.
|
|
|
1655 |
else
|
|
|
1656 |
case $ac_arg in
|
|
|
1657 |
*=* | --config-cache | -C | -disable-* | --disable-* \
|
|
|
1658 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
|
|
1659 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
|
|
1660 |
| -with-* | --with-* | -without-* | --without-* | --x)
|
|
|
1661 |
case "$ac_configure_args0 " in
|
|
|
1662 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
|
|
1663 |
esac
|
|
|
1664 |
;;
|
|
|
1665 |
-* ) ac_must_keep_next=true ;;
|
|
|
1666 |
esac
|
|
|
1667 |
fi
|
|
|
1668 |
ac_configure_args="$ac_configure_args '$ac_arg'"
|
|
|
1669 |
;;
|
|
|
1670 |
esac
|
|
|
1671 |
done
|
|
|
1672 |
done
|
|
|
1673 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
|
|
1674 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
|
|
1675 |
|
|
|
1676 |
# When interrupted or exit'd, cleanup temporary files, and complete
|
|
|
1677 |
# config.log. We remove comments because anyway the quotes in there
|
|
|
1678 |
# would cause problems or look ugly.
|
|
|
1679 |
# WARNING: Use '\'' to represent an apostrophe within the trap.
|
|
|
1680 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
|
|
1681 |
trap 'exit_status=$?
|
|
|
1682 |
# Save into config.log some information that might help in debugging.
|
|
|
1683 |
{
|
|
|
1684 |
echo
|
|
|
1685 |
|
|
|
1686 |
cat <<\_ASBOX
|
|
|
1687 |
@%:@@%:@ ---------------- @%:@@%:@
|
|
|
1688 |
@%:@@%:@ Cache variables. @%:@@%:@
|
|
|
1689 |
@%:@@%:@ ---------------- @%:@@%:@
|
|
|
1690 |
_ASBOX
|
|
|
1691 |
echo
|
|
|
1692 |
# The following way of writing the cache mishandles newlines in values,
|
|
|
1693 |
(
|
|
|
1694 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
|
|
1695 |
eval ac_val=\$$ac_var
|
|
|
1696 |
case $ac_val in #(
|
|
|
1697 |
*${as_nl}*)
|
|
|
1698 |
case $ac_var in #(
|
|
|
1699 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
|
1700 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
|
1701 |
esac
|
|
|
1702 |
case $ac_var in #(
|
|
|
1703 |
_ | IFS | as_nl) ;; #(
|
|
|
1704 |
*) $as_unset $ac_var ;;
|
|
|
1705 |
esac ;;
|
|
|
1706 |
esac
|
|
|
1707 |
done
|
|
|
1708 |
(set) 2>&1 |
|
|
|
1709 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
|
|
1710 |
*${as_nl}ac_space=\ *)
|
|
|
1711 |
sed -n \
|
|
|
1712 |
"s/'\''/'\''\\\\'\'''\''/g;
|
|
|
1713 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
|
|
1714 |
;; #(
|
|
|
1715 |
*)
|
|
|
1716 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
|
1717 |
;;
|
|
|
1718 |
esac |
|
|
|
1719 |
sort
|
|
|
1720 |
)
|
|
|
1721 |
echo
|
|
|
1722 |
|
|
|
1723 |
cat <<\_ASBOX
|
|
|
1724 |
@%:@@%:@ ----------------- @%:@@%:@
|
|
|
1725 |
@%:@@%:@ Output variables. @%:@@%:@
|
|
|
1726 |
@%:@@%:@ ----------------- @%:@@%:@
|
|
|
1727 |
_ASBOX
|
|
|
1728 |
echo
|
|
|
1729 |
for ac_var in $ac_subst_vars
|
|
|
1730 |
do
|
|
|
1731 |
eval ac_val=\$$ac_var
|
|
|
1732 |
case $ac_val in
|
|
|
1733 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
|
1734 |
esac
|
|
|
1735 |
echo "$ac_var='\''$ac_val'\''"
|
|
|
1736 |
done | sort
|
|
|
1737 |
echo
|
|
|
1738 |
|
|
|
1739 |
if test -n "$ac_subst_files"; then
|
|
|
1740 |
cat <<\_ASBOX
|
|
|
1741 |
@%:@@%:@ ------------------- @%:@@%:@
|
|
|
1742 |
@%:@@%:@ File substitutions. @%:@@%:@
|
|
|
1743 |
@%:@@%:@ ------------------- @%:@@%:@
|
|
|
1744 |
_ASBOX
|
|
|
1745 |
echo
|
|
|
1746 |
for ac_var in $ac_subst_files
|
|
|
1747 |
do
|
|
|
1748 |
eval ac_val=\$$ac_var
|
|
|
1749 |
case $ac_val in
|
|
|
1750 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
|
|
1751 |
esac
|
|
|
1752 |
echo "$ac_var='\''$ac_val'\''"
|
|
|
1753 |
done | sort
|
|
|
1754 |
echo
|
|
|
1755 |
fi
|
|
|
1756 |
|
|
|
1757 |
if test -s confdefs.h; then
|
|
|
1758 |
cat <<\_ASBOX
|
|
|
1759 |
@%:@@%:@ ----------- @%:@@%:@
|
|
|
1760 |
@%:@@%:@ confdefs.h. @%:@@%:@
|
|
|
1761 |
@%:@@%:@ ----------- @%:@@%:@
|
|
|
1762 |
_ASBOX
|
|
|
1763 |
echo
|
|
|
1764 |
cat confdefs.h
|
|
|
1765 |
echo
|
|
|
1766 |
fi
|
|
|
1767 |
test "$ac_signal" != 0 &&
|
|
|
1768 |
echo "$as_me: caught signal $ac_signal"
|
|
|
1769 |
echo "$as_me: exit $exit_status"
|
|
|
1770 |
} >&5
|
|
|
1771 |
rm -f core *.core core.conftest.* &&
|
|
|
1772 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
|
|
1773 |
exit $exit_status
|
|
|
1774 |
' 0
|
|
|
1775 |
for ac_signal in 1 2 13 15; do
|
|
|
1776 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
|
|
1777 |
done
|
|
|
1778 |
ac_signal=0
|
|
|
1779 |
|
|
|
1780 |
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
|
1781 |
rm -f -r conftest* confdefs.h
|
|
|
1782 |
|
|
|
1783 |
# Predefined preprocessor variables.
|
|
|
1784 |
|
|
|
1785 |
cat >>confdefs.h <<_ACEOF
|
|
|
1786 |
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
|
|
|
1787 |
_ACEOF
|
|
|
1788 |
|
|
|
1789 |
|
|
|
1790 |
cat >>confdefs.h <<_ACEOF
|
|
|
1791 |
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
|
|
1792 |
_ACEOF
|
|
|
1793 |
|
|
|
1794 |
|
|
|
1795 |
cat >>confdefs.h <<_ACEOF
|
|
|
1796 |
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
|
|
|
1797 |
_ACEOF
|
|
|
1798 |
|
|
|
1799 |
|
|
|
1800 |
cat >>confdefs.h <<_ACEOF
|
|
|
1801 |
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
|
|
|
1802 |
_ACEOF
|
|
|
1803 |
|
|
|
1804 |
|
|
|
1805 |
cat >>confdefs.h <<_ACEOF
|
|
|
1806 |
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
|
|
1807 |
_ACEOF
|
|
|
1808 |
|
|
|
1809 |
|
|
|
1810 |
# Let the site file select an alternate cache file if it wants to.
|
|
|
1811 |
# Prefer explicitly selected file to automatically selected ones.
|
|
|
1812 |
if test -n "$CONFIG_SITE"; then
|
|
|
1813 |
set x "$CONFIG_SITE"
|
|
|
1814 |
elif test "x$prefix" != xNONE; then
|
|
|
1815 |
set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
|
|
1816 |
else
|
|
|
1817 |
set x "$ac_default_prefix/share/config.site" \
|
|
|
1818 |
"$ac_default_prefix/etc/config.site"
|
|
|
1819 |
fi
|
|
|
1820 |
shift
|
|
|
1821 |
for ac_site_file
|
|
|
1822 |
do
|
|
|
1823 |
if test -r "$ac_site_file"; then
|
|
|
1824 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
|
|
1825 |
echo "$as_me: loading site script $ac_site_file" >&6;}
|
|
|
1826 |
sed 's/^/| /' "$ac_site_file" >&5
|
|
|
1827 |
. "$ac_site_file"
|
|
|
1828 |
fi
|
|
|
1829 |
done
|
|
|
1830 |
|
|
|
1831 |
if test -r "$cache_file"; then
|
|
|
1832 |
# Some versions of bash will fail to source /dev/null (special
|
|
|
1833 |
# files actually), so we avoid doing that.
|
|
|
1834 |
if test -f "$cache_file"; then
|
|
|
1835 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
|
|
1836 |
echo "$as_me: loading cache $cache_file" >&6;}
|
|
|
1837 |
case $cache_file in
|
|
|
1838 |
[\\/]* | ?:[\\/]* ) . "$cache_file";;
|
|
|
1839 |
*) . "./$cache_file";;
|
|
|
1840 |
esac
|
|
|
1841 |
fi
|
|
|
1842 |
else
|
|
|
1843 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
|
|
1844 |
echo "$as_me: creating cache $cache_file" >&6;}
|
|
|
1845 |
>$cache_file
|
|
|
1846 |
fi
|
|
|
1847 |
|
|
|
1848 |
# Check that the precious variables saved in the cache have kept the same
|
|
|
1849 |
# value.
|
|
|
1850 |
ac_cache_corrupted=false
|
|
|
1851 |
for ac_var in $ac_precious_vars; do
|
|
|
1852 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
|
|
1853 |
eval ac_new_set=\$ac_env_${ac_var}_set
|
|
|
1854 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
|
|
1855 |
eval ac_new_val=\$ac_env_${ac_var}_value
|
|
|
1856 |
case $ac_old_set,$ac_new_set in
|
|
|
1857 |
set,)
|
|
|
1858 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
|
|
1859 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
|
|
1860 |
ac_cache_corrupted=: ;;
|
|
|
1861 |
,set)
|
|
|
1862 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
|
|
1863 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
|
|
1864 |
ac_cache_corrupted=: ;;
|
|
|
1865 |
,);;
|
|
|
1866 |
*)
|
|
|
1867 |
if test "x$ac_old_val" != "x$ac_new_val"; then
|
|
|
1868 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
|
|
1869 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
|
|
1870 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
|
|
1871 |
echo "$as_me: former value: $ac_old_val" >&2;}
|
|
|
1872 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
|
|
1873 |
echo "$as_me: current value: $ac_new_val" >&2;}
|
|
|
1874 |
ac_cache_corrupted=:
|
|
|
1875 |
fi;;
|
|
|
1876 |
esac
|
|
|
1877 |
# Pass precious variables to config.status.
|
|
|
1878 |
if test "$ac_new_set" = set; then
|
|
|
1879 |
case $ac_new_val in
|
|
|
1880 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
|
1881 |
*) ac_arg=$ac_var=$ac_new_val ;;
|
|
|
1882 |
esac
|
|
|
1883 |
case " $ac_configure_args " in
|
|
|
1884 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
|
|
1885 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
|
1886 |
esac
|
|
|
1887 |
fi
|
|
|
1888 |
done
|
|
|
1889 |
if $ac_cache_corrupted; then
|
|
|
1890 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
|
|
1891 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
|
|
1892 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
|
|
1893 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
|
|
1894 |
{ (exit 1); exit 1; }; }
|
|
|
1895 |
fi
|
|
|
1896 |
|
|
|
1897 |
|
|
|
1898 |
|
|
|
1899 |
|
|
|
1900 |
|
|
|
1901 |
|
|
|
1902 |
|
|
|
1903 |
|
|
|
1904 |
|
|
|
1905 |
|
|
|
1906 |
|
|
|
1907 |
|
|
|
1908 |
|
|
|
1909 |
|
|
|
1910 |
|
|
|
1911 |
|
|
|
1912 |
|
|
|
1913 |
ac_ext=c
|
|
|
1914 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
1915 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
1916 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
1917 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
1918 |
|
|
|
1919 |
|
|
|
1920 |
|
|
|
1921 |
ac_config_headers="$ac_config_headers config.h"
|
|
|
1922 |
|
|
|
1923 |
am__api_version='1.10'
|
|
|
1924 |
|
|
|
1925 |
ac_aux_dir=
|
|
|
1926 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
|
|
1927 |
if test -f "$ac_dir/install-sh"; then
|
|
|
1928 |
ac_aux_dir=$ac_dir
|
|
|
1929 |
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
1930 |
break
|
|
|
1931 |
elif test -f "$ac_dir/install.sh"; then
|
|
|
1932 |
ac_aux_dir=$ac_dir
|
|
|
1933 |
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
1934 |
break
|
|
|
1935 |
elif test -f "$ac_dir/shtool"; then
|
|
|
1936 |
ac_aux_dir=$ac_dir
|
|
|
1937 |
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
|
1938 |
break
|
|
|
1939 |
fi
|
|
|
1940 |
done
|
|
|
1941 |
if test -z "$ac_aux_dir"; then
|
|
|
1942 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
|
|
1943 |
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
|
|
1944 |
{ (exit 1); exit 1; }; }
|
|
|
1945 |
fi
|
|
|
1946 |
|
|
|
1947 |
# These three variables are undocumented and unsupported,
|
|
|
1948 |
# and are intended to be withdrawn in a future Autoconf release.
|
|
|
1949 |
# They can cause serious problems if a builder's source tree is in a directory
|
|
|
1950 |
# whose full name contains unusual characters.
|
|
|
1951 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
|
|
1952 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
|
|
1953 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
|
|
1954 |
|
|
|
1955 |
|
|
|
1956 |
# Find a good install program. We prefer a C program (faster),
|
|
|
1957 |
# so one script is as good as another. But avoid the broken or
|
|
|
1958 |
# incompatible versions:
|
|
|
1959 |
# SysV /etc/install, /usr/sbin/install
|
|
|
1960 |
# SunOS /usr/etc/install
|
|
|
1961 |
# IRIX /sbin/install
|
|
|
1962 |
# AIX /bin/install
|
|
|
1963 |
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
|
|
1964 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
|
1965 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
|
1966 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
|
1967 |
# OS/2's system install, which has a completely different semantic
|
|
|
1968 |
# ./install, which can be erroneously created by make from ./install.sh.
|
|
|
1969 |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
|
|
1970 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
|
|
1971 |
if test -z "$INSTALL"; then
|
|
|
1972 |
if test "${ac_cv_path_install+set}" = set; then
|
|
|
1973 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
1974 |
else
|
|
|
1975 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
1976 |
for as_dir in $PATH
|
|
|
1977 |
do
|
|
|
1978 |
IFS=$as_save_IFS
|
|
|
1979 |
test -z "$as_dir" && as_dir=.
|
|
|
1980 |
# Account for people who put trailing slashes in PATH elements.
|
|
|
1981 |
case $as_dir/ in
|
|
|
1982 |
./ | .// | /cC/* | \
|
|
|
1983 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
|
|
1984 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
|
|
1985 |
/usr/ucb/* ) ;;
|
|
|
1986 |
*)
|
|
|
1987 |
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
|
1988 |
# Don't use installbsd from OSF since it installs stuff as root
|
|
|
1989 |
# by default.
|
|
|
1990 |
for ac_prog in ginstall scoinst install; do
|
|
|
1991 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
1992 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
|
|
1993 |
if test $ac_prog = install &&
|
|
|
1994 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
|
1995 |
# AIX install. It has an incompatible calling convention.
|
|
|
1996 |
:
|
|
|
1997 |
elif test $ac_prog = install &&
|
|
|
1998 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
|
|
1999 |
# program-specific install script used by HP pwplus--don't use.
|
|
|
2000 |
:
|
|
|
2001 |
else
|
|
|
2002 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
|
|
2003 |
break 3
|
|
|
2004 |
fi
|
|
|
2005 |
fi
|
|
|
2006 |
done
|
|
|
2007 |
done
|
|
|
2008 |
;;
|
|
|
2009 |
esac
|
|
|
2010 |
done
|
|
|
2011 |
IFS=$as_save_IFS
|
|
|
2012 |
|
|
|
2013 |
|
|
|
2014 |
fi
|
|
|
2015 |
if test "${ac_cv_path_install+set}" = set; then
|
|
|
2016 |
INSTALL=$ac_cv_path_install
|
|
|
2017 |
else
|
|
|
2018 |
# As a last resort, use the slow shell script. Don't cache a
|
|
|
2019 |
# value for INSTALL within a source directory, because that will
|
|
|
2020 |
# break other packages using the cache if that directory is
|
|
|
2021 |
# removed, or if the value is a relative name.
|
|
|
2022 |
INSTALL=$ac_install_sh
|
|
|
2023 |
fi
|
|
|
2024 |
fi
|
|
|
2025 |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
|
|
|
2026 |
echo "${ECHO_T}$INSTALL" >&6; }
|
|
|
2027 |
|
|
|
2028 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
|
2029 |
# It thinks the first close brace ends the variable substitution.
|
|
|
2030 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
2031 |
|
|
|
2032 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
|
2033 |
|
|
|
2034 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
2035 |
|
|
|
2036 |
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
|
|
2037 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
|
|
|
2038 |
# Just in case
|
|
|
2039 |
sleep 1
|
|
|
2040 |
echo timestamp > conftest.file
|
|
|
2041 |
# Do `set' in a subshell so we don't clobber the current shell's
|
|
|
2042 |
# arguments. Must try -L first in case configure is actually a
|
|
|
2043 |
# symlink; some systems play weird games with the mod time of symlinks
|
|
|
2044 |
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
|
2045 |
# directory).
|
|
|
2046 |
if (
|
|
|
2047 |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
|
|
2048 |
if test "$*" = "X"; then
|
|
|
2049 |
# -L didn't work.
|
|
|
2050 |
set X `ls -t $srcdir/configure conftest.file`
|
|
|
2051 |
fi
|
|
|
2052 |
rm -f conftest.file
|
|
|
2053 |
if test "$*" != "X $srcdir/configure conftest.file" \
|
|
|
2054 |
&& test "$*" != "X conftest.file $srcdir/configure"; then
|
|
|
2055 |
|
|
|
2056 |
# If neither matched, then we have a broken ls. This can happen
|
|
|
2057 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
|
2058 |
# broken ls alias from the environment. This has actually
|
|
|
2059 |
# happened. Such a system could not be considered "sane".
|
|
|
2060 |
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
|
|
2061 |
alias in your environment" >&5
|
|
|
2062 |
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
|
|
2063 |
alias in your environment" >&2;}
|
|
|
2064 |
{ (exit 1); exit 1; }; }
|
|
|
2065 |
fi
|
|
|
2066 |
|
|
|
2067 |
test "$2" = conftest.file
|
|
|
2068 |
)
|
|
|
2069 |
then
|
|
|
2070 |
# Ok.
|
|
|
2071 |
:
|
|
|
2072 |
else
|
|
|
2073 |
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
|
|
2074 |
Check your system clock" >&5
|
|
|
2075 |
echo "$as_me: error: newly created file is older than distributed files!
|
|
|
2076 |
Check your system clock" >&2;}
|
|
|
2077 |
{ (exit 1); exit 1; }; }
|
|
|
2078 |
fi
|
|
|
2079 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
2080 |
echo "${ECHO_T}yes" >&6; }
|
|
|
2081 |
test "$program_prefix" != NONE &&
|
|
|
2082 |
program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
|
|
2083 |
# Use a double $ so make ignores it.
|
|
|
2084 |
test "$program_suffix" != NONE &&
|
|
|
2085 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
|
|
2086 |
# Double any \ or $. echo might interpret backslashes.
|
|
|
2087 |
# By default was `s,x,x', remove it if useless.
|
|
|
2088 |
cat <<\_ACEOF >conftest.sed
|
|
|
2089 |
s/[\\$]/&&/g;s/;s,x,x,$//
|
|
|
2090 |
_ACEOF
|
|
|
2091 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
|
|
2092 |
rm -f conftest.sed
|
|
|
2093 |
|
|
|
2094 |
# expand $ac_aux_dir to an absolute path
|
|
|
2095 |
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
|
2096 |
|
|
|
2097 |
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
|
|
2098 |
# Use eval to expand $SHELL
|
|
|
2099 |
if eval "$MISSING --run true"; then
|
|
|
2100 |
am_missing_run="$MISSING --run "
|
|
|
2101 |
else
|
|
|
2102 |
am_missing_run=
|
|
|
2103 |
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
|
|
2104 |
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
|
|
2105 |
fi
|
|
|
2106 |
|
|
|
2107 |
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
|
|
|
2108 |
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
|
|
|
2109 |
if test -z "$MKDIR_P"; then
|
|
|
2110 |
if test "${ac_cv_path_mkdir+set}" = set; then
|
|
|
2111 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2112 |
else
|
|
|
2113 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2114 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
|
|
2115 |
do
|
|
|
2116 |
IFS=$as_save_IFS
|
|
|
2117 |
test -z "$as_dir" && as_dir=.
|
|
|
2118 |
for ac_prog in mkdir gmkdir; do
|
|
|
2119 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2120 |
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
|
|
|
2121 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
|
|
2122 |
'mkdir (GNU coreutils) '* | \
|
|
|
2123 |
'mkdir (coreutils) '* | \
|
|
|
2124 |
'mkdir (fileutils) '4.1*)
|
|
|
2125 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
|
|
2126 |
break 3;;
|
|
|
2127 |
esac
|
|
|
2128 |
done
|
|
|
2129 |
done
|
|
|
2130 |
done
|
|
|
2131 |
IFS=$as_save_IFS
|
|
|
2132 |
|
|
|
2133 |
fi
|
|
|
2134 |
|
|
|
2135 |
if test "${ac_cv_path_mkdir+set}" = set; then
|
|
|
2136 |
MKDIR_P="$ac_cv_path_mkdir -p"
|
|
|
2137 |
else
|
|
|
2138 |
# As a last resort, use the slow shell script. Don't cache a
|
|
|
2139 |
# value for MKDIR_P within a source directory, because that will
|
|
|
2140 |
# break other packages using the cache if that directory is
|
|
|
2141 |
# removed, or if the value is a relative name.
|
|
|
2142 |
test -d ./--version && rmdir ./--version
|
|
|
2143 |
MKDIR_P="$ac_install_sh -d"
|
|
|
2144 |
fi
|
|
|
2145 |
fi
|
|
|
2146 |
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
|
|
|
2147 |
echo "${ECHO_T}$MKDIR_P" >&6; }
|
|
|
2148 |
|
|
|
2149 |
mkdir_p="$MKDIR_P"
|
|
|
2150 |
case $mkdir_p in
|
|
|
2151 |
[\\/$]* | ?:[\\/]*) ;;
|
|
|
2152 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
|
2153 |
esac
|
|
|
2154 |
|
|
|
2155 |
for ac_prog in gawk mawk nawk awk
|
|
|
2156 |
do
|
|
|
2157 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
2158 |
set dummy $ac_prog; ac_word=$2
|
|
|
2159 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2160 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2161 |
if test "${ac_cv_prog_AWK+set}" = set; then
|
|
|
2162 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2163 |
else
|
|
|
2164 |
if test -n "$AWK"; then
|
|
|
2165 |
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
|
2166 |
else
|
|
|
2167 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2168 |
for as_dir in $PATH
|
|
|
2169 |
do
|
|
|
2170 |
IFS=$as_save_IFS
|
|
|
2171 |
test -z "$as_dir" && as_dir=.
|
|
|
2172 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2173 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2174 |
ac_cv_prog_AWK="$ac_prog"
|
|
|
2175 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2176 |
break 2
|
|
|
2177 |
fi
|
|
|
2178 |
done
|
|
|
2179 |
done
|
|
|
2180 |
IFS=$as_save_IFS
|
|
|
2181 |
|
|
|
2182 |
fi
|
|
|
2183 |
fi
|
|
|
2184 |
AWK=$ac_cv_prog_AWK
|
|
|
2185 |
if test -n "$AWK"; then
|
|
|
2186 |
{ echo "$as_me:$LINENO: result: $AWK" >&5
|
|
|
2187 |
echo "${ECHO_T}$AWK" >&6; }
|
|
|
2188 |
else
|
|
|
2189 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2190 |
echo "${ECHO_T}no" >&6; }
|
|
|
2191 |
fi
|
|
|
2192 |
|
|
|
2193 |
|
|
|
2194 |
test -n "$AWK" && break
|
|
|
2195 |
done
|
|
|
2196 |
|
|
|
2197 |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
|
|
2198 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
|
|
|
2199 |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
|
|
2200 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
2201 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2202 |
else
|
|
|
2203 |
cat >conftest.make <<\_ACEOF
|
|
|
2204 |
SHELL = /bin/sh
|
|
|
2205 |
all:
|
|
|
2206 |
@echo '@@@%%%=$(MAKE)=@@@%%%'
|
|
|
2207 |
_ACEOF
|
|
|
2208 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
|
2209 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
|
|
2210 |
*@@@%%%=?*=@@@%%%*)
|
|
|
2211 |
eval ac_cv_prog_make_${ac_make}_set=yes;;
|
|
|
2212 |
*)
|
|
|
2213 |
eval ac_cv_prog_make_${ac_make}_set=no;;
|
|
|
2214 |
esac
|
|
|
2215 |
rm -f conftest.make
|
|
|
2216 |
fi
|
|
|
2217 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
|
|
2218 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
2219 |
echo "${ECHO_T}yes" >&6; }
|
|
|
2220 |
SET_MAKE=
|
|
|
2221 |
else
|
|
|
2222 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2223 |
echo "${ECHO_T}no" >&6; }
|
|
|
2224 |
SET_MAKE="MAKE=${MAKE-make}"
|
|
|
2225 |
fi
|
|
|
2226 |
|
|
|
2227 |
rm -rf .tst 2>/dev/null
|
|
|
2228 |
mkdir .tst 2>/dev/null
|
|
|
2229 |
if test -d .tst; then
|
|
|
2230 |
am__leading_dot=.
|
|
|
2231 |
else
|
|
|
2232 |
am__leading_dot=_
|
|
|
2233 |
fi
|
|
|
2234 |
rmdir .tst 2>/dev/null
|
|
|
2235 |
|
|
|
2236 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
|
2237 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
|
2238 |
# is not polluted with repeated "-I."
|
|
|
2239 |
am__isrc=' -I$(srcdir)'
|
|
|
2240 |
# test to see if srcdir already configured
|
|
|
2241 |
if test -f $srcdir/config.status; then
|
|
|
2242 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
|
|
2243 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
|
|
2244 |
{ (exit 1); exit 1; }; }
|
|
|
2245 |
fi
|
|
|
2246 |
fi
|
|
|
2247 |
|
|
|
2248 |
# test whether we have cygpath
|
|
|
2249 |
if test -z "$CYGPATH_W"; then
|
|
|
2250 |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
|
2251 |
CYGPATH_W='cygpath -w'
|
|
|
2252 |
else
|
|
|
2253 |
CYGPATH_W=echo
|
|
|
2254 |
fi
|
|
|
2255 |
fi
|
|
|
2256 |
|
|
|
2257 |
|
|
|
2258 |
# Define the identity of the package.
|
|
|
2259 |
PACKAGE=sidd
|
|
|
2260 |
VERSION=0.94
|
|
|
2261 |
|
|
|
2262 |
|
|
|
2263 |
cat >>confdefs.h <<_ACEOF
|
|
|
2264 |
@%:@define PACKAGE "$PACKAGE"
|
|
|
2265 |
_ACEOF
|
|
|
2266 |
|
|
|
2267 |
|
|
|
2268 |
cat >>confdefs.h <<_ACEOF
|
|
|
2269 |
@%:@define VERSION "$VERSION"
|
|
|
2270 |
_ACEOF
|
|
|
2271 |
|
|
|
2272 |
# Some tools Automake needs.
|
|
|
2273 |
|
|
|
2274 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
|
|
2275 |
|
|
|
2276 |
|
|
|
2277 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
|
|
2278 |
|
|
|
2279 |
|
|
|
2280 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
|
|
2281 |
|
|
|
2282 |
|
|
|
2283 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
|
|
2284 |
|
|
|
2285 |
|
|
|
2286 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
|
|
2287 |
|
|
|
2288 |
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
|
|
2289 |
|
|
|
2290 |
# Installed binaries are usually stripped using `strip' when the user
|
|
|
2291 |
# run `make install-strip'. However `strip' might not be the right
|
|
|
2292 |
# tool to use in cross-compilation environments, therefore Automake
|
|
|
2293 |
# will honor the `STRIP' environment variable to overrule this program.
|
|
|
2294 |
if test "$cross_compiling" != no; then
|
|
|
2295 |
if test -n "$ac_tool_prefix"; then
|
|
|
2296 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
|
2297 |
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
|
2298 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2299 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2300 |
if test "${ac_cv_prog_STRIP+set}" = set; then
|
|
|
2301 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2302 |
else
|
|
|
2303 |
if test -n "$STRIP"; then
|
|
|
2304 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
|
2305 |
else
|
|
|
2306 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2307 |
for as_dir in $PATH
|
|
|
2308 |
do
|
|
|
2309 |
IFS=$as_save_IFS
|
|
|
2310 |
test -z "$as_dir" && as_dir=.
|
|
|
2311 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2312 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2313 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
|
2314 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2315 |
break 2
|
|
|
2316 |
fi
|
|
|
2317 |
done
|
|
|
2318 |
done
|
|
|
2319 |
IFS=$as_save_IFS
|
|
|
2320 |
|
|
|
2321 |
fi
|
|
|
2322 |
fi
|
|
|
2323 |
STRIP=$ac_cv_prog_STRIP
|
|
|
2324 |
if test -n "$STRIP"; then
|
|
|
2325 |
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
|
|
2326 |
echo "${ECHO_T}$STRIP" >&6; }
|
|
|
2327 |
else
|
|
|
2328 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2329 |
echo "${ECHO_T}no" >&6; }
|
|
|
2330 |
fi
|
|
|
2331 |
|
|
|
2332 |
|
|
|
2333 |
fi
|
|
|
2334 |
if test -z "$ac_cv_prog_STRIP"; then
|
|
|
2335 |
ac_ct_STRIP=$STRIP
|
|
|
2336 |
# Extract the first word of "strip", so it can be a program name with args.
|
|
|
2337 |
set dummy strip; ac_word=$2
|
|
|
2338 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2339 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2340 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
|
|
2341 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2342 |
else
|
|
|
2343 |
if test -n "$ac_ct_STRIP"; then
|
|
|
2344 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
|
2345 |
else
|
|
|
2346 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2347 |
for as_dir in $PATH
|
|
|
2348 |
do
|
|
|
2349 |
IFS=$as_save_IFS
|
|
|
2350 |
test -z "$as_dir" && as_dir=.
|
|
|
2351 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2352 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2353 |
ac_cv_prog_ac_ct_STRIP="strip"
|
|
|
2354 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2355 |
break 2
|
|
|
2356 |
fi
|
|
|
2357 |
done
|
|
|
2358 |
done
|
|
|
2359 |
IFS=$as_save_IFS
|
|
|
2360 |
|
|
|
2361 |
fi
|
|
|
2362 |
fi
|
|
|
2363 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
|
2364 |
if test -n "$ac_ct_STRIP"; then
|
|
|
2365 |
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
|
|
2366 |
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
|
|
2367 |
else
|
|
|
2368 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2369 |
echo "${ECHO_T}no" >&6; }
|
|
|
2370 |
fi
|
|
|
2371 |
|
|
|
2372 |
if test "x$ac_ct_STRIP" = x; then
|
|
|
2373 |
STRIP=":"
|
|
|
2374 |
else
|
|
|
2375 |
case $cross_compiling:$ac_tool_warned in
|
|
|
2376 |
yes:)
|
|
|
2377 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2378 |
whose name does not start with the host triplet. If you think this
|
|
|
2379 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
2380 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2381 |
whose name does not start with the host triplet. If you think this
|
|
|
2382 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
2383 |
ac_tool_warned=yes ;;
|
|
|
2384 |
esac
|
|
|
2385 |
STRIP=$ac_ct_STRIP
|
|
|
2386 |
fi
|
|
|
2387 |
else
|
|
|
2388 |
STRIP="$ac_cv_prog_STRIP"
|
|
|
2389 |
fi
|
|
|
2390 |
|
|
|
2391 |
fi
|
|
|
2392 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
|
2393 |
|
|
|
2394 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
|
2395 |
# some platforms.
|
|
|
2396 |
# Always define AMTAR for backward compatibility.
|
|
|
2397 |
|
|
|
2398 |
AMTAR=${AMTAR-"${am_missing_run}tar"}
|
|
|
2399 |
|
|
|
2400 |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
|
|
|
2401 |
|
|
|
2402 |
|
|
|
2403 |
|
|
|
2404 |
|
|
|
2405 |
|
|
|
2406 |
|
|
|
2407 |
ac_ext=c
|
|
|
2408 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
2409 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
2410 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
2411 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
2412 |
|
|
|
2413 |
ac_ext=c
|
|
|
2414 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
2415 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
2416 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
2417 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
2418 |
if test -n "$ac_tool_prefix"; then
|
|
|
2419 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
|
|
2420 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
|
|
2421 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2422 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2423 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
|
2424 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2425 |
else
|
|
|
2426 |
if test -n "$CC"; then
|
|
|
2427 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
2428 |
else
|
|
|
2429 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2430 |
for as_dir in $PATH
|
|
|
2431 |
do
|
|
|
2432 |
IFS=$as_save_IFS
|
|
|
2433 |
test -z "$as_dir" && as_dir=.
|
|
|
2434 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2435 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2436 |
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
|
|
2437 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2438 |
break 2
|
|
|
2439 |
fi
|
|
|
2440 |
done
|
|
|
2441 |
done
|
|
|
2442 |
IFS=$as_save_IFS
|
|
|
2443 |
|
|
|
2444 |
fi
|
|
|
2445 |
fi
|
|
|
2446 |
CC=$ac_cv_prog_CC
|
|
|
2447 |
if test -n "$CC"; then
|
|
|
2448 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
|
2449 |
echo "${ECHO_T}$CC" >&6; }
|
|
|
2450 |
else
|
|
|
2451 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2452 |
echo "${ECHO_T}no" >&6; }
|
|
|
2453 |
fi
|
|
|
2454 |
|
|
|
2455 |
|
|
|
2456 |
fi
|
|
|
2457 |
if test -z "$ac_cv_prog_CC"; then
|
|
|
2458 |
ac_ct_CC=$CC
|
|
|
2459 |
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
2460 |
set dummy gcc; ac_word=$2
|
|
|
2461 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2462 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2463 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
|
2464 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2465 |
else
|
|
|
2466 |
if test -n "$ac_ct_CC"; then
|
|
|
2467 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
|
2468 |
else
|
|
|
2469 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2470 |
for as_dir in $PATH
|
|
|
2471 |
do
|
|
|
2472 |
IFS=$as_save_IFS
|
|
|
2473 |
test -z "$as_dir" && as_dir=.
|
|
|
2474 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2475 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2476 |
ac_cv_prog_ac_ct_CC="gcc"
|
|
|
2477 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2478 |
break 2
|
|
|
2479 |
fi
|
|
|
2480 |
done
|
|
|
2481 |
done
|
|
|
2482 |
IFS=$as_save_IFS
|
|
|
2483 |
|
|
|
2484 |
fi
|
|
|
2485 |
fi
|
|
|
2486 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
|
2487 |
if test -n "$ac_ct_CC"; then
|
|
|
2488 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
|
2489 |
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
|
2490 |
else
|
|
|
2491 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2492 |
echo "${ECHO_T}no" >&6; }
|
|
|
2493 |
fi
|
|
|
2494 |
|
|
|
2495 |
if test "x$ac_ct_CC" = x; then
|
|
|
2496 |
CC=""
|
|
|
2497 |
else
|
|
|
2498 |
case $cross_compiling:$ac_tool_warned in
|
|
|
2499 |
yes:)
|
|
|
2500 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2501 |
whose name does not start with the host triplet. If you think this
|
|
|
2502 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
2503 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2504 |
whose name does not start with the host triplet. If you think this
|
|
|
2505 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
2506 |
ac_tool_warned=yes ;;
|
|
|
2507 |
esac
|
|
|
2508 |
CC=$ac_ct_CC
|
|
|
2509 |
fi
|
|
|
2510 |
else
|
|
|
2511 |
CC="$ac_cv_prog_CC"
|
|
|
2512 |
fi
|
|
|
2513 |
|
|
|
2514 |
if test -z "$CC"; then
|
|
|
2515 |
if test -n "$ac_tool_prefix"; then
|
|
|
2516 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
|
|
2517 |
set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
|
|
|
2521 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2522 |
else
|
|
|
2523 |
if test -n "$CC"; then
|
|
|
2524 |
ac_cv_prog_CC="$CC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2533 |
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
|
|
2534 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2535 |
break 2
|
|
|
2536 |
fi
|
|
|
2537 |
done
|
|
|
2538 |
done
|
|
|
2539 |
IFS=$as_save_IFS
|
|
|
2540 |
|
|
|
2541 |
fi
|
|
|
2542 |
fi
|
|
|
2543 |
CC=$ac_cv_prog_CC
|
|
|
2544 |
if test -n "$CC"; then
|
|
|
2545 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
|
2546 |
echo "${ECHO_T}$CC" >&6; }
|
|
|
2547 |
else
|
|
|
2548 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2549 |
echo "${ECHO_T}no" >&6; }
|
|
|
2550 |
fi
|
|
|
2551 |
|
|
|
2552 |
|
|
|
2553 |
fi
|
|
|
2554 |
fi
|
|
|
2555 |
if test -z "$CC"; then
|
|
|
2556 |
# Extract the first word of "cc", so it can be a program name with args.
|
|
|
2557 |
set dummy cc; ac_word=$2
|
|
|
2558 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2559 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2560 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
|
2561 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2562 |
else
|
|
|
2563 |
if test -n "$CC"; then
|
|
|
2564 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
2565 |
else
|
|
|
2566 |
ac_prog_rejected=no
|
|
|
2567 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2568 |
for as_dir in $PATH
|
|
|
2569 |
do
|
|
|
2570 |
IFS=$as_save_IFS
|
|
|
2571 |
test -z "$as_dir" && as_dir=.
|
|
|
2572 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2573 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2574 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
|
|
2575 |
ac_prog_rejected=yes
|
|
|
2576 |
continue
|
|
|
2577 |
fi
|
|
|
2578 |
ac_cv_prog_CC="cc"
|
|
|
2579 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2580 |
break 2
|
|
|
2581 |
fi
|
|
|
2582 |
done
|
|
|
2583 |
done
|
|
|
2584 |
IFS=$as_save_IFS
|
|
|
2585 |
|
|
|
2586 |
if test $ac_prog_rejected = yes; then
|
|
|
2587 |
# We found a bogon in the path, so make sure we never use it.
|
|
|
2588 |
set dummy $ac_cv_prog_CC
|
|
|
2589 |
shift
|
|
|
2590 |
if test $@%:@ != 0; then
|
|
|
2591 |
# We chose a different compiler from the bogus one.
|
|
|
2592 |
# However, it has the same basename, so the bogon will be chosen
|
|
|
2593 |
# first if we set CC to just the basename; use the full file name.
|
|
|
2594 |
shift
|
|
|
2595 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
|
|
2596 |
fi
|
|
|
2597 |
fi
|
|
|
2598 |
fi
|
|
|
2599 |
fi
|
|
|
2600 |
CC=$ac_cv_prog_CC
|
|
|
2601 |
if test -n "$CC"; then
|
|
|
2602 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
|
2603 |
echo "${ECHO_T}$CC" >&6; }
|
|
|
2604 |
else
|
|
|
2605 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2606 |
echo "${ECHO_T}no" >&6; }
|
|
|
2607 |
fi
|
|
|
2608 |
|
|
|
2609 |
|
|
|
2610 |
fi
|
|
|
2611 |
if test -z "$CC"; then
|
|
|
2612 |
if test -n "$ac_tool_prefix"; then
|
|
|
2613 |
for ac_prog in cl.exe
|
|
|
2614 |
do
|
|
|
2615 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
|
2616 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
|
2617 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2618 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2619 |
if test "${ac_cv_prog_CC+set}" = set; then
|
|
|
2620 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2621 |
else
|
|
|
2622 |
if test -n "$CC"; then
|
|
|
2623 |
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
2624 |
else
|
|
|
2625 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2626 |
for as_dir in $PATH
|
|
|
2627 |
do
|
|
|
2628 |
IFS=$as_save_IFS
|
|
|
2629 |
test -z "$as_dir" && as_dir=.
|
|
|
2630 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2631 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2632 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
|
|
2633 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2634 |
break 2
|
|
|
2635 |
fi
|
|
|
2636 |
done
|
|
|
2637 |
done
|
|
|
2638 |
IFS=$as_save_IFS
|
|
|
2639 |
|
|
|
2640 |
fi
|
|
|
2641 |
fi
|
|
|
2642 |
CC=$ac_cv_prog_CC
|
|
|
2643 |
if test -n "$CC"; then
|
|
|
2644 |
{ echo "$as_me:$LINENO: result: $CC" >&5
|
|
|
2645 |
echo "${ECHO_T}$CC" >&6; }
|
|
|
2646 |
else
|
|
|
2647 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2648 |
echo "${ECHO_T}no" >&6; }
|
|
|
2649 |
fi
|
|
|
2650 |
|
|
|
2651 |
|
|
|
2652 |
test -n "$CC" && break
|
|
|
2653 |
done
|
|
|
2654 |
fi
|
|
|
2655 |
if test -z "$CC"; then
|
|
|
2656 |
ac_ct_CC=$CC
|
|
|
2657 |
for ac_prog in cl.exe
|
|
|
2658 |
do
|
|
|
2659 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
2660 |
set dummy $ac_prog; ac_word=$2
|
|
|
2661 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
2662 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
2663 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
|
|
2664 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2665 |
else
|
|
|
2666 |
if test -n "$ac_ct_CC"; then
|
|
|
2667 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
|
|
2668 |
else
|
|
|
2669 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
2670 |
for as_dir in $PATH
|
|
|
2671 |
do
|
|
|
2672 |
IFS=$as_save_IFS
|
|
|
2673 |
test -z "$as_dir" && as_dir=.
|
|
|
2674 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
2675 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
2676 |
ac_cv_prog_ac_ct_CC="$ac_prog"
|
|
|
2677 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
2678 |
break 2
|
|
|
2679 |
fi
|
|
|
2680 |
done
|
|
|
2681 |
done
|
|
|
2682 |
IFS=$as_save_IFS
|
|
|
2683 |
|
|
|
2684 |
fi
|
|
|
2685 |
fi
|
|
|
2686 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
|
|
2687 |
if test -n "$ac_ct_CC"; then
|
|
|
2688 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
|
|
2689 |
echo "${ECHO_T}$ac_ct_CC" >&6; }
|
|
|
2690 |
else
|
|
|
2691 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
2692 |
echo "${ECHO_T}no" >&6; }
|
|
|
2693 |
fi
|
|
|
2694 |
|
|
|
2695 |
|
|
|
2696 |
test -n "$ac_ct_CC" && break
|
|
|
2697 |
done
|
|
|
2698 |
|
|
|
2699 |
if test "x$ac_ct_CC" = x; then
|
|
|
2700 |
CC=""
|
|
|
2701 |
else
|
|
|
2702 |
case $cross_compiling:$ac_tool_warned in
|
|
|
2703 |
yes:)
|
|
|
2704 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2705 |
whose name does not start with the host triplet. If you think this
|
|
|
2706 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
2707 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
2708 |
whose name does not start with the host triplet. If you think this
|
|
|
2709 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
2710 |
ac_tool_warned=yes ;;
|
|
|
2711 |
esac
|
|
|
2712 |
CC=$ac_ct_CC
|
|
|
2713 |
fi
|
|
|
2714 |
fi
|
|
|
2715 |
|
|
|
2716 |
fi
|
|
|
2717 |
|
|
|
2718 |
|
|
|
2719 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
|
|
2720 |
See \`config.log' for more details." >&5
|
|
|
2721 |
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
|
|
2722 |
See \`config.log' for more details." >&2;}
|
|
|
2723 |
{ (exit 1); exit 1; }; }
|
|
|
2724 |
|
|
|
2725 |
# Provide some information about the compiler.
|
|
|
2726 |
echo "$as_me:$LINENO: checking for C compiler version" >&5
|
|
|
2727 |
ac_compiler=`set X $ac_compile; echo $2`
|
|
|
2728 |
{ (ac_try="$ac_compiler --version >&5"
|
|
|
2729 |
case "(($ac_try" in
|
|
|
2730 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2731 |
*) ac_try_echo=$ac_try;;
|
|
|
2732 |
esac
|
|
|
2733 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2734 |
(eval "$ac_compiler --version >&5") 2>&5
|
|
|
2735 |
ac_status=$?
|
|
|
2736 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2737 |
(exit $ac_status); }
|
|
|
2738 |
{ (ac_try="$ac_compiler -v >&5"
|
|
|
2739 |
case "(($ac_try" in
|
|
|
2740 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2741 |
*) ac_try_echo=$ac_try;;
|
|
|
2742 |
esac
|
|
|
2743 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2744 |
(eval "$ac_compiler -v >&5") 2>&5
|
|
|
2745 |
ac_status=$?
|
|
|
2746 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2747 |
(exit $ac_status); }
|
|
|
2748 |
{ (ac_try="$ac_compiler -V >&5"
|
|
|
2749 |
case "(($ac_try" in
|
|
|
2750 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2751 |
*) ac_try_echo=$ac_try;;
|
|
|
2752 |
esac
|
|
|
2753 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2754 |
(eval "$ac_compiler -V >&5") 2>&5
|
|
|
2755 |
ac_status=$?
|
|
|
2756 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2757 |
(exit $ac_status); }
|
|
|
2758 |
|
|
|
2759 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2760 |
/* confdefs.h. */
|
|
|
2761 |
_ACEOF
|
|
|
2762 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2763 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2764 |
/* end confdefs.h. */
|
|
|
2765 |
|
|
|
2766 |
int
|
|
|
2767 |
main ()
|
|
|
2768 |
{
|
|
|
2769 |
|
|
|
2770 |
;
|
|
|
2771 |
return 0;
|
|
|
2772 |
}
|
|
|
2773 |
_ACEOF
|
|
|
2774 |
ac_clean_files_save=$ac_clean_files
|
|
|
2775 |
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
|
|
2776 |
# Try to create an executable without -o first, disregard a.out.
|
|
|
2777 |
# It will help us diagnose broken compilers, and finding out an intuition
|
|
|
2778 |
# of exeext.
|
|
|
2779 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
|
|
2780 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
|
|
2781 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
|
|
2782 |
#
|
|
|
2783 |
# List of possible output files, starting from the most likely.
|
|
|
2784 |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
|
|
2785 |
# only as a last resort. b.out is created by i960 compilers.
|
|
|
2786 |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
|
|
2787 |
#
|
|
|
2788 |
# The IRIX 6 linker writes into existing files which may not be
|
|
|
2789 |
# executable, retaining their permissions. Remove them first so a
|
|
|
2790 |
# subsequent execution test works.
|
|
|
2791 |
ac_rmfiles=
|
|
|
2792 |
for ac_file in $ac_files
|
|
|
2793 |
do
|
|
|
2794 |
case $ac_file in
|
|
|
2795 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
|
2796 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
|
|
2797 |
esac
|
|
|
2798 |
done
|
|
|
2799 |
rm -f $ac_rmfiles
|
|
|
2800 |
|
|
|
2801 |
if { (ac_try="$ac_link_default"
|
|
|
2802 |
case "(($ac_try" in
|
|
|
2803 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2804 |
*) ac_try_echo=$ac_try;;
|
|
|
2805 |
esac
|
|
|
2806 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2807 |
(eval "$ac_link_default") 2>&5
|
|
|
2808 |
ac_status=$?
|
|
|
2809 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2810 |
(exit $ac_status); }; then
|
|
|
2811 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
|
|
2812 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
|
|
2813 |
# in a Makefile. We should not override ac_cv_exeext if it was cached,
|
|
|
2814 |
# so that the user can short-circuit this test for compilers unknown to
|
|
|
2815 |
# Autoconf.
|
|
|
2816 |
for ac_file in $ac_files ''
|
|
|
2817 |
do
|
|
|
2818 |
test -f "$ac_file" || continue
|
|
|
2819 |
case $ac_file in
|
|
|
2820 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
|
|
2821 |
;;
|
|
|
2822 |
[ab].out )
|
|
|
2823 |
# We found the default executable, but exeext='' is most
|
|
|
2824 |
# certainly right.
|
|
|
2825 |
break;;
|
|
|
2826 |
*.* )
|
|
|
2827 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
|
|
2828 |
then :; else
|
|
|
2829 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
|
2830 |
fi
|
|
|
2831 |
# We set ac_cv_exeext here because the later test for it is not
|
|
|
2832 |
# safe: cross compilers may not add the suffix if given an `-o'
|
|
|
2833 |
# argument, so we may need to know it at that point already.
|
|
|
2834 |
# Even if this section looks crufty: it has the advantage of
|
|
|
2835 |
# actually working.
|
|
|
2836 |
break;;
|
|
|
2837 |
* )
|
|
|
2838 |
break;;
|
|
|
2839 |
esac
|
|
|
2840 |
done
|
|
|
2841 |
test "$ac_cv_exeext" = no && ac_cv_exeext=
|
|
|
2842 |
|
|
|
2843 |
else
|
|
|
2844 |
ac_file=''
|
|
|
2845 |
fi
|
|
|
2846 |
|
|
|
2847 |
{ echo "$as_me:$LINENO: result: $ac_file" >&5
|
|
|
2848 |
echo "${ECHO_T}$ac_file" >&6; }
|
|
|
2849 |
if test -z "$ac_file"; then
|
|
|
2850 |
echo "$as_me: failed program was:" >&5
|
|
|
2851 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2852 |
|
|
|
2853 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
|
|
2854 |
See \`config.log' for more details." >&5
|
|
|
2855 |
echo "$as_me: error: C compiler cannot create executables
|
|
|
2856 |
See \`config.log' for more details." >&2;}
|
|
|
2857 |
{ (exit 77); exit 77; }; }
|
|
|
2858 |
fi
|
|
|
2859 |
|
|
|
2860 |
ac_exeext=$ac_cv_exeext
|
|
|
2861 |
|
|
|
2862 |
# Check that the compiler produces executables we can run. If not, either
|
|
|
2863 |
# the compiler is broken, or we cross compile.
|
|
|
2864 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
|
|
2865 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
|
|
2866 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
|
|
2867 |
# If not cross compiling, check that we can run a simple program.
|
|
|
2868 |
if test "$cross_compiling" != yes; then
|
|
|
2869 |
if { ac_try='./$ac_file'
|
|
|
2870 |
{ (case "(($ac_try" in
|
|
|
2871 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2872 |
*) ac_try_echo=$ac_try;;
|
|
|
2873 |
esac
|
|
|
2874 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2875 |
(eval "$ac_try") 2>&5
|
|
|
2876 |
ac_status=$?
|
|
|
2877 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2878 |
(exit $ac_status); }; }; then
|
|
|
2879 |
cross_compiling=no
|
|
|
2880 |
else
|
|
|
2881 |
if test "$cross_compiling" = maybe; then
|
|
|
2882 |
cross_compiling=yes
|
|
|
2883 |
else
|
|
|
2884 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
|
|
2885 |
If you meant to cross compile, use \`--host'.
|
|
|
2886 |
See \`config.log' for more details." >&5
|
|
|
2887 |
echo "$as_me: error: cannot run C compiled programs.
|
|
|
2888 |
If you meant to cross compile, use \`--host'.
|
|
|
2889 |
See \`config.log' for more details." >&2;}
|
|
|
2890 |
{ (exit 1); exit 1; }; }
|
|
|
2891 |
fi
|
|
|
2892 |
fi
|
|
|
2893 |
fi
|
|
|
2894 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
2895 |
echo "${ECHO_T}yes" >&6; }
|
|
|
2896 |
|
|
|
2897 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
|
|
2898 |
ac_clean_files=$ac_clean_files_save
|
|
|
2899 |
# Check that the compiler produces executables we can run. If not, either
|
|
|
2900 |
# the compiler is broken, or we cross compile.
|
|
|
2901 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
|
|
2902 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
|
|
2903 |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
|
|
2904 |
echo "${ECHO_T}$cross_compiling" >&6; }
|
|
|
2905 |
|
|
|
2906 |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
|
|
2907 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
|
|
2908 |
if { (ac_try="$ac_link"
|
|
|
2909 |
case "(($ac_try" in
|
|
|
2910 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2911 |
*) ac_try_echo=$ac_try;;
|
|
|
2912 |
esac
|
|
|
2913 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2914 |
(eval "$ac_link") 2>&5
|
|
|
2915 |
ac_status=$?
|
|
|
2916 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2917 |
(exit $ac_status); }; then
|
|
|
2918 |
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
|
|
2919 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
|
|
2920 |
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
|
|
2921 |
# `rm'.
|
|
|
2922 |
for ac_file in conftest.exe conftest conftest.*; do
|
|
|
2923 |
test -f "$ac_file" || continue
|
|
|
2924 |
case $ac_file in
|
|
|
2925 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
|
|
2926 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
|
|
2927 |
break;;
|
|
|
2928 |
* ) break;;
|
|
|
2929 |
esac
|
|
|
2930 |
done
|
|
|
2931 |
else
|
|
|
2932 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
|
|
2933 |
See \`config.log' for more details." >&5
|
|
|
2934 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
|
|
2935 |
See \`config.log' for more details." >&2;}
|
|
|
2936 |
{ (exit 1); exit 1; }; }
|
|
|
2937 |
fi
|
|
|
2938 |
|
|
|
2939 |
rm -f conftest$ac_cv_exeext
|
|
|
2940 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
|
|
2941 |
echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
|
|
2942 |
|
|
|
2943 |
rm -f conftest.$ac_ext
|
|
|
2944 |
EXEEXT=$ac_cv_exeext
|
|
|
2945 |
ac_exeext=$EXEEXT
|
|
|
2946 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
|
|
2947 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
|
|
2948 |
if test "${ac_cv_objext+set}" = set; then
|
|
|
2949 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
2950 |
else
|
|
|
2951 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
2952 |
/* confdefs.h. */
|
|
|
2953 |
_ACEOF
|
|
|
2954 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
2955 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
2956 |
/* end confdefs.h. */
|
|
|
2957 |
|
|
|
2958 |
int
|
|
|
2959 |
main ()
|
|
|
2960 |
{
|
|
|
2961 |
|
|
|
2962 |
;
|
|
|
2963 |
return 0;
|
|
|
2964 |
}
|
|
|
2965 |
_ACEOF
|
|
|
2966 |
rm -f conftest.o conftest.obj
|
|
|
2967 |
if { (ac_try="$ac_compile"
|
|
|
2968 |
case "(($ac_try" in
|
|
|
2969 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
2970 |
*) ac_try_echo=$ac_try;;
|
|
|
2971 |
esac
|
|
|
2972 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
2973 |
(eval "$ac_compile") 2>&5
|
|
|
2974 |
ac_status=$?
|
|
|
2975 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
2976 |
(exit $ac_status); }; then
|
|
|
2977 |
for ac_file in conftest.o conftest.obj conftest.*; do
|
|
|
2978 |
test -f "$ac_file" || continue;
|
|
|
2979 |
case $ac_file in
|
|
|
2980 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
|
|
2981 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
|
|
2982 |
break;;
|
|
|
2983 |
esac
|
|
|
2984 |
done
|
|
|
2985 |
else
|
|
|
2986 |
echo "$as_me: failed program was:" >&5
|
|
|
2987 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
2988 |
|
|
|
2989 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
|
|
2990 |
See \`config.log' for more details." >&5
|
|
|
2991 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
|
|
2992 |
See \`config.log' for more details." >&2;}
|
|
|
2993 |
{ (exit 1); exit 1; }; }
|
|
|
2994 |
fi
|
|
|
2995 |
|
|
|
2996 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
|
|
2997 |
fi
|
|
|
2998 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
|
|
2999 |
echo "${ECHO_T}$ac_cv_objext" >&6; }
|
|
|
3000 |
OBJEXT=$ac_cv_objext
|
|
|
3001 |
ac_objext=$OBJEXT
|
|
|
3002 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
|
|
3003 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
|
|
3004 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
|
|
3005 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3006 |
else
|
|
|
3007 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3008 |
/* confdefs.h. */
|
|
|
3009 |
_ACEOF
|
|
|
3010 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3011 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3012 |
/* end confdefs.h. */
|
|
|
3013 |
|
|
|
3014 |
int
|
|
|
3015 |
main ()
|
|
|
3016 |
{
|
|
|
3017 |
#ifndef __GNUC__
|
|
|
3018 |
choke me
|
|
|
3019 |
#endif
|
|
|
3020 |
|
|
|
3021 |
;
|
|
|
3022 |
return 0;
|
|
|
3023 |
}
|
|
|
3024 |
_ACEOF
|
|
|
3025 |
rm -f conftest.$ac_objext
|
|
|
3026 |
if { (ac_try="$ac_compile"
|
|
|
3027 |
case "(($ac_try" in
|
|
|
3028 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3029 |
*) ac_try_echo=$ac_try;;
|
|
|
3030 |
esac
|
|
|
3031 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3032 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3033 |
ac_status=$?
|
|
|
3034 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3035 |
rm -f conftest.er1
|
|
|
3036 |
cat conftest.err >&5
|
|
|
3037 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3038 |
(exit $ac_status); } && {
|
|
|
3039 |
test -z "$ac_c_werror_flag" ||
|
|
|
3040 |
test ! -s conftest.err
|
|
|
3041 |
} && test -s conftest.$ac_objext; then
|
|
|
3042 |
ac_compiler_gnu=yes
|
|
|
3043 |
else
|
|
|
3044 |
echo "$as_me: failed program was:" >&5
|
|
|
3045 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3046 |
|
|
|
3047 |
ac_compiler_gnu=no
|
|
|
3048 |
fi
|
|
|
3049 |
|
|
|
3050 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3051 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
|
|
3052 |
|
|
|
3053 |
fi
|
|
|
3054 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
|
|
3055 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
|
|
3056 |
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
|
|
3057 |
ac_test_CFLAGS=${CFLAGS+set}
|
|
|
3058 |
ac_save_CFLAGS=$CFLAGS
|
|
|
3059 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
|
|
3060 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
|
|
3061 |
if test "${ac_cv_prog_cc_g+set}" = set; then
|
|
|
3062 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3063 |
else
|
|
|
3064 |
ac_save_c_werror_flag=$ac_c_werror_flag
|
|
|
3065 |
ac_c_werror_flag=yes
|
|
|
3066 |
ac_cv_prog_cc_g=no
|
|
|
3067 |
CFLAGS="-g"
|
|
|
3068 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3069 |
/* confdefs.h. */
|
|
|
3070 |
_ACEOF
|
|
|
3071 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3072 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3073 |
/* end confdefs.h. */
|
|
|
3074 |
|
|
|
3075 |
int
|
|
|
3076 |
main ()
|
|
|
3077 |
{
|
|
|
3078 |
|
|
|
3079 |
;
|
|
|
3080 |
return 0;
|
|
|
3081 |
}
|
|
|
3082 |
_ACEOF
|
|
|
3083 |
rm -f conftest.$ac_objext
|
|
|
3084 |
if { (ac_try="$ac_compile"
|
|
|
3085 |
case "(($ac_try" in
|
|
|
3086 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3087 |
*) ac_try_echo=$ac_try;;
|
|
|
3088 |
esac
|
|
|
3089 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3090 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3091 |
ac_status=$?
|
|
|
3092 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3093 |
rm -f conftest.er1
|
|
|
3094 |
cat conftest.err >&5
|
|
|
3095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3096 |
(exit $ac_status); } && {
|
|
|
3097 |
test -z "$ac_c_werror_flag" ||
|
|
|
3098 |
test ! -s conftest.err
|
|
|
3099 |
} && test -s conftest.$ac_objext; then
|
|
|
3100 |
ac_cv_prog_cc_g=yes
|
|
|
3101 |
else
|
|
|
3102 |
echo "$as_me: failed program was:" >&5
|
|
|
3103 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3104 |
|
|
|
3105 |
CFLAGS=""
|
|
|
3106 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3107 |
/* confdefs.h. */
|
|
|
3108 |
_ACEOF
|
|
|
3109 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3110 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3111 |
/* end confdefs.h. */
|
|
|
3112 |
|
|
|
3113 |
int
|
|
|
3114 |
main ()
|
|
|
3115 |
{
|
|
|
3116 |
|
|
|
3117 |
;
|
|
|
3118 |
return 0;
|
|
|
3119 |
}
|
|
|
3120 |
_ACEOF
|
|
|
3121 |
rm -f conftest.$ac_objext
|
|
|
3122 |
if { (ac_try="$ac_compile"
|
|
|
3123 |
case "(($ac_try" in
|
|
|
3124 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3125 |
*) ac_try_echo=$ac_try;;
|
|
|
3126 |
esac
|
|
|
3127 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3128 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3129 |
ac_status=$?
|
|
|
3130 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3131 |
rm -f conftest.er1
|
|
|
3132 |
cat conftest.err >&5
|
|
|
3133 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3134 |
(exit $ac_status); } && {
|
|
|
3135 |
test -z "$ac_c_werror_flag" ||
|
|
|
3136 |
test ! -s conftest.err
|
|
|
3137 |
} && test -s conftest.$ac_objext; then
|
|
|
3138 |
:
|
|
|
3139 |
else
|
|
|
3140 |
echo "$as_me: failed program was:" >&5
|
|
|
3141 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3142 |
|
|
|
3143 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
|
3144 |
CFLAGS="-g"
|
|
|
3145 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3146 |
/* confdefs.h. */
|
|
|
3147 |
_ACEOF
|
|
|
3148 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3149 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3150 |
/* end confdefs.h. */
|
|
|
3151 |
|
|
|
3152 |
int
|
|
|
3153 |
main ()
|
|
|
3154 |
{
|
|
|
3155 |
|
|
|
3156 |
;
|
|
|
3157 |
return 0;
|
|
|
3158 |
}
|
|
|
3159 |
_ACEOF
|
|
|
3160 |
rm -f conftest.$ac_objext
|
|
|
3161 |
if { (ac_try="$ac_compile"
|
|
|
3162 |
case "(($ac_try" in
|
|
|
3163 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3164 |
*) ac_try_echo=$ac_try;;
|
|
|
3165 |
esac
|
|
|
3166 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3167 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3168 |
ac_status=$?
|
|
|
3169 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3170 |
rm -f conftest.er1
|
|
|
3171 |
cat conftest.err >&5
|
|
|
3172 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3173 |
(exit $ac_status); } && {
|
|
|
3174 |
test -z "$ac_c_werror_flag" ||
|
|
|
3175 |
test ! -s conftest.err
|
|
|
3176 |
} && test -s conftest.$ac_objext; then
|
|
|
3177 |
ac_cv_prog_cc_g=yes
|
|
|
3178 |
else
|
|
|
3179 |
echo "$as_me: failed program was:" >&5
|
|
|
3180 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3181 |
|
|
|
3182 |
|
|
|
3183 |
fi
|
|
|
3184 |
|
|
|
3185 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3186 |
fi
|
|
|
3187 |
|
|
|
3188 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3189 |
fi
|
|
|
3190 |
|
|
|
3191 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
3192 |
ac_c_werror_flag=$ac_save_c_werror_flag
|
|
|
3193 |
fi
|
|
|
3194 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
|
|
3195 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
|
|
3196 |
if test "$ac_test_CFLAGS" = set; then
|
|
|
3197 |
CFLAGS=$ac_save_CFLAGS
|
|
|
3198 |
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
3199 |
if test "$GCC" = yes; then
|
|
|
3200 |
CFLAGS="-g -O2"
|
|
|
3201 |
else
|
|
|
3202 |
CFLAGS="-g"
|
|
|
3203 |
fi
|
|
|
3204 |
else
|
|
|
3205 |
if test "$GCC" = yes; then
|
|
|
3206 |
CFLAGS="-O2"
|
|
|
3207 |
else
|
|
|
3208 |
CFLAGS=
|
|
|
3209 |
fi
|
|
|
3210 |
fi
|
|
|
3211 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
|
|
3212 |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
|
|
3213 |
if test "${ac_cv_prog_cc_c89+set}" = set; then
|
|
|
3214 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3215 |
else
|
|
|
3216 |
ac_cv_prog_cc_c89=no
|
|
|
3217 |
ac_save_CC=$CC
|
|
|
3218 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
3219 |
/* confdefs.h. */
|
|
|
3220 |
_ACEOF
|
|
|
3221 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
3222 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
3223 |
/* end confdefs.h. */
|
|
|
3224 |
#include <stdarg.h>
|
|
|
3225 |
#include <stdio.h>
|
|
|
3226 |
#include <sys/types.h>
|
|
|
3227 |
#include <sys/stat.h>
|
|
|
3228 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
|
3229 |
struct buf { int x; };
|
|
|
3230 |
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
|
3231 |
static char *e (p, i)
|
|
|
3232 |
char **p;
|
|
|
3233 |
int i;
|
|
|
3234 |
{
|
|
|
3235 |
return p[i];
|
|
|
3236 |
}
|
|
|
3237 |
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
|
3238 |
{
|
|
|
3239 |
char *s;
|
|
|
3240 |
va_list v;
|
|
|
3241 |
va_start (v,p);
|
|
|
3242 |
s = g (p, va_arg (v,int));
|
|
|
3243 |
va_end (v);
|
|
|
3244 |
return s;
|
|
|
3245 |
}
|
|
|
3246 |
|
|
|
3247 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
|
|
3248 |
function prototypes and stuff, but not '\xHH' hex character constants.
|
|
|
3249 |
These don't provoke an error unfortunately, instead are silently treated
|
|
|
3250 |
as 'x'. The following induces an error, until -std is added to get
|
|
|
3251 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
|
|
3252 |
array size at least. It's necessary to write '\x00'==0 to get something
|
|
|
3253 |
that's true only with -std. */
|
|
|
3254 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
|
|
3255 |
|
|
|
3256 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
|
|
3257 |
inside strings and character constants. */
|
|
|
3258 |
#define FOO(x) 'x'
|
|
|
3259 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
|
|
3260 |
|
|
|
3261 |
int test (int i, double x);
|
|
|
3262 |
struct s1 {int (*f) (int a);};
|
|
|
3263 |
struct s2 {int (*f) (double a);};
|
|
|
3264 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
|
3265 |
int argc;
|
|
|
3266 |
char **argv;
|
|
|
3267 |
int
|
|
|
3268 |
main ()
|
|
|
3269 |
{
|
|
|
3270 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
|
3271 |
;
|
|
|
3272 |
return 0;
|
|
|
3273 |
}
|
|
|
3274 |
_ACEOF
|
|
|
3275 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
|
|
3276 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
|
3277 |
do
|
|
|
3278 |
CC="$ac_save_CC $ac_arg"
|
|
|
3279 |
rm -f conftest.$ac_objext
|
|
|
3280 |
if { (ac_try="$ac_compile"
|
|
|
3281 |
case "(($ac_try" in
|
|
|
3282 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
3283 |
*) ac_try_echo=$ac_try;;
|
|
|
3284 |
esac
|
|
|
3285 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
3286 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
3287 |
ac_status=$?
|
|
|
3288 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
3289 |
rm -f conftest.er1
|
|
|
3290 |
cat conftest.err >&5
|
|
|
3291 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
3292 |
(exit $ac_status); } && {
|
|
|
3293 |
test -z "$ac_c_werror_flag" ||
|
|
|
3294 |
test ! -s conftest.err
|
|
|
3295 |
} && test -s conftest.$ac_objext; then
|
|
|
3296 |
ac_cv_prog_cc_c89=$ac_arg
|
|
|
3297 |
else
|
|
|
3298 |
echo "$as_me: failed program was:" >&5
|
|
|
3299 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
3300 |
|
|
|
3301 |
|
|
|
3302 |
fi
|
|
|
3303 |
|
|
|
3304 |
rm -f core conftest.err conftest.$ac_objext
|
|
|
3305 |
test "x$ac_cv_prog_cc_c89" != "xno" && break
|
|
|
3306 |
done
|
|
|
3307 |
rm -f conftest.$ac_ext
|
|
|
3308 |
CC=$ac_save_CC
|
|
|
3309 |
|
|
|
3310 |
fi
|
|
|
3311 |
# AC_CACHE_VAL
|
|
|
3312 |
case "x$ac_cv_prog_cc_c89" in
|
|
|
3313 |
x)
|
|
|
3314 |
{ echo "$as_me:$LINENO: result: none needed" >&5
|
|
|
3315 |
echo "${ECHO_T}none needed" >&6; } ;;
|
|
|
3316 |
xno)
|
|
|
3317 |
{ echo "$as_me:$LINENO: result: unsupported" >&5
|
|
|
3318 |
echo "${ECHO_T}unsupported" >&6; } ;;
|
|
|
3319 |
*)
|
|
|
3320 |
CC="$CC $ac_cv_prog_cc_c89"
|
|
|
3321 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
|
|
3322 |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
|
|
3323 |
esac
|
|
|
3324 |
|
|
|
3325 |
|
|
|
3326 |
ac_ext=c
|
|
|
3327 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
3328 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
3329 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
3330 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
3331 |
DEPDIR="${am__leading_dot}deps"
|
|
|
3332 |
|
|
|
3333 |
ac_config_commands="$ac_config_commands depfiles"
|
|
|
3334 |
|
|
|
3335 |
|
|
|
3336 |
am_make=${MAKE-make}
|
|
|
3337 |
cat > confinc << 'END'
|
|
|
3338 |
am__doit:
|
|
|
3339 |
@echo done
|
|
|
3340 |
.PHONY: am__doit
|
|
|
3341 |
END
|
|
|
3342 |
# If we don't find an include directive, just comment out the code.
|
|
|
3343 |
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
|
|
3344 |
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
|
|
|
3345 |
am__include="#"
|
|
|
3346 |
am__quote=
|
|
|
3347 |
_am_result=none
|
|
|
3348 |
# First try GNU make style include.
|
|
|
3349 |
echo "include confinc" > confmf
|
|
|
3350 |
# We grep out `Entering directory' and `Leaving directory'
|
|
|
3351 |
# messages which can occur if `w' ends up in MAKEFLAGS.
|
|
|
3352 |
# In particular we don't look at `^make:' because GNU make might
|
|
|
3353 |
# be invoked under some other name (usually "gmake"), in which
|
|
|
3354 |
# case it prints its new name instead of `make'.
|
|
|
3355 |
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
|
|
3356 |
am__include=include
|
|
|
3357 |
am__quote=
|
|
|
3358 |
_am_result=GNU
|
|
|
3359 |
fi
|
|
|
3360 |
# Now try BSD make style include.
|
|
|
3361 |
if test "$am__include" = "#"; then
|
|
|
3362 |
echo '.include "confinc"' > confmf
|
|
|
3363 |
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
|
|
3364 |
am__include=.include
|
|
|
3365 |
am__quote="\""
|
|
|
3366 |
_am_result=BSD
|
|
|
3367 |
fi
|
|
|
3368 |
fi
|
|
|
3369 |
|
|
|
3370 |
|
|
|
3371 |
{ echo "$as_me:$LINENO: result: $_am_result" >&5
|
|
|
3372 |
echo "${ECHO_T}$_am_result" >&6; }
|
|
|
3373 |
rm -f confinc confmf
|
|
|
3374 |
|
|
|
3375 |
# Check whether --enable-dependency-tracking was given.
|
|
|
3376 |
if test "${enable_dependency_tracking+set}" = set; then
|
|
|
3377 |
enableval=$enable_dependency_tracking;
|
|
|
3378 |
fi
|
|
|
3379 |
|
|
|
3380 |
if test "x$enable_dependency_tracking" != xno; then
|
|
|
3381 |
am_depcomp="$ac_aux_dir/depcomp"
|
|
|
3382 |
AMDEPBACKSLASH='\'
|
|
|
3383 |
fi
|
|
|
3384 |
if test "x$enable_dependency_tracking" != xno; then
|
|
|
3385 |
AMDEP_TRUE=
|
|
|
3386 |
AMDEP_FALSE='#'
|
|
|
3387 |
else
|
|
|
3388 |
AMDEP_TRUE='#'
|
|
|
3389 |
AMDEP_FALSE=
|
|
|
3390 |
fi
|
|
|
3391 |
|
|
|
3392 |
|
|
|
3393 |
|
|
|
3394 |
depcc="$CC" am_compiler_list=
|
|
|
3395 |
|
|
|
3396 |
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
|
|
3397 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
|
|
3398 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
|
|
3399 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3400 |
else
|
|
|
3401 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
|
3402 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
|
3403 |
# making bogus files that we don't know about and never remove. For
|
|
|
3404 |
# instance it was reported that on HP-UX the gcc test will end up
|
|
|
3405 |
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
|
3406 |
# in D'.
|
|
|
3407 |
mkdir conftest.dir
|
|
|
3408 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
|
3409 |
# using a relative directory.
|
|
|
3410 |
cp "$am_depcomp" conftest.dir
|
|
|
3411 |
cd conftest.dir
|
|
|
3412 |
# We will build objects and dependencies in a subdirectory because
|
|
|
3413 |
# it helps to detect inapplicable dependency modes. For instance
|
|
|
3414 |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
|
3415 |
# side effect of compilation, but ICC will put the dependencies in
|
|
|
3416 |
# the current directory while Tru64 will put them in the object
|
|
|
3417 |
# directory.
|
|
|
3418 |
mkdir sub
|
|
|
3419 |
|
|
|
3420 |
am_cv_CC_dependencies_compiler_type=none
|
|
|
3421 |
if test "$am_compiler_list" = ""; then
|
|
|
3422 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
|
|
3423 |
fi
|
|
|
3424 |
for depmode in $am_compiler_list; do
|
|
|
3425 |
# Setup a source with many dependencies, because some compilers
|
|
|
3426 |
# like to wrap large dependency lists on column 80 (with \), and
|
|
|
3427 |
# we should not choose a depcomp mode which is confused by this.
|
|
|
3428 |
#
|
|
|
3429 |
# We need to recreate these files for each test, as the compiler may
|
|
|
3430 |
# overwrite some of them when testing with obscure command lines.
|
|
|
3431 |
# This happens at least with the AIX C compiler.
|
|
|
3432 |
: > sub/conftest.c
|
|
|
3433 |
for i in 1 2 3 4 5 6; do
|
|
|
3434 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
|
3435 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|
|
3436 |
# Solaris 8's {/usr,}/bin/sh.
|
|
|
3437 |
touch sub/conftst$i.h
|
|
|
3438 |
done
|
|
|
3439 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
|
3440 |
|
|
|
3441 |
case $depmode in
|
|
|
3442 |
nosideeffect)
|
|
|
3443 |
# after this tag, mechanisms are not by side-effect, so they'll
|
|
|
3444 |
# only be used when explicitly requested
|
|
|
3445 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
|
3446 |
continue
|
|
|
3447 |
else
|
|
|
3448 |
break
|
|
|
3449 |
fi
|
|
|
3450 |
;;
|
|
|
3451 |
none) break ;;
|
|
|
3452 |
esac
|
|
|
3453 |
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
|
3454 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
|
3455 |
# handle `-M -o', and we need to detect this.
|
|
|
3456 |
if depmode=$depmode \
|
|
|
3457 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
|
|
3458 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
|
3459 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
|
|
3460 |
>/dev/null 2>conftest.err &&
|
|
|
3461 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
3462 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
3463 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
3464 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
|
3465 |
# icc doesn't choke on unknown options, it will just issue warnings
|
|
|
3466 |
# or remarks (even with -Werror). So we grep stderr for any message
|
|
|
3467 |
# that says an option was ignored or not supported.
|
|
|
3468 |
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
|
3469 |
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
|
3470 |
# The diagnosis changed in icc 8.0:
|
|
|
3471 |
# icc: Command line remark: option '-MP' not supported
|
|
|
3472 |
if (grep 'ignoring option' conftest.err ||
|
|
|
3473 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
|
3474 |
am_cv_CC_dependencies_compiler_type=$depmode
|
|
|
3475 |
break
|
|
|
3476 |
fi
|
|
|
3477 |
fi
|
|
|
3478 |
done
|
|
|
3479 |
|
|
|
3480 |
cd ..
|
|
|
3481 |
rm -rf conftest.dir
|
|
|
3482 |
else
|
|
|
3483 |
am_cv_CC_dependencies_compiler_type=none
|
|
|
3484 |
fi
|
|
|
3485 |
|
|
|
3486 |
fi
|
|
|
3487 |
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
|
|
3488 |
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
|
|
|
3489 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
|
|
3490 |
|
|
|
3491 |
if
|
|
|
3492 |
test "x$enable_dependency_tracking" != xno \
|
|
|
3493 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
|
|
3494 |
am__fastdepCC_TRUE=
|
|
|
3495 |
am__fastdepCC_FALSE='#'
|
|
|
3496 |
else
|
|
|
3497 |
am__fastdepCC_TRUE='#'
|
|
|
3498 |
am__fastdepCC_FALSE=
|
|
|
3499 |
fi
|
|
|
3500 |
|
|
|
3501 |
|
|
|
3502 |
# Check whether --enable-shared was given.
|
|
|
3503 |
if test "${enable_shared+set}" = set; then
|
|
|
3504 |
enableval=$enable_shared; p=${PACKAGE-default}
|
|
|
3505 |
case $enableval in
|
|
|
3506 |
yes) enable_shared=yes ;;
|
|
|
3507 |
no) enable_shared=no ;;
|
|
|
3508 |
*)
|
|
|
3509 |
enable_shared=no
|
|
|
3510 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3511 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
3512 |
for pkg in $enableval; do
|
|
|
3513 |
IFS="$lt_save_ifs"
|
|
|
3514 |
if test "X$pkg" = "X$p"; then
|
|
|
3515 |
enable_shared=yes
|
|
|
3516 |
fi
|
|
|
3517 |
done
|
|
|
3518 |
IFS="$lt_save_ifs"
|
|
|
3519 |
;;
|
|
|
3520 |
esac
|
|
|
3521 |
else
|
|
|
3522 |
enable_shared=yes
|
|
|
3523 |
fi
|
|
|
3524 |
|
|
|
3525 |
|
|
|
3526 |
# Check whether --enable-static was given.
|
|
|
3527 |
if test "${enable_static+set}" = set; then
|
|
|
3528 |
enableval=$enable_static; p=${PACKAGE-default}
|
|
|
3529 |
case $enableval in
|
|
|
3530 |
yes) enable_static=yes ;;
|
|
|
3531 |
no) enable_static=no ;;
|
|
|
3532 |
*)
|
|
|
3533 |
enable_static=no
|
|
|
3534 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3535 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
3536 |
for pkg in $enableval; do
|
|
|
3537 |
IFS="$lt_save_ifs"
|
|
|
3538 |
if test "X$pkg" = "X$p"; then
|
|
|
3539 |
enable_static=yes
|
|
|
3540 |
fi
|
|
|
3541 |
done
|
|
|
3542 |
IFS="$lt_save_ifs"
|
|
|
3543 |
;;
|
|
|
3544 |
esac
|
|
|
3545 |
else
|
|
|
3546 |
enable_static=yes
|
|
|
3547 |
fi
|
|
|
3548 |
|
|
|
3549 |
|
|
|
3550 |
# Check whether --enable-fast-install was given.
|
|
|
3551 |
if test "${enable_fast_install+set}" = set; then
|
|
|
3552 |
enableval=$enable_fast_install; p=${PACKAGE-default}
|
|
|
3553 |
case $enableval in
|
|
|
3554 |
yes) enable_fast_install=yes ;;
|
|
|
3555 |
no) enable_fast_install=no ;;
|
|
|
3556 |
*)
|
|
|
3557 |
enable_fast_install=no
|
|
|
3558 |
# Look at the argument we got. We use all the common list separators.
|
|
|
3559 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
3560 |
for pkg in $enableval; do
|
|
|
3561 |
IFS="$lt_save_ifs"
|
|
|
3562 |
if test "X$pkg" = "X$p"; then
|
|
|
3563 |
enable_fast_install=yes
|
|
|
3564 |
fi
|
|
|
3565 |
done
|
|
|
3566 |
IFS="$lt_save_ifs"
|
|
|
3567 |
;;
|
|
|
3568 |
esac
|
|
|
3569 |
else
|
|
|
3570 |
enable_fast_install=yes
|
|
|
3571 |
fi
|
|
|
3572 |
|
|
|
3573 |
|
|
|
3574 |
# Make sure we can run config.sub.
|
|
|
3575 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
|
|
3576 |
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
|
|
3577 |
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
|
|
3578 |
{ (exit 1); exit 1; }; }
|
|
|
3579 |
|
|
|
3580 |
{ echo "$as_me:$LINENO: checking build system type" >&5
|
|
|
3581 |
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
|
|
3582 |
if test "${ac_cv_build+set}" = set; then
|
|
|
3583 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3584 |
else
|
|
|
3585 |
ac_build_alias=$build_alias
|
|
|
3586 |
test "x$ac_build_alias" = x &&
|
|
|
3587 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
|
|
3588 |
test "x$ac_build_alias" = x &&
|
|
|
3589 |
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
|
|
3590 |
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
|
|
3591 |
{ (exit 1); exit 1; }; }
|
|
|
3592 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
|
|
3593 |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
|
|
3594 |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
|
|
3595 |
{ (exit 1); exit 1; }; }
|
|
|
3596 |
|
|
|
3597 |
fi
|
|
|
3598 |
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
|
|
3599 |
echo "${ECHO_T}$ac_cv_build" >&6; }
|
|
|
3600 |
case $ac_cv_build in
|
|
|
3601 |
*-*-*) ;;
|
|
|
3602 |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
|
|
3603 |
echo "$as_me: error: invalid value of canonical build" >&2;}
|
|
|
3604 |
{ (exit 1); exit 1; }; };;
|
|
|
3605 |
esac
|
|
|
3606 |
build=$ac_cv_build
|
|
|
3607 |
ac_save_IFS=$IFS; IFS='-'
|
|
|
3608 |
set x $ac_cv_build
|
|
|
3609 |
shift
|
|
|
3610 |
build_cpu=$1
|
|
|
3611 |
build_vendor=$2
|
|
|
3612 |
shift; shift
|
|
|
3613 |
# Remember, the first character of IFS is used to create $*,
|
|
|
3614 |
# except with old shells:
|
|
|
3615 |
build_os=$*
|
|
|
3616 |
IFS=$ac_save_IFS
|
|
|
3617 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
|
|
3618 |
|
|
|
3619 |
|
|
|
3620 |
{ echo "$as_me:$LINENO: checking host system type" >&5
|
|
|
3621 |
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
|
|
3622 |
if test "${ac_cv_host+set}" = set; then
|
|
|
3623 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3624 |
else
|
|
|
3625 |
if test "x$host_alias" = x; then
|
|
|
3626 |
ac_cv_host=$ac_cv_build
|
|
|
3627 |
else
|
|
|
3628 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
|
|
3629 |
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
|
|
3630 |
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
|
|
3631 |
{ (exit 1); exit 1; }; }
|
|
|
3632 |
fi
|
|
|
3633 |
|
|
|
3634 |
fi
|
|
|
3635 |
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
|
|
3636 |
echo "${ECHO_T}$ac_cv_host" >&6; }
|
|
|
3637 |
case $ac_cv_host in
|
|
|
3638 |
*-*-*) ;;
|
|
|
3639 |
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
|
|
3640 |
echo "$as_me: error: invalid value of canonical host" >&2;}
|
|
|
3641 |
{ (exit 1); exit 1; }; };;
|
|
|
3642 |
esac
|
|
|
3643 |
host=$ac_cv_host
|
|
|
3644 |
ac_save_IFS=$IFS; IFS='-'
|
|
|
3645 |
set x $ac_cv_host
|
|
|
3646 |
shift
|
|
|
3647 |
host_cpu=$1
|
|
|
3648 |
host_vendor=$2
|
|
|
3649 |
shift; shift
|
|
|
3650 |
# Remember, the first character of IFS is used to create $*,
|
|
|
3651 |
# except with old shells:
|
|
|
3652 |
host_os=$*
|
|
|
3653 |
IFS=$ac_save_IFS
|
|
|
3654 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
|
|
3655 |
|
|
|
3656 |
|
|
|
3657 |
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
|
|
|
3658 |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
|
|
|
3659 |
if test "${lt_cv_path_SED+set}" = set; then
|
|
|
3660 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3661 |
else
|
|
|
3662 |
# Loop through the user's path and test for sed and gsed.
|
|
|
3663 |
# Then use that list of sed's as ones to test for truncation.
|
|
|
3664 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
3665 |
for as_dir in $PATH
|
|
|
3666 |
do
|
|
|
3667 |
IFS=$as_save_IFS
|
|
|
3668 |
test -z "$as_dir" && as_dir=.
|
|
|
3669 |
for lt_ac_prog in sed gsed; do
|
|
|
3670 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
3671 |
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
|
|
|
3672 |
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
|
|
3673 |
fi
|
|
|
3674 |
done
|
|
|
3675 |
done
|
|
|
3676 |
done
|
|
|
3677 |
IFS=$as_save_IFS
|
|
|
3678 |
lt_ac_max=0
|
|
|
3679 |
lt_ac_count=0
|
|
|
3680 |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
|
|
3681 |
# along with /bin/sed that truncates output.
|
|
|
3682 |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
|
|
3683 |
test ! -f $lt_ac_sed && continue
|
|
|
3684 |
cat /dev/null > conftest.in
|
|
|
3685 |
lt_ac_count=0
|
|
|
3686 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
|
|
3687 |
# Check for GNU sed and select it if it is found.
|
|
|
3688 |
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
|
|
3689 |
lt_cv_path_SED=$lt_ac_sed
|
|
|
3690 |
break
|
|
|
3691 |
fi
|
|
|
3692 |
while true; do
|
|
|
3693 |
cat conftest.in conftest.in >conftest.tmp
|
|
|
3694 |
mv conftest.tmp conftest.in
|
|
|
3695 |
cp conftest.in conftest.nl
|
|
|
3696 |
echo >>conftest.nl
|
|
|
3697 |
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
|
|
3698 |
cmp -s conftest.out conftest.nl || break
|
|
|
3699 |
# 10000 chars as input seems more than enough
|
|
|
3700 |
test $lt_ac_count -gt 10 && break
|
|
|
3701 |
lt_ac_count=`expr $lt_ac_count + 1`
|
|
|
3702 |
if test $lt_ac_count -gt $lt_ac_max; then
|
|
|
3703 |
lt_ac_max=$lt_ac_count
|
|
|
3704 |
lt_cv_path_SED=$lt_ac_sed
|
|
|
3705 |
fi
|
|
|
3706 |
done
|
|
|
3707 |
done
|
|
|
3708 |
|
|
|
3709 |
fi
|
|
|
3710 |
|
|
|
3711 |
SED=$lt_cv_path_SED
|
|
|
3712 |
|
|
|
3713 |
{ echo "$as_me:$LINENO: result: $SED" >&5
|
|
|
3714 |
echo "${ECHO_T}$SED" >&6; }
|
|
|
3715 |
|
|
|
3716 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
|
|
3717 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
|
|
3718 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
|
3719 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3720 |
else
|
|
|
3721 |
# Extract the first word of "grep ggrep" to use in msg output
|
|
|
3722 |
if test -z "$GREP"; then
|
|
|
3723 |
set dummy grep ggrep; ac_prog_name=$2
|
|
|
3724 |
if test "${ac_cv_path_GREP+set}" = set; then
|
|
|
3725 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3726 |
else
|
|
|
3727 |
ac_path_GREP_found=false
|
|
|
3728 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
3729 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
3730 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
3731 |
do
|
|
|
3732 |
IFS=$as_save_IFS
|
|
|
3733 |
test -z "$as_dir" && as_dir=.
|
|
|
3734 |
for ac_prog in grep ggrep; do
|
|
|
3735 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
3736 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
3737 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
|
3738 |
# Check for GNU ac_path_GREP and select it if it is found.
|
|
|
3739 |
# Check for GNU $ac_path_GREP
|
|
|
3740 |
case `"$ac_path_GREP" --version 2>&1` in
|
|
|
3741 |
*GNU*)
|
|
|
3742 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
|
3743 |
*)
|
|
|
3744 |
ac_count=0
|
|
|
3745 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
|
3746 |
while :
|
|
|
3747 |
do
|
|
|
3748 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
3749 |
mv "conftest.tmp" "conftest.in"
|
|
|
3750 |
cp "conftest.in" "conftest.nl"
|
|
|
3751 |
echo 'GREP' >> "conftest.nl"
|
|
|
3752 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
3753 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
3754 |
ac_count=`expr $ac_count + 1`
|
|
|
3755 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
|
3756 |
# Best one so far, save it but keep looking for a better one
|
|
|
3757 |
ac_cv_path_GREP="$ac_path_GREP"
|
|
|
3758 |
ac_path_GREP_max=$ac_count
|
|
|
3759 |
fi
|
|
|
3760 |
# 10*(2^10) chars as input seems more than enough
|
|
|
3761 |
test $ac_count -gt 10 && break
|
|
|
3762 |
done
|
|
|
3763 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
3764 |
esac
|
|
|
3765 |
|
|
|
3766 |
|
|
|
3767 |
$ac_path_GREP_found && break 3
|
|
|
3768 |
done
|
|
|
3769 |
done
|
|
|
3770 |
|
|
|
3771 |
done
|
|
|
3772 |
IFS=$as_save_IFS
|
|
|
3773 |
|
|
|
3774 |
|
|
|
3775 |
fi
|
|
|
3776 |
|
|
|
3777 |
GREP="$ac_cv_path_GREP"
|
|
|
3778 |
if test -z "$GREP"; then
|
|
|
3779 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
|
3780 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
|
3781 |
{ (exit 1); exit 1; }; }
|
|
|
3782 |
fi
|
|
|
3783 |
|
|
|
3784 |
else
|
|
|
3785 |
ac_cv_path_GREP=$GREP
|
|
|
3786 |
fi
|
|
|
3787 |
|
|
|
3788 |
|
|
|
3789 |
fi
|
|
|
3790 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
|
|
3791 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
|
|
3792 |
GREP="$ac_cv_path_GREP"
|
|
|
3793 |
|
|
|
3794 |
|
|
|
3795 |
{ echo "$as_me:$LINENO: checking for egrep" >&5
|
|
|
3796 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
|
|
3797 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
|
3798 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3799 |
else
|
|
|
3800 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
|
3801 |
then ac_cv_path_EGREP="$GREP -E"
|
|
|
3802 |
else
|
|
|
3803 |
# Extract the first word of "egrep" to use in msg output
|
|
|
3804 |
if test -z "$EGREP"; then
|
|
|
3805 |
set dummy egrep; ac_prog_name=$2
|
|
|
3806 |
if test "${ac_cv_path_EGREP+set}" = set; then
|
|
|
3807 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3808 |
else
|
|
|
3809 |
ac_path_EGREP_found=false
|
|
|
3810 |
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
3811 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
3812 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
3813 |
do
|
|
|
3814 |
IFS=$as_save_IFS
|
|
|
3815 |
test -z "$as_dir" && as_dir=.
|
|
|
3816 |
for ac_prog in egrep; do
|
|
|
3817 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
3818 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
3819 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
|
3820 |
# Check for GNU ac_path_EGREP and select it if it is found.
|
|
|
3821 |
# Check for GNU $ac_path_EGREP
|
|
|
3822 |
case `"$ac_path_EGREP" --version 2>&1` in
|
|
|
3823 |
*GNU*)
|
|
|
3824 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
|
3825 |
*)
|
|
|
3826 |
ac_count=0
|
|
|
3827 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
|
|
3828 |
while :
|
|
|
3829 |
do
|
|
|
3830 |
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
3831 |
mv "conftest.tmp" "conftest.in"
|
|
|
3832 |
cp "conftest.in" "conftest.nl"
|
|
|
3833 |
echo 'EGREP' >> "conftest.nl"
|
|
|
3834 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
3835 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
3836 |
ac_count=`expr $ac_count + 1`
|
|
|
3837 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
|
3838 |
# Best one so far, save it but keep looking for a better one
|
|
|
3839 |
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
|
3840 |
ac_path_EGREP_max=$ac_count
|
|
|
3841 |
fi
|
|
|
3842 |
# 10*(2^10) chars as input seems more than enough
|
|
|
3843 |
test $ac_count -gt 10 && break
|
|
|
3844 |
done
|
|
|
3845 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
3846 |
esac
|
|
|
3847 |
|
|
|
3848 |
|
|
|
3849 |
$ac_path_EGREP_found && break 3
|
|
|
3850 |
done
|
|
|
3851 |
done
|
|
|
3852 |
|
|
|
3853 |
done
|
|
|
3854 |
IFS=$as_save_IFS
|
|
|
3855 |
|
|
|
3856 |
|
|
|
3857 |
fi
|
|
|
3858 |
|
|
|
3859 |
EGREP="$ac_cv_path_EGREP"
|
|
|
3860 |
if test -z "$EGREP"; then
|
|
|
3861 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
|
|
3862 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
|
|
3863 |
{ (exit 1); exit 1; }; }
|
|
|
3864 |
fi
|
|
|
3865 |
|
|
|
3866 |
else
|
|
|
3867 |
ac_cv_path_EGREP=$EGREP
|
|
|
3868 |
fi
|
|
|
3869 |
|
|
|
3870 |
|
|
|
3871 |
fi
|
|
|
3872 |
fi
|
|
|
3873 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
|
|
3874 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
|
|
3875 |
EGREP="$ac_cv_path_EGREP"
|
|
|
3876 |
|
|
|
3877 |
|
|
|
3878 |
|
|
|
3879 |
# Check whether --with-gnu-ld was given.
|
|
|
3880 |
if test "${with_gnu_ld+set}" = set; then
|
|
|
3881 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
|
|
3882 |
else
|
|
|
3883 |
with_gnu_ld=no
|
|
|
3884 |
fi
|
|
|
3885 |
|
|
|
3886 |
ac_prog=ld
|
|
|
3887 |
if test "$GCC" = yes; then
|
|
|
3888 |
# Check if gcc -print-prog-name=ld gives a path.
|
|
|
3889 |
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
|
|
3890 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
|
|
3891 |
case $host in
|
|
|
3892 |
*-*-mingw*)
|
|
|
3893 |
# gcc leaves a trailing carriage return which upsets mingw
|
|
|
3894 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
|
3895 |
*)
|
|
|
3896 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
|
3897 |
esac
|
|
|
3898 |
case $ac_prog in
|
|
|
3899 |
# Accept absolute paths.
|
|
|
3900 |
[\\/]* | ?:[\\/]*)
|
|
|
3901 |
re_direlt='/[^/][^/]*/\.\./'
|
|
|
3902 |
# Canonicalize the pathname of ld
|
|
|
3903 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
|
|
3904 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|
|
3905 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
|
|
3906 |
done
|
|
|
3907 |
test -z "$LD" && LD="$ac_prog"
|
|
|
3908 |
;;
|
|
|
3909 |
"")
|
|
|
3910 |
# If it fails, then pretend we aren't using GCC.
|
|
|
3911 |
ac_prog=ld
|
|
|
3912 |
;;
|
|
|
3913 |
*)
|
|
|
3914 |
# If it is relative, then search for the first ld in PATH.
|
|
|
3915 |
with_gnu_ld=unknown
|
|
|
3916 |
;;
|
|
|
3917 |
esac
|
|
|
3918 |
elif test "$with_gnu_ld" = yes; then
|
|
|
3919 |
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
|
|
3920 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
|
|
3921 |
else
|
|
|
3922 |
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
|
|
3923 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
|
|
3924 |
fi
|
|
|
3925 |
if test "${lt_cv_path_LD+set}" = set; then
|
|
|
3926 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3927 |
else
|
|
|
3928 |
if test -z "$LD"; then
|
|
|
3929 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
3930 |
for ac_dir in $PATH; do
|
|
|
3931 |
IFS="$lt_save_ifs"
|
|
|
3932 |
test -z "$ac_dir" && ac_dir=.
|
|
|
3933 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
|
3934 |
lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
|
3935 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
|
3936 |
# but apparently some variants of GNU ld only accept -v.
|
|
|
3937 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
|
3938 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
|
3939 |
*GNU* | *'with BFD'*)
|
|
|
3940 |
test "$with_gnu_ld" != no && break
|
|
|
3941 |
;;
|
|
|
3942 |
*)
|
|
|
3943 |
test "$with_gnu_ld" != yes && break
|
|
|
3944 |
;;
|
|
|
3945 |
esac
|
|
|
3946 |
fi
|
|
|
3947 |
done
|
|
|
3948 |
IFS="$lt_save_ifs"
|
|
|
3949 |
else
|
|
|
3950 |
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
|
3951 |
fi
|
|
|
3952 |
fi
|
|
|
3953 |
|
|
|
3954 |
LD="$lt_cv_path_LD"
|
|
|
3955 |
if test -n "$LD"; then
|
|
|
3956 |
{ echo "$as_me:$LINENO: result: $LD" >&5
|
|
|
3957 |
echo "${ECHO_T}$LD" >&6; }
|
|
|
3958 |
else
|
|
|
3959 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
3960 |
echo "${ECHO_T}no" >&6; }
|
|
|
3961 |
fi
|
|
|
3962 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
|
|
3963 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
|
|
3964 |
{ (exit 1); exit 1; }; }
|
|
|
3965 |
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
|
|
3966 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
|
|
3967 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
|
|
3968 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3969 |
else
|
|
|
3970 |
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
|
3971 |
case `$LD -v 2>&1 </dev/null` in
|
|
|
3972 |
*GNU* | *'with BFD'*)
|
|
|
3973 |
lt_cv_prog_gnu_ld=yes
|
|
|
3974 |
;;
|
|
|
3975 |
*)
|
|
|
3976 |
lt_cv_prog_gnu_ld=no
|
|
|
3977 |
;;
|
|
|
3978 |
esac
|
|
|
3979 |
fi
|
|
|
3980 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
|
|
3981 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
|
|
3982 |
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
3983 |
|
|
|
3984 |
|
|
|
3985 |
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
|
|
|
3986 |
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
|
|
|
3987 |
if test "${lt_cv_ld_reload_flag+set}" = set; then
|
|
|
3988 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
3989 |
else
|
|
|
3990 |
lt_cv_ld_reload_flag='-r'
|
|
|
3991 |
fi
|
|
|
3992 |
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
|
|
|
3993 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
|
|
|
3994 |
reload_flag=$lt_cv_ld_reload_flag
|
|
|
3995 |
case $reload_flag in
|
|
|
3996 |
"" | " "*) ;;
|
|
|
3997 |
*) reload_flag=" $reload_flag" ;;
|
|
|
3998 |
esac
|
|
|
3999 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
|
4000 |
case $host_os in
|
|
|
4001 |
darwin*)
|
|
|
4002 |
if test "$GCC" = yes; then
|
|
|
4003 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
|
4004 |
else
|
|
|
4005 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
|
4006 |
fi
|
|
|
4007 |
;;
|
|
|
4008 |
esac
|
|
|
4009 |
|
|
|
4010 |
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
|
|
|
4011 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
|
|
|
4012 |
if test "${lt_cv_path_NM+set}" = set; then
|
|
|
4013 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4014 |
else
|
|
|
4015 |
if test -n "$NM"; then
|
|
|
4016 |
# Let the user override the test.
|
|
|
4017 |
lt_cv_path_NM="$NM"
|
|
|
4018 |
else
|
|
|
4019 |
lt_nm_to_check="${ac_tool_prefix}nm"
|
|
|
4020 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
|
4021 |
lt_nm_to_check="$lt_nm_to_check nm"
|
|
|
4022 |
fi
|
|
|
4023 |
for lt_tmp_nm in $lt_nm_to_check; do
|
|
|
4024 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
4025 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
|
4026 |
IFS="$lt_save_ifs"
|
|
|
4027 |
test -z "$ac_dir" && ac_dir=.
|
|
|
4028 |
tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
|
4029 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
|
4030 |
# Check to see if the nm accepts a BSD-compat flag.
|
|
|
4031 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
|
4032 |
# nm: unknown option "B" ignored
|
|
|
4033 |
# Tru64's nm complains that /dev/null is an invalid object file
|
|
|
4034 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
|
4035 |
*/dev/null* | *'Invalid file or object type'*)
|
|
|
4036 |
lt_cv_path_NM="$tmp_nm -B"
|
|
|
4037 |
break
|
|
|
4038 |
;;
|
|
|
4039 |
*)
|
|
|
4040 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
|
4041 |
*/dev/null*)
|
|
|
4042 |
lt_cv_path_NM="$tmp_nm -p"
|
|
|
4043 |
break
|
|
|
4044 |
;;
|
|
|
4045 |
*)
|
|
|
4046 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
|
4047 |
continue # so that we can try to find one that supports BSD flags
|
|
|
4048 |
;;
|
|
|
4049 |
esac
|
|
|
4050 |
;;
|
|
|
4051 |
esac
|
|
|
4052 |
fi
|
|
|
4053 |
done
|
|
|
4054 |
IFS="$lt_save_ifs"
|
|
|
4055 |
done
|
|
|
4056 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|
|
4057 |
fi
|
|
|
4058 |
fi
|
|
|
4059 |
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
|
|
|
4060 |
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
|
|
|
4061 |
NM="$lt_cv_path_NM"
|
|
|
4062 |
|
|
|
4063 |
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
|
|
4064 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
|
|
|
4065 |
LN_S=$as_ln_s
|
|
|
4066 |
if test "$LN_S" = "ln -s"; then
|
|
|
4067 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
4068 |
echo "${ECHO_T}yes" >&6; }
|
|
|
4069 |
else
|
|
|
4070 |
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
|
|
4071 |
echo "${ECHO_T}no, using $LN_S" >&6; }
|
|
|
4072 |
fi
|
|
|
4073 |
|
|
|
4074 |
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
|
|
|
4075 |
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
|
|
|
4076 |
if test "${lt_cv_deplibs_check_method+set}" = set; then
|
|
|
4077 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4078 |
else
|
|
|
4079 |
lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|
|
4080 |
lt_cv_file_magic_test_file=
|
|
|
4081 |
lt_cv_deplibs_check_method='unknown'
|
|
|
4082 |
# Need to set the preceding variable on all platforms that support
|
|
|
4083 |
# interlibrary dependencies.
|
|
|
4084 |
# 'none' -- dependencies not supported.
|
|
|
4085 |
# `unknown' -- same as none, but documents that we really don't know.
|
|
|
4086 |
# 'pass_all' -- all dependencies passed with no checks.
|
|
|
4087 |
# 'test_compile' -- check by making test program.
|
|
|
4088 |
# 'file_magic [[regex]]' -- check by looking for files in library path
|
|
|
4089 |
# which responds to the $file_magic_cmd with a given extended regex.
|
|
|
4090 |
# If you have `file' or equivalent on your system and you're not sure
|
|
|
4091 |
# whether `pass_all' will *always* work, you probably want this one.
|
|
|
4092 |
|
|
|
4093 |
case $host_os in
|
|
|
4094 |
aix4* | aix5*)
|
|
|
4095 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4096 |
;;
|
|
|
4097 |
|
|
|
4098 |
beos*)
|
|
|
4099 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4100 |
;;
|
|
|
4101 |
|
|
|
4102 |
bsdi[45]*)
|
|
|
4103 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|
|
4104 |
lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|
|
4105 |
lt_cv_file_magic_test_file=/shlib/libc.so
|
|
|
4106 |
;;
|
|
|
4107 |
|
|
|
4108 |
cygwin*)
|
|
|
4109 |
# func_win32_libid is a shell function defined in ltmain.sh
|
|
|
4110 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
|
4111 |
lt_cv_file_magic_cmd='func_win32_libid'
|
|
|
4112 |
;;
|
|
|
4113 |
|
|
|
4114 |
mingw* | pw32*)
|
|
|
4115 |
# Base MSYS/MinGW do not provide the 'file' command needed by
|
|
|
4116 |
# func_win32_libid shell function, so use a weaker test based on 'objdump',
|
|
|
4117 |
# unless we find 'file', for example because we are cross-compiling.
|
|
|
4118 |
if ( file / ) >/dev/null 2>&1; then
|
|
|
4119 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
|
4120 |
lt_cv_file_magic_cmd='func_win32_libid'
|
|
|
4121 |
else
|
|
|
4122 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
|
4123 |
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
|
4124 |
fi
|
|
|
4125 |
;;
|
|
|
4126 |
|
|
|
4127 |
darwin* | rhapsody*)
|
|
|
4128 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4129 |
;;
|
|
|
4130 |
|
|
|
4131 |
freebsd* | dragonfly*)
|
|
|
4132 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
|
4133 |
case $host_cpu in
|
|
|
4134 |
i*86 )
|
|
|
4135 |
# Not sure whether the presence of OpenBSD here was a mistake.
|
|
|
4136 |
# Let's accept both of them until this is cleared up.
|
|
|
4137 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
|
|
4138 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4139 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
|
4140 |
;;
|
|
|
4141 |
esac
|
|
|
4142 |
else
|
|
|
4143 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4144 |
fi
|
|
|
4145 |
;;
|
|
|
4146 |
|
|
|
4147 |
gnu*)
|
|
|
4148 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4149 |
;;
|
|
|
4150 |
|
|
|
4151 |
hpux10.20* | hpux11*)
|
|
|
4152 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4153 |
case $host_cpu in
|
|
|
4154 |
ia64*)
|
|
|
4155 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|
|
4156 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
|
4157 |
;;
|
|
|
4158 |
hppa*64*)
|
|
|
4159 |
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]'
|
|
|
4160 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
|
|
4161 |
;;
|
|
|
4162 |
*)
|
|
|
4163 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|
|
4164 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|
|
4165 |
;;
|
|
|
4166 |
esac
|
|
|
4167 |
;;
|
|
|
4168 |
|
|
|
4169 |
interix[3-9]*)
|
|
|
4170 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
|
4171 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
|
4172 |
;;
|
|
|
4173 |
|
|
|
4174 |
irix5* | irix6* | nonstopux*)
|
|
|
4175 |
case $LD in
|
|
|
4176 |
*-32|*"-32 ") libmagic=32-bit;;
|
|
|
4177 |
*-n32|*"-n32 ") libmagic=N32;;
|
|
|
4178 |
*-64|*"-64 ") libmagic=64-bit;;
|
|
|
4179 |
*) libmagic=never-match;;
|
|
|
4180 |
esac
|
|
|
4181 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4182 |
;;
|
|
|
4183 |
|
|
|
4184 |
# This must be Linux ELF.
|
|
|
4185 |
linux* | k*bsd*-gnu)
|
|
|
4186 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4187 |
;;
|
|
|
4188 |
|
|
|
4189 |
netbsd* | netbsdelf*-gnu)
|
|
|
4190 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
|
4191 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
|
4192 |
else
|
|
|
4193 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
|
|
4194 |
fi
|
|
|
4195 |
;;
|
|
|
4196 |
|
|
|
4197 |
newos6*)
|
|
|
4198 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|
|
4199 |
lt_cv_file_magic_cmd=/usr/bin/file
|
|
|
4200 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|
|
4201 |
;;
|
|
|
4202 |
|
|
|
4203 |
nto-qnx*)
|
|
|
4204 |
lt_cv_deplibs_check_method=unknown
|
|
|
4205 |
;;
|
|
|
4206 |
|
|
|
4207 |
openbsd*)
|
|
|
4208 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
4209 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
|
|
4210 |
else
|
|
|
4211 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
|
|
4212 |
fi
|
|
|
4213 |
;;
|
|
|
4214 |
|
|
|
4215 |
osf3* | osf4* | osf5*)
|
|
|
4216 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4217 |
;;
|
|
|
4218 |
|
|
|
4219 |
rdos*)
|
|
|
4220 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4221 |
;;
|
|
|
4222 |
|
|
|
4223 |
solaris*)
|
|
|
4224 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4225 |
;;
|
|
|
4226 |
|
|
|
4227 |
sysv4 | sysv4.3*)
|
|
|
4228 |
case $host_vendor in
|
|
|
4229 |
motorola)
|
|
|
4230 |
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]'
|
|
|
4231 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|
|
4232 |
;;
|
|
|
4233 |
ncr)
|
|
|
4234 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4235 |
;;
|
|
|
4236 |
sequent)
|
|
|
4237 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4238 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
|
|
4239 |
;;
|
|
|
4240 |
sni)
|
|
|
4241 |
lt_cv_file_magic_cmd='/bin/file'
|
|
|
4242 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
|
|
4243 |
lt_cv_file_magic_test_file=/lib/libc.so
|
|
|
4244 |
;;
|
|
|
4245 |
siemens)
|
|
|
4246 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4247 |
;;
|
|
|
4248 |
pc)
|
|
|
4249 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4250 |
;;
|
|
|
4251 |
esac
|
|
|
4252 |
;;
|
|
|
4253 |
|
|
|
4254 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
4255 |
lt_cv_deplibs_check_method=pass_all
|
|
|
4256 |
;;
|
|
|
4257 |
esac
|
|
|
4258 |
|
|
|
4259 |
fi
|
|
|
4260 |
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
|
|
|
4261 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
|
|
|
4262 |
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
|
4263 |
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
|
4264 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
4265 |
|
|
|
4266 |
|
|
|
4267 |
|
|
|
4268 |
|
|
|
4269 |
# If no C compiler was specified, use CC.
|
|
|
4270 |
LTCC=${LTCC-"$CC"}
|
|
|
4271 |
|
|
|
4272 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
4273 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
4274 |
|
|
|
4275 |
# Allow CC to be a program name with arguments.
|
|
|
4276 |
compiler=$CC
|
|
|
4277 |
|
|
|
4278 |
|
|
|
4279 |
# Check whether --enable-libtool-lock was given.
|
|
|
4280 |
if test "${enable_libtool_lock+set}" = set; then
|
|
|
4281 |
enableval=$enable_libtool_lock;
|
|
|
4282 |
fi
|
|
|
4283 |
|
|
|
4284 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
4285 |
|
|
|
4286 |
# Some flags need to be propagated to the compiler or linker for good
|
|
|
4287 |
# libtool support.
|
|
|
4288 |
case $host in
|
|
|
4289 |
ia64-*-hpux*)
|
|
|
4290 |
# Find out which ABI we are using.
|
|
|
4291 |
echo 'int i;' > conftest.$ac_ext
|
|
|
4292 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
4293 |
(eval $ac_compile) 2>&5
|
|
|
4294 |
ac_status=$?
|
|
|
4295 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4296 |
(exit $ac_status); }; then
|
|
|
4297 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
4298 |
*ELF-32*)
|
|
|
4299 |
HPUX_IA64_MODE="32"
|
|
|
4300 |
;;
|
|
|
4301 |
*ELF-64*)
|
|
|
4302 |
HPUX_IA64_MODE="64"
|
|
|
4303 |
;;
|
|
|
4304 |
esac
|
|
|
4305 |
fi
|
|
|
4306 |
rm -rf conftest*
|
|
|
4307 |
;;
|
|
|
4308 |
*-*-irix6*)
|
|
|
4309 |
# Find out which ABI we are using.
|
|
|
4310 |
echo '#line __oline__ "configure"' > conftest.$ac_ext
|
|
|
4311 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
4312 |
(eval $ac_compile) 2>&5
|
|
|
4313 |
ac_status=$?
|
|
|
4314 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4315 |
(exit $ac_status); }; then
|
|
|
4316 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
4317 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
4318 |
*32-bit*)
|
|
|
4319 |
LD="${LD-ld} -melf32bsmip"
|
|
|
4320 |
;;
|
|
|
4321 |
*N32*)
|
|
|
4322 |
LD="${LD-ld} -melf32bmipn32"
|
|
|
4323 |
;;
|
|
|
4324 |
*64-bit*)
|
|
|
4325 |
LD="${LD-ld} -melf64bmip"
|
|
|
4326 |
;;
|
|
|
4327 |
esac
|
|
|
4328 |
else
|
|
|
4329 |
case `/usr/bin/file conftest.$ac_objext` in
|
|
|
4330 |
*32-bit*)
|
|
|
4331 |
LD="${LD-ld} -32"
|
|
|
4332 |
;;
|
|
|
4333 |
*N32*)
|
|
|
4334 |
LD="${LD-ld} -n32"
|
|
|
4335 |
;;
|
|
|
4336 |
*64-bit*)
|
|
|
4337 |
LD="${LD-ld} -64"
|
|
|
4338 |
;;
|
|
|
4339 |
esac
|
|
|
4340 |
fi
|
|
|
4341 |
fi
|
|
|
4342 |
rm -rf conftest*
|
|
|
4343 |
;;
|
|
|
4344 |
|
|
|
4345 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
|
|
|
4346 |
s390*-*linux*|sparc*-*linux*)
|
|
|
4347 |
# Find out which ABI we are using.
|
|
|
4348 |
echo 'int i;' > conftest.$ac_ext
|
|
|
4349 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
4350 |
(eval $ac_compile) 2>&5
|
|
|
4351 |
ac_status=$?
|
|
|
4352 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4353 |
(exit $ac_status); }; then
|
|
|
4354 |
case `/usr/bin/file conftest.o` in
|
|
|
4355 |
*32-bit*)
|
|
|
4356 |
case $host in
|
|
|
4357 |
x86_64-*kfreebsd*-gnu)
|
|
|
4358 |
LD="${LD-ld} -m elf_i386_fbsd"
|
|
|
4359 |
;;
|
|
|
4360 |
x86_64-*linux*)
|
|
|
4361 |
LD="${LD-ld} -m elf_i386"
|
|
|
4362 |
;;
|
|
|
4363 |
ppc64-*linux*|powerpc64-*linux*)
|
|
|
4364 |
LD="${LD-ld} -m elf32ppclinux"
|
|
|
4365 |
;;
|
|
|
4366 |
s390x-*linux*)
|
|
|
4367 |
LD="${LD-ld} -m elf_s390"
|
|
|
4368 |
;;
|
|
|
4369 |
sparc64-*linux*)
|
|
|
4370 |
LD="${LD-ld} -m elf32_sparc"
|
|
|
4371 |
;;
|
|
|
4372 |
esac
|
|
|
4373 |
;;
|
|
|
4374 |
*64-bit*)
|
|
|
4375 |
case $host in
|
|
|
4376 |
x86_64-*kfreebsd*-gnu)
|
|
|
4377 |
LD="${LD-ld} -m elf_x86_64_fbsd"
|
|
|
4378 |
;;
|
|
|
4379 |
x86_64-*linux*)
|
|
|
4380 |
LD="${LD-ld} -m elf_x86_64"
|
|
|
4381 |
;;
|
|
|
4382 |
ppc*-*linux*|powerpc*-*linux*)
|
|
|
4383 |
LD="${LD-ld} -m elf64ppc"
|
|
|
4384 |
;;
|
|
|
4385 |
s390*-*linux*)
|
|
|
4386 |
LD="${LD-ld} -m elf64_s390"
|
|
|
4387 |
;;
|
|
|
4388 |
sparc*-*linux*)
|
|
|
4389 |
LD="${LD-ld} -m elf64_sparc"
|
|
|
4390 |
;;
|
|
|
4391 |
esac
|
|
|
4392 |
;;
|
|
|
4393 |
esac
|
|
|
4394 |
fi
|
|
|
4395 |
rm -rf conftest*
|
|
|
4396 |
;;
|
|
|
4397 |
|
|
|
4398 |
*-*-sco3.2v5*)
|
|
|
4399 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
|
4400 |
SAVE_CFLAGS="$CFLAGS"
|
|
|
4401 |
CFLAGS="$CFLAGS -belf"
|
|
|
4402 |
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
|
|
|
4403 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
|
|
|
4404 |
if test "${lt_cv_cc_needs_belf+set}" = set; then
|
|
|
4405 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4406 |
else
|
|
|
4407 |
ac_ext=c
|
|
|
4408 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
4409 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
4410 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
4411 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
4412 |
|
|
|
4413 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4414 |
/* confdefs.h. */
|
|
|
4415 |
_ACEOF
|
|
|
4416 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4417 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4418 |
/* end confdefs.h. */
|
|
|
4419 |
|
|
|
4420 |
int
|
|
|
4421 |
main ()
|
|
|
4422 |
{
|
|
|
4423 |
|
|
|
4424 |
;
|
|
|
4425 |
return 0;
|
|
|
4426 |
}
|
|
|
4427 |
_ACEOF
|
|
|
4428 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
4429 |
if { (ac_try="$ac_link"
|
|
|
4430 |
case "(($ac_try" in
|
|
|
4431 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4432 |
*) ac_try_echo=$ac_try;;
|
|
|
4433 |
esac
|
|
|
4434 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4435 |
(eval "$ac_link") 2>conftest.er1
|
|
|
4436 |
ac_status=$?
|
|
|
4437 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4438 |
rm -f conftest.er1
|
|
|
4439 |
cat conftest.err >&5
|
|
|
4440 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4441 |
(exit $ac_status); } && {
|
|
|
4442 |
test -z "$ac_c_werror_flag" ||
|
|
|
4443 |
test ! -s conftest.err
|
|
|
4444 |
} && test -s conftest$ac_exeext &&
|
|
|
4445 |
$as_test_x conftest$ac_exeext; then
|
|
|
4446 |
lt_cv_cc_needs_belf=yes
|
|
|
4447 |
else
|
|
|
4448 |
echo "$as_me: failed program was:" >&5
|
|
|
4449 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4450 |
|
|
|
4451 |
lt_cv_cc_needs_belf=no
|
|
|
4452 |
fi
|
|
|
4453 |
|
|
|
4454 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
4455 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
4456 |
ac_ext=c
|
|
|
4457 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
4458 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
4459 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
4460 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
4461 |
|
|
|
4462 |
fi
|
|
|
4463 |
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
|
|
|
4464 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
|
|
|
4465 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
|
4466 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
|
4467 |
CFLAGS="$SAVE_CFLAGS"
|
|
|
4468 |
fi
|
|
|
4469 |
;;
|
|
|
4470 |
sparc*-*solaris*)
|
|
|
4471 |
# Find out which ABI we are using.
|
|
|
4472 |
echo 'int i;' > conftest.$ac_ext
|
|
|
4473 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
4474 |
(eval $ac_compile) 2>&5
|
|
|
4475 |
ac_status=$?
|
|
|
4476 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4477 |
(exit $ac_status); }; then
|
|
|
4478 |
case `/usr/bin/file conftest.o` in
|
|
|
4479 |
*64-bit*)
|
|
|
4480 |
case $lt_cv_prog_gnu_ld in
|
|
|
4481 |
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
|
4482 |
*) LD="${LD-ld} -64" ;;
|
|
|
4483 |
esac
|
|
|
4484 |
;;
|
|
|
4485 |
esac
|
|
|
4486 |
fi
|
|
|
4487 |
rm -rf conftest*
|
|
|
4488 |
;;
|
|
|
4489 |
|
|
|
4490 |
|
|
|
4491 |
esac
|
|
|
4492 |
|
|
|
4493 |
need_locks="$enable_libtool_lock"
|
|
|
4494 |
|
|
|
4495 |
|
|
|
4496 |
ac_ext=c
|
|
|
4497 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
4498 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
4499 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
4500 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
4501 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
|
|
4502 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
|
|
4503 |
# On Suns, sometimes $CPP names a directory.
|
|
|
4504 |
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
4505 |
CPP=
|
|
|
4506 |
fi
|
|
|
4507 |
if test -z "$CPP"; then
|
|
|
4508 |
if test "${ac_cv_prog_CPP+set}" = set; then
|
|
|
4509 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4510 |
else
|
|
|
4511 |
# Double quotes because CPP needs to be expanded
|
|
|
4512 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
|
|
4513 |
do
|
|
|
4514 |
ac_preproc_ok=false
|
|
|
4515 |
for ac_c_preproc_warn_flag in '' yes
|
|
|
4516 |
do
|
|
|
4517 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
4518 |
# with a fresh cross-compiler works.
|
|
|
4519 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
4520 |
# <limits.h> exists even on freestanding compilers.
|
|
|
4521 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
4522 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
4523 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4524 |
/* confdefs.h. */
|
|
|
4525 |
_ACEOF
|
|
|
4526 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4527 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4528 |
/* end confdefs.h. */
|
|
|
4529 |
@%:@ifdef __STDC__
|
|
|
4530 |
@%:@ include <limits.h>
|
|
|
4531 |
@%:@else
|
|
|
4532 |
@%:@ include <assert.h>
|
|
|
4533 |
@%:@endif
|
|
|
4534 |
Syntax error
|
|
|
4535 |
_ACEOF
|
|
|
4536 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
4537 |
case "(($ac_try" in
|
|
|
4538 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4539 |
*) ac_try_echo=$ac_try;;
|
|
|
4540 |
esac
|
|
|
4541 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4542 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
4543 |
ac_status=$?
|
|
|
4544 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4545 |
rm -f conftest.er1
|
|
|
4546 |
cat conftest.err >&5
|
|
|
4547 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4548 |
(exit $ac_status); } >/dev/null && {
|
|
|
4549 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
4550 |
test ! -s conftest.err
|
|
|
4551 |
}; then
|
|
|
4552 |
:
|
|
|
4553 |
else
|
|
|
4554 |
echo "$as_me: failed program was:" >&5
|
|
|
4555 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4556 |
|
|
|
4557 |
# Broken: fails on valid input.
|
|
|
4558 |
continue
|
|
|
4559 |
fi
|
|
|
4560 |
|
|
|
4561 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4562 |
|
|
|
4563 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
4564 |
# can be detected and how.
|
|
|
4565 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4566 |
/* confdefs.h. */
|
|
|
4567 |
_ACEOF
|
|
|
4568 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4569 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4570 |
/* end confdefs.h. */
|
|
|
4571 |
@%:@include <ac_nonexistent.h>
|
|
|
4572 |
_ACEOF
|
|
|
4573 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
4574 |
case "(($ac_try" in
|
|
|
4575 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4576 |
*) ac_try_echo=$ac_try;;
|
|
|
4577 |
esac
|
|
|
4578 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4579 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
4580 |
ac_status=$?
|
|
|
4581 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4582 |
rm -f conftest.er1
|
|
|
4583 |
cat conftest.err >&5
|
|
|
4584 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4585 |
(exit $ac_status); } >/dev/null && {
|
|
|
4586 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
4587 |
test ! -s conftest.err
|
|
|
4588 |
}; then
|
|
|
4589 |
# Broken: success on invalid input.
|
|
|
4590 |
continue
|
|
|
4591 |
else
|
|
|
4592 |
echo "$as_me: failed program was:" >&5
|
|
|
4593 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4594 |
|
|
|
4595 |
# Passes both tests.
|
|
|
4596 |
ac_preproc_ok=:
|
|
|
4597 |
break
|
|
|
4598 |
fi
|
|
|
4599 |
|
|
|
4600 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4601 |
|
|
|
4602 |
done
|
|
|
4603 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
4604 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4605 |
if $ac_preproc_ok; then
|
|
|
4606 |
break
|
|
|
4607 |
fi
|
|
|
4608 |
|
|
|
4609 |
done
|
|
|
4610 |
ac_cv_prog_CPP=$CPP
|
|
|
4611 |
|
|
|
4612 |
fi
|
|
|
4613 |
CPP=$ac_cv_prog_CPP
|
|
|
4614 |
else
|
|
|
4615 |
ac_cv_prog_CPP=$CPP
|
|
|
4616 |
fi
|
|
|
4617 |
{ echo "$as_me:$LINENO: result: $CPP" >&5
|
|
|
4618 |
echo "${ECHO_T}$CPP" >&6; }
|
|
|
4619 |
ac_preproc_ok=false
|
|
|
4620 |
for ac_c_preproc_warn_flag in '' yes
|
|
|
4621 |
do
|
|
|
4622 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
4623 |
# with a fresh cross-compiler works.
|
|
|
4624 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
4625 |
# <limits.h> exists even on freestanding compilers.
|
|
|
4626 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
4627 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
4628 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4629 |
/* confdefs.h. */
|
|
|
4630 |
_ACEOF
|
|
|
4631 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4632 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4633 |
/* end confdefs.h. */
|
|
|
4634 |
@%:@ifdef __STDC__
|
|
|
4635 |
@%:@ include <limits.h>
|
|
|
4636 |
@%:@else
|
|
|
4637 |
@%:@ include <assert.h>
|
|
|
4638 |
@%:@endif
|
|
|
4639 |
Syntax error
|
|
|
4640 |
_ACEOF
|
|
|
4641 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
4642 |
case "(($ac_try" in
|
|
|
4643 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4644 |
*) ac_try_echo=$ac_try;;
|
|
|
4645 |
esac
|
|
|
4646 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4647 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
4648 |
ac_status=$?
|
|
|
4649 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4650 |
rm -f conftest.er1
|
|
|
4651 |
cat conftest.err >&5
|
|
|
4652 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4653 |
(exit $ac_status); } >/dev/null && {
|
|
|
4654 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
4655 |
test ! -s conftest.err
|
|
|
4656 |
}; then
|
|
|
4657 |
:
|
|
|
4658 |
else
|
|
|
4659 |
echo "$as_me: failed program was:" >&5
|
|
|
4660 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4661 |
|
|
|
4662 |
# Broken: fails on valid input.
|
|
|
4663 |
continue
|
|
|
4664 |
fi
|
|
|
4665 |
|
|
|
4666 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4667 |
|
|
|
4668 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
4669 |
# can be detected and how.
|
|
|
4670 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4671 |
/* confdefs.h. */
|
|
|
4672 |
_ACEOF
|
|
|
4673 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4674 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4675 |
/* end confdefs.h. */
|
|
|
4676 |
@%:@include <ac_nonexistent.h>
|
|
|
4677 |
_ACEOF
|
|
|
4678 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
4679 |
case "(($ac_try" in
|
|
|
4680 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4681 |
*) ac_try_echo=$ac_try;;
|
|
|
4682 |
esac
|
|
|
4683 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4684 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
4685 |
ac_status=$?
|
|
|
4686 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4687 |
rm -f conftest.er1
|
|
|
4688 |
cat conftest.err >&5
|
|
|
4689 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4690 |
(exit $ac_status); } >/dev/null && {
|
|
|
4691 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
4692 |
test ! -s conftest.err
|
|
|
4693 |
}; then
|
|
|
4694 |
# Broken: success on invalid input.
|
|
|
4695 |
continue
|
|
|
4696 |
else
|
|
|
4697 |
echo "$as_me: failed program was:" >&5
|
|
|
4698 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4699 |
|
|
|
4700 |
# Passes both tests.
|
|
|
4701 |
ac_preproc_ok=:
|
|
|
4702 |
break
|
|
|
4703 |
fi
|
|
|
4704 |
|
|
|
4705 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4706 |
|
|
|
4707 |
done
|
|
|
4708 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
4709 |
rm -f conftest.err conftest.$ac_ext
|
|
|
4710 |
if $ac_preproc_ok; then
|
|
|
4711 |
:
|
|
|
4712 |
else
|
|
|
4713 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
4714 |
See \`config.log' for more details." >&5
|
|
|
4715 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
|
|
4716 |
See \`config.log' for more details." >&2;}
|
|
|
4717 |
{ (exit 1); exit 1; }; }
|
|
|
4718 |
fi
|
|
|
4719 |
|
|
|
4720 |
ac_ext=c
|
|
|
4721 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
4722 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
4723 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
4724 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
4725 |
|
|
|
4726 |
|
|
|
4727 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
|
|
4728 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
|
|
4729 |
if test "${ac_cv_header_stdc+set}" = set; then
|
|
|
4730 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4731 |
else
|
|
|
4732 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4733 |
/* confdefs.h. */
|
|
|
4734 |
_ACEOF
|
|
|
4735 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4736 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4737 |
/* end confdefs.h. */
|
|
|
4738 |
#include <stdlib.h>
|
|
|
4739 |
#include <stdarg.h>
|
|
|
4740 |
#include <string.h>
|
|
|
4741 |
#include <float.h>
|
|
|
4742 |
|
|
|
4743 |
int
|
|
|
4744 |
main ()
|
|
|
4745 |
{
|
|
|
4746 |
|
|
|
4747 |
;
|
|
|
4748 |
return 0;
|
|
|
4749 |
}
|
|
|
4750 |
_ACEOF
|
|
|
4751 |
rm -f conftest.$ac_objext
|
|
|
4752 |
if { (ac_try="$ac_compile"
|
|
|
4753 |
case "(($ac_try" in
|
|
|
4754 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4755 |
*) ac_try_echo=$ac_try;;
|
|
|
4756 |
esac
|
|
|
4757 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4758 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
4759 |
ac_status=$?
|
|
|
4760 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4761 |
rm -f conftest.er1
|
|
|
4762 |
cat conftest.err >&5
|
|
|
4763 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4764 |
(exit $ac_status); } && {
|
|
|
4765 |
test -z "$ac_c_werror_flag" ||
|
|
|
4766 |
test ! -s conftest.err
|
|
|
4767 |
} && test -s conftest.$ac_objext; then
|
|
|
4768 |
ac_cv_header_stdc=yes
|
|
|
4769 |
else
|
|
|
4770 |
echo "$as_me: failed program was:" >&5
|
|
|
4771 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4772 |
|
|
|
4773 |
ac_cv_header_stdc=no
|
|
|
4774 |
fi
|
|
|
4775 |
|
|
|
4776 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
4777 |
|
|
|
4778 |
if test $ac_cv_header_stdc = yes; then
|
|
|
4779 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
4780 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4781 |
/* confdefs.h. */
|
|
|
4782 |
_ACEOF
|
|
|
4783 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4784 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4785 |
/* end confdefs.h. */
|
|
|
4786 |
#include <string.h>
|
|
|
4787 |
|
|
|
4788 |
_ACEOF
|
|
|
4789 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
4790 |
$EGREP "memchr" >/dev/null 2>&1; then
|
|
|
4791 |
:
|
|
|
4792 |
else
|
|
|
4793 |
ac_cv_header_stdc=no
|
|
|
4794 |
fi
|
|
|
4795 |
rm -f conftest*
|
|
|
4796 |
|
|
|
4797 |
fi
|
|
|
4798 |
|
|
|
4799 |
if test $ac_cv_header_stdc = yes; then
|
|
|
4800 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
4801 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4802 |
/* confdefs.h. */
|
|
|
4803 |
_ACEOF
|
|
|
4804 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4805 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4806 |
/* end confdefs.h. */
|
|
|
4807 |
#include <stdlib.h>
|
|
|
4808 |
|
|
|
4809 |
_ACEOF
|
|
|
4810 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
4811 |
$EGREP "free" >/dev/null 2>&1; then
|
|
|
4812 |
:
|
|
|
4813 |
else
|
|
|
4814 |
ac_cv_header_stdc=no
|
|
|
4815 |
fi
|
|
|
4816 |
rm -f conftest*
|
|
|
4817 |
|
|
|
4818 |
fi
|
|
|
4819 |
|
|
|
4820 |
if test $ac_cv_header_stdc = yes; then
|
|
|
4821 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
4822 |
if test "$cross_compiling" = yes; then
|
|
|
4823 |
:
|
|
|
4824 |
else
|
|
|
4825 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4826 |
/* confdefs.h. */
|
|
|
4827 |
_ACEOF
|
|
|
4828 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4829 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4830 |
/* end confdefs.h. */
|
|
|
4831 |
#include <ctype.h>
|
|
|
4832 |
#include <stdlib.h>
|
|
|
4833 |
#if ((' ' & 0x0FF) == 0x020)
|
|
|
4834 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
4835 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
|
4836 |
#else
|
|
|
4837 |
# define ISLOWER(c) \
|
|
|
4838 |
(('a' <= (c) && (c) <= 'i') \
|
|
|
4839 |
|| ('j' <= (c) && (c) <= 'r') \
|
|
|
4840 |
|| ('s' <= (c) && (c) <= 'z'))
|
|
|
4841 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
|
4842 |
#endif
|
|
|
4843 |
|
|
|
4844 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
|
4845 |
int
|
|
|
4846 |
main ()
|
|
|
4847 |
{
|
|
|
4848 |
int i;
|
|
|
4849 |
for (i = 0; i < 256; i++)
|
|
|
4850 |
if (XOR (islower (i), ISLOWER (i))
|
|
|
4851 |
|| toupper (i) != TOUPPER (i))
|
|
|
4852 |
return 2;
|
|
|
4853 |
return 0;
|
|
|
4854 |
}
|
|
|
4855 |
_ACEOF
|
|
|
4856 |
rm -f conftest$ac_exeext
|
|
|
4857 |
if { (ac_try="$ac_link"
|
|
|
4858 |
case "(($ac_try" in
|
|
|
4859 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4860 |
*) ac_try_echo=$ac_try;;
|
|
|
4861 |
esac
|
|
|
4862 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4863 |
(eval "$ac_link") 2>&5
|
|
|
4864 |
ac_status=$?
|
|
|
4865 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4866 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
|
4867 |
{ (case "(($ac_try" in
|
|
|
4868 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4869 |
*) ac_try_echo=$ac_try;;
|
|
|
4870 |
esac
|
|
|
4871 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4872 |
(eval "$ac_try") 2>&5
|
|
|
4873 |
ac_status=$?
|
|
|
4874 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4875 |
(exit $ac_status); }; }; then
|
|
|
4876 |
:
|
|
|
4877 |
else
|
|
|
4878 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
|
4879 |
echo "$as_me: failed program was:" >&5
|
|
|
4880 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4881 |
|
|
|
4882 |
( exit $ac_status )
|
|
|
4883 |
ac_cv_header_stdc=no
|
|
|
4884 |
fi
|
|
|
4885 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
|
4886 |
fi
|
|
|
4887 |
|
|
|
4888 |
|
|
|
4889 |
fi
|
|
|
4890 |
fi
|
|
|
4891 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
|
|
4892 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
|
|
4893 |
if test $ac_cv_header_stdc = yes; then
|
|
|
4894 |
|
|
|
4895 |
cat >>confdefs.h <<\_ACEOF
|
|
|
4896 |
@%:@define STDC_HEADERS 1
|
|
|
4897 |
_ACEOF
|
|
|
4898 |
|
|
|
4899 |
fi
|
|
|
4900 |
|
|
|
4901 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
|
|
4902 |
|
|
|
4903 |
|
|
|
4904 |
|
|
|
4905 |
|
|
|
4906 |
|
|
|
4907 |
|
|
|
4908 |
|
|
|
4909 |
|
|
|
4910 |
|
|
|
4911 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
|
|
4912 |
inttypes.h stdint.h unistd.h
|
|
|
4913 |
do
|
|
|
4914 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
|
4915 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
4916 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
4917 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
4918 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4919 |
else
|
|
|
4920 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4921 |
/* confdefs.h. */
|
|
|
4922 |
_ACEOF
|
|
|
4923 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4924 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4925 |
/* end confdefs.h. */
|
|
|
4926 |
$ac_includes_default
|
|
|
4927 |
|
|
|
4928 |
@%:@include <$ac_header>
|
|
|
4929 |
_ACEOF
|
|
|
4930 |
rm -f conftest.$ac_objext
|
|
|
4931 |
if { (ac_try="$ac_compile"
|
|
|
4932 |
case "(($ac_try" in
|
|
|
4933 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
4934 |
*) ac_try_echo=$ac_try;;
|
|
|
4935 |
esac
|
|
|
4936 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
4937 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
4938 |
ac_status=$?
|
|
|
4939 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
4940 |
rm -f conftest.er1
|
|
|
4941 |
cat conftest.err >&5
|
|
|
4942 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
4943 |
(exit $ac_status); } && {
|
|
|
4944 |
test -z "$ac_c_werror_flag" ||
|
|
|
4945 |
test ! -s conftest.err
|
|
|
4946 |
} && test -s conftest.$ac_objext; then
|
|
|
4947 |
eval "$as_ac_Header=yes"
|
|
|
4948 |
else
|
|
|
4949 |
echo "$as_me: failed program was:" >&5
|
|
|
4950 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
4951 |
|
|
|
4952 |
eval "$as_ac_Header=no"
|
|
|
4953 |
fi
|
|
|
4954 |
|
|
|
4955 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
4956 |
fi
|
|
|
4957 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
4958 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
4959 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
4960 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
|
4961 |
cat >>confdefs.h <<_ACEOF
|
|
|
4962 |
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
|
4963 |
_ACEOF
|
|
|
4964 |
|
|
|
4965 |
fi
|
|
|
4966 |
|
|
|
4967 |
done
|
|
|
4968 |
|
|
|
4969 |
|
|
|
4970 |
|
|
|
4971 |
for ac_header in dlfcn.h
|
|
|
4972 |
do
|
|
|
4973 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
|
4974 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
4975 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
4976 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
4977 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
4978 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
4979 |
fi
|
|
|
4980 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
4981 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
4982 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
4983 |
else
|
|
|
4984 |
# Is the header compilable?
|
|
|
4985 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
|
4986 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
|
|
4987 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
4988 |
/* confdefs.h. */
|
|
|
4989 |
_ACEOF
|
|
|
4990 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
4991 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
4992 |
/* end confdefs.h. */
|
|
|
4993 |
$ac_includes_default
|
|
|
4994 |
@%:@include <$ac_header>
|
|
|
4995 |
_ACEOF
|
|
|
4996 |
rm -f conftest.$ac_objext
|
|
|
4997 |
if { (ac_try="$ac_compile"
|
|
|
4998 |
case "(($ac_try" in
|
|
|
4999 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5000 |
*) ac_try_echo=$ac_try;;
|
|
|
5001 |
esac
|
|
|
5002 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5003 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5004 |
ac_status=$?
|
|
|
5005 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5006 |
rm -f conftest.er1
|
|
|
5007 |
cat conftest.err >&5
|
|
|
5008 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5009 |
(exit $ac_status); } && {
|
|
|
5010 |
test -z "$ac_c_werror_flag" ||
|
|
|
5011 |
test ! -s conftest.err
|
|
|
5012 |
} && test -s conftest.$ac_objext; then
|
|
|
5013 |
ac_header_compiler=yes
|
|
|
5014 |
else
|
|
|
5015 |
echo "$as_me: failed program was:" >&5
|
|
|
5016 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5017 |
|
|
|
5018 |
ac_header_compiler=no
|
|
|
5019 |
fi
|
|
|
5020 |
|
|
|
5021 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
5022 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
|
5023 |
echo "${ECHO_T}$ac_header_compiler" >&6; }
|
|
|
5024 |
|
|
|
5025 |
# Is the header present?
|
|
|
5026 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
|
5027 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
|
|
5028 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5029 |
/* confdefs.h. */
|
|
|
5030 |
_ACEOF
|
|
|
5031 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5032 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5033 |
/* end confdefs.h. */
|
|
|
5034 |
@%:@include <$ac_header>
|
|
|
5035 |
_ACEOF
|
|
|
5036 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
5037 |
case "(($ac_try" in
|
|
|
5038 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5039 |
*) ac_try_echo=$ac_try;;
|
|
|
5040 |
esac
|
|
|
5041 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5042 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
5043 |
ac_status=$?
|
|
|
5044 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5045 |
rm -f conftest.er1
|
|
|
5046 |
cat conftest.err >&5
|
|
|
5047 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5048 |
(exit $ac_status); } >/dev/null && {
|
|
|
5049 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
|
5050 |
test ! -s conftest.err
|
|
|
5051 |
}; then
|
|
|
5052 |
ac_header_preproc=yes
|
|
|
5053 |
else
|
|
|
5054 |
echo "$as_me: failed program was:" >&5
|
|
|
5055 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5056 |
|
|
|
5057 |
ac_header_preproc=no
|
|
|
5058 |
fi
|
|
|
5059 |
|
|
|
5060 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5061 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
|
5062 |
echo "${ECHO_T}$ac_header_preproc" >&6; }
|
|
|
5063 |
|
|
|
5064 |
# So? What about this header?
|
|
|
5065 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
|
5066 |
yes:no: )
|
|
|
5067 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
|
5068 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
|
5069 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
|
5070 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
|
5071 |
ac_header_preproc=yes
|
|
|
5072 |
;;
|
|
|
5073 |
no:yes:* )
|
|
|
5074 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
|
5075 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
|
5076 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
|
5077 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
|
5078 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
|
5079 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
|
5080 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
|
5081 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
|
5082 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
|
5083 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
|
5084 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
|
5085 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
|
5086 |
|
|
|
5087 |
;;
|
|
|
5088 |
esac
|
|
|
5089 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
|
5090 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
|
|
5091 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
|
5092 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5093 |
else
|
|
|
5094 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
|
5095 |
fi
|
|
|
5096 |
ac_res=`eval echo '${'$as_ac_Header'}'`
|
|
|
5097 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
|
5098 |
echo "${ECHO_T}$ac_res" >&6; }
|
|
|
5099 |
|
|
|
5100 |
fi
|
|
|
5101 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
|
5102 |
cat >>confdefs.h <<_ACEOF
|
|
|
5103 |
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
|
5104 |
_ACEOF
|
|
|
5105 |
|
|
|
5106 |
fi
|
|
|
5107 |
|
|
|
5108 |
done
|
|
|
5109 |
|
|
|
5110 |
ac_ext=cpp
|
|
|
5111 |
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
5112 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
5113 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
5114 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
5115 |
if test -z "$CXX"; then
|
|
|
5116 |
if test -n "$CCC"; then
|
|
|
5117 |
CXX=$CCC
|
|
|
5118 |
else
|
|
|
5119 |
if test -n "$ac_tool_prefix"; then
|
|
|
5120 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
|
|
5121 |
do
|
|
|
5122 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
|
5123 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
|
5124 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
5125 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
5126 |
if test "${ac_cv_prog_CXX+set}" = set; then
|
|
|
5127 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5128 |
else
|
|
|
5129 |
if test -n "$CXX"; then
|
|
|
5130 |
ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
|
|
5131 |
else
|
|
|
5132 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
5133 |
for as_dir in $PATH
|
|
|
5134 |
do
|
|
|
5135 |
IFS=$as_save_IFS
|
|
|
5136 |
test -z "$as_dir" && as_dir=.
|
|
|
5137 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
5138 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
5139 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
|
|
5140 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
5141 |
break 2
|
|
|
5142 |
fi
|
|
|
5143 |
done
|
|
|
5144 |
done
|
|
|
5145 |
IFS=$as_save_IFS
|
|
|
5146 |
|
|
|
5147 |
fi
|
|
|
5148 |
fi
|
|
|
5149 |
CXX=$ac_cv_prog_CXX
|
|
|
5150 |
if test -n "$CXX"; then
|
|
|
5151 |
{ echo "$as_me:$LINENO: result: $CXX" >&5
|
|
|
5152 |
echo "${ECHO_T}$CXX" >&6; }
|
|
|
5153 |
else
|
|
|
5154 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
5155 |
echo "${ECHO_T}no" >&6; }
|
|
|
5156 |
fi
|
|
|
5157 |
|
|
|
5158 |
|
|
|
5159 |
test -n "$CXX" && break
|
|
|
5160 |
done
|
|
|
5161 |
fi
|
|
|
5162 |
if test -z "$CXX"; then
|
|
|
5163 |
ac_ct_CXX=$CXX
|
|
|
5164 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
|
|
5165 |
do
|
|
|
5166 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
5167 |
set dummy $ac_prog; ac_word=$2
|
|
|
5168 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
5169 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
5170 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
|
|
5171 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5172 |
else
|
|
|
5173 |
if test -n "$ac_ct_CXX"; then
|
|
|
5174 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
|
|
5175 |
else
|
|
|
5176 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
5177 |
for as_dir in $PATH
|
|
|
5178 |
do
|
|
|
5179 |
IFS=$as_save_IFS
|
|
|
5180 |
test -z "$as_dir" && as_dir=.
|
|
|
5181 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
5182 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
5183 |
ac_cv_prog_ac_ct_CXX="$ac_prog"
|
|
|
5184 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
5185 |
break 2
|
|
|
5186 |
fi
|
|
|
5187 |
done
|
|
|
5188 |
done
|
|
|
5189 |
IFS=$as_save_IFS
|
|
|
5190 |
|
|
|
5191 |
fi
|
|
|
5192 |
fi
|
|
|
5193 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
|
|
5194 |
if test -n "$ac_ct_CXX"; then
|
|
|
5195 |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
|
|
5196 |
echo "${ECHO_T}$ac_ct_CXX" >&6; }
|
|
|
5197 |
else
|
|
|
5198 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
5199 |
echo "${ECHO_T}no" >&6; }
|
|
|
5200 |
fi
|
|
|
5201 |
|
|
|
5202 |
|
|
|
5203 |
test -n "$ac_ct_CXX" && break
|
|
|
5204 |
done
|
|
|
5205 |
|
|
|
5206 |
if test "x$ac_ct_CXX" = x; then
|
|
|
5207 |
CXX="g++"
|
|
|
5208 |
else
|
|
|
5209 |
case $cross_compiling:$ac_tool_warned in
|
|
|
5210 |
yes:)
|
|
|
5211 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
5212 |
whose name does not start with the host triplet. If you think this
|
|
|
5213 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
5214 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
5215 |
whose name does not start with the host triplet. If you think this
|
|
|
5216 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
5217 |
ac_tool_warned=yes ;;
|
|
|
5218 |
esac
|
|
|
5219 |
CXX=$ac_ct_CXX
|
|
|
5220 |
fi
|
|
|
5221 |
fi
|
|
|
5222 |
|
|
|
5223 |
fi
|
|
|
5224 |
fi
|
|
|
5225 |
# Provide some information about the compiler.
|
|
|
5226 |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
|
|
|
5227 |
ac_compiler=`set X $ac_compile; echo $2`
|
|
|
5228 |
{ (ac_try="$ac_compiler --version >&5"
|
|
|
5229 |
case "(($ac_try" in
|
|
|
5230 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5231 |
*) ac_try_echo=$ac_try;;
|
|
|
5232 |
esac
|
|
|
5233 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5234 |
(eval "$ac_compiler --version >&5") 2>&5
|
|
|
5235 |
ac_status=$?
|
|
|
5236 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5237 |
(exit $ac_status); }
|
|
|
5238 |
{ (ac_try="$ac_compiler -v >&5"
|
|
|
5239 |
case "(($ac_try" in
|
|
|
5240 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5241 |
*) ac_try_echo=$ac_try;;
|
|
|
5242 |
esac
|
|
|
5243 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5244 |
(eval "$ac_compiler -v >&5") 2>&5
|
|
|
5245 |
ac_status=$?
|
|
|
5246 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5247 |
(exit $ac_status); }
|
|
|
5248 |
{ (ac_try="$ac_compiler -V >&5"
|
|
|
5249 |
case "(($ac_try" in
|
|
|
5250 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5251 |
*) ac_try_echo=$ac_try;;
|
|
|
5252 |
esac
|
|
|
5253 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5254 |
(eval "$ac_compiler -V >&5") 2>&5
|
|
|
5255 |
ac_status=$?
|
|
|
5256 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5257 |
(exit $ac_status); }
|
|
|
5258 |
|
|
|
5259 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
|
|
5260 |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
|
|
|
5261 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
|
|
5262 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5263 |
else
|
|
|
5264 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5265 |
/* confdefs.h. */
|
|
|
5266 |
_ACEOF
|
|
|
5267 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5268 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5269 |
/* end confdefs.h. */
|
|
|
5270 |
|
|
|
5271 |
int
|
|
|
5272 |
main ()
|
|
|
5273 |
{
|
|
|
5274 |
#ifndef __GNUC__
|
|
|
5275 |
choke me
|
|
|
5276 |
#endif
|
|
|
5277 |
|
|
|
5278 |
;
|
|
|
5279 |
return 0;
|
|
|
5280 |
}
|
|
|
5281 |
_ACEOF
|
|
|
5282 |
rm -f conftest.$ac_objext
|
|
|
5283 |
if { (ac_try="$ac_compile"
|
|
|
5284 |
case "(($ac_try" in
|
|
|
5285 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5286 |
*) ac_try_echo=$ac_try;;
|
|
|
5287 |
esac
|
|
|
5288 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5289 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5290 |
ac_status=$?
|
|
|
5291 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5292 |
rm -f conftest.er1
|
|
|
5293 |
cat conftest.err >&5
|
|
|
5294 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5295 |
(exit $ac_status); } && {
|
|
|
5296 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
5297 |
test ! -s conftest.err
|
|
|
5298 |
} && test -s conftest.$ac_objext; then
|
|
|
5299 |
ac_compiler_gnu=yes
|
|
|
5300 |
else
|
|
|
5301 |
echo "$as_me: failed program was:" >&5
|
|
|
5302 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5303 |
|
|
|
5304 |
ac_compiler_gnu=no
|
|
|
5305 |
fi
|
|
|
5306 |
|
|
|
5307 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
5308 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
|
|
5309 |
|
|
|
5310 |
fi
|
|
|
5311 |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
|
|
5312 |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
|
|
|
5313 |
GXX=`test $ac_compiler_gnu = yes && echo yes`
|
|
|
5314 |
ac_test_CXXFLAGS=${CXXFLAGS+set}
|
|
|
5315 |
ac_save_CXXFLAGS=$CXXFLAGS
|
|
|
5316 |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
|
|
5317 |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
|
|
|
5318 |
if test "${ac_cv_prog_cxx_g+set}" = set; then
|
|
|
5319 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5320 |
else
|
|
|
5321 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
|
|
5322 |
ac_cxx_werror_flag=yes
|
|
|
5323 |
ac_cv_prog_cxx_g=no
|
|
|
5324 |
CXXFLAGS="-g"
|
|
|
5325 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5326 |
/* confdefs.h. */
|
|
|
5327 |
_ACEOF
|
|
|
5328 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5329 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5330 |
/* end confdefs.h. */
|
|
|
5331 |
|
|
|
5332 |
int
|
|
|
5333 |
main ()
|
|
|
5334 |
{
|
|
|
5335 |
|
|
|
5336 |
;
|
|
|
5337 |
return 0;
|
|
|
5338 |
}
|
|
|
5339 |
_ACEOF
|
|
|
5340 |
rm -f conftest.$ac_objext
|
|
|
5341 |
if { (ac_try="$ac_compile"
|
|
|
5342 |
case "(($ac_try" in
|
|
|
5343 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5344 |
*) ac_try_echo=$ac_try;;
|
|
|
5345 |
esac
|
|
|
5346 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5347 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5348 |
ac_status=$?
|
|
|
5349 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5350 |
rm -f conftest.er1
|
|
|
5351 |
cat conftest.err >&5
|
|
|
5352 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5353 |
(exit $ac_status); } && {
|
|
|
5354 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
5355 |
test ! -s conftest.err
|
|
|
5356 |
} && test -s conftest.$ac_objext; then
|
|
|
5357 |
ac_cv_prog_cxx_g=yes
|
|
|
5358 |
else
|
|
|
5359 |
echo "$as_me: failed program was:" >&5
|
|
|
5360 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5361 |
|
|
|
5362 |
CXXFLAGS=""
|
|
|
5363 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5364 |
/* confdefs.h. */
|
|
|
5365 |
_ACEOF
|
|
|
5366 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5367 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5368 |
/* end confdefs.h. */
|
|
|
5369 |
|
|
|
5370 |
int
|
|
|
5371 |
main ()
|
|
|
5372 |
{
|
|
|
5373 |
|
|
|
5374 |
;
|
|
|
5375 |
return 0;
|
|
|
5376 |
}
|
|
|
5377 |
_ACEOF
|
|
|
5378 |
rm -f conftest.$ac_objext
|
|
|
5379 |
if { (ac_try="$ac_compile"
|
|
|
5380 |
case "(($ac_try" in
|
|
|
5381 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5382 |
*) ac_try_echo=$ac_try;;
|
|
|
5383 |
esac
|
|
|
5384 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5385 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5386 |
ac_status=$?
|
|
|
5387 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5388 |
rm -f conftest.er1
|
|
|
5389 |
cat conftest.err >&5
|
|
|
5390 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5391 |
(exit $ac_status); } && {
|
|
|
5392 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
5393 |
test ! -s conftest.err
|
|
|
5394 |
} && test -s conftest.$ac_objext; then
|
|
|
5395 |
:
|
|
|
5396 |
else
|
|
|
5397 |
echo "$as_me: failed program was:" >&5
|
|
|
5398 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5399 |
|
|
|
5400 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
|
|
5401 |
CXXFLAGS="-g"
|
|
|
5402 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5403 |
/* confdefs.h. */
|
|
|
5404 |
_ACEOF
|
|
|
5405 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5406 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5407 |
/* end confdefs.h. */
|
|
|
5408 |
|
|
|
5409 |
int
|
|
|
5410 |
main ()
|
|
|
5411 |
{
|
|
|
5412 |
|
|
|
5413 |
;
|
|
|
5414 |
return 0;
|
|
|
5415 |
}
|
|
|
5416 |
_ACEOF
|
|
|
5417 |
rm -f conftest.$ac_objext
|
|
|
5418 |
if { (ac_try="$ac_compile"
|
|
|
5419 |
case "(($ac_try" in
|
|
|
5420 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5421 |
*) ac_try_echo=$ac_try;;
|
|
|
5422 |
esac
|
|
|
5423 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5424 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5425 |
ac_status=$?
|
|
|
5426 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5427 |
rm -f conftest.er1
|
|
|
5428 |
cat conftest.err >&5
|
|
|
5429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5430 |
(exit $ac_status); } && {
|
|
|
5431 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
5432 |
test ! -s conftest.err
|
|
|
5433 |
} && test -s conftest.$ac_objext; then
|
|
|
5434 |
ac_cv_prog_cxx_g=yes
|
|
|
5435 |
else
|
|
|
5436 |
echo "$as_me: failed program was:" >&5
|
|
|
5437 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5438 |
|
|
|
5439 |
|
|
|
5440 |
fi
|
|
|
5441 |
|
|
|
5442 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
5443 |
fi
|
|
|
5444 |
|
|
|
5445 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
5446 |
fi
|
|
|
5447 |
|
|
|
5448 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
5449 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
|
|
5450 |
fi
|
|
|
5451 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
|
|
5452 |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
|
|
|
5453 |
if test "$ac_test_CXXFLAGS" = set; then
|
|
|
5454 |
CXXFLAGS=$ac_save_CXXFLAGS
|
|
|
5455 |
elif test $ac_cv_prog_cxx_g = yes; then
|
|
|
5456 |
if test "$GXX" = yes; then
|
|
|
5457 |
CXXFLAGS="-g -O2"
|
|
|
5458 |
else
|
|
|
5459 |
CXXFLAGS="-g"
|
|
|
5460 |
fi
|
|
|
5461 |
else
|
|
|
5462 |
if test "$GXX" = yes; then
|
|
|
5463 |
CXXFLAGS="-O2"
|
|
|
5464 |
else
|
|
|
5465 |
CXXFLAGS=
|
|
|
5466 |
fi
|
|
|
5467 |
fi
|
|
|
5468 |
ac_ext=cpp
|
|
|
5469 |
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
5470 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
5471 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
5472 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
5473 |
|
|
|
5474 |
depcc="$CXX" am_compiler_list=
|
|
|
5475 |
|
|
|
5476 |
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
|
|
5477 |
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
|
|
|
5478 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
|
|
5479 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5480 |
else
|
|
|
5481 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
|
5482 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
|
5483 |
# making bogus files that we don't know about and never remove. For
|
|
|
5484 |
# instance it was reported that on HP-UX the gcc test will end up
|
|
|
5485 |
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
|
5486 |
# in D'.
|
|
|
5487 |
mkdir conftest.dir
|
|
|
5488 |
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
|
5489 |
# using a relative directory.
|
|
|
5490 |
cp "$am_depcomp" conftest.dir
|
|
|
5491 |
cd conftest.dir
|
|
|
5492 |
# We will build objects and dependencies in a subdirectory because
|
|
|
5493 |
# it helps to detect inapplicable dependency modes. For instance
|
|
|
5494 |
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
|
5495 |
# side effect of compilation, but ICC will put the dependencies in
|
|
|
5496 |
# the current directory while Tru64 will put them in the object
|
|
|
5497 |
# directory.
|
|
|
5498 |
mkdir sub
|
|
|
5499 |
|
|
|
5500 |
am_cv_CXX_dependencies_compiler_type=none
|
|
|
5501 |
if test "$am_compiler_list" = ""; then
|
|
|
5502 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
|
|
5503 |
fi
|
|
|
5504 |
for depmode in $am_compiler_list; do
|
|
|
5505 |
# Setup a source with many dependencies, because some compilers
|
|
|
5506 |
# like to wrap large dependency lists on column 80 (with \), and
|
|
|
5507 |
# we should not choose a depcomp mode which is confused by this.
|
|
|
5508 |
#
|
|
|
5509 |
# We need to recreate these files for each test, as the compiler may
|
|
|
5510 |
# overwrite some of them when testing with obscure command lines.
|
|
|
5511 |
# This happens at least with the AIX C compiler.
|
|
|
5512 |
: > sub/conftest.c
|
|
|
5513 |
for i in 1 2 3 4 5 6; do
|
|
|
5514 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
|
5515 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|
|
5516 |
# Solaris 8's {/usr,}/bin/sh.
|
|
|
5517 |
touch sub/conftst$i.h
|
|
|
5518 |
done
|
|
|
5519 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
|
5520 |
|
|
|
5521 |
case $depmode in
|
|
|
5522 |
nosideeffect)
|
|
|
5523 |
# after this tag, mechanisms are not by side-effect, so they'll
|
|
|
5524 |
# only be used when explicitly requested
|
|
|
5525 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
|
5526 |
continue
|
|
|
5527 |
else
|
|
|
5528 |
break
|
|
|
5529 |
fi
|
|
|
5530 |
;;
|
|
|
5531 |
none) break ;;
|
|
|
5532 |
esac
|
|
|
5533 |
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
|
5534 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
|
5535 |
# handle `-M -o', and we need to detect this.
|
|
|
5536 |
if depmode=$depmode \
|
|
|
5537 |
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
|
|
5538 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
|
5539 |
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
|
|
5540 |
>/dev/null 2>conftest.err &&
|
|
|
5541 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
5542 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
5543 |
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
|
|
5544 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
|
5545 |
# icc doesn't choke on unknown options, it will just issue warnings
|
|
|
5546 |
# or remarks (even with -Werror). So we grep stderr for any message
|
|
|
5547 |
# that says an option was ignored or not supported.
|
|
|
5548 |
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
|
5549 |
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
|
5550 |
# The diagnosis changed in icc 8.0:
|
|
|
5551 |
# icc: Command line remark: option '-MP' not supported
|
|
|
5552 |
if (grep 'ignoring option' conftest.err ||
|
|
|
5553 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
|
5554 |
am_cv_CXX_dependencies_compiler_type=$depmode
|
|
|
5555 |
break
|
|
|
5556 |
fi
|
|
|
5557 |
fi
|
|
|
5558 |
done
|
|
|
5559 |
|
|
|
5560 |
cd ..
|
|
|
5561 |
rm -rf conftest.dir
|
|
|
5562 |
else
|
|
|
5563 |
am_cv_CXX_dependencies_compiler_type=none
|
|
|
5564 |
fi
|
|
|
5565 |
|
|
|
5566 |
fi
|
|
|
5567 |
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
|
|
5568 |
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
|
|
|
5569 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
|
|
5570 |
|
|
|
5571 |
if
|
|
|
5572 |
test "x$enable_dependency_tracking" != xno \
|
|
|
5573 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
|
|
|
5574 |
am__fastdepCXX_TRUE=
|
|
|
5575 |
am__fastdepCXX_FALSE='#'
|
|
|
5576 |
else
|
|
|
5577 |
am__fastdepCXX_TRUE='#'
|
|
|
5578 |
am__fastdepCXX_FALSE=
|
|
|
5579 |
fi
|
|
|
5580 |
|
|
|
5581 |
|
|
|
5582 |
|
|
|
5583 |
|
|
|
5584 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|
|
5585 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|
|
5586 |
(test "X$CXX" != "Xg++"))) ; then
|
|
|
5587 |
ac_ext=cpp
|
|
|
5588 |
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
5589 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
5590 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
5591 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
5592 |
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
|
|
5593 |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
|
|
|
5594 |
if test -z "$CXXCPP"; then
|
|
|
5595 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
|
|
5596 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5597 |
else
|
|
|
5598 |
# Double quotes because CXXCPP needs to be expanded
|
|
|
5599 |
for CXXCPP in "$CXX -E" "/lib/cpp"
|
|
|
5600 |
do
|
|
|
5601 |
ac_preproc_ok=false
|
|
|
5602 |
for ac_cxx_preproc_warn_flag in '' yes
|
|
|
5603 |
do
|
|
|
5604 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
5605 |
# with a fresh cross-compiler works.
|
|
|
5606 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
5607 |
# <limits.h> exists even on freestanding compilers.
|
|
|
5608 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
5609 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
5610 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5611 |
/* confdefs.h. */
|
|
|
5612 |
_ACEOF
|
|
|
5613 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5614 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5615 |
/* end confdefs.h. */
|
|
|
5616 |
@%:@ifdef __STDC__
|
|
|
5617 |
@%:@ include <limits.h>
|
|
|
5618 |
@%:@else
|
|
|
5619 |
@%:@ include <assert.h>
|
|
|
5620 |
@%:@endif
|
|
|
5621 |
Syntax error
|
|
|
5622 |
_ACEOF
|
|
|
5623 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
5624 |
case "(($ac_try" in
|
|
|
5625 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5626 |
*) ac_try_echo=$ac_try;;
|
|
|
5627 |
esac
|
|
|
5628 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5629 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
5630 |
ac_status=$?
|
|
|
5631 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5632 |
rm -f conftest.er1
|
|
|
5633 |
cat conftest.err >&5
|
|
|
5634 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5635 |
(exit $ac_status); } >/dev/null && {
|
|
|
5636 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
|
|
5637 |
test ! -s conftest.err
|
|
|
5638 |
}; then
|
|
|
5639 |
:
|
|
|
5640 |
else
|
|
|
5641 |
echo "$as_me: failed program was:" >&5
|
|
|
5642 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5643 |
|
|
|
5644 |
# Broken: fails on valid input.
|
|
|
5645 |
continue
|
|
|
5646 |
fi
|
|
|
5647 |
|
|
|
5648 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5649 |
|
|
|
5650 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
5651 |
# can be detected and how.
|
|
|
5652 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5653 |
/* confdefs.h. */
|
|
|
5654 |
_ACEOF
|
|
|
5655 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5656 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5657 |
/* end confdefs.h. */
|
|
|
5658 |
@%:@include <ac_nonexistent.h>
|
|
|
5659 |
_ACEOF
|
|
|
5660 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
5661 |
case "(($ac_try" in
|
|
|
5662 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5663 |
*) ac_try_echo=$ac_try;;
|
|
|
5664 |
esac
|
|
|
5665 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5666 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
5667 |
ac_status=$?
|
|
|
5668 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5669 |
rm -f conftest.er1
|
|
|
5670 |
cat conftest.err >&5
|
|
|
5671 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5672 |
(exit $ac_status); } >/dev/null && {
|
|
|
5673 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
|
|
5674 |
test ! -s conftest.err
|
|
|
5675 |
}; then
|
|
|
5676 |
# Broken: success on invalid input.
|
|
|
5677 |
continue
|
|
|
5678 |
else
|
|
|
5679 |
echo "$as_me: failed program was:" >&5
|
|
|
5680 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5681 |
|
|
|
5682 |
# Passes both tests.
|
|
|
5683 |
ac_preproc_ok=:
|
|
|
5684 |
break
|
|
|
5685 |
fi
|
|
|
5686 |
|
|
|
5687 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5688 |
|
|
|
5689 |
done
|
|
|
5690 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
5691 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5692 |
if $ac_preproc_ok; then
|
|
|
5693 |
break
|
|
|
5694 |
fi
|
|
|
5695 |
|
|
|
5696 |
done
|
|
|
5697 |
ac_cv_prog_CXXCPP=$CXXCPP
|
|
|
5698 |
|
|
|
5699 |
fi
|
|
|
5700 |
CXXCPP=$ac_cv_prog_CXXCPP
|
|
|
5701 |
else
|
|
|
5702 |
ac_cv_prog_CXXCPP=$CXXCPP
|
|
|
5703 |
fi
|
|
|
5704 |
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
|
|
5705 |
echo "${ECHO_T}$CXXCPP" >&6; }
|
|
|
5706 |
ac_preproc_ok=false
|
|
|
5707 |
for ac_cxx_preproc_warn_flag in '' yes
|
|
|
5708 |
do
|
|
|
5709 |
# Use a header file that comes with gcc, so configuring glibc
|
|
|
5710 |
# with a fresh cross-compiler works.
|
|
|
5711 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
5712 |
# <limits.h> exists even on freestanding compilers.
|
|
|
5713 |
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
5714 |
# not just through cpp. "Syntax error" is here to catch this case.
|
|
|
5715 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5716 |
/* confdefs.h. */
|
|
|
5717 |
_ACEOF
|
|
|
5718 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5719 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5720 |
/* end confdefs.h. */
|
|
|
5721 |
@%:@ifdef __STDC__
|
|
|
5722 |
@%:@ include <limits.h>
|
|
|
5723 |
@%:@else
|
|
|
5724 |
@%:@ include <assert.h>
|
|
|
5725 |
@%:@endif
|
|
|
5726 |
Syntax error
|
|
|
5727 |
_ACEOF
|
|
|
5728 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
5729 |
case "(($ac_try" in
|
|
|
5730 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5731 |
*) ac_try_echo=$ac_try;;
|
|
|
5732 |
esac
|
|
|
5733 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5734 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
5735 |
ac_status=$?
|
|
|
5736 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5737 |
rm -f conftest.er1
|
|
|
5738 |
cat conftest.err >&5
|
|
|
5739 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5740 |
(exit $ac_status); } >/dev/null && {
|
|
|
5741 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
|
|
5742 |
test ! -s conftest.err
|
|
|
5743 |
}; then
|
|
|
5744 |
:
|
|
|
5745 |
else
|
|
|
5746 |
echo "$as_me: failed program was:" >&5
|
|
|
5747 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5748 |
|
|
|
5749 |
# Broken: fails on valid input.
|
|
|
5750 |
continue
|
|
|
5751 |
fi
|
|
|
5752 |
|
|
|
5753 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5754 |
|
|
|
5755 |
# OK, works on sane cases. Now check whether nonexistent headers
|
|
|
5756 |
# can be detected and how.
|
|
|
5757 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5758 |
/* confdefs.h. */
|
|
|
5759 |
_ACEOF
|
|
|
5760 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
5761 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
5762 |
/* end confdefs.h. */
|
|
|
5763 |
@%:@include <ac_nonexistent.h>
|
|
|
5764 |
_ACEOF
|
|
|
5765 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
|
5766 |
case "(($ac_try" in
|
|
|
5767 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5768 |
*) ac_try_echo=$ac_try;;
|
|
|
5769 |
esac
|
|
|
5770 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5771 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
|
5772 |
ac_status=$?
|
|
|
5773 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5774 |
rm -f conftest.er1
|
|
|
5775 |
cat conftest.err >&5
|
|
|
5776 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5777 |
(exit $ac_status); } >/dev/null && {
|
|
|
5778 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
|
|
|
5779 |
test ! -s conftest.err
|
|
|
5780 |
}; then
|
|
|
5781 |
# Broken: success on invalid input.
|
|
|
5782 |
continue
|
|
|
5783 |
else
|
|
|
5784 |
echo "$as_me: failed program was:" >&5
|
|
|
5785 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5786 |
|
|
|
5787 |
# Passes both tests.
|
|
|
5788 |
ac_preproc_ok=:
|
|
|
5789 |
break
|
|
|
5790 |
fi
|
|
|
5791 |
|
|
|
5792 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5793 |
|
|
|
5794 |
done
|
|
|
5795 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
|
|
5796 |
rm -f conftest.err conftest.$ac_ext
|
|
|
5797 |
if $ac_preproc_ok; then
|
|
|
5798 |
:
|
|
|
5799 |
else
|
|
|
5800 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
|
|
5801 |
See \`config.log' for more details." >&5
|
|
|
5802 |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
|
|
5803 |
See \`config.log' for more details." >&2;}
|
|
|
5804 |
{ (exit 1); exit 1; }; }
|
|
|
5805 |
fi
|
|
|
5806 |
|
|
|
5807 |
ac_ext=cpp
|
|
|
5808 |
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
5809 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
5810 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
5811 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
5812 |
|
|
|
5813 |
fi
|
|
|
5814 |
|
|
|
5815 |
|
|
|
5816 |
ac_ext=f
|
|
|
5817 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
5818 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
5819 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
5820 |
if test -n "$ac_tool_prefix"; then
|
|
|
5821 |
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
|
|
5822 |
do
|
|
|
5823 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
|
5824 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
|
5825 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
5826 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
5827 |
if test "${ac_cv_prog_F77+set}" = set; then
|
|
|
5828 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5829 |
else
|
|
|
5830 |
if test -n "$F77"; then
|
|
|
5831 |
ac_cv_prog_F77="$F77" # Let the user override the test.
|
|
|
5832 |
else
|
|
|
5833 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
5834 |
for as_dir in $PATH
|
|
|
5835 |
do
|
|
|
5836 |
IFS=$as_save_IFS
|
|
|
5837 |
test -z "$as_dir" && as_dir=.
|
|
|
5838 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
5839 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
5840 |
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
|
|
5841 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
5842 |
break 2
|
|
|
5843 |
fi
|
|
|
5844 |
done
|
|
|
5845 |
done
|
|
|
5846 |
IFS=$as_save_IFS
|
|
|
5847 |
|
|
|
5848 |
fi
|
|
|
5849 |
fi
|
|
|
5850 |
F77=$ac_cv_prog_F77
|
|
|
5851 |
if test -n "$F77"; then
|
|
|
5852 |
{ echo "$as_me:$LINENO: result: $F77" >&5
|
|
|
5853 |
echo "${ECHO_T}$F77" >&6; }
|
|
|
5854 |
else
|
|
|
5855 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
5856 |
echo "${ECHO_T}no" >&6; }
|
|
|
5857 |
fi
|
|
|
5858 |
|
|
|
5859 |
|
|
|
5860 |
test -n "$F77" && break
|
|
|
5861 |
done
|
|
|
5862 |
fi
|
|
|
5863 |
if test -z "$F77"; then
|
|
|
5864 |
ac_ct_F77=$F77
|
|
|
5865 |
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
|
|
|
5866 |
do
|
|
|
5867 |
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
5868 |
set dummy $ac_prog; ac_word=$2
|
|
|
5869 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
5870 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
5871 |
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
|
|
|
5872 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5873 |
else
|
|
|
5874 |
if test -n "$ac_ct_F77"; then
|
|
|
5875 |
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
|
|
5876 |
else
|
|
|
5877 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
5878 |
for as_dir in $PATH
|
|
|
5879 |
do
|
|
|
5880 |
IFS=$as_save_IFS
|
|
|
5881 |
test -z "$as_dir" && as_dir=.
|
|
|
5882 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
5883 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
5884 |
ac_cv_prog_ac_ct_F77="$ac_prog"
|
|
|
5885 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
5886 |
break 2
|
|
|
5887 |
fi
|
|
|
5888 |
done
|
|
|
5889 |
done
|
|
|
5890 |
IFS=$as_save_IFS
|
|
|
5891 |
|
|
|
5892 |
fi
|
|
|
5893 |
fi
|
|
|
5894 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
|
|
5895 |
if test -n "$ac_ct_F77"; then
|
|
|
5896 |
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
|
|
|
5897 |
echo "${ECHO_T}$ac_ct_F77" >&6; }
|
|
|
5898 |
else
|
|
|
5899 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
5900 |
echo "${ECHO_T}no" >&6; }
|
|
|
5901 |
fi
|
|
|
5902 |
|
|
|
5903 |
|
|
|
5904 |
test -n "$ac_ct_F77" && break
|
|
|
5905 |
done
|
|
|
5906 |
|
|
|
5907 |
if test "x$ac_ct_F77" = x; then
|
|
|
5908 |
F77=""
|
|
|
5909 |
else
|
|
|
5910 |
case $cross_compiling:$ac_tool_warned in
|
|
|
5911 |
yes:)
|
|
|
5912 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
5913 |
whose name does not start with the host triplet. If you think this
|
|
|
5914 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
5915 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
5916 |
whose name does not start with the host triplet. If you think this
|
|
|
5917 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
5918 |
ac_tool_warned=yes ;;
|
|
|
5919 |
esac
|
|
|
5920 |
F77=$ac_ct_F77
|
|
|
5921 |
fi
|
|
|
5922 |
fi
|
|
|
5923 |
|
|
|
5924 |
|
|
|
5925 |
# Provide some information about the compiler.
|
|
|
5926 |
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
|
|
|
5927 |
ac_compiler=`set X $ac_compile; echo $2`
|
|
|
5928 |
{ (ac_try="$ac_compiler --version >&5"
|
|
|
5929 |
case "(($ac_try" in
|
|
|
5930 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5931 |
*) ac_try_echo=$ac_try;;
|
|
|
5932 |
esac
|
|
|
5933 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5934 |
(eval "$ac_compiler --version >&5") 2>&5
|
|
|
5935 |
ac_status=$?
|
|
|
5936 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5937 |
(exit $ac_status); }
|
|
|
5938 |
{ (ac_try="$ac_compiler -v >&5"
|
|
|
5939 |
case "(($ac_try" in
|
|
|
5940 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5941 |
*) ac_try_echo=$ac_try;;
|
|
|
5942 |
esac
|
|
|
5943 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5944 |
(eval "$ac_compiler -v >&5") 2>&5
|
|
|
5945 |
ac_status=$?
|
|
|
5946 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5947 |
(exit $ac_status); }
|
|
|
5948 |
{ (ac_try="$ac_compiler -V >&5"
|
|
|
5949 |
case "(($ac_try" in
|
|
|
5950 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5951 |
*) ac_try_echo=$ac_try;;
|
|
|
5952 |
esac
|
|
|
5953 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5954 |
(eval "$ac_compiler -V >&5") 2>&5
|
|
|
5955 |
ac_status=$?
|
|
|
5956 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5957 |
(exit $ac_status); }
|
|
|
5958 |
rm -f a.out
|
|
|
5959 |
|
|
|
5960 |
# If we don't use `.F' as extension, the preprocessor is not run on the
|
|
|
5961 |
# input file. (Note that this only needs to work for GNU compilers.)
|
|
|
5962 |
ac_save_ext=$ac_ext
|
|
|
5963 |
ac_ext=F
|
|
|
5964 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
|
|
|
5965 |
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
|
|
|
5966 |
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
|
|
|
5967 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
5968 |
else
|
|
|
5969 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
5970 |
program main
|
|
|
5971 |
#ifndef __GNUC__
|
|
|
5972 |
choke me
|
|
|
5973 |
#endif
|
|
|
5974 |
|
|
|
5975 |
end
|
|
|
5976 |
_ACEOF
|
|
|
5977 |
rm -f conftest.$ac_objext
|
|
|
5978 |
if { (ac_try="$ac_compile"
|
|
|
5979 |
case "(($ac_try" in
|
|
|
5980 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
5981 |
*) ac_try_echo=$ac_try;;
|
|
|
5982 |
esac
|
|
|
5983 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
5984 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
5985 |
ac_status=$?
|
|
|
5986 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
5987 |
rm -f conftest.er1
|
|
|
5988 |
cat conftest.err >&5
|
|
|
5989 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
5990 |
(exit $ac_status); } && {
|
|
|
5991 |
test -z "$ac_f77_werror_flag" ||
|
|
|
5992 |
test ! -s conftest.err
|
|
|
5993 |
} && test -s conftest.$ac_objext; then
|
|
|
5994 |
ac_compiler_gnu=yes
|
|
|
5995 |
else
|
|
|
5996 |
echo "$as_me: failed program was:" >&5
|
|
|
5997 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
5998 |
|
|
|
5999 |
ac_compiler_gnu=no
|
|
|
6000 |
fi
|
|
|
6001 |
|
|
|
6002 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
6003 |
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
|
|
6004 |
|
|
|
6005 |
fi
|
|
|
6006 |
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
|
|
|
6007 |
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
|
|
|
6008 |
ac_ext=$ac_save_ext
|
|
|
6009 |
ac_test_FFLAGS=${FFLAGS+set}
|
|
|
6010 |
ac_save_FFLAGS=$FFLAGS
|
|
|
6011 |
FFLAGS=
|
|
|
6012 |
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
|
|
|
6013 |
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
|
|
|
6014 |
if test "${ac_cv_prog_f77_g+set}" = set; then
|
|
|
6015 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6016 |
else
|
|
|
6017 |
FFLAGS=-g
|
|
|
6018 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
6019 |
program main
|
|
|
6020 |
|
|
|
6021 |
end
|
|
|
6022 |
_ACEOF
|
|
|
6023 |
rm -f conftest.$ac_objext
|
|
|
6024 |
if { (ac_try="$ac_compile"
|
|
|
6025 |
case "(($ac_try" in
|
|
|
6026 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
6027 |
*) ac_try_echo=$ac_try;;
|
|
|
6028 |
esac
|
|
|
6029 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
6030 |
(eval "$ac_compile") 2>conftest.er1
|
|
|
6031 |
ac_status=$?
|
|
|
6032 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
6033 |
rm -f conftest.er1
|
|
|
6034 |
cat conftest.err >&5
|
|
|
6035 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
6036 |
(exit $ac_status); } && {
|
|
|
6037 |
test -z "$ac_f77_werror_flag" ||
|
|
|
6038 |
test ! -s conftest.err
|
|
|
6039 |
} && test -s conftest.$ac_objext; then
|
|
|
6040 |
ac_cv_prog_f77_g=yes
|
|
|
6041 |
else
|
|
|
6042 |
echo "$as_me: failed program was:" >&5
|
|
|
6043 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
6044 |
|
|
|
6045 |
ac_cv_prog_f77_g=no
|
|
|
6046 |
fi
|
|
|
6047 |
|
|
|
6048 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
6049 |
|
|
|
6050 |
fi
|
|
|
6051 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
|
|
|
6052 |
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
|
|
|
6053 |
if test "$ac_test_FFLAGS" = set; then
|
|
|
6054 |
FFLAGS=$ac_save_FFLAGS
|
|
|
6055 |
elif test $ac_cv_prog_f77_g = yes; then
|
|
|
6056 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
|
|
6057 |
FFLAGS="-g -O2"
|
|
|
6058 |
else
|
|
|
6059 |
FFLAGS="-g"
|
|
|
6060 |
fi
|
|
|
6061 |
else
|
|
|
6062 |
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
|
|
6063 |
FFLAGS="-O2"
|
|
|
6064 |
else
|
|
|
6065 |
FFLAGS=
|
|
|
6066 |
fi
|
|
|
6067 |
fi
|
|
|
6068 |
|
|
|
6069 |
G77=`test $ac_compiler_gnu = yes && echo yes`
|
|
|
6070 |
ac_ext=c
|
|
|
6071 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
6072 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
6073 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
6074 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
6075 |
|
|
|
6076 |
|
|
|
6077 |
|
|
|
6078 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|
|
6079 |
|
|
|
6080 |
# find the maximum length of command line arguments
|
|
|
6081 |
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
|
|
|
6082 |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
|
|
|
6083 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
|
|
|
6084 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6085 |
else
|
|
|
6086 |
i=0
|
|
|
6087 |
teststring="ABCD"
|
|
|
6088 |
|
|
|
6089 |
case $build_os in
|
|
|
6090 |
msdosdjgpp*)
|
|
|
6091 |
# On DJGPP, this test can blow up pretty badly due to problems in libc
|
|
|
6092 |
# (any single argument exceeding 2000 bytes causes a buffer overrun
|
|
|
6093 |
# during glob expansion). Even if it were fixed, the result of this
|
|
|
6094 |
# check would be larger than it should be.
|
|
|
6095 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
|
|
6096 |
;;
|
|
|
6097 |
|
|
|
6098 |
gnu*)
|
|
|
6099 |
# Under GNU Hurd, this test is not required because there is
|
|
|
6100 |
# no limit to the length of command line arguments.
|
|
|
6101 |
# Libtool will interpret -1 as no limit whatsoever
|
|
|
6102 |
lt_cv_sys_max_cmd_len=-1;
|
|
|
6103 |
;;
|
|
|
6104 |
|
|
|
6105 |
cygwin* | mingw*)
|
|
|
6106 |
# On Win9x/ME, this test blows up -- it succeeds, but takes
|
|
|
6107 |
# about 5 minutes as the teststring grows exponentially.
|
|
|
6108 |
# Worse, since 9x/ME are not pre-emptively multitasking,
|
|
|
6109 |
# you end up with a "frozen" computer, even though with patience
|
|
|
6110 |
# the test eventually succeeds (with a max line length of 256k).
|
|
|
6111 |
# Instead, let's just punt: use the minimum linelength reported by
|
|
|
6112 |
# all of the supported platforms: 8192 (on NT/2K/XP).
|
|
|
6113 |
lt_cv_sys_max_cmd_len=8192;
|
|
|
6114 |
;;
|
|
|
6115 |
|
|
|
6116 |
amigaos*)
|
|
|
6117 |
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
|
6118 |
# So we just punt and use a minimum line length of 8192.
|
|
|
6119 |
lt_cv_sys_max_cmd_len=8192;
|
|
|
6120 |
;;
|
|
|
6121 |
|
|
|
6122 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
|
|
6123 |
# This has been around since 386BSD, at least. Likely further.
|
|
|
6124 |
if test -x /sbin/sysctl; then
|
|
|
6125 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
|
|
6126 |
elif test -x /usr/sbin/sysctl; then
|
|
|
6127 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
|
6128 |
else
|
|
|
6129 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
|
6130 |
fi
|
|
|
6131 |
# And add a safety zone
|
|
|
6132 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
|
6133 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
|
6134 |
;;
|
|
|
6135 |
|
|
|
6136 |
interix*)
|
|
|
6137 |
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
|
6138 |
lt_cv_sys_max_cmd_len=196608
|
|
|
6139 |
;;
|
|
|
6140 |
|
|
|
6141 |
osf*)
|
|
|
6142 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
|
|
6143 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
|
6144 |
# nice to cause kernel panics so lets avoid the loop below.
|
|
|
6145 |
# First set a reasonable default.
|
|
|
6146 |
lt_cv_sys_max_cmd_len=16384
|
|
|
6147 |
#
|
|
|
6148 |
if test -x /sbin/sysconfig; then
|
|
|
6149 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
|
|
6150 |
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
|
|
6151 |
esac
|
|
|
6152 |
fi
|
|
|
6153 |
;;
|
|
|
6154 |
sco3.2v5*)
|
|
|
6155 |
lt_cv_sys_max_cmd_len=102400
|
|
|
6156 |
;;
|
|
|
6157 |
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
|
6158 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
|
6159 |
if test -n "$kargmax"; then
|
|
|
6160 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
|
|
6161 |
else
|
|
|
6162 |
lt_cv_sys_max_cmd_len=32768
|
|
|
6163 |
fi
|
|
|
6164 |
;;
|
|
|
6165 |
*)
|
|
|
6166 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
|
|
6167 |
if test -n "$lt_cv_sys_max_cmd_len"; then
|
|
|
6168 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
|
6169 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
|
6170 |
else
|
|
|
6171 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
|
|
6172 |
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
|
|
|
6173 |
= "XX$teststring") >/dev/null 2>&1 &&
|
|
|
6174 |
new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
|
|
6175 |
lt_cv_sys_max_cmd_len=$new_result &&
|
|
|
6176 |
test $i != 17 # 1/2 MB should be enough
|
|
|
6177 |
do
|
|
|
6178 |
i=`expr $i + 1`
|
|
|
6179 |
teststring=$teststring$teststring
|
|
|
6180 |
done
|
|
|
6181 |
teststring=
|
|
|
6182 |
# Add a significant safety factor because C++ compilers can tack on massive
|
|
|
6183 |
# amounts of additional arguments before passing them to the linker.
|
|
|
6184 |
# It appears as though 1/2 is a usable value.
|
|
|
6185 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
|
|
6186 |
fi
|
|
|
6187 |
;;
|
|
|
6188 |
esac
|
|
|
6189 |
|
|
|
6190 |
fi
|
|
|
6191 |
|
|
|
6192 |
if test -n $lt_cv_sys_max_cmd_len ; then
|
|
|
6193 |
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
|
|
|
6194 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
|
|
|
6195 |
else
|
|
|
6196 |
{ echo "$as_me:$LINENO: result: none" >&5
|
|
|
6197 |
echo "${ECHO_T}none" >&6; }
|
|
|
6198 |
fi
|
|
|
6199 |
|
|
|
6200 |
|
|
|
6201 |
|
|
|
6202 |
|
|
|
6203 |
|
|
|
6204 |
# Check for command to grab the raw symbol name followed by C symbol from nm.
|
|
|
6205 |
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
|
|
|
6206 |
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
|
|
|
6207 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
|
|
|
6208 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6209 |
else
|
|
|
6210 |
|
|
|
6211 |
# These are sane defaults that work on at least a few old systems.
|
|
|
6212 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
|
|
6213 |
|
|
|
6214 |
# Character class describing NM global symbol codes.
|
|
|
6215 |
symcode='[BCDEGRST]'
|
|
|
6216 |
|
|
|
6217 |
# Regexp to match symbols that can be accessed directly from C.
|
|
|
6218 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
|
|
6219 |
|
|
|
6220 |
# Transform an extracted symbol line into a proper C declaration
|
|
|
6221 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
|
|
6222 |
|
|
|
6223 |
# Transform an extracted symbol line into symbol name and symbol address
|
|
|
6224 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
|
6225 |
|
|
|
6226 |
# Define system-specific variables.
|
|
|
6227 |
case $host_os in
|
|
|
6228 |
aix*)
|
|
|
6229 |
symcode='[BCDT]'
|
|
|
6230 |
;;
|
|
|
6231 |
cygwin* | mingw* | pw32*)
|
|
|
6232 |
symcode='[ABCDGISTW]'
|
|
|
6233 |
;;
|
|
|
6234 |
hpux*) # Its linker distinguishes data from code symbols
|
|
|
6235 |
if test "$host_cpu" = ia64; then
|
|
|
6236 |
symcode='[ABCDEGRST]'
|
|
|
6237 |
fi
|
|
|
6238 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
6239 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
|
6240 |
;;
|
|
|
6241 |
linux* | k*bsd*-gnu)
|
|
|
6242 |
if test "$host_cpu" = ia64; then
|
|
|
6243 |
symcode='[ABCDGIRSTW]'
|
|
|
6244 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
6245 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
|
6246 |
fi
|
|
|
6247 |
;;
|
|
|
6248 |
irix* | nonstopux*)
|
|
|
6249 |
symcode='[BCDEGRST]'
|
|
|
6250 |
;;
|
|
|
6251 |
osf*)
|
|
|
6252 |
symcode='[BCDEGQRST]'
|
|
|
6253 |
;;
|
|
|
6254 |
solaris*)
|
|
|
6255 |
symcode='[BDRT]'
|
|
|
6256 |
;;
|
|
|
6257 |
sco3.2v5*)
|
|
|
6258 |
symcode='[DT]'
|
|
|
6259 |
;;
|
|
|
6260 |
sysv4.2uw2*)
|
|
|
6261 |
symcode='[DT]'
|
|
|
6262 |
;;
|
|
|
6263 |
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
6264 |
symcode='[ABDT]'
|
|
|
6265 |
;;
|
|
|
6266 |
sysv4)
|
|
|
6267 |
symcode='[DFNSTU]'
|
|
|
6268 |
;;
|
|
|
6269 |
esac
|
|
|
6270 |
|
|
|
6271 |
# Handle CRLF in mingw tool chain
|
|
|
6272 |
opt_cr=
|
|
|
6273 |
case $build_os in
|
|
|
6274 |
mingw*)
|
|
|
6275 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
|
|
6276 |
;;
|
|
|
6277 |
esac
|
|
|
6278 |
|
|
|
6279 |
# If we're using GNU nm, then use its standard symbol codes.
|
|
|
6280 |
case `$NM -V 2>&1` in
|
|
|
6281 |
*GNU* | *'with BFD'*)
|
|
|
6282 |
symcode='[ABCDGIRSTW]' ;;
|
|
|
6283 |
esac
|
|
|
6284 |
|
|
|
6285 |
# Try without a prefix undercore, then with it.
|
|
|
6286 |
for ac_symprfx in "" "_"; do
|
|
|
6287 |
|
|
|
6288 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
|
|
6289 |
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
|
|
6290 |
|
|
|
6291 |
# Write the raw and C identifiers.
|
|
|
6292 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
|
6293 |
|
|
|
6294 |
# Check to see that the pipe works correctly.
|
|
|
6295 |
pipe_works=no
|
|
|
6296 |
|
|
|
6297 |
rm -f conftest*
|
|
|
6298 |
cat > conftest.$ac_ext <<EOF
|
|
|
6299 |
#ifdef __cplusplus
|
|
|
6300 |
extern "C" {
|
|
|
6301 |
#endif
|
|
|
6302 |
char nm_test_var;
|
|
|
6303 |
void nm_test_func(){}
|
|
|
6304 |
#ifdef __cplusplus
|
|
|
6305 |
}
|
|
|
6306 |
#endif
|
|
|
6307 |
int main(){nm_test_var='a';nm_test_func();return(0);}
|
|
|
6308 |
EOF
|
|
|
6309 |
|
|
|
6310 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
6311 |
(eval $ac_compile) 2>&5
|
|
|
6312 |
ac_status=$?
|
|
|
6313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
6314 |
(exit $ac_status); }; then
|
|
|
6315 |
# Now try to grab the symbols.
|
|
|
6316 |
nlist=conftest.nm
|
|
|
6317 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
|
|
|
6318 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
|
|
|
6319 |
ac_status=$?
|
|
|
6320 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
6321 |
(exit $ac_status); } && test -s "$nlist"; then
|
|
|
6322 |
# Try sorting and uniquifying the output.
|
|
|
6323 |
if sort "$nlist" | uniq > "$nlist"T; then
|
|
|
6324 |
mv -f "$nlist"T "$nlist"
|
|
|
6325 |
else
|
|
|
6326 |
rm -f "$nlist"T
|
|
|
6327 |
fi
|
|
|
6328 |
|
|
|
6329 |
# Make sure that we snagged all the symbols we need.
|
|
|
6330 |
if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
|
|
6331 |
if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
|
|
6332 |
cat <<EOF > conftest.$ac_ext
|
|
|
6333 |
#ifdef __cplusplus
|
|
|
6334 |
extern "C" {
|
|
|
6335 |
#endif
|
|
|
6336 |
|
|
|
6337 |
EOF
|
|
|
6338 |
# Now generate the symbol file.
|
|
|
6339 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
|
|
6340 |
|
|
|
6341 |
cat <<EOF >> conftest.$ac_ext
|
|
|
6342 |
#if defined (__STDC__) && __STDC__
|
|
|
6343 |
# define lt_ptr_t void *
|
|
|
6344 |
#else
|
|
|
6345 |
# define lt_ptr_t char *
|
|
|
6346 |
# define const
|
|
|
6347 |
#endif
|
|
|
6348 |
|
|
|
6349 |
/* The mapping between symbol names and symbols. */
|
|
|
6350 |
const struct {
|
|
|
6351 |
const char *name;
|
|
|
6352 |
lt_ptr_t address;
|
|
|
6353 |
}
|
|
|
6354 |
lt_preloaded_symbols[] =
|
|
|
6355 |
{
|
|
|
6356 |
EOF
|
|
|
6357 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
|
|
6358 |
cat <<\EOF >> conftest.$ac_ext
|
|
|
6359 |
{0, (lt_ptr_t) 0}
|
|
|
6360 |
};
|
|
|
6361 |
|
|
|
6362 |
#ifdef __cplusplus
|
|
|
6363 |
}
|
|
|
6364 |
#endif
|
|
|
6365 |
EOF
|
|
|
6366 |
# Now try linking the two files.
|
|
|
6367 |
mv conftest.$ac_objext conftstm.$ac_objext
|
|
|
6368 |
lt_save_LIBS="$LIBS"
|
|
|
6369 |
lt_save_CFLAGS="$CFLAGS"
|
|
|
6370 |
LIBS="conftstm.$ac_objext"
|
|
|
6371 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
|
6372 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
6373 |
(eval $ac_link) 2>&5
|
|
|
6374 |
ac_status=$?
|
|
|
6375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
6376 |
(exit $ac_status); } && test -s conftest${ac_exeext}; then
|
|
|
6377 |
pipe_works=yes
|
|
|
6378 |
fi
|
|
|
6379 |
LIBS="$lt_save_LIBS"
|
|
|
6380 |
CFLAGS="$lt_save_CFLAGS"
|
|
|
6381 |
else
|
|
|
6382 |
echo "cannot find nm_test_func in $nlist" >&5
|
|
|
6383 |
fi
|
|
|
6384 |
else
|
|
|
6385 |
echo "cannot find nm_test_var in $nlist" >&5
|
|
|
6386 |
fi
|
|
|
6387 |
else
|
|
|
6388 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
|
|
6389 |
fi
|
|
|
6390 |
else
|
|
|
6391 |
echo "$progname: failed program was:" >&5
|
|
|
6392 |
cat conftest.$ac_ext >&5
|
|
|
6393 |
fi
|
|
|
6394 |
rm -f conftest* conftst*
|
|
|
6395 |
|
|
|
6396 |
# Do not use the global_symbol_pipe unless it works.
|
|
|
6397 |
if test "$pipe_works" = yes; then
|
|
|
6398 |
break
|
|
|
6399 |
else
|
|
|
6400 |
lt_cv_sys_global_symbol_pipe=
|
|
|
6401 |
fi
|
|
|
6402 |
done
|
|
|
6403 |
|
|
|
6404 |
fi
|
|
|
6405 |
|
|
|
6406 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
|
|
6407 |
lt_cv_sys_global_symbol_to_cdecl=
|
|
|
6408 |
fi
|
|
|
6409 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
|
|
6410 |
{ echo "$as_me:$LINENO: result: failed" >&5
|
|
|
6411 |
echo "${ECHO_T}failed" >&6; }
|
|
|
6412 |
else
|
|
|
6413 |
{ echo "$as_me:$LINENO: result: ok" >&5
|
|
|
6414 |
echo "${ECHO_T}ok" >&6; }
|
|
|
6415 |
fi
|
|
|
6416 |
|
|
|
6417 |
{ echo "$as_me:$LINENO: checking for objdir" >&5
|
|
|
6418 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
|
|
|
6419 |
if test "${lt_cv_objdir+set}" = set; then
|
|
|
6420 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6421 |
else
|
|
|
6422 |
rm -f .libs 2>/dev/null
|
|
|
6423 |
mkdir .libs 2>/dev/null
|
|
|
6424 |
if test -d .libs; then
|
|
|
6425 |
lt_cv_objdir=.libs
|
|
|
6426 |
else
|
|
|
6427 |
# MS-DOS does not allow filenames that begin with a dot.
|
|
|
6428 |
lt_cv_objdir=_libs
|
|
|
6429 |
fi
|
|
|
6430 |
rmdir .libs 2>/dev/null
|
|
|
6431 |
fi
|
|
|
6432 |
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
|
|
|
6433 |
echo "${ECHO_T}$lt_cv_objdir" >&6; }
|
|
|
6434 |
objdir=$lt_cv_objdir
|
|
|
6435 |
|
|
|
6436 |
|
|
|
6437 |
|
|
|
6438 |
|
|
|
6439 |
|
|
|
6440 |
case $host_os in
|
|
|
6441 |
aix3*)
|
|
|
6442 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
6443 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
6444 |
# vanish in a puff of smoke.
|
|
|
6445 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
6446 |
COLLECT_NAMES=
|
|
|
6447 |
export COLLECT_NAMES
|
|
|
6448 |
fi
|
|
|
6449 |
;;
|
|
|
6450 |
esac
|
|
|
6451 |
|
|
|
6452 |
# Sed substitution that helps us do robust quoting. It backslashifies
|
|
|
6453 |
# metacharacters that are still active within double-quoted strings.
|
|
|
6454 |
Xsed='sed -e 1s/^X//'
|
|
|
6455 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
|
|
|
6456 |
|
|
|
6457 |
# Same as above, but do not quote variable references.
|
|
|
6458 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
|
|
|
6459 |
|
|
|
6460 |
# Sed substitution to delay expansion of an escaped shell variable in a
|
|
|
6461 |
# double_quote_subst'ed string.
|
|
|
6462 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
|
|
6463 |
|
|
|
6464 |
# Sed substitution to avoid accidental globbing in evaled expressions
|
|
|
6465 |
no_glob_subst='s/\*/\\\*/g'
|
|
|
6466 |
|
|
|
6467 |
# Constants:
|
|
|
6468 |
rm="rm -f"
|
|
|
6469 |
|
|
|
6470 |
# Global variables:
|
|
|
6471 |
default_ofile=libtool
|
|
|
6472 |
can_build_shared=yes
|
|
|
6473 |
|
|
|
6474 |
# All known linkers require a `.a' archive for static linking (except MSVC,
|
|
|
6475 |
# which needs '.lib').
|
|
|
6476 |
libext=a
|
|
|
6477 |
ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
6478 |
ofile="$default_ofile"
|
|
|
6479 |
with_gnu_ld="$lt_cv_prog_gnu_ld"
|
|
|
6480 |
|
|
|
6481 |
if test -n "$ac_tool_prefix"; then
|
|
|
6482 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
|
6483 |
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
|
6484 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6485 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6486 |
if test "${ac_cv_prog_AR+set}" = set; then
|
|
|
6487 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6488 |
else
|
|
|
6489 |
if test -n "$AR"; then
|
|
|
6490 |
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
|
6491 |
else
|
|
|
6492 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6493 |
for as_dir in $PATH
|
|
|
6494 |
do
|
|
|
6495 |
IFS=$as_save_IFS
|
|
|
6496 |
test -z "$as_dir" && as_dir=.
|
|
|
6497 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6498 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6499 |
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
|
6500 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6501 |
break 2
|
|
|
6502 |
fi
|
|
|
6503 |
done
|
|
|
6504 |
done
|
|
|
6505 |
IFS=$as_save_IFS
|
|
|
6506 |
|
|
|
6507 |
fi
|
|
|
6508 |
fi
|
|
|
6509 |
AR=$ac_cv_prog_AR
|
|
|
6510 |
if test -n "$AR"; then
|
|
|
6511 |
{ echo "$as_me:$LINENO: result: $AR" >&5
|
|
|
6512 |
echo "${ECHO_T}$AR" >&6; }
|
|
|
6513 |
else
|
|
|
6514 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6515 |
echo "${ECHO_T}no" >&6; }
|
|
|
6516 |
fi
|
|
|
6517 |
|
|
|
6518 |
|
|
|
6519 |
fi
|
|
|
6520 |
if test -z "$ac_cv_prog_AR"; then
|
|
|
6521 |
ac_ct_AR=$AR
|
|
|
6522 |
# Extract the first word of "ar", so it can be a program name with args.
|
|
|
6523 |
set dummy ar; ac_word=$2
|
|
|
6524 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6525 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6526 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
|
|
|
6527 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6528 |
else
|
|
|
6529 |
if test -n "$ac_ct_AR"; then
|
|
|
6530 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
|
|
6531 |
else
|
|
|
6532 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6533 |
for as_dir in $PATH
|
|
|
6534 |
do
|
|
|
6535 |
IFS=$as_save_IFS
|
|
|
6536 |
test -z "$as_dir" && as_dir=.
|
|
|
6537 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6538 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6539 |
ac_cv_prog_ac_ct_AR="ar"
|
|
|
6540 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6541 |
break 2
|
|
|
6542 |
fi
|
|
|
6543 |
done
|
|
|
6544 |
done
|
|
|
6545 |
IFS=$as_save_IFS
|
|
|
6546 |
|
|
|
6547 |
fi
|
|
|
6548 |
fi
|
|
|
6549 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
|
|
6550 |
if test -n "$ac_ct_AR"; then
|
|
|
6551 |
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
|
|
|
6552 |
echo "${ECHO_T}$ac_ct_AR" >&6; }
|
|
|
6553 |
else
|
|
|
6554 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6555 |
echo "${ECHO_T}no" >&6; }
|
|
|
6556 |
fi
|
|
|
6557 |
|
|
|
6558 |
if test "x$ac_ct_AR" = x; then
|
|
|
6559 |
AR="false"
|
|
|
6560 |
else
|
|
|
6561 |
case $cross_compiling:$ac_tool_warned in
|
|
|
6562 |
yes:)
|
|
|
6563 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6564 |
whose name does not start with the host triplet. If you think this
|
|
|
6565 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
6566 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6567 |
whose name does not start with the host triplet. If you think this
|
|
|
6568 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
6569 |
ac_tool_warned=yes ;;
|
|
|
6570 |
esac
|
|
|
6571 |
AR=$ac_ct_AR
|
|
|
6572 |
fi
|
|
|
6573 |
else
|
|
|
6574 |
AR="$ac_cv_prog_AR"
|
|
|
6575 |
fi
|
|
|
6576 |
|
|
|
6577 |
if test -n "$ac_tool_prefix"; then
|
|
|
6578 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|
|
6579 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|
|
6580 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6581 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6582 |
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
|
|
6583 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6584 |
else
|
|
|
6585 |
if test -n "$RANLIB"; then
|
|
|
6586 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
6587 |
else
|
|
|
6588 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6589 |
for as_dir in $PATH
|
|
|
6590 |
do
|
|
|
6591 |
IFS=$as_save_IFS
|
|
|
6592 |
test -z "$as_dir" && as_dir=.
|
|
|
6593 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6594 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6595 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|
|
6596 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6597 |
break 2
|
|
|
6598 |
fi
|
|
|
6599 |
done
|
|
|
6600 |
done
|
|
|
6601 |
IFS=$as_save_IFS
|
|
|
6602 |
|
|
|
6603 |
fi
|
|
|
6604 |
fi
|
|
|
6605 |
RANLIB=$ac_cv_prog_RANLIB
|
|
|
6606 |
if test -n "$RANLIB"; then
|
|
|
6607 |
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
|
|
|
6608 |
echo "${ECHO_T}$RANLIB" >&6; }
|
|
|
6609 |
else
|
|
|
6610 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6611 |
echo "${ECHO_T}no" >&6; }
|
|
|
6612 |
fi
|
|
|
6613 |
|
|
|
6614 |
|
|
|
6615 |
fi
|
|
|
6616 |
if test -z "$ac_cv_prog_RANLIB"; then
|
|
|
6617 |
ac_ct_RANLIB=$RANLIB
|
|
|
6618 |
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
|
6619 |
set dummy ranlib; ac_word=$2
|
|
|
6620 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6621 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6622 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
|
|
6623 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6624 |
else
|
|
|
6625 |
if test -n "$ac_ct_RANLIB"; then
|
|
|
6626 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
|
|
6627 |
else
|
|
|
6628 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6629 |
for as_dir in $PATH
|
|
|
6630 |
do
|
|
|
6631 |
IFS=$as_save_IFS
|
|
|
6632 |
test -z "$as_dir" && as_dir=.
|
|
|
6633 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6634 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6635 |
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
|
|
6636 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6637 |
break 2
|
|
|
6638 |
fi
|
|
|
6639 |
done
|
|
|
6640 |
done
|
|
|
6641 |
IFS=$as_save_IFS
|
|
|
6642 |
|
|
|
6643 |
fi
|
|
|
6644 |
fi
|
|
|
6645 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
|
|
6646 |
if test -n "$ac_ct_RANLIB"; then
|
|
|
6647 |
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
|
|
6648 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
|
|
|
6649 |
else
|
|
|
6650 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6651 |
echo "${ECHO_T}no" >&6; }
|
|
|
6652 |
fi
|
|
|
6653 |
|
|
|
6654 |
if test "x$ac_ct_RANLIB" = x; then
|
|
|
6655 |
RANLIB=":"
|
|
|
6656 |
else
|
|
|
6657 |
case $cross_compiling:$ac_tool_warned in
|
|
|
6658 |
yes:)
|
|
|
6659 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6660 |
whose name does not start with the host triplet. If you think this
|
|
|
6661 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
6662 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6663 |
whose name does not start with the host triplet. If you think this
|
|
|
6664 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
6665 |
ac_tool_warned=yes ;;
|
|
|
6666 |
esac
|
|
|
6667 |
RANLIB=$ac_ct_RANLIB
|
|
|
6668 |
fi
|
|
|
6669 |
else
|
|
|
6670 |
RANLIB="$ac_cv_prog_RANLIB"
|
|
|
6671 |
fi
|
|
|
6672 |
|
|
|
6673 |
if test -n "$ac_tool_prefix"; then
|
|
|
6674 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
|
6675 |
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
|
6676 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6677 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6678 |
if test "${ac_cv_prog_STRIP+set}" = set; then
|
|
|
6679 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6680 |
else
|
|
|
6681 |
if test -n "$STRIP"; then
|
|
|
6682 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|
|
6683 |
else
|
|
|
6684 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6685 |
for as_dir in $PATH
|
|
|
6686 |
do
|
|
|
6687 |
IFS=$as_save_IFS
|
|
|
6688 |
test -z "$as_dir" && as_dir=.
|
|
|
6689 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6690 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6691 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|
|
6692 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6693 |
break 2
|
|
|
6694 |
fi
|
|
|
6695 |
done
|
|
|
6696 |
done
|
|
|
6697 |
IFS=$as_save_IFS
|
|
|
6698 |
|
|
|
6699 |
fi
|
|
|
6700 |
fi
|
|
|
6701 |
STRIP=$ac_cv_prog_STRIP
|
|
|
6702 |
if test -n "$STRIP"; then
|
|
|
6703 |
{ echo "$as_me:$LINENO: result: $STRIP" >&5
|
|
|
6704 |
echo "${ECHO_T}$STRIP" >&6; }
|
|
|
6705 |
else
|
|
|
6706 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6707 |
echo "${ECHO_T}no" >&6; }
|
|
|
6708 |
fi
|
|
|
6709 |
|
|
|
6710 |
|
|
|
6711 |
fi
|
|
|
6712 |
if test -z "$ac_cv_prog_STRIP"; then
|
|
|
6713 |
ac_ct_STRIP=$STRIP
|
|
|
6714 |
# Extract the first word of "strip", so it can be a program name with args.
|
|
|
6715 |
set dummy strip; ac_word=$2
|
|
|
6716 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
|
6717 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
|
|
6718 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
|
|
6719 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6720 |
else
|
|
|
6721 |
if test -n "$ac_ct_STRIP"; then
|
|
|
6722 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
|
|
6723 |
else
|
|
|
6724 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
6725 |
for as_dir in $PATH
|
|
|
6726 |
do
|
|
|
6727 |
IFS=$as_save_IFS
|
|
|
6728 |
test -z "$as_dir" && as_dir=.
|
|
|
6729 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
6730 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
|
6731 |
ac_cv_prog_ac_ct_STRIP="strip"
|
|
|
6732 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
6733 |
break 2
|
|
|
6734 |
fi
|
|
|
6735 |
done
|
|
|
6736 |
done
|
|
|
6737 |
IFS=$as_save_IFS
|
|
|
6738 |
|
|
|
6739 |
fi
|
|
|
6740 |
fi
|
|
|
6741 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
|
|
6742 |
if test -n "$ac_ct_STRIP"; then
|
|
|
6743 |
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
|
|
6744 |
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
|
|
6745 |
else
|
|
|
6746 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6747 |
echo "${ECHO_T}no" >&6; }
|
|
|
6748 |
fi
|
|
|
6749 |
|
|
|
6750 |
if test "x$ac_ct_STRIP" = x; then
|
|
|
6751 |
STRIP=":"
|
|
|
6752 |
else
|
|
|
6753 |
case $cross_compiling:$ac_tool_warned in
|
|
|
6754 |
yes:)
|
|
|
6755 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6756 |
whose name does not start with the host triplet. If you think this
|
|
|
6757 |
configuration is useful to you, please write to autoconf@gnu.org." >&5
|
|
|
6758 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
|
|
6759 |
whose name does not start with the host triplet. If you think this
|
|
|
6760 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
|
|
|
6761 |
ac_tool_warned=yes ;;
|
|
|
6762 |
esac
|
|
|
6763 |
STRIP=$ac_ct_STRIP
|
|
|
6764 |
fi
|
|
|
6765 |
else
|
|
|
6766 |
STRIP="$ac_cv_prog_STRIP"
|
|
|
6767 |
fi
|
|
|
6768 |
|
|
|
6769 |
|
|
|
6770 |
old_CC="$CC"
|
|
|
6771 |
old_CFLAGS="$CFLAGS"
|
|
|
6772 |
|
|
|
6773 |
# Set sane defaults for various variables
|
|
|
6774 |
test -z "$AR" && AR=ar
|
|
|
6775 |
test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
6776 |
test -z "$AS" && AS=as
|
|
|
6777 |
test -z "$CC" && CC=cc
|
|
|
6778 |
test -z "$LTCC" && LTCC=$CC
|
|
|
6779 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
|
6780 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
|
6781 |
test -z "$LD" && LD=ld
|
|
|
6782 |
test -z "$LN_S" && LN_S="ln -s"
|
|
|
6783 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
|
|
6784 |
test -z "$NM" && NM=nm
|
|
|
6785 |
test -z "$SED" && SED=sed
|
|
|
6786 |
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
|
6787 |
test -z "$RANLIB" && RANLIB=:
|
|
|
6788 |
test -z "$STRIP" && STRIP=:
|
|
|
6789 |
test -z "$ac_objext" && ac_objext=o
|
|
|
6790 |
|
|
|
6791 |
# Determine commands to create old-style static archives.
|
|
|
6792 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
|
|
6793 |
old_postinstall_cmds='chmod 644 $oldlib'
|
|
|
6794 |
old_postuninstall_cmds=
|
|
|
6795 |
|
|
|
6796 |
if test -n "$RANLIB"; then
|
|
|
6797 |
case $host_os in
|
|
|
6798 |
openbsd*)
|
|
|
6799 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
|
6800 |
;;
|
|
|
6801 |
*)
|
|
|
6802 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
|
6803 |
;;
|
|
|
6804 |
esac
|
|
|
6805 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
|
6806 |
fi
|
|
|
6807 |
|
|
|
6808 |
for cc_temp in $compiler""; do
|
|
|
6809 |
case $cc_temp in
|
|
|
6810 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
6811 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
6812 |
\-*) ;;
|
|
|
6813 |
*) break;;
|
|
|
6814 |
esac
|
|
|
6815 |
done
|
|
|
6816 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
6817 |
|
|
|
6818 |
|
|
|
6819 |
# Only perform the check for file, if the check method requires it
|
|
|
6820 |
case $deplibs_check_method in
|
|
|
6821 |
file_magic*)
|
|
|
6822 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|
|
6823 |
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
|
|
|
6824 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
|
|
|
6825 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
|
|
6826 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6827 |
else
|
|
|
6828 |
case $MAGIC_CMD in
|
|
|
6829 |
[\\/*] | ?:[\\/]*)
|
|
|
6830 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|
|
6831 |
;;
|
|
|
6832 |
*)
|
|
|
6833 |
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
|
|
6834 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
6835 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
|
|
6836 |
for ac_dir in $ac_dummy; do
|
|
|
6837 |
IFS="$lt_save_ifs"
|
|
|
6838 |
test -z "$ac_dir" && ac_dir=.
|
|
|
6839 |
if test -f $ac_dir/${ac_tool_prefix}file; then
|
|
|
6840 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|
|
6841 |
if test -n "$file_magic_test_file"; then
|
|
|
6842 |
case $deplibs_check_method in
|
|
|
6843 |
"file_magic "*)
|
|
|
6844 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
|
6845 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
6846 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
|
6847 |
$EGREP "$file_magic_regex" > /dev/null; then
|
|
|
6848 |
:
|
|
|
6849 |
else
|
|
|
6850 |
cat <<EOF 1>&2
|
|
|
6851 |
|
|
|
6852 |
*** Warning: the command libtool uses to detect shared libraries,
|
|
|
6853 |
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
|
6854 |
*** The result is that libtool may fail to recognize shared libraries
|
|
|
6855 |
*** as such. This will affect the creation of libtool libraries that
|
|
|
6856 |
*** depend on shared libraries, but programs linked with such libtool
|
|
|
6857 |
*** libraries will work regardless of this problem. Nevertheless, you
|
|
|
6858 |
*** may want to report the problem to your system manager and/or to
|
|
|
6859 |
*** bug-libtool@gnu.org
|
|
|
6860 |
|
|
|
6861 |
EOF
|
|
|
6862 |
fi ;;
|
|
|
6863 |
esac
|
|
|
6864 |
fi
|
|
|
6865 |
break
|
|
|
6866 |
fi
|
|
|
6867 |
done
|
|
|
6868 |
IFS="$lt_save_ifs"
|
|
|
6869 |
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
|
|
6870 |
;;
|
|
|
6871 |
esac
|
|
|
6872 |
fi
|
|
|
6873 |
|
|
|
6874 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
6875 |
if test -n "$MAGIC_CMD"; then
|
|
|
6876 |
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
|
|
6877 |
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
|
|
6878 |
else
|
|
|
6879 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6880 |
echo "${ECHO_T}no" >&6; }
|
|
|
6881 |
fi
|
|
|
6882 |
|
|
|
6883 |
if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|
|
6884 |
if test -n "$ac_tool_prefix"; then
|
|
|
6885 |
{ echo "$as_me:$LINENO: checking for file" >&5
|
|
|
6886 |
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
|
|
|
6887 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
|
|
|
6888 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
6889 |
else
|
|
|
6890 |
case $MAGIC_CMD in
|
|
|
6891 |
[\\/*] | ?:[\\/]*)
|
|
|
6892 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|
|
6893 |
;;
|
|
|
6894 |
*)
|
|
|
6895 |
lt_save_MAGIC_CMD="$MAGIC_CMD"
|
|
|
6896 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
6897 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
|
|
6898 |
for ac_dir in $ac_dummy; do
|
|
|
6899 |
IFS="$lt_save_ifs"
|
|
|
6900 |
test -z "$ac_dir" && ac_dir=.
|
|
|
6901 |
if test -f $ac_dir/file; then
|
|
|
6902 |
lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|
|
6903 |
if test -n "$file_magic_test_file"; then
|
|
|
6904 |
case $deplibs_check_method in
|
|
|
6905 |
"file_magic "*)
|
|
|
6906 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
|
6907 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
6908 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
|
6909 |
$EGREP "$file_magic_regex" > /dev/null; then
|
|
|
6910 |
:
|
|
|
6911 |
else
|
|
|
6912 |
cat <<EOF 1>&2
|
|
|
6913 |
|
|
|
6914 |
*** Warning: the command libtool uses to detect shared libraries,
|
|
|
6915 |
*** $file_magic_cmd, produces output that libtool cannot recognize.
|
|
|
6916 |
*** The result is that libtool may fail to recognize shared libraries
|
|
|
6917 |
*** as such. This will affect the creation of libtool libraries that
|
|
|
6918 |
*** depend on shared libraries, but programs linked with such libtool
|
|
|
6919 |
*** libraries will work regardless of this problem. Nevertheless, you
|
|
|
6920 |
*** may want to report the problem to your system manager and/or to
|
|
|
6921 |
*** bug-libtool@gnu.org
|
|
|
6922 |
|
|
|
6923 |
EOF
|
|
|
6924 |
fi ;;
|
|
|
6925 |
esac
|
|
|
6926 |
fi
|
|
|
6927 |
break
|
|
|
6928 |
fi
|
|
|
6929 |
done
|
|
|
6930 |
IFS="$lt_save_ifs"
|
|
|
6931 |
MAGIC_CMD="$lt_save_MAGIC_CMD"
|
|
|
6932 |
;;
|
|
|
6933 |
esac
|
|
|
6934 |
fi
|
|
|
6935 |
|
|
|
6936 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
|
6937 |
if test -n "$MAGIC_CMD"; then
|
|
|
6938 |
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
|
|
|
6939 |
echo "${ECHO_T}$MAGIC_CMD" >&6; }
|
|
|
6940 |
else
|
|
|
6941 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
6942 |
echo "${ECHO_T}no" >&6; }
|
|
|
6943 |
fi
|
|
|
6944 |
|
|
|
6945 |
else
|
|
|
6946 |
MAGIC_CMD=:
|
|
|
6947 |
fi
|
|
|
6948 |
fi
|
|
|
6949 |
|
|
|
6950 |
fi
|
|
|
6951 |
;;
|
|
|
6952 |
esac
|
|
|
6953 |
|
|
|
6954 |
enable_dlopen=no
|
|
|
6955 |
enable_win32_dll=no
|
|
|
6956 |
|
|
|
6957 |
# Check whether --enable-libtool-lock was given.
|
|
|
6958 |
if test "${enable_libtool_lock+set}" = set; then
|
|
|
6959 |
enableval=$enable_libtool_lock;
|
|
|
6960 |
fi
|
|
|
6961 |
|
|
|
6962 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
|
|
6963 |
|
|
|
6964 |
|
|
|
6965 |
# Check whether --with-pic was given.
|
|
|
6966 |
if test "${with_pic+set}" = set; then
|
|
|
6967 |
withval=$with_pic; pic_mode="$withval"
|
|
|
6968 |
else
|
|
|
6969 |
pic_mode=default
|
|
|
6970 |
fi
|
|
|
6971 |
|
|
|
6972 |
test -z "$pic_mode" && pic_mode=default
|
|
|
6973 |
|
|
|
6974 |
# Use C for the default configuration in the libtool script
|
|
|
6975 |
tagname=
|
|
|
6976 |
lt_save_CC="$CC"
|
|
|
6977 |
ac_ext=c
|
|
|
6978 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
6979 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
6980 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
6981 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
6982 |
|
|
|
6983 |
|
|
|
6984 |
# Source file extension for C test sources.
|
|
|
6985 |
ac_ext=c
|
|
|
6986 |
|
|
|
6987 |
# Object file extension for compiled C test sources.
|
|
|
6988 |
objext=o
|
|
|
6989 |
objext=$objext
|
|
|
6990 |
|
|
|
6991 |
# Code to be used in simple compile tests
|
|
|
6992 |
lt_simple_compile_test_code="int some_variable = 0;"
|
|
|
6993 |
|
|
|
6994 |
# Code to be used in simple link tests
|
|
|
6995 |
lt_simple_link_test_code='int main(){return(0);}'
|
|
|
6996 |
|
|
|
6997 |
|
|
|
6998 |
# If no C compiler was specified, use CC.
|
|
|
6999 |
LTCC=${LTCC-"$CC"}
|
|
|
7000 |
|
|
|
7001 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
7002 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
7003 |
|
|
|
7004 |
# Allow CC to be a program name with arguments.
|
|
|
7005 |
compiler=$CC
|
|
|
7006 |
|
|
|
7007 |
|
|
|
7008 |
# save warnings/boilerplate of simple test code
|
|
|
7009 |
ac_outfile=conftest.$ac_objext
|
|
|
7010 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
7011 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
7012 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
7013 |
$rm conftest*
|
|
|
7014 |
|
|
|
7015 |
ac_outfile=conftest.$ac_objext
|
|
|
7016 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
7017 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
7018 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
7019 |
$rm conftest*
|
|
|
7020 |
|
|
|
7021 |
|
|
|
7022 |
|
|
|
7023 |
lt_prog_compiler_no_builtin_flag=
|
|
|
7024 |
|
|
|
7025 |
if test "$GCC" = yes; then
|
|
|
7026 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
|
|
|
7027 |
|
|
|
7028 |
|
|
|
7029 |
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
|
|
7030 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
|
|
7031 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
|
|
7032 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
7033 |
else
|
|
|
7034 |
lt_cv_prog_compiler_rtti_exceptions=no
|
|
|
7035 |
ac_outfile=conftest.$ac_objext
|
|
|
7036 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
7037 |
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
|
|
7038 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
7039 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
7040 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
7041 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
7042 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
7043 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
7044 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
7045 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
7046 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
7047 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
7048 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
7049 |
ac_status=$?
|
|
|
7050 |
cat conftest.err >&5
|
|
|
7051 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
7052 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
7053 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
7054 |
# So say no if there are warnings other than the usual output.
|
|
|
7055 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
7056 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
7057 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
7058 |
lt_cv_prog_compiler_rtti_exceptions=yes
|
|
|
7059 |
fi
|
|
|
7060 |
fi
|
|
|
7061 |
$rm conftest*
|
|
|
7062 |
|
|
|
7063 |
fi
|
|
|
7064 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
|
|
7065 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
|
|
7066 |
|
|
|
7067 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
|
|
7068 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
|
|
7069 |
else
|
|
|
7070 |
:
|
|
|
7071 |
fi
|
|
|
7072 |
|
|
|
7073 |
fi
|
|
|
7074 |
|
|
|
7075 |
lt_prog_compiler_wl=
|
|
|
7076 |
lt_prog_compiler_pic=
|
|
|
7077 |
lt_prog_compiler_static=
|
|
|
7078 |
|
|
|
7079 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
|
|
7080 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
|
|
7081 |
|
|
|
7082 |
if test "$GCC" = yes; then
|
|
|
7083 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7084 |
lt_prog_compiler_static='-static'
|
|
|
7085 |
|
|
|
7086 |
case $host_os in
|
|
|
7087 |
aix*)
|
|
|
7088 |
# All AIX code is PIC.
|
|
|
7089 |
if test "$host_cpu" = ia64; then
|
|
|
7090 |
# AIX 5 now supports IA64 processor
|
|
|
7091 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7092 |
fi
|
|
|
7093 |
;;
|
|
|
7094 |
|
|
|
7095 |
amigaos*)
|
|
|
7096 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
7097 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
7098 |
# like `-m68040'.
|
|
|
7099 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
|
|
7100 |
;;
|
|
|
7101 |
|
|
|
7102 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
7103 |
# PIC is the default for these OSes.
|
|
|
7104 |
;;
|
|
|
7105 |
|
|
|
7106 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
7107 |
# This hack is so that the source file can tell whether it is being
|
|
|
7108 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
7109 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
7110 |
# (--disable-auto-import) libraries
|
|
|
7111 |
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
|
7112 |
;;
|
|
|
7113 |
|
|
|
7114 |
darwin* | rhapsody*)
|
|
|
7115 |
# PIC is the default on this platform
|
|
|
7116 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
7117 |
lt_prog_compiler_pic='-fno-common'
|
|
|
7118 |
;;
|
|
|
7119 |
|
|
|
7120 |
interix[3-9]*)
|
|
|
7121 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
7122 |
# Instead, we relocate shared libraries at runtime.
|
|
|
7123 |
;;
|
|
|
7124 |
|
|
|
7125 |
msdosdjgpp*)
|
|
|
7126 |
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
|
7127 |
# on systems that don't support them.
|
|
|
7128 |
lt_prog_compiler_can_build_shared=no
|
|
|
7129 |
enable_shared=no
|
|
|
7130 |
;;
|
|
|
7131 |
|
|
|
7132 |
sysv4*MP*)
|
|
|
7133 |
if test -d /usr/nec; then
|
|
|
7134 |
lt_prog_compiler_pic=-Kconform_pic
|
|
|
7135 |
fi
|
|
|
7136 |
;;
|
|
|
7137 |
|
|
|
7138 |
hpux*)
|
|
|
7139 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
7140 |
# not for PA HP-UX.
|
|
|
7141 |
case $host_cpu in
|
|
|
7142 |
hppa*64*|ia64*)
|
|
|
7143 |
# +Z the default
|
|
|
7144 |
;;
|
|
|
7145 |
*)
|
|
|
7146 |
lt_prog_compiler_pic='-fPIC'
|
|
|
7147 |
;;
|
|
|
7148 |
esac
|
|
|
7149 |
;;
|
|
|
7150 |
|
|
|
7151 |
*)
|
|
|
7152 |
lt_prog_compiler_pic='-fPIC'
|
|
|
7153 |
;;
|
|
|
7154 |
esac
|
|
|
7155 |
else
|
|
|
7156 |
# PORTME Check for flag to pass linker flags through the system compiler.
|
|
|
7157 |
case $host_os in
|
|
|
7158 |
aix*)
|
|
|
7159 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7160 |
if test "$host_cpu" = ia64; then
|
|
|
7161 |
# AIX 5 now supports IA64 processor
|
|
|
7162 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7163 |
else
|
|
|
7164 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
|
|
7165 |
fi
|
|
|
7166 |
;;
|
|
|
7167 |
darwin*)
|
|
|
7168 |
# PIC is the default on this platform
|
|
|
7169 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
7170 |
case $cc_basename in
|
|
|
7171 |
xlc*)
|
|
|
7172 |
lt_prog_compiler_pic='-qnocommon'
|
|
|
7173 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7174 |
;;
|
|
|
7175 |
esac
|
|
|
7176 |
;;
|
|
|
7177 |
|
|
|
7178 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
7179 |
# This hack is so that the source file can tell whether it is being
|
|
|
7180 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
7181 |
lt_prog_compiler_pic='-DDLL_EXPORT'
|
|
|
7182 |
;;
|
|
|
7183 |
|
|
|
7184 |
hpux9* | hpux10* | hpux11*)
|
|
|
7185 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7186 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
7187 |
# not for PA HP-UX.
|
|
|
7188 |
case $host_cpu in
|
|
|
7189 |
hppa*64*|ia64*)
|
|
|
7190 |
# +Z the default
|
|
|
7191 |
;;
|
|
|
7192 |
*)
|
|
|
7193 |
lt_prog_compiler_pic='+Z'
|
|
|
7194 |
;;
|
|
|
7195 |
esac
|
|
|
7196 |
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
|
7197 |
lt_prog_compiler_static='${wl}-a ${wl}archive'
|
|
|
7198 |
;;
|
|
|
7199 |
|
|
|
7200 |
irix5* | irix6* | nonstopux*)
|
|
|
7201 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7202 |
# PIC (with -KPIC) is the default.
|
|
|
7203 |
lt_prog_compiler_static='-non_shared'
|
|
|
7204 |
;;
|
|
|
7205 |
|
|
|
7206 |
newsos6)
|
|
|
7207 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7208 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7209 |
;;
|
|
|
7210 |
|
|
|
7211 |
linux* | k*bsd*-gnu)
|
|
|
7212 |
case $cc_basename in
|
|
|
7213 |
icc* | ecc*)
|
|
|
7214 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7215 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7216 |
lt_prog_compiler_static='-static'
|
|
|
7217 |
;;
|
|
|
7218 |
pgcc* | pgf77* | pgf90* | pgf95*)
|
|
|
7219 |
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
|
7220 |
# which looks to be a dead project)
|
|
|
7221 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7222 |
lt_prog_compiler_pic='-fpic'
|
|
|
7223 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7224 |
;;
|
|
|
7225 |
ccc*)
|
|
|
7226 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7227 |
# All Alpha code is PIC.
|
|
|
7228 |
lt_prog_compiler_static='-non_shared'
|
|
|
7229 |
;;
|
|
|
7230 |
*)
|
|
|
7231 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
7232 |
*Sun\ C*)
|
|
|
7233 |
# Sun C 5.9
|
|
|
7234 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7235 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7236 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7237 |
;;
|
|
|
7238 |
*Sun\ F*)
|
|
|
7239 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
|
7240 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7241 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7242 |
lt_prog_compiler_wl=''
|
|
|
7243 |
;;
|
|
|
7244 |
esac
|
|
|
7245 |
;;
|
|
|
7246 |
esac
|
|
|
7247 |
;;
|
|
|
7248 |
|
|
|
7249 |
osf3* | osf4* | osf5*)
|
|
|
7250 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7251 |
# All OSF/1 code is PIC.
|
|
|
7252 |
lt_prog_compiler_static='-non_shared'
|
|
|
7253 |
;;
|
|
|
7254 |
|
|
|
7255 |
rdos*)
|
|
|
7256 |
lt_prog_compiler_static='-non_shared'
|
|
|
7257 |
;;
|
|
|
7258 |
|
|
|
7259 |
solaris*)
|
|
|
7260 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7261 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7262 |
case $cc_basename in
|
|
|
7263 |
f77* | f90* | f95*)
|
|
|
7264 |
lt_prog_compiler_wl='-Qoption ld ';;
|
|
|
7265 |
*)
|
|
|
7266 |
lt_prog_compiler_wl='-Wl,';;
|
|
|
7267 |
esac
|
|
|
7268 |
;;
|
|
|
7269 |
|
|
|
7270 |
sunos4*)
|
|
|
7271 |
lt_prog_compiler_wl='-Qoption ld '
|
|
|
7272 |
lt_prog_compiler_pic='-PIC'
|
|
|
7273 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7274 |
;;
|
|
|
7275 |
|
|
|
7276 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
|
7277 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7278 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7279 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7280 |
;;
|
|
|
7281 |
|
|
|
7282 |
sysv4*MP*)
|
|
|
7283 |
if test -d /usr/nec ;then
|
|
|
7284 |
lt_prog_compiler_pic='-Kconform_pic'
|
|
|
7285 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7286 |
fi
|
|
|
7287 |
;;
|
|
|
7288 |
|
|
|
7289 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
7290 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7291 |
lt_prog_compiler_pic='-KPIC'
|
|
|
7292 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7293 |
;;
|
|
|
7294 |
|
|
|
7295 |
unicos*)
|
|
|
7296 |
lt_prog_compiler_wl='-Wl,'
|
|
|
7297 |
lt_prog_compiler_can_build_shared=no
|
|
|
7298 |
;;
|
|
|
7299 |
|
|
|
7300 |
uts4*)
|
|
|
7301 |
lt_prog_compiler_pic='-pic'
|
|
|
7302 |
lt_prog_compiler_static='-Bstatic'
|
|
|
7303 |
;;
|
|
|
7304 |
|
|
|
7305 |
*)
|
|
|
7306 |
lt_prog_compiler_can_build_shared=no
|
|
|
7307 |
;;
|
|
|
7308 |
esac
|
|
|
7309 |
fi
|
|
|
7310 |
|
|
|
7311 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
|
|
|
7312 |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
|
|
|
7313 |
|
|
|
7314 |
#
|
|
|
7315 |
# Check to make sure the PIC flag actually works.
|
|
|
7316 |
#
|
|
|
7317 |
if test -n "$lt_prog_compiler_pic"; then
|
|
|
7318 |
|
|
|
7319 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
|
|
7320 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
|
|
|
7321 |
if test "${lt_prog_compiler_pic_works+set}" = set; then
|
|
|
7322 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
7323 |
else
|
|
|
7324 |
lt_prog_compiler_pic_works=no
|
|
|
7325 |
ac_outfile=conftest.$ac_objext
|
|
|
7326 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
7327 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
|
|
|
7328 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
7329 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
7330 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
7331 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
7332 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
7333 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
7334 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
7335 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
7336 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
7337 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
7338 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
7339 |
ac_status=$?
|
|
|
7340 |
cat conftest.err >&5
|
|
|
7341 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
7342 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
7343 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
7344 |
# So say no if there are warnings other than the usual output.
|
|
|
7345 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
7346 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
7347 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
7348 |
lt_prog_compiler_pic_works=yes
|
|
|
7349 |
fi
|
|
|
7350 |
fi
|
|
|
7351 |
$rm conftest*
|
|
|
7352 |
|
|
|
7353 |
fi
|
|
|
7354 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
|
|
|
7355 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
|
|
|
7356 |
|
|
|
7357 |
if test x"$lt_prog_compiler_pic_works" = xyes; then
|
|
|
7358 |
case $lt_prog_compiler_pic in
|
|
|
7359 |
"" | " "*) ;;
|
|
|
7360 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
|
|
7361 |
esac
|
|
|
7362 |
else
|
|
|
7363 |
lt_prog_compiler_pic=
|
|
|
7364 |
lt_prog_compiler_can_build_shared=no
|
|
|
7365 |
fi
|
|
|
7366 |
|
|
|
7367 |
fi
|
|
|
7368 |
case $host_os in
|
|
|
7369 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
|
7370 |
*djgpp*)
|
|
|
7371 |
lt_prog_compiler_pic=
|
|
|
7372 |
;;
|
|
|
7373 |
*)
|
|
|
7374 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
|
7375 |
;;
|
|
|
7376 |
esac
|
|
|
7377 |
|
|
|
7378 |
#
|
|
|
7379 |
# Check to make sure the static flag actually works.
|
|
|
7380 |
#
|
|
|
7381 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
|
|
7382 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
|
7383 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
|
|
7384 |
if test "${lt_prog_compiler_static_works+set}" = set; then
|
|
|
7385 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
7386 |
else
|
|
|
7387 |
lt_prog_compiler_static_works=no
|
|
|
7388 |
save_LDFLAGS="$LDFLAGS"
|
|
|
7389 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
|
7390 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
|
7391 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
|
7392 |
# The linker can only warn and ignore the option if not recognized
|
|
|
7393 |
# So say no if there are warnings
|
|
|
7394 |
if test -s conftest.err; then
|
|
|
7395 |
# Append any errors to the config.log.
|
|
|
7396 |
cat conftest.err 1>&5
|
|
|
7397 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
|
7398 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
7399 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
7400 |
lt_prog_compiler_static_works=yes
|
|
|
7401 |
fi
|
|
|
7402 |
else
|
|
|
7403 |
lt_prog_compiler_static_works=yes
|
|
|
7404 |
fi
|
|
|
7405 |
fi
|
|
|
7406 |
$rm conftest*
|
|
|
7407 |
LDFLAGS="$save_LDFLAGS"
|
|
|
7408 |
|
|
|
7409 |
fi
|
|
|
7410 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
|
|
7411 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
|
|
|
7412 |
|
|
|
7413 |
if test x"$lt_prog_compiler_static_works" = xyes; then
|
|
|
7414 |
:
|
|
|
7415 |
else
|
|
|
7416 |
lt_prog_compiler_static=
|
|
|
7417 |
fi
|
|
|
7418 |
|
|
|
7419 |
|
|
|
7420 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
|
7421 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
|
|
7422 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
|
|
7423 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
7424 |
else
|
|
|
7425 |
lt_cv_prog_compiler_c_o=no
|
|
|
7426 |
$rm -r conftest 2>/dev/null
|
|
|
7427 |
mkdir conftest
|
|
|
7428 |
cd conftest
|
|
|
7429 |
mkdir out
|
|
|
7430 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
7431 |
|
|
|
7432 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
|
7433 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
7434 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
7435 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
7436 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
7437 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
7438 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
7439 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
7440 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
7441 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
7442 |
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
7443 |
ac_status=$?
|
|
|
7444 |
cat out/conftest.err >&5
|
|
|
7445 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
7446 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
7447 |
then
|
|
|
7448 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
7449 |
# So say no if there are warnings
|
|
|
7450 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
|
7451 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
|
7452 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
|
7453 |
lt_cv_prog_compiler_c_o=yes
|
|
|
7454 |
fi
|
|
|
7455 |
fi
|
|
|
7456 |
chmod u+w . 2>&5
|
|
|
7457 |
$rm conftest*
|
|
|
7458 |
# SGI C++ compiler will create directory out/ii_files/ for
|
|
|
7459 |
# template instantiation
|
|
|
7460 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
|
|
7461 |
$rm out/* && rmdir out
|
|
|
7462 |
cd ..
|
|
|
7463 |
rmdir conftest
|
|
|
7464 |
$rm conftest*
|
|
|
7465 |
|
|
|
7466 |
fi
|
|
|
7467 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
|
|
|
7468 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
|
|
|
7469 |
|
|
|
7470 |
|
|
|
7471 |
hard_links="nottested"
|
|
|
7472 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
|
|
|
7473 |
# do not overwrite the value of need_locks provided by the user
|
|
|
7474 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
|
|
7475 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
|
|
7476 |
hard_links=yes
|
|
|
7477 |
$rm conftest*
|
|
|
7478 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
7479 |
touch conftest.a
|
|
|
7480 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
7481 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
7482 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
|
|
7483 |
echo "${ECHO_T}$hard_links" >&6; }
|
|
|
7484 |
if test "$hard_links" = no; then
|
|
|
7485 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
|
|
7486 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
|
|
7487 |
need_locks=warn
|
|
|
7488 |
fi
|
|
|
7489 |
else
|
|
|
7490 |
need_locks=no
|
|
|
7491 |
fi
|
|
|
7492 |
|
|
|
7493 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
|
7494 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
|
|
7495 |
|
|
|
7496 |
runpath_var=
|
|
|
7497 |
allow_undefined_flag=
|
|
|
7498 |
enable_shared_with_static_runtimes=no
|
|
|
7499 |
archive_cmds=
|
|
|
7500 |
archive_expsym_cmds=
|
|
|
7501 |
old_archive_From_new_cmds=
|
|
|
7502 |
old_archive_from_expsyms_cmds=
|
|
|
7503 |
export_dynamic_flag_spec=
|
|
|
7504 |
whole_archive_flag_spec=
|
|
|
7505 |
thread_safe_flag_spec=
|
|
|
7506 |
hardcode_libdir_flag_spec=
|
|
|
7507 |
hardcode_libdir_flag_spec_ld=
|
|
|
7508 |
hardcode_libdir_separator=
|
|
|
7509 |
hardcode_direct=no
|
|
|
7510 |
hardcode_minus_L=no
|
|
|
7511 |
hardcode_shlibpath_var=unsupported
|
|
|
7512 |
link_all_deplibs=unknown
|
|
|
7513 |
hardcode_automatic=no
|
|
|
7514 |
module_cmds=
|
|
|
7515 |
module_expsym_cmds=
|
|
|
7516 |
always_export_symbols=no
|
|
|
7517 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
7518 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
|
7519 |
# included in the symbol list
|
|
|
7520 |
include_expsyms=
|
|
|
7521 |
# exclude_expsyms can be an extended regexp of symbols to exclude
|
|
|
7522 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
|
7523 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
|
7524 |
# as well as any symbol that contains `d'.
|
|
|
7525 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
|
|
|
7526 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
|
7527 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
|
7528 |
# the symbol is explicitly referenced. Since portable code cannot
|
|
|
7529 |
# rely on this symbol name, it's probably fine to never include it in
|
|
|
7530 |
# preloaded symbol tables.
|
|
|
7531 |
extract_expsyms_cmds=
|
|
|
7532 |
# Just being paranoid about ensuring that cc_basename is set.
|
|
|
7533 |
for cc_temp in $compiler""; do
|
|
|
7534 |
case $cc_temp in
|
|
|
7535 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
7536 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
7537 |
\-*) ;;
|
|
|
7538 |
*) break;;
|
|
|
7539 |
esac
|
|
|
7540 |
done
|
|
|
7541 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
7542 |
|
|
|
7543 |
case $host_os in
|
|
|
7544 |
cygwin* | mingw* | pw32*)
|
|
|
7545 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
|
7546 |
# When not using gcc, we currently assume that we are using
|
|
|
7547 |
# Microsoft Visual C++.
|
|
|
7548 |
if test "$GCC" != yes; then
|
|
|
7549 |
with_gnu_ld=no
|
|
|
7550 |
fi
|
|
|
7551 |
;;
|
|
|
7552 |
interix*)
|
|
|
7553 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
|
7554 |
with_gnu_ld=yes
|
|
|
7555 |
;;
|
|
|
7556 |
openbsd*)
|
|
|
7557 |
with_gnu_ld=no
|
|
|
7558 |
;;
|
|
|
7559 |
esac
|
|
|
7560 |
|
|
|
7561 |
ld_shlibs=yes
|
|
|
7562 |
if test "$with_gnu_ld" = yes; then
|
|
|
7563 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
7564 |
wlarc='${wl}'
|
|
|
7565 |
|
|
|
7566 |
# Set some defaults for GNU ld with shared library support. These
|
|
|
7567 |
# are reset later if shared libraries are not supported. Putting them
|
|
|
7568 |
# here allows them to be overridden if necessary.
|
|
|
7569 |
runpath_var=LD_RUN_PATH
|
|
|
7570 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
|
|
|
7571 |
export_dynamic_flag_spec='${wl}--export-dynamic'
|
|
|
7572 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
7573 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
|
|
7574 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
7575 |
else
|
|
|
7576 |
whole_archive_flag_spec=
|
|
|
7577 |
fi
|
|
|
7578 |
supports_anon_versioning=no
|
|
|
7579 |
case `$LD -v 2>/dev/null` in
|
|
|
7580 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
|
7581 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
|
7582 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
|
7583 |
*\ 2.11.*) ;; # other 2.11 versions
|
|
|
7584 |
*) supports_anon_versioning=yes ;;
|
|
|
7585 |
esac
|
|
|
7586 |
|
|
|
7587 |
# See if GNU ld supports shared libraries.
|
|
|
7588 |
case $host_os in
|
|
|
7589 |
aix3* | aix4* | aix5*)
|
|
|
7590 |
# On AIX/PPC, the GNU linker is very broken
|
|
|
7591 |
if test "$host_cpu" != ia64; then
|
|
|
7592 |
ld_shlibs=no
|
|
|
7593 |
cat <<EOF 1>&2
|
|
|
7594 |
|
|
|
7595 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|
|
7596 |
*** to be unable to reliably create shared libraries on AIX.
|
|
|
7597 |
*** Therefore, libtool is disabling shared libraries support. If you
|
|
|
7598 |
*** really care for shared libraries, you may want to modify your PATH
|
|
|
7599 |
*** so that a non-GNU linker is found, and then restart.
|
|
|
7600 |
|
|
|
7601 |
EOF
|
|
|
7602 |
fi
|
|
|
7603 |
;;
|
|
|
7604 |
|
|
|
7605 |
amigaos*)
|
|
|
7606 |
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)'
|
|
|
7607 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
7608 |
hardcode_minus_L=yes
|
|
|
7609 |
|
|
|
7610 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
|
|
7611 |
# that the semantics of dynamic libraries on AmigaOS, at least up
|
|
|
7612 |
# to version 4, is to share data among multiple programs linked
|
|
|
7613 |
# with the same dynamic library. Since this doesn't match the
|
|
|
7614 |
# behavior of shared libraries on other platforms, we can't use
|
|
|
7615 |
# them.
|
|
|
7616 |
ld_shlibs=no
|
|
|
7617 |
;;
|
|
|
7618 |
|
|
|
7619 |
beos*)
|
|
|
7620 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
7621 |
allow_undefined_flag=unsupported
|
|
|
7622 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
7623 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
7624 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7625 |
else
|
|
|
7626 |
ld_shlibs=no
|
|
|
7627 |
fi
|
|
|
7628 |
;;
|
|
|
7629 |
|
|
|
7630 |
cygwin* | mingw* | pw32*)
|
|
|
7631 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
|
|
7632 |
# as there is no search path for DLLs.
|
|
|
7633 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
7634 |
allow_undefined_flag=unsupported
|
|
|
7635 |
always_export_symbols=no
|
|
|
7636 |
enable_shared_with_static_runtimes=yes
|
|
|
7637 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
|
7638 |
|
|
|
7639 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
|
7640 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
7641 |
# If the export-symbols file already is a .def file (1st line
|
|
|
7642 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
7643 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
7644 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
7645 |
else
|
|
|
7646 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
7647 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
7648 |
fi~
|
|
|
7649 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
7650 |
else
|
|
|
7651 |
ld_shlibs=no
|
|
|
7652 |
fi
|
|
|
7653 |
;;
|
|
|
7654 |
|
|
|
7655 |
interix[3-9]*)
|
|
|
7656 |
hardcode_direct=no
|
|
|
7657 |
hardcode_shlibpath_var=no
|
|
|
7658 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
|
7659 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
7660 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
7661 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
7662 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
7663 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
7664 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
7665 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
7666 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
7667 |
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'
|
|
|
7668 |
;;
|
|
|
7669 |
|
|
|
7670 |
gnu* | linux* | k*bsd*-gnu)
|
|
|
7671 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
7672 |
tmp_addflag=
|
|
|
7673 |
case $cc_basename,$host_cpu in
|
|
|
7674 |
pgcc*) # Portland Group C compiler
|
|
|
7675 |
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'
|
|
|
7676 |
tmp_addflag=' $pic_flag'
|
|
|
7677 |
;;
|
|
|
7678 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
|
|
7679 |
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'
|
|
|
7680 |
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
|
7681 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
|
7682 |
tmp_addflag=' -i_dynamic' ;;
|
|
|
7683 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
|
7684 |
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
|
7685 |
ifc* | ifort*) # Intel Fortran compiler
|
|
|
7686 |
tmp_addflag=' -nofor_main' ;;
|
|
|
7687 |
esac
|
|
|
7688 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
7689 |
*Sun\ C*) # Sun C 5.9
|
|
|
7690 |
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'
|
|
|
7691 |
tmp_sharedflag='-G' ;;
|
|
|
7692 |
*Sun\ F*) # Sun Fortran 8.3
|
|
|
7693 |
tmp_sharedflag='-G' ;;
|
|
|
7694 |
*)
|
|
|
7695 |
tmp_sharedflag='-shared' ;;
|
|
|
7696 |
esac
|
|
|
7697 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7698 |
|
|
|
7699 |
if test $supports_anon_versioning = yes; then
|
|
|
7700 |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
7701 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
7702 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
7703 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
|
7704 |
fi
|
|
|
7705 |
link_all_deplibs=no
|
|
|
7706 |
else
|
|
|
7707 |
ld_shlibs=no
|
|
|
7708 |
fi
|
|
|
7709 |
;;
|
|
|
7710 |
|
|
|
7711 |
netbsd* | netbsdelf*-gnu)
|
|
|
7712 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
7713 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
|
7714 |
wlarc=
|
|
|
7715 |
else
|
|
|
7716 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7717 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7718 |
fi
|
|
|
7719 |
;;
|
|
|
7720 |
|
|
|
7721 |
solaris*)
|
|
|
7722 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
|
|
7723 |
ld_shlibs=no
|
|
|
7724 |
cat <<EOF 1>&2
|
|
|
7725 |
|
|
|
7726 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
|
7727 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
|
7728 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
7729 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
|
7730 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
7731 |
*** used, and then restart.
|
|
|
7732 |
|
|
|
7733 |
EOF
|
|
|
7734 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
7735 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7736 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7737 |
else
|
|
|
7738 |
ld_shlibs=no
|
|
|
7739 |
fi
|
|
|
7740 |
;;
|
|
|
7741 |
|
|
|
7742 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
7743 |
case `$LD -v 2>&1` in
|
|
|
7744 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
|
7745 |
ld_shlibs=no
|
|
|
7746 |
cat <<_LT_EOF 1>&2
|
|
|
7747 |
|
|
|
7748 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
|
7749 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
|
7750 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
7751 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
|
7752 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
7753 |
*** used, and then restart.
|
|
|
7754 |
|
|
|
7755 |
_LT_EOF
|
|
|
7756 |
;;
|
|
|
7757 |
*)
|
|
|
7758 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
7759 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
|
7760 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
|
7761 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
|
7762 |
else
|
|
|
7763 |
ld_shlibs=no
|
|
|
7764 |
fi
|
|
|
7765 |
;;
|
|
|
7766 |
esac
|
|
|
7767 |
;;
|
|
|
7768 |
|
|
|
7769 |
sunos4*)
|
|
|
7770 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
7771 |
wlarc=
|
|
|
7772 |
hardcode_direct=yes
|
|
|
7773 |
hardcode_shlibpath_var=no
|
|
|
7774 |
;;
|
|
|
7775 |
|
|
|
7776 |
*)
|
|
|
7777 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
7778 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
7779 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
7780 |
else
|
|
|
7781 |
ld_shlibs=no
|
|
|
7782 |
fi
|
|
|
7783 |
;;
|
|
|
7784 |
esac
|
|
|
7785 |
|
|
|
7786 |
if test "$ld_shlibs" = no; then
|
|
|
7787 |
runpath_var=
|
|
|
7788 |
hardcode_libdir_flag_spec=
|
|
|
7789 |
export_dynamic_flag_spec=
|
|
|
7790 |
whole_archive_flag_spec=
|
|
|
7791 |
fi
|
|
|
7792 |
else
|
|
|
7793 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
|
7794 |
case $host_os in
|
|
|
7795 |
aix3*)
|
|
|
7796 |
allow_undefined_flag=unsupported
|
|
|
7797 |
always_export_symbols=yes
|
|
|
7798 |
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'
|
|
|
7799 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
|
7800 |
# are no directories specified by -L.
|
|
|
7801 |
hardcode_minus_L=yes
|
|
|
7802 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
|
7803 |
# Neither direct hardcoding nor static linking is supported with a
|
|
|
7804 |
# broken collect2.
|
|
|
7805 |
hardcode_direct=unsupported
|
|
|
7806 |
fi
|
|
|
7807 |
;;
|
|
|
7808 |
|
|
|
7809 |
aix4* | aix5*)
|
|
|
7810 |
if test "$host_cpu" = ia64; then
|
|
|
7811 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
7812 |
# have to do anything special.
|
|
|
7813 |
aix_use_runtimelinking=no
|
|
|
7814 |
exp_sym_flag='-Bexport'
|
|
|
7815 |
no_entry_flag=""
|
|
|
7816 |
else
|
|
|
7817 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
7818 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
7819 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|
|
7820 |
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'
|
|
|
7821 |
else
|
|
|
7822 |
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'
|
|
|
7823 |
fi
|
|
|
7824 |
aix_use_runtimelinking=no
|
|
|
7825 |
|
|
|
7826 |
# Test if we are trying to use run time linking or normal
|
|
|
7827 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
7828 |
# need to do runtime linking.
|
|
|
7829 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
|
|
7830 |
for ld_flag in $LDFLAGS; do
|
|
|
7831 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
|
7832 |
aix_use_runtimelinking=yes
|
|
|
7833 |
break
|
|
|
7834 |
fi
|
|
|
7835 |
done
|
|
|
7836 |
;;
|
|
|
7837 |
esac
|
|
|
7838 |
|
|
|
7839 |
exp_sym_flag='-bexport'
|
|
|
7840 |
no_entry_flag='-bnoentry'
|
|
|
7841 |
fi
|
|
|
7842 |
|
|
|
7843 |
# When large executables or shared objects are built, AIX ld can
|
|
|
7844 |
# have problems creating the table of contents. If linking a library
|
|
|
7845 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
7846 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
7847 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
7848 |
|
|
|
7849 |
archive_cmds=''
|
|
|
7850 |
hardcode_direct=yes
|
|
|
7851 |
hardcode_libdir_separator=':'
|
|
|
7852 |
link_all_deplibs=yes
|
|
|
7853 |
|
|
|
7854 |
if test "$GCC" = yes; then
|
|
|
7855 |
case $host_os in aix4.[012]|aix4.[012].*)
|
|
|
7856 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
7857 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
7858 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
7859 |
if test -f "$collect2name" && \
|
|
|
7860 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
|
7861 |
then
|
|
|
7862 |
# We have reworked collect2
|
|
|
7863 |
:
|
|
|
7864 |
else
|
|
|
7865 |
# We have old collect2
|
|
|
7866 |
hardcode_direct=unsupported
|
|
|
7867 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
7868 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
7869 |
# to unsupported forces relinking
|
|
|
7870 |
hardcode_minus_L=yes
|
|
|
7871 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
7872 |
hardcode_libdir_separator=
|
|
|
7873 |
fi
|
|
|
7874 |
;;
|
|
|
7875 |
esac
|
|
|
7876 |
shared_flag='-shared'
|
|
|
7877 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7878 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
7879 |
fi
|
|
|
7880 |
else
|
|
|
7881 |
# not using gcc
|
|
|
7882 |
if test "$host_cpu" = ia64; then
|
|
|
7883 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
7884 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
7885 |
shared_flag='-G'
|
|
|
7886 |
else
|
|
|
7887 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7888 |
shared_flag='${wl}-G'
|
|
|
7889 |
else
|
|
|
7890 |
shared_flag='${wl}-bM:SRE'
|
|
|
7891 |
fi
|
|
|
7892 |
fi
|
|
|
7893 |
fi
|
|
|
7894 |
|
|
|
7895 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
7896 |
# underscore (_), so it is better to generate a list of symbols to export.
|
|
|
7897 |
always_export_symbols=yes
|
|
|
7898 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
7899 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
7900 |
# -berok will link without error, but may produce a broken library.
|
|
|
7901 |
allow_undefined_flag='-berok'
|
|
|
7902 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
7903 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
7904 |
/* confdefs.h. */
|
|
|
7905 |
_ACEOF
|
|
|
7906 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
7907 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
7908 |
/* end confdefs.h. */
|
|
|
7909 |
|
|
|
7910 |
int
|
|
|
7911 |
main ()
|
|
|
7912 |
{
|
|
|
7913 |
|
|
|
7914 |
;
|
|
|
7915 |
return 0;
|
|
|
7916 |
}
|
|
|
7917 |
_ACEOF
|
|
|
7918 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
7919 |
if { (ac_try="$ac_link"
|
|
|
7920 |
case "(($ac_try" in
|
|
|
7921 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
7922 |
*) ac_try_echo=$ac_try;;
|
|
|
7923 |
esac
|
|
|
7924 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
7925 |
(eval "$ac_link") 2>conftest.er1
|
|
|
7926 |
ac_status=$?
|
|
|
7927 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
7928 |
rm -f conftest.er1
|
|
|
7929 |
cat conftest.err >&5
|
|
|
7930 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
7931 |
(exit $ac_status); } && {
|
|
|
7932 |
test -z "$ac_c_werror_flag" ||
|
|
|
7933 |
test ! -s conftest.err
|
|
|
7934 |
} && test -s conftest$ac_exeext &&
|
|
|
7935 |
$as_test_x conftest$ac_exeext; then
|
|
|
7936 |
|
|
|
7937 |
lt_aix_libpath_sed='
|
|
|
7938 |
/Import File Strings/,/^$/ {
|
|
|
7939 |
/^0/ {
|
|
|
7940 |
s/^0 *\(.*\)$/\1/
|
|
|
7941 |
p
|
|
|
7942 |
}
|
|
|
7943 |
}'
|
|
|
7944 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
7945 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
7946 |
if test -z "$aix_libpath"; then
|
|
|
7947 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
7948 |
fi
|
|
|
7949 |
else
|
|
|
7950 |
echo "$as_me: failed program was:" >&5
|
|
|
7951 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
7952 |
|
|
|
7953 |
|
|
|
7954 |
fi
|
|
|
7955 |
|
|
|
7956 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
7957 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
7958 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
7959 |
|
|
|
7960 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
7961 |
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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
7962 |
else
|
|
|
7963 |
if test "$host_cpu" = ia64; then
|
|
|
7964 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
7965 |
allow_undefined_flag="-z nodefs"
|
|
|
7966 |
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"
|
|
|
7967 |
else
|
|
|
7968 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
7969 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
7970 |
/* confdefs.h. */
|
|
|
7971 |
_ACEOF
|
|
|
7972 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
7973 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
7974 |
/* end confdefs.h. */
|
|
|
7975 |
|
|
|
7976 |
int
|
|
|
7977 |
main ()
|
|
|
7978 |
{
|
|
|
7979 |
|
|
|
7980 |
;
|
|
|
7981 |
return 0;
|
|
|
7982 |
}
|
|
|
7983 |
_ACEOF
|
|
|
7984 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
7985 |
if { (ac_try="$ac_link"
|
|
|
7986 |
case "(($ac_try" in
|
|
|
7987 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
7988 |
*) ac_try_echo=$ac_try;;
|
|
|
7989 |
esac
|
|
|
7990 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
7991 |
(eval "$ac_link") 2>conftest.er1
|
|
|
7992 |
ac_status=$?
|
|
|
7993 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
7994 |
rm -f conftest.er1
|
|
|
7995 |
cat conftest.err >&5
|
|
|
7996 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
7997 |
(exit $ac_status); } && {
|
|
|
7998 |
test -z "$ac_c_werror_flag" ||
|
|
|
7999 |
test ! -s conftest.err
|
|
|
8000 |
} && test -s conftest$ac_exeext &&
|
|
|
8001 |
$as_test_x conftest$ac_exeext; then
|
|
|
8002 |
|
|
|
8003 |
lt_aix_libpath_sed='
|
|
|
8004 |
/Import File Strings/,/^$/ {
|
|
|
8005 |
/^0/ {
|
|
|
8006 |
s/^0 *\(.*\)$/\1/
|
|
|
8007 |
p
|
|
|
8008 |
}
|
|
|
8009 |
}'
|
|
|
8010 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
8011 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
8012 |
if test -z "$aix_libpath"; then
|
|
|
8013 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
8014 |
fi
|
|
|
8015 |
else
|
|
|
8016 |
echo "$as_me: failed program was:" >&5
|
|
|
8017 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
8018 |
|
|
|
8019 |
|
|
|
8020 |
fi
|
|
|
8021 |
|
|
|
8022 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
8023 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
8024 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
8025 |
|
|
|
8026 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
8027 |
# Warning - without using the other run time loading flags,
|
|
|
8028 |
# -berok will link without error, but may produce a broken library.
|
|
|
8029 |
no_undefined_flag=' ${wl}-bernotok'
|
|
|
8030 |
allow_undefined_flag=' ${wl}-berok'
|
|
|
8031 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
8032 |
whole_archive_flag_spec='$convenience'
|
|
|
8033 |
archive_cmds_need_lc=yes
|
|
|
8034 |
# This is similar to how AIX traditionally builds its shared libraries.
|
|
|
8035 |
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'
|
|
|
8036 |
fi
|
|
|
8037 |
fi
|
|
|
8038 |
;;
|
|
|
8039 |
|
|
|
8040 |
amigaos*)
|
|
|
8041 |
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)'
|
|
|
8042 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
8043 |
hardcode_minus_L=yes
|
|
|
8044 |
# see comment about different semantics on the GNU ld section
|
|
|
8045 |
ld_shlibs=no
|
|
|
8046 |
;;
|
|
|
8047 |
|
|
|
8048 |
bsdi[45]*)
|
|
|
8049 |
export_dynamic_flag_spec=-rdynamic
|
|
|
8050 |
;;
|
|
|
8051 |
|
|
|
8052 |
cygwin* | mingw* | pw32*)
|
|
|
8053 |
# When not using gcc, we currently assume that we are using
|
|
|
8054 |
# Microsoft Visual C++.
|
|
|
8055 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
8056 |
# no search path for DLLs.
|
|
|
8057 |
hardcode_libdir_flag_spec=' '
|
|
|
8058 |
allow_undefined_flag=unsupported
|
|
|
8059 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
8060 |
libext=lib
|
|
|
8061 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
8062 |
shrext_cmds=".dll"
|
|
|
8063 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
8064 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
|
8065 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
|
8066 |
old_archive_From_new_cmds='true'
|
|
|
8067 |
# FIXME: Should let the user specify the lib program.
|
|
|
8068 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
|
8069 |
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
|
8070 |
enable_shared_with_static_runtimes=yes
|
|
|
8071 |
;;
|
|
|
8072 |
|
|
|
8073 |
darwin* | rhapsody*)
|
|
|
8074 |
case $host_os in
|
|
|
8075 |
rhapsody* | darwin1.[012])
|
|
|
8076 |
allow_undefined_flag='${wl}-undefined ${wl}suppress'
|
|
|
8077 |
;;
|
|
|
8078 |
*) # Darwin 1.3 on
|
|
|
8079 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
|
8080 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
8081 |
else
|
|
|
8082 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
|
8083 |
10.[012])
|
|
|
8084 |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
8085 |
;;
|
|
|
8086 |
10.*)
|
|
|
8087 |
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
|
|
|
8088 |
;;
|
|
|
8089 |
esac
|
|
|
8090 |
fi
|
|
|
8091 |
;;
|
|
|
8092 |
esac
|
|
|
8093 |
archive_cmds_need_lc=no
|
|
|
8094 |
hardcode_direct=no
|
|
|
8095 |
hardcode_automatic=yes
|
|
|
8096 |
hardcode_shlibpath_var=unsupported
|
|
|
8097 |
whole_archive_flag_spec=''
|
|
|
8098 |
link_all_deplibs=yes
|
|
|
8099 |
if test "$GCC" = yes ; then
|
|
|
8100 |
output_verbose_link_cmd='echo'
|
|
|
8101 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
|
8102 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
8103 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
8104 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
8105 |
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
8106 |
else
|
|
|
8107 |
case $cc_basename in
|
|
|
8108 |
xlc*)
|
|
|
8109 |
output_verbose_link_cmd='echo'
|
|
|
8110 |
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
|
8111 |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
8112 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
8113 |
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
8114 |
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
8115 |
;;
|
|
|
8116 |
*)
|
|
|
8117 |
ld_shlibs=no
|
|
|
8118 |
;;
|
|
|
8119 |
esac
|
|
|
8120 |
fi
|
|
|
8121 |
;;
|
|
|
8122 |
|
|
|
8123 |
dgux*)
|
|
|
8124 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8125 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
8126 |
hardcode_shlibpath_var=no
|
|
|
8127 |
;;
|
|
|
8128 |
|
|
|
8129 |
freebsd1*)
|
|
|
8130 |
ld_shlibs=no
|
|
|
8131 |
;;
|
|
|
8132 |
|
|
|
8133 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
|
8134 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
|
8135 |
# does not break anything, and helps significantly (at the cost of a little
|
|
|
8136 |
# extra space).
|
|
|
8137 |
freebsd2.2*)
|
|
|
8138 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
|
8139 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
8140 |
hardcode_direct=yes
|
|
|
8141 |
hardcode_shlibpath_var=no
|
|
|
8142 |
;;
|
|
|
8143 |
|
|
|
8144 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
|
8145 |
freebsd2*)
|
|
|
8146 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8147 |
hardcode_direct=yes
|
|
|
8148 |
hardcode_minus_L=yes
|
|
|
8149 |
hardcode_shlibpath_var=no
|
|
|
8150 |
;;
|
|
|
8151 |
|
|
|
8152 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
|
8153 |
freebsd* | dragonfly*)
|
|
|
8154 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8155 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
8156 |
hardcode_direct=yes
|
|
|
8157 |
hardcode_shlibpath_var=no
|
|
|
8158 |
;;
|
|
|
8159 |
|
|
|
8160 |
hpux9*)
|
|
|
8161 |
if test "$GCC" = yes; then
|
|
|
8162 |
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'
|
|
|
8163 |
else
|
|
|
8164 |
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'
|
|
|
8165 |
fi
|
|
|
8166 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
|
8167 |
hardcode_libdir_separator=:
|
|
|
8168 |
hardcode_direct=yes
|
|
|
8169 |
|
|
|
8170 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
8171 |
# but as the default location of the library.
|
|
|
8172 |
hardcode_minus_L=yes
|
|
|
8173 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
8174 |
;;
|
|
|
8175 |
|
|
|
8176 |
hpux10*)
|
|
|
8177 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
8178 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8179 |
else
|
|
|
8180 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8181 |
fi
|
|
|
8182 |
if test "$with_gnu_ld" = no; then
|
|
|
8183 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
|
8184 |
hardcode_libdir_separator=:
|
|
|
8185 |
|
|
|
8186 |
hardcode_direct=yes
|
|
|
8187 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
8188 |
|
|
|
8189 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
8190 |
# but as the default location of the library.
|
|
|
8191 |
hardcode_minus_L=yes
|
|
|
8192 |
fi
|
|
|
8193 |
;;
|
|
|
8194 |
|
|
|
8195 |
hpux11*)
|
|
|
8196 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
8197 |
case $host_cpu in
|
|
|
8198 |
hppa*64*)
|
|
|
8199 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8200 |
;;
|
|
|
8201 |
ia64*)
|
|
|
8202 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8203 |
;;
|
|
|
8204 |
*)
|
|
|
8205 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8206 |
;;
|
|
|
8207 |
esac
|
|
|
8208 |
else
|
|
|
8209 |
case $host_cpu in
|
|
|
8210 |
hppa*64*)
|
|
|
8211 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8212 |
;;
|
|
|
8213 |
ia64*)
|
|
|
8214 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8215 |
;;
|
|
|
8216 |
*)
|
|
|
8217 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8218 |
;;
|
|
|
8219 |
esac
|
|
|
8220 |
fi
|
|
|
8221 |
if test "$with_gnu_ld" = no; then
|
|
|
8222 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
|
8223 |
hardcode_libdir_separator=:
|
|
|
8224 |
|
|
|
8225 |
case $host_cpu in
|
|
|
8226 |
hppa*64*|ia64*)
|
|
|
8227 |
hardcode_libdir_flag_spec_ld='+b $libdir'
|
|
|
8228 |
hardcode_direct=no
|
|
|
8229 |
hardcode_shlibpath_var=no
|
|
|
8230 |
;;
|
|
|
8231 |
*)
|
|
|
8232 |
hardcode_direct=yes
|
|
|
8233 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
8234 |
|
|
|
8235 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
8236 |
# but as the default location of the library.
|
|
|
8237 |
hardcode_minus_L=yes
|
|
|
8238 |
;;
|
|
|
8239 |
esac
|
|
|
8240 |
fi
|
|
|
8241 |
;;
|
|
|
8242 |
|
|
|
8243 |
irix5* | irix6* | nonstopux*)
|
|
|
8244 |
if test "$GCC" = yes; then
|
|
|
8245 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
8246 |
else
|
|
|
8247 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
8248 |
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
|
8249 |
fi
|
|
|
8250 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
8251 |
hardcode_libdir_separator=:
|
|
|
8252 |
link_all_deplibs=yes
|
|
|
8253 |
;;
|
|
|
8254 |
|
|
|
8255 |
netbsd* | netbsdelf*-gnu)
|
|
|
8256 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
8257 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
|
8258 |
else
|
|
|
8259 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
|
8260 |
fi
|
|
|
8261 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
8262 |
hardcode_direct=yes
|
|
|
8263 |
hardcode_shlibpath_var=no
|
|
|
8264 |
;;
|
|
|
8265 |
|
|
|
8266 |
newsos6)
|
|
|
8267 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8268 |
hardcode_direct=yes
|
|
|
8269 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
8270 |
hardcode_libdir_separator=:
|
|
|
8271 |
hardcode_shlibpath_var=no
|
|
|
8272 |
;;
|
|
|
8273 |
|
|
|
8274 |
openbsd*)
|
|
|
8275 |
if test -f /usr/libexec/ld.so; then
|
|
|
8276 |
hardcode_direct=yes
|
|
|
8277 |
hardcode_shlibpath_var=no
|
|
|
8278 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
8279 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8280 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
|
8281 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
|
8282 |
export_dynamic_flag_spec='${wl}-E'
|
|
|
8283 |
else
|
|
|
8284 |
case $host_os in
|
|
|
8285 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
|
8286 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8287 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
8288 |
;;
|
|
|
8289 |
*)
|
|
|
8290 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8291 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
|
8292 |
;;
|
|
|
8293 |
esac
|
|
|
8294 |
fi
|
|
|
8295 |
else
|
|
|
8296 |
ld_shlibs=no
|
|
|
8297 |
fi
|
|
|
8298 |
;;
|
|
|
8299 |
|
|
|
8300 |
os2*)
|
|
|
8301 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
8302 |
hardcode_minus_L=yes
|
|
|
8303 |
allow_undefined_flag=unsupported
|
|
|
8304 |
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'
|
|
|
8305 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
|
8306 |
;;
|
|
|
8307 |
|
|
|
8308 |
osf3*)
|
|
|
8309 |
if test "$GCC" = yes; then
|
|
|
8310 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
8311 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
8312 |
else
|
|
|
8313 |
allow_undefined_flag=' -expect_unresolved \*'
|
|
|
8314 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
8315 |
fi
|
|
|
8316 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
8317 |
hardcode_libdir_separator=:
|
|
|
8318 |
;;
|
|
|
8319 |
|
|
|
8320 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
|
8321 |
if test "$GCC" = yes; then
|
|
|
8322 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
8323 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
8324 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
|
8325 |
else
|
|
|
8326 |
allow_undefined_flag=' -expect_unresolved \*'
|
|
|
8327 |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
8328 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
|
|
8329 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
|
|
8330 |
|
|
|
8331 |
# Both c and cxx compiler support -rpath directly
|
|
|
8332 |
hardcode_libdir_flag_spec='-rpath $libdir'
|
|
|
8333 |
fi
|
|
|
8334 |
hardcode_libdir_separator=:
|
|
|
8335 |
;;
|
|
|
8336 |
|
|
|
8337 |
solaris*)
|
|
|
8338 |
no_undefined_flag=' -z text'
|
|
|
8339 |
if test "$GCC" = yes; then
|
|
|
8340 |
wlarc='${wl}'
|
|
|
8341 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8342 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
8343 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
|
|
8344 |
else
|
|
|
8345 |
wlarc=''
|
|
|
8346 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8347 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
8348 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
|
8349 |
fi
|
|
|
8350 |
hardcode_libdir_flag_spec='-R$libdir'
|
|
|
8351 |
hardcode_shlibpath_var=no
|
|
|
8352 |
case $host_os in
|
|
|
8353 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
|
8354 |
*)
|
|
|
8355 |
# The compiler driver will combine and reorder linker options,
|
|
|
8356 |
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
|
8357 |
# but is careful enough not to reorder.
|
|
|
8358 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
8359 |
if test "$GCC" = yes; then
|
|
|
8360 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
8361 |
else
|
|
|
8362 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
|
|
8363 |
fi
|
|
|
8364 |
;;
|
|
|
8365 |
esac
|
|
|
8366 |
link_all_deplibs=yes
|
|
|
8367 |
;;
|
|
|
8368 |
|
|
|
8369 |
sunos4*)
|
|
|
8370 |
if test "x$host_vendor" = xsequent; then
|
|
|
8371 |
# Use $CC to link under sequent, because it throws in some extra .o
|
|
|
8372 |
# files that make .init and .fini sections work.
|
|
|
8373 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8374 |
else
|
|
|
8375 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8376 |
fi
|
|
|
8377 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
8378 |
hardcode_direct=yes
|
|
|
8379 |
hardcode_minus_L=yes
|
|
|
8380 |
hardcode_shlibpath_var=no
|
|
|
8381 |
;;
|
|
|
8382 |
|
|
|
8383 |
sysv4)
|
|
|
8384 |
case $host_vendor in
|
|
|
8385 |
sni)
|
|
|
8386 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8387 |
hardcode_direct=yes # is this really true???
|
|
|
8388 |
;;
|
|
|
8389 |
siemens)
|
|
|
8390 |
## LD is ld it makes a PLAMLIB
|
|
|
8391 |
## CC just makes a GrossModule.
|
|
|
8392 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8393 |
reload_cmds='$CC -r -o $output$reload_objs'
|
|
|
8394 |
hardcode_direct=no
|
|
|
8395 |
;;
|
|
|
8396 |
motorola)
|
|
|
8397 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8398 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
|
|
8399 |
;;
|
|
|
8400 |
esac
|
|
|
8401 |
runpath_var='LD_RUN_PATH'
|
|
|
8402 |
hardcode_shlibpath_var=no
|
|
|
8403 |
;;
|
|
|
8404 |
|
|
|
8405 |
sysv4.3*)
|
|
|
8406 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8407 |
hardcode_shlibpath_var=no
|
|
|
8408 |
export_dynamic_flag_spec='-Bexport'
|
|
|
8409 |
;;
|
|
|
8410 |
|
|
|
8411 |
sysv4*MP*)
|
|
|
8412 |
if test -d /usr/nec; then
|
|
|
8413 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8414 |
hardcode_shlibpath_var=no
|
|
|
8415 |
runpath_var=LD_RUN_PATH
|
|
|
8416 |
hardcode_runpath_var=yes
|
|
|
8417 |
ld_shlibs=yes
|
|
|
8418 |
fi
|
|
|
8419 |
;;
|
|
|
8420 |
|
|
|
8421 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
|
8422 |
no_undefined_flag='${wl}-z,text'
|
|
|
8423 |
archive_cmds_need_lc=no
|
|
|
8424 |
hardcode_shlibpath_var=no
|
|
|
8425 |
runpath_var='LD_RUN_PATH'
|
|
|
8426 |
|
|
|
8427 |
if test "$GCC" = yes; then
|
|
|
8428 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8429 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8430 |
else
|
|
|
8431 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8432 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8433 |
fi
|
|
|
8434 |
;;
|
|
|
8435 |
|
|
|
8436 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
8437 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
8438 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
8439 |
# always be unresolved, which means just about no library would
|
|
|
8440 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
8441 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
8442 |
# as -z defs.
|
|
|
8443 |
no_undefined_flag='${wl}-z,text'
|
|
|
8444 |
allow_undefined_flag='${wl}-z,nodefs'
|
|
|
8445 |
archive_cmds_need_lc=no
|
|
|
8446 |
hardcode_shlibpath_var=no
|
|
|
8447 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
|
8448 |
hardcode_libdir_separator=':'
|
|
|
8449 |
link_all_deplibs=yes
|
|
|
8450 |
export_dynamic_flag_spec='${wl}-Bexport'
|
|
|
8451 |
runpath_var='LD_RUN_PATH'
|
|
|
8452 |
|
|
|
8453 |
if test "$GCC" = yes; then
|
|
|
8454 |
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8455 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8456 |
else
|
|
|
8457 |
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8458 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
8459 |
fi
|
|
|
8460 |
;;
|
|
|
8461 |
|
|
|
8462 |
uts4*)
|
|
|
8463 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
8464 |
hardcode_libdir_flag_spec='-L$libdir'
|
|
|
8465 |
hardcode_shlibpath_var=no
|
|
|
8466 |
;;
|
|
|
8467 |
|
|
|
8468 |
*)
|
|
|
8469 |
ld_shlibs=no
|
|
|
8470 |
;;
|
|
|
8471 |
esac
|
|
|
8472 |
fi
|
|
|
8473 |
|
|
|
8474 |
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
|
|
8475 |
echo "${ECHO_T}$ld_shlibs" >&6; }
|
|
|
8476 |
test "$ld_shlibs" = no && can_build_shared=no
|
|
|
8477 |
|
|
|
8478 |
#
|
|
|
8479 |
# Do we need to explicitly link libc?
|
|
|
8480 |
#
|
|
|
8481 |
case "x$archive_cmds_need_lc" in
|
|
|
8482 |
x|xyes)
|
|
|
8483 |
# Assume -lc should be added
|
|
|
8484 |
archive_cmds_need_lc=yes
|
|
|
8485 |
|
|
|
8486 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
8487 |
case $archive_cmds in
|
|
|
8488 |
*'~'*)
|
|
|
8489 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
8490 |
;;
|
|
|
8491 |
'$CC '*)
|
|
|
8492 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
8493 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
8494 |
# to ld, don't add -lc before -lgcc.
|
|
|
8495 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
|
8496 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
|
8497 |
$rm conftest*
|
|
|
8498 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
8499 |
|
|
|
8500 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
8501 |
(eval $ac_compile) 2>&5
|
|
|
8502 |
ac_status=$?
|
|
|
8503 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
8504 |
(exit $ac_status); } 2>conftest.err; then
|
|
|
8505 |
soname=conftest
|
|
|
8506 |
lib=conftest
|
|
|
8507 |
libobjs=conftest.$ac_objext
|
|
|
8508 |
deplibs=
|
|
|
8509 |
wl=$lt_prog_compiler_wl
|
|
|
8510 |
pic_flag=$lt_prog_compiler_pic
|
|
|
8511 |
compiler_flags=-v
|
|
|
8512 |
linker_flags=-v
|
|
|
8513 |
verstring=
|
|
|
8514 |
output_objdir=.
|
|
|
8515 |
libname=conftest
|
|
|
8516 |
lt_save_allow_undefined_flag=$allow_undefined_flag
|
|
|
8517 |
allow_undefined_flag=
|
|
|
8518 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
|
|
8519 |
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
|
|
8520 |
ac_status=$?
|
|
|
8521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
8522 |
(exit $ac_status); }
|
|
|
8523 |
then
|
|
|
8524 |
archive_cmds_need_lc=no
|
|
|
8525 |
else
|
|
|
8526 |
archive_cmds_need_lc=yes
|
|
|
8527 |
fi
|
|
|
8528 |
allow_undefined_flag=$lt_save_allow_undefined_flag
|
|
|
8529 |
else
|
|
|
8530 |
cat conftest.err 1>&5
|
|
|
8531 |
fi
|
|
|
8532 |
$rm conftest*
|
|
|
8533 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
|
|
|
8534 |
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
|
|
|
8535 |
;;
|
|
|
8536 |
esac
|
|
|
8537 |
fi
|
|
|
8538 |
;;
|
|
|
8539 |
esac
|
|
|
8540 |
|
|
|
8541 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
|
|
8542 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
|
|
8543 |
library_names_spec=
|
|
|
8544 |
libname_spec='lib$name'
|
|
|
8545 |
soname_spec=
|
|
|
8546 |
shrext_cmds=".so"
|
|
|
8547 |
postinstall_cmds=
|
|
|
8548 |
postuninstall_cmds=
|
|
|
8549 |
finish_cmds=
|
|
|
8550 |
finish_eval=
|
|
|
8551 |
shlibpath_var=
|
|
|
8552 |
shlibpath_overrides_runpath=unknown
|
|
|
8553 |
version_type=none
|
|
|
8554 |
dynamic_linker="$host_os ld.so"
|
|
|
8555 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
8556 |
|
|
|
8557 |
if test "$GCC" = yes; then
|
|
|
8558 |
case $host_os in
|
|
|
8559 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
|
|
|
8560 |
*) lt_awk_arg="/^libraries:/" ;;
|
|
|
8561 |
esac
|
|
|
8562 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
|
8563 |
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
|
|
|
8564 |
# if the path contains ";" then we assume it to be the separator
|
|
|
8565 |
# otherwise default to the standard path separator (i.e. ":") - it is
|
|
|
8566 |
# assumed that no part of a normal pathname contains ";" but that should
|
|
|
8567 |
# okay in the real world where ";" in dirpaths is itself problematic.
|
|
|
8568 |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
8569 |
else
|
|
|
8570 |
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
8571 |
fi
|
|
|
8572 |
# Ok, now we have the path, separated by spaces, we can step through it
|
|
|
8573 |
# and add multilib dir if necessary.
|
|
|
8574 |
lt_tmp_lt_search_path_spec=
|
|
|
8575 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
|
|
8576 |
for lt_sys_path in $lt_search_path_spec; do
|
|
|
8577 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
|
|
|
8578 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
|
|
|
8579 |
else
|
|
|
8580 |
test -d "$lt_sys_path" && \
|
|
|
8581 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
|
|
8582 |
fi
|
|
|
8583 |
done
|
|
|
8584 |
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
|
|
|
8585 |
BEGIN {RS=" "; FS="/|\n";} {
|
|
|
8586 |
lt_foo="";
|
|
|
8587 |
lt_count=0;
|
|
|
8588 |
for (lt_i = NF; lt_i > 0; lt_i--) {
|
|
|
8589 |
if ($lt_i != "" && $lt_i != ".") {
|
|
|
8590 |
if ($lt_i == "..") {
|
|
|
8591 |
lt_count++;
|
|
|
8592 |
} else {
|
|
|
8593 |
if (lt_count == 0) {
|
|
|
8594 |
lt_foo="/" $lt_i lt_foo;
|
|
|
8595 |
} else {
|
|
|
8596 |
lt_count--;
|
|
|
8597 |
}
|
|
|
8598 |
}
|
|
|
8599 |
}
|
|
|
8600 |
}
|
|
|
8601 |
if (lt_foo != "") { lt_freq[lt_foo]++; }
|
|
|
8602 |
if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
|
|
8603 |
}'`
|
|
|
8604 |
sys_lib_search_path_spec=`echo $lt_search_path_spec`
|
|
|
8605 |
else
|
|
|
8606 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
|
|
8607 |
fi
|
|
|
8608 |
need_lib_prefix=unknown
|
|
|
8609 |
hardcode_into_libs=no
|
|
|
8610 |
|
|
|
8611 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
8612 |
# flags to be left without arguments
|
|
|
8613 |
need_version=unknown
|
|
|
8614 |
|
|
|
8615 |
case $host_os in
|
|
|
8616 |
aix3*)
|
|
|
8617 |
version_type=linux
|
|
|
8618 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
|
8619 |
shlibpath_var=LIBPATH
|
|
|
8620 |
|
|
|
8621 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
|
8622 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8623 |
;;
|
|
|
8624 |
|
|
|
8625 |
aix4* | aix5*)
|
|
|
8626 |
version_type=linux
|
|
|
8627 |
need_lib_prefix=no
|
|
|
8628 |
need_version=no
|
|
|
8629 |
hardcode_into_libs=yes
|
|
|
8630 |
if test "$host_cpu" = ia64; then
|
|
|
8631 |
# AIX 5 supports IA64
|
|
|
8632 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
|
8633 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8634 |
else
|
|
|
8635 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
8636 |
# for dependence libraries. The import file would start with
|
|
|
8637 |
# the line `#! .'. This would cause the generated library to
|
|
|
8638 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
8639 |
# development snapshots of GCC prior to 3.0.
|
|
|
8640 |
case $host_os in
|
|
|
8641 |
aix4 | aix4.[01] | aix4.[01].*)
|
|
|
8642 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
8643 |
echo ' yes '
|
|
|
8644 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
|
8645 |
:
|
|
|
8646 |
else
|
|
|
8647 |
can_build_shared=no
|
|
|
8648 |
fi
|
|
|
8649 |
;;
|
|
|
8650 |
esac
|
|
|
8651 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
|
8652 |
# soname into executable. Probably we can add versioning support to
|
|
|
8653 |
# collect2, so additional links can be useful in future.
|
|
|
8654 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
8655 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
8656 |
# instead of lib<name>.a to let people know that these are not
|
|
|
8657 |
# typical AIX shared libraries.
|
|
|
8658 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8659 |
else
|
|
|
8660 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
8661 |
# and later when we are not doing run time linking.
|
|
|
8662 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
8663 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8664 |
fi
|
|
|
8665 |
shlibpath_var=LIBPATH
|
|
|
8666 |
fi
|
|
|
8667 |
;;
|
|
|
8668 |
|
|
|
8669 |
amigaos*)
|
|
|
8670 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
8671 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
8672 |
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'
|
|
|
8673 |
;;
|
|
|
8674 |
|
|
|
8675 |
beos*)
|
|
|
8676 |
library_names_spec='${libname}${shared_ext}'
|
|
|
8677 |
dynamic_linker="$host_os ld.so"
|
|
|
8678 |
shlibpath_var=LIBRARY_PATH
|
|
|
8679 |
;;
|
|
|
8680 |
|
|
|
8681 |
bsdi[45]*)
|
|
|
8682 |
version_type=linux
|
|
|
8683 |
need_version=no
|
|
|
8684 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8685 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8686 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
8687 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8688 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
8689 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
8690 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
8691 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
8692 |
# libtool to hard-code these into programs
|
|
|
8693 |
;;
|
|
|
8694 |
|
|
|
8695 |
cygwin* | mingw* | pw32*)
|
|
|
8696 |
version_type=windows
|
|
|
8697 |
shrext_cmds=".dll"
|
|
|
8698 |
need_version=no
|
|
|
8699 |
need_lib_prefix=no
|
|
|
8700 |
|
|
|
8701 |
case $GCC,$host_os in
|
|
|
8702 |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
|
|
8703 |
library_names_spec='$libname.dll.a'
|
|
|
8704 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
8705 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
8706 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|
|
8707 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
8708 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
8709 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
|
8710 |
chmod a+x \$dldir/$dlname'
|
|
|
8711 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
8712 |
dlpath=$dir/\$dldll~
|
|
|
8713 |
$rm \$dlpath'
|
|
|
8714 |
shlibpath_overrides_runpath=yes
|
|
|
8715 |
|
|
|
8716 |
case $host_os in
|
|
|
8717 |
cygwin*)
|
|
|
8718 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
|
8719 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
8720 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|
|
8721 |
;;
|
|
|
8722 |
mingw*)
|
|
|
8723 |
# MinGW DLLs use traditional 'lib' prefix
|
|
|
8724 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
8725 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
|
8726 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
|
|
8727 |
# It is most probably a Windows format PATH printed by
|
|
|
8728 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|
|
8729 |
# path with ; separators, and with drive letters. We can handle the
|
|
|
8730 |
# drive letters (cygwin fileutils understands them), so leave them,
|
|
|
8731 |
# especially as we might pass files found there to a mingw objdump,
|
|
|
8732 |
# which wouldn't understand a cygwinified path. Ahh.
|
|
|
8733 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
8734 |
else
|
|
|
8735 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
8736 |
fi
|
|
|
8737 |
;;
|
|
|
8738 |
pw32*)
|
|
|
8739 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
|
8740 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
8741 |
;;
|
|
|
8742 |
esac
|
|
|
8743 |
;;
|
|
|
8744 |
|
|
|
8745 |
*)
|
|
|
8746 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
|
8747 |
;;
|
|
|
8748 |
esac
|
|
|
8749 |
dynamic_linker='Win32 ld.exe'
|
|
|
8750 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
8751 |
shlibpath_var=PATH
|
|
|
8752 |
;;
|
|
|
8753 |
|
|
|
8754 |
darwin* | rhapsody*)
|
|
|
8755 |
dynamic_linker="$host_os dyld"
|
|
|
8756 |
version_type=darwin
|
|
|
8757 |
need_lib_prefix=no
|
|
|
8758 |
need_version=no
|
|
|
8759 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
|
8760 |
soname_spec='${libname}${release}${major}$shared_ext'
|
|
|
8761 |
shlibpath_overrides_runpath=yes
|
|
|
8762 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
8763 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
8764 |
|
|
|
8765 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
|
|
8766 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
|
8767 |
;;
|
|
|
8768 |
|
|
|
8769 |
dgux*)
|
|
|
8770 |
version_type=linux
|
|
|
8771 |
need_lib_prefix=no
|
|
|
8772 |
need_version=no
|
|
|
8773 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
|
8774 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8775 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8776 |
;;
|
|
|
8777 |
|
|
|
8778 |
freebsd1*)
|
|
|
8779 |
dynamic_linker=no
|
|
|
8780 |
;;
|
|
|
8781 |
|
|
|
8782 |
freebsd* | dragonfly*)
|
|
|
8783 |
# DragonFly does not have aout. When/if they implement a new
|
|
|
8784 |
# versioning mechanism, adjust this.
|
|
|
8785 |
if test -x /usr/bin/objformat; then
|
|
|
8786 |
objformat=`/usr/bin/objformat`
|
|
|
8787 |
else
|
|
|
8788 |
case $host_os in
|
|
|
8789 |
freebsd[123]*) objformat=aout ;;
|
|
|
8790 |
*) objformat=elf ;;
|
|
|
8791 |
esac
|
|
|
8792 |
fi
|
|
|
8793 |
version_type=freebsd-$objformat
|
|
|
8794 |
case $version_type in
|
|
|
8795 |
freebsd-elf*)
|
|
|
8796 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
8797 |
need_version=no
|
|
|
8798 |
need_lib_prefix=no
|
|
|
8799 |
;;
|
|
|
8800 |
freebsd-*)
|
|
|
8801 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
|
8802 |
need_version=yes
|
|
|
8803 |
;;
|
|
|
8804 |
esac
|
|
|
8805 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8806 |
case $host_os in
|
|
|
8807 |
freebsd2*)
|
|
|
8808 |
shlibpath_overrides_runpath=yes
|
|
|
8809 |
;;
|
|
|
8810 |
freebsd3.[01]* | freebsdelf3.[01]*)
|
|
|
8811 |
shlibpath_overrides_runpath=yes
|
|
|
8812 |
hardcode_into_libs=yes
|
|
|
8813 |
;;
|
|
|
8814 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
|
8815 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
|
8816 |
shlibpath_overrides_runpath=no
|
|
|
8817 |
hardcode_into_libs=yes
|
|
|
8818 |
;;
|
|
|
8819 |
*) # from 4.6 on, and DragonFly
|
|
|
8820 |
shlibpath_overrides_runpath=yes
|
|
|
8821 |
hardcode_into_libs=yes
|
|
|
8822 |
;;
|
|
|
8823 |
esac
|
|
|
8824 |
;;
|
|
|
8825 |
|
|
|
8826 |
gnu*)
|
|
|
8827 |
version_type=linux
|
|
|
8828 |
need_lib_prefix=no
|
|
|
8829 |
need_version=no
|
|
|
8830 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
8831 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8832 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8833 |
hardcode_into_libs=yes
|
|
|
8834 |
;;
|
|
|
8835 |
|
|
|
8836 |
hpux9* | hpux10* | hpux11*)
|
|
|
8837 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
8838 |
# link against other versions.
|
|
|
8839 |
version_type=sunos
|
|
|
8840 |
need_lib_prefix=no
|
|
|
8841 |
need_version=no
|
|
|
8842 |
case $host_cpu in
|
|
|
8843 |
ia64*)
|
|
|
8844 |
shrext_cmds='.so'
|
|
|
8845 |
hardcode_into_libs=yes
|
|
|
8846 |
dynamic_linker="$host_os dld.so"
|
|
|
8847 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8848 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
8849 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8850 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8851 |
if test "X$HPUX_IA64_MODE" = X32; then
|
|
|
8852 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
|
8853 |
else
|
|
|
8854 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
|
8855 |
fi
|
|
|
8856 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
8857 |
;;
|
|
|
8858 |
hppa*64*)
|
|
|
8859 |
shrext_cmds='.sl'
|
|
|
8860 |
hardcode_into_libs=yes
|
|
|
8861 |
dynamic_linker="$host_os dld.sl"
|
|
|
8862 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
|
8863 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
8864 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8865 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8866 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
|
8867 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
8868 |
;;
|
|
|
8869 |
*)
|
|
|
8870 |
shrext_cmds='.sl'
|
|
|
8871 |
dynamic_linker="$host_os dld.sl"
|
|
|
8872 |
shlibpath_var=SHLIB_PATH
|
|
|
8873 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
8874 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8875 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8876 |
;;
|
|
|
8877 |
esac
|
|
|
8878 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
|
8879 |
postinstall_cmds='chmod 555 $lib'
|
|
|
8880 |
;;
|
|
|
8881 |
|
|
|
8882 |
interix[3-9]*)
|
|
|
8883 |
version_type=linux
|
|
|
8884 |
need_lib_prefix=no
|
|
|
8885 |
need_version=no
|
|
|
8886 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
8887 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8888 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
|
8889 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8890 |
shlibpath_overrides_runpath=no
|
|
|
8891 |
hardcode_into_libs=yes
|
|
|
8892 |
;;
|
|
|
8893 |
|
|
|
8894 |
irix5* | irix6* | nonstopux*)
|
|
|
8895 |
case $host_os in
|
|
|
8896 |
nonstopux*) version_type=nonstopux ;;
|
|
|
8897 |
*)
|
|
|
8898 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
8899 |
version_type=linux
|
|
|
8900 |
else
|
|
|
8901 |
version_type=irix
|
|
|
8902 |
fi ;;
|
|
|
8903 |
esac
|
|
|
8904 |
need_lib_prefix=no
|
|
|
8905 |
need_version=no
|
|
|
8906 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8907 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
8908 |
case $host_os in
|
|
|
8909 |
irix5* | nonstopux*)
|
|
|
8910 |
libsuff= shlibsuff=
|
|
|
8911 |
;;
|
|
|
8912 |
*)
|
|
|
8913 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
8914 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
|
8915 |
libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
8916 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
|
8917 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
8918 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
|
8919 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
8920 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
8921 |
esac
|
|
|
8922 |
;;
|
|
|
8923 |
esac
|
|
|
8924 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
8925 |
shlibpath_overrides_runpath=no
|
|
|
8926 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
8927 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
8928 |
hardcode_into_libs=yes
|
|
|
8929 |
;;
|
|
|
8930 |
|
|
|
8931 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
8932 |
linux*oldld* | linux*aout* | linux*coff*)
|
|
|
8933 |
dynamic_linker=no
|
|
|
8934 |
;;
|
|
|
8935 |
|
|
|
8936 |
# This must be Linux ELF.
|
|
|
8937 |
linux* | k*bsd*-gnu)
|
|
|
8938 |
version_type=linux
|
|
|
8939 |
need_lib_prefix=no
|
|
|
8940 |
need_version=no
|
|
|
8941 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8942 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8943 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
8944 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8945 |
shlibpath_overrides_runpath=no
|
|
|
8946 |
# This implies no fast_install, which is unacceptable.
|
|
|
8947 |
# Some rework will be needed to allow for fast_install
|
|
|
8948 |
# before this can be enabled.
|
|
|
8949 |
hardcode_into_libs=yes
|
|
|
8950 |
|
|
|
8951 |
# Append ld.so.conf contents to the search path
|
|
|
8952 |
if test -f /etc/ld.so.conf; then
|
|
|
8953 |
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' ' '`
|
|
|
8954 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
8955 |
fi
|
|
|
8956 |
|
|
|
8957 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
8958 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
8959 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
8960 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
8961 |
# people can always --disable-shared, the test was removed, and we
|
|
|
8962 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
8963 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
8964 |
;;
|
|
|
8965 |
|
|
|
8966 |
netbsdelf*-gnu)
|
|
|
8967 |
version_type=linux
|
|
|
8968 |
need_lib_prefix=no
|
|
|
8969 |
need_version=no
|
|
|
8970 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
8971 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8972 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8973 |
shlibpath_overrides_runpath=no
|
|
|
8974 |
hardcode_into_libs=yes
|
|
|
8975 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
8976 |
;;
|
|
|
8977 |
|
|
|
8978 |
netbsd*)
|
|
|
8979 |
version_type=sunos
|
|
|
8980 |
need_lib_prefix=no
|
|
|
8981 |
need_version=no
|
|
|
8982 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
8983 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
8984 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
8985 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
8986 |
else
|
|
|
8987 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
8988 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
8989 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
8990 |
fi
|
|
|
8991 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
8992 |
shlibpath_overrides_runpath=yes
|
|
|
8993 |
hardcode_into_libs=yes
|
|
|
8994 |
;;
|
|
|
8995 |
|
|
|
8996 |
newsos6)
|
|
|
8997 |
version_type=linux
|
|
|
8998 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
8999 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9000 |
shlibpath_overrides_runpath=yes
|
|
|
9001 |
;;
|
|
|
9002 |
|
|
|
9003 |
nto-qnx*)
|
|
|
9004 |
version_type=linux
|
|
|
9005 |
need_lib_prefix=no
|
|
|
9006 |
need_version=no
|
|
|
9007 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
9008 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9009 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9010 |
shlibpath_overrides_runpath=yes
|
|
|
9011 |
;;
|
|
|
9012 |
|
|
|
9013 |
openbsd*)
|
|
|
9014 |
version_type=sunos
|
|
|
9015 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
|
9016 |
need_lib_prefix=no
|
|
|
9017 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
|
9018 |
case $host_os in
|
|
|
9019 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
|
9020 |
*) need_version=no ;;
|
|
|
9021 |
esac
|
|
|
9022 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
9023 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
9024 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9025 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
9026 |
case $host_os in
|
|
|
9027 |
openbsd2.[89] | openbsd2.[89].*)
|
|
|
9028 |
shlibpath_overrides_runpath=no
|
|
|
9029 |
;;
|
|
|
9030 |
*)
|
|
|
9031 |
shlibpath_overrides_runpath=yes
|
|
|
9032 |
;;
|
|
|
9033 |
esac
|
|
|
9034 |
else
|
|
|
9035 |
shlibpath_overrides_runpath=yes
|
|
|
9036 |
fi
|
|
|
9037 |
;;
|
|
|
9038 |
|
|
|
9039 |
os2*)
|
|
|
9040 |
libname_spec='$name'
|
|
|
9041 |
shrext_cmds=".dll"
|
|
|
9042 |
need_lib_prefix=no
|
|
|
9043 |
library_names_spec='$libname${shared_ext} $libname.a'
|
|
|
9044 |
dynamic_linker='OS/2 ld.exe'
|
|
|
9045 |
shlibpath_var=LIBPATH
|
|
|
9046 |
;;
|
|
|
9047 |
|
|
|
9048 |
osf3* | osf4* | osf5*)
|
|
|
9049 |
version_type=osf
|
|
|
9050 |
need_lib_prefix=no
|
|
|
9051 |
need_version=no
|
|
|
9052 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9053 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
9054 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9055 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
9056 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
9057 |
;;
|
|
|
9058 |
|
|
|
9059 |
rdos*)
|
|
|
9060 |
dynamic_linker=no
|
|
|
9061 |
;;
|
|
|
9062 |
|
|
|
9063 |
solaris*)
|
|
|
9064 |
version_type=linux
|
|
|
9065 |
need_lib_prefix=no
|
|
|
9066 |
need_version=no
|
|
|
9067 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
9068 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9069 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9070 |
shlibpath_overrides_runpath=yes
|
|
|
9071 |
hardcode_into_libs=yes
|
|
|
9072 |
# ldd complains unless libraries are executable
|
|
|
9073 |
postinstall_cmds='chmod +x $lib'
|
|
|
9074 |
;;
|
|
|
9075 |
|
|
|
9076 |
sunos4*)
|
|
|
9077 |
version_type=sunos
|
|
|
9078 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
9079 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
9080 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9081 |
shlibpath_overrides_runpath=yes
|
|
|
9082 |
if test "$with_gnu_ld" = yes; then
|
|
|
9083 |
need_lib_prefix=no
|
|
|
9084 |
fi
|
|
|
9085 |
need_version=yes
|
|
|
9086 |
;;
|
|
|
9087 |
|
|
|
9088 |
sysv4 | sysv4.3*)
|
|
|
9089 |
version_type=linux
|
|
|
9090 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
9091 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9092 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9093 |
case $host_vendor in
|
|
|
9094 |
sni)
|
|
|
9095 |
shlibpath_overrides_runpath=no
|
|
|
9096 |
need_lib_prefix=no
|
|
|
9097 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|
|
9098 |
runpath_var=LD_RUN_PATH
|
|
|
9099 |
;;
|
|
|
9100 |
siemens)
|
|
|
9101 |
need_lib_prefix=no
|
|
|
9102 |
;;
|
|
|
9103 |
motorola)
|
|
|
9104 |
need_lib_prefix=no
|
|
|
9105 |
need_version=no
|
|
|
9106 |
shlibpath_overrides_runpath=no
|
|
|
9107 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
9108 |
;;
|
|
|
9109 |
esac
|
|
|
9110 |
;;
|
|
|
9111 |
|
|
|
9112 |
sysv4*MP*)
|
|
|
9113 |
if test -d /usr/nec ;then
|
|
|
9114 |
version_type=linux
|
|
|
9115 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
|
9116 |
soname_spec='$libname${shared_ext}.$major'
|
|
|
9117 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9118 |
fi
|
|
|
9119 |
;;
|
|
|
9120 |
|
|
|
9121 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
9122 |
version_type=freebsd-elf
|
|
|
9123 |
need_lib_prefix=no
|
|
|
9124 |
need_version=no
|
|
|
9125 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
9126 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9127 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9128 |
hardcode_into_libs=yes
|
|
|
9129 |
if test "$with_gnu_ld" = yes; then
|
|
|
9130 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
|
9131 |
shlibpath_overrides_runpath=no
|
|
|
9132 |
else
|
|
|
9133 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
|
9134 |
shlibpath_overrides_runpath=yes
|
|
|
9135 |
case $host_os in
|
|
|
9136 |
sco3.2v5*)
|
|
|
9137 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
|
9138 |
;;
|
|
|
9139 |
esac
|
|
|
9140 |
fi
|
|
|
9141 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
|
9142 |
;;
|
|
|
9143 |
|
|
|
9144 |
uts4*)
|
|
|
9145 |
version_type=linux
|
|
|
9146 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
9147 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
9148 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
9149 |
;;
|
|
|
9150 |
|
|
|
9151 |
*)
|
|
|
9152 |
dynamic_linker=no
|
|
|
9153 |
;;
|
|
|
9154 |
esac
|
|
|
9155 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
|
|
9156 |
echo "${ECHO_T}$dynamic_linker" >&6; }
|
|
|
9157 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
9158 |
|
|
|
9159 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
9160 |
if test "$GCC" = yes; then
|
|
|
9161 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
9162 |
fi
|
|
|
9163 |
|
|
|
9164 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
|
|
9165 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
|
|
9166 |
hardcode_action=
|
|
|
9167 |
if test -n "$hardcode_libdir_flag_spec" || \
|
|
|
9168 |
test -n "$runpath_var" || \
|
|
|
9169 |
test "X$hardcode_automatic" = "Xyes" ; then
|
|
|
9170 |
|
|
|
9171 |
# We can hardcode non-existant directories.
|
|
|
9172 |
if test "$hardcode_direct" != no &&
|
|
|
9173 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
9174 |
# have to relink, otherwise we might link with an installed library
|
|
|
9175 |
# when we should be linking with a yet-to-be-installed one
|
|
|
9176 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
|
|
|
9177 |
test "$hardcode_minus_L" != no; then
|
|
|
9178 |
# Linking always hardcodes the temporary library directory.
|
|
|
9179 |
hardcode_action=relink
|
|
|
9180 |
else
|
|
|
9181 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
9182 |
hardcode_action=immediate
|
|
|
9183 |
fi
|
|
|
9184 |
else
|
|
|
9185 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
9186 |
# directories.
|
|
|
9187 |
hardcode_action=unsupported
|
|
|
9188 |
fi
|
|
|
9189 |
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
|
|
|
9190 |
echo "${ECHO_T}$hardcode_action" >&6; }
|
|
|
9191 |
|
|
|
9192 |
if test "$hardcode_action" = relink; then
|
|
|
9193 |
# Fast installation is not supported
|
|
|
9194 |
enable_fast_install=no
|
|
|
9195 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
9196 |
test "$enable_shared" = no; then
|
|
|
9197 |
# Fast installation is not necessary
|
|
|
9198 |
enable_fast_install=needless
|
|
|
9199 |
fi
|
|
|
9200 |
|
|
|
9201 |
striplib=
|
|
|
9202 |
old_striplib=
|
|
|
9203 |
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
|
|
9204 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
|
|
|
9205 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
|
|
9206 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
|
|
9207 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
|
|
9208 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
9209 |
echo "${ECHO_T}yes" >&6; }
|
|
|
9210 |
else
|
|
|
9211 |
# FIXME - insert some real tests, host_os isn't really good enough
|
|
|
9212 |
case $host_os in
|
|
|
9213 |
darwin*)
|
|
|
9214 |
if test -n "$STRIP" ; then
|
|
|
9215 |
striplib="$STRIP -x"
|
|
|
9216 |
old_striplib="$STRIP -S"
|
|
|
9217 |
{ echo "$as_me:$LINENO: result: yes" >&5
|
|
|
9218 |
echo "${ECHO_T}yes" >&6; }
|
|
|
9219 |
else
|
|
|
9220 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
9221 |
echo "${ECHO_T}no" >&6; }
|
|
|
9222 |
fi
|
|
|
9223 |
;;
|
|
|
9224 |
*)
|
|
|
9225 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
9226 |
echo "${ECHO_T}no" >&6; }
|
|
|
9227 |
;;
|
|
|
9228 |
esac
|
|
|
9229 |
fi
|
|
|
9230 |
|
|
|
9231 |
if test "x$enable_dlopen" != xyes; then
|
|
|
9232 |
enable_dlopen=unknown
|
|
|
9233 |
enable_dlopen_self=unknown
|
|
|
9234 |
enable_dlopen_self_static=unknown
|
|
|
9235 |
else
|
|
|
9236 |
lt_cv_dlopen=no
|
|
|
9237 |
lt_cv_dlopen_libs=
|
|
|
9238 |
|
|
|
9239 |
case $host_os in
|
|
|
9240 |
beos*)
|
|
|
9241 |
lt_cv_dlopen="load_add_on"
|
|
|
9242 |
lt_cv_dlopen_libs=
|
|
|
9243 |
lt_cv_dlopen_self=yes
|
|
|
9244 |
;;
|
|
|
9245 |
|
|
|
9246 |
mingw* | pw32*)
|
|
|
9247 |
lt_cv_dlopen="LoadLibrary"
|
|
|
9248 |
lt_cv_dlopen_libs=
|
|
|
9249 |
;;
|
|
|
9250 |
|
|
|
9251 |
cygwin*)
|
|
|
9252 |
lt_cv_dlopen="dlopen"
|
|
|
9253 |
lt_cv_dlopen_libs=
|
|
|
9254 |
;;
|
|
|
9255 |
|
|
|
9256 |
darwin*)
|
|
|
9257 |
# if libdl is installed we need to link against it
|
|
|
9258 |
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
|
|
9259 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
|
|
9260 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
|
|
9261 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9262 |
else
|
|
|
9263 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
9264 |
LIBS="-ldl $LIBS"
|
|
|
9265 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9266 |
/* confdefs.h. */
|
|
|
9267 |
_ACEOF
|
|
|
9268 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9269 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9270 |
/* end confdefs.h. */
|
|
|
9271 |
|
|
|
9272 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9273 |
Use char because int might match the return type of a GCC
|
|
|
9274 |
builtin and then its argument prototype would still apply. */
|
|
|
9275 |
#ifdef __cplusplus
|
|
|
9276 |
extern "C"
|
|
|
9277 |
#endif
|
|
|
9278 |
char dlopen ();
|
|
|
9279 |
int
|
|
|
9280 |
main ()
|
|
|
9281 |
{
|
|
|
9282 |
return dlopen ();
|
|
|
9283 |
;
|
|
|
9284 |
return 0;
|
|
|
9285 |
}
|
|
|
9286 |
_ACEOF
|
|
|
9287 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9288 |
if { (ac_try="$ac_link"
|
|
|
9289 |
case "(($ac_try" in
|
|
|
9290 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9291 |
*) ac_try_echo=$ac_try;;
|
|
|
9292 |
esac
|
|
|
9293 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9294 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9295 |
ac_status=$?
|
|
|
9296 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9297 |
rm -f conftest.er1
|
|
|
9298 |
cat conftest.err >&5
|
|
|
9299 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9300 |
(exit $ac_status); } && {
|
|
|
9301 |
test -z "$ac_c_werror_flag" ||
|
|
|
9302 |
test ! -s conftest.err
|
|
|
9303 |
} && test -s conftest$ac_exeext &&
|
|
|
9304 |
$as_test_x conftest$ac_exeext; then
|
|
|
9305 |
ac_cv_lib_dl_dlopen=yes
|
|
|
9306 |
else
|
|
|
9307 |
echo "$as_me: failed program was:" >&5
|
|
|
9308 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9309 |
|
|
|
9310 |
ac_cv_lib_dl_dlopen=no
|
|
|
9311 |
fi
|
|
|
9312 |
|
|
|
9313 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9314 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9315 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
9316 |
fi
|
|
|
9317 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
|
|
9318 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
|
|
9319 |
if test $ac_cv_lib_dl_dlopen = yes; then
|
|
|
9320 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
|
|
9321 |
else
|
|
|
9322 |
|
|
|
9323 |
lt_cv_dlopen="dyld"
|
|
|
9324 |
lt_cv_dlopen_libs=
|
|
|
9325 |
lt_cv_dlopen_self=yes
|
|
|
9326 |
|
|
|
9327 |
fi
|
|
|
9328 |
|
|
|
9329 |
;;
|
|
|
9330 |
|
|
|
9331 |
*)
|
|
|
9332 |
{ echo "$as_me:$LINENO: checking for shl_load" >&5
|
|
|
9333 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
|
|
|
9334 |
if test "${ac_cv_func_shl_load+set}" = set; then
|
|
|
9335 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9336 |
else
|
|
|
9337 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9338 |
/* confdefs.h. */
|
|
|
9339 |
_ACEOF
|
|
|
9340 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9341 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9342 |
/* end confdefs.h. */
|
|
|
9343 |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
|
|
9344 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
9345 |
#define shl_load innocuous_shl_load
|
|
|
9346 |
|
|
|
9347 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
9348 |
which can conflict with char shl_load (); below.
|
|
|
9349 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
9350 |
<limits.h> exists even on freestanding compilers. */
|
|
|
9351 |
|
|
|
9352 |
#ifdef __STDC__
|
|
|
9353 |
# include <limits.h>
|
|
|
9354 |
#else
|
|
|
9355 |
# include <assert.h>
|
|
|
9356 |
#endif
|
|
|
9357 |
|
|
|
9358 |
#undef shl_load
|
|
|
9359 |
|
|
|
9360 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9361 |
Use char because int might match the return type of a GCC
|
|
|
9362 |
builtin and then its argument prototype would still apply. */
|
|
|
9363 |
#ifdef __cplusplus
|
|
|
9364 |
extern "C"
|
|
|
9365 |
#endif
|
|
|
9366 |
char shl_load ();
|
|
|
9367 |
/* The GNU C library defines this for functions which it implements
|
|
|
9368 |
to always fail with ENOSYS. Some functions are actually named
|
|
|
9369 |
something starting with __ and the normal name is an alias. */
|
|
|
9370 |
#if defined __stub_shl_load || defined __stub___shl_load
|
|
|
9371 |
choke me
|
|
|
9372 |
#endif
|
|
|
9373 |
|
|
|
9374 |
int
|
|
|
9375 |
main ()
|
|
|
9376 |
{
|
|
|
9377 |
return shl_load ();
|
|
|
9378 |
;
|
|
|
9379 |
return 0;
|
|
|
9380 |
}
|
|
|
9381 |
_ACEOF
|
|
|
9382 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9383 |
if { (ac_try="$ac_link"
|
|
|
9384 |
case "(($ac_try" in
|
|
|
9385 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9386 |
*) ac_try_echo=$ac_try;;
|
|
|
9387 |
esac
|
|
|
9388 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9389 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9390 |
ac_status=$?
|
|
|
9391 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9392 |
rm -f conftest.er1
|
|
|
9393 |
cat conftest.err >&5
|
|
|
9394 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9395 |
(exit $ac_status); } && {
|
|
|
9396 |
test -z "$ac_c_werror_flag" ||
|
|
|
9397 |
test ! -s conftest.err
|
|
|
9398 |
} && test -s conftest$ac_exeext &&
|
|
|
9399 |
$as_test_x conftest$ac_exeext; then
|
|
|
9400 |
ac_cv_func_shl_load=yes
|
|
|
9401 |
else
|
|
|
9402 |
echo "$as_me: failed program was:" >&5
|
|
|
9403 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9404 |
|
|
|
9405 |
ac_cv_func_shl_load=no
|
|
|
9406 |
fi
|
|
|
9407 |
|
|
|
9408 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9409 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9410 |
fi
|
|
|
9411 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
|
|
9412 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
|
|
|
9413 |
if test $ac_cv_func_shl_load = yes; then
|
|
|
9414 |
lt_cv_dlopen="shl_load"
|
|
|
9415 |
else
|
|
|
9416 |
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
|
|
9417 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
|
|
|
9418 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
|
|
9419 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9420 |
else
|
|
|
9421 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
9422 |
LIBS="-ldld $LIBS"
|
|
|
9423 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9424 |
/* confdefs.h. */
|
|
|
9425 |
_ACEOF
|
|
|
9426 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9427 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9428 |
/* end confdefs.h. */
|
|
|
9429 |
|
|
|
9430 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9431 |
Use char because int might match the return type of a GCC
|
|
|
9432 |
builtin and then its argument prototype would still apply. */
|
|
|
9433 |
#ifdef __cplusplus
|
|
|
9434 |
extern "C"
|
|
|
9435 |
#endif
|
|
|
9436 |
char shl_load ();
|
|
|
9437 |
int
|
|
|
9438 |
main ()
|
|
|
9439 |
{
|
|
|
9440 |
return shl_load ();
|
|
|
9441 |
;
|
|
|
9442 |
return 0;
|
|
|
9443 |
}
|
|
|
9444 |
_ACEOF
|
|
|
9445 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9446 |
if { (ac_try="$ac_link"
|
|
|
9447 |
case "(($ac_try" in
|
|
|
9448 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9449 |
*) ac_try_echo=$ac_try;;
|
|
|
9450 |
esac
|
|
|
9451 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9452 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9453 |
ac_status=$?
|
|
|
9454 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9455 |
rm -f conftest.er1
|
|
|
9456 |
cat conftest.err >&5
|
|
|
9457 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9458 |
(exit $ac_status); } && {
|
|
|
9459 |
test -z "$ac_c_werror_flag" ||
|
|
|
9460 |
test ! -s conftest.err
|
|
|
9461 |
} && test -s conftest$ac_exeext &&
|
|
|
9462 |
$as_test_x conftest$ac_exeext; then
|
|
|
9463 |
ac_cv_lib_dld_shl_load=yes
|
|
|
9464 |
else
|
|
|
9465 |
echo "$as_me: failed program was:" >&5
|
|
|
9466 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9467 |
|
|
|
9468 |
ac_cv_lib_dld_shl_load=no
|
|
|
9469 |
fi
|
|
|
9470 |
|
|
|
9471 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9472 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9473 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
9474 |
fi
|
|
|
9475 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
|
|
9476 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
|
|
|
9477 |
if test $ac_cv_lib_dld_shl_load = yes; then
|
|
|
9478 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
|
|
9479 |
else
|
|
|
9480 |
{ echo "$as_me:$LINENO: checking for dlopen" >&5
|
|
|
9481 |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
|
|
|
9482 |
if test "${ac_cv_func_dlopen+set}" = set; then
|
|
|
9483 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9484 |
else
|
|
|
9485 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9486 |
/* confdefs.h. */
|
|
|
9487 |
_ACEOF
|
|
|
9488 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9489 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9490 |
/* end confdefs.h. */
|
|
|
9491 |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
|
|
9492 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
|
9493 |
#define dlopen innocuous_dlopen
|
|
|
9494 |
|
|
|
9495 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
9496 |
which can conflict with char dlopen (); below.
|
|
|
9497 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
|
9498 |
<limits.h> exists even on freestanding compilers. */
|
|
|
9499 |
|
|
|
9500 |
#ifdef __STDC__
|
|
|
9501 |
# include <limits.h>
|
|
|
9502 |
#else
|
|
|
9503 |
# include <assert.h>
|
|
|
9504 |
#endif
|
|
|
9505 |
|
|
|
9506 |
#undef dlopen
|
|
|
9507 |
|
|
|
9508 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9509 |
Use char because int might match the return type of a GCC
|
|
|
9510 |
builtin and then its argument prototype would still apply. */
|
|
|
9511 |
#ifdef __cplusplus
|
|
|
9512 |
extern "C"
|
|
|
9513 |
#endif
|
|
|
9514 |
char dlopen ();
|
|
|
9515 |
/* The GNU C library defines this for functions which it implements
|
|
|
9516 |
to always fail with ENOSYS. Some functions are actually named
|
|
|
9517 |
something starting with __ and the normal name is an alias. */
|
|
|
9518 |
#if defined __stub_dlopen || defined __stub___dlopen
|
|
|
9519 |
choke me
|
|
|
9520 |
#endif
|
|
|
9521 |
|
|
|
9522 |
int
|
|
|
9523 |
main ()
|
|
|
9524 |
{
|
|
|
9525 |
return dlopen ();
|
|
|
9526 |
;
|
|
|
9527 |
return 0;
|
|
|
9528 |
}
|
|
|
9529 |
_ACEOF
|
|
|
9530 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9531 |
if { (ac_try="$ac_link"
|
|
|
9532 |
case "(($ac_try" in
|
|
|
9533 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9534 |
*) ac_try_echo=$ac_try;;
|
|
|
9535 |
esac
|
|
|
9536 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9537 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9538 |
ac_status=$?
|
|
|
9539 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9540 |
rm -f conftest.er1
|
|
|
9541 |
cat conftest.err >&5
|
|
|
9542 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9543 |
(exit $ac_status); } && {
|
|
|
9544 |
test -z "$ac_c_werror_flag" ||
|
|
|
9545 |
test ! -s conftest.err
|
|
|
9546 |
} && test -s conftest$ac_exeext &&
|
|
|
9547 |
$as_test_x conftest$ac_exeext; then
|
|
|
9548 |
ac_cv_func_dlopen=yes
|
|
|
9549 |
else
|
|
|
9550 |
echo "$as_me: failed program was:" >&5
|
|
|
9551 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9552 |
|
|
|
9553 |
ac_cv_func_dlopen=no
|
|
|
9554 |
fi
|
|
|
9555 |
|
|
|
9556 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9557 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9558 |
fi
|
|
|
9559 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
|
|
9560 |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
|
|
|
9561 |
if test $ac_cv_func_dlopen = yes; then
|
|
|
9562 |
lt_cv_dlopen="dlopen"
|
|
|
9563 |
else
|
|
|
9564 |
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
|
|
9565 |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
|
|
|
9566 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
|
|
9567 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9568 |
else
|
|
|
9569 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
9570 |
LIBS="-ldl $LIBS"
|
|
|
9571 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9572 |
/* confdefs.h. */
|
|
|
9573 |
_ACEOF
|
|
|
9574 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9575 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9576 |
/* end confdefs.h. */
|
|
|
9577 |
|
|
|
9578 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9579 |
Use char because int might match the return type of a GCC
|
|
|
9580 |
builtin and then its argument prototype would still apply. */
|
|
|
9581 |
#ifdef __cplusplus
|
|
|
9582 |
extern "C"
|
|
|
9583 |
#endif
|
|
|
9584 |
char dlopen ();
|
|
|
9585 |
int
|
|
|
9586 |
main ()
|
|
|
9587 |
{
|
|
|
9588 |
return dlopen ();
|
|
|
9589 |
;
|
|
|
9590 |
return 0;
|
|
|
9591 |
}
|
|
|
9592 |
_ACEOF
|
|
|
9593 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9594 |
if { (ac_try="$ac_link"
|
|
|
9595 |
case "(($ac_try" in
|
|
|
9596 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9597 |
*) ac_try_echo=$ac_try;;
|
|
|
9598 |
esac
|
|
|
9599 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9600 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9601 |
ac_status=$?
|
|
|
9602 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9603 |
rm -f conftest.er1
|
|
|
9604 |
cat conftest.err >&5
|
|
|
9605 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9606 |
(exit $ac_status); } && {
|
|
|
9607 |
test -z "$ac_c_werror_flag" ||
|
|
|
9608 |
test ! -s conftest.err
|
|
|
9609 |
} && test -s conftest$ac_exeext &&
|
|
|
9610 |
$as_test_x conftest$ac_exeext; then
|
|
|
9611 |
ac_cv_lib_dl_dlopen=yes
|
|
|
9612 |
else
|
|
|
9613 |
echo "$as_me: failed program was:" >&5
|
|
|
9614 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9615 |
|
|
|
9616 |
ac_cv_lib_dl_dlopen=no
|
|
|
9617 |
fi
|
|
|
9618 |
|
|
|
9619 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9620 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9621 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
9622 |
fi
|
|
|
9623 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
|
|
9624 |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
|
|
|
9625 |
if test $ac_cv_lib_dl_dlopen = yes; then
|
|
|
9626 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
|
|
9627 |
else
|
|
|
9628 |
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
|
|
9629 |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
|
|
|
9630 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
|
|
9631 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9632 |
else
|
|
|
9633 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
9634 |
LIBS="-lsvld $LIBS"
|
|
|
9635 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9636 |
/* confdefs.h. */
|
|
|
9637 |
_ACEOF
|
|
|
9638 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9639 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9640 |
/* end confdefs.h. */
|
|
|
9641 |
|
|
|
9642 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9643 |
Use char because int might match the return type of a GCC
|
|
|
9644 |
builtin and then its argument prototype would still apply. */
|
|
|
9645 |
#ifdef __cplusplus
|
|
|
9646 |
extern "C"
|
|
|
9647 |
#endif
|
|
|
9648 |
char dlopen ();
|
|
|
9649 |
int
|
|
|
9650 |
main ()
|
|
|
9651 |
{
|
|
|
9652 |
return dlopen ();
|
|
|
9653 |
;
|
|
|
9654 |
return 0;
|
|
|
9655 |
}
|
|
|
9656 |
_ACEOF
|
|
|
9657 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9658 |
if { (ac_try="$ac_link"
|
|
|
9659 |
case "(($ac_try" in
|
|
|
9660 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9661 |
*) ac_try_echo=$ac_try;;
|
|
|
9662 |
esac
|
|
|
9663 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9664 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9665 |
ac_status=$?
|
|
|
9666 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9667 |
rm -f conftest.er1
|
|
|
9668 |
cat conftest.err >&5
|
|
|
9669 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9670 |
(exit $ac_status); } && {
|
|
|
9671 |
test -z "$ac_c_werror_flag" ||
|
|
|
9672 |
test ! -s conftest.err
|
|
|
9673 |
} && test -s conftest$ac_exeext &&
|
|
|
9674 |
$as_test_x conftest$ac_exeext; then
|
|
|
9675 |
ac_cv_lib_svld_dlopen=yes
|
|
|
9676 |
else
|
|
|
9677 |
echo "$as_me: failed program was:" >&5
|
|
|
9678 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9679 |
|
|
|
9680 |
ac_cv_lib_svld_dlopen=no
|
|
|
9681 |
fi
|
|
|
9682 |
|
|
|
9683 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9684 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9685 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
9686 |
fi
|
|
|
9687 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
|
|
9688 |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
|
|
|
9689 |
if test $ac_cv_lib_svld_dlopen = yes; then
|
|
|
9690 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
|
|
9691 |
else
|
|
|
9692 |
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
|
|
9693 |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
|
|
|
9694 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
|
|
9695 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9696 |
else
|
|
|
9697 |
ac_check_lib_save_LIBS=$LIBS
|
|
|
9698 |
LIBS="-ldld $LIBS"
|
|
|
9699 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
9700 |
/* confdefs.h. */
|
|
|
9701 |
_ACEOF
|
|
|
9702 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
9703 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
9704 |
/* end confdefs.h. */
|
|
|
9705 |
|
|
|
9706 |
/* Override any GCC internal prototype to avoid an error.
|
|
|
9707 |
Use char because int might match the return type of a GCC
|
|
|
9708 |
builtin and then its argument prototype would still apply. */
|
|
|
9709 |
#ifdef __cplusplus
|
|
|
9710 |
extern "C"
|
|
|
9711 |
#endif
|
|
|
9712 |
char dld_link ();
|
|
|
9713 |
int
|
|
|
9714 |
main ()
|
|
|
9715 |
{
|
|
|
9716 |
return dld_link ();
|
|
|
9717 |
;
|
|
|
9718 |
return 0;
|
|
|
9719 |
}
|
|
|
9720 |
_ACEOF
|
|
|
9721 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
9722 |
if { (ac_try="$ac_link"
|
|
|
9723 |
case "(($ac_try" in
|
|
|
9724 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
9725 |
*) ac_try_echo=$ac_try;;
|
|
|
9726 |
esac
|
|
|
9727 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
9728 |
(eval "$ac_link") 2>conftest.er1
|
|
|
9729 |
ac_status=$?
|
|
|
9730 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
9731 |
rm -f conftest.er1
|
|
|
9732 |
cat conftest.err >&5
|
|
|
9733 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9734 |
(exit $ac_status); } && {
|
|
|
9735 |
test -z "$ac_c_werror_flag" ||
|
|
|
9736 |
test ! -s conftest.err
|
|
|
9737 |
} && test -s conftest$ac_exeext &&
|
|
|
9738 |
$as_test_x conftest$ac_exeext; then
|
|
|
9739 |
ac_cv_lib_dld_dld_link=yes
|
|
|
9740 |
else
|
|
|
9741 |
echo "$as_me: failed program was:" >&5
|
|
|
9742 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
9743 |
|
|
|
9744 |
ac_cv_lib_dld_dld_link=no
|
|
|
9745 |
fi
|
|
|
9746 |
|
|
|
9747 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
9748 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
9749 |
LIBS=$ac_check_lib_save_LIBS
|
|
|
9750 |
fi
|
|
|
9751 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
|
|
9752 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
|
|
|
9753 |
if test $ac_cv_lib_dld_dld_link = yes; then
|
|
|
9754 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
|
|
9755 |
fi
|
|
|
9756 |
|
|
|
9757 |
|
|
|
9758 |
fi
|
|
|
9759 |
|
|
|
9760 |
|
|
|
9761 |
fi
|
|
|
9762 |
|
|
|
9763 |
|
|
|
9764 |
fi
|
|
|
9765 |
|
|
|
9766 |
|
|
|
9767 |
fi
|
|
|
9768 |
|
|
|
9769 |
|
|
|
9770 |
fi
|
|
|
9771 |
|
|
|
9772 |
;;
|
|
|
9773 |
esac
|
|
|
9774 |
|
|
|
9775 |
if test "x$lt_cv_dlopen" != xno; then
|
|
|
9776 |
enable_dlopen=yes
|
|
|
9777 |
else
|
|
|
9778 |
enable_dlopen=no
|
|
|
9779 |
fi
|
|
|
9780 |
|
|
|
9781 |
case $lt_cv_dlopen in
|
|
|
9782 |
dlopen)
|
|
|
9783 |
save_CPPFLAGS="$CPPFLAGS"
|
|
|
9784 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
|
9785 |
|
|
|
9786 |
save_LDFLAGS="$LDFLAGS"
|
|
|
9787 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
|
9788 |
|
|
|
9789 |
save_LIBS="$LIBS"
|
|
|
9790 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
|
9791 |
|
|
|
9792 |
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
|
|
9793 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
|
|
|
9794 |
if test "${lt_cv_dlopen_self+set}" = set; then
|
|
|
9795 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9796 |
else
|
|
|
9797 |
if test "$cross_compiling" = yes; then :
|
|
|
9798 |
lt_cv_dlopen_self=cross
|
|
|
9799 |
else
|
|
|
9800 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
9801 |
lt_status=$lt_dlunknown
|
|
|
9802 |
cat > conftest.$ac_ext <<EOF
|
|
|
9803 |
#line __oline__ "configure"
|
|
|
9804 |
#include "confdefs.h"
|
|
|
9805 |
|
|
|
9806 |
#if HAVE_DLFCN_H
|
|
|
9807 |
#include <dlfcn.h>
|
|
|
9808 |
#endif
|
|
|
9809 |
|
|
|
9810 |
#include <stdio.h>
|
|
|
9811 |
|
|
|
9812 |
#ifdef RTLD_GLOBAL
|
|
|
9813 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
|
9814 |
#else
|
|
|
9815 |
# ifdef DL_GLOBAL
|
|
|
9816 |
# define LT_DLGLOBAL DL_GLOBAL
|
|
|
9817 |
# else
|
|
|
9818 |
# define LT_DLGLOBAL 0
|
|
|
9819 |
# endif
|
|
|
9820 |
#endif
|
|
|
9821 |
|
|
|
9822 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
|
9823 |
find out it does not work in some platform. */
|
|
|
9824 |
#ifndef LT_DLLAZY_OR_NOW
|
|
|
9825 |
# ifdef RTLD_LAZY
|
|
|
9826 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
|
9827 |
# else
|
|
|
9828 |
# ifdef DL_LAZY
|
|
|
9829 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
|
9830 |
# else
|
|
|
9831 |
# ifdef RTLD_NOW
|
|
|
9832 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
|
9833 |
# else
|
|
|
9834 |
# ifdef DL_NOW
|
|
|
9835 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
|
9836 |
# else
|
|
|
9837 |
# define LT_DLLAZY_OR_NOW 0
|
|
|
9838 |
# endif
|
|
|
9839 |
# endif
|
|
|
9840 |
# endif
|
|
|
9841 |
# endif
|
|
|
9842 |
#endif
|
|
|
9843 |
|
|
|
9844 |
#ifdef __cplusplus
|
|
|
9845 |
extern "C" void exit (int);
|
|
|
9846 |
#endif
|
|
|
9847 |
|
|
|
9848 |
void fnord() { int i=42;}
|
|
|
9849 |
int main ()
|
|
|
9850 |
{
|
|
|
9851 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
|
9852 |
int status = $lt_dlunknown;
|
|
|
9853 |
|
|
|
9854 |
if (self)
|
|
|
9855 |
{
|
|
|
9856 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
|
9857 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
|
9858 |
/* dlclose (self); */
|
|
|
9859 |
}
|
|
|
9860 |
else
|
|
|
9861 |
puts (dlerror ());
|
|
|
9862 |
|
|
|
9863 |
exit (status);
|
|
|
9864 |
}
|
|
|
9865 |
EOF
|
|
|
9866 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
9867 |
(eval $ac_link) 2>&5
|
|
|
9868 |
ac_status=$?
|
|
|
9869 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9870 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
|
|
9871 |
(./conftest; exit; ) >&5 2>/dev/null
|
|
|
9872 |
lt_status=$?
|
|
|
9873 |
case x$lt_status in
|
|
|
9874 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
|
|
9875 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
|
|
9876 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
|
|
9877 |
esac
|
|
|
9878 |
else :
|
|
|
9879 |
# compilation failed
|
|
|
9880 |
lt_cv_dlopen_self=no
|
|
|
9881 |
fi
|
|
|
9882 |
fi
|
|
|
9883 |
rm -fr conftest*
|
|
|
9884 |
|
|
|
9885 |
|
|
|
9886 |
fi
|
|
|
9887 |
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
|
|
9888 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
|
|
|
9889 |
|
|
|
9890 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
|
|
9891 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
|
|
9892 |
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
|
|
9893 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
|
|
|
9894 |
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
|
|
9895 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
9896 |
else
|
|
|
9897 |
if test "$cross_compiling" = yes; then :
|
|
|
9898 |
lt_cv_dlopen_self_static=cross
|
|
|
9899 |
else
|
|
|
9900 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
|
9901 |
lt_status=$lt_dlunknown
|
|
|
9902 |
cat > conftest.$ac_ext <<EOF
|
|
|
9903 |
#line __oline__ "configure"
|
|
|
9904 |
#include "confdefs.h"
|
|
|
9905 |
|
|
|
9906 |
#if HAVE_DLFCN_H
|
|
|
9907 |
#include <dlfcn.h>
|
|
|
9908 |
#endif
|
|
|
9909 |
|
|
|
9910 |
#include <stdio.h>
|
|
|
9911 |
|
|
|
9912 |
#ifdef RTLD_GLOBAL
|
|
|
9913 |
# define LT_DLGLOBAL RTLD_GLOBAL
|
|
|
9914 |
#else
|
|
|
9915 |
# ifdef DL_GLOBAL
|
|
|
9916 |
# define LT_DLGLOBAL DL_GLOBAL
|
|
|
9917 |
# else
|
|
|
9918 |
# define LT_DLGLOBAL 0
|
|
|
9919 |
# endif
|
|
|
9920 |
#endif
|
|
|
9921 |
|
|
|
9922 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
|
|
9923 |
find out it does not work in some platform. */
|
|
|
9924 |
#ifndef LT_DLLAZY_OR_NOW
|
|
|
9925 |
# ifdef RTLD_LAZY
|
|
|
9926 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
|
|
9927 |
# else
|
|
|
9928 |
# ifdef DL_LAZY
|
|
|
9929 |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
|
|
9930 |
# else
|
|
|
9931 |
# ifdef RTLD_NOW
|
|
|
9932 |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
|
|
9933 |
# else
|
|
|
9934 |
# ifdef DL_NOW
|
|
|
9935 |
# define LT_DLLAZY_OR_NOW DL_NOW
|
|
|
9936 |
# else
|
|
|
9937 |
# define LT_DLLAZY_OR_NOW 0
|
|
|
9938 |
# endif
|
|
|
9939 |
# endif
|
|
|
9940 |
# endif
|
|
|
9941 |
# endif
|
|
|
9942 |
#endif
|
|
|
9943 |
|
|
|
9944 |
#ifdef __cplusplus
|
|
|
9945 |
extern "C" void exit (int);
|
|
|
9946 |
#endif
|
|
|
9947 |
|
|
|
9948 |
void fnord() { int i=42;}
|
|
|
9949 |
int main ()
|
|
|
9950 |
{
|
|
|
9951 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
|
9952 |
int status = $lt_dlunknown;
|
|
|
9953 |
|
|
|
9954 |
if (self)
|
|
|
9955 |
{
|
|
|
9956 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
|
|
9957 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
|
9958 |
/* dlclose (self); */
|
|
|
9959 |
}
|
|
|
9960 |
else
|
|
|
9961 |
puts (dlerror ());
|
|
|
9962 |
|
|
|
9963 |
exit (status);
|
|
|
9964 |
}
|
|
|
9965 |
EOF
|
|
|
9966 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
9967 |
(eval $ac_link) 2>&5
|
|
|
9968 |
ac_status=$?
|
|
|
9969 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
9970 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
|
|
9971 |
(./conftest; exit; ) >&5 2>/dev/null
|
|
|
9972 |
lt_status=$?
|
|
|
9973 |
case x$lt_status in
|
|
|
9974 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
|
|
9975 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
|
|
9976 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
|
|
9977 |
esac
|
|
|
9978 |
else :
|
|
|
9979 |
# compilation failed
|
|
|
9980 |
lt_cv_dlopen_self_static=no
|
|
|
9981 |
fi
|
|
|
9982 |
fi
|
|
|
9983 |
rm -fr conftest*
|
|
|
9984 |
|
|
|
9985 |
|
|
|
9986 |
fi
|
|
|
9987 |
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
|
|
9988 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
|
|
|
9989 |
fi
|
|
|
9990 |
|
|
|
9991 |
CPPFLAGS="$save_CPPFLAGS"
|
|
|
9992 |
LDFLAGS="$save_LDFLAGS"
|
|
|
9993 |
LIBS="$save_LIBS"
|
|
|
9994 |
;;
|
|
|
9995 |
esac
|
|
|
9996 |
|
|
|
9997 |
case $lt_cv_dlopen_self in
|
|
|
9998 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
|
|
9999 |
*) enable_dlopen_self=unknown ;;
|
|
|
10000 |
esac
|
|
|
10001 |
|
|
|
10002 |
case $lt_cv_dlopen_self_static in
|
|
|
10003 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
|
|
10004 |
*) enable_dlopen_self_static=unknown ;;
|
|
|
10005 |
esac
|
|
|
10006 |
fi
|
|
|
10007 |
|
|
|
10008 |
|
|
|
10009 |
# Report which library types will actually be built
|
|
|
10010 |
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
|
|
10011 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
|
|
10012 |
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
|
|
10013 |
echo "${ECHO_T}$can_build_shared" >&6; }
|
|
|
10014 |
|
|
|
10015 |
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
|
|
10016 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
|
|
10017 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
10018 |
|
|
|
10019 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
10020 |
# are all built from PIC.
|
|
|
10021 |
case $host_os in
|
|
|
10022 |
aix3*)
|
|
|
10023 |
test "$enable_shared" = yes && enable_static=no
|
|
|
10024 |
if test -n "$RANLIB"; then
|
|
|
10025 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
10026 |
postinstall_cmds='$RANLIB $lib'
|
|
|
10027 |
fi
|
|
|
10028 |
;;
|
|
|
10029 |
|
|
|
10030 |
aix4* | aix5*)
|
|
|
10031 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
10032 |
test "$enable_shared" = yes && enable_static=no
|
|
|
10033 |
fi
|
|
|
10034 |
;;
|
|
|
10035 |
esac
|
|
|
10036 |
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
|
|
10037 |
echo "${ECHO_T}$enable_shared" >&6; }
|
|
|
10038 |
|
|
|
10039 |
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
|
|
10040 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
|
|
10041 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
10042 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
10043 |
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
|
|
10044 |
echo "${ECHO_T}$enable_static" >&6; }
|
|
|
10045 |
|
|
|
10046 |
# The else clause should only fire when bootstrapping the
|
|
|
10047 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
10048 |
# with your package, and you will get complaints that there are
|
|
|
10049 |
# no rules to generate ltmain.sh.
|
|
|
10050 |
if test -f "$ltmain"; then
|
|
|
10051 |
# See if we are running on zsh, and set the options which allow our commands through
|
|
|
10052 |
# without removal of \ escapes.
|
|
|
10053 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
10054 |
setopt NO_GLOB_SUBST
|
|
|
10055 |
fi
|
|
|
10056 |
# Now quote all the things that may contain metacharacters while being
|
|
|
10057 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
10058 |
# variables and quote the copies for generation of the libtool script.
|
|
|
10059 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
|
10060 |
SED SHELL STRIP \
|
|
|
10061 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
|
10062 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
|
10063 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
|
|
10064 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|
|
10065 |
lt_cv_sys_global_symbol_to_c_name_address \
|
|
|
10066 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
10067 |
old_postinstall_cmds old_postuninstall_cmds \
|
|
|
10068 |
compiler \
|
|
|
10069 |
CC \
|
|
|
10070 |
LD \
|
|
|
10071 |
lt_prog_compiler_wl \
|
|
|
10072 |
lt_prog_compiler_pic \
|
|
|
10073 |
lt_prog_compiler_static \
|
|
|
10074 |
lt_prog_compiler_no_builtin_flag \
|
|
|
10075 |
export_dynamic_flag_spec \
|
|
|
10076 |
thread_safe_flag_spec \
|
|
|
10077 |
whole_archive_flag_spec \
|
|
|
10078 |
enable_shared_with_static_runtimes \
|
|
|
10079 |
old_archive_cmds \
|
|
|
10080 |
old_archive_from_new_cmds \
|
|
|
10081 |
predep_objects \
|
|
|
10082 |
postdep_objects \
|
|
|
10083 |
predeps \
|
|
|
10084 |
postdeps \
|
|
|
10085 |
compiler_lib_search_path \
|
|
|
10086 |
archive_cmds \
|
|
|
10087 |
archive_expsym_cmds \
|
|
|
10088 |
postinstall_cmds \
|
|
|
10089 |
postuninstall_cmds \
|
|
|
10090 |
old_archive_from_expsyms_cmds \
|
|
|
10091 |
allow_undefined_flag \
|
|
|
10092 |
no_undefined_flag \
|
|
|
10093 |
export_symbols_cmds \
|
|
|
10094 |
hardcode_libdir_flag_spec \
|
|
|
10095 |
hardcode_libdir_flag_spec_ld \
|
|
|
10096 |
hardcode_libdir_separator \
|
|
|
10097 |
hardcode_automatic \
|
|
|
10098 |
module_cmds \
|
|
|
10099 |
module_expsym_cmds \
|
|
|
10100 |
lt_cv_prog_compiler_c_o \
|
|
|
10101 |
fix_srcfile_path \
|
|
|
10102 |
exclude_expsyms \
|
|
|
10103 |
include_expsyms; do
|
|
|
10104 |
|
|
|
10105 |
case $var in
|
|
|
10106 |
old_archive_cmds | \
|
|
|
10107 |
old_archive_from_new_cmds | \
|
|
|
10108 |
archive_cmds | \
|
|
|
10109 |
archive_expsym_cmds | \
|
|
|
10110 |
module_cmds | \
|
|
|
10111 |
module_expsym_cmds | \
|
|
|
10112 |
old_archive_from_expsyms_cmds | \
|
|
|
10113 |
export_symbols_cmds | \
|
|
|
10114 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|
|
10115 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
10116 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
10117 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
10118 |
# Double-quote double-evaled strings.
|
|
|
10119 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
10120 |
;;
|
|
|
10121 |
*)
|
|
|
10122 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
10123 |
;;
|
|
|
10124 |
esac
|
|
|
10125 |
done
|
|
|
10126 |
|
|
|
10127 |
case $lt_echo in
|
|
|
10128 |
*'\$0 --fallback-echo"')
|
|
|
10129 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
|
|
10130 |
;;
|
|
|
10131 |
esac
|
|
|
10132 |
|
|
|
10133 |
cfgfile="${ofile}T"
|
|
|
10134 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
|
|
10135 |
$rm -f "$cfgfile"
|
|
|
10136 |
{ echo "$as_me:$LINENO: creating $ofile" >&5
|
|
|
10137 |
echo "$as_me: creating $ofile" >&6;}
|
|
|
10138 |
|
|
|
10139 |
cat <<__EOF__ >> "$cfgfile"
|
|
|
10140 |
#! $SHELL
|
|
|
10141 |
|
|
|
10142 |
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
|
|
10143 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
|
|
10144 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
|
10145 |
#
|
|
|
10146 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
|
|
10147 |
# Free Software Foundation, Inc.
|
|
|
10148 |
#
|
|
|
10149 |
# This file is part of GNU Libtool:
|
|
|
10150 |
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
|
10151 |
#
|
|
|
10152 |
# This program is free software; you can redistribute it and/or modify
|
|
|
10153 |
# it under the terms of the GNU General Public License as published by
|
|
|
10154 |
# the Free Software Foundation; either version 2 of the License, or
|
|
|
10155 |
# (at your option) any later version.
|
|
|
10156 |
#
|
|
|
10157 |
# This program is distributed in the hope that it will be useful, but
|
|
|
10158 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
10159 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
10160 |
# General Public License for more details.
|
|
|
10161 |
#
|
|
|
10162 |
# You should have received a copy of the GNU General Public License
|
|
|
10163 |
# along with this program; if not, write to the Free Software
|
|
|
10164 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
10165 |
#
|
|
|
10166 |
# As a special exception to the GNU General Public License, if you
|
|
|
10167 |
# distribute this file as part of a program that contains a
|
|
|
10168 |
# configuration script generated by Autoconf, you may include it under
|
|
|
10169 |
# the same distribution terms that you use for the rest of that program.
|
|
|
10170 |
|
|
|
10171 |
# A sed program that does not truncate output.
|
|
|
10172 |
SED=$lt_SED
|
|
|
10173 |
|
|
|
10174 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
|
|
10175 |
Xsed="$SED -e 1s/^X//"
|
|
|
10176 |
|
|
|
10177 |
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
|
10178 |
# if CDPATH is set.
|
|
|
10179 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
|
|
10180 |
|
|
|
10181 |
# The names of the tagged configurations supported by this script.
|
|
|
10182 |
available_tags=
|
|
|
10183 |
|
|
|
10184 |
# ### BEGIN LIBTOOL CONFIG
|
|
|
10185 |
|
|
|
10186 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
10187 |
|
|
|
10188 |
# Shell to use when invoking shell scripts.
|
|
|
10189 |
SHELL=$lt_SHELL
|
|
|
10190 |
|
|
|
10191 |
# Whether or not to build shared libraries.
|
|
|
10192 |
build_libtool_libs=$enable_shared
|
|
|
10193 |
|
|
|
10194 |
# Whether or not to build static libraries.
|
|
|
10195 |
build_old_libs=$enable_static
|
|
|
10196 |
|
|
|
10197 |
# Whether or not to add -lc for building shared libraries.
|
|
|
10198 |
build_libtool_need_lc=$archive_cmds_need_lc
|
|
|
10199 |
|
|
|
10200 |
# Whether or not to disallow shared libs when runtime libs are static
|
|
|
10201 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
|
|
10202 |
|
|
|
10203 |
# Whether or not to optimize for fast installation.
|
|
|
10204 |
fast_install=$enable_fast_install
|
|
|
10205 |
|
|
|
10206 |
# The host system.
|
|
|
10207 |
host_alias=$host_alias
|
|
|
10208 |
host=$host
|
|
|
10209 |
host_os=$host_os
|
|
|
10210 |
|
|
|
10211 |
# The build system.
|
|
|
10212 |
build_alias=$build_alias
|
|
|
10213 |
build=$build
|
|
|
10214 |
build_os=$build_os
|
|
|
10215 |
|
|
|
10216 |
# An echo program that does not interpret backslashes.
|
|
|
10217 |
echo=$lt_echo
|
|
|
10218 |
|
|
|
10219 |
# The archiver.
|
|
|
10220 |
AR=$lt_AR
|
|
|
10221 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
10222 |
|
|
|
10223 |
# A C compiler.
|
|
|
10224 |
LTCC=$lt_LTCC
|
|
|
10225 |
|
|
|
10226 |
# LTCC compiler flags.
|
|
|
10227 |
LTCFLAGS=$lt_LTCFLAGS
|
|
|
10228 |
|
|
|
10229 |
# A language-specific compiler.
|
|
|
10230 |
CC=$lt_compiler
|
|
|
10231 |
|
|
|
10232 |
# Is the compiler the GNU C compiler?
|
|
|
10233 |
with_gcc=$GCC
|
|
|
10234 |
|
|
|
10235 |
# An ERE matcher.
|
|
|
10236 |
EGREP=$lt_EGREP
|
|
|
10237 |
|
|
|
10238 |
# The linker used to build libraries.
|
|
|
10239 |
LD=$lt_LD
|
|
|
10240 |
|
|
|
10241 |
# Whether we need hard or soft links.
|
|
|
10242 |
LN_S=$lt_LN_S
|
|
|
10243 |
|
|
|
10244 |
# A BSD-compatible nm program.
|
|
|
10245 |
NM=$lt_NM
|
|
|
10246 |
|
|
|
10247 |
# A symbol stripping program
|
|
|
10248 |
STRIP=$lt_STRIP
|
|
|
10249 |
|
|
|
10250 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
10251 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
10252 |
|
|
|
10253 |
# Used on cygwin: DLL creation program.
|
|
|
10254 |
DLLTOOL="$DLLTOOL"
|
|
|
10255 |
|
|
|
10256 |
# Used on cygwin: object dumper.
|
|
|
10257 |
OBJDUMP="$OBJDUMP"
|
|
|
10258 |
|
|
|
10259 |
# Used on cygwin: assembler.
|
|
|
10260 |
AS="$AS"
|
|
|
10261 |
|
|
|
10262 |
# The name of the directory that contains temporary libtool files.
|
|
|
10263 |
objdir=$objdir
|
|
|
10264 |
|
|
|
10265 |
# How to create reloadable object files.
|
|
|
10266 |
reload_flag=$lt_reload_flag
|
|
|
10267 |
reload_cmds=$lt_reload_cmds
|
|
|
10268 |
|
|
|
10269 |
# How to pass a linker flag through the compiler.
|
|
|
10270 |
wl=$lt_lt_prog_compiler_wl
|
|
|
10271 |
|
|
|
10272 |
# Object file suffix (normally "o").
|
|
|
10273 |
objext="$ac_objext"
|
|
|
10274 |
|
|
|
10275 |
# Old archive suffix (normally "a").
|
|
|
10276 |
libext="$libext"
|
|
|
10277 |
|
|
|
10278 |
# Shared library suffix (normally ".so").
|
|
|
10279 |
shrext_cmds='$shrext_cmds'
|
|
|
10280 |
|
|
|
10281 |
# Executable file suffix (normally "").
|
|
|
10282 |
exeext="$exeext"
|
|
|
10283 |
|
|
|
10284 |
# Additional compiler flags for building library objects.
|
|
|
10285 |
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
10286 |
pic_mode=$pic_mode
|
|
|
10287 |
|
|
|
10288 |
# What is the maximum length of a command?
|
|
|
10289 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
10290 |
|
|
|
10291 |
# Does compiler simultaneously support -c and -o options?
|
|
|
10292 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
|
|
10293 |
|
|
|
10294 |
# Must we lock files when doing compilation?
|
|
|
10295 |
need_locks=$lt_need_locks
|
|
|
10296 |
|
|
|
10297 |
# Do we need the lib prefix for modules?
|
|
|
10298 |
need_lib_prefix=$need_lib_prefix
|
|
|
10299 |
|
|
|
10300 |
# Do we need a version for libraries?
|
|
|
10301 |
need_version=$need_version
|
|
|
10302 |
|
|
|
10303 |
# Whether dlopen is supported.
|
|
|
10304 |
dlopen_support=$enable_dlopen
|
|
|
10305 |
|
|
|
10306 |
# Whether dlopen of programs is supported.
|
|
|
10307 |
dlopen_self=$enable_dlopen_self
|
|
|
10308 |
|
|
|
10309 |
# Whether dlopen of statically linked programs is supported.
|
|
|
10310 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
10311 |
|
|
|
10312 |
# Compiler flag to prevent dynamic linking.
|
|
|
10313 |
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
10314 |
|
|
|
10315 |
# Compiler flag to turn off builtin functions.
|
|
|
10316 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
10317 |
|
|
|
10318 |
# Compiler flag to allow reflexive dlopens.
|
|
|
10319 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
|
|
10320 |
|
|
|
10321 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
10322 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
|
|
10323 |
|
|
|
10324 |
# Compiler flag to generate thread-safe objects.
|
|
|
10325 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec
|
|
|
10326 |
|
|
|
10327 |
# Library versioning type.
|
|
|
10328 |
version_type=$version_type
|
|
|
10329 |
|
|
|
10330 |
# Format of library name prefix.
|
|
|
10331 |
libname_spec=$lt_libname_spec
|
|
|
10332 |
|
|
|
10333 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
10334 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
10335 |
library_names_spec=$lt_library_names_spec
|
|
|
10336 |
|
|
|
10337 |
# The coded name of the library, if different from the real name.
|
|
|
10338 |
soname_spec=$lt_soname_spec
|
|
|
10339 |
|
|
|
10340 |
# Commands used to build and install an old-style archive.
|
|
|
10341 |
RANLIB=$lt_RANLIB
|
|
|
10342 |
old_archive_cmds=$lt_old_archive_cmds
|
|
|
10343 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
10344 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
10345 |
|
|
|
10346 |
# Create an old-style archive from a shared archive.
|
|
|
10347 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
|
|
10348 |
|
|
|
10349 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
10350 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
|
|
10351 |
|
|
|
10352 |
# Commands used to build and install a shared archive.
|
|
|
10353 |
archive_cmds=$lt_archive_cmds
|
|
|
10354 |
archive_expsym_cmds=$lt_archive_expsym_cmds
|
|
|
10355 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
10356 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
10357 |
|
|
|
10358 |
# Commands used to build a loadable module (assumed same as above if empty)
|
|
|
10359 |
module_cmds=$lt_module_cmds
|
|
|
10360 |
module_expsym_cmds=$lt_module_expsym_cmds
|
|
|
10361 |
|
|
|
10362 |
# Commands to strip libraries.
|
|
|
10363 |
old_striplib=$lt_old_striplib
|
|
|
10364 |
striplib=$lt_striplib
|
|
|
10365 |
|
|
|
10366 |
# Dependencies to place before the objects being linked to create a
|
|
|
10367 |
# shared library.
|
|
|
10368 |
predep_objects=$lt_predep_objects
|
|
|
10369 |
|
|
|
10370 |
# Dependencies to place after the objects being linked to create a
|
|
|
10371 |
# shared library.
|
|
|
10372 |
postdep_objects=$lt_postdep_objects
|
|
|
10373 |
|
|
|
10374 |
# Dependencies to place before the objects being linked to create a
|
|
|
10375 |
# shared library.
|
|
|
10376 |
predeps=$lt_predeps
|
|
|
10377 |
|
|
|
10378 |
# Dependencies to place after the objects being linked to create a
|
|
|
10379 |
# shared library.
|
|
|
10380 |
postdeps=$lt_postdeps
|
|
|
10381 |
|
|
|
10382 |
# The library search path used internally by the compiler when linking
|
|
|
10383 |
# a shared library.
|
|
|
10384 |
compiler_lib_search_path=$lt_compiler_lib_search_path
|
|
|
10385 |
|
|
|
10386 |
# Method to check whether dependent libraries are shared objects.
|
|
|
10387 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
10388 |
|
|
|
10389 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
10390 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
10391 |
|
|
|
10392 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
10393 |
allow_undefined_flag=$lt_allow_undefined_flag
|
|
|
10394 |
|
|
|
10395 |
# Flag that forces no undefined symbols.
|
|
|
10396 |
no_undefined_flag=$lt_no_undefined_flag
|
|
|
10397 |
|
|
|
10398 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
10399 |
finish_cmds=$lt_finish_cmds
|
|
|
10400 |
|
|
|
10401 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
10402 |
finish_eval=$lt_finish_eval
|
|
|
10403 |
|
|
|
10404 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
10405 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
10406 |
|
|
|
10407 |
# Transform the output of nm in a proper C declaration
|
|
|
10408 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
10409 |
|
|
|
10410 |
# Transform the output of nm in a C name address pair
|
|
|
10411 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
10412 |
|
|
|
10413 |
# This is the shared library runtime path variable.
|
|
|
10414 |
runpath_var=$runpath_var
|
|
|
10415 |
|
|
|
10416 |
# This is the shared library path variable.
|
|
|
10417 |
shlibpath_var=$shlibpath_var
|
|
|
10418 |
|
|
|
10419 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
10420 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
10421 |
|
|
|
10422 |
# How to hardcode a shared library path into an executable.
|
|
|
10423 |
hardcode_action=$hardcode_action
|
|
|
10424 |
|
|
|
10425 |
# Whether we should hardcode library paths into libraries.
|
|
|
10426 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
10427 |
|
|
|
10428 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
10429 |
# This must work even if \$libdir does not exist.
|
|
|
10430 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
|
|
10431 |
|
|
|
10432 |
# If ld is used when linking, flag to hardcode \$libdir into
|
|
|
10433 |
# a binary during linking. This must work even if \$libdir does
|
|
|
10434 |
# not exist.
|
|
|
10435 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
|
|
|
10436 |
|
|
|
10437 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
10438 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
|
|
10439 |
|
|
|
10440 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|
|
10441 |
# resulting binary.
|
|
|
10442 |
hardcode_direct=$hardcode_direct
|
|
|
10443 |
|
|
|
10444 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
10445 |
# resulting binary.
|
|
|
10446 |
hardcode_minus_L=$hardcode_minus_L
|
|
|
10447 |
|
|
|
10448 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
10449 |
# the resulting binary.
|
|
|
10450 |
hardcode_shlibpath_var=$hardcode_shlibpath_var
|
|
|
10451 |
|
|
|
10452 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
|
|
10453 |
# and all subsequent libraries and executables linked against it.
|
|
|
10454 |
hardcode_automatic=$hardcode_automatic
|
|
|
10455 |
|
|
|
10456 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
10457 |
# restored at relink time.
|
|
|
10458 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
10459 |
|
|
|
10460 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
10461 |
link_all_deplibs=$link_all_deplibs
|
|
|
10462 |
|
|
|
10463 |
# Compile-time system search path for libraries
|
|
|
10464 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
10465 |
|
|
|
10466 |
# Run-time system search path for libraries
|
|
|
10467 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
10468 |
|
|
|
10469 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
10470 |
fix_srcfile_path=$lt_fix_srcfile_path
|
|
|
10471 |
|
|
|
10472 |
# Set to yes if exported symbols are required.
|
|
|
10473 |
always_export_symbols=$always_export_symbols
|
|
|
10474 |
|
|
|
10475 |
# The commands to list exported symbols.
|
|
|
10476 |
export_symbols_cmds=$lt_export_symbols_cmds
|
|
|
10477 |
|
|
|
10478 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
10479 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
10480 |
|
|
|
10481 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
10482 |
exclude_expsyms=$lt_exclude_expsyms
|
|
|
10483 |
|
|
|
10484 |
# Symbols that must always be exported.
|
|
|
10485 |
include_expsyms=$lt_include_expsyms
|
|
|
10486 |
|
|
|
10487 |
# ### END LIBTOOL CONFIG
|
|
|
10488 |
|
|
|
10489 |
__EOF__
|
|
|
10490 |
|
|
|
10491 |
|
|
|
10492 |
case $host_os in
|
|
|
10493 |
aix3*)
|
|
|
10494 |
cat <<\EOF >> "$cfgfile"
|
|
|
10495 |
|
|
|
10496 |
# AIX sometimes has problems with the GCC collect2 program. For some
|
|
|
10497 |
# reason, if we set the COLLECT_NAMES environment variable, the problems
|
|
|
10498 |
# vanish in a puff of smoke.
|
|
|
10499 |
if test "X${COLLECT_NAMES+set}" != Xset; then
|
|
|
10500 |
COLLECT_NAMES=
|
|
|
10501 |
export COLLECT_NAMES
|
|
|
10502 |
fi
|
|
|
10503 |
EOF
|
|
|
10504 |
;;
|
|
|
10505 |
esac
|
|
|
10506 |
|
|
|
10507 |
# We use sed instead of cat because bash on DJGPP gets confused if
|
|
|
10508 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
|
10509 |
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
|
10510 |
# is reportedly fixed, but why not run on old versions too?
|
|
|
10511 |
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
|
|
10512 |
|
|
|
10513 |
mv -f "$cfgfile" "$ofile" || \
|
|
|
10514 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
|
10515 |
chmod +x "$ofile"
|
|
|
10516 |
|
|
|
10517 |
else
|
|
|
10518 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
10519 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
10520 |
# libtool script then.
|
|
|
10521 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|
|
10522 |
if test -f "$ltmain_in"; then
|
|
|
10523 |
test -f Makefile && make "$ltmain"
|
|
|
10524 |
fi
|
|
|
10525 |
fi
|
|
|
10526 |
|
|
|
10527 |
|
|
|
10528 |
ac_ext=c
|
|
|
10529 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
10530 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
10531 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
10532 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
10533 |
|
|
|
10534 |
CC="$lt_save_CC"
|
|
|
10535 |
|
|
|
10536 |
|
|
|
10537 |
# Check whether --with-tags was given.
|
|
|
10538 |
if test "${with_tags+set}" = set; then
|
|
|
10539 |
withval=$with_tags; tagnames="$withval"
|
|
|
10540 |
fi
|
|
|
10541 |
|
|
|
10542 |
|
|
|
10543 |
if test -f "$ltmain" && test -n "$tagnames"; then
|
|
|
10544 |
if test ! -f "${ofile}"; then
|
|
|
10545 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
|
|
10546 |
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
|
|
10547 |
fi
|
|
|
10548 |
|
|
|
10549 |
if test -z "$LTCC"; then
|
|
|
10550 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
|
|
10551 |
if test -z "$LTCC"; then
|
|
|
10552 |
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
|
|
|
10553 |
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
|
|
|
10554 |
else
|
|
|
10555 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
|
|
10556 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
|
|
10557 |
fi
|
|
|
10558 |
fi
|
|
|
10559 |
if test -z "$LTCFLAGS"; then
|
|
|
10560 |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
|
|
10561 |
fi
|
|
|
10562 |
|
|
|
10563 |
# Extract list of available tagged configurations in $ofile.
|
|
|
10564 |
# Note that this assumes the entire list is on one line.
|
|
|
10565 |
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
|
|
10566 |
|
|
|
10567 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
|
10568 |
for tagname in $tagnames; do
|
|
|
10569 |
IFS="$lt_save_ifs"
|
|
|
10570 |
# Check whether tagname contains only valid characters
|
|
|
10571 |
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
|
|
|
10572 |
"") ;;
|
|
|
10573 |
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
|
|
|
10574 |
echo "$as_me: error: invalid tag name: $tagname" >&2;}
|
|
|
10575 |
{ (exit 1); exit 1; }; }
|
|
|
10576 |
;;
|
|
|
10577 |
esac
|
|
|
10578 |
|
|
|
10579 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
|
|
10580 |
then
|
|
|
10581 |
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
|
|
|
10582 |
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
|
|
|
10583 |
{ (exit 1); exit 1; }; }
|
|
|
10584 |
fi
|
|
|
10585 |
|
|
|
10586 |
# Update the list of available tags.
|
|
|
10587 |
if test -n "$tagname"; then
|
|
|
10588 |
echo appending configuration tag \"$tagname\" to $ofile
|
|
|
10589 |
|
|
|
10590 |
case $tagname in
|
|
|
10591 |
CXX)
|
|
|
10592 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|
|
10593 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|
|
10594 |
(test "X$CXX" != "Xg++"))) ; then
|
|
|
10595 |
ac_ext=cpp
|
|
|
10596 |
ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
10597 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
10598 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
10599 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
10600 |
|
|
|
10601 |
|
|
|
10602 |
|
|
|
10603 |
|
|
|
10604 |
archive_cmds_need_lc_CXX=no
|
|
|
10605 |
allow_undefined_flag_CXX=
|
|
|
10606 |
always_export_symbols_CXX=no
|
|
|
10607 |
archive_expsym_cmds_CXX=
|
|
|
10608 |
export_dynamic_flag_spec_CXX=
|
|
|
10609 |
hardcode_direct_CXX=no
|
|
|
10610 |
hardcode_libdir_flag_spec_CXX=
|
|
|
10611 |
hardcode_libdir_flag_spec_ld_CXX=
|
|
|
10612 |
hardcode_libdir_separator_CXX=
|
|
|
10613 |
hardcode_minus_L_CXX=no
|
|
|
10614 |
hardcode_shlibpath_var_CXX=unsupported
|
|
|
10615 |
hardcode_automatic_CXX=no
|
|
|
10616 |
module_cmds_CXX=
|
|
|
10617 |
module_expsym_cmds_CXX=
|
|
|
10618 |
link_all_deplibs_CXX=unknown
|
|
|
10619 |
old_archive_cmds_CXX=$old_archive_cmds
|
|
|
10620 |
no_undefined_flag_CXX=
|
|
|
10621 |
whole_archive_flag_spec_CXX=
|
|
|
10622 |
enable_shared_with_static_runtimes_CXX=no
|
|
|
10623 |
|
|
|
10624 |
# Dependencies to place before and after the object being linked:
|
|
|
10625 |
predep_objects_CXX=
|
|
|
10626 |
postdep_objects_CXX=
|
|
|
10627 |
predeps_CXX=
|
|
|
10628 |
postdeps_CXX=
|
|
|
10629 |
compiler_lib_search_path_CXX=
|
|
|
10630 |
|
|
|
10631 |
# Source file extension for C++ test sources.
|
|
|
10632 |
ac_ext=cpp
|
|
|
10633 |
|
|
|
10634 |
# Object file extension for compiled C++ test sources.
|
|
|
10635 |
objext=o
|
|
|
10636 |
objext_CXX=$objext
|
|
|
10637 |
|
|
|
10638 |
# Code to be used in simple compile tests
|
|
|
10639 |
lt_simple_compile_test_code="int some_variable = 0;"
|
|
|
10640 |
|
|
|
10641 |
# Code to be used in simple link tests
|
|
|
10642 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
|
|
|
10643 |
|
|
|
10644 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
10645 |
|
|
|
10646 |
# If no C compiler was specified, use CC.
|
|
|
10647 |
LTCC=${LTCC-"$CC"}
|
|
|
10648 |
|
|
|
10649 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
10650 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
10651 |
|
|
|
10652 |
# Allow CC to be a program name with arguments.
|
|
|
10653 |
compiler=$CC
|
|
|
10654 |
|
|
|
10655 |
|
|
|
10656 |
# save warnings/boilerplate of simple test code
|
|
|
10657 |
ac_outfile=conftest.$ac_objext
|
|
|
10658 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
10659 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
10660 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
10661 |
$rm conftest*
|
|
|
10662 |
|
|
|
10663 |
ac_outfile=conftest.$ac_objext
|
|
|
10664 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
10665 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
10666 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
10667 |
$rm conftest*
|
|
|
10668 |
|
|
|
10669 |
|
|
|
10670 |
# Allow CC to be a program name with arguments.
|
|
|
10671 |
lt_save_CC=$CC
|
|
|
10672 |
lt_save_LD=$LD
|
|
|
10673 |
lt_save_GCC=$GCC
|
|
|
10674 |
GCC=$GXX
|
|
|
10675 |
lt_save_with_gnu_ld=$with_gnu_ld
|
|
|
10676 |
lt_save_path_LD=$lt_cv_path_LD
|
|
|
10677 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
|
|
10678 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
|
|
10679 |
else
|
|
|
10680 |
$as_unset lt_cv_prog_gnu_ld
|
|
|
10681 |
fi
|
|
|
10682 |
if test -n "${lt_cv_path_LDCXX+set}"; then
|
|
|
10683 |
lt_cv_path_LD=$lt_cv_path_LDCXX
|
|
|
10684 |
else
|
|
|
10685 |
$as_unset lt_cv_path_LD
|
|
|
10686 |
fi
|
|
|
10687 |
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
|
10688 |
CC=${CXX-"c++"}
|
|
|
10689 |
compiler=$CC
|
|
|
10690 |
compiler_CXX=$CC
|
|
|
10691 |
for cc_temp in $compiler""; do
|
|
|
10692 |
case $cc_temp in
|
|
|
10693 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
10694 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
10695 |
\-*) ;;
|
|
|
10696 |
*) break;;
|
|
|
10697 |
esac
|
|
|
10698 |
done
|
|
|
10699 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
10700 |
|
|
|
10701 |
|
|
|
10702 |
# We don't want -fno-exception wen compiling C++ code, so set the
|
|
|
10703 |
# no_builtin_flag separately
|
|
|
10704 |
if test "$GXX" = yes; then
|
|
|
10705 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
|
|
|
10706 |
else
|
|
|
10707 |
lt_prog_compiler_no_builtin_flag_CXX=
|
|
|
10708 |
fi
|
|
|
10709 |
|
|
|
10710 |
if test "$GXX" = yes; then
|
|
|
10711 |
# Set up default GNU C++ configuration
|
|
|
10712 |
|
|
|
10713 |
|
|
|
10714 |
# Check whether --with-gnu-ld was given.
|
|
|
10715 |
if test "${with_gnu_ld+set}" = set; then
|
|
|
10716 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
|
|
10717 |
else
|
|
|
10718 |
with_gnu_ld=no
|
|
|
10719 |
fi
|
|
|
10720 |
|
|
|
10721 |
ac_prog=ld
|
|
|
10722 |
if test "$GCC" = yes; then
|
|
|
10723 |
# Check if gcc -print-prog-name=ld gives a path.
|
|
|
10724 |
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
|
|
|
10725 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
|
|
|
10726 |
case $host in
|
|
|
10727 |
*-*-mingw*)
|
|
|
10728 |
# gcc leaves a trailing carriage return which upsets mingw
|
|
|
10729 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
|
10730 |
*)
|
|
|
10731 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
|
10732 |
esac
|
|
|
10733 |
case $ac_prog in
|
|
|
10734 |
# Accept absolute paths.
|
|
|
10735 |
[\\/]* | ?:[\\/]*)
|
|
|
10736 |
re_direlt='/[^/][^/]*/\.\./'
|
|
|
10737 |
# Canonicalize the pathname of ld
|
|
|
10738 |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
|
|
10739 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|
|
10740 |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
|
|
10741 |
done
|
|
|
10742 |
test -z "$LD" && LD="$ac_prog"
|
|
|
10743 |
;;
|
|
|
10744 |
"")
|
|
|
10745 |
# If it fails, then pretend we aren't using GCC.
|
|
|
10746 |
ac_prog=ld
|
|
|
10747 |
;;
|
|
|
10748 |
*)
|
|
|
10749 |
# If it is relative, then search for the first ld in PATH.
|
|
|
10750 |
with_gnu_ld=unknown
|
|
|
10751 |
;;
|
|
|
10752 |
esac
|
|
|
10753 |
elif test "$with_gnu_ld" = yes; then
|
|
|
10754 |
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
|
|
|
10755 |
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
|
|
|
10756 |
else
|
|
|
10757 |
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
|
|
|
10758 |
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
|
|
|
10759 |
fi
|
|
|
10760 |
if test "${lt_cv_path_LD+set}" = set; then
|
|
|
10761 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
10762 |
else
|
|
|
10763 |
if test -z "$LD"; then
|
|
|
10764 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
|
10765 |
for ac_dir in $PATH; do
|
|
|
10766 |
IFS="$lt_save_ifs"
|
|
|
10767 |
test -z "$ac_dir" && ac_dir=.
|
|
|
10768 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
|
10769 |
lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
|
10770 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
|
10771 |
# but apparently some variants of GNU ld only accept -v.
|
|
|
10772 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
|
10773 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
|
10774 |
*GNU* | *'with BFD'*)
|
|
|
10775 |
test "$with_gnu_ld" != no && break
|
|
|
10776 |
;;
|
|
|
10777 |
*)
|
|
|
10778 |
test "$with_gnu_ld" != yes && break
|
|
|
10779 |
;;
|
|
|
10780 |
esac
|
|
|
10781 |
fi
|
|
|
10782 |
done
|
|
|
10783 |
IFS="$lt_save_ifs"
|
|
|
10784 |
else
|
|
|
10785 |
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
|
10786 |
fi
|
|
|
10787 |
fi
|
|
|
10788 |
|
|
|
10789 |
LD="$lt_cv_path_LD"
|
|
|
10790 |
if test -n "$LD"; then
|
|
|
10791 |
{ echo "$as_me:$LINENO: result: $LD" >&5
|
|
|
10792 |
echo "${ECHO_T}$LD" >&6; }
|
|
|
10793 |
else
|
|
|
10794 |
{ echo "$as_me:$LINENO: result: no" >&5
|
|
|
10795 |
echo "${ECHO_T}no" >&6; }
|
|
|
10796 |
fi
|
|
|
10797 |
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
|
|
|
10798 |
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
|
|
|
10799 |
{ (exit 1); exit 1; }; }
|
|
|
10800 |
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
|
|
|
10801 |
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
|
|
|
10802 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then
|
|
|
10803 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
10804 |
else
|
|
|
10805 |
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
|
10806 |
case `$LD -v 2>&1 </dev/null` in
|
|
|
10807 |
*GNU* | *'with BFD'*)
|
|
|
10808 |
lt_cv_prog_gnu_ld=yes
|
|
|
10809 |
;;
|
|
|
10810 |
*)
|
|
|
10811 |
lt_cv_prog_gnu_ld=no
|
|
|
10812 |
;;
|
|
|
10813 |
esac
|
|
|
10814 |
fi
|
|
|
10815 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
|
|
|
10816 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
|
|
|
10817 |
with_gnu_ld=$lt_cv_prog_gnu_ld
|
|
|
10818 |
|
|
|
10819 |
|
|
|
10820 |
|
|
|
10821 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the
|
|
|
10822 |
# archiving commands below assume that GNU ld is being used.
|
|
|
10823 |
if test "$with_gnu_ld" = yes; then
|
|
|
10824 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
10825 |
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
10826 |
|
|
|
10827 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
|
|
10828 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
|
|
10829 |
|
|
|
10830 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
10831 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
|
|
10832 |
# investigate it a little bit more. (MM)
|
|
|
10833 |
wlarc='${wl}'
|
|
|
10834 |
|
|
|
10835 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
10836 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
|
|
10837 |
grep 'no-whole-archive' > /dev/null; then
|
|
|
10838 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
10839 |
else
|
|
|
10840 |
whole_archive_flag_spec_CXX=
|
|
|
10841 |
fi
|
|
|
10842 |
else
|
|
|
10843 |
with_gnu_ld=no
|
|
|
10844 |
wlarc=
|
|
|
10845 |
|
|
|
10846 |
# A generic and very simple default shared library creation
|
|
|
10847 |
# command for GNU C++ for the case where it uses the native
|
|
|
10848 |
# linker, instead of GNU ld. If possible, this setting should
|
|
|
10849 |
# overridden to take advantage of the native linker features on
|
|
|
10850 |
# the platform it is being used on.
|
|
|
10851 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
|
10852 |
fi
|
|
|
10853 |
|
|
|
10854 |
# Commands to make compiler produce verbose output that lists
|
|
|
10855 |
# what "hidden" libraries, object files and flags are used when
|
|
|
10856 |
# linking a shared library.
|
|
|
10857 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|
|
10858 |
|
|
|
10859 |
else
|
|
|
10860 |
GXX=no
|
|
|
10861 |
with_gnu_ld=no
|
|
|
10862 |
wlarc=
|
|
|
10863 |
fi
|
|
|
10864 |
|
|
|
10865 |
# PORTME: fill in a description of your system's C++ link characteristics
|
|
|
10866 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
|
10867 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
|
|
10868 |
ld_shlibs_CXX=yes
|
|
|
10869 |
case $host_os in
|
|
|
10870 |
aix3*)
|
|
|
10871 |
# FIXME: insert proper C++ library support
|
|
|
10872 |
ld_shlibs_CXX=no
|
|
|
10873 |
;;
|
|
|
10874 |
aix4* | aix5*)
|
|
|
10875 |
if test "$host_cpu" = ia64; then
|
|
|
10876 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
10877 |
# have to do anything special.
|
|
|
10878 |
aix_use_runtimelinking=no
|
|
|
10879 |
exp_sym_flag='-Bexport'
|
|
|
10880 |
no_entry_flag=""
|
|
|
10881 |
else
|
|
|
10882 |
aix_use_runtimelinking=no
|
|
|
10883 |
|
|
|
10884 |
# Test if we are trying to use run time linking or normal
|
|
|
10885 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
10886 |
# need to do runtime linking.
|
|
|
10887 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
|
|
10888 |
for ld_flag in $LDFLAGS; do
|
|
|
10889 |
case $ld_flag in
|
|
|
10890 |
*-brtl*)
|
|
|
10891 |
aix_use_runtimelinking=yes
|
|
|
10892 |
break
|
|
|
10893 |
;;
|
|
|
10894 |
esac
|
|
|
10895 |
done
|
|
|
10896 |
;;
|
|
|
10897 |
esac
|
|
|
10898 |
|
|
|
10899 |
exp_sym_flag='-bexport'
|
|
|
10900 |
no_entry_flag='-bnoentry'
|
|
|
10901 |
fi
|
|
|
10902 |
|
|
|
10903 |
# When large executables or shared objects are built, AIX ld can
|
|
|
10904 |
# have problems creating the table of contents. If linking a library
|
|
|
10905 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
10906 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
10907 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
10908 |
|
|
|
10909 |
archive_cmds_CXX=''
|
|
|
10910 |
hardcode_direct_CXX=yes
|
|
|
10911 |
hardcode_libdir_separator_CXX=':'
|
|
|
10912 |
link_all_deplibs_CXX=yes
|
|
|
10913 |
|
|
|
10914 |
if test "$GXX" = yes; then
|
|
|
10915 |
case $host_os in aix4.[012]|aix4.[012].*)
|
|
|
10916 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
10917 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
10918 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
10919 |
if test -f "$collect2name" && \
|
|
|
10920 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
|
10921 |
then
|
|
|
10922 |
# We have reworked collect2
|
|
|
10923 |
:
|
|
|
10924 |
else
|
|
|
10925 |
# We have old collect2
|
|
|
10926 |
hardcode_direct_CXX=unsupported
|
|
|
10927 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
10928 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
10929 |
# to unsupported forces relinking
|
|
|
10930 |
hardcode_minus_L_CXX=yes
|
|
|
10931 |
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
|
10932 |
hardcode_libdir_separator_CXX=
|
|
|
10933 |
fi
|
|
|
10934 |
;;
|
|
|
10935 |
esac
|
|
|
10936 |
shared_flag='-shared'
|
|
|
10937 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
10938 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
10939 |
fi
|
|
|
10940 |
else
|
|
|
10941 |
# not using gcc
|
|
|
10942 |
if test "$host_cpu" = ia64; then
|
|
|
10943 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
10944 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
10945 |
shared_flag='-G'
|
|
|
10946 |
else
|
|
|
10947 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
10948 |
shared_flag='${wl}-G'
|
|
|
10949 |
else
|
|
|
10950 |
shared_flag='${wl}-bM:SRE'
|
|
|
10951 |
fi
|
|
|
10952 |
fi
|
|
|
10953 |
fi
|
|
|
10954 |
|
|
|
10955 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
10956 |
# underscore (_), so it is better to generate a list of symbols to export.
|
|
|
10957 |
always_export_symbols_CXX=yes
|
|
|
10958 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
10959 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
10960 |
# -berok will link without error, but may produce a broken library.
|
|
|
10961 |
allow_undefined_flag_CXX='-berok'
|
|
|
10962 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
10963 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
10964 |
/* confdefs.h. */
|
|
|
10965 |
_ACEOF
|
|
|
10966 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
10967 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
10968 |
/* end confdefs.h. */
|
|
|
10969 |
|
|
|
10970 |
int
|
|
|
10971 |
main ()
|
|
|
10972 |
{
|
|
|
10973 |
|
|
|
10974 |
;
|
|
|
10975 |
return 0;
|
|
|
10976 |
}
|
|
|
10977 |
_ACEOF
|
|
|
10978 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
10979 |
if { (ac_try="$ac_link"
|
|
|
10980 |
case "(($ac_try" in
|
|
|
10981 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
10982 |
*) ac_try_echo=$ac_try;;
|
|
|
10983 |
esac
|
|
|
10984 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
10985 |
(eval "$ac_link") 2>conftest.er1
|
|
|
10986 |
ac_status=$?
|
|
|
10987 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
10988 |
rm -f conftest.er1
|
|
|
10989 |
cat conftest.err >&5
|
|
|
10990 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
10991 |
(exit $ac_status); } && {
|
|
|
10992 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
10993 |
test ! -s conftest.err
|
|
|
10994 |
} && test -s conftest$ac_exeext &&
|
|
|
10995 |
$as_test_x conftest$ac_exeext; then
|
|
|
10996 |
|
|
|
10997 |
lt_aix_libpath_sed='
|
|
|
10998 |
/Import File Strings/,/^$/ {
|
|
|
10999 |
/^0/ {
|
|
|
11000 |
s/^0 *\(.*\)$/\1/
|
|
|
11001 |
p
|
|
|
11002 |
}
|
|
|
11003 |
}'
|
|
|
11004 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
11005 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
11006 |
if test -z "$aix_libpath"; then
|
|
|
11007 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
11008 |
fi
|
|
|
11009 |
else
|
|
|
11010 |
echo "$as_me: failed program was:" >&5
|
|
|
11011 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
11012 |
|
|
|
11013 |
|
|
|
11014 |
fi
|
|
|
11015 |
|
|
|
11016 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
11017 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
11018 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
11019 |
|
|
|
11020 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
11021 |
|
|
|
11022 |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
11023 |
else
|
|
|
11024 |
if test "$host_cpu" = ia64; then
|
|
|
11025 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
11026 |
allow_undefined_flag_CXX="-z nodefs"
|
|
|
11027 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
|
|
11028 |
else
|
|
|
11029 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
11030 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
11031 |
/* confdefs.h. */
|
|
|
11032 |
_ACEOF
|
|
|
11033 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
11034 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
11035 |
/* end confdefs.h. */
|
|
|
11036 |
|
|
|
11037 |
int
|
|
|
11038 |
main ()
|
|
|
11039 |
{
|
|
|
11040 |
|
|
|
11041 |
;
|
|
|
11042 |
return 0;
|
|
|
11043 |
}
|
|
|
11044 |
_ACEOF
|
|
|
11045 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
11046 |
if { (ac_try="$ac_link"
|
|
|
11047 |
case "(($ac_try" in
|
|
|
11048 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
11049 |
*) ac_try_echo=$ac_try;;
|
|
|
11050 |
esac
|
|
|
11051 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
11052 |
(eval "$ac_link") 2>conftest.er1
|
|
|
11053 |
ac_status=$?
|
|
|
11054 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
11055 |
rm -f conftest.er1
|
|
|
11056 |
cat conftest.err >&5
|
|
|
11057 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
11058 |
(exit $ac_status); } && {
|
|
|
11059 |
test -z "$ac_cxx_werror_flag" ||
|
|
|
11060 |
test ! -s conftest.err
|
|
|
11061 |
} && test -s conftest$ac_exeext &&
|
|
|
11062 |
$as_test_x conftest$ac_exeext; then
|
|
|
11063 |
|
|
|
11064 |
lt_aix_libpath_sed='
|
|
|
11065 |
/Import File Strings/,/^$/ {
|
|
|
11066 |
/^0/ {
|
|
|
11067 |
s/^0 *\(.*\)$/\1/
|
|
|
11068 |
p
|
|
|
11069 |
}
|
|
|
11070 |
}'
|
|
|
11071 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
11072 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
11073 |
if test -z "$aix_libpath"; then
|
|
|
11074 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
11075 |
fi
|
|
|
11076 |
else
|
|
|
11077 |
echo "$as_me: failed program was:" >&5
|
|
|
11078 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
11079 |
|
|
|
11080 |
|
|
|
11081 |
fi
|
|
|
11082 |
|
|
|
11083 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
11084 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
11085 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
11086 |
|
|
|
11087 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
11088 |
# Warning - without using the other run time loading flags,
|
|
|
11089 |
# -berok will link without error, but may produce a broken library.
|
|
|
11090 |
no_undefined_flag_CXX=' ${wl}-bernotok'
|
|
|
11091 |
allow_undefined_flag_CXX=' ${wl}-berok'
|
|
|
11092 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
11093 |
whole_archive_flag_spec_CXX='$convenience'
|
|
|
11094 |
archive_cmds_need_lc_CXX=yes
|
|
|
11095 |
# This is similar to how AIX traditionally builds its shared libraries.
|
|
|
11096 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
|
11097 |
fi
|
|
|
11098 |
fi
|
|
|
11099 |
;;
|
|
|
11100 |
|
|
|
11101 |
beos*)
|
|
|
11102 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
11103 |
allow_undefined_flag_CXX=unsupported
|
|
|
11104 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
11105 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
11106 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
11107 |
else
|
|
|
11108 |
ld_shlibs_CXX=no
|
|
|
11109 |
fi
|
|
|
11110 |
;;
|
|
|
11111 |
|
|
|
11112 |
chorus*)
|
|
|
11113 |
case $cc_basename in
|
|
|
11114 |
*)
|
|
|
11115 |
# FIXME: insert proper C++ library support
|
|
|
11116 |
ld_shlibs_CXX=no
|
|
|
11117 |
;;
|
|
|
11118 |
esac
|
|
|
11119 |
;;
|
|
|
11120 |
|
|
|
11121 |
cygwin* | mingw* | pw32*)
|
|
|
11122 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
|
11123 |
# as there is no search path for DLLs.
|
|
|
11124 |
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
|
11125 |
allow_undefined_flag_CXX=unsupported
|
|
|
11126 |
always_export_symbols_CXX=no
|
|
|
11127 |
enable_shared_with_static_runtimes_CXX=yes
|
|
|
11128 |
|
|
|
11129 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
|
11130 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
11131 |
# If the export-symbols file already is a .def file (1st line
|
|
|
11132 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
11133 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
11134 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
11135 |
else
|
|
|
11136 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
11137 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
11138 |
fi~
|
|
|
11139 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
11140 |
else
|
|
|
11141 |
ld_shlibs_CXX=no
|
|
|
11142 |
fi
|
|
|
11143 |
;;
|
|
|
11144 |
darwin* | rhapsody*)
|
|
|
11145 |
case $host_os in
|
|
|
11146 |
rhapsody* | darwin1.[012])
|
|
|
11147 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
|
|
|
11148 |
;;
|
|
|
11149 |
*) # Darwin 1.3 on
|
|
|
11150 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
|
11151 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
11152 |
else
|
|
|
11153 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
|
11154 |
10.[012])
|
|
|
11155 |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
11156 |
;;
|
|
|
11157 |
10.*)
|
|
|
11158 |
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
|
|
|
11159 |
;;
|
|
|
11160 |
esac
|
|
|
11161 |
fi
|
|
|
11162 |
;;
|
|
|
11163 |
esac
|
|
|
11164 |
archive_cmds_need_lc_CXX=no
|
|
|
11165 |
hardcode_direct_CXX=no
|
|
|
11166 |
hardcode_automatic_CXX=yes
|
|
|
11167 |
hardcode_shlibpath_var_CXX=unsupported
|
|
|
11168 |
whole_archive_flag_spec_CXX=''
|
|
|
11169 |
link_all_deplibs_CXX=yes
|
|
|
11170 |
|
|
|
11171 |
if test "$GXX" = yes ; then
|
|
|
11172 |
lt_int_apple_cc_single_mod=no
|
|
|
11173 |
output_verbose_link_cmd='echo'
|
|
|
11174 |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
|
|
11175 |
lt_int_apple_cc_single_mod=yes
|
|
|
11176 |
fi
|
|
|
11177 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
|
|
11178 |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
|
11179 |
else
|
|
|
11180 |
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
|
11181 |
fi
|
|
|
11182 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
11183 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
11184 |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
|
|
11185 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
11186 |
else
|
|
|
11187 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
11188 |
fi
|
|
|
11189 |
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
11190 |
else
|
|
|
11191 |
case $cc_basename in
|
|
|
11192 |
xlc*)
|
|
|
11193 |
output_verbose_link_cmd='echo'
|
|
|
11194 |
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
|
11195 |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
11196 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
11197 |
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
11198 |
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
11199 |
;;
|
|
|
11200 |
*)
|
|
|
11201 |
ld_shlibs_CXX=no
|
|
|
11202 |
;;
|
|
|
11203 |
esac
|
|
|
11204 |
fi
|
|
|
11205 |
;;
|
|
|
11206 |
|
|
|
11207 |
dgux*)
|
|
|
11208 |
case $cc_basename in
|
|
|
11209 |
ec++*)
|
|
|
11210 |
# FIXME: insert proper C++ library support
|
|
|
11211 |
ld_shlibs_CXX=no
|
|
|
11212 |
;;
|
|
|
11213 |
ghcx*)
|
|
|
11214 |
# Green Hills C++ Compiler
|
|
|
11215 |
# FIXME: insert proper C++ library support
|
|
|
11216 |
ld_shlibs_CXX=no
|
|
|
11217 |
;;
|
|
|
11218 |
*)
|
|
|
11219 |
# FIXME: insert proper C++ library support
|
|
|
11220 |
ld_shlibs_CXX=no
|
|
|
11221 |
;;
|
|
|
11222 |
esac
|
|
|
11223 |
;;
|
|
|
11224 |
freebsd[12]*)
|
|
|
11225 |
# C++ shared libraries reported to be fairly broken before switch to ELF
|
|
|
11226 |
ld_shlibs_CXX=no
|
|
|
11227 |
;;
|
|
|
11228 |
freebsd-elf*)
|
|
|
11229 |
archive_cmds_need_lc_CXX=no
|
|
|
11230 |
;;
|
|
|
11231 |
freebsd* | dragonfly*)
|
|
|
11232 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
|
|
11233 |
# conventions
|
|
|
11234 |
ld_shlibs_CXX=yes
|
|
|
11235 |
;;
|
|
|
11236 |
gnu*)
|
|
|
11237 |
;;
|
|
|
11238 |
hpux9*)
|
|
|
11239 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
|
|
11240 |
hardcode_libdir_separator_CXX=:
|
|
|
11241 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
|
11242 |
hardcode_direct_CXX=yes
|
|
|
11243 |
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
|
|
11244 |
# but as the default
|
|
|
11245 |
# location of the library.
|
|
|
11246 |
|
|
|
11247 |
case $cc_basename in
|
|
|
11248 |
CC*)
|
|
|
11249 |
# FIXME: insert proper C++ library support
|
|
|
11250 |
ld_shlibs_CXX=no
|
|
|
11251 |
;;
|
|
|
11252 |
aCC*)
|
|
|
11253 |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
11254 |
# Commands to make compiler produce verbose output that lists
|
|
|
11255 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11256 |
# linking a shared library.
|
|
|
11257 |
#
|
|
|
11258 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11259 |
# explicitly linking system object files so we need to strip them
|
|
|
11260 |
# from the output so that they don't get included in the library
|
|
|
11261 |
# dependencies.
|
|
|
11262 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11263 |
;;
|
|
|
11264 |
*)
|
|
|
11265 |
if test "$GXX" = yes; then
|
|
|
11266 |
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
|
11267 |
else
|
|
|
11268 |
# FIXME: insert proper C++ library support
|
|
|
11269 |
ld_shlibs_CXX=no
|
|
|
11270 |
fi
|
|
|
11271 |
;;
|
|
|
11272 |
esac
|
|
|
11273 |
;;
|
|
|
11274 |
hpux10*|hpux11*)
|
|
|
11275 |
if test $with_gnu_ld = no; then
|
|
|
11276 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
|
|
11277 |
hardcode_libdir_separator_CXX=:
|
|
|
11278 |
|
|
|
11279 |
case $host_cpu in
|
|
|
11280 |
hppa*64*|ia64*) ;;
|
|
|
11281 |
*)
|
|
|
11282 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
|
11283 |
;;
|
|
|
11284 |
esac
|
|
|
11285 |
fi
|
|
|
11286 |
case $host_cpu in
|
|
|
11287 |
hppa*64*|ia64*)
|
|
|
11288 |
hardcode_direct_CXX=no
|
|
|
11289 |
hardcode_shlibpath_var_CXX=no
|
|
|
11290 |
;;
|
|
|
11291 |
*)
|
|
|
11292 |
hardcode_direct_CXX=yes
|
|
|
11293 |
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
|
|
11294 |
# but as the default
|
|
|
11295 |
# location of the library.
|
|
|
11296 |
;;
|
|
|
11297 |
esac
|
|
|
11298 |
|
|
|
11299 |
case $cc_basename in
|
|
|
11300 |
CC*)
|
|
|
11301 |
# FIXME: insert proper C++ library support
|
|
|
11302 |
ld_shlibs_CXX=no
|
|
|
11303 |
;;
|
|
|
11304 |
aCC*)
|
|
|
11305 |
case $host_cpu in
|
|
|
11306 |
hppa*64*)
|
|
|
11307 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11308 |
;;
|
|
|
11309 |
ia64*)
|
|
|
11310 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11311 |
;;
|
|
|
11312 |
*)
|
|
|
11313 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11314 |
;;
|
|
|
11315 |
esac
|
|
|
11316 |
# Commands to make compiler produce verbose output that lists
|
|
|
11317 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11318 |
# linking a shared library.
|
|
|
11319 |
#
|
|
|
11320 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11321 |
# explicitly linking system object files so we need to strip them
|
|
|
11322 |
# from the output so that they don't get included in the library
|
|
|
11323 |
# dependencies.
|
|
|
11324 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11325 |
;;
|
|
|
11326 |
*)
|
|
|
11327 |
if test "$GXX" = yes; then
|
|
|
11328 |
if test $with_gnu_ld = no; then
|
|
|
11329 |
case $host_cpu in
|
|
|
11330 |
hppa*64*)
|
|
|
11331 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11332 |
;;
|
|
|
11333 |
ia64*)
|
|
|
11334 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11335 |
;;
|
|
|
11336 |
*)
|
|
|
11337 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11338 |
;;
|
|
|
11339 |
esac
|
|
|
11340 |
fi
|
|
|
11341 |
else
|
|
|
11342 |
# FIXME: insert proper C++ library support
|
|
|
11343 |
ld_shlibs_CXX=no
|
|
|
11344 |
fi
|
|
|
11345 |
;;
|
|
|
11346 |
esac
|
|
|
11347 |
;;
|
|
|
11348 |
interix[3-9]*)
|
|
|
11349 |
hardcode_direct_CXX=no
|
|
|
11350 |
hardcode_shlibpath_var_CXX=no
|
|
|
11351 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
|
11352 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
|
11353 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
11354 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
11355 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
11356 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
11357 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
11358 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
11359 |
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
11360 |
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
11361 |
;;
|
|
|
11362 |
irix5* | irix6*)
|
|
|
11363 |
case $cc_basename in
|
|
|
11364 |
CC*)
|
|
|
11365 |
# SGI C++
|
|
|
11366 |
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
11367 |
|
|
|
11368 |
# Archives containing C++ object files must be created using
|
|
|
11369 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
|
|
11370 |
# necessary to make sure instantiated templates are included
|
|
|
11371 |
# in the archive.
|
|
|
11372 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
|
|
11373 |
;;
|
|
|
11374 |
*)
|
|
|
11375 |
if test "$GXX" = yes; then
|
|
|
11376 |
if test "$with_gnu_ld" = no; then
|
|
|
11377 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
11378 |
else
|
|
|
11379 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
|
|
|
11380 |
fi
|
|
|
11381 |
fi
|
|
|
11382 |
link_all_deplibs_CXX=yes
|
|
|
11383 |
;;
|
|
|
11384 |
esac
|
|
|
11385 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
|
|
11386 |
hardcode_libdir_separator_CXX=:
|
|
|
11387 |
;;
|
|
|
11388 |
linux* | k*bsd*-gnu)
|
|
|
11389 |
case $cc_basename in
|
|
|
11390 |
KCC*)
|
|
|
11391 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
|
11392 |
|
|
|
11393 |
# KCC will only create a shared library if the output file
|
|
|
11394 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
|
11395 |
# to its proper name (with version) after linking.
|
|
|
11396 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
|
|
11397 |
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
|
|
|
11398 |
# Commands to make compiler produce verbose output that lists
|
|
|
11399 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11400 |
# linking a shared library.
|
|
|
11401 |
#
|
|
|
11402 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11403 |
# explicitly linking system object files so we need to strip them
|
|
|
11404 |
# from the output so that they don't get included in the library
|
|
|
11405 |
# dependencies.
|
|
|
11406 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11407 |
|
|
|
11408 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
|
|
|
11409 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
|
|
11410 |
|
|
|
11411 |
# Archives containing C++ object files must be created using
|
|
|
11412 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|
|
11413 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
|
|
11414 |
;;
|
|
|
11415 |
icpc*)
|
|
|
11416 |
# Intel C++
|
|
|
11417 |
with_gnu_ld=yes
|
|
|
11418 |
# version 8.0 and above of icpc choke on multiply defined symbols
|
|
|
11419 |
# if we add $predep_objects and $postdep_objects, however 7.1 and
|
|
|
11420 |
# earlier do not add the objects themselves.
|
|
|
11421 |
case `$CC -V 2>&1` in
|
|
|
11422 |
*"Version 7."*)
|
|
|
11423 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
11424 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
11425 |
;;
|
|
|
11426 |
*) # Version 8.0 or newer
|
|
|
11427 |
tmp_idyn=
|
|
|
11428 |
case $host_cpu in
|
|
|
11429 |
ia64*) tmp_idyn=' -i_dynamic';;
|
|
|
11430 |
esac
|
|
|
11431 |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
11432 |
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
11433 |
;;
|
|
|
11434 |
esac
|
|
|
11435 |
archive_cmds_need_lc_CXX=no
|
|
|
11436 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
|
11437 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
|
|
11438 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
|
|
11439 |
;;
|
|
|
11440 |
pgCC*)
|
|
|
11441 |
# Portland Group C++ compiler
|
|
|
11442 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
|
|
11443 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
|
|
11444 |
|
|
|
11445 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
|
|
11446 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
|
|
11447 |
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
11448 |
;;
|
|
|
11449 |
cxx*)
|
|
|
11450 |
# Compaq C++
|
|
|
11451 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
11452 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
|
|
11453 |
|
|
|
11454 |
runpath_var=LD_RUN_PATH
|
|
|
11455 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
|
|
11456 |
hardcode_libdir_separator_CXX=:
|
|
|
11457 |
|
|
|
11458 |
# Commands to make compiler produce verbose output that lists
|
|
|
11459 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11460 |
# linking a shared library.
|
|
|
11461 |
#
|
|
|
11462 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11463 |
# explicitly linking system object files so we need to strip them
|
|
|
11464 |
# from the output so that they don't get included in the library
|
|
|
11465 |
# dependencies.
|
|
|
11466 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11467 |
;;
|
|
|
11468 |
*)
|
|
|
11469 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
11470 |
*Sun\ C*)
|
|
|
11471 |
# Sun C++ 5.9
|
|
|
11472 |
no_undefined_flag_CXX=' -zdefs'
|
|
|
11473 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11474 |
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
|
|
|
11475 |
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
|
|
11476 |
whole_archive_flag_spec_CXX='${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'
|
|
|
11477 |
|
|
|
11478 |
# Not sure whether something based on
|
|
|
11479 |
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
|
|
|
11480 |
# would be better.
|
|
|
11481 |
output_verbose_link_cmd='echo'
|
|
|
11482 |
|
|
|
11483 |
# Archives containing C++ object files must be created using
|
|
|
11484 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
|
11485 |
# necessary to make sure instantiated templates are included
|
|
|
11486 |
# in the archive.
|
|
|
11487 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
|
|
11488 |
;;
|
|
|
11489 |
esac
|
|
|
11490 |
;;
|
|
|
11491 |
esac
|
|
|
11492 |
;;
|
|
|
11493 |
lynxos*)
|
|
|
11494 |
# FIXME: insert proper C++ library support
|
|
|
11495 |
ld_shlibs_CXX=no
|
|
|
11496 |
;;
|
|
|
11497 |
m88k*)
|
|
|
11498 |
# FIXME: insert proper C++ library support
|
|
|
11499 |
ld_shlibs_CXX=no
|
|
|
11500 |
;;
|
|
|
11501 |
mvs*)
|
|
|
11502 |
case $cc_basename in
|
|
|
11503 |
cxx*)
|
|
|
11504 |
# FIXME: insert proper C++ library support
|
|
|
11505 |
ld_shlibs_CXX=no
|
|
|
11506 |
;;
|
|
|
11507 |
*)
|
|
|
11508 |
# FIXME: insert proper C++ library support
|
|
|
11509 |
ld_shlibs_CXX=no
|
|
|
11510 |
;;
|
|
|
11511 |
esac
|
|
|
11512 |
;;
|
|
|
11513 |
netbsd* | netbsdelf*-gnu)
|
|
|
11514 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
11515 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
|
|
11516 |
wlarc=
|
|
|
11517 |
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
|
|
11518 |
hardcode_direct_CXX=yes
|
|
|
11519 |
hardcode_shlibpath_var_CXX=no
|
|
|
11520 |
fi
|
|
|
11521 |
# Workaround some broken pre-1.5 toolchains
|
|
|
11522 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
|
|
11523 |
;;
|
|
|
11524 |
openbsd2*)
|
|
|
11525 |
# C++ shared libraries are fairly broken
|
|
|
11526 |
ld_shlibs_CXX=no
|
|
|
11527 |
;;
|
|
|
11528 |
openbsd*)
|
|
|
11529 |
if test -f /usr/libexec/ld.so; then
|
|
|
11530 |
hardcode_direct_CXX=yes
|
|
|
11531 |
hardcode_shlibpath_var_CXX=no
|
|
|
11532 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
|
11533 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
|
11534 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
11535 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
|
|
11536 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
|
11537 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
11538 |
fi
|
|
|
11539 |
output_verbose_link_cmd='echo'
|
|
|
11540 |
else
|
|
|
11541 |
ld_shlibs_CXX=no
|
|
|
11542 |
fi
|
|
|
11543 |
;;
|
|
|
11544 |
osf3*)
|
|
|
11545 |
case $cc_basename in
|
|
|
11546 |
KCC*)
|
|
|
11547 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
|
11548 |
|
|
|
11549 |
# KCC will only create a shared library if the output file
|
|
|
11550 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
|
11551 |
# to its proper name (with version) after linking.
|
|
|
11552 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
|
|
11553 |
|
|
|
11554 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
|
11555 |
hardcode_libdir_separator_CXX=:
|
|
|
11556 |
|
|
|
11557 |
# Archives containing C++ object files must be created using
|
|
|
11558 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
|
|
11559 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
|
|
|
11560 |
|
|
|
11561 |
;;
|
|
|
11562 |
RCC*)
|
|
|
11563 |
# Rational C++ 2.4.1
|
|
|
11564 |
# FIXME: insert proper C++ library support
|
|
|
11565 |
ld_shlibs_CXX=no
|
|
|
11566 |
;;
|
|
|
11567 |
cxx*)
|
|
|
11568 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
11569 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
11570 |
|
|
|
11571 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
|
|
11572 |
hardcode_libdir_separator_CXX=:
|
|
|
11573 |
|
|
|
11574 |
# Commands to make compiler produce verbose output that lists
|
|
|
11575 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11576 |
# linking a shared library.
|
|
|
11577 |
#
|
|
|
11578 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11579 |
# explicitly linking system object files so we need to strip them
|
|
|
11580 |
# from the output so that they don't get included in the library
|
|
|
11581 |
# dependencies.
|
|
|
11582 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11583 |
;;
|
|
|
11584 |
*)
|
|
|
11585 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
|
11586 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
11587 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
11588 |
|
|
|
11589 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
|
|
11590 |
hardcode_libdir_separator_CXX=:
|
|
|
11591 |
|
|
|
11592 |
# Commands to make compiler produce verbose output that lists
|
|
|
11593 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11594 |
# linking a shared library.
|
|
|
11595 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|
|
11596 |
|
|
|
11597 |
else
|
|
|
11598 |
# FIXME: insert proper C++ library support
|
|
|
11599 |
ld_shlibs_CXX=no
|
|
|
11600 |
fi
|
|
|
11601 |
;;
|
|
|
11602 |
esac
|
|
|
11603 |
;;
|
|
|
11604 |
osf4* | osf5*)
|
|
|
11605 |
case $cc_basename in
|
|
|
11606 |
KCC*)
|
|
|
11607 |
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
|
11608 |
|
|
|
11609 |
# KCC will only create a shared library if the output file
|
|
|
11610 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library
|
|
|
11611 |
# to its proper name (with version) after linking.
|
|
|
11612 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
|
|
11613 |
|
|
|
11614 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
|
11615 |
hardcode_libdir_separator_CXX=:
|
|
|
11616 |
|
|
|
11617 |
# Archives containing C++ object files must be created using
|
|
|
11618 |
# the KAI C++ compiler.
|
|
|
11619 |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
|
|
|
11620 |
;;
|
|
|
11621 |
RCC*)
|
|
|
11622 |
# Rational C++ 2.4.1
|
|
|
11623 |
# FIXME: insert proper C++ library support
|
|
|
11624 |
ld_shlibs_CXX=no
|
|
|
11625 |
;;
|
|
|
11626 |
cxx*)
|
|
|
11627 |
allow_undefined_flag_CXX=' -expect_unresolved \*'
|
|
|
11628 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
11629 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
|
|
11630 |
echo "-hidden">> $lib.exp~
|
|
|
11631 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
|
|
|
11632 |
$rm $lib.exp'
|
|
|
11633 |
|
|
|
11634 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
|
|
|
11635 |
hardcode_libdir_separator_CXX=:
|
|
|
11636 |
|
|
|
11637 |
# Commands to make compiler produce verbose output that lists
|
|
|
11638 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11639 |
# linking a shared library.
|
|
|
11640 |
#
|
|
|
11641 |
# There doesn't appear to be a way to prevent this compiler from
|
|
|
11642 |
# explicitly linking system object files so we need to strip them
|
|
|
11643 |
# from the output so that they don't get included in the library
|
|
|
11644 |
# dependencies.
|
|
|
11645 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
11646 |
;;
|
|
|
11647 |
*)
|
|
|
11648 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
|
11649 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
11650 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
11651 |
|
|
|
11652 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
|
|
|
11653 |
hardcode_libdir_separator_CXX=:
|
|
|
11654 |
|
|
|
11655 |
# Commands to make compiler produce verbose output that lists
|
|
|
11656 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11657 |
# linking a shared library.
|
|
|
11658 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
|
|
11659 |
|
|
|
11660 |
else
|
|
|
11661 |
# FIXME: insert proper C++ library support
|
|
|
11662 |
ld_shlibs_CXX=no
|
|
|
11663 |
fi
|
|
|
11664 |
;;
|
|
|
11665 |
esac
|
|
|
11666 |
;;
|
|
|
11667 |
psos*)
|
|
|
11668 |
# FIXME: insert proper C++ library support
|
|
|
11669 |
ld_shlibs_CXX=no
|
|
|
11670 |
;;
|
|
|
11671 |
sunos4*)
|
|
|
11672 |
case $cc_basename in
|
|
|
11673 |
CC*)
|
|
|
11674 |
# Sun C++ 4.x
|
|
|
11675 |
# FIXME: insert proper C++ library support
|
|
|
11676 |
ld_shlibs_CXX=no
|
|
|
11677 |
;;
|
|
|
11678 |
lcc*)
|
|
|
11679 |
# Lucid
|
|
|
11680 |
# FIXME: insert proper C++ library support
|
|
|
11681 |
ld_shlibs_CXX=no
|
|
|
11682 |
;;
|
|
|
11683 |
*)
|
|
|
11684 |
# FIXME: insert proper C++ library support
|
|
|
11685 |
ld_shlibs_CXX=no
|
|
|
11686 |
;;
|
|
|
11687 |
esac
|
|
|
11688 |
;;
|
|
|
11689 |
solaris*)
|
|
|
11690 |
case $cc_basename in
|
|
|
11691 |
CC*)
|
|
|
11692 |
# Sun C++ 4.2, 5.x and Centerline C++
|
|
|
11693 |
archive_cmds_need_lc_CXX=yes
|
|
|
11694 |
no_undefined_flag_CXX=' -zdefs'
|
|
|
11695 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
|
11696 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
11697 |
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|
|
11698 |
|
|
|
11699 |
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
|
|
11700 |
hardcode_shlibpath_var_CXX=no
|
|
|
11701 |
case $host_os in
|
|
|
11702 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
|
11703 |
*)
|
|
|
11704 |
# The compiler driver will combine and reorder linker options,
|
|
|
11705 |
# but understands `-z linker_flag'.
|
|
|
11706 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
11707 |
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
|
|
|
11708 |
;;
|
|
|
11709 |
esac
|
|
|
11710 |
link_all_deplibs_CXX=yes
|
|
|
11711 |
|
|
|
11712 |
output_verbose_link_cmd='echo'
|
|
|
11713 |
|
|
|
11714 |
# Archives containing C++ object files must be created using
|
|
|
11715 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
|
11716 |
# necessary to make sure instantiated templates are included
|
|
|
11717 |
# in the archive.
|
|
|
11718 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
|
|
|
11719 |
;;
|
|
|
11720 |
gcx*)
|
|
|
11721 |
# Green Hills C++ Compiler
|
|
|
11722 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
11723 |
|
|
|
11724 |
# The C++ compiler must be used to create the archive.
|
|
|
11725 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
|
|
11726 |
;;
|
|
|
11727 |
*)
|
|
|
11728 |
# GNU C++ compiler with Solaris linker
|
|
|
11729 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
|
11730 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
|
|
11731 |
if $CC --version | grep -v '^2\.7' > /dev/null; then
|
|
|
11732 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
11733 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
11734 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|
|
11735 |
|
|
|
11736 |
# Commands to make compiler produce verbose output that lists
|
|
|
11737 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11738 |
# linking a shared library.
|
|
|
11739 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
|
|
11740 |
else
|
|
|
11741 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this
|
|
|
11742 |
# platform.
|
|
|
11743 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
|
11744 |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
11745 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|
|
11746 |
|
|
|
11747 |
# Commands to make compiler produce verbose output that lists
|
|
|
11748 |
# what "hidden" libraries, object files and flags are used when
|
|
|
11749 |
# linking a shared library.
|
|
|
11750 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
|
|
11751 |
fi
|
|
|
11752 |
|
|
|
11753 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
|
|
|
11754 |
case $host_os in
|
|
|
11755 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
|
11756 |
*)
|
|
|
11757 |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
11758 |
;;
|
|
|
11759 |
esac
|
|
|
11760 |
fi
|
|
|
11761 |
;;
|
|
|
11762 |
esac
|
|
|
11763 |
;;
|
|
|
11764 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
|
11765 |
no_undefined_flag_CXX='${wl}-z,text'
|
|
|
11766 |
archive_cmds_need_lc_CXX=no
|
|
|
11767 |
hardcode_shlibpath_var_CXX=no
|
|
|
11768 |
runpath_var='LD_RUN_PATH'
|
|
|
11769 |
|
|
|
11770 |
case $cc_basename in
|
|
|
11771 |
CC*)
|
|
|
11772 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11773 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11774 |
;;
|
|
|
11775 |
*)
|
|
|
11776 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11777 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11778 |
;;
|
|
|
11779 |
esac
|
|
|
11780 |
;;
|
|
|
11781 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
11782 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
11783 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
11784 |
# always be unresolved, which means just about no library would
|
|
|
11785 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
11786 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
11787 |
# as -z defs.
|
|
|
11788 |
# For security reasons, it is highly recommended that you always
|
|
|
11789 |
# use absolute paths for naming shared libraries, and exclude the
|
|
|
11790 |
# DT_RUNPATH tag from executables and libraries. But doing so
|
|
|
11791 |
# requires that you compile everything twice, which is a pain.
|
|
|
11792 |
# So that behaviour is only enabled if SCOABSPATH is set to a
|
|
|
11793 |
# non-empty value in the environment. Most likely only useful for
|
|
|
11794 |
# creating official distributions of packages.
|
|
|
11795 |
# This is a hack until libtool officially supports absolute path
|
|
|
11796 |
# names for shared libraries.
|
|
|
11797 |
no_undefined_flag_CXX='${wl}-z,text'
|
|
|
11798 |
allow_undefined_flag_CXX='${wl}-z,nodefs'
|
|
|
11799 |
archive_cmds_need_lc_CXX=no
|
|
|
11800 |
hardcode_shlibpath_var_CXX=no
|
|
|
11801 |
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
|
11802 |
hardcode_libdir_separator_CXX=':'
|
|
|
11803 |
link_all_deplibs_CXX=yes
|
|
|
11804 |
export_dynamic_flag_spec_CXX='${wl}-Bexport'
|
|
|
11805 |
runpath_var='LD_RUN_PATH'
|
|
|
11806 |
|
|
|
11807 |
case $cc_basename in
|
|
|
11808 |
CC*)
|
|
|
11809 |
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11810 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11811 |
;;
|
|
|
11812 |
*)
|
|
|
11813 |
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11814 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
11815 |
;;
|
|
|
11816 |
esac
|
|
|
11817 |
;;
|
|
|
11818 |
tandem*)
|
|
|
11819 |
case $cc_basename in
|
|
|
11820 |
NCC*)
|
|
|
11821 |
# NonStop-UX NCC 3.20
|
|
|
11822 |
# FIXME: insert proper C++ library support
|
|
|
11823 |
ld_shlibs_CXX=no
|
|
|
11824 |
;;
|
|
|
11825 |
*)
|
|
|
11826 |
# FIXME: insert proper C++ library support
|
|
|
11827 |
ld_shlibs_CXX=no
|
|
|
11828 |
;;
|
|
|
11829 |
esac
|
|
|
11830 |
;;
|
|
|
11831 |
vxworks*)
|
|
|
11832 |
# FIXME: insert proper C++ library support
|
|
|
11833 |
ld_shlibs_CXX=no
|
|
|
11834 |
;;
|
|
|
11835 |
*)
|
|
|
11836 |
# FIXME: insert proper C++ library support
|
|
|
11837 |
ld_shlibs_CXX=no
|
|
|
11838 |
;;
|
|
|
11839 |
esac
|
|
|
11840 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
|
|
11841 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
|
|
11842 |
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
|
|
11843 |
|
|
|
11844 |
GCC_CXX="$GXX"
|
|
|
11845 |
LD_CXX="$LD"
|
|
|
11846 |
|
|
|
11847 |
|
|
|
11848 |
cat > conftest.$ac_ext <<EOF
|
|
|
11849 |
class Foo
|
|
|
11850 |
{
|
|
|
11851 |
public:
|
|
|
11852 |
Foo (void) { a = 0; }
|
|
|
11853 |
private:
|
|
|
11854 |
int a;
|
|
|
11855 |
};
|
|
|
11856 |
EOF
|
|
|
11857 |
|
|
|
11858 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
11859 |
(eval $ac_compile) 2>&5
|
|
|
11860 |
ac_status=$?
|
|
|
11861 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
11862 |
(exit $ac_status); }; then
|
|
|
11863 |
# Parse the compiler output and extract the necessary
|
|
|
11864 |
# objects, libraries and library flags.
|
|
|
11865 |
|
|
|
11866 |
# Sentinel used to keep track of whether or not we are before
|
|
|
11867 |
# the conftest object file.
|
|
|
11868 |
pre_test_object_deps_done=no
|
|
|
11869 |
|
|
|
11870 |
# The `*' in the case matches for architectures that use `case' in
|
|
|
11871 |
# $output_verbose_cmd can trigger glob expansion during the loop
|
|
|
11872 |
# eval without this substitution.
|
|
|
11873 |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
|
|
11874 |
|
|
|
11875 |
for p in `eval $output_verbose_link_cmd`; do
|
|
|
11876 |
case $p in
|
|
|
11877 |
|
|
|
11878 |
-L* | -R* | -l*)
|
|
|
11879 |
# Some compilers place space between "-{L,R}" and the path.
|
|
|
11880 |
# Remove the space.
|
|
|
11881 |
if test $p = "-L" \
|
|
|
11882 |
|| test $p = "-R"; then
|
|
|
11883 |
prev=$p
|
|
|
11884 |
continue
|
|
|
11885 |
else
|
|
|
11886 |
prev=
|
|
|
11887 |
fi
|
|
|
11888 |
|
|
|
11889 |
if test "$pre_test_object_deps_done" = no; then
|
|
|
11890 |
case $p in
|
|
|
11891 |
-L* | -R*)
|
|
|
11892 |
# Internal compiler library paths should come after those
|
|
|
11893 |
# provided the user. The postdeps already come after the
|
|
|
11894 |
# user supplied libs so there is no need to process them.
|
|
|
11895 |
if test -z "$compiler_lib_search_path_CXX"; then
|
|
|
11896 |
compiler_lib_search_path_CXX="${prev}${p}"
|
|
|
11897 |
else
|
|
|
11898 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
|
|
|
11899 |
fi
|
|
|
11900 |
;;
|
|
|
11901 |
# The "-l" case would never come before the object being
|
|
|
11902 |
# linked, so don't bother handling this case.
|
|
|
11903 |
esac
|
|
|
11904 |
else
|
|
|
11905 |
if test -z "$postdeps_CXX"; then
|
|
|
11906 |
postdeps_CXX="${prev}${p}"
|
|
|
11907 |
else
|
|
|
11908 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
|
|
11909 |
fi
|
|
|
11910 |
fi
|
|
|
11911 |
;;
|
|
|
11912 |
|
|
|
11913 |
*.$objext)
|
|
|
11914 |
# This assumes that the test object file only shows up
|
|
|
11915 |
# once in the compiler output.
|
|
|
11916 |
if test "$p" = "conftest.$objext"; then
|
|
|
11917 |
pre_test_object_deps_done=yes
|
|
|
11918 |
continue
|
|
|
11919 |
fi
|
|
|
11920 |
|
|
|
11921 |
if test "$pre_test_object_deps_done" = no; then
|
|
|
11922 |
if test -z "$predep_objects_CXX"; then
|
|
|
11923 |
predep_objects_CXX="$p"
|
|
|
11924 |
else
|
|
|
11925 |
predep_objects_CXX="$predep_objects_CXX $p"
|
|
|
11926 |
fi
|
|
|
11927 |
else
|
|
|
11928 |
if test -z "$postdep_objects_CXX"; then
|
|
|
11929 |
postdep_objects_CXX="$p"
|
|
|
11930 |
else
|
|
|
11931 |
postdep_objects_CXX="$postdep_objects_CXX $p"
|
|
|
11932 |
fi
|
|
|
11933 |
fi
|
|
|
11934 |
;;
|
|
|
11935 |
|
|
|
11936 |
*) ;; # Ignore the rest.
|
|
|
11937 |
|
|
|
11938 |
esac
|
|
|
11939 |
done
|
|
|
11940 |
|
|
|
11941 |
# Clean up.
|
|
|
11942 |
rm -f a.out a.exe
|
|
|
11943 |
else
|
|
|
11944 |
echo "libtool.m4: error: problem compiling CXX test program"
|
|
|
11945 |
fi
|
|
|
11946 |
|
|
|
11947 |
$rm -f confest.$objext
|
|
|
11948 |
|
|
|
11949 |
# PORTME: override above test on systems where it is broken
|
|
|
11950 |
case $host_os in
|
|
|
11951 |
interix[3-9]*)
|
|
|
11952 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
|
11953 |
# hack all around it, let's just trust "g++" to DTRT.
|
|
|
11954 |
predep_objects_CXX=
|
|
|
11955 |
postdep_objects_CXX=
|
|
|
11956 |
postdeps_CXX=
|
|
|
11957 |
;;
|
|
|
11958 |
|
|
|
11959 |
linux*)
|
|
|
11960 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
11961 |
*Sun\ C*)
|
|
|
11962 |
# Sun C++ 5.9
|
|
|
11963 |
#
|
|
|
11964 |
# The more standards-conforming stlport4 library is
|
|
|
11965 |
# incompatible with the Cstd library. Avoid specifying
|
|
|
11966 |
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
|
11967 |
# -library=stlport4 depends on it.
|
|
|
11968 |
case " $CXX $CXXFLAGS " in
|
|
|
11969 |
*" -library=stlport4 "*)
|
|
|
11970 |
solaris_use_stlport4=yes
|
|
|
11971 |
;;
|
|
|
11972 |
esac
|
|
|
11973 |
if test "$solaris_use_stlport4" != yes; then
|
|
|
11974 |
postdeps_CXX='-library=Cstd -library=Crun'
|
|
|
11975 |
fi
|
|
|
11976 |
;;
|
|
|
11977 |
esac
|
|
|
11978 |
;;
|
|
|
11979 |
|
|
|
11980 |
solaris*)
|
|
|
11981 |
case $cc_basename in
|
|
|
11982 |
CC*)
|
|
|
11983 |
# The more standards-conforming stlport4 library is
|
|
|
11984 |
# incompatible with the Cstd library. Avoid specifying
|
|
|
11985 |
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
|
11986 |
# -library=stlport4 depends on it.
|
|
|
11987 |
case " $CXX $CXXFLAGS " in
|
|
|
11988 |
*" -library=stlport4 "*)
|
|
|
11989 |
solaris_use_stlport4=yes
|
|
|
11990 |
;;
|
|
|
11991 |
esac
|
|
|
11992 |
|
|
|
11993 |
# Adding this requires a known-good setup of shared libraries for
|
|
|
11994 |
# Sun compiler versions before 5.6, else PIC objects from an old
|
|
|
11995 |
# archive will be linked into the output, leading to subtle bugs.
|
|
|
11996 |
if test "$solaris_use_stlport4" != yes; then
|
|
|
11997 |
postdeps_CXX='-library=Cstd -library=Crun'
|
|
|
11998 |
fi
|
|
|
11999 |
;;
|
|
|
12000 |
esac
|
|
|
12001 |
;;
|
|
|
12002 |
esac
|
|
|
12003 |
|
|
|
12004 |
|
|
|
12005 |
case " $postdeps_CXX " in
|
|
|
12006 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
|
|
|
12007 |
esac
|
|
|
12008 |
|
|
|
12009 |
lt_prog_compiler_wl_CXX=
|
|
|
12010 |
lt_prog_compiler_pic_CXX=
|
|
|
12011 |
lt_prog_compiler_static_CXX=
|
|
|
12012 |
|
|
|
12013 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
|
|
12014 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
|
|
12015 |
|
|
|
12016 |
# C++ specific cases for pic, static, wl, etc.
|
|
|
12017 |
if test "$GXX" = yes; then
|
|
|
12018 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12019 |
lt_prog_compiler_static_CXX='-static'
|
|
|
12020 |
|
|
|
12021 |
case $host_os in
|
|
|
12022 |
aix*)
|
|
|
12023 |
# All AIX code is PIC.
|
|
|
12024 |
if test "$host_cpu" = ia64; then
|
|
|
12025 |
# AIX 5 now supports IA64 processor
|
|
|
12026 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12027 |
fi
|
|
|
12028 |
;;
|
|
|
12029 |
amigaos*)
|
|
|
12030 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
12031 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
12032 |
# like `-m68040'.
|
|
|
12033 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
|
|
|
12034 |
;;
|
|
|
12035 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
12036 |
# PIC is the default for these OSes.
|
|
|
12037 |
;;
|
|
|
12038 |
mingw* | cygwin* | os2* | pw32*)
|
|
|
12039 |
# This hack is so that the source file can tell whether it is being
|
|
|
12040 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
12041 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
12042 |
# (--disable-auto-import) libraries
|
|
|
12043 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
|
|
12044 |
;;
|
|
|
12045 |
darwin* | rhapsody*)
|
|
|
12046 |
# PIC is the default on this platform
|
|
|
12047 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
12048 |
lt_prog_compiler_pic_CXX='-fno-common'
|
|
|
12049 |
;;
|
|
|
12050 |
*djgpp*)
|
|
|
12051 |
# DJGPP does not support shared libraries at all
|
|
|
12052 |
lt_prog_compiler_pic_CXX=
|
|
|
12053 |
;;
|
|
|
12054 |
interix[3-9]*)
|
|
|
12055 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
12056 |
# Instead, we relocate shared libraries at runtime.
|
|
|
12057 |
;;
|
|
|
12058 |
sysv4*MP*)
|
|
|
12059 |
if test -d /usr/nec; then
|
|
|
12060 |
lt_prog_compiler_pic_CXX=-Kconform_pic
|
|
|
12061 |
fi
|
|
|
12062 |
;;
|
|
|
12063 |
hpux*)
|
|
|
12064 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
12065 |
# not for PA HP-UX.
|
|
|
12066 |
case $host_cpu in
|
|
|
12067 |
hppa*64*|ia64*)
|
|
|
12068 |
;;
|
|
|
12069 |
*)
|
|
|
12070 |
lt_prog_compiler_pic_CXX='-fPIC'
|
|
|
12071 |
;;
|
|
|
12072 |
esac
|
|
|
12073 |
;;
|
|
|
12074 |
*)
|
|
|
12075 |
lt_prog_compiler_pic_CXX='-fPIC'
|
|
|
12076 |
;;
|
|
|
12077 |
esac
|
|
|
12078 |
else
|
|
|
12079 |
case $host_os in
|
|
|
12080 |
aix4* | aix5*)
|
|
|
12081 |
# All AIX code is PIC.
|
|
|
12082 |
if test "$host_cpu" = ia64; then
|
|
|
12083 |
# AIX 5 now supports IA64 processor
|
|
|
12084 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12085 |
else
|
|
|
12086 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
|
|
|
12087 |
fi
|
|
|
12088 |
;;
|
|
|
12089 |
chorus*)
|
|
|
12090 |
case $cc_basename in
|
|
|
12091 |
cxch68*)
|
|
|
12092 |
# Green Hills C++ Compiler
|
|
|
12093 |
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
|
|
12094 |
;;
|
|
|
12095 |
esac
|
|
|
12096 |
;;
|
|
|
12097 |
darwin*)
|
|
|
12098 |
# PIC is the default on this platform
|
|
|
12099 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
12100 |
case $cc_basename in
|
|
|
12101 |
xlc*)
|
|
|
12102 |
lt_prog_compiler_pic_CXX='-qnocommon'
|
|
|
12103 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12104 |
;;
|
|
|
12105 |
esac
|
|
|
12106 |
;;
|
|
|
12107 |
dgux*)
|
|
|
12108 |
case $cc_basename in
|
|
|
12109 |
ec++*)
|
|
|
12110 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12111 |
;;
|
|
|
12112 |
ghcx*)
|
|
|
12113 |
# Green Hills C++ Compiler
|
|
|
12114 |
lt_prog_compiler_pic_CXX='-pic'
|
|
|
12115 |
;;
|
|
|
12116 |
*)
|
|
|
12117 |
;;
|
|
|
12118 |
esac
|
|
|
12119 |
;;
|
|
|
12120 |
freebsd* | dragonfly*)
|
|
|
12121 |
# FreeBSD uses GNU C++
|
|
|
12122 |
;;
|
|
|
12123 |
hpux9* | hpux10* | hpux11*)
|
|
|
12124 |
case $cc_basename in
|
|
|
12125 |
CC*)
|
|
|
12126 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12127 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
|
|
12128 |
if test "$host_cpu" != ia64; then
|
|
|
12129 |
lt_prog_compiler_pic_CXX='+Z'
|
|
|
12130 |
fi
|
|
|
12131 |
;;
|
|
|
12132 |
aCC*)
|
|
|
12133 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12134 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
|
|
12135 |
case $host_cpu in
|
|
|
12136 |
hppa*64*|ia64*)
|
|
|
12137 |
# +Z the default
|
|
|
12138 |
;;
|
|
|
12139 |
*)
|
|
|
12140 |
lt_prog_compiler_pic_CXX='+Z'
|
|
|
12141 |
;;
|
|
|
12142 |
esac
|
|
|
12143 |
;;
|
|
|
12144 |
*)
|
|
|
12145 |
;;
|
|
|
12146 |
esac
|
|
|
12147 |
;;
|
|
|
12148 |
interix*)
|
|
|
12149 |
# This is c89, which is MS Visual C++ (no shared libs)
|
|
|
12150 |
# Anyone wants to do a port?
|
|
|
12151 |
;;
|
|
|
12152 |
irix5* | irix6* | nonstopux*)
|
|
|
12153 |
case $cc_basename in
|
|
|
12154 |
CC*)
|
|
|
12155 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12156 |
lt_prog_compiler_static_CXX='-non_shared'
|
|
|
12157 |
# CC pic flag -KPIC is the default.
|
|
|
12158 |
;;
|
|
|
12159 |
*)
|
|
|
12160 |
;;
|
|
|
12161 |
esac
|
|
|
12162 |
;;
|
|
|
12163 |
linux* | k*bsd*-gnu)
|
|
|
12164 |
case $cc_basename in
|
|
|
12165 |
KCC*)
|
|
|
12166 |
# KAI C++ Compiler
|
|
|
12167 |
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
|
|
12168 |
lt_prog_compiler_pic_CXX='-fPIC'
|
|
|
12169 |
;;
|
|
|
12170 |
icpc* | ecpc*)
|
|
|
12171 |
# Intel C++
|
|
|
12172 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12173 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12174 |
lt_prog_compiler_static_CXX='-static'
|
|
|
12175 |
;;
|
|
|
12176 |
pgCC*)
|
|
|
12177 |
# Portland Group C++ compiler.
|
|
|
12178 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12179 |
lt_prog_compiler_pic_CXX='-fpic'
|
|
|
12180 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12181 |
;;
|
|
|
12182 |
cxx*)
|
|
|
12183 |
# Compaq C++
|
|
|
12184 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
|
|
12185 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
|
|
12186 |
lt_prog_compiler_pic_CXX=
|
|
|
12187 |
lt_prog_compiler_static_CXX='-non_shared'
|
|
|
12188 |
;;
|
|
|
12189 |
*)
|
|
|
12190 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
12191 |
*Sun\ C*)
|
|
|
12192 |
# Sun C++ 5.9
|
|
|
12193 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12194 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12195 |
lt_prog_compiler_wl_CXX='-Qoption ld '
|
|
|
12196 |
;;
|
|
|
12197 |
esac
|
|
|
12198 |
;;
|
|
|
12199 |
esac
|
|
|
12200 |
;;
|
|
|
12201 |
lynxos*)
|
|
|
12202 |
;;
|
|
|
12203 |
m88k*)
|
|
|
12204 |
;;
|
|
|
12205 |
mvs*)
|
|
|
12206 |
case $cc_basename in
|
|
|
12207 |
cxx*)
|
|
|
12208 |
lt_prog_compiler_pic_CXX='-W c,exportall'
|
|
|
12209 |
;;
|
|
|
12210 |
*)
|
|
|
12211 |
;;
|
|
|
12212 |
esac
|
|
|
12213 |
;;
|
|
|
12214 |
netbsd* | netbsdelf*-gnu)
|
|
|
12215 |
;;
|
|
|
12216 |
osf3* | osf4* | osf5*)
|
|
|
12217 |
case $cc_basename in
|
|
|
12218 |
KCC*)
|
|
|
12219 |
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
|
|
12220 |
;;
|
|
|
12221 |
RCC*)
|
|
|
12222 |
# Rational C++ 2.4.1
|
|
|
12223 |
lt_prog_compiler_pic_CXX='-pic'
|
|
|
12224 |
;;
|
|
|
12225 |
cxx*)
|
|
|
12226 |
# Digital/Compaq C++
|
|
|
12227 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12228 |
# Make sure the PIC flag is empty. It appears that all Alpha
|
|
|
12229 |
# Linux and Compaq Tru64 Unix objects are PIC.
|
|
|
12230 |
lt_prog_compiler_pic_CXX=
|
|
|
12231 |
lt_prog_compiler_static_CXX='-non_shared'
|
|
|
12232 |
;;
|
|
|
12233 |
*)
|
|
|
12234 |
;;
|
|
|
12235 |
esac
|
|
|
12236 |
;;
|
|
|
12237 |
psos*)
|
|
|
12238 |
;;
|
|
|
12239 |
solaris*)
|
|
|
12240 |
case $cc_basename in
|
|
|
12241 |
CC*)
|
|
|
12242 |
# Sun C++ 4.2, 5.x and Centerline C++
|
|
|
12243 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12244 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12245 |
lt_prog_compiler_wl_CXX='-Qoption ld '
|
|
|
12246 |
;;
|
|
|
12247 |
gcx*)
|
|
|
12248 |
# Green Hills C++ Compiler
|
|
|
12249 |
lt_prog_compiler_pic_CXX='-PIC'
|
|
|
12250 |
;;
|
|
|
12251 |
*)
|
|
|
12252 |
;;
|
|
|
12253 |
esac
|
|
|
12254 |
;;
|
|
|
12255 |
sunos4*)
|
|
|
12256 |
case $cc_basename in
|
|
|
12257 |
CC*)
|
|
|
12258 |
# Sun C++ 4.x
|
|
|
12259 |
lt_prog_compiler_pic_CXX='-pic'
|
|
|
12260 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12261 |
;;
|
|
|
12262 |
lcc*)
|
|
|
12263 |
# Lucid
|
|
|
12264 |
lt_prog_compiler_pic_CXX='-pic'
|
|
|
12265 |
;;
|
|
|
12266 |
*)
|
|
|
12267 |
;;
|
|
|
12268 |
esac
|
|
|
12269 |
;;
|
|
|
12270 |
tandem*)
|
|
|
12271 |
case $cc_basename in
|
|
|
12272 |
NCC*)
|
|
|
12273 |
# NonStop-UX NCC 3.20
|
|
|
12274 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12275 |
;;
|
|
|
12276 |
*)
|
|
|
12277 |
;;
|
|
|
12278 |
esac
|
|
|
12279 |
;;
|
|
|
12280 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
12281 |
case $cc_basename in
|
|
|
12282 |
CC*)
|
|
|
12283 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
|
12284 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
|
12285 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
|
12286 |
;;
|
|
|
12287 |
esac
|
|
|
12288 |
;;
|
|
|
12289 |
vxworks*)
|
|
|
12290 |
;;
|
|
|
12291 |
*)
|
|
|
12292 |
lt_prog_compiler_can_build_shared_CXX=no
|
|
|
12293 |
;;
|
|
|
12294 |
esac
|
|
|
12295 |
fi
|
|
|
12296 |
|
|
|
12297 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
|
|
|
12298 |
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
|
|
|
12299 |
|
|
|
12300 |
#
|
|
|
12301 |
# Check to make sure the PIC flag actually works.
|
|
|
12302 |
#
|
|
|
12303 |
if test -n "$lt_prog_compiler_pic_CXX"; then
|
|
|
12304 |
|
|
|
12305 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
|
|
|
12306 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
|
|
|
12307 |
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
|
|
|
12308 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
12309 |
else
|
|
|
12310 |
lt_prog_compiler_pic_works_CXX=no
|
|
|
12311 |
ac_outfile=conftest.$ac_objext
|
|
|
12312 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
12313 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
|
|
|
12314 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
12315 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
12316 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
12317 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
12318 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
12319 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
12320 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
12321 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
12322 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
12323 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
12324 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
12325 |
ac_status=$?
|
|
|
12326 |
cat conftest.err >&5
|
|
|
12327 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
12328 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
12329 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
12330 |
# So say no if there are warnings other than the usual output.
|
|
|
12331 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
12332 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
12333 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
12334 |
lt_prog_compiler_pic_works_CXX=yes
|
|
|
12335 |
fi
|
|
|
12336 |
fi
|
|
|
12337 |
$rm conftest*
|
|
|
12338 |
|
|
|
12339 |
fi
|
|
|
12340 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
|
|
|
12341 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
|
|
|
12342 |
|
|
|
12343 |
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
|
|
|
12344 |
case $lt_prog_compiler_pic_CXX in
|
|
|
12345 |
"" | " "*) ;;
|
|
|
12346 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
|
|
|
12347 |
esac
|
|
|
12348 |
else
|
|
|
12349 |
lt_prog_compiler_pic_CXX=
|
|
|
12350 |
lt_prog_compiler_can_build_shared_CXX=no
|
|
|
12351 |
fi
|
|
|
12352 |
|
|
|
12353 |
fi
|
|
|
12354 |
case $host_os in
|
|
|
12355 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
|
12356 |
*djgpp*)
|
|
|
12357 |
lt_prog_compiler_pic_CXX=
|
|
|
12358 |
;;
|
|
|
12359 |
*)
|
|
|
12360 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
|
|
12361 |
;;
|
|
|
12362 |
esac
|
|
|
12363 |
|
|
|
12364 |
#
|
|
|
12365 |
# Check to make sure the static flag actually works.
|
|
|
12366 |
#
|
|
|
12367 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
|
|
|
12368 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
|
12369 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
|
|
12370 |
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
|
|
|
12371 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
12372 |
else
|
|
|
12373 |
lt_prog_compiler_static_works_CXX=no
|
|
|
12374 |
save_LDFLAGS="$LDFLAGS"
|
|
|
12375 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
|
12376 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
|
12377 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
|
12378 |
# The linker can only warn and ignore the option if not recognized
|
|
|
12379 |
# So say no if there are warnings
|
|
|
12380 |
if test -s conftest.err; then
|
|
|
12381 |
# Append any errors to the config.log.
|
|
|
12382 |
cat conftest.err 1>&5
|
|
|
12383 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
|
12384 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
12385 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
12386 |
lt_prog_compiler_static_works_CXX=yes
|
|
|
12387 |
fi
|
|
|
12388 |
else
|
|
|
12389 |
lt_prog_compiler_static_works_CXX=yes
|
|
|
12390 |
fi
|
|
|
12391 |
fi
|
|
|
12392 |
$rm conftest*
|
|
|
12393 |
LDFLAGS="$save_LDFLAGS"
|
|
|
12394 |
|
|
|
12395 |
fi
|
|
|
12396 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
|
|
|
12397 |
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
|
|
|
12398 |
|
|
|
12399 |
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
|
|
|
12400 |
:
|
|
|
12401 |
else
|
|
|
12402 |
lt_prog_compiler_static_CXX=
|
|
|
12403 |
fi
|
|
|
12404 |
|
|
|
12405 |
|
|
|
12406 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
|
12407 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
|
|
12408 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
|
|
12409 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
12410 |
else
|
|
|
12411 |
lt_cv_prog_compiler_c_o_CXX=no
|
|
|
12412 |
$rm -r conftest 2>/dev/null
|
|
|
12413 |
mkdir conftest
|
|
|
12414 |
cd conftest
|
|
|
12415 |
mkdir out
|
|
|
12416 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
12417 |
|
|
|
12418 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
|
12419 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
12420 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
12421 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
12422 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
12423 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
12424 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
12425 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
12426 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
12427 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
12428 |
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
12429 |
ac_status=$?
|
|
|
12430 |
cat out/conftest.err >&5
|
|
|
12431 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
12432 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
12433 |
then
|
|
|
12434 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
12435 |
# So say no if there are warnings
|
|
|
12436 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
|
12437 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
|
12438 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
|
12439 |
lt_cv_prog_compiler_c_o_CXX=yes
|
|
|
12440 |
fi
|
|
|
12441 |
fi
|
|
|
12442 |
chmod u+w . 2>&5
|
|
|
12443 |
$rm conftest*
|
|
|
12444 |
# SGI C++ compiler will create directory out/ii_files/ for
|
|
|
12445 |
# template instantiation
|
|
|
12446 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
|
|
12447 |
$rm out/* && rmdir out
|
|
|
12448 |
cd ..
|
|
|
12449 |
rmdir conftest
|
|
|
12450 |
$rm conftest*
|
|
|
12451 |
|
|
|
12452 |
fi
|
|
|
12453 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
|
|
|
12454 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
|
|
|
12455 |
|
|
|
12456 |
|
|
|
12457 |
hard_links="nottested"
|
|
|
12458 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
|
|
|
12459 |
# do not overwrite the value of need_locks provided by the user
|
|
|
12460 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
|
|
12461 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
|
|
12462 |
hard_links=yes
|
|
|
12463 |
$rm conftest*
|
|
|
12464 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
12465 |
touch conftest.a
|
|
|
12466 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
12467 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
12468 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
|
|
12469 |
echo "${ECHO_T}$hard_links" >&6; }
|
|
|
12470 |
if test "$hard_links" = no; then
|
|
|
12471 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
|
|
12472 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
|
|
12473 |
need_locks=warn
|
|
|
12474 |
fi
|
|
|
12475 |
else
|
|
|
12476 |
need_locks=no
|
|
|
12477 |
fi
|
|
|
12478 |
|
|
|
12479 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
|
12480 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
|
|
12481 |
|
|
|
12482 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
12483 |
case $host_os in
|
|
|
12484 |
aix4* | aix5*)
|
|
|
12485 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
12486 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
12487 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|
|
12488 |
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
12489 |
else
|
|
|
12490 |
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
12491 |
fi
|
|
|
12492 |
;;
|
|
|
12493 |
pw32*)
|
|
|
12494 |
export_symbols_cmds_CXX="$ltdll_cmds"
|
|
|
12495 |
;;
|
|
|
12496 |
cygwin* | mingw*)
|
|
|
12497 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
|
12498 |
;;
|
|
|
12499 |
linux* | k*bsd*-gnu)
|
|
|
12500 |
link_all_deplibs_CXX=no
|
|
|
12501 |
;;
|
|
|
12502 |
*)
|
|
|
12503 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
12504 |
;;
|
|
|
12505 |
esac
|
|
|
12506 |
|
|
|
12507 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
|
|
|
12508 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
|
|
|
12509 |
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
|
|
12510 |
|
|
|
12511 |
#
|
|
|
12512 |
# Do we need to explicitly link libc?
|
|
|
12513 |
#
|
|
|
12514 |
case "x$archive_cmds_need_lc_CXX" in
|
|
|
12515 |
x|xyes)
|
|
|
12516 |
# Assume -lc should be added
|
|
|
12517 |
archive_cmds_need_lc_CXX=yes
|
|
|
12518 |
|
|
|
12519 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
12520 |
case $archive_cmds_CXX in
|
|
|
12521 |
*'~'*)
|
|
|
12522 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
12523 |
;;
|
|
|
12524 |
'$CC '*)
|
|
|
12525 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
12526 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
12527 |
# to ld, don't add -lc before -lgcc.
|
|
|
12528 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
|
12529 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
|
12530 |
$rm conftest*
|
|
|
12531 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
12532 |
|
|
|
12533 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
12534 |
(eval $ac_compile) 2>&5
|
|
|
12535 |
ac_status=$?
|
|
|
12536 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
12537 |
(exit $ac_status); } 2>conftest.err; then
|
|
|
12538 |
soname=conftest
|
|
|
12539 |
lib=conftest
|
|
|
12540 |
libobjs=conftest.$ac_objext
|
|
|
12541 |
deplibs=
|
|
|
12542 |
wl=$lt_prog_compiler_wl_CXX
|
|
|
12543 |
pic_flag=$lt_prog_compiler_pic_CXX
|
|
|
12544 |
compiler_flags=-v
|
|
|
12545 |
linker_flags=-v
|
|
|
12546 |
verstring=
|
|
|
12547 |
output_objdir=.
|
|
|
12548 |
libname=conftest
|
|
|
12549 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
|
|
|
12550 |
allow_undefined_flag_CXX=
|
|
|
12551 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
|
|
12552 |
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
|
|
12553 |
ac_status=$?
|
|
|
12554 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
12555 |
(exit $ac_status); }
|
|
|
12556 |
then
|
|
|
12557 |
archive_cmds_need_lc_CXX=no
|
|
|
12558 |
else
|
|
|
12559 |
archive_cmds_need_lc_CXX=yes
|
|
|
12560 |
fi
|
|
|
12561 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
|
|
|
12562 |
else
|
|
|
12563 |
cat conftest.err 1>&5
|
|
|
12564 |
fi
|
|
|
12565 |
$rm conftest*
|
|
|
12566 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
|
|
|
12567 |
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
|
|
|
12568 |
;;
|
|
|
12569 |
esac
|
|
|
12570 |
fi
|
|
|
12571 |
;;
|
|
|
12572 |
esac
|
|
|
12573 |
|
|
|
12574 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
|
|
12575 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
|
|
12576 |
library_names_spec=
|
|
|
12577 |
libname_spec='lib$name'
|
|
|
12578 |
soname_spec=
|
|
|
12579 |
shrext_cmds=".so"
|
|
|
12580 |
postinstall_cmds=
|
|
|
12581 |
postuninstall_cmds=
|
|
|
12582 |
finish_cmds=
|
|
|
12583 |
finish_eval=
|
|
|
12584 |
shlibpath_var=
|
|
|
12585 |
shlibpath_overrides_runpath=unknown
|
|
|
12586 |
version_type=none
|
|
|
12587 |
dynamic_linker="$host_os ld.so"
|
|
|
12588 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
12589 |
|
|
|
12590 |
need_lib_prefix=unknown
|
|
|
12591 |
hardcode_into_libs=no
|
|
|
12592 |
|
|
|
12593 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
12594 |
# flags to be left without arguments
|
|
|
12595 |
need_version=unknown
|
|
|
12596 |
|
|
|
12597 |
case $host_os in
|
|
|
12598 |
aix3*)
|
|
|
12599 |
version_type=linux
|
|
|
12600 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
|
12601 |
shlibpath_var=LIBPATH
|
|
|
12602 |
|
|
|
12603 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
|
12604 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12605 |
;;
|
|
|
12606 |
|
|
|
12607 |
aix4* | aix5*)
|
|
|
12608 |
version_type=linux
|
|
|
12609 |
need_lib_prefix=no
|
|
|
12610 |
need_version=no
|
|
|
12611 |
hardcode_into_libs=yes
|
|
|
12612 |
if test "$host_cpu" = ia64; then
|
|
|
12613 |
# AIX 5 supports IA64
|
|
|
12614 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
|
12615 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12616 |
else
|
|
|
12617 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
12618 |
# for dependence libraries. The import file would start with
|
|
|
12619 |
# the line `#! .'. This would cause the generated library to
|
|
|
12620 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
12621 |
# development snapshots of GCC prior to 3.0.
|
|
|
12622 |
case $host_os in
|
|
|
12623 |
aix4 | aix4.[01] | aix4.[01].*)
|
|
|
12624 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
12625 |
echo ' yes '
|
|
|
12626 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
|
12627 |
:
|
|
|
12628 |
else
|
|
|
12629 |
can_build_shared=no
|
|
|
12630 |
fi
|
|
|
12631 |
;;
|
|
|
12632 |
esac
|
|
|
12633 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
|
12634 |
# soname into executable. Probably we can add versioning support to
|
|
|
12635 |
# collect2, so additional links can be useful in future.
|
|
|
12636 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
12637 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
12638 |
# instead of lib<name>.a to let people know that these are not
|
|
|
12639 |
# typical AIX shared libraries.
|
|
|
12640 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12641 |
else
|
|
|
12642 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
12643 |
# and later when we are not doing run time linking.
|
|
|
12644 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
12645 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12646 |
fi
|
|
|
12647 |
shlibpath_var=LIBPATH
|
|
|
12648 |
fi
|
|
|
12649 |
;;
|
|
|
12650 |
|
|
|
12651 |
amigaos*)
|
|
|
12652 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
12653 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
12654 |
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'
|
|
|
12655 |
;;
|
|
|
12656 |
|
|
|
12657 |
beos*)
|
|
|
12658 |
library_names_spec='${libname}${shared_ext}'
|
|
|
12659 |
dynamic_linker="$host_os ld.so"
|
|
|
12660 |
shlibpath_var=LIBRARY_PATH
|
|
|
12661 |
;;
|
|
|
12662 |
|
|
|
12663 |
bsdi[45]*)
|
|
|
12664 |
version_type=linux
|
|
|
12665 |
need_version=no
|
|
|
12666 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12667 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12668 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
12669 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12670 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
12671 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
12672 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
12673 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
12674 |
# libtool to hard-code these into programs
|
|
|
12675 |
;;
|
|
|
12676 |
|
|
|
12677 |
cygwin* | mingw* | pw32*)
|
|
|
12678 |
version_type=windows
|
|
|
12679 |
shrext_cmds=".dll"
|
|
|
12680 |
need_version=no
|
|
|
12681 |
need_lib_prefix=no
|
|
|
12682 |
|
|
|
12683 |
case $GCC,$host_os in
|
|
|
12684 |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
|
|
12685 |
library_names_spec='$libname.dll.a'
|
|
|
12686 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
12687 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
12688 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|
|
12689 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
12690 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
12691 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
|
12692 |
chmod a+x \$dldir/$dlname'
|
|
|
12693 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
12694 |
dlpath=$dir/\$dldll~
|
|
|
12695 |
$rm \$dlpath'
|
|
|
12696 |
shlibpath_overrides_runpath=yes
|
|
|
12697 |
|
|
|
12698 |
case $host_os in
|
|
|
12699 |
cygwin*)
|
|
|
12700 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
|
12701 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
12702 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|
|
12703 |
;;
|
|
|
12704 |
mingw*)
|
|
|
12705 |
# MinGW DLLs use traditional 'lib' prefix
|
|
|
12706 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
12707 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
|
12708 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
|
|
12709 |
# It is most probably a Windows format PATH printed by
|
|
|
12710 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|
|
12711 |
# path with ; separators, and with drive letters. We can handle the
|
|
|
12712 |
# drive letters (cygwin fileutils understands them), so leave them,
|
|
|
12713 |
# especially as we might pass files found there to a mingw objdump,
|
|
|
12714 |
# which wouldn't understand a cygwinified path. Ahh.
|
|
|
12715 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
12716 |
else
|
|
|
12717 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
12718 |
fi
|
|
|
12719 |
;;
|
|
|
12720 |
pw32*)
|
|
|
12721 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
|
12722 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
12723 |
;;
|
|
|
12724 |
esac
|
|
|
12725 |
;;
|
|
|
12726 |
|
|
|
12727 |
*)
|
|
|
12728 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
|
12729 |
;;
|
|
|
12730 |
esac
|
|
|
12731 |
dynamic_linker='Win32 ld.exe'
|
|
|
12732 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
12733 |
shlibpath_var=PATH
|
|
|
12734 |
;;
|
|
|
12735 |
|
|
|
12736 |
darwin* | rhapsody*)
|
|
|
12737 |
dynamic_linker="$host_os dyld"
|
|
|
12738 |
version_type=darwin
|
|
|
12739 |
need_lib_prefix=no
|
|
|
12740 |
need_version=no
|
|
|
12741 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
|
12742 |
soname_spec='${libname}${release}${major}$shared_ext'
|
|
|
12743 |
shlibpath_overrides_runpath=yes
|
|
|
12744 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
12745 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
12746 |
|
|
|
12747 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
|
12748 |
;;
|
|
|
12749 |
|
|
|
12750 |
dgux*)
|
|
|
12751 |
version_type=linux
|
|
|
12752 |
need_lib_prefix=no
|
|
|
12753 |
need_version=no
|
|
|
12754 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
|
12755 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12756 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12757 |
;;
|
|
|
12758 |
|
|
|
12759 |
freebsd1*)
|
|
|
12760 |
dynamic_linker=no
|
|
|
12761 |
;;
|
|
|
12762 |
|
|
|
12763 |
freebsd* | dragonfly*)
|
|
|
12764 |
# DragonFly does not have aout. When/if they implement a new
|
|
|
12765 |
# versioning mechanism, adjust this.
|
|
|
12766 |
if test -x /usr/bin/objformat; then
|
|
|
12767 |
objformat=`/usr/bin/objformat`
|
|
|
12768 |
else
|
|
|
12769 |
case $host_os in
|
|
|
12770 |
freebsd[123]*) objformat=aout ;;
|
|
|
12771 |
*) objformat=elf ;;
|
|
|
12772 |
esac
|
|
|
12773 |
fi
|
|
|
12774 |
version_type=freebsd-$objformat
|
|
|
12775 |
case $version_type in
|
|
|
12776 |
freebsd-elf*)
|
|
|
12777 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
12778 |
need_version=no
|
|
|
12779 |
need_lib_prefix=no
|
|
|
12780 |
;;
|
|
|
12781 |
freebsd-*)
|
|
|
12782 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
|
12783 |
need_version=yes
|
|
|
12784 |
;;
|
|
|
12785 |
esac
|
|
|
12786 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12787 |
case $host_os in
|
|
|
12788 |
freebsd2*)
|
|
|
12789 |
shlibpath_overrides_runpath=yes
|
|
|
12790 |
;;
|
|
|
12791 |
freebsd3.[01]* | freebsdelf3.[01]*)
|
|
|
12792 |
shlibpath_overrides_runpath=yes
|
|
|
12793 |
hardcode_into_libs=yes
|
|
|
12794 |
;;
|
|
|
12795 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
|
12796 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
|
12797 |
shlibpath_overrides_runpath=no
|
|
|
12798 |
hardcode_into_libs=yes
|
|
|
12799 |
;;
|
|
|
12800 |
*) # from 4.6 on, and DragonFly
|
|
|
12801 |
shlibpath_overrides_runpath=yes
|
|
|
12802 |
hardcode_into_libs=yes
|
|
|
12803 |
;;
|
|
|
12804 |
esac
|
|
|
12805 |
;;
|
|
|
12806 |
|
|
|
12807 |
gnu*)
|
|
|
12808 |
version_type=linux
|
|
|
12809 |
need_lib_prefix=no
|
|
|
12810 |
need_version=no
|
|
|
12811 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
12812 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12813 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12814 |
hardcode_into_libs=yes
|
|
|
12815 |
;;
|
|
|
12816 |
|
|
|
12817 |
hpux9* | hpux10* | hpux11*)
|
|
|
12818 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
12819 |
# link against other versions.
|
|
|
12820 |
version_type=sunos
|
|
|
12821 |
need_lib_prefix=no
|
|
|
12822 |
need_version=no
|
|
|
12823 |
case $host_cpu in
|
|
|
12824 |
ia64*)
|
|
|
12825 |
shrext_cmds='.so'
|
|
|
12826 |
hardcode_into_libs=yes
|
|
|
12827 |
dynamic_linker="$host_os dld.so"
|
|
|
12828 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12829 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
12830 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12831 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12832 |
if test "X$HPUX_IA64_MODE" = X32; then
|
|
|
12833 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
|
12834 |
else
|
|
|
12835 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
|
12836 |
fi
|
|
|
12837 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
12838 |
;;
|
|
|
12839 |
hppa*64*)
|
|
|
12840 |
shrext_cmds='.sl'
|
|
|
12841 |
hardcode_into_libs=yes
|
|
|
12842 |
dynamic_linker="$host_os dld.sl"
|
|
|
12843 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
|
12844 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
12845 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12846 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12847 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
|
12848 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
12849 |
;;
|
|
|
12850 |
*)
|
|
|
12851 |
shrext_cmds='.sl'
|
|
|
12852 |
dynamic_linker="$host_os dld.sl"
|
|
|
12853 |
shlibpath_var=SHLIB_PATH
|
|
|
12854 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
12855 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12856 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12857 |
;;
|
|
|
12858 |
esac
|
|
|
12859 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
|
12860 |
postinstall_cmds='chmod 555 $lib'
|
|
|
12861 |
;;
|
|
|
12862 |
|
|
|
12863 |
interix[3-9]*)
|
|
|
12864 |
version_type=linux
|
|
|
12865 |
need_lib_prefix=no
|
|
|
12866 |
need_version=no
|
|
|
12867 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
12868 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12869 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
|
12870 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12871 |
shlibpath_overrides_runpath=no
|
|
|
12872 |
hardcode_into_libs=yes
|
|
|
12873 |
;;
|
|
|
12874 |
|
|
|
12875 |
irix5* | irix6* | nonstopux*)
|
|
|
12876 |
case $host_os in
|
|
|
12877 |
nonstopux*) version_type=nonstopux ;;
|
|
|
12878 |
*)
|
|
|
12879 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
12880 |
version_type=linux
|
|
|
12881 |
else
|
|
|
12882 |
version_type=irix
|
|
|
12883 |
fi ;;
|
|
|
12884 |
esac
|
|
|
12885 |
need_lib_prefix=no
|
|
|
12886 |
need_version=no
|
|
|
12887 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12888 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
12889 |
case $host_os in
|
|
|
12890 |
irix5* | nonstopux*)
|
|
|
12891 |
libsuff= shlibsuff=
|
|
|
12892 |
;;
|
|
|
12893 |
*)
|
|
|
12894 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
12895 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
|
12896 |
libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
12897 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
|
12898 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
12899 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
|
12900 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
12901 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
12902 |
esac
|
|
|
12903 |
;;
|
|
|
12904 |
esac
|
|
|
12905 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
12906 |
shlibpath_overrides_runpath=no
|
|
|
12907 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
12908 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
12909 |
hardcode_into_libs=yes
|
|
|
12910 |
;;
|
|
|
12911 |
|
|
|
12912 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
12913 |
linux*oldld* | linux*aout* | linux*coff*)
|
|
|
12914 |
dynamic_linker=no
|
|
|
12915 |
;;
|
|
|
12916 |
|
|
|
12917 |
# This must be Linux ELF.
|
|
|
12918 |
linux* | k*bsd*-gnu)
|
|
|
12919 |
version_type=linux
|
|
|
12920 |
need_lib_prefix=no
|
|
|
12921 |
need_version=no
|
|
|
12922 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12923 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12924 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
12925 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12926 |
shlibpath_overrides_runpath=no
|
|
|
12927 |
# This implies no fast_install, which is unacceptable.
|
|
|
12928 |
# Some rework will be needed to allow for fast_install
|
|
|
12929 |
# before this can be enabled.
|
|
|
12930 |
hardcode_into_libs=yes
|
|
|
12931 |
|
|
|
12932 |
# Append ld.so.conf contents to the search path
|
|
|
12933 |
if test -f /etc/ld.so.conf; then
|
|
|
12934 |
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' ' '`
|
|
|
12935 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
12936 |
fi
|
|
|
12937 |
|
|
|
12938 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
12939 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
12940 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
12941 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
12942 |
# people can always --disable-shared, the test was removed, and we
|
|
|
12943 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
12944 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
12945 |
;;
|
|
|
12946 |
|
|
|
12947 |
netbsdelf*-gnu)
|
|
|
12948 |
version_type=linux
|
|
|
12949 |
need_lib_prefix=no
|
|
|
12950 |
need_version=no
|
|
|
12951 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
12952 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12953 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12954 |
shlibpath_overrides_runpath=no
|
|
|
12955 |
hardcode_into_libs=yes
|
|
|
12956 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
12957 |
;;
|
|
|
12958 |
|
|
|
12959 |
netbsd*)
|
|
|
12960 |
version_type=sunos
|
|
|
12961 |
need_lib_prefix=no
|
|
|
12962 |
need_version=no
|
|
|
12963 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
12964 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
12965 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
12966 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
12967 |
else
|
|
|
12968 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
12969 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12970 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
12971 |
fi
|
|
|
12972 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12973 |
shlibpath_overrides_runpath=yes
|
|
|
12974 |
hardcode_into_libs=yes
|
|
|
12975 |
;;
|
|
|
12976 |
|
|
|
12977 |
newsos6)
|
|
|
12978 |
version_type=linux
|
|
|
12979 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12980 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12981 |
shlibpath_overrides_runpath=yes
|
|
|
12982 |
;;
|
|
|
12983 |
|
|
|
12984 |
nto-qnx*)
|
|
|
12985 |
version_type=linux
|
|
|
12986 |
need_lib_prefix=no
|
|
|
12987 |
need_version=no
|
|
|
12988 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
12989 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
12990 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
12991 |
shlibpath_overrides_runpath=yes
|
|
|
12992 |
;;
|
|
|
12993 |
|
|
|
12994 |
openbsd*)
|
|
|
12995 |
version_type=sunos
|
|
|
12996 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
|
12997 |
need_lib_prefix=no
|
|
|
12998 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
|
12999 |
case $host_os in
|
|
|
13000 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
|
13001 |
*) need_version=no ;;
|
|
|
13002 |
esac
|
|
|
13003 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
13004 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
13005 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13006 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
13007 |
case $host_os in
|
|
|
13008 |
openbsd2.[89] | openbsd2.[89].*)
|
|
|
13009 |
shlibpath_overrides_runpath=no
|
|
|
13010 |
;;
|
|
|
13011 |
*)
|
|
|
13012 |
shlibpath_overrides_runpath=yes
|
|
|
13013 |
;;
|
|
|
13014 |
esac
|
|
|
13015 |
else
|
|
|
13016 |
shlibpath_overrides_runpath=yes
|
|
|
13017 |
fi
|
|
|
13018 |
;;
|
|
|
13019 |
|
|
|
13020 |
os2*)
|
|
|
13021 |
libname_spec='$name'
|
|
|
13022 |
shrext_cmds=".dll"
|
|
|
13023 |
need_lib_prefix=no
|
|
|
13024 |
library_names_spec='$libname${shared_ext} $libname.a'
|
|
|
13025 |
dynamic_linker='OS/2 ld.exe'
|
|
|
13026 |
shlibpath_var=LIBPATH
|
|
|
13027 |
;;
|
|
|
13028 |
|
|
|
13029 |
osf3* | osf4* | osf5*)
|
|
|
13030 |
version_type=osf
|
|
|
13031 |
need_lib_prefix=no
|
|
|
13032 |
need_version=no
|
|
|
13033 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
13034 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
13035 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13036 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
13037 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
13038 |
;;
|
|
|
13039 |
|
|
|
13040 |
rdos*)
|
|
|
13041 |
dynamic_linker=no
|
|
|
13042 |
;;
|
|
|
13043 |
|
|
|
13044 |
solaris*)
|
|
|
13045 |
version_type=linux
|
|
|
13046 |
need_lib_prefix=no
|
|
|
13047 |
need_version=no
|
|
|
13048 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
13049 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
13050 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13051 |
shlibpath_overrides_runpath=yes
|
|
|
13052 |
hardcode_into_libs=yes
|
|
|
13053 |
# ldd complains unless libraries are executable
|
|
|
13054 |
postinstall_cmds='chmod +x $lib'
|
|
|
13055 |
;;
|
|
|
13056 |
|
|
|
13057 |
sunos4*)
|
|
|
13058 |
version_type=sunos
|
|
|
13059 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
13060 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
13061 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13062 |
shlibpath_overrides_runpath=yes
|
|
|
13063 |
if test "$with_gnu_ld" = yes; then
|
|
|
13064 |
need_lib_prefix=no
|
|
|
13065 |
fi
|
|
|
13066 |
need_version=yes
|
|
|
13067 |
;;
|
|
|
13068 |
|
|
|
13069 |
sysv4 | sysv4.3*)
|
|
|
13070 |
version_type=linux
|
|
|
13071 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
13072 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
13073 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13074 |
case $host_vendor in
|
|
|
13075 |
sni)
|
|
|
13076 |
shlibpath_overrides_runpath=no
|
|
|
13077 |
need_lib_prefix=no
|
|
|
13078 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|
|
13079 |
runpath_var=LD_RUN_PATH
|
|
|
13080 |
;;
|
|
|
13081 |
siemens)
|
|
|
13082 |
need_lib_prefix=no
|
|
|
13083 |
;;
|
|
|
13084 |
motorola)
|
|
|
13085 |
need_lib_prefix=no
|
|
|
13086 |
need_version=no
|
|
|
13087 |
shlibpath_overrides_runpath=no
|
|
|
13088 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
13089 |
;;
|
|
|
13090 |
esac
|
|
|
13091 |
;;
|
|
|
13092 |
|
|
|
13093 |
sysv4*MP*)
|
|
|
13094 |
if test -d /usr/nec ;then
|
|
|
13095 |
version_type=linux
|
|
|
13096 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
|
13097 |
soname_spec='$libname${shared_ext}.$major'
|
|
|
13098 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13099 |
fi
|
|
|
13100 |
;;
|
|
|
13101 |
|
|
|
13102 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
13103 |
version_type=freebsd-elf
|
|
|
13104 |
need_lib_prefix=no
|
|
|
13105 |
need_version=no
|
|
|
13106 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
13107 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
13108 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13109 |
hardcode_into_libs=yes
|
|
|
13110 |
if test "$with_gnu_ld" = yes; then
|
|
|
13111 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
|
13112 |
shlibpath_overrides_runpath=no
|
|
|
13113 |
else
|
|
|
13114 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
|
13115 |
shlibpath_overrides_runpath=yes
|
|
|
13116 |
case $host_os in
|
|
|
13117 |
sco3.2v5*)
|
|
|
13118 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
|
13119 |
;;
|
|
|
13120 |
esac
|
|
|
13121 |
fi
|
|
|
13122 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
|
13123 |
;;
|
|
|
13124 |
|
|
|
13125 |
uts4*)
|
|
|
13126 |
version_type=linux
|
|
|
13127 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
13128 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
13129 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
13130 |
;;
|
|
|
13131 |
|
|
|
13132 |
*)
|
|
|
13133 |
dynamic_linker=no
|
|
|
13134 |
;;
|
|
|
13135 |
esac
|
|
|
13136 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
|
|
13137 |
echo "${ECHO_T}$dynamic_linker" >&6; }
|
|
|
13138 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
13139 |
|
|
|
13140 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
13141 |
if test "$GCC" = yes; then
|
|
|
13142 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
13143 |
fi
|
|
|
13144 |
|
|
|
13145 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
|
|
13146 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
|
|
13147 |
hardcode_action_CXX=
|
|
|
13148 |
if test -n "$hardcode_libdir_flag_spec_CXX" || \
|
|
|
13149 |
test -n "$runpath_var_CXX" || \
|
|
|
13150 |
test "X$hardcode_automatic_CXX" = "Xyes" ; then
|
|
|
13151 |
|
|
|
13152 |
# We can hardcode non-existant directories.
|
|
|
13153 |
if test "$hardcode_direct_CXX" != no &&
|
|
|
13154 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
13155 |
# have to relink, otherwise we might link with an installed library
|
|
|
13156 |
# when we should be linking with a yet-to-be-installed one
|
|
|
13157 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
|
|
|
13158 |
test "$hardcode_minus_L_CXX" != no; then
|
|
|
13159 |
# Linking always hardcodes the temporary library directory.
|
|
|
13160 |
hardcode_action_CXX=relink
|
|
|
13161 |
else
|
|
|
13162 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
13163 |
hardcode_action_CXX=immediate
|
|
|
13164 |
fi
|
|
|
13165 |
else
|
|
|
13166 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
13167 |
# directories.
|
|
|
13168 |
hardcode_action_CXX=unsupported
|
|
|
13169 |
fi
|
|
|
13170 |
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
|
|
|
13171 |
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
|
|
|
13172 |
|
|
|
13173 |
if test "$hardcode_action_CXX" = relink; then
|
|
|
13174 |
# Fast installation is not supported
|
|
|
13175 |
enable_fast_install=no
|
|
|
13176 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
13177 |
test "$enable_shared" = no; then
|
|
|
13178 |
# Fast installation is not necessary
|
|
|
13179 |
enable_fast_install=needless
|
|
|
13180 |
fi
|
|
|
13181 |
|
|
|
13182 |
|
|
|
13183 |
# The else clause should only fire when bootstrapping the
|
|
|
13184 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
13185 |
# with your package, and you will get complaints that there are
|
|
|
13186 |
# no rules to generate ltmain.sh.
|
|
|
13187 |
if test -f "$ltmain"; then
|
|
|
13188 |
# See if we are running on zsh, and set the options which allow our commands through
|
|
|
13189 |
# without removal of \ escapes.
|
|
|
13190 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
13191 |
setopt NO_GLOB_SUBST
|
|
|
13192 |
fi
|
|
|
13193 |
# Now quote all the things that may contain metacharacters while being
|
|
|
13194 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
13195 |
# variables and quote the copies for generation of the libtool script.
|
|
|
13196 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
|
13197 |
SED SHELL STRIP \
|
|
|
13198 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
|
13199 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
|
13200 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
|
|
13201 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|
|
13202 |
lt_cv_sys_global_symbol_to_c_name_address \
|
|
|
13203 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
13204 |
old_postinstall_cmds old_postuninstall_cmds \
|
|
|
13205 |
compiler_CXX \
|
|
|
13206 |
CC_CXX \
|
|
|
13207 |
LD_CXX \
|
|
|
13208 |
lt_prog_compiler_wl_CXX \
|
|
|
13209 |
lt_prog_compiler_pic_CXX \
|
|
|
13210 |
lt_prog_compiler_static_CXX \
|
|
|
13211 |
lt_prog_compiler_no_builtin_flag_CXX \
|
|
|
13212 |
export_dynamic_flag_spec_CXX \
|
|
|
13213 |
thread_safe_flag_spec_CXX \
|
|
|
13214 |
whole_archive_flag_spec_CXX \
|
|
|
13215 |
enable_shared_with_static_runtimes_CXX \
|
|
|
13216 |
old_archive_cmds_CXX \
|
|
|
13217 |
old_archive_from_new_cmds_CXX \
|
|
|
13218 |
predep_objects_CXX \
|
|
|
13219 |
postdep_objects_CXX \
|
|
|
13220 |
predeps_CXX \
|
|
|
13221 |
postdeps_CXX \
|
|
|
13222 |
compiler_lib_search_path_CXX \
|
|
|
13223 |
archive_cmds_CXX \
|
|
|
13224 |
archive_expsym_cmds_CXX \
|
|
|
13225 |
postinstall_cmds_CXX \
|
|
|
13226 |
postuninstall_cmds_CXX \
|
|
|
13227 |
old_archive_from_expsyms_cmds_CXX \
|
|
|
13228 |
allow_undefined_flag_CXX \
|
|
|
13229 |
no_undefined_flag_CXX \
|
|
|
13230 |
export_symbols_cmds_CXX \
|
|
|
13231 |
hardcode_libdir_flag_spec_CXX \
|
|
|
13232 |
hardcode_libdir_flag_spec_ld_CXX \
|
|
|
13233 |
hardcode_libdir_separator_CXX \
|
|
|
13234 |
hardcode_automatic_CXX \
|
|
|
13235 |
module_cmds_CXX \
|
|
|
13236 |
module_expsym_cmds_CXX \
|
|
|
13237 |
lt_cv_prog_compiler_c_o_CXX \
|
|
|
13238 |
fix_srcfile_path_CXX \
|
|
|
13239 |
exclude_expsyms_CXX \
|
|
|
13240 |
include_expsyms_CXX; do
|
|
|
13241 |
|
|
|
13242 |
case $var in
|
|
|
13243 |
old_archive_cmds_CXX | \
|
|
|
13244 |
old_archive_from_new_cmds_CXX | \
|
|
|
13245 |
archive_cmds_CXX | \
|
|
|
13246 |
archive_expsym_cmds_CXX | \
|
|
|
13247 |
module_cmds_CXX | \
|
|
|
13248 |
module_expsym_cmds_CXX | \
|
|
|
13249 |
old_archive_from_expsyms_cmds_CXX | \
|
|
|
13250 |
export_symbols_cmds_CXX | \
|
|
|
13251 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|
|
13252 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
13253 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
13254 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
13255 |
# Double-quote double-evaled strings.
|
|
|
13256 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
13257 |
;;
|
|
|
13258 |
*)
|
|
|
13259 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
13260 |
;;
|
|
|
13261 |
esac
|
|
|
13262 |
done
|
|
|
13263 |
|
|
|
13264 |
case $lt_echo in
|
|
|
13265 |
*'\$0 --fallback-echo"')
|
|
|
13266 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
|
|
13267 |
;;
|
|
|
13268 |
esac
|
|
|
13269 |
|
|
|
13270 |
cfgfile="$ofile"
|
|
|
13271 |
|
|
|
13272 |
cat <<__EOF__ >> "$cfgfile"
|
|
|
13273 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
|
|
13274 |
|
|
|
13275 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
13276 |
|
|
|
13277 |
# Shell to use when invoking shell scripts.
|
|
|
13278 |
SHELL=$lt_SHELL
|
|
|
13279 |
|
|
|
13280 |
# Whether or not to build shared libraries.
|
|
|
13281 |
build_libtool_libs=$enable_shared
|
|
|
13282 |
|
|
|
13283 |
# Whether or not to build static libraries.
|
|
|
13284 |
build_old_libs=$enable_static
|
|
|
13285 |
|
|
|
13286 |
# Whether or not to add -lc for building shared libraries.
|
|
|
13287 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX
|
|
|
13288 |
|
|
|
13289 |
# Whether or not to disallow shared libs when runtime libs are static
|
|
|
13290 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
|
|
|
13291 |
|
|
|
13292 |
# Whether or not to optimize for fast installation.
|
|
|
13293 |
fast_install=$enable_fast_install
|
|
|
13294 |
|
|
|
13295 |
# The host system.
|
|
|
13296 |
host_alias=$host_alias
|
|
|
13297 |
host=$host
|
|
|
13298 |
host_os=$host_os
|
|
|
13299 |
|
|
|
13300 |
# The build system.
|
|
|
13301 |
build_alias=$build_alias
|
|
|
13302 |
build=$build
|
|
|
13303 |
build_os=$build_os
|
|
|
13304 |
|
|
|
13305 |
# An echo program that does not interpret backslashes.
|
|
|
13306 |
echo=$lt_echo
|
|
|
13307 |
|
|
|
13308 |
# The archiver.
|
|
|
13309 |
AR=$lt_AR
|
|
|
13310 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
13311 |
|
|
|
13312 |
# A C compiler.
|
|
|
13313 |
LTCC=$lt_LTCC
|
|
|
13314 |
|
|
|
13315 |
# LTCC compiler flags.
|
|
|
13316 |
LTCFLAGS=$lt_LTCFLAGS
|
|
|
13317 |
|
|
|
13318 |
# A language-specific compiler.
|
|
|
13319 |
CC=$lt_compiler_CXX
|
|
|
13320 |
|
|
|
13321 |
# Is the compiler the GNU C compiler?
|
|
|
13322 |
with_gcc=$GCC_CXX
|
|
|
13323 |
|
|
|
13324 |
# An ERE matcher.
|
|
|
13325 |
EGREP=$lt_EGREP
|
|
|
13326 |
|
|
|
13327 |
# The linker used to build libraries.
|
|
|
13328 |
LD=$lt_LD_CXX
|
|
|
13329 |
|
|
|
13330 |
# Whether we need hard or soft links.
|
|
|
13331 |
LN_S=$lt_LN_S
|
|
|
13332 |
|
|
|
13333 |
# A BSD-compatible nm program.
|
|
|
13334 |
NM=$lt_NM
|
|
|
13335 |
|
|
|
13336 |
# A symbol stripping program
|
|
|
13337 |
STRIP=$lt_STRIP
|
|
|
13338 |
|
|
|
13339 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
13340 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
13341 |
|
|
|
13342 |
# Used on cygwin: DLL creation program.
|
|
|
13343 |
DLLTOOL="$DLLTOOL"
|
|
|
13344 |
|
|
|
13345 |
# Used on cygwin: object dumper.
|
|
|
13346 |
OBJDUMP="$OBJDUMP"
|
|
|
13347 |
|
|
|
13348 |
# Used on cygwin: assembler.
|
|
|
13349 |
AS="$AS"
|
|
|
13350 |
|
|
|
13351 |
# The name of the directory that contains temporary libtool files.
|
|
|
13352 |
objdir=$objdir
|
|
|
13353 |
|
|
|
13354 |
# How to create reloadable object files.
|
|
|
13355 |
reload_flag=$lt_reload_flag
|
|
|
13356 |
reload_cmds=$lt_reload_cmds
|
|
|
13357 |
|
|
|
13358 |
# How to pass a linker flag through the compiler.
|
|
|
13359 |
wl=$lt_lt_prog_compiler_wl_CXX
|
|
|
13360 |
|
|
|
13361 |
# Object file suffix (normally "o").
|
|
|
13362 |
objext="$ac_objext"
|
|
|
13363 |
|
|
|
13364 |
# Old archive suffix (normally "a").
|
|
|
13365 |
libext="$libext"
|
|
|
13366 |
|
|
|
13367 |
# Shared library suffix (normally ".so").
|
|
|
13368 |
shrext_cmds='$shrext_cmds'
|
|
|
13369 |
|
|
|
13370 |
# Executable file suffix (normally "").
|
|
|
13371 |
exeext="$exeext"
|
|
|
13372 |
|
|
|
13373 |
# Additional compiler flags for building library objects.
|
|
|
13374 |
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
|
|
13375 |
pic_mode=$pic_mode
|
|
|
13376 |
|
|
|
13377 |
# What is the maximum length of a command?
|
|
|
13378 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
13379 |
|
|
|
13380 |
# Does compiler simultaneously support -c and -o options?
|
|
|
13381 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
|
|
|
13382 |
|
|
|
13383 |
# Must we lock files when doing compilation?
|
|
|
13384 |
need_locks=$lt_need_locks
|
|
|
13385 |
|
|
|
13386 |
# Do we need the lib prefix for modules?
|
|
|
13387 |
need_lib_prefix=$need_lib_prefix
|
|
|
13388 |
|
|
|
13389 |
# Do we need a version for libraries?
|
|
|
13390 |
need_version=$need_version
|
|
|
13391 |
|
|
|
13392 |
# Whether dlopen is supported.
|
|
|
13393 |
dlopen_support=$enable_dlopen
|
|
|
13394 |
|
|
|
13395 |
# Whether dlopen of programs is supported.
|
|
|
13396 |
dlopen_self=$enable_dlopen_self
|
|
|
13397 |
|
|
|
13398 |
# Whether dlopen of statically linked programs is supported.
|
|
|
13399 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
13400 |
|
|
|
13401 |
# Compiler flag to prevent dynamic linking.
|
|
|
13402 |
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
|
|
13403 |
|
|
|
13404 |
# Compiler flag to turn off builtin functions.
|
|
|
13405 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
|
|
13406 |
|
|
|
13407 |
# Compiler flag to allow reflexive dlopens.
|
|
|
13408 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
|
|
|
13409 |
|
|
|
13410 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
13411 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
|
|
|
13412 |
|
|
|
13413 |
# Compiler flag to generate thread-safe objects.
|
|
|
13414 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
|
|
|
13415 |
|
|
|
13416 |
# Library versioning type.
|
|
|
13417 |
version_type=$version_type
|
|
|
13418 |
|
|
|
13419 |
# Format of library name prefix.
|
|
|
13420 |
libname_spec=$lt_libname_spec
|
|
|
13421 |
|
|
|
13422 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
13423 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
13424 |
library_names_spec=$lt_library_names_spec
|
|
|
13425 |
|
|
|
13426 |
# The coded name of the library, if different from the real name.
|
|
|
13427 |
soname_spec=$lt_soname_spec
|
|
|
13428 |
|
|
|
13429 |
# Commands used to build and install an old-style archive.
|
|
|
13430 |
RANLIB=$lt_RANLIB
|
|
|
13431 |
old_archive_cmds=$lt_old_archive_cmds_CXX
|
|
|
13432 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
13433 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
13434 |
|
|
|
13435 |
# Create an old-style archive from a shared archive.
|
|
|
13436 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
|
|
|
13437 |
|
|
|
13438 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
13439 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
|
|
|
13440 |
|
|
|
13441 |
# Commands used to build and install a shared archive.
|
|
|
13442 |
archive_cmds=$lt_archive_cmds_CXX
|
|
|
13443 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
|
|
|
13444 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
13445 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
13446 |
|
|
|
13447 |
# Commands used to build a loadable module (assumed same as above if empty)
|
|
|
13448 |
module_cmds=$lt_module_cmds_CXX
|
|
|
13449 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX
|
|
|
13450 |
|
|
|
13451 |
# Commands to strip libraries.
|
|
|
13452 |
old_striplib=$lt_old_striplib
|
|
|
13453 |
striplib=$lt_striplib
|
|
|
13454 |
|
|
|
13455 |
# Dependencies to place before the objects being linked to create a
|
|
|
13456 |
# shared library.
|
|
|
13457 |
predep_objects=$lt_predep_objects_CXX
|
|
|
13458 |
|
|
|
13459 |
# Dependencies to place after the objects being linked to create a
|
|
|
13460 |
# shared library.
|
|
|
13461 |
postdep_objects=$lt_postdep_objects_CXX
|
|
|
13462 |
|
|
|
13463 |
# Dependencies to place before the objects being linked to create a
|
|
|
13464 |
# shared library.
|
|
|
13465 |
predeps=$lt_predeps_CXX
|
|
|
13466 |
|
|
|
13467 |
# Dependencies to place after the objects being linked to create a
|
|
|
13468 |
# shared library.
|
|
|
13469 |
postdeps=$lt_postdeps_CXX
|
|
|
13470 |
|
|
|
13471 |
# The library search path used internally by the compiler when linking
|
|
|
13472 |
# a shared library.
|
|
|
13473 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
|
|
|
13474 |
|
|
|
13475 |
# Method to check whether dependent libraries are shared objects.
|
|
|
13476 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
13477 |
|
|
|
13478 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
13479 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
13480 |
|
|
|
13481 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
13482 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX
|
|
|
13483 |
|
|
|
13484 |
# Flag that forces no undefined symbols.
|
|
|
13485 |
no_undefined_flag=$lt_no_undefined_flag_CXX
|
|
|
13486 |
|
|
|
13487 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
13488 |
finish_cmds=$lt_finish_cmds
|
|
|
13489 |
|
|
|
13490 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
13491 |
finish_eval=$lt_finish_eval
|
|
|
13492 |
|
|
|
13493 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
13494 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
13495 |
|
|
|
13496 |
# Transform the output of nm in a proper C declaration
|
|
|
13497 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
13498 |
|
|
|
13499 |
# Transform the output of nm in a C name address pair
|
|
|
13500 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
13501 |
|
|
|
13502 |
# This is the shared library runtime path variable.
|
|
|
13503 |
runpath_var=$runpath_var
|
|
|
13504 |
|
|
|
13505 |
# This is the shared library path variable.
|
|
|
13506 |
shlibpath_var=$shlibpath_var
|
|
|
13507 |
|
|
|
13508 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
13509 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
13510 |
|
|
|
13511 |
# How to hardcode a shared library path into an executable.
|
|
|
13512 |
hardcode_action=$hardcode_action_CXX
|
|
|
13513 |
|
|
|
13514 |
# Whether we should hardcode library paths into libraries.
|
|
|
13515 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
13516 |
|
|
|
13517 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
13518 |
# This must work even if \$libdir does not exist.
|
|
|
13519 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
|
|
|
13520 |
|
|
|
13521 |
# If ld is used when linking, flag to hardcode \$libdir into
|
|
|
13522 |
# a binary during linking. This must work even if \$libdir does
|
|
|
13523 |
# not exist.
|
|
|
13524 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
|
|
|
13525 |
|
|
|
13526 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
13527 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
|
|
|
13528 |
|
|
|
13529 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|
|
13530 |
# resulting binary.
|
|
|
13531 |
hardcode_direct=$hardcode_direct_CXX
|
|
|
13532 |
|
|
|
13533 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
13534 |
# resulting binary.
|
|
|
13535 |
hardcode_minus_L=$hardcode_minus_L_CXX
|
|
|
13536 |
|
|
|
13537 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
13538 |
# the resulting binary.
|
|
|
13539 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
|
|
|
13540 |
|
|
|
13541 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
|
|
13542 |
# and all subsequent libraries and executables linked against it.
|
|
|
13543 |
hardcode_automatic=$hardcode_automatic_CXX
|
|
|
13544 |
|
|
|
13545 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
13546 |
# restored at relink time.
|
|
|
13547 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
13548 |
|
|
|
13549 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
13550 |
link_all_deplibs=$link_all_deplibs_CXX
|
|
|
13551 |
|
|
|
13552 |
# Compile-time system search path for libraries
|
|
|
13553 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
13554 |
|
|
|
13555 |
# Run-time system search path for libraries
|
|
|
13556 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
13557 |
|
|
|
13558 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
13559 |
fix_srcfile_path=$lt_fix_srcfile_path
|
|
|
13560 |
|
|
|
13561 |
# Set to yes if exported symbols are required.
|
|
|
13562 |
always_export_symbols=$always_export_symbols_CXX
|
|
|
13563 |
|
|
|
13564 |
# The commands to list exported symbols.
|
|
|
13565 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX
|
|
|
13566 |
|
|
|
13567 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
13568 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
13569 |
|
|
|
13570 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
13571 |
exclude_expsyms=$lt_exclude_expsyms_CXX
|
|
|
13572 |
|
|
|
13573 |
# Symbols that must always be exported.
|
|
|
13574 |
include_expsyms=$lt_include_expsyms_CXX
|
|
|
13575 |
|
|
|
13576 |
# ### END LIBTOOL TAG CONFIG: $tagname
|
|
|
13577 |
|
|
|
13578 |
__EOF__
|
|
|
13579 |
|
|
|
13580 |
|
|
|
13581 |
else
|
|
|
13582 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
13583 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
13584 |
# libtool script then.
|
|
|
13585 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|
|
13586 |
if test -f "$ltmain_in"; then
|
|
|
13587 |
test -f Makefile && make "$ltmain"
|
|
|
13588 |
fi
|
|
|
13589 |
fi
|
|
|
13590 |
|
|
|
13591 |
|
|
|
13592 |
ac_ext=c
|
|
|
13593 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
13594 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
13595 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
13596 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
13597 |
|
|
|
13598 |
CC=$lt_save_CC
|
|
|
13599 |
LDCXX=$LD
|
|
|
13600 |
LD=$lt_save_LD
|
|
|
13601 |
GCC=$lt_save_GCC
|
|
|
13602 |
with_gnu_ldcxx=$with_gnu_ld
|
|
|
13603 |
with_gnu_ld=$lt_save_with_gnu_ld
|
|
|
13604 |
lt_cv_path_LDCXX=$lt_cv_path_LD
|
|
|
13605 |
lt_cv_path_LD=$lt_save_path_LD
|
|
|
13606 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
|
|
13607 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
|
|
13608 |
|
|
|
13609 |
else
|
|
|
13610 |
tagname=""
|
|
|
13611 |
fi
|
|
|
13612 |
;;
|
|
|
13613 |
|
|
|
13614 |
F77)
|
|
|
13615 |
if test -n "$F77" && test "X$F77" != "Xno"; then
|
|
|
13616 |
|
|
|
13617 |
ac_ext=f
|
|
|
13618 |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
13619 |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
13620 |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
13621 |
|
|
|
13622 |
|
|
|
13623 |
archive_cmds_need_lc_F77=no
|
|
|
13624 |
allow_undefined_flag_F77=
|
|
|
13625 |
always_export_symbols_F77=no
|
|
|
13626 |
archive_expsym_cmds_F77=
|
|
|
13627 |
export_dynamic_flag_spec_F77=
|
|
|
13628 |
hardcode_direct_F77=no
|
|
|
13629 |
hardcode_libdir_flag_spec_F77=
|
|
|
13630 |
hardcode_libdir_flag_spec_ld_F77=
|
|
|
13631 |
hardcode_libdir_separator_F77=
|
|
|
13632 |
hardcode_minus_L_F77=no
|
|
|
13633 |
hardcode_automatic_F77=no
|
|
|
13634 |
module_cmds_F77=
|
|
|
13635 |
module_expsym_cmds_F77=
|
|
|
13636 |
link_all_deplibs_F77=unknown
|
|
|
13637 |
old_archive_cmds_F77=$old_archive_cmds
|
|
|
13638 |
no_undefined_flag_F77=
|
|
|
13639 |
whole_archive_flag_spec_F77=
|
|
|
13640 |
enable_shared_with_static_runtimes_F77=no
|
|
|
13641 |
|
|
|
13642 |
# Source file extension for f77 test sources.
|
|
|
13643 |
ac_ext=f
|
|
|
13644 |
|
|
|
13645 |
# Object file extension for compiled f77 test sources.
|
|
|
13646 |
objext=o
|
|
|
13647 |
objext_F77=$objext
|
|
|
13648 |
|
|
|
13649 |
# Code to be used in simple compile tests
|
|
|
13650 |
lt_simple_compile_test_code="\
|
|
|
13651 |
subroutine t
|
|
|
13652 |
return
|
|
|
13653 |
end
|
|
|
13654 |
"
|
|
|
13655 |
|
|
|
13656 |
# Code to be used in simple link tests
|
|
|
13657 |
lt_simple_link_test_code="\
|
|
|
13658 |
program t
|
|
|
13659 |
end
|
|
|
13660 |
"
|
|
|
13661 |
|
|
|
13662 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
13663 |
|
|
|
13664 |
# If no C compiler was specified, use CC.
|
|
|
13665 |
LTCC=${LTCC-"$CC"}
|
|
|
13666 |
|
|
|
13667 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
13668 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
13669 |
|
|
|
13670 |
# Allow CC to be a program name with arguments.
|
|
|
13671 |
compiler=$CC
|
|
|
13672 |
|
|
|
13673 |
|
|
|
13674 |
# save warnings/boilerplate of simple test code
|
|
|
13675 |
ac_outfile=conftest.$ac_objext
|
|
|
13676 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
13677 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
13678 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
13679 |
$rm conftest*
|
|
|
13680 |
|
|
|
13681 |
ac_outfile=conftest.$ac_objext
|
|
|
13682 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
13683 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
13684 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
13685 |
$rm conftest*
|
|
|
13686 |
|
|
|
13687 |
|
|
|
13688 |
# Allow CC to be a program name with arguments.
|
|
|
13689 |
lt_save_CC="$CC"
|
|
|
13690 |
CC=${F77-"f77"}
|
|
|
13691 |
compiler=$CC
|
|
|
13692 |
compiler_F77=$CC
|
|
|
13693 |
for cc_temp in $compiler""; do
|
|
|
13694 |
case $cc_temp in
|
|
|
13695 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
13696 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
13697 |
\-*) ;;
|
|
|
13698 |
*) break;;
|
|
|
13699 |
esac
|
|
|
13700 |
done
|
|
|
13701 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
13702 |
|
|
|
13703 |
|
|
|
13704 |
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
|
|
13705 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
|
|
|
13706 |
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
|
|
13707 |
echo "${ECHO_T}$can_build_shared" >&6; }
|
|
|
13708 |
|
|
|
13709 |
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
|
|
|
13710 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
|
|
|
13711 |
test "$can_build_shared" = "no" && enable_shared=no
|
|
|
13712 |
|
|
|
13713 |
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
|
13714 |
# are all built from PIC.
|
|
|
13715 |
case $host_os in
|
|
|
13716 |
aix3*)
|
|
|
13717 |
test "$enable_shared" = yes && enable_static=no
|
|
|
13718 |
if test -n "$RANLIB"; then
|
|
|
13719 |
archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
|
|
13720 |
postinstall_cmds='$RANLIB $lib'
|
|
|
13721 |
fi
|
|
|
13722 |
;;
|
|
|
13723 |
aix4* | aix5*)
|
|
|
13724 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
|
|
13725 |
test "$enable_shared" = yes && enable_static=no
|
|
|
13726 |
fi
|
|
|
13727 |
;;
|
|
|
13728 |
esac
|
|
|
13729 |
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
|
|
|
13730 |
echo "${ECHO_T}$enable_shared" >&6; }
|
|
|
13731 |
|
|
|
13732 |
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
|
|
|
13733 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
|
|
|
13734 |
# Make sure either enable_shared or enable_static is yes.
|
|
|
13735 |
test "$enable_shared" = yes || enable_static=yes
|
|
|
13736 |
{ echo "$as_me:$LINENO: result: $enable_static" >&5
|
|
|
13737 |
echo "${ECHO_T}$enable_static" >&6; }
|
|
|
13738 |
|
|
|
13739 |
GCC_F77="$G77"
|
|
|
13740 |
LD_F77="$LD"
|
|
|
13741 |
|
|
|
13742 |
lt_prog_compiler_wl_F77=
|
|
|
13743 |
lt_prog_compiler_pic_F77=
|
|
|
13744 |
lt_prog_compiler_static_F77=
|
|
|
13745 |
|
|
|
13746 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
|
|
13747 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
|
|
13748 |
|
|
|
13749 |
if test "$GCC" = yes; then
|
|
|
13750 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13751 |
lt_prog_compiler_static_F77='-static'
|
|
|
13752 |
|
|
|
13753 |
case $host_os in
|
|
|
13754 |
aix*)
|
|
|
13755 |
# All AIX code is PIC.
|
|
|
13756 |
if test "$host_cpu" = ia64; then
|
|
|
13757 |
# AIX 5 now supports IA64 processor
|
|
|
13758 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13759 |
fi
|
|
|
13760 |
;;
|
|
|
13761 |
|
|
|
13762 |
amigaos*)
|
|
|
13763 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
13764 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
13765 |
# like `-m68040'.
|
|
|
13766 |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
|
|
|
13767 |
;;
|
|
|
13768 |
|
|
|
13769 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
13770 |
# PIC is the default for these OSes.
|
|
|
13771 |
;;
|
|
|
13772 |
|
|
|
13773 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
13774 |
# This hack is so that the source file can tell whether it is being
|
|
|
13775 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
13776 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
13777 |
# (--disable-auto-import) libraries
|
|
|
13778 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
|
|
13779 |
;;
|
|
|
13780 |
|
|
|
13781 |
darwin* | rhapsody*)
|
|
|
13782 |
# PIC is the default on this platform
|
|
|
13783 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
13784 |
lt_prog_compiler_pic_F77='-fno-common'
|
|
|
13785 |
;;
|
|
|
13786 |
|
|
|
13787 |
interix[3-9]*)
|
|
|
13788 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
13789 |
# Instead, we relocate shared libraries at runtime.
|
|
|
13790 |
;;
|
|
|
13791 |
|
|
|
13792 |
msdosdjgpp*)
|
|
|
13793 |
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
|
13794 |
# on systems that don't support them.
|
|
|
13795 |
lt_prog_compiler_can_build_shared_F77=no
|
|
|
13796 |
enable_shared=no
|
|
|
13797 |
;;
|
|
|
13798 |
|
|
|
13799 |
sysv4*MP*)
|
|
|
13800 |
if test -d /usr/nec; then
|
|
|
13801 |
lt_prog_compiler_pic_F77=-Kconform_pic
|
|
|
13802 |
fi
|
|
|
13803 |
;;
|
|
|
13804 |
|
|
|
13805 |
hpux*)
|
|
|
13806 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
13807 |
# not for PA HP-UX.
|
|
|
13808 |
case $host_cpu in
|
|
|
13809 |
hppa*64*|ia64*)
|
|
|
13810 |
# +Z the default
|
|
|
13811 |
;;
|
|
|
13812 |
*)
|
|
|
13813 |
lt_prog_compiler_pic_F77='-fPIC'
|
|
|
13814 |
;;
|
|
|
13815 |
esac
|
|
|
13816 |
;;
|
|
|
13817 |
|
|
|
13818 |
*)
|
|
|
13819 |
lt_prog_compiler_pic_F77='-fPIC'
|
|
|
13820 |
;;
|
|
|
13821 |
esac
|
|
|
13822 |
else
|
|
|
13823 |
# PORTME Check for flag to pass linker flags through the system compiler.
|
|
|
13824 |
case $host_os in
|
|
|
13825 |
aix*)
|
|
|
13826 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13827 |
if test "$host_cpu" = ia64; then
|
|
|
13828 |
# AIX 5 now supports IA64 processor
|
|
|
13829 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13830 |
else
|
|
|
13831 |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
|
|
|
13832 |
fi
|
|
|
13833 |
;;
|
|
|
13834 |
darwin*)
|
|
|
13835 |
# PIC is the default on this platform
|
|
|
13836 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
13837 |
case $cc_basename in
|
|
|
13838 |
xlc*)
|
|
|
13839 |
lt_prog_compiler_pic_F77='-qnocommon'
|
|
|
13840 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13841 |
;;
|
|
|
13842 |
esac
|
|
|
13843 |
;;
|
|
|
13844 |
|
|
|
13845 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
13846 |
# This hack is so that the source file can tell whether it is being
|
|
|
13847 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
13848 |
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
|
|
|
13849 |
;;
|
|
|
13850 |
|
|
|
13851 |
hpux9* | hpux10* | hpux11*)
|
|
|
13852 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13853 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
13854 |
# not for PA HP-UX.
|
|
|
13855 |
case $host_cpu in
|
|
|
13856 |
hppa*64*|ia64*)
|
|
|
13857 |
# +Z the default
|
|
|
13858 |
;;
|
|
|
13859 |
*)
|
|
|
13860 |
lt_prog_compiler_pic_F77='+Z'
|
|
|
13861 |
;;
|
|
|
13862 |
esac
|
|
|
13863 |
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
|
13864 |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
|
|
|
13865 |
;;
|
|
|
13866 |
|
|
|
13867 |
irix5* | irix6* | nonstopux*)
|
|
|
13868 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13869 |
# PIC (with -KPIC) is the default.
|
|
|
13870 |
lt_prog_compiler_static_F77='-non_shared'
|
|
|
13871 |
;;
|
|
|
13872 |
|
|
|
13873 |
newsos6)
|
|
|
13874 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13875 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13876 |
;;
|
|
|
13877 |
|
|
|
13878 |
linux* | k*bsd*-gnu)
|
|
|
13879 |
case $cc_basename in
|
|
|
13880 |
icc* | ecc*)
|
|
|
13881 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13882 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13883 |
lt_prog_compiler_static_F77='-static'
|
|
|
13884 |
;;
|
|
|
13885 |
pgcc* | pgf77* | pgf90* | pgf95*)
|
|
|
13886 |
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
|
13887 |
# which looks to be a dead project)
|
|
|
13888 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13889 |
lt_prog_compiler_pic_F77='-fpic'
|
|
|
13890 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13891 |
;;
|
|
|
13892 |
ccc*)
|
|
|
13893 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13894 |
# All Alpha code is PIC.
|
|
|
13895 |
lt_prog_compiler_static_F77='-non_shared'
|
|
|
13896 |
;;
|
|
|
13897 |
*)
|
|
|
13898 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
13899 |
*Sun\ C*)
|
|
|
13900 |
# Sun C 5.9
|
|
|
13901 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13902 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13903 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13904 |
;;
|
|
|
13905 |
*Sun\ F*)
|
|
|
13906 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
|
13907 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13908 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13909 |
lt_prog_compiler_wl_F77=''
|
|
|
13910 |
;;
|
|
|
13911 |
esac
|
|
|
13912 |
;;
|
|
|
13913 |
esac
|
|
|
13914 |
;;
|
|
|
13915 |
|
|
|
13916 |
osf3* | osf4* | osf5*)
|
|
|
13917 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13918 |
# All OSF/1 code is PIC.
|
|
|
13919 |
lt_prog_compiler_static_F77='-non_shared'
|
|
|
13920 |
;;
|
|
|
13921 |
|
|
|
13922 |
rdos*)
|
|
|
13923 |
lt_prog_compiler_static_F77='-non_shared'
|
|
|
13924 |
;;
|
|
|
13925 |
|
|
|
13926 |
solaris*)
|
|
|
13927 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13928 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13929 |
case $cc_basename in
|
|
|
13930 |
f77* | f90* | f95*)
|
|
|
13931 |
lt_prog_compiler_wl_F77='-Qoption ld ';;
|
|
|
13932 |
*)
|
|
|
13933 |
lt_prog_compiler_wl_F77='-Wl,';;
|
|
|
13934 |
esac
|
|
|
13935 |
;;
|
|
|
13936 |
|
|
|
13937 |
sunos4*)
|
|
|
13938 |
lt_prog_compiler_wl_F77='-Qoption ld '
|
|
|
13939 |
lt_prog_compiler_pic_F77='-PIC'
|
|
|
13940 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13941 |
;;
|
|
|
13942 |
|
|
|
13943 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
|
13944 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13945 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13946 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13947 |
;;
|
|
|
13948 |
|
|
|
13949 |
sysv4*MP*)
|
|
|
13950 |
if test -d /usr/nec ;then
|
|
|
13951 |
lt_prog_compiler_pic_F77='-Kconform_pic'
|
|
|
13952 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13953 |
fi
|
|
|
13954 |
;;
|
|
|
13955 |
|
|
|
13956 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
13957 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13958 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
|
13959 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13960 |
;;
|
|
|
13961 |
|
|
|
13962 |
unicos*)
|
|
|
13963 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
|
13964 |
lt_prog_compiler_can_build_shared_F77=no
|
|
|
13965 |
;;
|
|
|
13966 |
|
|
|
13967 |
uts4*)
|
|
|
13968 |
lt_prog_compiler_pic_F77='-pic'
|
|
|
13969 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
|
13970 |
;;
|
|
|
13971 |
|
|
|
13972 |
*)
|
|
|
13973 |
lt_prog_compiler_can_build_shared_F77=no
|
|
|
13974 |
;;
|
|
|
13975 |
esac
|
|
|
13976 |
fi
|
|
|
13977 |
|
|
|
13978 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
|
|
|
13979 |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
|
|
|
13980 |
|
|
|
13981 |
#
|
|
|
13982 |
# Check to make sure the PIC flag actually works.
|
|
|
13983 |
#
|
|
|
13984 |
if test -n "$lt_prog_compiler_pic_F77"; then
|
|
|
13985 |
|
|
|
13986 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
|
|
|
13987 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
|
|
|
13988 |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
|
|
|
13989 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
13990 |
else
|
|
|
13991 |
lt_prog_compiler_pic_works_F77=no
|
|
|
13992 |
ac_outfile=conftest.$ac_objext
|
|
|
13993 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
13994 |
lt_compiler_flag="$lt_prog_compiler_pic_F77"
|
|
|
13995 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
13996 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
13997 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
13998 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
13999 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
14000 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
14001 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
14002 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
14003 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
14004 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
14005 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
14006 |
ac_status=$?
|
|
|
14007 |
cat conftest.err >&5
|
|
|
14008 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
14009 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
14010 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
14011 |
# So say no if there are warnings other than the usual output.
|
|
|
14012 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
14013 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
14014 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
14015 |
lt_prog_compiler_pic_works_F77=yes
|
|
|
14016 |
fi
|
|
|
14017 |
fi
|
|
|
14018 |
$rm conftest*
|
|
|
14019 |
|
|
|
14020 |
fi
|
|
|
14021 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
|
|
|
14022 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
|
|
|
14023 |
|
|
|
14024 |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
|
|
|
14025 |
case $lt_prog_compiler_pic_F77 in
|
|
|
14026 |
"" | " "*) ;;
|
|
|
14027 |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
|
|
|
14028 |
esac
|
|
|
14029 |
else
|
|
|
14030 |
lt_prog_compiler_pic_F77=
|
|
|
14031 |
lt_prog_compiler_can_build_shared_F77=no
|
|
|
14032 |
fi
|
|
|
14033 |
|
|
|
14034 |
fi
|
|
|
14035 |
case $host_os in
|
|
|
14036 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
|
14037 |
*djgpp*)
|
|
|
14038 |
lt_prog_compiler_pic_F77=
|
|
|
14039 |
;;
|
|
|
14040 |
*)
|
|
|
14041 |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
|
|
|
14042 |
;;
|
|
|
14043 |
esac
|
|
|
14044 |
|
|
|
14045 |
#
|
|
|
14046 |
# Check to make sure the static flag actually works.
|
|
|
14047 |
#
|
|
|
14048 |
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
|
|
14049 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
|
14050 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
|
|
14051 |
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
|
|
|
14052 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
14053 |
else
|
|
|
14054 |
lt_prog_compiler_static_works_F77=no
|
|
|
14055 |
save_LDFLAGS="$LDFLAGS"
|
|
|
14056 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
|
14057 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
|
14058 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
|
14059 |
# The linker can only warn and ignore the option if not recognized
|
|
|
14060 |
# So say no if there are warnings
|
|
|
14061 |
if test -s conftest.err; then
|
|
|
14062 |
# Append any errors to the config.log.
|
|
|
14063 |
cat conftest.err 1>&5
|
|
|
14064 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
|
14065 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
14066 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
14067 |
lt_prog_compiler_static_works_F77=yes
|
|
|
14068 |
fi
|
|
|
14069 |
else
|
|
|
14070 |
lt_prog_compiler_static_works_F77=yes
|
|
|
14071 |
fi
|
|
|
14072 |
fi
|
|
|
14073 |
$rm conftest*
|
|
|
14074 |
LDFLAGS="$save_LDFLAGS"
|
|
|
14075 |
|
|
|
14076 |
fi
|
|
|
14077 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
|
|
|
14078 |
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
|
|
|
14079 |
|
|
|
14080 |
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
|
|
|
14081 |
:
|
|
|
14082 |
else
|
|
|
14083 |
lt_prog_compiler_static_F77=
|
|
|
14084 |
fi
|
|
|
14085 |
|
|
|
14086 |
|
|
|
14087 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
|
14088 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
|
|
14089 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
|
|
14090 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
14091 |
else
|
|
|
14092 |
lt_cv_prog_compiler_c_o_F77=no
|
|
|
14093 |
$rm -r conftest 2>/dev/null
|
|
|
14094 |
mkdir conftest
|
|
|
14095 |
cd conftest
|
|
|
14096 |
mkdir out
|
|
|
14097 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
14098 |
|
|
|
14099 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
|
14100 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
14101 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
14102 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
14103 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
14104 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
14105 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
14106 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
14107 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
14108 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
14109 |
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
14110 |
ac_status=$?
|
|
|
14111 |
cat out/conftest.err >&5
|
|
|
14112 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
14113 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
14114 |
then
|
|
|
14115 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
14116 |
# So say no if there are warnings
|
|
|
14117 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
|
14118 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
|
14119 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
|
14120 |
lt_cv_prog_compiler_c_o_F77=yes
|
|
|
14121 |
fi
|
|
|
14122 |
fi
|
|
|
14123 |
chmod u+w . 2>&5
|
|
|
14124 |
$rm conftest*
|
|
|
14125 |
# SGI C++ compiler will create directory out/ii_files/ for
|
|
|
14126 |
# template instantiation
|
|
|
14127 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
|
|
14128 |
$rm out/* && rmdir out
|
|
|
14129 |
cd ..
|
|
|
14130 |
rmdir conftest
|
|
|
14131 |
$rm conftest*
|
|
|
14132 |
|
|
|
14133 |
fi
|
|
|
14134 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
|
|
|
14135 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
|
|
|
14136 |
|
|
|
14137 |
|
|
|
14138 |
hard_links="nottested"
|
|
|
14139 |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
|
|
|
14140 |
# do not overwrite the value of need_locks provided by the user
|
|
|
14141 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
|
|
14142 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
|
|
14143 |
hard_links=yes
|
|
|
14144 |
$rm conftest*
|
|
|
14145 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
14146 |
touch conftest.a
|
|
|
14147 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
14148 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
14149 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
|
|
14150 |
echo "${ECHO_T}$hard_links" >&6; }
|
|
|
14151 |
if test "$hard_links" = no; then
|
|
|
14152 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
|
|
14153 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
|
|
14154 |
need_locks=warn
|
|
|
14155 |
fi
|
|
|
14156 |
else
|
|
|
14157 |
need_locks=no
|
|
|
14158 |
fi
|
|
|
14159 |
|
|
|
14160 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
|
14161 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
|
|
14162 |
|
|
|
14163 |
runpath_var=
|
|
|
14164 |
allow_undefined_flag_F77=
|
|
|
14165 |
enable_shared_with_static_runtimes_F77=no
|
|
|
14166 |
archive_cmds_F77=
|
|
|
14167 |
archive_expsym_cmds_F77=
|
|
|
14168 |
old_archive_From_new_cmds_F77=
|
|
|
14169 |
old_archive_from_expsyms_cmds_F77=
|
|
|
14170 |
export_dynamic_flag_spec_F77=
|
|
|
14171 |
whole_archive_flag_spec_F77=
|
|
|
14172 |
thread_safe_flag_spec_F77=
|
|
|
14173 |
hardcode_libdir_flag_spec_F77=
|
|
|
14174 |
hardcode_libdir_flag_spec_ld_F77=
|
|
|
14175 |
hardcode_libdir_separator_F77=
|
|
|
14176 |
hardcode_direct_F77=no
|
|
|
14177 |
hardcode_minus_L_F77=no
|
|
|
14178 |
hardcode_shlibpath_var_F77=unsupported
|
|
|
14179 |
link_all_deplibs_F77=unknown
|
|
|
14180 |
hardcode_automatic_F77=no
|
|
|
14181 |
module_cmds_F77=
|
|
|
14182 |
module_expsym_cmds_F77=
|
|
|
14183 |
always_export_symbols_F77=no
|
|
|
14184 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
14185 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
|
14186 |
# included in the symbol list
|
|
|
14187 |
include_expsyms_F77=
|
|
|
14188 |
# exclude_expsyms can be an extended regexp of symbols to exclude
|
|
|
14189 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
|
14190 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
|
14191 |
# as well as any symbol that contains `d'.
|
|
|
14192 |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
|
|
|
14193 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
|
14194 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
|
14195 |
# the symbol is explicitly referenced. Since portable code cannot
|
|
|
14196 |
# rely on this symbol name, it's probably fine to never include it in
|
|
|
14197 |
# preloaded symbol tables.
|
|
|
14198 |
extract_expsyms_cmds=
|
|
|
14199 |
# Just being paranoid about ensuring that cc_basename is set.
|
|
|
14200 |
for cc_temp in $compiler""; do
|
|
|
14201 |
case $cc_temp in
|
|
|
14202 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
14203 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
14204 |
\-*) ;;
|
|
|
14205 |
*) break;;
|
|
|
14206 |
esac
|
|
|
14207 |
done
|
|
|
14208 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
14209 |
|
|
|
14210 |
case $host_os in
|
|
|
14211 |
cygwin* | mingw* | pw32*)
|
|
|
14212 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
|
14213 |
# When not using gcc, we currently assume that we are using
|
|
|
14214 |
# Microsoft Visual C++.
|
|
|
14215 |
if test "$GCC" != yes; then
|
|
|
14216 |
with_gnu_ld=no
|
|
|
14217 |
fi
|
|
|
14218 |
;;
|
|
|
14219 |
interix*)
|
|
|
14220 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
|
14221 |
with_gnu_ld=yes
|
|
|
14222 |
;;
|
|
|
14223 |
openbsd*)
|
|
|
14224 |
with_gnu_ld=no
|
|
|
14225 |
;;
|
|
|
14226 |
esac
|
|
|
14227 |
|
|
|
14228 |
ld_shlibs_F77=yes
|
|
|
14229 |
if test "$with_gnu_ld" = yes; then
|
|
|
14230 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
14231 |
wlarc='${wl}'
|
|
|
14232 |
|
|
|
14233 |
# Set some defaults for GNU ld with shared library support. These
|
|
|
14234 |
# are reset later if shared libraries are not supported. Putting them
|
|
|
14235 |
# here allows them to be overridden if necessary.
|
|
|
14236 |
runpath_var=LD_RUN_PATH
|
|
|
14237 |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
|
|
|
14238 |
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
|
|
|
14239 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
14240 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
|
|
14241 |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
14242 |
else
|
|
|
14243 |
whole_archive_flag_spec_F77=
|
|
|
14244 |
fi
|
|
|
14245 |
supports_anon_versioning=no
|
|
|
14246 |
case `$LD -v 2>/dev/null` in
|
|
|
14247 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
|
14248 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
|
14249 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
|
14250 |
*\ 2.11.*) ;; # other 2.11 versions
|
|
|
14251 |
*) supports_anon_versioning=yes ;;
|
|
|
14252 |
esac
|
|
|
14253 |
|
|
|
14254 |
# See if GNU ld supports shared libraries.
|
|
|
14255 |
case $host_os in
|
|
|
14256 |
aix3* | aix4* | aix5*)
|
|
|
14257 |
# On AIX/PPC, the GNU linker is very broken
|
|
|
14258 |
if test "$host_cpu" != ia64; then
|
|
|
14259 |
ld_shlibs_F77=no
|
|
|
14260 |
cat <<EOF 1>&2
|
|
|
14261 |
|
|
|
14262 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|
|
14263 |
*** to be unable to reliably create shared libraries on AIX.
|
|
|
14264 |
*** Therefore, libtool is disabling shared libraries support. If you
|
|
|
14265 |
*** really care for shared libraries, you may want to modify your PATH
|
|
|
14266 |
*** so that a non-GNU linker is found, and then restart.
|
|
|
14267 |
|
|
|
14268 |
EOF
|
|
|
14269 |
fi
|
|
|
14270 |
;;
|
|
|
14271 |
|
|
|
14272 |
amigaos*)
|
|
|
14273 |
archive_cmds_F77='$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)'
|
|
|
14274 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14275 |
hardcode_minus_L_F77=yes
|
|
|
14276 |
|
|
|
14277 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
|
|
14278 |
# that the semantics of dynamic libraries on AmigaOS, at least up
|
|
|
14279 |
# to version 4, is to share data among multiple programs linked
|
|
|
14280 |
# with the same dynamic library. Since this doesn't match the
|
|
|
14281 |
# behavior of shared libraries on other platforms, we can't use
|
|
|
14282 |
# them.
|
|
|
14283 |
ld_shlibs_F77=no
|
|
|
14284 |
;;
|
|
|
14285 |
|
|
|
14286 |
beos*)
|
|
|
14287 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
14288 |
allow_undefined_flag_F77=unsupported
|
|
|
14289 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
14290 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
14291 |
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
14292 |
else
|
|
|
14293 |
ld_shlibs_F77=no
|
|
|
14294 |
fi
|
|
|
14295 |
;;
|
|
|
14296 |
|
|
|
14297 |
cygwin* | mingw* | pw32*)
|
|
|
14298 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
|
|
|
14299 |
# as there is no search path for DLLs.
|
|
|
14300 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14301 |
allow_undefined_flag_F77=unsupported
|
|
|
14302 |
always_export_symbols_F77=no
|
|
|
14303 |
enable_shared_with_static_runtimes_F77=yes
|
|
|
14304 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
|
14305 |
|
|
|
14306 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
|
14307 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
14308 |
# If the export-symbols file already is a .def file (1st line
|
|
|
14309 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
14310 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
14311 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
14312 |
else
|
|
|
14313 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
14314 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
14315 |
fi~
|
|
|
14316 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
14317 |
else
|
|
|
14318 |
ld_shlibs_F77=no
|
|
|
14319 |
fi
|
|
|
14320 |
;;
|
|
|
14321 |
|
|
|
14322 |
interix[3-9]*)
|
|
|
14323 |
hardcode_direct_F77=no
|
|
|
14324 |
hardcode_shlibpath_var_F77=no
|
|
|
14325 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
|
14326 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
|
14327 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
14328 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
14329 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
14330 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
14331 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
14332 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
14333 |
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
14334 |
archive_expsym_cmds_F77='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'
|
|
|
14335 |
;;
|
|
|
14336 |
|
|
|
14337 |
gnu* | linux* | k*bsd*-gnu)
|
|
|
14338 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
14339 |
tmp_addflag=
|
|
|
14340 |
case $cc_basename,$host_cpu in
|
|
|
14341 |
pgcc*) # Portland Group C compiler
|
|
|
14342 |
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
14343 |
tmp_addflag=' $pic_flag'
|
|
|
14344 |
;;
|
|
|
14345 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
|
|
14346 |
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
14347 |
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
|
14348 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
|
14349 |
tmp_addflag=' -i_dynamic' ;;
|
|
|
14350 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
|
14351 |
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
|
14352 |
ifc* | ifort*) # Intel Fortran compiler
|
|
|
14353 |
tmp_addflag=' -nofor_main' ;;
|
|
|
14354 |
esac
|
|
|
14355 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
14356 |
*Sun\ C*) # Sun C 5.9
|
|
|
14357 |
whole_archive_flag_spec_F77='${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'
|
|
|
14358 |
tmp_sharedflag='-G' ;;
|
|
|
14359 |
*Sun\ F*) # Sun Fortran 8.3
|
|
|
14360 |
tmp_sharedflag='-G' ;;
|
|
|
14361 |
*)
|
|
|
14362 |
tmp_sharedflag='-shared' ;;
|
|
|
14363 |
esac
|
|
|
14364 |
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
14365 |
|
|
|
14366 |
if test $supports_anon_versioning = yes; then
|
|
|
14367 |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
14368 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
14369 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
14370 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
|
14371 |
fi
|
|
|
14372 |
link_all_deplibs_F77=no
|
|
|
14373 |
else
|
|
|
14374 |
ld_shlibs_F77=no
|
|
|
14375 |
fi
|
|
|
14376 |
;;
|
|
|
14377 |
|
|
|
14378 |
netbsd* | netbsdelf*-gnu)
|
|
|
14379 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
14380 |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
|
14381 |
wlarc=
|
|
|
14382 |
else
|
|
|
14383 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
14384 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
14385 |
fi
|
|
|
14386 |
;;
|
|
|
14387 |
|
|
|
14388 |
solaris*)
|
|
|
14389 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
|
|
14390 |
ld_shlibs_F77=no
|
|
|
14391 |
cat <<EOF 1>&2
|
|
|
14392 |
|
|
|
14393 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
|
14394 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
|
14395 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
14396 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
|
14397 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
14398 |
*** used, and then restart.
|
|
|
14399 |
|
|
|
14400 |
EOF
|
|
|
14401 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
14402 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
14403 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
14404 |
else
|
|
|
14405 |
ld_shlibs_F77=no
|
|
|
14406 |
fi
|
|
|
14407 |
;;
|
|
|
14408 |
|
|
|
14409 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
14410 |
case `$LD -v 2>&1` in
|
|
|
14411 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
|
14412 |
ld_shlibs_F77=no
|
|
|
14413 |
cat <<_LT_EOF 1>&2
|
|
|
14414 |
|
|
|
14415 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
|
14416 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
|
14417 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
14418 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
|
14419 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
14420 |
*** used, and then restart.
|
|
|
14421 |
|
|
|
14422 |
_LT_EOF
|
|
|
14423 |
;;
|
|
|
14424 |
*)
|
|
|
14425 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
14426 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
|
14427 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
|
14428 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
|
14429 |
else
|
|
|
14430 |
ld_shlibs_F77=no
|
|
|
14431 |
fi
|
|
|
14432 |
;;
|
|
|
14433 |
esac
|
|
|
14434 |
;;
|
|
|
14435 |
|
|
|
14436 |
sunos4*)
|
|
|
14437 |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14438 |
wlarc=
|
|
|
14439 |
hardcode_direct_F77=yes
|
|
|
14440 |
hardcode_shlibpath_var_F77=no
|
|
|
14441 |
;;
|
|
|
14442 |
|
|
|
14443 |
*)
|
|
|
14444 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
14445 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
14446 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
14447 |
else
|
|
|
14448 |
ld_shlibs_F77=no
|
|
|
14449 |
fi
|
|
|
14450 |
;;
|
|
|
14451 |
esac
|
|
|
14452 |
|
|
|
14453 |
if test "$ld_shlibs_F77" = no; then
|
|
|
14454 |
runpath_var=
|
|
|
14455 |
hardcode_libdir_flag_spec_F77=
|
|
|
14456 |
export_dynamic_flag_spec_F77=
|
|
|
14457 |
whole_archive_flag_spec_F77=
|
|
|
14458 |
fi
|
|
|
14459 |
else
|
|
|
14460 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
|
14461 |
case $host_os in
|
|
|
14462 |
aix3*)
|
|
|
14463 |
allow_undefined_flag_F77=unsupported
|
|
|
14464 |
always_export_symbols_F77=yes
|
|
|
14465 |
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|
|
14466 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
|
14467 |
# are no directories specified by -L.
|
|
|
14468 |
hardcode_minus_L_F77=yes
|
|
|
14469 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
|
14470 |
# Neither direct hardcoding nor static linking is supported with a
|
|
|
14471 |
# broken collect2.
|
|
|
14472 |
hardcode_direct_F77=unsupported
|
|
|
14473 |
fi
|
|
|
14474 |
;;
|
|
|
14475 |
|
|
|
14476 |
aix4* | aix5*)
|
|
|
14477 |
if test "$host_cpu" = ia64; then
|
|
|
14478 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
14479 |
# have to do anything special.
|
|
|
14480 |
aix_use_runtimelinking=no
|
|
|
14481 |
exp_sym_flag='-Bexport'
|
|
|
14482 |
no_entry_flag=""
|
|
|
14483 |
else
|
|
|
14484 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
14485 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
14486 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|
|
14487 |
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
14488 |
else
|
|
|
14489 |
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
14490 |
fi
|
|
|
14491 |
aix_use_runtimelinking=no
|
|
|
14492 |
|
|
|
14493 |
# Test if we are trying to use run time linking or normal
|
|
|
14494 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
14495 |
# need to do runtime linking.
|
|
|
14496 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
|
|
14497 |
for ld_flag in $LDFLAGS; do
|
|
|
14498 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
|
14499 |
aix_use_runtimelinking=yes
|
|
|
14500 |
break
|
|
|
14501 |
fi
|
|
|
14502 |
done
|
|
|
14503 |
;;
|
|
|
14504 |
esac
|
|
|
14505 |
|
|
|
14506 |
exp_sym_flag='-bexport'
|
|
|
14507 |
no_entry_flag='-bnoentry'
|
|
|
14508 |
fi
|
|
|
14509 |
|
|
|
14510 |
# When large executables or shared objects are built, AIX ld can
|
|
|
14511 |
# have problems creating the table of contents. If linking a library
|
|
|
14512 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
14513 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
14514 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
14515 |
|
|
|
14516 |
archive_cmds_F77=''
|
|
|
14517 |
hardcode_direct_F77=yes
|
|
|
14518 |
hardcode_libdir_separator_F77=':'
|
|
|
14519 |
link_all_deplibs_F77=yes
|
|
|
14520 |
|
|
|
14521 |
if test "$GCC" = yes; then
|
|
|
14522 |
case $host_os in aix4.[012]|aix4.[012].*)
|
|
|
14523 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
14524 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
14525 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
14526 |
if test -f "$collect2name" && \
|
|
|
14527 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
|
14528 |
then
|
|
|
14529 |
# We have reworked collect2
|
|
|
14530 |
:
|
|
|
14531 |
else
|
|
|
14532 |
# We have old collect2
|
|
|
14533 |
hardcode_direct_F77=unsupported
|
|
|
14534 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
14535 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
14536 |
# to unsupported forces relinking
|
|
|
14537 |
hardcode_minus_L_F77=yes
|
|
|
14538 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14539 |
hardcode_libdir_separator_F77=
|
|
|
14540 |
fi
|
|
|
14541 |
;;
|
|
|
14542 |
esac
|
|
|
14543 |
shared_flag='-shared'
|
|
|
14544 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
14545 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
14546 |
fi
|
|
|
14547 |
else
|
|
|
14548 |
# not using gcc
|
|
|
14549 |
if test "$host_cpu" = ia64; then
|
|
|
14550 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
14551 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
14552 |
shared_flag='-G'
|
|
|
14553 |
else
|
|
|
14554 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
14555 |
shared_flag='${wl}-G'
|
|
|
14556 |
else
|
|
|
14557 |
shared_flag='${wl}-bM:SRE'
|
|
|
14558 |
fi
|
|
|
14559 |
fi
|
|
|
14560 |
fi
|
|
|
14561 |
|
|
|
14562 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
14563 |
# underscore (_), so it is better to generate a list of symbols to export.
|
|
|
14564 |
always_export_symbols_F77=yes
|
|
|
14565 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
14566 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
14567 |
# -berok will link without error, but may produce a broken library.
|
|
|
14568 |
allow_undefined_flag_F77='-berok'
|
|
|
14569 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
14570 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
14571 |
program main
|
|
|
14572 |
|
|
|
14573 |
end
|
|
|
14574 |
_ACEOF
|
|
|
14575 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
14576 |
if { (ac_try="$ac_link"
|
|
|
14577 |
case "(($ac_try" in
|
|
|
14578 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
14579 |
*) ac_try_echo=$ac_try;;
|
|
|
14580 |
esac
|
|
|
14581 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
14582 |
(eval "$ac_link") 2>conftest.er1
|
|
|
14583 |
ac_status=$?
|
|
|
14584 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
14585 |
rm -f conftest.er1
|
|
|
14586 |
cat conftest.err >&5
|
|
|
14587 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
14588 |
(exit $ac_status); } && {
|
|
|
14589 |
test -z "$ac_f77_werror_flag" ||
|
|
|
14590 |
test ! -s conftest.err
|
|
|
14591 |
} && test -s conftest$ac_exeext &&
|
|
|
14592 |
$as_test_x conftest$ac_exeext; then
|
|
|
14593 |
|
|
|
14594 |
lt_aix_libpath_sed='
|
|
|
14595 |
/Import File Strings/,/^$/ {
|
|
|
14596 |
/^0/ {
|
|
|
14597 |
s/^0 *\(.*\)$/\1/
|
|
|
14598 |
p
|
|
|
14599 |
}
|
|
|
14600 |
}'
|
|
|
14601 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
14602 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
14603 |
if test -z "$aix_libpath"; then
|
|
|
14604 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
14605 |
fi
|
|
|
14606 |
else
|
|
|
14607 |
echo "$as_me: failed program was:" >&5
|
|
|
14608 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
14609 |
|
|
|
14610 |
|
|
|
14611 |
fi
|
|
|
14612 |
|
|
|
14613 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
14614 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
14615 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
14616 |
|
|
|
14617 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
14618 |
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
14619 |
else
|
|
|
14620 |
if test "$host_cpu" = ia64; then
|
|
|
14621 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
14622 |
allow_undefined_flag_F77="-z nodefs"
|
|
|
14623 |
archive_expsym_cmds_F77="\$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"
|
|
|
14624 |
else
|
|
|
14625 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
14626 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
14627 |
program main
|
|
|
14628 |
|
|
|
14629 |
end
|
|
|
14630 |
_ACEOF
|
|
|
14631 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
14632 |
if { (ac_try="$ac_link"
|
|
|
14633 |
case "(($ac_try" in
|
|
|
14634 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
14635 |
*) ac_try_echo=$ac_try;;
|
|
|
14636 |
esac
|
|
|
14637 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
14638 |
(eval "$ac_link") 2>conftest.er1
|
|
|
14639 |
ac_status=$?
|
|
|
14640 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
14641 |
rm -f conftest.er1
|
|
|
14642 |
cat conftest.err >&5
|
|
|
14643 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
14644 |
(exit $ac_status); } && {
|
|
|
14645 |
test -z "$ac_f77_werror_flag" ||
|
|
|
14646 |
test ! -s conftest.err
|
|
|
14647 |
} && test -s conftest$ac_exeext &&
|
|
|
14648 |
$as_test_x conftest$ac_exeext; then
|
|
|
14649 |
|
|
|
14650 |
lt_aix_libpath_sed='
|
|
|
14651 |
/Import File Strings/,/^$/ {
|
|
|
14652 |
/^0/ {
|
|
|
14653 |
s/^0 *\(.*\)$/\1/
|
|
|
14654 |
p
|
|
|
14655 |
}
|
|
|
14656 |
}'
|
|
|
14657 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
14658 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
14659 |
if test -z "$aix_libpath"; then
|
|
|
14660 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
14661 |
fi
|
|
|
14662 |
else
|
|
|
14663 |
echo "$as_me: failed program was:" >&5
|
|
|
14664 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
14665 |
|
|
|
14666 |
|
|
|
14667 |
fi
|
|
|
14668 |
|
|
|
14669 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
14670 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
14671 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
14672 |
|
|
|
14673 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
14674 |
# Warning - without using the other run time loading flags,
|
|
|
14675 |
# -berok will link without error, but may produce a broken library.
|
|
|
14676 |
no_undefined_flag_F77=' ${wl}-bernotok'
|
|
|
14677 |
allow_undefined_flag_F77=' ${wl}-berok'
|
|
|
14678 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
14679 |
whole_archive_flag_spec_F77='$convenience'
|
|
|
14680 |
archive_cmds_need_lc_F77=yes
|
|
|
14681 |
# This is similar to how AIX traditionally builds its shared libraries.
|
|
|
14682 |
archive_expsym_cmds_F77="\$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'
|
|
|
14683 |
fi
|
|
|
14684 |
fi
|
|
|
14685 |
;;
|
|
|
14686 |
|
|
|
14687 |
amigaos*)
|
|
|
14688 |
archive_cmds_F77='$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)'
|
|
|
14689 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14690 |
hardcode_minus_L_F77=yes
|
|
|
14691 |
# see comment about different semantics on the GNU ld section
|
|
|
14692 |
ld_shlibs_F77=no
|
|
|
14693 |
;;
|
|
|
14694 |
|
|
|
14695 |
bsdi[45]*)
|
|
|
14696 |
export_dynamic_flag_spec_F77=-rdynamic
|
|
|
14697 |
;;
|
|
|
14698 |
|
|
|
14699 |
cygwin* | mingw* | pw32*)
|
|
|
14700 |
# When not using gcc, we currently assume that we are using
|
|
|
14701 |
# Microsoft Visual C++.
|
|
|
14702 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
14703 |
# no search path for DLLs.
|
|
|
14704 |
hardcode_libdir_flag_spec_F77=' '
|
|
|
14705 |
allow_undefined_flag_F77=unsupported
|
|
|
14706 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
14707 |
libext=lib
|
|
|
14708 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
14709 |
shrext_cmds=".dll"
|
|
|
14710 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
14711 |
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
|
14712 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
|
14713 |
old_archive_From_new_cmds_F77='true'
|
|
|
14714 |
# FIXME: Should let the user specify the lib program.
|
|
|
14715 |
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
|
14716 |
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
|
|
14717 |
enable_shared_with_static_runtimes_F77=yes
|
|
|
14718 |
;;
|
|
|
14719 |
|
|
|
14720 |
darwin* | rhapsody*)
|
|
|
14721 |
case $host_os in
|
|
|
14722 |
rhapsody* | darwin1.[012])
|
|
|
14723 |
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
|
|
|
14724 |
;;
|
|
|
14725 |
*) # Darwin 1.3 on
|
|
|
14726 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
|
14727 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
14728 |
else
|
|
|
14729 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
|
14730 |
10.[012])
|
|
|
14731 |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
14732 |
;;
|
|
|
14733 |
10.*)
|
|
|
14734 |
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
|
|
|
14735 |
;;
|
|
|
14736 |
esac
|
|
|
14737 |
fi
|
|
|
14738 |
;;
|
|
|
14739 |
esac
|
|
|
14740 |
archive_cmds_need_lc_F77=no
|
|
|
14741 |
hardcode_direct_F77=no
|
|
|
14742 |
hardcode_automatic_F77=yes
|
|
|
14743 |
hardcode_shlibpath_var_F77=unsupported
|
|
|
14744 |
whole_archive_flag_spec_F77=''
|
|
|
14745 |
link_all_deplibs_F77=yes
|
|
|
14746 |
if test "$GCC" = yes ; then
|
|
|
14747 |
output_verbose_link_cmd='echo'
|
|
|
14748 |
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
|
14749 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
14750 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
14751 |
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
14752 |
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
14753 |
else
|
|
|
14754 |
case $cc_basename in
|
|
|
14755 |
xlc*)
|
|
|
14756 |
output_verbose_link_cmd='echo'
|
|
|
14757 |
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
|
14758 |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
14759 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
14760 |
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
14761 |
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
14762 |
;;
|
|
|
14763 |
*)
|
|
|
14764 |
ld_shlibs_F77=no
|
|
|
14765 |
;;
|
|
|
14766 |
esac
|
|
|
14767 |
fi
|
|
|
14768 |
;;
|
|
|
14769 |
|
|
|
14770 |
dgux*)
|
|
|
14771 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14772 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14773 |
hardcode_shlibpath_var_F77=no
|
|
|
14774 |
;;
|
|
|
14775 |
|
|
|
14776 |
freebsd1*)
|
|
|
14777 |
ld_shlibs_F77=no
|
|
|
14778 |
;;
|
|
|
14779 |
|
|
|
14780 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
|
14781 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
|
14782 |
# does not break anything, and helps significantly (at the cost of a little
|
|
|
14783 |
# extra space).
|
|
|
14784 |
freebsd2.2*)
|
|
|
14785 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
|
14786 |
hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
|
14787 |
hardcode_direct_F77=yes
|
|
|
14788 |
hardcode_shlibpath_var_F77=no
|
|
|
14789 |
;;
|
|
|
14790 |
|
|
|
14791 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
|
14792 |
freebsd2*)
|
|
|
14793 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14794 |
hardcode_direct_F77=yes
|
|
|
14795 |
hardcode_minus_L_F77=yes
|
|
|
14796 |
hardcode_shlibpath_var_F77=no
|
|
|
14797 |
;;
|
|
|
14798 |
|
|
|
14799 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
|
14800 |
freebsd* | dragonfly*)
|
|
|
14801 |
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14802 |
hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
|
14803 |
hardcode_direct_F77=yes
|
|
|
14804 |
hardcode_shlibpath_var_F77=no
|
|
|
14805 |
;;
|
|
|
14806 |
|
|
|
14807 |
hpux9*)
|
|
|
14808 |
if test "$GCC" = yes; then
|
|
|
14809 |
archive_cmds_F77='$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'
|
|
|
14810 |
else
|
|
|
14811 |
archive_cmds_F77='$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'
|
|
|
14812 |
fi
|
|
|
14813 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
|
14814 |
hardcode_libdir_separator_F77=:
|
|
|
14815 |
hardcode_direct_F77=yes
|
|
|
14816 |
|
|
|
14817 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
14818 |
# but as the default location of the library.
|
|
|
14819 |
hardcode_minus_L_F77=yes
|
|
|
14820 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
|
14821 |
;;
|
|
|
14822 |
|
|
|
14823 |
hpux10*)
|
|
|
14824 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
14825 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14826 |
else
|
|
|
14827 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14828 |
fi
|
|
|
14829 |
if test "$with_gnu_ld" = no; then
|
|
|
14830 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
|
14831 |
hardcode_libdir_separator_F77=:
|
|
|
14832 |
|
|
|
14833 |
hardcode_direct_F77=yes
|
|
|
14834 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
|
14835 |
|
|
|
14836 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
14837 |
# but as the default location of the library.
|
|
|
14838 |
hardcode_minus_L_F77=yes
|
|
|
14839 |
fi
|
|
|
14840 |
;;
|
|
|
14841 |
|
|
|
14842 |
hpux11*)
|
|
|
14843 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
14844 |
case $host_cpu in
|
|
|
14845 |
hppa*64*)
|
|
|
14846 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14847 |
;;
|
|
|
14848 |
ia64*)
|
|
|
14849 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14850 |
;;
|
|
|
14851 |
*)
|
|
|
14852 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14853 |
;;
|
|
|
14854 |
esac
|
|
|
14855 |
else
|
|
|
14856 |
case $host_cpu in
|
|
|
14857 |
hppa*64*)
|
|
|
14858 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14859 |
;;
|
|
|
14860 |
ia64*)
|
|
|
14861 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14862 |
;;
|
|
|
14863 |
*)
|
|
|
14864 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14865 |
;;
|
|
|
14866 |
esac
|
|
|
14867 |
fi
|
|
|
14868 |
if test "$with_gnu_ld" = no; then
|
|
|
14869 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
|
14870 |
hardcode_libdir_separator_F77=:
|
|
|
14871 |
|
|
|
14872 |
case $host_cpu in
|
|
|
14873 |
hppa*64*|ia64*)
|
|
|
14874 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
|
|
14875 |
hardcode_direct_F77=no
|
|
|
14876 |
hardcode_shlibpath_var_F77=no
|
|
|
14877 |
;;
|
|
|
14878 |
*)
|
|
|
14879 |
hardcode_direct_F77=yes
|
|
|
14880 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
|
14881 |
|
|
|
14882 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
14883 |
# but as the default location of the library.
|
|
|
14884 |
hardcode_minus_L_F77=yes
|
|
|
14885 |
;;
|
|
|
14886 |
esac
|
|
|
14887 |
fi
|
|
|
14888 |
;;
|
|
|
14889 |
|
|
|
14890 |
irix5* | irix6* | nonstopux*)
|
|
|
14891 |
if test "$GCC" = yes; then
|
|
|
14892 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
14893 |
else
|
|
|
14894 |
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
14895 |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
|
|
|
14896 |
fi
|
|
|
14897 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
|
|
14898 |
hardcode_libdir_separator_F77=:
|
|
|
14899 |
link_all_deplibs_F77=yes
|
|
|
14900 |
;;
|
|
|
14901 |
|
|
|
14902 |
netbsd* | netbsdelf*-gnu)
|
|
|
14903 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
14904 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
|
14905 |
else
|
|
|
14906 |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
|
14907 |
fi
|
|
|
14908 |
hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
|
14909 |
hardcode_direct_F77=yes
|
|
|
14910 |
hardcode_shlibpath_var_F77=no
|
|
|
14911 |
;;
|
|
|
14912 |
|
|
|
14913 |
newsos6)
|
|
|
14914 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14915 |
hardcode_direct_F77=yes
|
|
|
14916 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
|
|
14917 |
hardcode_libdir_separator_F77=:
|
|
|
14918 |
hardcode_shlibpath_var_F77=no
|
|
|
14919 |
;;
|
|
|
14920 |
|
|
|
14921 |
openbsd*)
|
|
|
14922 |
if test -f /usr/libexec/ld.so; then
|
|
|
14923 |
hardcode_direct_F77=yes
|
|
|
14924 |
hardcode_shlibpath_var_F77=no
|
|
|
14925 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
14926 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14927 |
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
|
14928 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
|
14929 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
|
14930 |
else
|
|
|
14931 |
case $host_os in
|
|
|
14932 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
|
14933 |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14934 |
hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
|
14935 |
;;
|
|
|
14936 |
*)
|
|
|
14937 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14938 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
|
14939 |
;;
|
|
|
14940 |
esac
|
|
|
14941 |
fi
|
|
|
14942 |
else
|
|
|
14943 |
ld_shlibs_F77=no
|
|
|
14944 |
fi
|
|
|
14945 |
;;
|
|
|
14946 |
|
|
|
14947 |
os2*)
|
|
|
14948 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
14949 |
hardcode_minus_L_F77=yes
|
|
|
14950 |
allow_undefined_flag_F77=unsupported
|
|
|
14951 |
archive_cmds_F77='$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'
|
|
|
14952 |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
|
14953 |
;;
|
|
|
14954 |
|
|
|
14955 |
osf3*)
|
|
|
14956 |
if test "$GCC" = yes; then
|
|
|
14957 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
14958 |
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
14959 |
else
|
|
|
14960 |
allow_undefined_flag_F77=' -expect_unresolved \*'
|
|
|
14961 |
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
14962 |
fi
|
|
|
14963 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
|
|
14964 |
hardcode_libdir_separator_F77=:
|
|
|
14965 |
;;
|
|
|
14966 |
|
|
|
14967 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
|
14968 |
if test "$GCC" = yes; then
|
|
|
14969 |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
14970 |
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
14971 |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
|
|
|
14972 |
else
|
|
|
14973 |
allow_undefined_flag_F77=' -expect_unresolved \*'
|
|
|
14974 |
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
14975 |
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
|
|
14976 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
|
|
14977 |
|
|
|
14978 |
# Both c and cxx compiler support -rpath directly
|
|
|
14979 |
hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
|
|
14980 |
fi
|
|
|
14981 |
hardcode_libdir_separator_F77=:
|
|
|
14982 |
;;
|
|
|
14983 |
|
|
|
14984 |
solaris*)
|
|
|
14985 |
no_undefined_flag_F77=' -z text'
|
|
|
14986 |
if test "$GCC" = yes; then
|
|
|
14987 |
wlarc='${wl}'
|
|
|
14988 |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
14989 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
14990 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
|
|
14991 |
else
|
|
|
14992 |
wlarc=''
|
|
|
14993 |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
14994 |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
14995 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
|
14996 |
fi
|
|
|
14997 |
hardcode_libdir_flag_spec_F77='-R$libdir'
|
|
|
14998 |
hardcode_shlibpath_var_F77=no
|
|
|
14999 |
case $host_os in
|
|
|
15000 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
|
15001 |
*)
|
|
|
15002 |
# The compiler driver will combine and reorder linker options,
|
|
|
15003 |
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
|
15004 |
# but is careful enough not to reorder.
|
|
|
15005 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
15006 |
if test "$GCC" = yes; then
|
|
|
15007 |
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
15008 |
else
|
|
|
15009 |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
|
|
|
15010 |
fi
|
|
|
15011 |
;;
|
|
|
15012 |
esac
|
|
|
15013 |
link_all_deplibs_F77=yes
|
|
|
15014 |
;;
|
|
|
15015 |
|
|
|
15016 |
sunos4*)
|
|
|
15017 |
if test "x$host_vendor" = xsequent; then
|
|
|
15018 |
# Use $CC to link under sequent, because it throws in some extra .o
|
|
|
15019 |
# files that make .init and .fini sections work.
|
|
|
15020 |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15021 |
else
|
|
|
15022 |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15023 |
fi
|
|
|
15024 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
15025 |
hardcode_direct_F77=yes
|
|
|
15026 |
hardcode_minus_L_F77=yes
|
|
|
15027 |
hardcode_shlibpath_var_F77=no
|
|
|
15028 |
;;
|
|
|
15029 |
|
|
|
15030 |
sysv4)
|
|
|
15031 |
case $host_vendor in
|
|
|
15032 |
sni)
|
|
|
15033 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15034 |
hardcode_direct_F77=yes # is this really true???
|
|
|
15035 |
;;
|
|
|
15036 |
siemens)
|
|
|
15037 |
## LD is ld it makes a PLAMLIB
|
|
|
15038 |
## CC just makes a GrossModule.
|
|
|
15039 |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15040 |
reload_cmds_F77='$CC -r -o $output$reload_objs'
|
|
|
15041 |
hardcode_direct_F77=no
|
|
|
15042 |
;;
|
|
|
15043 |
motorola)
|
|
|
15044 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15045 |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
|
|
|
15046 |
;;
|
|
|
15047 |
esac
|
|
|
15048 |
runpath_var='LD_RUN_PATH'
|
|
|
15049 |
hardcode_shlibpath_var_F77=no
|
|
|
15050 |
;;
|
|
|
15051 |
|
|
|
15052 |
sysv4.3*)
|
|
|
15053 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15054 |
hardcode_shlibpath_var_F77=no
|
|
|
15055 |
export_dynamic_flag_spec_F77='-Bexport'
|
|
|
15056 |
;;
|
|
|
15057 |
|
|
|
15058 |
sysv4*MP*)
|
|
|
15059 |
if test -d /usr/nec; then
|
|
|
15060 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15061 |
hardcode_shlibpath_var_F77=no
|
|
|
15062 |
runpath_var=LD_RUN_PATH
|
|
|
15063 |
hardcode_runpath_var=yes
|
|
|
15064 |
ld_shlibs_F77=yes
|
|
|
15065 |
fi
|
|
|
15066 |
;;
|
|
|
15067 |
|
|
|
15068 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
|
15069 |
no_undefined_flag_F77='${wl}-z,text'
|
|
|
15070 |
archive_cmds_need_lc_F77=no
|
|
|
15071 |
hardcode_shlibpath_var_F77=no
|
|
|
15072 |
runpath_var='LD_RUN_PATH'
|
|
|
15073 |
|
|
|
15074 |
if test "$GCC" = yes; then
|
|
|
15075 |
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15076 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15077 |
else
|
|
|
15078 |
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15079 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15080 |
fi
|
|
|
15081 |
;;
|
|
|
15082 |
|
|
|
15083 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
15084 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
15085 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
15086 |
# always be unresolved, which means just about no library would
|
|
|
15087 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
15088 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
15089 |
# as -z defs.
|
|
|
15090 |
no_undefined_flag_F77='${wl}-z,text'
|
|
|
15091 |
allow_undefined_flag_F77='${wl}-z,nodefs'
|
|
|
15092 |
archive_cmds_need_lc_F77=no
|
|
|
15093 |
hardcode_shlibpath_var_F77=no
|
|
|
15094 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
|
15095 |
hardcode_libdir_separator_F77=':'
|
|
|
15096 |
link_all_deplibs_F77=yes
|
|
|
15097 |
export_dynamic_flag_spec_F77='${wl}-Bexport'
|
|
|
15098 |
runpath_var='LD_RUN_PATH'
|
|
|
15099 |
|
|
|
15100 |
if test "$GCC" = yes; then
|
|
|
15101 |
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15102 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15103 |
else
|
|
|
15104 |
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15105 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
15106 |
fi
|
|
|
15107 |
;;
|
|
|
15108 |
|
|
|
15109 |
uts4*)
|
|
|
15110 |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
15111 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
|
|
15112 |
hardcode_shlibpath_var_F77=no
|
|
|
15113 |
;;
|
|
|
15114 |
|
|
|
15115 |
*)
|
|
|
15116 |
ld_shlibs_F77=no
|
|
|
15117 |
;;
|
|
|
15118 |
esac
|
|
|
15119 |
fi
|
|
|
15120 |
|
|
|
15121 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
|
|
15122 |
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
|
|
|
15123 |
test "$ld_shlibs_F77" = no && can_build_shared=no
|
|
|
15124 |
|
|
|
15125 |
#
|
|
|
15126 |
# Do we need to explicitly link libc?
|
|
|
15127 |
#
|
|
|
15128 |
case "x$archive_cmds_need_lc_F77" in
|
|
|
15129 |
x|xyes)
|
|
|
15130 |
# Assume -lc should be added
|
|
|
15131 |
archive_cmds_need_lc_F77=yes
|
|
|
15132 |
|
|
|
15133 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
15134 |
case $archive_cmds_F77 in
|
|
|
15135 |
*'~'*)
|
|
|
15136 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
15137 |
;;
|
|
|
15138 |
'$CC '*)
|
|
|
15139 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
15140 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
15141 |
# to ld, don't add -lc before -lgcc.
|
|
|
15142 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
|
15143 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
|
15144 |
$rm conftest*
|
|
|
15145 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
15146 |
|
|
|
15147 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
15148 |
(eval $ac_compile) 2>&5
|
|
|
15149 |
ac_status=$?
|
|
|
15150 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
15151 |
(exit $ac_status); } 2>conftest.err; then
|
|
|
15152 |
soname=conftest
|
|
|
15153 |
lib=conftest
|
|
|
15154 |
libobjs=conftest.$ac_objext
|
|
|
15155 |
deplibs=
|
|
|
15156 |
wl=$lt_prog_compiler_wl_F77
|
|
|
15157 |
pic_flag=$lt_prog_compiler_pic_F77
|
|
|
15158 |
compiler_flags=-v
|
|
|
15159 |
linker_flags=-v
|
|
|
15160 |
verstring=
|
|
|
15161 |
output_objdir=.
|
|
|
15162 |
libname=conftest
|
|
|
15163 |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
|
|
|
15164 |
allow_undefined_flag_F77=
|
|
|
15165 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
|
|
15166 |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
|
|
15167 |
ac_status=$?
|
|
|
15168 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
15169 |
(exit $ac_status); }
|
|
|
15170 |
then
|
|
|
15171 |
archive_cmds_need_lc_F77=no
|
|
|
15172 |
else
|
|
|
15173 |
archive_cmds_need_lc_F77=yes
|
|
|
15174 |
fi
|
|
|
15175 |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
|
|
|
15176 |
else
|
|
|
15177 |
cat conftest.err 1>&5
|
|
|
15178 |
fi
|
|
|
15179 |
$rm conftest*
|
|
|
15180 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
|
|
|
15181 |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
|
|
|
15182 |
;;
|
|
|
15183 |
esac
|
|
|
15184 |
fi
|
|
|
15185 |
;;
|
|
|
15186 |
esac
|
|
|
15187 |
|
|
|
15188 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
|
|
15189 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
|
|
15190 |
library_names_spec=
|
|
|
15191 |
libname_spec='lib$name'
|
|
|
15192 |
soname_spec=
|
|
|
15193 |
shrext_cmds=".so"
|
|
|
15194 |
postinstall_cmds=
|
|
|
15195 |
postuninstall_cmds=
|
|
|
15196 |
finish_cmds=
|
|
|
15197 |
finish_eval=
|
|
|
15198 |
shlibpath_var=
|
|
|
15199 |
shlibpath_overrides_runpath=unknown
|
|
|
15200 |
version_type=none
|
|
|
15201 |
dynamic_linker="$host_os ld.so"
|
|
|
15202 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
15203 |
|
|
|
15204 |
need_lib_prefix=unknown
|
|
|
15205 |
hardcode_into_libs=no
|
|
|
15206 |
|
|
|
15207 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
15208 |
# flags to be left without arguments
|
|
|
15209 |
need_version=unknown
|
|
|
15210 |
|
|
|
15211 |
case $host_os in
|
|
|
15212 |
aix3*)
|
|
|
15213 |
version_type=linux
|
|
|
15214 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
|
15215 |
shlibpath_var=LIBPATH
|
|
|
15216 |
|
|
|
15217 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
|
15218 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15219 |
;;
|
|
|
15220 |
|
|
|
15221 |
aix4* | aix5*)
|
|
|
15222 |
version_type=linux
|
|
|
15223 |
need_lib_prefix=no
|
|
|
15224 |
need_version=no
|
|
|
15225 |
hardcode_into_libs=yes
|
|
|
15226 |
if test "$host_cpu" = ia64; then
|
|
|
15227 |
# AIX 5 supports IA64
|
|
|
15228 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
|
15229 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15230 |
else
|
|
|
15231 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
15232 |
# for dependence libraries. The import file would start with
|
|
|
15233 |
# the line `#! .'. This would cause the generated library to
|
|
|
15234 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
15235 |
# development snapshots of GCC prior to 3.0.
|
|
|
15236 |
case $host_os in
|
|
|
15237 |
aix4 | aix4.[01] | aix4.[01].*)
|
|
|
15238 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
15239 |
echo ' yes '
|
|
|
15240 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
|
15241 |
:
|
|
|
15242 |
else
|
|
|
15243 |
can_build_shared=no
|
|
|
15244 |
fi
|
|
|
15245 |
;;
|
|
|
15246 |
esac
|
|
|
15247 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
|
15248 |
# soname into executable. Probably we can add versioning support to
|
|
|
15249 |
# collect2, so additional links can be useful in future.
|
|
|
15250 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
15251 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
15252 |
# instead of lib<name>.a to let people know that these are not
|
|
|
15253 |
# typical AIX shared libraries.
|
|
|
15254 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15255 |
else
|
|
|
15256 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
15257 |
# and later when we are not doing run time linking.
|
|
|
15258 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
15259 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15260 |
fi
|
|
|
15261 |
shlibpath_var=LIBPATH
|
|
|
15262 |
fi
|
|
|
15263 |
;;
|
|
|
15264 |
|
|
|
15265 |
amigaos*)
|
|
|
15266 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
15267 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
15268 |
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'
|
|
|
15269 |
;;
|
|
|
15270 |
|
|
|
15271 |
beos*)
|
|
|
15272 |
library_names_spec='${libname}${shared_ext}'
|
|
|
15273 |
dynamic_linker="$host_os ld.so"
|
|
|
15274 |
shlibpath_var=LIBRARY_PATH
|
|
|
15275 |
;;
|
|
|
15276 |
|
|
|
15277 |
bsdi[45]*)
|
|
|
15278 |
version_type=linux
|
|
|
15279 |
need_version=no
|
|
|
15280 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15281 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15282 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
15283 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15284 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
15285 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
15286 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
15287 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
15288 |
# libtool to hard-code these into programs
|
|
|
15289 |
;;
|
|
|
15290 |
|
|
|
15291 |
cygwin* | mingw* | pw32*)
|
|
|
15292 |
version_type=windows
|
|
|
15293 |
shrext_cmds=".dll"
|
|
|
15294 |
need_version=no
|
|
|
15295 |
need_lib_prefix=no
|
|
|
15296 |
|
|
|
15297 |
case $GCC,$host_os in
|
|
|
15298 |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
|
|
15299 |
library_names_spec='$libname.dll.a'
|
|
|
15300 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
15301 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
15302 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|
|
15303 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
15304 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
15305 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
|
15306 |
chmod a+x \$dldir/$dlname'
|
|
|
15307 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
15308 |
dlpath=$dir/\$dldll~
|
|
|
15309 |
$rm \$dlpath'
|
|
|
15310 |
shlibpath_overrides_runpath=yes
|
|
|
15311 |
|
|
|
15312 |
case $host_os in
|
|
|
15313 |
cygwin*)
|
|
|
15314 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
|
15315 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
15316 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|
|
15317 |
;;
|
|
|
15318 |
mingw*)
|
|
|
15319 |
# MinGW DLLs use traditional 'lib' prefix
|
|
|
15320 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
15321 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
|
15322 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
|
|
15323 |
# It is most probably a Windows format PATH printed by
|
|
|
15324 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|
|
15325 |
# path with ; separators, and with drive letters. We can handle the
|
|
|
15326 |
# drive letters (cygwin fileutils understands them), so leave them,
|
|
|
15327 |
# especially as we might pass files found there to a mingw objdump,
|
|
|
15328 |
# which wouldn't understand a cygwinified path. Ahh.
|
|
|
15329 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
15330 |
else
|
|
|
15331 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
15332 |
fi
|
|
|
15333 |
;;
|
|
|
15334 |
pw32*)
|
|
|
15335 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
|
15336 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
15337 |
;;
|
|
|
15338 |
esac
|
|
|
15339 |
;;
|
|
|
15340 |
|
|
|
15341 |
*)
|
|
|
15342 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
|
15343 |
;;
|
|
|
15344 |
esac
|
|
|
15345 |
dynamic_linker='Win32 ld.exe'
|
|
|
15346 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
15347 |
shlibpath_var=PATH
|
|
|
15348 |
;;
|
|
|
15349 |
|
|
|
15350 |
darwin* | rhapsody*)
|
|
|
15351 |
dynamic_linker="$host_os dyld"
|
|
|
15352 |
version_type=darwin
|
|
|
15353 |
need_lib_prefix=no
|
|
|
15354 |
need_version=no
|
|
|
15355 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
|
15356 |
soname_spec='${libname}${release}${major}$shared_ext'
|
|
|
15357 |
shlibpath_overrides_runpath=yes
|
|
|
15358 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
15359 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
15360 |
|
|
|
15361 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
|
15362 |
;;
|
|
|
15363 |
|
|
|
15364 |
dgux*)
|
|
|
15365 |
version_type=linux
|
|
|
15366 |
need_lib_prefix=no
|
|
|
15367 |
need_version=no
|
|
|
15368 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
|
15369 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15370 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15371 |
;;
|
|
|
15372 |
|
|
|
15373 |
freebsd1*)
|
|
|
15374 |
dynamic_linker=no
|
|
|
15375 |
;;
|
|
|
15376 |
|
|
|
15377 |
freebsd* | dragonfly*)
|
|
|
15378 |
# DragonFly does not have aout. When/if they implement a new
|
|
|
15379 |
# versioning mechanism, adjust this.
|
|
|
15380 |
if test -x /usr/bin/objformat; then
|
|
|
15381 |
objformat=`/usr/bin/objformat`
|
|
|
15382 |
else
|
|
|
15383 |
case $host_os in
|
|
|
15384 |
freebsd[123]*) objformat=aout ;;
|
|
|
15385 |
*) objformat=elf ;;
|
|
|
15386 |
esac
|
|
|
15387 |
fi
|
|
|
15388 |
version_type=freebsd-$objformat
|
|
|
15389 |
case $version_type in
|
|
|
15390 |
freebsd-elf*)
|
|
|
15391 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
15392 |
need_version=no
|
|
|
15393 |
need_lib_prefix=no
|
|
|
15394 |
;;
|
|
|
15395 |
freebsd-*)
|
|
|
15396 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
|
15397 |
need_version=yes
|
|
|
15398 |
;;
|
|
|
15399 |
esac
|
|
|
15400 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15401 |
case $host_os in
|
|
|
15402 |
freebsd2*)
|
|
|
15403 |
shlibpath_overrides_runpath=yes
|
|
|
15404 |
;;
|
|
|
15405 |
freebsd3.[01]* | freebsdelf3.[01]*)
|
|
|
15406 |
shlibpath_overrides_runpath=yes
|
|
|
15407 |
hardcode_into_libs=yes
|
|
|
15408 |
;;
|
|
|
15409 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
|
15410 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
|
15411 |
shlibpath_overrides_runpath=no
|
|
|
15412 |
hardcode_into_libs=yes
|
|
|
15413 |
;;
|
|
|
15414 |
*) # from 4.6 on, and DragonFly
|
|
|
15415 |
shlibpath_overrides_runpath=yes
|
|
|
15416 |
hardcode_into_libs=yes
|
|
|
15417 |
;;
|
|
|
15418 |
esac
|
|
|
15419 |
;;
|
|
|
15420 |
|
|
|
15421 |
gnu*)
|
|
|
15422 |
version_type=linux
|
|
|
15423 |
need_lib_prefix=no
|
|
|
15424 |
need_version=no
|
|
|
15425 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
15426 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15427 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15428 |
hardcode_into_libs=yes
|
|
|
15429 |
;;
|
|
|
15430 |
|
|
|
15431 |
hpux9* | hpux10* | hpux11*)
|
|
|
15432 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
15433 |
# link against other versions.
|
|
|
15434 |
version_type=sunos
|
|
|
15435 |
need_lib_prefix=no
|
|
|
15436 |
need_version=no
|
|
|
15437 |
case $host_cpu in
|
|
|
15438 |
ia64*)
|
|
|
15439 |
shrext_cmds='.so'
|
|
|
15440 |
hardcode_into_libs=yes
|
|
|
15441 |
dynamic_linker="$host_os dld.so"
|
|
|
15442 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15443 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
15444 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15445 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15446 |
if test "X$HPUX_IA64_MODE" = X32; then
|
|
|
15447 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
|
15448 |
else
|
|
|
15449 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
|
15450 |
fi
|
|
|
15451 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
15452 |
;;
|
|
|
15453 |
hppa*64*)
|
|
|
15454 |
shrext_cmds='.sl'
|
|
|
15455 |
hardcode_into_libs=yes
|
|
|
15456 |
dynamic_linker="$host_os dld.sl"
|
|
|
15457 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
|
15458 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
15459 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15460 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15461 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
|
15462 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
15463 |
;;
|
|
|
15464 |
*)
|
|
|
15465 |
shrext_cmds='.sl'
|
|
|
15466 |
dynamic_linker="$host_os dld.sl"
|
|
|
15467 |
shlibpath_var=SHLIB_PATH
|
|
|
15468 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
15469 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15470 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15471 |
;;
|
|
|
15472 |
esac
|
|
|
15473 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
|
15474 |
postinstall_cmds='chmod 555 $lib'
|
|
|
15475 |
;;
|
|
|
15476 |
|
|
|
15477 |
interix[3-9]*)
|
|
|
15478 |
version_type=linux
|
|
|
15479 |
need_lib_prefix=no
|
|
|
15480 |
need_version=no
|
|
|
15481 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
15482 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15483 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
|
15484 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15485 |
shlibpath_overrides_runpath=no
|
|
|
15486 |
hardcode_into_libs=yes
|
|
|
15487 |
;;
|
|
|
15488 |
|
|
|
15489 |
irix5* | irix6* | nonstopux*)
|
|
|
15490 |
case $host_os in
|
|
|
15491 |
nonstopux*) version_type=nonstopux ;;
|
|
|
15492 |
*)
|
|
|
15493 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
15494 |
version_type=linux
|
|
|
15495 |
else
|
|
|
15496 |
version_type=irix
|
|
|
15497 |
fi ;;
|
|
|
15498 |
esac
|
|
|
15499 |
need_lib_prefix=no
|
|
|
15500 |
need_version=no
|
|
|
15501 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15502 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
15503 |
case $host_os in
|
|
|
15504 |
irix5* | nonstopux*)
|
|
|
15505 |
libsuff= shlibsuff=
|
|
|
15506 |
;;
|
|
|
15507 |
*)
|
|
|
15508 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
15509 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
|
15510 |
libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
15511 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
|
15512 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
15513 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
|
15514 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
15515 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
15516 |
esac
|
|
|
15517 |
;;
|
|
|
15518 |
esac
|
|
|
15519 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
15520 |
shlibpath_overrides_runpath=no
|
|
|
15521 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
15522 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
15523 |
hardcode_into_libs=yes
|
|
|
15524 |
;;
|
|
|
15525 |
|
|
|
15526 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
15527 |
linux*oldld* | linux*aout* | linux*coff*)
|
|
|
15528 |
dynamic_linker=no
|
|
|
15529 |
;;
|
|
|
15530 |
|
|
|
15531 |
# This must be Linux ELF.
|
|
|
15532 |
linux* | k*bsd*-gnu)
|
|
|
15533 |
version_type=linux
|
|
|
15534 |
need_lib_prefix=no
|
|
|
15535 |
need_version=no
|
|
|
15536 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15537 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15538 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
15539 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15540 |
shlibpath_overrides_runpath=no
|
|
|
15541 |
# This implies no fast_install, which is unacceptable.
|
|
|
15542 |
# Some rework will be needed to allow for fast_install
|
|
|
15543 |
# before this can be enabled.
|
|
|
15544 |
hardcode_into_libs=yes
|
|
|
15545 |
|
|
|
15546 |
# Append ld.so.conf contents to the search path
|
|
|
15547 |
if test -f /etc/ld.so.conf; then
|
|
|
15548 |
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' ' '`
|
|
|
15549 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
15550 |
fi
|
|
|
15551 |
|
|
|
15552 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
15553 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
15554 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
15555 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
15556 |
# people can always --disable-shared, the test was removed, and we
|
|
|
15557 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
15558 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
15559 |
;;
|
|
|
15560 |
|
|
|
15561 |
netbsdelf*-gnu)
|
|
|
15562 |
version_type=linux
|
|
|
15563 |
need_lib_prefix=no
|
|
|
15564 |
need_version=no
|
|
|
15565 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
15566 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15567 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15568 |
shlibpath_overrides_runpath=no
|
|
|
15569 |
hardcode_into_libs=yes
|
|
|
15570 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
15571 |
;;
|
|
|
15572 |
|
|
|
15573 |
netbsd*)
|
|
|
15574 |
version_type=sunos
|
|
|
15575 |
need_lib_prefix=no
|
|
|
15576 |
need_version=no
|
|
|
15577 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
15578 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
15579 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
15580 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
15581 |
else
|
|
|
15582 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
15583 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15584 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
15585 |
fi
|
|
|
15586 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15587 |
shlibpath_overrides_runpath=yes
|
|
|
15588 |
hardcode_into_libs=yes
|
|
|
15589 |
;;
|
|
|
15590 |
|
|
|
15591 |
newsos6)
|
|
|
15592 |
version_type=linux
|
|
|
15593 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15594 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15595 |
shlibpath_overrides_runpath=yes
|
|
|
15596 |
;;
|
|
|
15597 |
|
|
|
15598 |
nto-qnx*)
|
|
|
15599 |
version_type=linux
|
|
|
15600 |
need_lib_prefix=no
|
|
|
15601 |
need_version=no
|
|
|
15602 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15603 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15604 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15605 |
shlibpath_overrides_runpath=yes
|
|
|
15606 |
;;
|
|
|
15607 |
|
|
|
15608 |
openbsd*)
|
|
|
15609 |
version_type=sunos
|
|
|
15610 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
|
15611 |
need_lib_prefix=no
|
|
|
15612 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
|
15613 |
case $host_os in
|
|
|
15614 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
|
15615 |
*) need_version=no ;;
|
|
|
15616 |
esac
|
|
|
15617 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
15618 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
15619 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15620 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
15621 |
case $host_os in
|
|
|
15622 |
openbsd2.[89] | openbsd2.[89].*)
|
|
|
15623 |
shlibpath_overrides_runpath=no
|
|
|
15624 |
;;
|
|
|
15625 |
*)
|
|
|
15626 |
shlibpath_overrides_runpath=yes
|
|
|
15627 |
;;
|
|
|
15628 |
esac
|
|
|
15629 |
else
|
|
|
15630 |
shlibpath_overrides_runpath=yes
|
|
|
15631 |
fi
|
|
|
15632 |
;;
|
|
|
15633 |
|
|
|
15634 |
os2*)
|
|
|
15635 |
libname_spec='$name'
|
|
|
15636 |
shrext_cmds=".dll"
|
|
|
15637 |
need_lib_prefix=no
|
|
|
15638 |
library_names_spec='$libname${shared_ext} $libname.a'
|
|
|
15639 |
dynamic_linker='OS/2 ld.exe'
|
|
|
15640 |
shlibpath_var=LIBPATH
|
|
|
15641 |
;;
|
|
|
15642 |
|
|
|
15643 |
osf3* | osf4* | osf5*)
|
|
|
15644 |
version_type=osf
|
|
|
15645 |
need_lib_prefix=no
|
|
|
15646 |
need_version=no
|
|
|
15647 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15648 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15649 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15650 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
15651 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
15652 |
;;
|
|
|
15653 |
|
|
|
15654 |
rdos*)
|
|
|
15655 |
dynamic_linker=no
|
|
|
15656 |
;;
|
|
|
15657 |
|
|
|
15658 |
solaris*)
|
|
|
15659 |
version_type=linux
|
|
|
15660 |
need_lib_prefix=no
|
|
|
15661 |
need_version=no
|
|
|
15662 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15663 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15664 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15665 |
shlibpath_overrides_runpath=yes
|
|
|
15666 |
hardcode_into_libs=yes
|
|
|
15667 |
# ldd complains unless libraries are executable
|
|
|
15668 |
postinstall_cmds='chmod +x $lib'
|
|
|
15669 |
;;
|
|
|
15670 |
|
|
|
15671 |
sunos4*)
|
|
|
15672 |
version_type=sunos
|
|
|
15673 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
15674 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
15675 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15676 |
shlibpath_overrides_runpath=yes
|
|
|
15677 |
if test "$with_gnu_ld" = yes; then
|
|
|
15678 |
need_lib_prefix=no
|
|
|
15679 |
fi
|
|
|
15680 |
need_version=yes
|
|
|
15681 |
;;
|
|
|
15682 |
|
|
|
15683 |
sysv4 | sysv4.3*)
|
|
|
15684 |
version_type=linux
|
|
|
15685 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15686 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15687 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15688 |
case $host_vendor in
|
|
|
15689 |
sni)
|
|
|
15690 |
shlibpath_overrides_runpath=no
|
|
|
15691 |
need_lib_prefix=no
|
|
|
15692 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|
|
15693 |
runpath_var=LD_RUN_PATH
|
|
|
15694 |
;;
|
|
|
15695 |
siemens)
|
|
|
15696 |
need_lib_prefix=no
|
|
|
15697 |
;;
|
|
|
15698 |
motorola)
|
|
|
15699 |
need_lib_prefix=no
|
|
|
15700 |
need_version=no
|
|
|
15701 |
shlibpath_overrides_runpath=no
|
|
|
15702 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
15703 |
;;
|
|
|
15704 |
esac
|
|
|
15705 |
;;
|
|
|
15706 |
|
|
|
15707 |
sysv4*MP*)
|
|
|
15708 |
if test -d /usr/nec ;then
|
|
|
15709 |
version_type=linux
|
|
|
15710 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
|
15711 |
soname_spec='$libname${shared_ext}.$major'
|
|
|
15712 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15713 |
fi
|
|
|
15714 |
;;
|
|
|
15715 |
|
|
|
15716 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
15717 |
version_type=freebsd-elf
|
|
|
15718 |
need_lib_prefix=no
|
|
|
15719 |
need_version=no
|
|
|
15720 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
15721 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15722 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15723 |
hardcode_into_libs=yes
|
|
|
15724 |
if test "$with_gnu_ld" = yes; then
|
|
|
15725 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
|
15726 |
shlibpath_overrides_runpath=no
|
|
|
15727 |
else
|
|
|
15728 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
|
15729 |
shlibpath_overrides_runpath=yes
|
|
|
15730 |
case $host_os in
|
|
|
15731 |
sco3.2v5*)
|
|
|
15732 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
|
15733 |
;;
|
|
|
15734 |
esac
|
|
|
15735 |
fi
|
|
|
15736 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
|
15737 |
;;
|
|
|
15738 |
|
|
|
15739 |
uts4*)
|
|
|
15740 |
version_type=linux
|
|
|
15741 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
15742 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
15743 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
15744 |
;;
|
|
|
15745 |
|
|
|
15746 |
*)
|
|
|
15747 |
dynamic_linker=no
|
|
|
15748 |
;;
|
|
|
15749 |
esac
|
|
|
15750 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
|
|
15751 |
echo "${ECHO_T}$dynamic_linker" >&6; }
|
|
|
15752 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
15753 |
|
|
|
15754 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
15755 |
if test "$GCC" = yes; then
|
|
|
15756 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
15757 |
fi
|
|
|
15758 |
|
|
|
15759 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
|
|
15760 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
|
|
15761 |
hardcode_action_F77=
|
|
|
15762 |
if test -n "$hardcode_libdir_flag_spec_F77" || \
|
|
|
15763 |
test -n "$runpath_var_F77" || \
|
|
|
15764 |
test "X$hardcode_automatic_F77" = "Xyes" ; then
|
|
|
15765 |
|
|
|
15766 |
# We can hardcode non-existant directories.
|
|
|
15767 |
if test "$hardcode_direct_F77" != no &&
|
|
|
15768 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
15769 |
# have to relink, otherwise we might link with an installed library
|
|
|
15770 |
# when we should be linking with a yet-to-be-installed one
|
|
|
15771 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
|
|
|
15772 |
test "$hardcode_minus_L_F77" != no; then
|
|
|
15773 |
# Linking always hardcodes the temporary library directory.
|
|
|
15774 |
hardcode_action_F77=relink
|
|
|
15775 |
else
|
|
|
15776 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
15777 |
hardcode_action_F77=immediate
|
|
|
15778 |
fi
|
|
|
15779 |
else
|
|
|
15780 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
15781 |
# directories.
|
|
|
15782 |
hardcode_action_F77=unsupported
|
|
|
15783 |
fi
|
|
|
15784 |
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
|
|
|
15785 |
echo "${ECHO_T}$hardcode_action_F77" >&6; }
|
|
|
15786 |
|
|
|
15787 |
if test "$hardcode_action_F77" = relink; then
|
|
|
15788 |
# Fast installation is not supported
|
|
|
15789 |
enable_fast_install=no
|
|
|
15790 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
15791 |
test "$enable_shared" = no; then
|
|
|
15792 |
# Fast installation is not necessary
|
|
|
15793 |
enable_fast_install=needless
|
|
|
15794 |
fi
|
|
|
15795 |
|
|
|
15796 |
|
|
|
15797 |
# The else clause should only fire when bootstrapping the
|
|
|
15798 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
15799 |
# with your package, and you will get complaints that there are
|
|
|
15800 |
# no rules to generate ltmain.sh.
|
|
|
15801 |
if test -f "$ltmain"; then
|
|
|
15802 |
# See if we are running on zsh, and set the options which allow our commands through
|
|
|
15803 |
# without removal of \ escapes.
|
|
|
15804 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
15805 |
setopt NO_GLOB_SUBST
|
|
|
15806 |
fi
|
|
|
15807 |
# Now quote all the things that may contain metacharacters while being
|
|
|
15808 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
15809 |
# variables and quote the copies for generation of the libtool script.
|
|
|
15810 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
|
15811 |
SED SHELL STRIP \
|
|
|
15812 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
|
15813 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
|
15814 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
|
|
15815 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|
|
15816 |
lt_cv_sys_global_symbol_to_c_name_address \
|
|
|
15817 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
15818 |
old_postinstall_cmds old_postuninstall_cmds \
|
|
|
15819 |
compiler_F77 \
|
|
|
15820 |
CC_F77 \
|
|
|
15821 |
LD_F77 \
|
|
|
15822 |
lt_prog_compiler_wl_F77 \
|
|
|
15823 |
lt_prog_compiler_pic_F77 \
|
|
|
15824 |
lt_prog_compiler_static_F77 \
|
|
|
15825 |
lt_prog_compiler_no_builtin_flag_F77 \
|
|
|
15826 |
export_dynamic_flag_spec_F77 \
|
|
|
15827 |
thread_safe_flag_spec_F77 \
|
|
|
15828 |
whole_archive_flag_spec_F77 \
|
|
|
15829 |
enable_shared_with_static_runtimes_F77 \
|
|
|
15830 |
old_archive_cmds_F77 \
|
|
|
15831 |
old_archive_from_new_cmds_F77 \
|
|
|
15832 |
predep_objects_F77 \
|
|
|
15833 |
postdep_objects_F77 \
|
|
|
15834 |
predeps_F77 \
|
|
|
15835 |
postdeps_F77 \
|
|
|
15836 |
compiler_lib_search_path_F77 \
|
|
|
15837 |
archive_cmds_F77 \
|
|
|
15838 |
archive_expsym_cmds_F77 \
|
|
|
15839 |
postinstall_cmds_F77 \
|
|
|
15840 |
postuninstall_cmds_F77 \
|
|
|
15841 |
old_archive_from_expsyms_cmds_F77 \
|
|
|
15842 |
allow_undefined_flag_F77 \
|
|
|
15843 |
no_undefined_flag_F77 \
|
|
|
15844 |
export_symbols_cmds_F77 \
|
|
|
15845 |
hardcode_libdir_flag_spec_F77 \
|
|
|
15846 |
hardcode_libdir_flag_spec_ld_F77 \
|
|
|
15847 |
hardcode_libdir_separator_F77 \
|
|
|
15848 |
hardcode_automatic_F77 \
|
|
|
15849 |
module_cmds_F77 \
|
|
|
15850 |
module_expsym_cmds_F77 \
|
|
|
15851 |
lt_cv_prog_compiler_c_o_F77 \
|
|
|
15852 |
fix_srcfile_path_F77 \
|
|
|
15853 |
exclude_expsyms_F77 \
|
|
|
15854 |
include_expsyms_F77; do
|
|
|
15855 |
|
|
|
15856 |
case $var in
|
|
|
15857 |
old_archive_cmds_F77 | \
|
|
|
15858 |
old_archive_from_new_cmds_F77 | \
|
|
|
15859 |
archive_cmds_F77 | \
|
|
|
15860 |
archive_expsym_cmds_F77 | \
|
|
|
15861 |
module_cmds_F77 | \
|
|
|
15862 |
module_expsym_cmds_F77 | \
|
|
|
15863 |
old_archive_from_expsyms_cmds_F77 | \
|
|
|
15864 |
export_symbols_cmds_F77 | \
|
|
|
15865 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|
|
15866 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
15867 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
15868 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
15869 |
# Double-quote double-evaled strings.
|
|
|
15870 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
15871 |
;;
|
|
|
15872 |
*)
|
|
|
15873 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
15874 |
;;
|
|
|
15875 |
esac
|
|
|
15876 |
done
|
|
|
15877 |
|
|
|
15878 |
case $lt_echo in
|
|
|
15879 |
*'\$0 --fallback-echo"')
|
|
|
15880 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
|
|
15881 |
;;
|
|
|
15882 |
esac
|
|
|
15883 |
|
|
|
15884 |
cfgfile="$ofile"
|
|
|
15885 |
|
|
|
15886 |
cat <<__EOF__ >> "$cfgfile"
|
|
|
15887 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
|
|
15888 |
|
|
|
15889 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
15890 |
|
|
|
15891 |
# Shell to use when invoking shell scripts.
|
|
|
15892 |
SHELL=$lt_SHELL
|
|
|
15893 |
|
|
|
15894 |
# Whether or not to build shared libraries.
|
|
|
15895 |
build_libtool_libs=$enable_shared
|
|
|
15896 |
|
|
|
15897 |
# Whether or not to build static libraries.
|
|
|
15898 |
build_old_libs=$enable_static
|
|
|
15899 |
|
|
|
15900 |
# Whether or not to add -lc for building shared libraries.
|
|
|
15901 |
build_libtool_need_lc=$archive_cmds_need_lc_F77
|
|
|
15902 |
|
|
|
15903 |
# Whether or not to disallow shared libs when runtime libs are static
|
|
|
15904 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
|
|
|
15905 |
|
|
|
15906 |
# Whether or not to optimize for fast installation.
|
|
|
15907 |
fast_install=$enable_fast_install
|
|
|
15908 |
|
|
|
15909 |
# The host system.
|
|
|
15910 |
host_alias=$host_alias
|
|
|
15911 |
host=$host
|
|
|
15912 |
host_os=$host_os
|
|
|
15913 |
|
|
|
15914 |
# The build system.
|
|
|
15915 |
build_alias=$build_alias
|
|
|
15916 |
build=$build
|
|
|
15917 |
build_os=$build_os
|
|
|
15918 |
|
|
|
15919 |
# An echo program that does not interpret backslashes.
|
|
|
15920 |
echo=$lt_echo
|
|
|
15921 |
|
|
|
15922 |
# The archiver.
|
|
|
15923 |
AR=$lt_AR
|
|
|
15924 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
15925 |
|
|
|
15926 |
# A C compiler.
|
|
|
15927 |
LTCC=$lt_LTCC
|
|
|
15928 |
|
|
|
15929 |
# LTCC compiler flags.
|
|
|
15930 |
LTCFLAGS=$lt_LTCFLAGS
|
|
|
15931 |
|
|
|
15932 |
# A language-specific compiler.
|
|
|
15933 |
CC=$lt_compiler_F77
|
|
|
15934 |
|
|
|
15935 |
# Is the compiler the GNU C compiler?
|
|
|
15936 |
with_gcc=$GCC_F77
|
|
|
15937 |
|
|
|
15938 |
# An ERE matcher.
|
|
|
15939 |
EGREP=$lt_EGREP
|
|
|
15940 |
|
|
|
15941 |
# The linker used to build libraries.
|
|
|
15942 |
LD=$lt_LD_F77
|
|
|
15943 |
|
|
|
15944 |
# Whether we need hard or soft links.
|
|
|
15945 |
LN_S=$lt_LN_S
|
|
|
15946 |
|
|
|
15947 |
# A BSD-compatible nm program.
|
|
|
15948 |
NM=$lt_NM
|
|
|
15949 |
|
|
|
15950 |
# A symbol stripping program
|
|
|
15951 |
STRIP=$lt_STRIP
|
|
|
15952 |
|
|
|
15953 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
15954 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
15955 |
|
|
|
15956 |
# Used on cygwin: DLL creation program.
|
|
|
15957 |
DLLTOOL="$DLLTOOL"
|
|
|
15958 |
|
|
|
15959 |
# Used on cygwin: object dumper.
|
|
|
15960 |
OBJDUMP="$OBJDUMP"
|
|
|
15961 |
|
|
|
15962 |
# Used on cygwin: assembler.
|
|
|
15963 |
AS="$AS"
|
|
|
15964 |
|
|
|
15965 |
# The name of the directory that contains temporary libtool files.
|
|
|
15966 |
objdir=$objdir
|
|
|
15967 |
|
|
|
15968 |
# How to create reloadable object files.
|
|
|
15969 |
reload_flag=$lt_reload_flag
|
|
|
15970 |
reload_cmds=$lt_reload_cmds
|
|
|
15971 |
|
|
|
15972 |
# How to pass a linker flag through the compiler.
|
|
|
15973 |
wl=$lt_lt_prog_compiler_wl_F77
|
|
|
15974 |
|
|
|
15975 |
# Object file suffix (normally "o").
|
|
|
15976 |
objext="$ac_objext"
|
|
|
15977 |
|
|
|
15978 |
# Old archive suffix (normally "a").
|
|
|
15979 |
libext="$libext"
|
|
|
15980 |
|
|
|
15981 |
# Shared library suffix (normally ".so").
|
|
|
15982 |
shrext_cmds='$shrext_cmds'
|
|
|
15983 |
|
|
|
15984 |
# Executable file suffix (normally "").
|
|
|
15985 |
exeext="$exeext"
|
|
|
15986 |
|
|
|
15987 |
# Additional compiler flags for building library objects.
|
|
|
15988 |
pic_flag=$lt_lt_prog_compiler_pic_F77
|
|
|
15989 |
pic_mode=$pic_mode
|
|
|
15990 |
|
|
|
15991 |
# What is the maximum length of a command?
|
|
|
15992 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
15993 |
|
|
|
15994 |
# Does compiler simultaneously support -c and -o options?
|
|
|
15995 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
|
|
|
15996 |
|
|
|
15997 |
# Must we lock files when doing compilation?
|
|
|
15998 |
need_locks=$lt_need_locks
|
|
|
15999 |
|
|
|
16000 |
# Do we need the lib prefix for modules?
|
|
|
16001 |
need_lib_prefix=$need_lib_prefix
|
|
|
16002 |
|
|
|
16003 |
# Do we need a version for libraries?
|
|
|
16004 |
need_version=$need_version
|
|
|
16005 |
|
|
|
16006 |
# Whether dlopen is supported.
|
|
|
16007 |
dlopen_support=$enable_dlopen
|
|
|
16008 |
|
|
|
16009 |
# Whether dlopen of programs is supported.
|
|
|
16010 |
dlopen_self=$enable_dlopen_self
|
|
|
16011 |
|
|
|
16012 |
# Whether dlopen of statically linked programs is supported.
|
|
|
16013 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
16014 |
|
|
|
16015 |
# Compiler flag to prevent dynamic linking.
|
|
|
16016 |
link_static_flag=$lt_lt_prog_compiler_static_F77
|
|
|
16017 |
|
|
|
16018 |
# Compiler flag to turn off builtin functions.
|
|
|
16019 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
|
|
|
16020 |
|
|
|
16021 |
# Compiler flag to allow reflexive dlopens.
|
|
|
16022 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
|
|
|
16023 |
|
|
|
16024 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
16025 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
|
|
|
16026 |
|
|
|
16027 |
# Compiler flag to generate thread-safe objects.
|
|
|
16028 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
|
|
|
16029 |
|
|
|
16030 |
# Library versioning type.
|
|
|
16031 |
version_type=$version_type
|
|
|
16032 |
|
|
|
16033 |
# Format of library name prefix.
|
|
|
16034 |
libname_spec=$lt_libname_spec
|
|
|
16035 |
|
|
|
16036 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
16037 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
16038 |
library_names_spec=$lt_library_names_spec
|
|
|
16039 |
|
|
|
16040 |
# The coded name of the library, if different from the real name.
|
|
|
16041 |
soname_spec=$lt_soname_spec
|
|
|
16042 |
|
|
|
16043 |
# Commands used to build and install an old-style archive.
|
|
|
16044 |
RANLIB=$lt_RANLIB
|
|
|
16045 |
old_archive_cmds=$lt_old_archive_cmds_F77
|
|
|
16046 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
16047 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
16048 |
|
|
|
16049 |
# Create an old-style archive from a shared archive.
|
|
|
16050 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
|
|
|
16051 |
|
|
|
16052 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
16053 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
|
|
|
16054 |
|
|
|
16055 |
# Commands used to build and install a shared archive.
|
|
|
16056 |
archive_cmds=$lt_archive_cmds_F77
|
|
|
16057 |
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
|
|
|
16058 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
16059 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
16060 |
|
|
|
16061 |
# Commands used to build a loadable module (assumed same as above if empty)
|
|
|
16062 |
module_cmds=$lt_module_cmds_F77
|
|
|
16063 |
module_expsym_cmds=$lt_module_expsym_cmds_F77
|
|
|
16064 |
|
|
|
16065 |
# Commands to strip libraries.
|
|
|
16066 |
old_striplib=$lt_old_striplib
|
|
|
16067 |
striplib=$lt_striplib
|
|
|
16068 |
|
|
|
16069 |
# Dependencies to place before the objects being linked to create a
|
|
|
16070 |
# shared library.
|
|
|
16071 |
predep_objects=$lt_predep_objects_F77
|
|
|
16072 |
|
|
|
16073 |
# Dependencies to place after the objects being linked to create a
|
|
|
16074 |
# shared library.
|
|
|
16075 |
postdep_objects=$lt_postdep_objects_F77
|
|
|
16076 |
|
|
|
16077 |
# Dependencies to place before the objects being linked to create a
|
|
|
16078 |
# shared library.
|
|
|
16079 |
predeps=$lt_predeps_F77
|
|
|
16080 |
|
|
|
16081 |
# Dependencies to place after the objects being linked to create a
|
|
|
16082 |
# shared library.
|
|
|
16083 |
postdeps=$lt_postdeps_F77
|
|
|
16084 |
|
|
|
16085 |
# The library search path used internally by the compiler when linking
|
|
|
16086 |
# a shared library.
|
|
|
16087 |
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
|
|
|
16088 |
|
|
|
16089 |
# Method to check whether dependent libraries are shared objects.
|
|
|
16090 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
16091 |
|
|
|
16092 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
16093 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
16094 |
|
|
|
16095 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
16096 |
allow_undefined_flag=$lt_allow_undefined_flag_F77
|
|
|
16097 |
|
|
|
16098 |
# Flag that forces no undefined symbols.
|
|
|
16099 |
no_undefined_flag=$lt_no_undefined_flag_F77
|
|
|
16100 |
|
|
|
16101 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
16102 |
finish_cmds=$lt_finish_cmds
|
|
|
16103 |
|
|
|
16104 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
16105 |
finish_eval=$lt_finish_eval
|
|
|
16106 |
|
|
|
16107 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
16108 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
16109 |
|
|
|
16110 |
# Transform the output of nm in a proper C declaration
|
|
|
16111 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
16112 |
|
|
|
16113 |
# Transform the output of nm in a C name address pair
|
|
|
16114 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
16115 |
|
|
|
16116 |
# This is the shared library runtime path variable.
|
|
|
16117 |
runpath_var=$runpath_var
|
|
|
16118 |
|
|
|
16119 |
# This is the shared library path variable.
|
|
|
16120 |
shlibpath_var=$shlibpath_var
|
|
|
16121 |
|
|
|
16122 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
16123 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
16124 |
|
|
|
16125 |
# How to hardcode a shared library path into an executable.
|
|
|
16126 |
hardcode_action=$hardcode_action_F77
|
|
|
16127 |
|
|
|
16128 |
# Whether we should hardcode library paths into libraries.
|
|
|
16129 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
16130 |
|
|
|
16131 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
16132 |
# This must work even if \$libdir does not exist.
|
|
|
16133 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
|
|
|
16134 |
|
|
|
16135 |
# If ld is used when linking, flag to hardcode \$libdir into
|
|
|
16136 |
# a binary during linking. This must work even if \$libdir does
|
|
|
16137 |
# not exist.
|
|
|
16138 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
|
|
|
16139 |
|
|
|
16140 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
16141 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
|
|
|
16142 |
|
|
|
16143 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|
|
16144 |
# resulting binary.
|
|
|
16145 |
hardcode_direct=$hardcode_direct_F77
|
|
|
16146 |
|
|
|
16147 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
16148 |
# resulting binary.
|
|
|
16149 |
hardcode_minus_L=$hardcode_minus_L_F77
|
|
|
16150 |
|
|
|
16151 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
16152 |
# the resulting binary.
|
|
|
16153 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
|
|
|
16154 |
|
|
|
16155 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
|
|
16156 |
# and all subsequent libraries and executables linked against it.
|
|
|
16157 |
hardcode_automatic=$hardcode_automatic_F77
|
|
|
16158 |
|
|
|
16159 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
16160 |
# restored at relink time.
|
|
|
16161 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
16162 |
|
|
|
16163 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
16164 |
link_all_deplibs=$link_all_deplibs_F77
|
|
|
16165 |
|
|
|
16166 |
# Compile-time system search path for libraries
|
|
|
16167 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
16168 |
|
|
|
16169 |
# Run-time system search path for libraries
|
|
|
16170 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
16171 |
|
|
|
16172 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
16173 |
fix_srcfile_path=$lt_fix_srcfile_path
|
|
|
16174 |
|
|
|
16175 |
# Set to yes if exported symbols are required.
|
|
|
16176 |
always_export_symbols=$always_export_symbols_F77
|
|
|
16177 |
|
|
|
16178 |
# The commands to list exported symbols.
|
|
|
16179 |
export_symbols_cmds=$lt_export_symbols_cmds_F77
|
|
|
16180 |
|
|
|
16181 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
16182 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
16183 |
|
|
|
16184 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
16185 |
exclude_expsyms=$lt_exclude_expsyms_F77
|
|
|
16186 |
|
|
|
16187 |
# Symbols that must always be exported.
|
|
|
16188 |
include_expsyms=$lt_include_expsyms_F77
|
|
|
16189 |
|
|
|
16190 |
# ### END LIBTOOL TAG CONFIG: $tagname
|
|
|
16191 |
|
|
|
16192 |
__EOF__
|
|
|
16193 |
|
|
|
16194 |
|
|
|
16195 |
else
|
|
|
16196 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
16197 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
16198 |
# libtool script then.
|
|
|
16199 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|
|
16200 |
if test -f "$ltmain_in"; then
|
|
|
16201 |
test -f Makefile && make "$ltmain"
|
|
|
16202 |
fi
|
|
|
16203 |
fi
|
|
|
16204 |
|
|
|
16205 |
|
|
|
16206 |
ac_ext=c
|
|
|
16207 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
16208 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
16209 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
16210 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
16211 |
|
|
|
16212 |
CC="$lt_save_CC"
|
|
|
16213 |
|
|
|
16214 |
else
|
|
|
16215 |
tagname=""
|
|
|
16216 |
fi
|
|
|
16217 |
;;
|
|
|
16218 |
|
|
|
16219 |
GCJ)
|
|
|
16220 |
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
|
|
16221 |
|
|
|
16222 |
|
|
|
16223 |
# Source file extension for Java test sources.
|
|
|
16224 |
ac_ext=java
|
|
|
16225 |
|
|
|
16226 |
# Object file extension for compiled Java test sources.
|
|
|
16227 |
objext=o
|
|
|
16228 |
objext_GCJ=$objext
|
|
|
16229 |
|
|
|
16230 |
# Code to be used in simple compile tests
|
|
|
16231 |
lt_simple_compile_test_code="class foo {}"
|
|
|
16232 |
|
|
|
16233 |
# Code to be used in simple link tests
|
|
|
16234 |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
|
|
|
16235 |
|
|
|
16236 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
16237 |
|
|
|
16238 |
# If no C compiler was specified, use CC.
|
|
|
16239 |
LTCC=${LTCC-"$CC"}
|
|
|
16240 |
|
|
|
16241 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
16242 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
16243 |
|
|
|
16244 |
# Allow CC to be a program name with arguments.
|
|
|
16245 |
compiler=$CC
|
|
|
16246 |
|
|
|
16247 |
|
|
|
16248 |
# save warnings/boilerplate of simple test code
|
|
|
16249 |
ac_outfile=conftest.$ac_objext
|
|
|
16250 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
16251 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
16252 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
16253 |
$rm conftest*
|
|
|
16254 |
|
|
|
16255 |
ac_outfile=conftest.$ac_objext
|
|
|
16256 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
16257 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
16258 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
16259 |
$rm conftest*
|
|
|
16260 |
|
|
|
16261 |
|
|
|
16262 |
# Allow CC to be a program name with arguments.
|
|
|
16263 |
lt_save_CC="$CC"
|
|
|
16264 |
CC=${GCJ-"gcj"}
|
|
|
16265 |
compiler=$CC
|
|
|
16266 |
compiler_GCJ=$CC
|
|
|
16267 |
for cc_temp in $compiler""; do
|
|
|
16268 |
case $cc_temp in
|
|
|
16269 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
16270 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
16271 |
\-*) ;;
|
|
|
16272 |
*) break;;
|
|
|
16273 |
esac
|
|
|
16274 |
done
|
|
|
16275 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
16276 |
|
|
|
16277 |
|
|
|
16278 |
# GCJ did not exist at the time GCC didn't implicitly link libc in.
|
|
|
16279 |
archive_cmds_need_lc_GCJ=no
|
|
|
16280 |
|
|
|
16281 |
old_archive_cmds_GCJ=$old_archive_cmds
|
|
|
16282 |
|
|
|
16283 |
|
|
|
16284 |
lt_prog_compiler_no_builtin_flag_GCJ=
|
|
|
16285 |
|
|
|
16286 |
if test "$GCC" = yes; then
|
|
|
16287 |
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
|
|
|
16288 |
|
|
|
16289 |
|
|
|
16290 |
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
|
|
16291 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
|
|
|
16292 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
|
|
|
16293 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
16294 |
else
|
|
|
16295 |
lt_cv_prog_compiler_rtti_exceptions=no
|
|
|
16296 |
ac_outfile=conftest.$ac_objext
|
|
|
16297 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
16298 |
lt_compiler_flag="-fno-rtti -fno-exceptions"
|
|
|
16299 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
16300 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
16301 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
16302 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
16303 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
16304 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
16305 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
16306 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
16307 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
16308 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
16309 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
16310 |
ac_status=$?
|
|
|
16311 |
cat conftest.err >&5
|
|
|
16312 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
16313 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
16314 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
16315 |
# So say no if there are warnings other than the usual output.
|
|
|
16316 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
16317 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
16318 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
16319 |
lt_cv_prog_compiler_rtti_exceptions=yes
|
|
|
16320 |
fi
|
|
|
16321 |
fi
|
|
|
16322 |
$rm conftest*
|
|
|
16323 |
|
|
|
16324 |
fi
|
|
|
16325 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
|
|
16326 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
|
|
16327 |
|
|
|
16328 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
|
|
|
16329 |
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
|
|
|
16330 |
else
|
|
|
16331 |
:
|
|
|
16332 |
fi
|
|
|
16333 |
|
|
|
16334 |
fi
|
|
|
16335 |
|
|
|
16336 |
lt_prog_compiler_wl_GCJ=
|
|
|
16337 |
lt_prog_compiler_pic_GCJ=
|
|
|
16338 |
lt_prog_compiler_static_GCJ=
|
|
|
16339 |
|
|
|
16340 |
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
|
|
|
16341 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
|
|
|
16342 |
|
|
|
16343 |
if test "$GCC" = yes; then
|
|
|
16344 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16345 |
lt_prog_compiler_static_GCJ='-static'
|
|
|
16346 |
|
|
|
16347 |
case $host_os in
|
|
|
16348 |
aix*)
|
|
|
16349 |
# All AIX code is PIC.
|
|
|
16350 |
if test "$host_cpu" = ia64; then
|
|
|
16351 |
# AIX 5 now supports IA64 processor
|
|
|
16352 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16353 |
fi
|
|
|
16354 |
;;
|
|
|
16355 |
|
|
|
16356 |
amigaos*)
|
|
|
16357 |
# FIXME: we need at least 68020 code to build shared libraries, but
|
|
|
16358 |
# adding the `-m68020' flag to GCC prevents building anything better,
|
|
|
16359 |
# like `-m68040'.
|
|
|
16360 |
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
|
|
|
16361 |
;;
|
|
|
16362 |
|
|
|
16363 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
|
|
16364 |
# PIC is the default for these OSes.
|
|
|
16365 |
;;
|
|
|
16366 |
|
|
|
16367 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
16368 |
# This hack is so that the source file can tell whether it is being
|
|
|
16369 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
16370 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style
|
|
|
16371 |
# (--disable-auto-import) libraries
|
|
|
16372 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
|
|
16373 |
;;
|
|
|
16374 |
|
|
|
16375 |
darwin* | rhapsody*)
|
|
|
16376 |
# PIC is the default on this platform
|
|
|
16377 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
16378 |
lt_prog_compiler_pic_GCJ='-fno-common'
|
|
|
16379 |
;;
|
|
|
16380 |
|
|
|
16381 |
interix[3-9]*)
|
|
|
16382 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
|
16383 |
# Instead, we relocate shared libraries at runtime.
|
|
|
16384 |
;;
|
|
|
16385 |
|
|
|
16386 |
msdosdjgpp*)
|
|
|
16387 |
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
|
16388 |
# on systems that don't support them.
|
|
|
16389 |
lt_prog_compiler_can_build_shared_GCJ=no
|
|
|
16390 |
enable_shared=no
|
|
|
16391 |
;;
|
|
|
16392 |
|
|
|
16393 |
sysv4*MP*)
|
|
|
16394 |
if test -d /usr/nec; then
|
|
|
16395 |
lt_prog_compiler_pic_GCJ=-Kconform_pic
|
|
|
16396 |
fi
|
|
|
16397 |
;;
|
|
|
16398 |
|
|
|
16399 |
hpux*)
|
|
|
16400 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
16401 |
# not for PA HP-UX.
|
|
|
16402 |
case $host_cpu in
|
|
|
16403 |
hppa*64*|ia64*)
|
|
|
16404 |
# +Z the default
|
|
|
16405 |
;;
|
|
|
16406 |
*)
|
|
|
16407 |
lt_prog_compiler_pic_GCJ='-fPIC'
|
|
|
16408 |
;;
|
|
|
16409 |
esac
|
|
|
16410 |
;;
|
|
|
16411 |
|
|
|
16412 |
*)
|
|
|
16413 |
lt_prog_compiler_pic_GCJ='-fPIC'
|
|
|
16414 |
;;
|
|
|
16415 |
esac
|
|
|
16416 |
else
|
|
|
16417 |
# PORTME Check for flag to pass linker flags through the system compiler.
|
|
|
16418 |
case $host_os in
|
|
|
16419 |
aix*)
|
|
|
16420 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16421 |
if test "$host_cpu" = ia64; then
|
|
|
16422 |
# AIX 5 now supports IA64 processor
|
|
|
16423 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16424 |
else
|
|
|
16425 |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
|
|
|
16426 |
fi
|
|
|
16427 |
;;
|
|
|
16428 |
darwin*)
|
|
|
16429 |
# PIC is the default on this platform
|
|
|
16430 |
# Common symbols not allowed in MH_DYLIB files
|
|
|
16431 |
case $cc_basename in
|
|
|
16432 |
xlc*)
|
|
|
16433 |
lt_prog_compiler_pic_GCJ='-qnocommon'
|
|
|
16434 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16435 |
;;
|
|
|
16436 |
esac
|
|
|
16437 |
;;
|
|
|
16438 |
|
|
|
16439 |
mingw* | cygwin* | pw32* | os2*)
|
|
|
16440 |
# This hack is so that the source file can tell whether it is being
|
|
|
16441 |
# built for inclusion in a dll (and should export symbols for example).
|
|
|
16442 |
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
|
|
|
16443 |
;;
|
|
|
16444 |
|
|
|
16445 |
hpux9* | hpux10* | hpux11*)
|
|
|
16446 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16447 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
|
16448 |
# not for PA HP-UX.
|
|
|
16449 |
case $host_cpu in
|
|
|
16450 |
hppa*64*|ia64*)
|
|
|
16451 |
# +Z the default
|
|
|
16452 |
;;
|
|
|
16453 |
*)
|
|
|
16454 |
lt_prog_compiler_pic_GCJ='+Z'
|
|
|
16455 |
;;
|
|
|
16456 |
esac
|
|
|
16457 |
# Is there a better lt_prog_compiler_static that works with the bundled CC?
|
|
|
16458 |
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
|
|
|
16459 |
;;
|
|
|
16460 |
|
|
|
16461 |
irix5* | irix6* | nonstopux*)
|
|
|
16462 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16463 |
# PIC (with -KPIC) is the default.
|
|
|
16464 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
|
16465 |
;;
|
|
|
16466 |
|
|
|
16467 |
newsos6)
|
|
|
16468 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16469 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16470 |
;;
|
|
|
16471 |
|
|
|
16472 |
linux* | k*bsd*-gnu)
|
|
|
16473 |
case $cc_basename in
|
|
|
16474 |
icc* | ecc*)
|
|
|
16475 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16476 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16477 |
lt_prog_compiler_static_GCJ='-static'
|
|
|
16478 |
;;
|
|
|
16479 |
pgcc* | pgf77* | pgf90* | pgf95*)
|
|
|
16480 |
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
|
16481 |
# which looks to be a dead project)
|
|
|
16482 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16483 |
lt_prog_compiler_pic_GCJ='-fpic'
|
|
|
16484 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16485 |
;;
|
|
|
16486 |
ccc*)
|
|
|
16487 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16488 |
# All Alpha code is PIC.
|
|
|
16489 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
|
16490 |
;;
|
|
|
16491 |
*)
|
|
|
16492 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
16493 |
*Sun\ C*)
|
|
|
16494 |
# Sun C 5.9
|
|
|
16495 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16496 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16497 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16498 |
;;
|
|
|
16499 |
*Sun\ F*)
|
|
|
16500 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
|
|
16501 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16502 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16503 |
lt_prog_compiler_wl_GCJ=''
|
|
|
16504 |
;;
|
|
|
16505 |
esac
|
|
|
16506 |
;;
|
|
|
16507 |
esac
|
|
|
16508 |
;;
|
|
|
16509 |
|
|
|
16510 |
osf3* | osf4* | osf5*)
|
|
|
16511 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16512 |
# All OSF/1 code is PIC.
|
|
|
16513 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
|
16514 |
;;
|
|
|
16515 |
|
|
|
16516 |
rdos*)
|
|
|
16517 |
lt_prog_compiler_static_GCJ='-non_shared'
|
|
|
16518 |
;;
|
|
|
16519 |
|
|
|
16520 |
solaris*)
|
|
|
16521 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16522 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16523 |
case $cc_basename in
|
|
|
16524 |
f77* | f90* | f95*)
|
|
|
16525 |
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
|
|
|
16526 |
*)
|
|
|
16527 |
lt_prog_compiler_wl_GCJ='-Wl,';;
|
|
|
16528 |
esac
|
|
|
16529 |
;;
|
|
|
16530 |
|
|
|
16531 |
sunos4*)
|
|
|
16532 |
lt_prog_compiler_wl_GCJ='-Qoption ld '
|
|
|
16533 |
lt_prog_compiler_pic_GCJ='-PIC'
|
|
|
16534 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16535 |
;;
|
|
|
16536 |
|
|
|
16537 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
|
16538 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16539 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16540 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16541 |
;;
|
|
|
16542 |
|
|
|
16543 |
sysv4*MP*)
|
|
|
16544 |
if test -d /usr/nec ;then
|
|
|
16545 |
lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
|
|
16546 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16547 |
fi
|
|
|
16548 |
;;
|
|
|
16549 |
|
|
|
16550 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
|
16551 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16552 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
|
16553 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16554 |
;;
|
|
|
16555 |
|
|
|
16556 |
unicos*)
|
|
|
16557 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
|
16558 |
lt_prog_compiler_can_build_shared_GCJ=no
|
|
|
16559 |
;;
|
|
|
16560 |
|
|
|
16561 |
uts4*)
|
|
|
16562 |
lt_prog_compiler_pic_GCJ='-pic'
|
|
|
16563 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
|
16564 |
;;
|
|
|
16565 |
|
|
|
16566 |
*)
|
|
|
16567 |
lt_prog_compiler_can_build_shared_GCJ=no
|
|
|
16568 |
;;
|
|
|
16569 |
esac
|
|
|
16570 |
fi
|
|
|
16571 |
|
|
|
16572 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
|
|
|
16573 |
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
|
|
|
16574 |
|
|
|
16575 |
#
|
|
|
16576 |
# Check to make sure the PIC flag actually works.
|
|
|
16577 |
#
|
|
|
16578 |
if test -n "$lt_prog_compiler_pic_GCJ"; then
|
|
|
16579 |
|
|
|
16580 |
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
|
|
|
16581 |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
|
|
|
16582 |
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
|
|
|
16583 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
16584 |
else
|
|
|
16585 |
lt_prog_compiler_pic_works_GCJ=no
|
|
|
16586 |
ac_outfile=conftest.$ac_objext
|
|
|
16587 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
16588 |
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
|
|
|
16589 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
16590 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
16591 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
16592 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
16593 |
# The option is referenced via a variable to avoid confusing sed.
|
|
|
16594 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
16595 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
16596 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
16597 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
16598 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
16599 |
(eval "$lt_compile" 2>conftest.err)
|
|
|
16600 |
ac_status=$?
|
|
|
16601 |
cat conftest.err >&5
|
|
|
16602 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
16603 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
|
16604 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
16605 |
# So say no if there are warnings other than the usual output.
|
|
|
16606 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
|
16607 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
16608 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
16609 |
lt_prog_compiler_pic_works_GCJ=yes
|
|
|
16610 |
fi
|
|
|
16611 |
fi
|
|
|
16612 |
$rm conftest*
|
|
|
16613 |
|
|
|
16614 |
fi
|
|
|
16615 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
|
|
|
16616 |
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
|
|
|
16617 |
|
|
|
16618 |
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
|
|
|
16619 |
case $lt_prog_compiler_pic_GCJ in
|
|
|
16620 |
"" | " "*) ;;
|
|
|
16621 |
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
|
|
|
16622 |
esac
|
|
|
16623 |
else
|
|
|
16624 |
lt_prog_compiler_pic_GCJ=
|
|
|
16625 |
lt_prog_compiler_can_build_shared_GCJ=no
|
|
|
16626 |
fi
|
|
|
16627 |
|
|
|
16628 |
fi
|
|
|
16629 |
case $host_os in
|
|
|
16630 |
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
|
16631 |
*djgpp*)
|
|
|
16632 |
lt_prog_compiler_pic_GCJ=
|
|
|
16633 |
;;
|
|
|
16634 |
*)
|
|
|
16635 |
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
|
|
|
16636 |
;;
|
|
|
16637 |
esac
|
|
|
16638 |
|
|
|
16639 |
#
|
|
|
16640 |
# Check to make sure the static flag actually works.
|
|
|
16641 |
#
|
|
|
16642 |
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
|
|
|
16643 |
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
|
16644 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
|
|
|
16645 |
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
|
|
|
16646 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
16647 |
else
|
|
|
16648 |
lt_prog_compiler_static_works_GCJ=no
|
|
|
16649 |
save_LDFLAGS="$LDFLAGS"
|
|
|
16650 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
|
16651 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
|
16652 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
|
16653 |
# The linker can only warn and ignore the option if not recognized
|
|
|
16654 |
# So say no if there are warnings
|
|
|
16655 |
if test -s conftest.err; then
|
|
|
16656 |
# Append any errors to the config.log.
|
|
|
16657 |
cat conftest.err 1>&5
|
|
|
16658 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
|
16659 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
|
16660 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
|
16661 |
lt_prog_compiler_static_works_GCJ=yes
|
|
|
16662 |
fi
|
|
|
16663 |
else
|
|
|
16664 |
lt_prog_compiler_static_works_GCJ=yes
|
|
|
16665 |
fi
|
|
|
16666 |
fi
|
|
|
16667 |
$rm conftest*
|
|
|
16668 |
LDFLAGS="$save_LDFLAGS"
|
|
|
16669 |
|
|
|
16670 |
fi
|
|
|
16671 |
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
|
|
|
16672 |
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
|
|
|
16673 |
|
|
|
16674 |
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
|
|
|
16675 |
:
|
|
|
16676 |
else
|
|
|
16677 |
lt_prog_compiler_static_GCJ=
|
|
|
16678 |
fi
|
|
|
16679 |
|
|
|
16680 |
|
|
|
16681 |
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
|
|
16682 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
|
|
|
16683 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
|
|
16684 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
16685 |
else
|
|
|
16686 |
lt_cv_prog_compiler_c_o_GCJ=no
|
|
|
16687 |
$rm -r conftest 2>/dev/null
|
|
|
16688 |
mkdir conftest
|
|
|
16689 |
cd conftest
|
|
|
16690 |
mkdir out
|
|
|
16691 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
16692 |
|
|
|
16693 |
lt_compiler_flag="-o out/conftest2.$ac_objext"
|
|
|
16694 |
# Insert the option either (1) after the last *FLAGS variable, or
|
|
|
16695 |
# (2) before a word containing "conftest.", or (3) at the end.
|
|
|
16696 |
# Note that $ac_compile itself does not contain backslashes and begins
|
|
|
16697 |
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
|
16698 |
lt_compile=`echo "$ac_compile" | $SED \
|
|
|
16699 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
|
16700 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
|
|
16701 |
-e 's:$: $lt_compiler_flag:'`
|
|
|
16702 |
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
|
|
|
16703 |
(eval "$lt_compile" 2>out/conftest.err)
|
|
|
16704 |
ac_status=$?
|
|
|
16705 |
cat out/conftest.err >&5
|
|
|
16706 |
echo "$as_me:__oline__: \$? = $ac_status" >&5
|
|
|
16707 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
|
|
16708 |
then
|
|
|
16709 |
# The compiler can only warn and ignore the option if not recognized
|
|
|
16710 |
# So say no if there are warnings
|
|
|
16711 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
|
16712 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
|
16713 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
|
16714 |
lt_cv_prog_compiler_c_o_GCJ=yes
|
|
|
16715 |
fi
|
|
|
16716 |
fi
|
|
|
16717 |
chmod u+w . 2>&5
|
|
|
16718 |
$rm conftest*
|
|
|
16719 |
# SGI C++ compiler will create directory out/ii_files/ for
|
|
|
16720 |
# template instantiation
|
|
|
16721 |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
|
|
16722 |
$rm out/* && rmdir out
|
|
|
16723 |
cd ..
|
|
|
16724 |
rmdir conftest
|
|
|
16725 |
$rm conftest*
|
|
|
16726 |
|
|
|
16727 |
fi
|
|
|
16728 |
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
|
|
|
16729 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
|
|
|
16730 |
|
|
|
16731 |
|
|
|
16732 |
hard_links="nottested"
|
|
|
16733 |
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
|
|
|
16734 |
# do not overwrite the value of need_locks provided by the user
|
|
|
16735 |
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
|
|
|
16736 |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
|
|
|
16737 |
hard_links=yes
|
|
|
16738 |
$rm conftest*
|
|
|
16739 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
16740 |
touch conftest.a
|
|
|
16741 |
ln conftest.a conftest.b 2>&5 || hard_links=no
|
|
|
16742 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
|
|
16743 |
{ echo "$as_me:$LINENO: result: $hard_links" >&5
|
|
|
16744 |
echo "${ECHO_T}$hard_links" >&6; }
|
|
|
16745 |
if test "$hard_links" = no; then
|
|
|
16746 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
|
|
|
16747 |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
|
|
|
16748 |
need_locks=warn
|
|
|
16749 |
fi
|
|
|
16750 |
else
|
|
|
16751 |
need_locks=no
|
|
|
16752 |
fi
|
|
|
16753 |
|
|
|
16754 |
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
|
|
16755 |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
|
|
|
16756 |
|
|
|
16757 |
runpath_var=
|
|
|
16758 |
allow_undefined_flag_GCJ=
|
|
|
16759 |
enable_shared_with_static_runtimes_GCJ=no
|
|
|
16760 |
archive_cmds_GCJ=
|
|
|
16761 |
archive_expsym_cmds_GCJ=
|
|
|
16762 |
old_archive_From_new_cmds_GCJ=
|
|
|
16763 |
old_archive_from_expsyms_cmds_GCJ=
|
|
|
16764 |
export_dynamic_flag_spec_GCJ=
|
|
|
16765 |
whole_archive_flag_spec_GCJ=
|
|
|
16766 |
thread_safe_flag_spec_GCJ=
|
|
|
16767 |
hardcode_libdir_flag_spec_GCJ=
|
|
|
16768 |
hardcode_libdir_flag_spec_ld_GCJ=
|
|
|
16769 |
hardcode_libdir_separator_GCJ=
|
|
|
16770 |
hardcode_direct_GCJ=no
|
|
|
16771 |
hardcode_minus_L_GCJ=no
|
|
|
16772 |
hardcode_shlibpath_var_GCJ=unsupported
|
|
|
16773 |
link_all_deplibs_GCJ=unknown
|
|
|
16774 |
hardcode_automatic_GCJ=no
|
|
|
16775 |
module_cmds_GCJ=
|
|
|
16776 |
module_expsym_cmds_GCJ=
|
|
|
16777 |
always_export_symbols_GCJ=no
|
|
|
16778 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
|
16779 |
# include_expsyms should be a list of space-separated symbols to be *always*
|
|
|
16780 |
# included in the symbol list
|
|
|
16781 |
include_expsyms_GCJ=
|
|
|
16782 |
# exclude_expsyms can be an extended regexp of symbols to exclude
|
|
|
16783 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or
|
|
|
16784 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
|
|
16785 |
# as well as any symbol that contains `d'.
|
|
|
16786 |
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
|
|
|
16787 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
|
|
16788 |
# platforms (ab)use it in PIC code, but their linkers get confused if
|
|
|
16789 |
# the symbol is explicitly referenced. Since portable code cannot
|
|
|
16790 |
# rely on this symbol name, it's probably fine to never include it in
|
|
|
16791 |
# preloaded symbol tables.
|
|
|
16792 |
extract_expsyms_cmds=
|
|
|
16793 |
# Just being paranoid about ensuring that cc_basename is set.
|
|
|
16794 |
for cc_temp in $compiler""; do
|
|
|
16795 |
case $cc_temp in
|
|
|
16796 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
16797 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
16798 |
\-*) ;;
|
|
|
16799 |
*) break;;
|
|
|
16800 |
esac
|
|
|
16801 |
done
|
|
|
16802 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
16803 |
|
|
|
16804 |
case $host_os in
|
|
|
16805 |
cygwin* | mingw* | pw32*)
|
|
|
16806 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
|
|
16807 |
# When not using gcc, we currently assume that we are using
|
|
|
16808 |
# Microsoft Visual C++.
|
|
|
16809 |
if test "$GCC" != yes; then
|
|
|
16810 |
with_gnu_ld=no
|
|
|
16811 |
fi
|
|
|
16812 |
;;
|
|
|
16813 |
interix*)
|
|
|
16814 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
|
16815 |
with_gnu_ld=yes
|
|
|
16816 |
;;
|
|
|
16817 |
openbsd*)
|
|
|
16818 |
with_gnu_ld=no
|
|
|
16819 |
;;
|
|
|
16820 |
esac
|
|
|
16821 |
|
|
|
16822 |
ld_shlibs_GCJ=yes
|
|
|
16823 |
if test "$with_gnu_ld" = yes; then
|
|
|
16824 |
# If archive_cmds runs LD, not CC, wlarc should be empty
|
|
|
16825 |
wlarc='${wl}'
|
|
|
16826 |
|
|
|
16827 |
# Set some defaults for GNU ld with shared library support. These
|
|
|
16828 |
# are reset later if shared libraries are not supported. Putting them
|
|
|
16829 |
# here allows them to be overridden if necessary.
|
|
|
16830 |
runpath_var=LD_RUN_PATH
|
|
|
16831 |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
|
|
|
16832 |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
|
|
|
16833 |
# ancient GNU ld didn't support --whole-archive et. al.
|
|
|
16834 |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
|
|
16835 |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
|
16836 |
else
|
|
|
16837 |
whole_archive_flag_spec_GCJ=
|
|
|
16838 |
fi
|
|
|
16839 |
supports_anon_versioning=no
|
|
|
16840 |
case `$LD -v 2>/dev/null` in
|
|
|
16841 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
|
|
16842 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
|
|
16843 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
|
|
16844 |
*\ 2.11.*) ;; # other 2.11 versions
|
|
|
16845 |
*) supports_anon_versioning=yes ;;
|
|
|
16846 |
esac
|
|
|
16847 |
|
|
|
16848 |
# See if GNU ld supports shared libraries.
|
|
|
16849 |
case $host_os in
|
|
|
16850 |
aix3* | aix4* | aix5*)
|
|
|
16851 |
# On AIX/PPC, the GNU linker is very broken
|
|
|
16852 |
if test "$host_cpu" != ia64; then
|
|
|
16853 |
ld_shlibs_GCJ=no
|
|
|
16854 |
cat <<EOF 1>&2
|
|
|
16855 |
|
|
|
16856 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
|
|
16857 |
*** to be unable to reliably create shared libraries on AIX.
|
|
|
16858 |
*** Therefore, libtool is disabling shared libraries support. If you
|
|
|
16859 |
*** really care for shared libraries, you may want to modify your PATH
|
|
|
16860 |
*** so that a non-GNU linker is found, and then restart.
|
|
|
16861 |
|
|
|
16862 |
EOF
|
|
|
16863 |
fi
|
|
|
16864 |
;;
|
|
|
16865 |
|
|
|
16866 |
amigaos*)
|
|
|
16867 |
archive_cmds_GCJ='$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)'
|
|
|
16868 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
16869 |
hardcode_minus_L_GCJ=yes
|
|
|
16870 |
|
|
|
16871 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
|
|
16872 |
# that the semantics of dynamic libraries on AmigaOS, at least up
|
|
|
16873 |
# to version 4, is to share data among multiple programs linked
|
|
|
16874 |
# with the same dynamic library. Since this doesn't match the
|
|
|
16875 |
# behavior of shared libraries on other platforms, we can't use
|
|
|
16876 |
# them.
|
|
|
16877 |
ld_shlibs_GCJ=no
|
|
|
16878 |
;;
|
|
|
16879 |
|
|
|
16880 |
beos*)
|
|
|
16881 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
16882 |
allow_undefined_flag_GCJ=unsupported
|
|
|
16883 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
|
16884 |
# support --undefined. This deserves some investigation. FIXME
|
|
|
16885 |
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
16886 |
else
|
|
|
16887 |
ld_shlibs_GCJ=no
|
|
|
16888 |
fi
|
|
|
16889 |
;;
|
|
|
16890 |
|
|
|
16891 |
cygwin* | mingw* | pw32*)
|
|
|
16892 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
|
|
|
16893 |
# as there is no search path for DLLs.
|
|
|
16894 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
16895 |
allow_undefined_flag_GCJ=unsupported
|
|
|
16896 |
always_export_symbols_GCJ=no
|
|
|
16897 |
enable_shared_with_static_runtimes_GCJ=yes
|
|
|
16898 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
|
16899 |
|
|
|
16900 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
|
16901 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
16902 |
# If the export-symbols file already is a .def file (1st line
|
|
|
16903 |
# is EXPORTS), use it as is; otherwise, prepend...
|
|
|
16904 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
|
16905 |
cp $export_symbols $output_objdir/$soname.def;
|
|
|
16906 |
else
|
|
|
16907 |
echo EXPORTS > $output_objdir/$soname.def;
|
|
|
16908 |
cat $export_symbols >> $output_objdir/$soname.def;
|
|
|
16909 |
fi~
|
|
|
16910 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
|
16911 |
else
|
|
|
16912 |
ld_shlibs_GCJ=no
|
|
|
16913 |
fi
|
|
|
16914 |
;;
|
|
|
16915 |
|
|
|
16916 |
interix[3-9]*)
|
|
|
16917 |
hardcode_direct_GCJ=no
|
|
|
16918 |
hardcode_shlibpath_var_GCJ=no
|
|
|
16919 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
|
16920 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
|
16921 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
|
16922 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
|
16923 |
# default) and relocated if they conflict, which is a slow very memory
|
|
|
16924 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
|
16925 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
|
16926 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
|
16927 |
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
|
16928 |
archive_expsym_cmds_GCJ='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'
|
|
|
16929 |
;;
|
|
|
16930 |
|
|
|
16931 |
gnu* | linux* | k*bsd*-gnu)
|
|
|
16932 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
16933 |
tmp_addflag=
|
|
|
16934 |
case $cc_basename,$host_cpu in
|
|
|
16935 |
pgcc*) # Portland Group C compiler
|
|
|
16936 |
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
16937 |
tmp_addflag=' $pic_flag'
|
|
|
16938 |
;;
|
|
|
16939 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
|
|
16940 |
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
|
16941 |
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
|
16942 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
|
16943 |
tmp_addflag=' -i_dynamic' ;;
|
|
|
16944 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
|
|
16945 |
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
|
|
16946 |
ifc* | ifort*) # Intel Fortran compiler
|
|
|
16947 |
tmp_addflag=' -nofor_main' ;;
|
|
|
16948 |
esac
|
|
|
16949 |
case `$CC -V 2>&1 | sed 5q` in
|
|
|
16950 |
*Sun\ C*) # Sun C 5.9
|
|
|
16951 |
whole_archive_flag_spec_GCJ='${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'
|
|
|
16952 |
tmp_sharedflag='-G' ;;
|
|
|
16953 |
*Sun\ F*) # Sun Fortran 8.3
|
|
|
16954 |
tmp_sharedflag='-G' ;;
|
|
|
16955 |
*)
|
|
|
16956 |
tmp_sharedflag='-shared' ;;
|
|
|
16957 |
esac
|
|
|
16958 |
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
16959 |
|
|
|
16960 |
if test $supports_anon_versioning = yes; then
|
|
|
16961 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
|
|
16962 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
|
16963 |
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
|
16964 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
|
16965 |
fi
|
|
|
16966 |
link_all_deplibs_GCJ=no
|
|
|
16967 |
else
|
|
|
16968 |
ld_shlibs_GCJ=no
|
|
|
16969 |
fi
|
|
|
16970 |
;;
|
|
|
16971 |
|
|
|
16972 |
netbsd* | netbsdelf*-gnu)
|
|
|
16973 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
16974 |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
|
16975 |
wlarc=
|
|
|
16976 |
else
|
|
|
16977 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
16978 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
16979 |
fi
|
|
|
16980 |
;;
|
|
|
16981 |
|
|
|
16982 |
solaris*)
|
|
|
16983 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
|
|
16984 |
ld_shlibs_GCJ=no
|
|
|
16985 |
cat <<EOF 1>&2
|
|
|
16986 |
|
|
|
16987 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
|
|
16988 |
*** create shared libraries on Solaris systems. Therefore, libtool
|
|
|
16989 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
16990 |
*** binutils to release 2.9.1 or newer. Another option is to modify
|
|
|
16991 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
16992 |
*** used, and then restart.
|
|
|
16993 |
|
|
|
16994 |
EOF
|
|
|
16995 |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
16996 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
16997 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
16998 |
else
|
|
|
16999 |
ld_shlibs_GCJ=no
|
|
|
17000 |
fi
|
|
|
17001 |
;;
|
|
|
17002 |
|
|
|
17003 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
|
17004 |
case `$LD -v 2>&1` in
|
|
|
17005 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
|
17006 |
ld_shlibs_GCJ=no
|
|
|
17007 |
cat <<_LT_EOF 1>&2
|
|
|
17008 |
|
|
|
17009 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
|
17010 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
|
17011 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
|
17012 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
|
17013 |
*** your PATH or compiler configuration so that the native linker is
|
|
|
17014 |
*** used, and then restart.
|
|
|
17015 |
|
|
|
17016 |
_LT_EOF
|
|
|
17017 |
;;
|
|
|
17018 |
*)
|
|
|
17019 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
17020 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
|
17021 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
|
17022 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
|
17023 |
else
|
|
|
17024 |
ld_shlibs_GCJ=no
|
|
|
17025 |
fi
|
|
|
17026 |
;;
|
|
|
17027 |
esac
|
|
|
17028 |
;;
|
|
|
17029 |
|
|
|
17030 |
sunos4*)
|
|
|
17031 |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17032 |
wlarc=
|
|
|
17033 |
hardcode_direct_GCJ=yes
|
|
|
17034 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17035 |
;;
|
|
|
17036 |
|
|
|
17037 |
*)
|
|
|
17038 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
|
17039 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
|
17040 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
|
17041 |
else
|
|
|
17042 |
ld_shlibs_GCJ=no
|
|
|
17043 |
fi
|
|
|
17044 |
;;
|
|
|
17045 |
esac
|
|
|
17046 |
|
|
|
17047 |
if test "$ld_shlibs_GCJ" = no; then
|
|
|
17048 |
runpath_var=
|
|
|
17049 |
hardcode_libdir_flag_spec_GCJ=
|
|
|
17050 |
export_dynamic_flag_spec_GCJ=
|
|
|
17051 |
whole_archive_flag_spec_GCJ=
|
|
|
17052 |
fi
|
|
|
17053 |
else
|
|
|
17054 |
# PORTME fill in a description of your system's linker (not GNU ld)
|
|
|
17055 |
case $host_os in
|
|
|
17056 |
aix3*)
|
|
|
17057 |
allow_undefined_flag_GCJ=unsupported
|
|
|
17058 |
always_export_symbols_GCJ=yes
|
|
|
17059 |
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
|
|
17060 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
|
17061 |
# are no directories specified by -L.
|
|
|
17062 |
hardcode_minus_L_GCJ=yes
|
|
|
17063 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
|
17064 |
# Neither direct hardcoding nor static linking is supported with a
|
|
|
17065 |
# broken collect2.
|
|
|
17066 |
hardcode_direct_GCJ=unsupported
|
|
|
17067 |
fi
|
|
|
17068 |
;;
|
|
|
17069 |
|
|
|
17070 |
aix4* | aix5*)
|
|
|
17071 |
if test "$host_cpu" = ia64; then
|
|
|
17072 |
# On IA64, the linker does run time linking by default, so we don't
|
|
|
17073 |
# have to do anything special.
|
|
|
17074 |
aix_use_runtimelinking=no
|
|
|
17075 |
exp_sym_flag='-Bexport'
|
|
|
17076 |
no_entry_flag=""
|
|
|
17077 |
else
|
|
|
17078 |
# If we're using GNU nm, then we don't want the "-C" option.
|
|
|
17079 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm
|
|
|
17080 |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
|
|
17081 |
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
17082 |
else
|
|
|
17083 |
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
|
|
|
17084 |
fi
|
|
|
17085 |
aix_use_runtimelinking=no
|
|
|
17086 |
|
|
|
17087 |
# Test if we are trying to use run time linking or normal
|
|
|
17088 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
|
|
17089 |
# need to do runtime linking.
|
|
|
17090 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
|
|
|
17091 |
for ld_flag in $LDFLAGS; do
|
|
|
17092 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
|
|
17093 |
aix_use_runtimelinking=yes
|
|
|
17094 |
break
|
|
|
17095 |
fi
|
|
|
17096 |
done
|
|
|
17097 |
;;
|
|
|
17098 |
esac
|
|
|
17099 |
|
|
|
17100 |
exp_sym_flag='-bexport'
|
|
|
17101 |
no_entry_flag='-bnoentry'
|
|
|
17102 |
fi
|
|
|
17103 |
|
|
|
17104 |
# When large executables or shared objects are built, AIX ld can
|
|
|
17105 |
# have problems creating the table of contents. If linking a library
|
|
|
17106 |
# or program results in "error TOC overflow" add -mminimal-toc to
|
|
|
17107 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
|
|
17108 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
|
|
17109 |
|
|
|
17110 |
archive_cmds_GCJ=''
|
|
|
17111 |
hardcode_direct_GCJ=yes
|
|
|
17112 |
hardcode_libdir_separator_GCJ=':'
|
|
|
17113 |
link_all_deplibs_GCJ=yes
|
|
|
17114 |
|
|
|
17115 |
if test "$GCC" = yes; then
|
|
|
17116 |
case $host_os in aix4.[012]|aix4.[012].*)
|
|
|
17117 |
# We only want to do this on AIX 4.2 and lower, the check
|
|
|
17118 |
# below for broken collect2 doesn't work under 4.3+
|
|
|
17119 |
collect2name=`${CC} -print-prog-name=collect2`
|
|
|
17120 |
if test -f "$collect2name" && \
|
|
|
17121 |
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
|
|
17122 |
then
|
|
|
17123 |
# We have reworked collect2
|
|
|
17124 |
:
|
|
|
17125 |
else
|
|
|
17126 |
# We have old collect2
|
|
|
17127 |
hardcode_direct_GCJ=unsupported
|
|
|
17128 |
# It fails to find uninstalled libraries when the uninstalled
|
|
|
17129 |
# path is not listed in the libpath. Setting hardcode_minus_L
|
|
|
17130 |
# to unsupported forces relinking
|
|
|
17131 |
hardcode_minus_L_GCJ=yes
|
|
|
17132 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17133 |
hardcode_libdir_separator_GCJ=
|
|
|
17134 |
fi
|
|
|
17135 |
;;
|
|
|
17136 |
esac
|
|
|
17137 |
shared_flag='-shared'
|
|
|
17138 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
17139 |
shared_flag="$shared_flag "'${wl}-G'
|
|
|
17140 |
fi
|
|
|
17141 |
else
|
|
|
17142 |
# not using gcc
|
|
|
17143 |
if test "$host_cpu" = ia64; then
|
|
|
17144 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
|
|
17145 |
# chokes on -Wl,-G. The following line is correct:
|
|
|
17146 |
shared_flag='-G'
|
|
|
17147 |
else
|
|
|
17148 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
17149 |
shared_flag='${wl}-G'
|
|
|
17150 |
else
|
|
|
17151 |
shared_flag='${wl}-bM:SRE'
|
|
|
17152 |
fi
|
|
|
17153 |
fi
|
|
|
17154 |
fi
|
|
|
17155 |
|
|
|
17156 |
# It seems that -bexpall does not export symbols beginning with
|
|
|
17157 |
# underscore (_), so it is better to generate a list of symbols to export.
|
|
|
17158 |
always_export_symbols_GCJ=yes
|
|
|
17159 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
17160 |
# Warning - without using the other runtime loading flags (-brtl),
|
|
|
17161 |
# -berok will link without error, but may produce a broken library.
|
|
|
17162 |
allow_undefined_flag_GCJ='-berok'
|
|
|
17163 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
17164 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
17165 |
/* confdefs.h. */
|
|
|
17166 |
_ACEOF
|
|
|
17167 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
17168 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
17169 |
/* end confdefs.h. */
|
|
|
17170 |
|
|
|
17171 |
int
|
|
|
17172 |
main ()
|
|
|
17173 |
{
|
|
|
17174 |
|
|
|
17175 |
;
|
|
|
17176 |
return 0;
|
|
|
17177 |
}
|
|
|
17178 |
_ACEOF
|
|
|
17179 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
17180 |
if { (ac_try="$ac_link"
|
|
|
17181 |
case "(($ac_try" in
|
|
|
17182 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
17183 |
*) ac_try_echo=$ac_try;;
|
|
|
17184 |
esac
|
|
|
17185 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
17186 |
(eval "$ac_link") 2>conftest.er1
|
|
|
17187 |
ac_status=$?
|
|
|
17188 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
17189 |
rm -f conftest.er1
|
|
|
17190 |
cat conftest.err >&5
|
|
|
17191 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
17192 |
(exit $ac_status); } && {
|
|
|
17193 |
test -z "$ac_c_werror_flag" ||
|
|
|
17194 |
test ! -s conftest.err
|
|
|
17195 |
} && test -s conftest$ac_exeext &&
|
|
|
17196 |
$as_test_x conftest$ac_exeext; then
|
|
|
17197 |
|
|
|
17198 |
lt_aix_libpath_sed='
|
|
|
17199 |
/Import File Strings/,/^$/ {
|
|
|
17200 |
/^0/ {
|
|
|
17201 |
s/^0 *\(.*\)$/\1/
|
|
|
17202 |
p
|
|
|
17203 |
}
|
|
|
17204 |
}'
|
|
|
17205 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
17206 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
17207 |
if test -z "$aix_libpath"; then
|
|
|
17208 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
17209 |
fi
|
|
|
17210 |
else
|
|
|
17211 |
echo "$as_me: failed program was:" >&5
|
|
|
17212 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
17213 |
|
|
|
17214 |
|
|
|
17215 |
fi
|
|
|
17216 |
|
|
|
17217 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
17218 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
17219 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
17220 |
|
|
|
17221 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
17222 |
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
|
17223 |
else
|
|
|
17224 |
if test "$host_cpu" = ia64; then
|
|
|
17225 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
|
|
17226 |
allow_undefined_flag_GCJ="-z nodefs"
|
|
|
17227 |
archive_expsym_cmds_GCJ="\$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"
|
|
|
17228 |
else
|
|
|
17229 |
# Determine the default libpath from the value encoded in an empty executable.
|
|
|
17230 |
cat >conftest.$ac_ext <<_ACEOF
|
|
|
17231 |
/* confdefs.h. */
|
|
|
17232 |
_ACEOF
|
|
|
17233 |
cat confdefs.h >>conftest.$ac_ext
|
|
|
17234 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
|
17235 |
/* end confdefs.h. */
|
|
|
17236 |
|
|
|
17237 |
int
|
|
|
17238 |
main ()
|
|
|
17239 |
{
|
|
|
17240 |
|
|
|
17241 |
;
|
|
|
17242 |
return 0;
|
|
|
17243 |
}
|
|
|
17244 |
_ACEOF
|
|
|
17245 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
17246 |
if { (ac_try="$ac_link"
|
|
|
17247 |
case "(($ac_try" in
|
|
|
17248 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
17249 |
*) ac_try_echo=$ac_try;;
|
|
|
17250 |
esac
|
|
|
17251 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
|
|
17252 |
(eval "$ac_link") 2>conftest.er1
|
|
|
17253 |
ac_status=$?
|
|
|
17254 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
17255 |
rm -f conftest.er1
|
|
|
17256 |
cat conftest.err >&5
|
|
|
17257 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
17258 |
(exit $ac_status); } && {
|
|
|
17259 |
test -z "$ac_c_werror_flag" ||
|
|
|
17260 |
test ! -s conftest.err
|
|
|
17261 |
} && test -s conftest$ac_exeext &&
|
|
|
17262 |
$as_test_x conftest$ac_exeext; then
|
|
|
17263 |
|
|
|
17264 |
lt_aix_libpath_sed='
|
|
|
17265 |
/Import File Strings/,/^$/ {
|
|
|
17266 |
/^0/ {
|
|
|
17267 |
s/^0 *\(.*\)$/\1/
|
|
|
17268 |
p
|
|
|
17269 |
}
|
|
|
17270 |
}'
|
|
|
17271 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
17272 |
# Check for a 64-bit object if we didn't find anything.
|
|
|
17273 |
if test -z "$aix_libpath"; then
|
|
|
17274 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
|
17275 |
fi
|
|
|
17276 |
else
|
|
|
17277 |
echo "$as_me: failed program was:" >&5
|
|
|
17278 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
17279 |
|
|
|
17280 |
|
|
|
17281 |
fi
|
|
|
17282 |
|
|
|
17283 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
|
17284 |
conftest$ac_exeext conftest.$ac_ext
|
|
|
17285 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
17286 |
|
|
|
17287 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
17288 |
# Warning - without using the other run time loading flags,
|
|
|
17289 |
# -berok will link without error, but may produce a broken library.
|
|
|
17290 |
no_undefined_flag_GCJ=' ${wl}-bernotok'
|
|
|
17291 |
allow_undefined_flag_GCJ=' ${wl}-berok'
|
|
|
17292 |
# Exported symbols can be pulled into shared objects from archives
|
|
|
17293 |
whole_archive_flag_spec_GCJ='$convenience'
|
|
|
17294 |
archive_cmds_need_lc_GCJ=yes
|
|
|
17295 |
# This is similar to how AIX traditionally builds its shared libraries.
|
|
|
17296 |
archive_expsym_cmds_GCJ="\$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'
|
|
|
17297 |
fi
|
|
|
17298 |
fi
|
|
|
17299 |
;;
|
|
|
17300 |
|
|
|
17301 |
amigaos*)
|
|
|
17302 |
archive_cmds_GCJ='$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)'
|
|
|
17303 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17304 |
hardcode_minus_L_GCJ=yes
|
|
|
17305 |
# see comment about different semantics on the GNU ld section
|
|
|
17306 |
ld_shlibs_GCJ=no
|
|
|
17307 |
;;
|
|
|
17308 |
|
|
|
17309 |
bsdi[45]*)
|
|
|
17310 |
export_dynamic_flag_spec_GCJ=-rdynamic
|
|
|
17311 |
;;
|
|
|
17312 |
|
|
|
17313 |
cygwin* | mingw* | pw32*)
|
|
|
17314 |
# When not using gcc, we currently assume that we are using
|
|
|
17315 |
# Microsoft Visual C++.
|
|
|
17316 |
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
|
17317 |
# no search path for DLLs.
|
|
|
17318 |
hardcode_libdir_flag_spec_GCJ=' '
|
|
|
17319 |
allow_undefined_flag_GCJ=unsupported
|
|
|
17320 |
# Tell ltmain to make .lib files, not .a files.
|
|
|
17321 |
libext=lib
|
|
|
17322 |
# Tell ltmain to make .dll files, not .so files.
|
|
|
17323 |
shrext_cmds=".dll"
|
|
|
17324 |
# FIXME: Setting linknames here is a bad hack.
|
|
|
17325 |
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
|
17326 |
# The linker will automatically build a .lib file if we build a DLL.
|
|
|
17327 |
old_archive_From_new_cmds_GCJ='true'
|
|
|
17328 |
# FIXME: Should let the user specify the lib program.
|
|
|
17329 |
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
|
17330 |
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
|
|
17331 |
enable_shared_with_static_runtimes_GCJ=yes
|
|
|
17332 |
;;
|
|
|
17333 |
|
|
|
17334 |
darwin* | rhapsody*)
|
|
|
17335 |
case $host_os in
|
|
|
17336 |
rhapsody* | darwin1.[012])
|
|
|
17337 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
|
|
|
17338 |
;;
|
|
|
17339 |
*) # Darwin 1.3 on
|
|
|
17340 |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
|
|
17341 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
17342 |
else
|
|
|
17343 |
case ${MACOSX_DEPLOYMENT_TARGET} in
|
|
|
17344 |
10.[012])
|
|
|
17345 |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
|
|
17346 |
;;
|
|
|
17347 |
10.*)
|
|
|
17348 |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
|
|
|
17349 |
;;
|
|
|
17350 |
esac
|
|
|
17351 |
fi
|
|
|
17352 |
;;
|
|
|
17353 |
esac
|
|
|
17354 |
archive_cmds_need_lc_GCJ=no
|
|
|
17355 |
hardcode_direct_GCJ=no
|
|
|
17356 |
hardcode_automatic_GCJ=yes
|
|
|
17357 |
hardcode_shlibpath_var_GCJ=unsupported
|
|
|
17358 |
whole_archive_flag_spec_GCJ=''
|
|
|
17359 |
link_all_deplibs_GCJ=yes
|
|
|
17360 |
if test "$GCC" = yes ; then
|
|
|
17361 |
output_verbose_link_cmd='echo'
|
|
|
17362 |
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
|
17363 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
17364 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
17365 |
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
17366 |
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
17367 |
else
|
|
|
17368 |
case $cc_basename in
|
|
|
17369 |
xlc*)
|
|
|
17370 |
output_verbose_link_cmd='echo'
|
|
|
17371 |
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
|
|
|
17372 |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
|
17373 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
|
17374 |
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
17375 |
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
|
17376 |
;;
|
|
|
17377 |
*)
|
|
|
17378 |
ld_shlibs_GCJ=no
|
|
|
17379 |
;;
|
|
|
17380 |
esac
|
|
|
17381 |
fi
|
|
|
17382 |
;;
|
|
|
17383 |
|
|
|
17384 |
dgux*)
|
|
|
17385 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17386 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17387 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17388 |
;;
|
|
|
17389 |
|
|
|
17390 |
freebsd1*)
|
|
|
17391 |
ld_shlibs_GCJ=no
|
|
|
17392 |
;;
|
|
|
17393 |
|
|
|
17394 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
|
|
17395 |
# support. Future versions do this automatically, but an explicit c++rt0.o
|
|
|
17396 |
# does not break anything, and helps significantly (at the cost of a little
|
|
|
17397 |
# extra space).
|
|
|
17398 |
freebsd2.2*)
|
|
|
17399 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
|
|
17400 |
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
|
17401 |
hardcode_direct_GCJ=yes
|
|
|
17402 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17403 |
;;
|
|
|
17404 |
|
|
|
17405 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
|
|
17406 |
freebsd2*)
|
|
|
17407 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17408 |
hardcode_direct_GCJ=yes
|
|
|
17409 |
hardcode_minus_L_GCJ=yes
|
|
|
17410 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17411 |
;;
|
|
|
17412 |
|
|
|
17413 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
|
17414 |
freebsd* | dragonfly*)
|
|
|
17415 |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17416 |
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
|
17417 |
hardcode_direct_GCJ=yes
|
|
|
17418 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17419 |
;;
|
|
|
17420 |
|
|
|
17421 |
hpux9*)
|
|
|
17422 |
if test "$GCC" = yes; then
|
|
|
17423 |
archive_cmds_GCJ='$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'
|
|
|
17424 |
else
|
|
|
17425 |
archive_cmds_GCJ='$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'
|
|
|
17426 |
fi
|
|
|
17427 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
|
17428 |
hardcode_libdir_separator_GCJ=:
|
|
|
17429 |
hardcode_direct_GCJ=yes
|
|
|
17430 |
|
|
|
17431 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
17432 |
# but as the default location of the library.
|
|
|
17433 |
hardcode_minus_L_GCJ=yes
|
|
|
17434 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
|
17435 |
;;
|
|
|
17436 |
|
|
|
17437 |
hpux10*)
|
|
|
17438 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
17439 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17440 |
else
|
|
|
17441 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17442 |
fi
|
|
|
17443 |
if test "$with_gnu_ld" = no; then
|
|
|
17444 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
|
17445 |
hardcode_libdir_separator_GCJ=:
|
|
|
17446 |
|
|
|
17447 |
hardcode_direct_GCJ=yes
|
|
|
17448 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
|
17449 |
|
|
|
17450 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
17451 |
# but as the default location of the library.
|
|
|
17452 |
hardcode_minus_L_GCJ=yes
|
|
|
17453 |
fi
|
|
|
17454 |
;;
|
|
|
17455 |
|
|
|
17456 |
hpux11*)
|
|
|
17457 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
|
17458 |
case $host_cpu in
|
|
|
17459 |
hppa*64*)
|
|
|
17460 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17461 |
;;
|
|
|
17462 |
ia64*)
|
|
|
17463 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17464 |
;;
|
|
|
17465 |
*)
|
|
|
17466 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17467 |
;;
|
|
|
17468 |
esac
|
|
|
17469 |
else
|
|
|
17470 |
case $host_cpu in
|
|
|
17471 |
hppa*64*)
|
|
|
17472 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17473 |
;;
|
|
|
17474 |
ia64*)
|
|
|
17475 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17476 |
;;
|
|
|
17477 |
*)
|
|
|
17478 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17479 |
;;
|
|
|
17480 |
esac
|
|
|
17481 |
fi
|
|
|
17482 |
if test "$with_gnu_ld" = no; then
|
|
|
17483 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
|
17484 |
hardcode_libdir_separator_GCJ=:
|
|
|
17485 |
|
|
|
17486 |
case $host_cpu in
|
|
|
17487 |
hppa*64*|ia64*)
|
|
|
17488 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
|
|
17489 |
hardcode_direct_GCJ=no
|
|
|
17490 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17491 |
;;
|
|
|
17492 |
*)
|
|
|
17493 |
hardcode_direct_GCJ=yes
|
|
|
17494 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
|
17495 |
|
|
|
17496 |
# hardcode_minus_L: Not really in the search PATH,
|
|
|
17497 |
# but as the default location of the library.
|
|
|
17498 |
hardcode_minus_L_GCJ=yes
|
|
|
17499 |
;;
|
|
|
17500 |
esac
|
|
|
17501 |
fi
|
|
|
17502 |
;;
|
|
|
17503 |
|
|
|
17504 |
irix5* | irix6* | nonstopux*)
|
|
|
17505 |
if test "$GCC" = yes; then
|
|
|
17506 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
17507 |
else
|
|
|
17508 |
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
17509 |
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
|
|
|
17510 |
fi
|
|
|
17511 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
|
|
17512 |
hardcode_libdir_separator_GCJ=:
|
|
|
17513 |
link_all_deplibs_GCJ=yes
|
|
|
17514 |
;;
|
|
|
17515 |
|
|
|
17516 |
netbsd* | netbsdelf*-gnu)
|
|
|
17517 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
17518 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
|
17519 |
else
|
|
|
17520 |
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
|
|
17521 |
fi
|
|
|
17522 |
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
|
17523 |
hardcode_direct_GCJ=yes
|
|
|
17524 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17525 |
;;
|
|
|
17526 |
|
|
|
17527 |
newsos6)
|
|
|
17528 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17529 |
hardcode_direct_GCJ=yes
|
|
|
17530 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
|
|
17531 |
hardcode_libdir_separator_GCJ=:
|
|
|
17532 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17533 |
;;
|
|
|
17534 |
|
|
|
17535 |
openbsd*)
|
|
|
17536 |
if test -f /usr/libexec/ld.so; then
|
|
|
17537 |
hardcode_direct_GCJ=yes
|
|
|
17538 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17539 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
17540 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17541 |
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
|
17542 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
|
17543 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
|
17544 |
else
|
|
|
17545 |
case $host_os in
|
|
|
17546 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
|
|
17547 |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17548 |
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
|
17549 |
;;
|
|
|
17550 |
*)
|
|
|
17551 |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17552 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
|
17553 |
;;
|
|
|
17554 |
esac
|
|
|
17555 |
fi
|
|
|
17556 |
else
|
|
|
17557 |
ld_shlibs_GCJ=no
|
|
|
17558 |
fi
|
|
|
17559 |
;;
|
|
|
17560 |
|
|
|
17561 |
os2*)
|
|
|
17562 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17563 |
hardcode_minus_L_GCJ=yes
|
|
|
17564 |
allow_undefined_flag_GCJ=unsupported
|
|
|
17565 |
archive_cmds_GCJ='$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'
|
|
|
17566 |
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
|
|
17567 |
;;
|
|
|
17568 |
|
|
|
17569 |
osf3*)
|
|
|
17570 |
if test "$GCC" = yes; then
|
|
|
17571 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
17572 |
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
17573 |
else
|
|
|
17574 |
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
|
|
17575 |
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
17576 |
fi
|
|
|
17577 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
|
|
17578 |
hardcode_libdir_separator_GCJ=:
|
|
|
17579 |
;;
|
|
|
17580 |
|
|
|
17581 |
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
|
17582 |
if test "$GCC" = yes; then
|
|
|
17583 |
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
|
|
|
17584 |
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
|
17585 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
|
|
|
17586 |
else
|
|
|
17587 |
allow_undefined_flag_GCJ=' -expect_unresolved \*'
|
|
|
17588 |
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
|
17589 |
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
|
|
17590 |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
|
|
17591 |
|
|
|
17592 |
# Both c and cxx compiler support -rpath directly
|
|
|
17593 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
|
|
17594 |
fi
|
|
|
17595 |
hardcode_libdir_separator_GCJ=:
|
|
|
17596 |
;;
|
|
|
17597 |
|
|
|
17598 |
solaris*)
|
|
|
17599 |
no_undefined_flag_GCJ=' -z text'
|
|
|
17600 |
if test "$GCC" = yes; then
|
|
|
17601 |
wlarc='${wl}'
|
|
|
17602 |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17603 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
17604 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
|
|
17605 |
else
|
|
|
17606 |
wlarc=''
|
|
|
17607 |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17608 |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
|
17609 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
|
17610 |
fi
|
|
|
17611 |
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
|
|
17612 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17613 |
case $host_os in
|
|
|
17614 |
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
|
|
17615 |
*)
|
|
|
17616 |
# The compiler driver will combine and reorder linker options,
|
|
|
17617 |
# but understands `-z linker_flag'. GCC discards it without `$wl',
|
|
|
17618 |
# but is careful enough not to reorder.
|
|
|
17619 |
# Supported since Solaris 2.6 (maybe 2.5.1?)
|
|
|
17620 |
if test "$GCC" = yes; then
|
|
|
17621 |
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
|
|
|
17622 |
else
|
|
|
17623 |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
|
|
|
17624 |
fi
|
|
|
17625 |
;;
|
|
|
17626 |
esac
|
|
|
17627 |
link_all_deplibs_GCJ=yes
|
|
|
17628 |
;;
|
|
|
17629 |
|
|
|
17630 |
sunos4*)
|
|
|
17631 |
if test "x$host_vendor" = xsequent; then
|
|
|
17632 |
# Use $CC to link under sequent, because it throws in some extra .o
|
|
|
17633 |
# files that make .init and .fini sections work.
|
|
|
17634 |
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17635 |
else
|
|
|
17636 |
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17637 |
fi
|
|
|
17638 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17639 |
hardcode_direct_GCJ=yes
|
|
|
17640 |
hardcode_minus_L_GCJ=yes
|
|
|
17641 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17642 |
;;
|
|
|
17643 |
|
|
|
17644 |
sysv4)
|
|
|
17645 |
case $host_vendor in
|
|
|
17646 |
sni)
|
|
|
17647 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17648 |
hardcode_direct_GCJ=yes # is this really true???
|
|
|
17649 |
;;
|
|
|
17650 |
siemens)
|
|
|
17651 |
## LD is ld it makes a PLAMLIB
|
|
|
17652 |
## CC just makes a GrossModule.
|
|
|
17653 |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17654 |
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
|
|
|
17655 |
hardcode_direct_GCJ=no
|
|
|
17656 |
;;
|
|
|
17657 |
motorola)
|
|
|
17658 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17659 |
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
|
|
|
17660 |
;;
|
|
|
17661 |
esac
|
|
|
17662 |
runpath_var='LD_RUN_PATH'
|
|
|
17663 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17664 |
;;
|
|
|
17665 |
|
|
|
17666 |
sysv4.3*)
|
|
|
17667 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17668 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17669 |
export_dynamic_flag_spec_GCJ='-Bexport'
|
|
|
17670 |
;;
|
|
|
17671 |
|
|
|
17672 |
sysv4*MP*)
|
|
|
17673 |
if test -d /usr/nec; then
|
|
|
17674 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17675 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17676 |
runpath_var=LD_RUN_PATH
|
|
|
17677 |
hardcode_runpath_var=yes
|
|
|
17678 |
ld_shlibs_GCJ=yes
|
|
|
17679 |
fi
|
|
|
17680 |
;;
|
|
|
17681 |
|
|
|
17682 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
|
17683 |
no_undefined_flag_GCJ='${wl}-z,text'
|
|
|
17684 |
archive_cmds_need_lc_GCJ=no
|
|
|
17685 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17686 |
runpath_var='LD_RUN_PATH'
|
|
|
17687 |
|
|
|
17688 |
if test "$GCC" = yes; then
|
|
|
17689 |
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17690 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17691 |
else
|
|
|
17692 |
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17693 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17694 |
fi
|
|
|
17695 |
;;
|
|
|
17696 |
|
|
|
17697 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
|
17698 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
|
17699 |
# link with -lc, and that would cause any symbols used from libc to
|
|
|
17700 |
# always be unresolved, which means just about no library would
|
|
|
17701 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
|
17702 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
|
17703 |
# as -z defs.
|
|
|
17704 |
no_undefined_flag_GCJ='${wl}-z,text'
|
|
|
17705 |
allow_undefined_flag_GCJ='${wl}-z,nodefs'
|
|
|
17706 |
archive_cmds_need_lc_GCJ=no
|
|
|
17707 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17708 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
|
17709 |
hardcode_libdir_separator_GCJ=':'
|
|
|
17710 |
link_all_deplibs_GCJ=yes
|
|
|
17711 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
|
|
17712 |
runpath_var='LD_RUN_PATH'
|
|
|
17713 |
|
|
|
17714 |
if test "$GCC" = yes; then
|
|
|
17715 |
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17716 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17717 |
else
|
|
|
17718 |
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17719 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
|
17720 |
fi
|
|
|
17721 |
;;
|
|
|
17722 |
|
|
|
17723 |
uts4*)
|
|
|
17724 |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
|
17725 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
|
|
17726 |
hardcode_shlibpath_var_GCJ=no
|
|
|
17727 |
;;
|
|
|
17728 |
|
|
|
17729 |
*)
|
|
|
17730 |
ld_shlibs_GCJ=no
|
|
|
17731 |
;;
|
|
|
17732 |
esac
|
|
|
17733 |
fi
|
|
|
17734 |
|
|
|
17735 |
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
|
|
17736 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
|
|
|
17737 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
|
|
17738 |
|
|
|
17739 |
#
|
|
|
17740 |
# Do we need to explicitly link libc?
|
|
|
17741 |
#
|
|
|
17742 |
case "x$archive_cmds_need_lc_GCJ" in
|
|
|
17743 |
x|xyes)
|
|
|
17744 |
# Assume -lc should be added
|
|
|
17745 |
archive_cmds_need_lc_GCJ=yes
|
|
|
17746 |
|
|
|
17747 |
if test "$enable_shared" = yes && test "$GCC" = yes; then
|
|
|
17748 |
case $archive_cmds_GCJ in
|
|
|
17749 |
*'~'*)
|
|
|
17750 |
# FIXME: we may have to deal with multi-command sequences.
|
|
|
17751 |
;;
|
|
|
17752 |
'$CC '*)
|
|
|
17753 |
# Test whether the compiler implicitly links with -lc since on some
|
|
|
17754 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc
|
|
|
17755 |
# to ld, don't add -lc before -lgcc.
|
|
|
17756 |
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
|
|
|
17757 |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
|
|
|
17758 |
$rm conftest*
|
|
|
17759 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
|
|
17760 |
|
|
|
17761 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
|
17762 |
(eval $ac_compile) 2>&5
|
|
|
17763 |
ac_status=$?
|
|
|
17764 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
17765 |
(exit $ac_status); } 2>conftest.err; then
|
|
|
17766 |
soname=conftest
|
|
|
17767 |
lib=conftest
|
|
|
17768 |
libobjs=conftest.$ac_objext
|
|
|
17769 |
deplibs=
|
|
|
17770 |
wl=$lt_prog_compiler_wl_GCJ
|
|
|
17771 |
pic_flag=$lt_prog_compiler_pic_GCJ
|
|
|
17772 |
compiler_flags=-v
|
|
|
17773 |
linker_flags=-v
|
|
|
17774 |
verstring=
|
|
|
17775 |
output_objdir=.
|
|
|
17776 |
libname=conftest
|
|
|
17777 |
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
|
|
|
17778 |
allow_undefined_flag_GCJ=
|
|
|
17779 |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
|
|
|
17780 |
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
|
|
17781 |
ac_status=$?
|
|
|
17782 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
17783 |
(exit $ac_status); }
|
|
|
17784 |
then
|
|
|
17785 |
archive_cmds_need_lc_GCJ=no
|
|
|
17786 |
else
|
|
|
17787 |
archive_cmds_need_lc_GCJ=yes
|
|
|
17788 |
fi
|
|
|
17789 |
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
|
|
|
17790 |
else
|
|
|
17791 |
cat conftest.err 1>&5
|
|
|
17792 |
fi
|
|
|
17793 |
$rm conftest*
|
|
|
17794 |
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
|
|
|
17795 |
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
|
|
|
17796 |
;;
|
|
|
17797 |
esac
|
|
|
17798 |
fi
|
|
|
17799 |
;;
|
|
|
17800 |
esac
|
|
|
17801 |
|
|
|
17802 |
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
|
|
|
17803 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
|
|
|
17804 |
library_names_spec=
|
|
|
17805 |
libname_spec='lib$name'
|
|
|
17806 |
soname_spec=
|
|
|
17807 |
shrext_cmds=".so"
|
|
|
17808 |
postinstall_cmds=
|
|
|
17809 |
postuninstall_cmds=
|
|
|
17810 |
finish_cmds=
|
|
|
17811 |
finish_eval=
|
|
|
17812 |
shlibpath_var=
|
|
|
17813 |
shlibpath_overrides_runpath=unknown
|
|
|
17814 |
version_type=none
|
|
|
17815 |
dynamic_linker="$host_os ld.so"
|
|
|
17816 |
sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
|
|
17817 |
|
|
|
17818 |
need_lib_prefix=unknown
|
|
|
17819 |
hardcode_into_libs=no
|
|
|
17820 |
|
|
|
17821 |
# when you set need_version to no, make sure it does not cause -set_version
|
|
|
17822 |
# flags to be left without arguments
|
|
|
17823 |
need_version=unknown
|
|
|
17824 |
|
|
|
17825 |
case $host_os in
|
|
|
17826 |
aix3*)
|
|
|
17827 |
version_type=linux
|
|
|
17828 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
|
|
17829 |
shlibpath_var=LIBPATH
|
|
|
17830 |
|
|
|
17831 |
# AIX 3 has no versioning support, so we append a major version to the name.
|
|
|
17832 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
17833 |
;;
|
|
|
17834 |
|
|
|
17835 |
aix4* | aix5*)
|
|
|
17836 |
version_type=linux
|
|
|
17837 |
need_lib_prefix=no
|
|
|
17838 |
need_version=no
|
|
|
17839 |
hardcode_into_libs=yes
|
|
|
17840 |
if test "$host_cpu" = ia64; then
|
|
|
17841 |
# AIX 5 supports IA64
|
|
|
17842 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
|
|
17843 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
17844 |
else
|
|
|
17845 |
# With GCC up to 2.95.x, collect2 would create an import file
|
|
|
17846 |
# for dependence libraries. The import file would start with
|
|
|
17847 |
# the line `#! .'. This would cause the generated library to
|
|
|
17848 |
# depend on `.', always an invalid library. This was fixed in
|
|
|
17849 |
# development snapshots of GCC prior to 3.0.
|
|
|
17850 |
case $host_os in
|
|
|
17851 |
aix4 | aix4.[01] | aix4.[01].*)
|
|
|
17852 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
|
|
17853 |
echo ' yes '
|
|
|
17854 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
|
|
17855 |
:
|
|
|
17856 |
else
|
|
|
17857 |
can_build_shared=no
|
|
|
17858 |
fi
|
|
|
17859 |
;;
|
|
|
17860 |
esac
|
|
|
17861 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
|
|
17862 |
# soname into executable. Probably we can add versioning support to
|
|
|
17863 |
# collect2, so additional links can be useful in future.
|
|
|
17864 |
if test "$aix_use_runtimelinking" = yes; then
|
|
|
17865 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
|
|
17866 |
# instead of lib<name>.a to let people know that these are not
|
|
|
17867 |
# typical AIX shared libraries.
|
|
|
17868 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
17869 |
else
|
|
|
17870 |
# We preserve .a as extension for shared libraries through AIX4.2
|
|
|
17871 |
# and later when we are not doing run time linking.
|
|
|
17872 |
library_names_spec='${libname}${release}.a $libname.a'
|
|
|
17873 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
17874 |
fi
|
|
|
17875 |
shlibpath_var=LIBPATH
|
|
|
17876 |
fi
|
|
|
17877 |
;;
|
|
|
17878 |
|
|
|
17879 |
amigaos*)
|
|
|
17880 |
library_names_spec='$libname.ixlibrary $libname.a'
|
|
|
17881 |
# Create ${libname}_ixlibrary.a entries in /sys/libs.
|
|
|
17882 |
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'
|
|
|
17883 |
;;
|
|
|
17884 |
|
|
|
17885 |
beos*)
|
|
|
17886 |
library_names_spec='${libname}${shared_ext}'
|
|
|
17887 |
dynamic_linker="$host_os ld.so"
|
|
|
17888 |
shlibpath_var=LIBRARY_PATH
|
|
|
17889 |
;;
|
|
|
17890 |
|
|
|
17891 |
bsdi[45]*)
|
|
|
17892 |
version_type=linux
|
|
|
17893 |
need_version=no
|
|
|
17894 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
17895 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
17896 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
|
17897 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
17898 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
|
|
17899 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
|
|
17900 |
# the default ld.so.conf also contains /usr/contrib/lib and
|
|
|
17901 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
|
|
17902 |
# libtool to hard-code these into programs
|
|
|
17903 |
;;
|
|
|
17904 |
|
|
|
17905 |
cygwin* | mingw* | pw32*)
|
|
|
17906 |
version_type=windows
|
|
|
17907 |
shrext_cmds=".dll"
|
|
|
17908 |
need_version=no
|
|
|
17909 |
need_lib_prefix=no
|
|
|
17910 |
|
|
|
17911 |
case $GCC,$host_os in
|
|
|
17912 |
yes,cygwin* | yes,mingw* | yes,pw32*)
|
|
|
17913 |
library_names_spec='$libname.dll.a'
|
|
|
17914 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
|
17915 |
postinstall_cmds='base_file=`basename \${file}`~
|
|
|
17916 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
|
|
17917 |
dldir=$destdir/`dirname \$dlpath`~
|
|
|
17918 |
test -d \$dldir || mkdir -p \$dldir~
|
|
|
17919 |
$install_prog $dir/$dlname \$dldir/$dlname~
|
|
|
17920 |
chmod a+x \$dldir/$dlname'
|
|
|
17921 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
|
17922 |
dlpath=$dir/\$dldll~
|
|
|
17923 |
$rm \$dlpath'
|
|
|
17924 |
shlibpath_overrides_runpath=yes
|
|
|
17925 |
|
|
|
17926 |
case $host_os in
|
|
|
17927 |
cygwin*)
|
|
|
17928 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
|
|
17929 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
17930 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
|
|
17931 |
;;
|
|
|
17932 |
mingw*)
|
|
|
17933 |
# MinGW DLLs use traditional 'lib' prefix
|
|
|
17934 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
17935 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
|
|
17936 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
|
|
|
17937 |
# It is most probably a Windows format PATH printed by
|
|
|
17938 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search
|
|
|
17939 |
# path with ; separators, and with drive letters. We can handle the
|
|
|
17940 |
# drive letters (cygwin fileutils understands them), so leave them,
|
|
|
17941 |
# especially as we might pass files found there to a mingw objdump,
|
|
|
17942 |
# which wouldn't understand a cygwinified path. Ahh.
|
|
|
17943 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
|
17944 |
else
|
|
|
17945 |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
|
17946 |
fi
|
|
|
17947 |
;;
|
|
|
17948 |
pw32*)
|
|
|
17949 |
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
|
|
17950 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
|
17951 |
;;
|
|
|
17952 |
esac
|
|
|
17953 |
;;
|
|
|
17954 |
|
|
|
17955 |
*)
|
|
|
17956 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
|
17957 |
;;
|
|
|
17958 |
esac
|
|
|
17959 |
dynamic_linker='Win32 ld.exe'
|
|
|
17960 |
# FIXME: first we should search . and the directory the executable is in
|
|
|
17961 |
shlibpath_var=PATH
|
|
|
17962 |
;;
|
|
|
17963 |
|
|
|
17964 |
darwin* | rhapsody*)
|
|
|
17965 |
dynamic_linker="$host_os dyld"
|
|
|
17966 |
version_type=darwin
|
|
|
17967 |
need_lib_prefix=no
|
|
|
17968 |
need_version=no
|
|
|
17969 |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
|
|
17970 |
soname_spec='${libname}${release}${major}$shared_ext'
|
|
|
17971 |
shlibpath_overrides_runpath=yes
|
|
|
17972 |
shlibpath_var=DYLD_LIBRARY_PATH
|
|
|
17973 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
|
17974 |
|
|
|
17975 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
|
17976 |
;;
|
|
|
17977 |
|
|
|
17978 |
dgux*)
|
|
|
17979 |
version_type=linux
|
|
|
17980 |
need_lib_prefix=no
|
|
|
17981 |
need_version=no
|
|
|
17982 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
|
|
17983 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
17984 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
17985 |
;;
|
|
|
17986 |
|
|
|
17987 |
freebsd1*)
|
|
|
17988 |
dynamic_linker=no
|
|
|
17989 |
;;
|
|
|
17990 |
|
|
|
17991 |
freebsd* | dragonfly*)
|
|
|
17992 |
# DragonFly does not have aout. When/if they implement a new
|
|
|
17993 |
# versioning mechanism, adjust this.
|
|
|
17994 |
if test -x /usr/bin/objformat; then
|
|
|
17995 |
objformat=`/usr/bin/objformat`
|
|
|
17996 |
else
|
|
|
17997 |
case $host_os in
|
|
|
17998 |
freebsd[123]*) objformat=aout ;;
|
|
|
17999 |
*) objformat=elf ;;
|
|
|
18000 |
esac
|
|
|
18001 |
fi
|
|
|
18002 |
version_type=freebsd-$objformat
|
|
|
18003 |
case $version_type in
|
|
|
18004 |
freebsd-elf*)
|
|
|
18005 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
18006 |
need_version=no
|
|
|
18007 |
need_lib_prefix=no
|
|
|
18008 |
;;
|
|
|
18009 |
freebsd-*)
|
|
|
18010 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
|
|
18011 |
need_version=yes
|
|
|
18012 |
;;
|
|
|
18013 |
esac
|
|
|
18014 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18015 |
case $host_os in
|
|
|
18016 |
freebsd2*)
|
|
|
18017 |
shlibpath_overrides_runpath=yes
|
|
|
18018 |
;;
|
|
|
18019 |
freebsd3.[01]* | freebsdelf3.[01]*)
|
|
|
18020 |
shlibpath_overrides_runpath=yes
|
|
|
18021 |
hardcode_into_libs=yes
|
|
|
18022 |
;;
|
|
|
18023 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
|
18024 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
|
18025 |
shlibpath_overrides_runpath=no
|
|
|
18026 |
hardcode_into_libs=yes
|
|
|
18027 |
;;
|
|
|
18028 |
*) # from 4.6 on, and DragonFly
|
|
|
18029 |
shlibpath_overrides_runpath=yes
|
|
|
18030 |
hardcode_into_libs=yes
|
|
|
18031 |
;;
|
|
|
18032 |
esac
|
|
|
18033 |
;;
|
|
|
18034 |
|
|
|
18035 |
gnu*)
|
|
|
18036 |
version_type=linux
|
|
|
18037 |
need_lib_prefix=no
|
|
|
18038 |
need_version=no
|
|
|
18039 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
|
|
18040 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18041 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18042 |
hardcode_into_libs=yes
|
|
|
18043 |
;;
|
|
|
18044 |
|
|
|
18045 |
hpux9* | hpux10* | hpux11*)
|
|
|
18046 |
# Give a soname corresponding to the major version so that dld.sl refuses to
|
|
|
18047 |
# link against other versions.
|
|
|
18048 |
version_type=sunos
|
|
|
18049 |
need_lib_prefix=no
|
|
|
18050 |
need_version=no
|
|
|
18051 |
case $host_cpu in
|
|
|
18052 |
ia64*)
|
|
|
18053 |
shrext_cmds='.so'
|
|
|
18054 |
hardcode_into_libs=yes
|
|
|
18055 |
dynamic_linker="$host_os dld.so"
|
|
|
18056 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18057 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
18058 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18059 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18060 |
if test "X$HPUX_IA64_MODE" = X32; then
|
|
|
18061 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
|
|
18062 |
else
|
|
|
18063 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
|
|
18064 |
fi
|
|
|
18065 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
18066 |
;;
|
|
|
18067 |
hppa*64*)
|
|
|
18068 |
shrext_cmds='.sl'
|
|
|
18069 |
hardcode_into_libs=yes
|
|
|
18070 |
dynamic_linker="$host_os dld.sl"
|
|
|
18071 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
|
|
18072 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
|
|
18073 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18074 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18075 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
|
|
18076 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
|
|
18077 |
;;
|
|
|
18078 |
*)
|
|
|
18079 |
shrext_cmds='.sl'
|
|
|
18080 |
dynamic_linker="$host_os dld.sl"
|
|
|
18081 |
shlibpath_var=SHLIB_PATH
|
|
|
18082 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
|
|
18083 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18084 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18085 |
;;
|
|
|
18086 |
esac
|
|
|
18087 |
# HP-UX runs *really* slowly unless shared libraries are mode 555.
|
|
|
18088 |
postinstall_cmds='chmod 555 $lib'
|
|
|
18089 |
;;
|
|
|
18090 |
|
|
|
18091 |
interix[3-9]*)
|
|
|
18092 |
version_type=linux
|
|
|
18093 |
need_lib_prefix=no
|
|
|
18094 |
need_version=no
|
|
|
18095 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
18096 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18097 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
|
18098 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18099 |
shlibpath_overrides_runpath=no
|
|
|
18100 |
hardcode_into_libs=yes
|
|
|
18101 |
;;
|
|
|
18102 |
|
|
|
18103 |
irix5* | irix6* | nonstopux*)
|
|
|
18104 |
case $host_os in
|
|
|
18105 |
nonstopux*) version_type=nonstopux ;;
|
|
|
18106 |
*)
|
|
|
18107 |
if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
|
18108 |
version_type=linux
|
|
|
18109 |
else
|
|
|
18110 |
version_type=irix
|
|
|
18111 |
fi ;;
|
|
|
18112 |
esac
|
|
|
18113 |
need_lib_prefix=no
|
|
|
18114 |
need_version=no
|
|
|
18115 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18116 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
18117 |
case $host_os in
|
|
|
18118 |
irix5* | nonstopux*)
|
|
|
18119 |
libsuff= shlibsuff=
|
|
|
18120 |
;;
|
|
|
18121 |
*)
|
|
|
18122 |
case $LD in # libtool.m4 will add one of these switches to LD
|
|
|
18123 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
|
|
18124 |
libsuff= shlibsuff= libmagic=32-bit;;
|
|
|
18125 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
|
|
18126 |
libsuff=32 shlibsuff=N32 libmagic=N32;;
|
|
|
18127 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
|
|
18128 |
libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
|
|
18129 |
*) libsuff= shlibsuff= libmagic=never-match;;
|
|
|
18130 |
esac
|
|
|
18131 |
;;
|
|
|
18132 |
esac
|
|
|
18133 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
|
|
18134 |
shlibpath_overrides_runpath=no
|
|
|
18135 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
|
|
18136 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
|
|
18137 |
hardcode_into_libs=yes
|
|
|
18138 |
;;
|
|
|
18139 |
|
|
|
18140 |
# No shared lib support for Linux oldld, aout, or coff.
|
|
|
18141 |
linux*oldld* | linux*aout* | linux*coff*)
|
|
|
18142 |
dynamic_linker=no
|
|
|
18143 |
;;
|
|
|
18144 |
|
|
|
18145 |
# This must be Linux ELF.
|
|
|
18146 |
linux* | k*bsd*-gnu)
|
|
|
18147 |
version_type=linux
|
|
|
18148 |
need_lib_prefix=no
|
|
|
18149 |
need_version=no
|
|
|
18150 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18151 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18152 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
|
|
18153 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18154 |
shlibpath_overrides_runpath=no
|
|
|
18155 |
# This implies no fast_install, which is unacceptable.
|
|
|
18156 |
# Some rework will be needed to allow for fast_install
|
|
|
18157 |
# before this can be enabled.
|
|
|
18158 |
hardcode_into_libs=yes
|
|
|
18159 |
|
|
|
18160 |
# Append ld.so.conf contents to the search path
|
|
|
18161 |
if test -f /etc/ld.so.conf; then
|
|
|
18162 |
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' ' '`
|
|
|
18163 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
|
18164 |
fi
|
|
|
18165 |
|
|
|
18166 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
|
18167 |
# powerpc, because MkLinux only supported shared libraries with the
|
|
|
18168 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
|
18169 |
# most powerpc-linux boxes support dynamic linking these days and
|
|
|
18170 |
# people can always --disable-shared, the test was removed, and we
|
|
|
18171 |
# assume the GNU/Linux dynamic linker is in use.
|
|
|
18172 |
dynamic_linker='GNU/Linux ld.so'
|
|
|
18173 |
;;
|
|
|
18174 |
|
|
|
18175 |
netbsdelf*-gnu)
|
|
|
18176 |
version_type=linux
|
|
|
18177 |
need_lib_prefix=no
|
|
|
18178 |
need_version=no
|
|
|
18179 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
18180 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18181 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18182 |
shlibpath_overrides_runpath=no
|
|
|
18183 |
hardcode_into_libs=yes
|
|
|
18184 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
18185 |
;;
|
|
|
18186 |
|
|
|
18187 |
netbsd*)
|
|
|
18188 |
version_type=sunos
|
|
|
18189 |
need_lib_prefix=no
|
|
|
18190 |
need_version=no
|
|
|
18191 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
|
18192 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
18193 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
18194 |
dynamic_linker='NetBSD (a.out) ld.so'
|
|
|
18195 |
else
|
|
|
18196 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
18197 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18198 |
dynamic_linker='NetBSD ld.elf_so'
|
|
|
18199 |
fi
|
|
|
18200 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18201 |
shlibpath_overrides_runpath=yes
|
|
|
18202 |
hardcode_into_libs=yes
|
|
|
18203 |
;;
|
|
|
18204 |
|
|
|
18205 |
newsos6)
|
|
|
18206 |
version_type=linux
|
|
|
18207 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18208 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18209 |
shlibpath_overrides_runpath=yes
|
|
|
18210 |
;;
|
|
|
18211 |
|
|
|
18212 |
nto-qnx*)
|
|
|
18213 |
version_type=linux
|
|
|
18214 |
need_lib_prefix=no
|
|
|
18215 |
need_version=no
|
|
|
18216 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18217 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18218 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18219 |
shlibpath_overrides_runpath=yes
|
|
|
18220 |
;;
|
|
|
18221 |
|
|
|
18222 |
openbsd*)
|
|
|
18223 |
version_type=sunos
|
|
|
18224 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
|
18225 |
need_lib_prefix=no
|
|
|
18226 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
|
18227 |
case $host_os in
|
|
|
18228 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
|
18229 |
*) need_version=no ;;
|
|
|
18230 |
esac
|
|
|
18231 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
18232 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
|
18233 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18234 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
|
18235 |
case $host_os in
|
|
|
18236 |
openbsd2.[89] | openbsd2.[89].*)
|
|
|
18237 |
shlibpath_overrides_runpath=no
|
|
|
18238 |
;;
|
|
|
18239 |
*)
|
|
|
18240 |
shlibpath_overrides_runpath=yes
|
|
|
18241 |
;;
|
|
|
18242 |
esac
|
|
|
18243 |
else
|
|
|
18244 |
shlibpath_overrides_runpath=yes
|
|
|
18245 |
fi
|
|
|
18246 |
;;
|
|
|
18247 |
|
|
|
18248 |
os2*)
|
|
|
18249 |
libname_spec='$name'
|
|
|
18250 |
shrext_cmds=".dll"
|
|
|
18251 |
need_lib_prefix=no
|
|
|
18252 |
library_names_spec='$libname${shared_ext} $libname.a'
|
|
|
18253 |
dynamic_linker='OS/2 ld.exe'
|
|
|
18254 |
shlibpath_var=LIBPATH
|
|
|
18255 |
;;
|
|
|
18256 |
|
|
|
18257 |
osf3* | osf4* | osf5*)
|
|
|
18258 |
version_type=osf
|
|
|
18259 |
need_lib_prefix=no
|
|
|
18260 |
need_version=no
|
|
|
18261 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18262 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18263 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18264 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
|
|
18265 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
|
18266 |
;;
|
|
|
18267 |
|
|
|
18268 |
rdos*)
|
|
|
18269 |
dynamic_linker=no
|
|
|
18270 |
;;
|
|
|
18271 |
|
|
|
18272 |
solaris*)
|
|
|
18273 |
version_type=linux
|
|
|
18274 |
need_lib_prefix=no
|
|
|
18275 |
need_version=no
|
|
|
18276 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18277 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18278 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18279 |
shlibpath_overrides_runpath=yes
|
|
|
18280 |
hardcode_into_libs=yes
|
|
|
18281 |
# ldd complains unless libraries are executable
|
|
|
18282 |
postinstall_cmds='chmod +x $lib'
|
|
|
18283 |
;;
|
|
|
18284 |
|
|
|
18285 |
sunos4*)
|
|
|
18286 |
version_type=sunos
|
|
|
18287 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
|
18288 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
|
|
18289 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18290 |
shlibpath_overrides_runpath=yes
|
|
|
18291 |
if test "$with_gnu_ld" = yes; then
|
|
|
18292 |
need_lib_prefix=no
|
|
|
18293 |
fi
|
|
|
18294 |
need_version=yes
|
|
|
18295 |
;;
|
|
|
18296 |
|
|
|
18297 |
sysv4 | sysv4.3*)
|
|
|
18298 |
version_type=linux
|
|
|
18299 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18300 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18301 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18302 |
case $host_vendor in
|
|
|
18303 |
sni)
|
|
|
18304 |
shlibpath_overrides_runpath=no
|
|
|
18305 |
need_lib_prefix=no
|
|
|
18306 |
export_dynamic_flag_spec='${wl}-Blargedynsym'
|
|
|
18307 |
runpath_var=LD_RUN_PATH
|
|
|
18308 |
;;
|
|
|
18309 |
siemens)
|
|
|
18310 |
need_lib_prefix=no
|
|
|
18311 |
;;
|
|
|
18312 |
motorola)
|
|
|
18313 |
need_lib_prefix=no
|
|
|
18314 |
need_version=no
|
|
|
18315 |
shlibpath_overrides_runpath=no
|
|
|
18316 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
|
|
18317 |
;;
|
|
|
18318 |
esac
|
|
|
18319 |
;;
|
|
|
18320 |
|
|
|
18321 |
sysv4*MP*)
|
|
|
18322 |
if test -d /usr/nec ;then
|
|
|
18323 |
version_type=linux
|
|
|
18324 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
|
|
18325 |
soname_spec='$libname${shared_ext}.$major'
|
|
|
18326 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18327 |
fi
|
|
|
18328 |
;;
|
|
|
18329 |
|
|
|
18330 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
18331 |
version_type=freebsd-elf
|
|
|
18332 |
need_lib_prefix=no
|
|
|
18333 |
need_version=no
|
|
|
18334 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
|
18335 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18336 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18337 |
hardcode_into_libs=yes
|
|
|
18338 |
if test "$with_gnu_ld" = yes; then
|
|
|
18339 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
|
18340 |
shlibpath_overrides_runpath=no
|
|
|
18341 |
else
|
|
|
18342 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
|
18343 |
shlibpath_overrides_runpath=yes
|
|
|
18344 |
case $host_os in
|
|
|
18345 |
sco3.2v5*)
|
|
|
18346 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
|
18347 |
;;
|
|
|
18348 |
esac
|
|
|
18349 |
fi
|
|
|
18350 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
|
18351 |
;;
|
|
|
18352 |
|
|
|
18353 |
uts4*)
|
|
|
18354 |
version_type=linux
|
|
|
18355 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
|
18356 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
18357 |
shlibpath_var=LD_LIBRARY_PATH
|
|
|
18358 |
;;
|
|
|
18359 |
|
|
|
18360 |
*)
|
|
|
18361 |
dynamic_linker=no
|
|
|
18362 |
;;
|
|
|
18363 |
esac
|
|
|
18364 |
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
|
|
18365 |
echo "${ECHO_T}$dynamic_linker" >&6; }
|
|
|
18366 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
|
18367 |
|
|
|
18368 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
|
18369 |
if test "$GCC" = yes; then
|
|
|
18370 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
|
18371 |
fi
|
|
|
18372 |
|
|
|
18373 |
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
|
|
18374 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
|
|
|
18375 |
hardcode_action_GCJ=
|
|
|
18376 |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
|
|
|
18377 |
test -n "$runpath_var_GCJ" || \
|
|
|
18378 |
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
|
|
|
18379 |
|
|
|
18380 |
# We can hardcode non-existant directories.
|
|
|
18381 |
if test "$hardcode_direct_GCJ" != no &&
|
|
|
18382 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
|
|
18383 |
# have to relink, otherwise we might link with an installed library
|
|
|
18384 |
# when we should be linking with a yet-to-be-installed one
|
|
|
18385 |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
|
|
|
18386 |
test "$hardcode_minus_L_GCJ" != no; then
|
|
|
18387 |
# Linking always hardcodes the temporary library directory.
|
|
|
18388 |
hardcode_action_GCJ=relink
|
|
|
18389 |
else
|
|
|
18390 |
# We can link without hardcoding, and we can hardcode nonexisting dirs.
|
|
|
18391 |
hardcode_action_GCJ=immediate
|
|
|
18392 |
fi
|
|
|
18393 |
else
|
|
|
18394 |
# We cannot hardcode anything, or else we can only hardcode existing
|
|
|
18395 |
# directories.
|
|
|
18396 |
hardcode_action_GCJ=unsupported
|
|
|
18397 |
fi
|
|
|
18398 |
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
|
|
|
18399 |
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
|
|
|
18400 |
|
|
|
18401 |
if test "$hardcode_action_GCJ" = relink; then
|
|
|
18402 |
# Fast installation is not supported
|
|
|
18403 |
enable_fast_install=no
|
|
|
18404 |
elif test "$shlibpath_overrides_runpath" = yes ||
|
|
|
18405 |
test "$enable_shared" = no; then
|
|
|
18406 |
# Fast installation is not necessary
|
|
|
18407 |
enable_fast_install=needless
|
|
|
18408 |
fi
|
|
|
18409 |
|
|
|
18410 |
|
|
|
18411 |
# The else clause should only fire when bootstrapping the
|
|
|
18412 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
18413 |
# with your package, and you will get complaints that there are
|
|
|
18414 |
# no rules to generate ltmain.sh.
|
|
|
18415 |
if test -f "$ltmain"; then
|
|
|
18416 |
# See if we are running on zsh, and set the options which allow our commands through
|
|
|
18417 |
# without removal of \ escapes.
|
|
|
18418 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
18419 |
setopt NO_GLOB_SUBST
|
|
|
18420 |
fi
|
|
|
18421 |
# Now quote all the things that may contain metacharacters while being
|
|
|
18422 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
18423 |
# variables and quote the copies for generation of the libtool script.
|
|
|
18424 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
|
18425 |
SED SHELL STRIP \
|
|
|
18426 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
|
18427 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
|
18428 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
|
|
18429 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|
|
18430 |
lt_cv_sys_global_symbol_to_c_name_address \
|
|
|
18431 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
18432 |
old_postinstall_cmds old_postuninstall_cmds \
|
|
|
18433 |
compiler_GCJ \
|
|
|
18434 |
CC_GCJ \
|
|
|
18435 |
LD_GCJ \
|
|
|
18436 |
lt_prog_compiler_wl_GCJ \
|
|
|
18437 |
lt_prog_compiler_pic_GCJ \
|
|
|
18438 |
lt_prog_compiler_static_GCJ \
|
|
|
18439 |
lt_prog_compiler_no_builtin_flag_GCJ \
|
|
|
18440 |
export_dynamic_flag_spec_GCJ \
|
|
|
18441 |
thread_safe_flag_spec_GCJ \
|
|
|
18442 |
whole_archive_flag_spec_GCJ \
|
|
|
18443 |
enable_shared_with_static_runtimes_GCJ \
|
|
|
18444 |
old_archive_cmds_GCJ \
|
|
|
18445 |
old_archive_from_new_cmds_GCJ \
|
|
|
18446 |
predep_objects_GCJ \
|
|
|
18447 |
postdep_objects_GCJ \
|
|
|
18448 |
predeps_GCJ \
|
|
|
18449 |
postdeps_GCJ \
|
|
|
18450 |
compiler_lib_search_path_GCJ \
|
|
|
18451 |
archive_cmds_GCJ \
|
|
|
18452 |
archive_expsym_cmds_GCJ \
|
|
|
18453 |
postinstall_cmds_GCJ \
|
|
|
18454 |
postuninstall_cmds_GCJ \
|
|
|
18455 |
old_archive_from_expsyms_cmds_GCJ \
|
|
|
18456 |
allow_undefined_flag_GCJ \
|
|
|
18457 |
no_undefined_flag_GCJ \
|
|
|
18458 |
export_symbols_cmds_GCJ \
|
|
|
18459 |
hardcode_libdir_flag_spec_GCJ \
|
|
|
18460 |
hardcode_libdir_flag_spec_ld_GCJ \
|
|
|
18461 |
hardcode_libdir_separator_GCJ \
|
|
|
18462 |
hardcode_automatic_GCJ \
|
|
|
18463 |
module_cmds_GCJ \
|
|
|
18464 |
module_expsym_cmds_GCJ \
|
|
|
18465 |
lt_cv_prog_compiler_c_o_GCJ \
|
|
|
18466 |
fix_srcfile_path_GCJ \
|
|
|
18467 |
exclude_expsyms_GCJ \
|
|
|
18468 |
include_expsyms_GCJ; do
|
|
|
18469 |
|
|
|
18470 |
case $var in
|
|
|
18471 |
old_archive_cmds_GCJ | \
|
|
|
18472 |
old_archive_from_new_cmds_GCJ | \
|
|
|
18473 |
archive_cmds_GCJ | \
|
|
|
18474 |
archive_expsym_cmds_GCJ | \
|
|
|
18475 |
module_cmds_GCJ | \
|
|
|
18476 |
module_expsym_cmds_GCJ | \
|
|
|
18477 |
old_archive_from_expsyms_cmds_GCJ | \
|
|
|
18478 |
export_symbols_cmds_GCJ | \
|
|
|
18479 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|
|
18480 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
18481 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
18482 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
18483 |
# Double-quote double-evaled strings.
|
|
|
18484 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
18485 |
;;
|
|
|
18486 |
*)
|
|
|
18487 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
18488 |
;;
|
|
|
18489 |
esac
|
|
|
18490 |
done
|
|
|
18491 |
|
|
|
18492 |
case $lt_echo in
|
|
|
18493 |
*'\$0 --fallback-echo"')
|
|
|
18494 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
|
|
18495 |
;;
|
|
|
18496 |
esac
|
|
|
18497 |
|
|
|
18498 |
cfgfile="$ofile"
|
|
|
18499 |
|
|
|
18500 |
cat <<__EOF__ >> "$cfgfile"
|
|
|
18501 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
|
|
18502 |
|
|
|
18503 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
18504 |
|
|
|
18505 |
# Shell to use when invoking shell scripts.
|
|
|
18506 |
SHELL=$lt_SHELL
|
|
|
18507 |
|
|
|
18508 |
# Whether or not to build shared libraries.
|
|
|
18509 |
build_libtool_libs=$enable_shared
|
|
|
18510 |
|
|
|
18511 |
# Whether or not to build static libraries.
|
|
|
18512 |
build_old_libs=$enable_static
|
|
|
18513 |
|
|
|
18514 |
# Whether or not to add -lc for building shared libraries.
|
|
|
18515 |
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
|
|
|
18516 |
|
|
|
18517 |
# Whether or not to disallow shared libs when runtime libs are static
|
|
|
18518 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
|
|
|
18519 |
|
|
|
18520 |
# Whether or not to optimize for fast installation.
|
|
|
18521 |
fast_install=$enable_fast_install
|
|
|
18522 |
|
|
|
18523 |
# The host system.
|
|
|
18524 |
host_alias=$host_alias
|
|
|
18525 |
host=$host
|
|
|
18526 |
host_os=$host_os
|
|
|
18527 |
|
|
|
18528 |
# The build system.
|
|
|
18529 |
build_alias=$build_alias
|
|
|
18530 |
build=$build
|
|
|
18531 |
build_os=$build_os
|
|
|
18532 |
|
|
|
18533 |
# An echo program that does not interpret backslashes.
|
|
|
18534 |
echo=$lt_echo
|
|
|
18535 |
|
|
|
18536 |
# The archiver.
|
|
|
18537 |
AR=$lt_AR
|
|
|
18538 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
18539 |
|
|
|
18540 |
# A C compiler.
|
|
|
18541 |
LTCC=$lt_LTCC
|
|
|
18542 |
|
|
|
18543 |
# LTCC compiler flags.
|
|
|
18544 |
LTCFLAGS=$lt_LTCFLAGS
|
|
|
18545 |
|
|
|
18546 |
# A language-specific compiler.
|
|
|
18547 |
CC=$lt_compiler_GCJ
|
|
|
18548 |
|
|
|
18549 |
# Is the compiler the GNU C compiler?
|
|
|
18550 |
with_gcc=$GCC_GCJ
|
|
|
18551 |
|
|
|
18552 |
# An ERE matcher.
|
|
|
18553 |
EGREP=$lt_EGREP
|
|
|
18554 |
|
|
|
18555 |
# The linker used to build libraries.
|
|
|
18556 |
LD=$lt_LD_GCJ
|
|
|
18557 |
|
|
|
18558 |
# Whether we need hard or soft links.
|
|
|
18559 |
LN_S=$lt_LN_S
|
|
|
18560 |
|
|
|
18561 |
# A BSD-compatible nm program.
|
|
|
18562 |
NM=$lt_NM
|
|
|
18563 |
|
|
|
18564 |
# A symbol stripping program
|
|
|
18565 |
STRIP=$lt_STRIP
|
|
|
18566 |
|
|
|
18567 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
18568 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
18569 |
|
|
|
18570 |
# Used on cygwin: DLL creation program.
|
|
|
18571 |
DLLTOOL="$DLLTOOL"
|
|
|
18572 |
|
|
|
18573 |
# Used on cygwin: object dumper.
|
|
|
18574 |
OBJDUMP="$OBJDUMP"
|
|
|
18575 |
|
|
|
18576 |
# Used on cygwin: assembler.
|
|
|
18577 |
AS="$AS"
|
|
|
18578 |
|
|
|
18579 |
# The name of the directory that contains temporary libtool files.
|
|
|
18580 |
objdir=$objdir
|
|
|
18581 |
|
|
|
18582 |
# How to create reloadable object files.
|
|
|
18583 |
reload_flag=$lt_reload_flag
|
|
|
18584 |
reload_cmds=$lt_reload_cmds
|
|
|
18585 |
|
|
|
18586 |
# How to pass a linker flag through the compiler.
|
|
|
18587 |
wl=$lt_lt_prog_compiler_wl_GCJ
|
|
|
18588 |
|
|
|
18589 |
# Object file suffix (normally "o").
|
|
|
18590 |
objext="$ac_objext"
|
|
|
18591 |
|
|
|
18592 |
# Old archive suffix (normally "a").
|
|
|
18593 |
libext="$libext"
|
|
|
18594 |
|
|
|
18595 |
# Shared library suffix (normally ".so").
|
|
|
18596 |
shrext_cmds='$shrext_cmds'
|
|
|
18597 |
|
|
|
18598 |
# Executable file suffix (normally "").
|
|
|
18599 |
exeext="$exeext"
|
|
|
18600 |
|
|
|
18601 |
# Additional compiler flags for building library objects.
|
|
|
18602 |
pic_flag=$lt_lt_prog_compiler_pic_GCJ
|
|
|
18603 |
pic_mode=$pic_mode
|
|
|
18604 |
|
|
|
18605 |
# What is the maximum length of a command?
|
|
|
18606 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
18607 |
|
|
|
18608 |
# Does compiler simultaneously support -c and -o options?
|
|
|
18609 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
|
|
|
18610 |
|
|
|
18611 |
# Must we lock files when doing compilation?
|
|
|
18612 |
need_locks=$lt_need_locks
|
|
|
18613 |
|
|
|
18614 |
# Do we need the lib prefix for modules?
|
|
|
18615 |
need_lib_prefix=$need_lib_prefix
|
|
|
18616 |
|
|
|
18617 |
# Do we need a version for libraries?
|
|
|
18618 |
need_version=$need_version
|
|
|
18619 |
|
|
|
18620 |
# Whether dlopen is supported.
|
|
|
18621 |
dlopen_support=$enable_dlopen
|
|
|
18622 |
|
|
|
18623 |
# Whether dlopen of programs is supported.
|
|
|
18624 |
dlopen_self=$enable_dlopen_self
|
|
|
18625 |
|
|
|
18626 |
# Whether dlopen of statically linked programs is supported.
|
|
|
18627 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
18628 |
|
|
|
18629 |
# Compiler flag to prevent dynamic linking.
|
|
|
18630 |
link_static_flag=$lt_lt_prog_compiler_static_GCJ
|
|
|
18631 |
|
|
|
18632 |
# Compiler flag to turn off builtin functions.
|
|
|
18633 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
|
|
|
18634 |
|
|
|
18635 |
# Compiler flag to allow reflexive dlopens.
|
|
|
18636 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
|
|
|
18637 |
|
|
|
18638 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
18639 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
|
|
|
18640 |
|
|
|
18641 |
# Compiler flag to generate thread-safe objects.
|
|
|
18642 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
|
|
|
18643 |
|
|
|
18644 |
# Library versioning type.
|
|
|
18645 |
version_type=$version_type
|
|
|
18646 |
|
|
|
18647 |
# Format of library name prefix.
|
|
|
18648 |
libname_spec=$lt_libname_spec
|
|
|
18649 |
|
|
|
18650 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
18651 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
18652 |
library_names_spec=$lt_library_names_spec
|
|
|
18653 |
|
|
|
18654 |
# The coded name of the library, if different from the real name.
|
|
|
18655 |
soname_spec=$lt_soname_spec
|
|
|
18656 |
|
|
|
18657 |
# Commands used to build and install an old-style archive.
|
|
|
18658 |
RANLIB=$lt_RANLIB
|
|
|
18659 |
old_archive_cmds=$lt_old_archive_cmds_GCJ
|
|
|
18660 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
18661 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
18662 |
|
|
|
18663 |
# Create an old-style archive from a shared archive.
|
|
|
18664 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
|
|
|
18665 |
|
|
|
18666 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
18667 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
|
|
|
18668 |
|
|
|
18669 |
# Commands used to build and install a shared archive.
|
|
|
18670 |
archive_cmds=$lt_archive_cmds_GCJ
|
|
|
18671 |
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
|
|
|
18672 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
18673 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
18674 |
|
|
|
18675 |
# Commands used to build a loadable module (assumed same as above if empty)
|
|
|
18676 |
module_cmds=$lt_module_cmds_GCJ
|
|
|
18677 |
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
|
|
|
18678 |
|
|
|
18679 |
# Commands to strip libraries.
|
|
|
18680 |
old_striplib=$lt_old_striplib
|
|
|
18681 |
striplib=$lt_striplib
|
|
|
18682 |
|
|
|
18683 |
# Dependencies to place before the objects being linked to create a
|
|
|
18684 |
# shared library.
|
|
|
18685 |
predep_objects=$lt_predep_objects_GCJ
|
|
|
18686 |
|
|
|
18687 |
# Dependencies to place after the objects being linked to create a
|
|
|
18688 |
# shared library.
|
|
|
18689 |
postdep_objects=$lt_postdep_objects_GCJ
|
|
|
18690 |
|
|
|
18691 |
# Dependencies to place before the objects being linked to create a
|
|
|
18692 |
# shared library.
|
|
|
18693 |
predeps=$lt_predeps_GCJ
|
|
|
18694 |
|
|
|
18695 |
# Dependencies to place after the objects being linked to create a
|
|
|
18696 |
# shared library.
|
|
|
18697 |
postdeps=$lt_postdeps_GCJ
|
|
|
18698 |
|
|
|
18699 |
# The library search path used internally by the compiler when linking
|
|
|
18700 |
# a shared library.
|
|
|
18701 |
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
|
|
|
18702 |
|
|
|
18703 |
# Method to check whether dependent libraries are shared objects.
|
|
|
18704 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
18705 |
|
|
|
18706 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
18707 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
18708 |
|
|
|
18709 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
18710 |
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
|
|
|
18711 |
|
|
|
18712 |
# Flag that forces no undefined symbols.
|
|
|
18713 |
no_undefined_flag=$lt_no_undefined_flag_GCJ
|
|
|
18714 |
|
|
|
18715 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
18716 |
finish_cmds=$lt_finish_cmds
|
|
|
18717 |
|
|
|
18718 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
18719 |
finish_eval=$lt_finish_eval
|
|
|
18720 |
|
|
|
18721 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
18722 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
18723 |
|
|
|
18724 |
# Transform the output of nm in a proper C declaration
|
|
|
18725 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
18726 |
|
|
|
18727 |
# Transform the output of nm in a C name address pair
|
|
|
18728 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
18729 |
|
|
|
18730 |
# This is the shared library runtime path variable.
|
|
|
18731 |
runpath_var=$runpath_var
|
|
|
18732 |
|
|
|
18733 |
# This is the shared library path variable.
|
|
|
18734 |
shlibpath_var=$shlibpath_var
|
|
|
18735 |
|
|
|
18736 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
18737 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
18738 |
|
|
|
18739 |
# How to hardcode a shared library path into an executable.
|
|
|
18740 |
hardcode_action=$hardcode_action_GCJ
|
|
|
18741 |
|
|
|
18742 |
# Whether we should hardcode library paths into libraries.
|
|
|
18743 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
18744 |
|
|
|
18745 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
18746 |
# This must work even if \$libdir does not exist.
|
|
|
18747 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
|
|
|
18748 |
|
|
|
18749 |
# If ld is used when linking, flag to hardcode \$libdir into
|
|
|
18750 |
# a binary during linking. This must work even if \$libdir does
|
|
|
18751 |
# not exist.
|
|
|
18752 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
|
|
|
18753 |
|
|
|
18754 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
18755 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
|
|
|
18756 |
|
|
|
18757 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|
|
18758 |
# resulting binary.
|
|
|
18759 |
hardcode_direct=$hardcode_direct_GCJ
|
|
|
18760 |
|
|
|
18761 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
18762 |
# resulting binary.
|
|
|
18763 |
hardcode_minus_L=$hardcode_minus_L_GCJ
|
|
|
18764 |
|
|
|
18765 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
18766 |
# the resulting binary.
|
|
|
18767 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
|
|
|
18768 |
|
|
|
18769 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
|
|
18770 |
# and all subsequent libraries and executables linked against it.
|
|
|
18771 |
hardcode_automatic=$hardcode_automatic_GCJ
|
|
|
18772 |
|
|
|
18773 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
18774 |
# restored at relink time.
|
|
|
18775 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
18776 |
|
|
|
18777 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
18778 |
link_all_deplibs=$link_all_deplibs_GCJ
|
|
|
18779 |
|
|
|
18780 |
# Compile-time system search path for libraries
|
|
|
18781 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
18782 |
|
|
|
18783 |
# Run-time system search path for libraries
|
|
|
18784 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
18785 |
|
|
|
18786 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
18787 |
fix_srcfile_path=$lt_fix_srcfile_path
|
|
|
18788 |
|
|
|
18789 |
# Set to yes if exported symbols are required.
|
|
|
18790 |
always_export_symbols=$always_export_symbols_GCJ
|
|
|
18791 |
|
|
|
18792 |
# The commands to list exported symbols.
|
|
|
18793 |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
|
|
|
18794 |
|
|
|
18795 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
18796 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
18797 |
|
|
|
18798 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
18799 |
exclude_expsyms=$lt_exclude_expsyms_GCJ
|
|
|
18800 |
|
|
|
18801 |
# Symbols that must always be exported.
|
|
|
18802 |
include_expsyms=$lt_include_expsyms_GCJ
|
|
|
18803 |
|
|
|
18804 |
# ### END LIBTOOL TAG CONFIG: $tagname
|
|
|
18805 |
|
|
|
18806 |
__EOF__
|
|
|
18807 |
|
|
|
18808 |
|
|
|
18809 |
else
|
|
|
18810 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
18811 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
18812 |
# libtool script then.
|
|
|
18813 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|
|
18814 |
if test -f "$ltmain_in"; then
|
|
|
18815 |
test -f Makefile && make "$ltmain"
|
|
|
18816 |
fi
|
|
|
18817 |
fi
|
|
|
18818 |
|
|
|
18819 |
|
|
|
18820 |
ac_ext=c
|
|
|
18821 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
18822 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
18823 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
18824 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
18825 |
|
|
|
18826 |
CC="$lt_save_CC"
|
|
|
18827 |
|
|
|
18828 |
else
|
|
|
18829 |
tagname=""
|
|
|
18830 |
fi
|
|
|
18831 |
;;
|
|
|
18832 |
|
|
|
18833 |
RC)
|
|
|
18834 |
|
|
|
18835 |
|
|
|
18836 |
# Source file extension for RC test sources.
|
|
|
18837 |
ac_ext=rc
|
|
|
18838 |
|
|
|
18839 |
# Object file extension for compiled RC test sources.
|
|
|
18840 |
objext=o
|
|
|
18841 |
objext_RC=$objext
|
|
|
18842 |
|
|
|
18843 |
# Code to be used in simple compile tests
|
|
|
18844 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|
|
|
18845 |
|
|
|
18846 |
# Code to be used in simple link tests
|
|
|
18847 |
lt_simple_link_test_code="$lt_simple_compile_test_code"
|
|
|
18848 |
|
|
|
18849 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
|
18850 |
|
|
|
18851 |
# If no C compiler was specified, use CC.
|
|
|
18852 |
LTCC=${LTCC-"$CC"}
|
|
|
18853 |
|
|
|
18854 |
# If no C compiler flags were specified, use CFLAGS.
|
|
|
18855 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
|
18856 |
|
|
|
18857 |
# Allow CC to be a program name with arguments.
|
|
|
18858 |
compiler=$CC
|
|
|
18859 |
|
|
|
18860 |
|
|
|
18861 |
# save warnings/boilerplate of simple test code
|
|
|
18862 |
ac_outfile=conftest.$ac_objext
|
|
|
18863 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
|
18864 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
18865 |
_lt_compiler_boilerplate=`cat conftest.err`
|
|
|
18866 |
$rm conftest*
|
|
|
18867 |
|
|
|
18868 |
ac_outfile=conftest.$ac_objext
|
|
|
18869 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
|
18870 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
|
18871 |
_lt_linker_boilerplate=`cat conftest.err`
|
|
|
18872 |
$rm conftest*
|
|
|
18873 |
|
|
|
18874 |
|
|
|
18875 |
# Allow CC to be a program name with arguments.
|
|
|
18876 |
lt_save_CC="$CC"
|
|
|
18877 |
CC=${RC-"windres"}
|
|
|
18878 |
compiler=$CC
|
|
|
18879 |
compiler_RC=$CC
|
|
|
18880 |
for cc_temp in $compiler""; do
|
|
|
18881 |
case $cc_temp in
|
|
|
18882 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
|
|
18883 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
|
|
18884 |
\-*) ;;
|
|
|
18885 |
*) break;;
|
|
|
18886 |
esac
|
|
|
18887 |
done
|
|
|
18888 |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
18889 |
|
|
|
18890 |
lt_cv_prog_compiler_c_o_RC=yes
|
|
|
18891 |
|
|
|
18892 |
# The else clause should only fire when bootstrapping the
|
|
|
18893 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
|
18894 |
# with your package, and you will get complaints that there are
|
|
|
18895 |
# no rules to generate ltmain.sh.
|
|
|
18896 |
if test -f "$ltmain"; then
|
|
|
18897 |
# See if we are running on zsh, and set the options which allow our commands through
|
|
|
18898 |
# without removal of \ escapes.
|
|
|
18899 |
if test -n "${ZSH_VERSION+set}" ; then
|
|
|
18900 |
setopt NO_GLOB_SUBST
|
|
|
18901 |
fi
|
|
|
18902 |
# Now quote all the things that may contain metacharacters while being
|
|
|
18903 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
|
18904 |
# variables and quote the copies for generation of the libtool script.
|
|
|
18905 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
|
18906 |
SED SHELL STRIP \
|
|
|
18907 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
|
18908 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
|
18909 |
deplibs_check_method reload_flag reload_cmds need_locks \
|
|
|
18910 |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
|
|
18911 |
lt_cv_sys_global_symbol_to_c_name_address \
|
|
|
18912 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
|
|
18913 |
old_postinstall_cmds old_postuninstall_cmds \
|
|
|
18914 |
compiler_RC \
|
|
|
18915 |
CC_RC \
|
|
|
18916 |
LD_RC \
|
|
|
18917 |
lt_prog_compiler_wl_RC \
|
|
|
18918 |
lt_prog_compiler_pic_RC \
|
|
|
18919 |
lt_prog_compiler_static_RC \
|
|
|
18920 |
lt_prog_compiler_no_builtin_flag_RC \
|
|
|
18921 |
export_dynamic_flag_spec_RC \
|
|
|
18922 |
thread_safe_flag_spec_RC \
|
|
|
18923 |
whole_archive_flag_spec_RC \
|
|
|
18924 |
enable_shared_with_static_runtimes_RC \
|
|
|
18925 |
old_archive_cmds_RC \
|
|
|
18926 |
old_archive_from_new_cmds_RC \
|
|
|
18927 |
predep_objects_RC \
|
|
|
18928 |
postdep_objects_RC \
|
|
|
18929 |
predeps_RC \
|
|
|
18930 |
postdeps_RC \
|
|
|
18931 |
compiler_lib_search_path_RC \
|
|
|
18932 |
archive_cmds_RC \
|
|
|
18933 |
archive_expsym_cmds_RC \
|
|
|
18934 |
postinstall_cmds_RC \
|
|
|
18935 |
postuninstall_cmds_RC \
|
|
|
18936 |
old_archive_from_expsyms_cmds_RC \
|
|
|
18937 |
allow_undefined_flag_RC \
|
|
|
18938 |
no_undefined_flag_RC \
|
|
|
18939 |
export_symbols_cmds_RC \
|
|
|
18940 |
hardcode_libdir_flag_spec_RC \
|
|
|
18941 |
hardcode_libdir_flag_spec_ld_RC \
|
|
|
18942 |
hardcode_libdir_separator_RC \
|
|
|
18943 |
hardcode_automatic_RC \
|
|
|
18944 |
module_cmds_RC \
|
|
|
18945 |
module_expsym_cmds_RC \
|
|
|
18946 |
lt_cv_prog_compiler_c_o_RC \
|
|
|
18947 |
fix_srcfile_path_RC \
|
|
|
18948 |
exclude_expsyms_RC \
|
|
|
18949 |
include_expsyms_RC; do
|
|
|
18950 |
|
|
|
18951 |
case $var in
|
|
|
18952 |
old_archive_cmds_RC | \
|
|
|
18953 |
old_archive_from_new_cmds_RC | \
|
|
|
18954 |
archive_cmds_RC | \
|
|
|
18955 |
archive_expsym_cmds_RC | \
|
|
|
18956 |
module_cmds_RC | \
|
|
|
18957 |
module_expsym_cmds_RC | \
|
|
|
18958 |
old_archive_from_expsyms_cmds_RC | \
|
|
|
18959 |
export_symbols_cmds_RC | \
|
|
|
18960 |
extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
|
|
18961 |
postinstall_cmds | postuninstall_cmds | \
|
|
|
18962 |
old_postinstall_cmds | old_postuninstall_cmds | \
|
|
|
18963 |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
|
|
18964 |
# Double-quote double-evaled strings.
|
|
|
18965 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
|
|
18966 |
;;
|
|
|
18967 |
*)
|
|
|
18968 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
|
|
18969 |
;;
|
|
|
18970 |
esac
|
|
|
18971 |
done
|
|
|
18972 |
|
|
|
18973 |
case $lt_echo in
|
|
|
18974 |
*'\$0 --fallback-echo"')
|
|
|
18975 |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
|
|
|
18976 |
;;
|
|
|
18977 |
esac
|
|
|
18978 |
|
|
|
18979 |
cfgfile="$ofile"
|
|
|
18980 |
|
|
|
18981 |
cat <<__EOF__ >> "$cfgfile"
|
|
|
18982 |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
|
|
|
18983 |
|
|
|
18984 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
18985 |
|
|
|
18986 |
# Shell to use when invoking shell scripts.
|
|
|
18987 |
SHELL=$lt_SHELL
|
|
|
18988 |
|
|
|
18989 |
# Whether or not to build shared libraries.
|
|
|
18990 |
build_libtool_libs=$enable_shared
|
|
|
18991 |
|
|
|
18992 |
# Whether or not to build static libraries.
|
|
|
18993 |
build_old_libs=$enable_static
|
|
|
18994 |
|
|
|
18995 |
# Whether or not to add -lc for building shared libraries.
|
|
|
18996 |
build_libtool_need_lc=$archive_cmds_need_lc_RC
|
|
|
18997 |
|
|
|
18998 |
# Whether or not to disallow shared libs when runtime libs are static
|
|
|
18999 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
|
|
|
19000 |
|
|
|
19001 |
# Whether or not to optimize for fast installation.
|
|
|
19002 |
fast_install=$enable_fast_install
|
|
|
19003 |
|
|
|
19004 |
# The host system.
|
|
|
19005 |
host_alias=$host_alias
|
|
|
19006 |
host=$host
|
|
|
19007 |
host_os=$host_os
|
|
|
19008 |
|
|
|
19009 |
# The build system.
|
|
|
19010 |
build_alias=$build_alias
|
|
|
19011 |
build=$build
|
|
|
19012 |
build_os=$build_os
|
|
|
19013 |
|
|
|
19014 |
# An echo program that does not interpret backslashes.
|
|
|
19015 |
echo=$lt_echo
|
|
|
19016 |
|
|
|
19017 |
# The archiver.
|
|
|
19018 |
AR=$lt_AR
|
|
|
19019 |
AR_FLAGS=$lt_AR_FLAGS
|
|
|
19020 |
|
|
|
19021 |
# A C compiler.
|
|
|
19022 |
LTCC=$lt_LTCC
|
|
|
19023 |
|
|
|
19024 |
# LTCC compiler flags.
|
|
|
19025 |
LTCFLAGS=$lt_LTCFLAGS
|
|
|
19026 |
|
|
|
19027 |
# A language-specific compiler.
|
|
|
19028 |
CC=$lt_compiler_RC
|
|
|
19029 |
|
|
|
19030 |
# Is the compiler the GNU C compiler?
|
|
|
19031 |
with_gcc=$GCC_RC
|
|
|
19032 |
|
|
|
19033 |
# An ERE matcher.
|
|
|
19034 |
EGREP=$lt_EGREP
|
|
|
19035 |
|
|
|
19036 |
# The linker used to build libraries.
|
|
|
19037 |
LD=$lt_LD_RC
|
|
|
19038 |
|
|
|
19039 |
# Whether we need hard or soft links.
|
|
|
19040 |
LN_S=$lt_LN_S
|
|
|
19041 |
|
|
|
19042 |
# A BSD-compatible nm program.
|
|
|
19043 |
NM=$lt_NM
|
|
|
19044 |
|
|
|
19045 |
# A symbol stripping program
|
|
|
19046 |
STRIP=$lt_STRIP
|
|
|
19047 |
|
|
|
19048 |
# Used to examine libraries when file_magic_cmd begins "file"
|
|
|
19049 |
MAGIC_CMD=$MAGIC_CMD
|
|
|
19050 |
|
|
|
19051 |
# Used on cygwin: DLL creation program.
|
|
|
19052 |
DLLTOOL="$DLLTOOL"
|
|
|
19053 |
|
|
|
19054 |
# Used on cygwin: object dumper.
|
|
|
19055 |
OBJDUMP="$OBJDUMP"
|
|
|
19056 |
|
|
|
19057 |
# Used on cygwin: assembler.
|
|
|
19058 |
AS="$AS"
|
|
|
19059 |
|
|
|
19060 |
# The name of the directory that contains temporary libtool files.
|
|
|
19061 |
objdir=$objdir
|
|
|
19062 |
|
|
|
19063 |
# How to create reloadable object files.
|
|
|
19064 |
reload_flag=$lt_reload_flag
|
|
|
19065 |
reload_cmds=$lt_reload_cmds
|
|
|
19066 |
|
|
|
19067 |
# How to pass a linker flag through the compiler.
|
|
|
19068 |
wl=$lt_lt_prog_compiler_wl_RC
|
|
|
19069 |
|
|
|
19070 |
# Object file suffix (normally "o").
|
|
|
19071 |
objext="$ac_objext"
|
|
|
19072 |
|
|
|
19073 |
# Old archive suffix (normally "a").
|
|
|
19074 |
libext="$libext"
|
|
|
19075 |
|
|
|
19076 |
# Shared library suffix (normally ".so").
|
|
|
19077 |
shrext_cmds='$shrext_cmds'
|
|
|
19078 |
|
|
|
19079 |
# Executable file suffix (normally "").
|
|
|
19080 |
exeext="$exeext"
|
|
|
19081 |
|
|
|
19082 |
# Additional compiler flags for building library objects.
|
|
|
19083 |
pic_flag=$lt_lt_prog_compiler_pic_RC
|
|
|
19084 |
pic_mode=$pic_mode
|
|
|
19085 |
|
|
|
19086 |
# What is the maximum length of a command?
|
|
|
19087 |
max_cmd_len=$lt_cv_sys_max_cmd_len
|
|
|
19088 |
|
|
|
19089 |
# Does compiler simultaneously support -c and -o options?
|
|
|
19090 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
|
|
|
19091 |
|
|
|
19092 |
# Must we lock files when doing compilation?
|
|
|
19093 |
need_locks=$lt_need_locks
|
|
|
19094 |
|
|
|
19095 |
# Do we need the lib prefix for modules?
|
|
|
19096 |
need_lib_prefix=$need_lib_prefix
|
|
|
19097 |
|
|
|
19098 |
# Do we need a version for libraries?
|
|
|
19099 |
need_version=$need_version
|
|
|
19100 |
|
|
|
19101 |
# Whether dlopen is supported.
|
|
|
19102 |
dlopen_support=$enable_dlopen
|
|
|
19103 |
|
|
|
19104 |
# Whether dlopen of programs is supported.
|
|
|
19105 |
dlopen_self=$enable_dlopen_self
|
|
|
19106 |
|
|
|
19107 |
# Whether dlopen of statically linked programs is supported.
|
|
|
19108 |
dlopen_self_static=$enable_dlopen_self_static
|
|
|
19109 |
|
|
|
19110 |
# Compiler flag to prevent dynamic linking.
|
|
|
19111 |
link_static_flag=$lt_lt_prog_compiler_static_RC
|
|
|
19112 |
|
|
|
19113 |
# Compiler flag to turn off builtin functions.
|
|
|
19114 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
|
|
|
19115 |
|
|
|
19116 |
# Compiler flag to allow reflexive dlopens.
|
|
|
19117 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
|
|
|
19118 |
|
|
|
19119 |
# Compiler flag to generate shared objects directly from archives.
|
|
|
19120 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
|
|
|
19121 |
|
|
|
19122 |
# Compiler flag to generate thread-safe objects.
|
|
|
19123 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
|
|
|
19124 |
|
|
|
19125 |
# Library versioning type.
|
|
|
19126 |
version_type=$version_type
|
|
|
19127 |
|
|
|
19128 |
# Format of library name prefix.
|
|
|
19129 |
libname_spec=$lt_libname_spec
|
|
|
19130 |
|
|
|
19131 |
# List of archive names. First name is the real one, the rest are links.
|
|
|
19132 |
# The last name is the one that the linker finds with -lNAME.
|
|
|
19133 |
library_names_spec=$lt_library_names_spec
|
|
|
19134 |
|
|
|
19135 |
# The coded name of the library, if different from the real name.
|
|
|
19136 |
soname_spec=$lt_soname_spec
|
|
|
19137 |
|
|
|
19138 |
# Commands used to build and install an old-style archive.
|
|
|
19139 |
RANLIB=$lt_RANLIB
|
|
|
19140 |
old_archive_cmds=$lt_old_archive_cmds_RC
|
|
|
19141 |
old_postinstall_cmds=$lt_old_postinstall_cmds
|
|
|
19142 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
|
|
19143 |
|
|
|
19144 |
# Create an old-style archive from a shared archive.
|
|
|
19145 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
|
|
|
19146 |
|
|
|
19147 |
# Create a temporary old-style archive to link instead of a shared archive.
|
|
|
19148 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
|
|
|
19149 |
|
|
|
19150 |
# Commands used to build and install a shared archive.
|
|
|
19151 |
archive_cmds=$lt_archive_cmds_RC
|
|
|
19152 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
|
|
|
19153 |
postinstall_cmds=$lt_postinstall_cmds
|
|
|
19154 |
postuninstall_cmds=$lt_postuninstall_cmds
|
|
|
19155 |
|
|
|
19156 |
# Commands used to build a loadable module (assumed same as above if empty)
|
|
|
19157 |
module_cmds=$lt_module_cmds_RC
|
|
|
19158 |
module_expsym_cmds=$lt_module_expsym_cmds_RC
|
|
|
19159 |
|
|
|
19160 |
# Commands to strip libraries.
|
|
|
19161 |
old_striplib=$lt_old_striplib
|
|
|
19162 |
striplib=$lt_striplib
|
|
|
19163 |
|
|
|
19164 |
# Dependencies to place before the objects being linked to create a
|
|
|
19165 |
# shared library.
|
|
|
19166 |
predep_objects=$lt_predep_objects_RC
|
|
|
19167 |
|
|
|
19168 |
# Dependencies to place after the objects being linked to create a
|
|
|
19169 |
# shared library.
|
|
|
19170 |
postdep_objects=$lt_postdep_objects_RC
|
|
|
19171 |
|
|
|
19172 |
# Dependencies to place before the objects being linked to create a
|
|
|
19173 |
# shared library.
|
|
|
19174 |
predeps=$lt_predeps_RC
|
|
|
19175 |
|
|
|
19176 |
# Dependencies to place after the objects being linked to create a
|
|
|
19177 |
# shared library.
|
|
|
19178 |
postdeps=$lt_postdeps_RC
|
|
|
19179 |
|
|
|
19180 |
# The library search path used internally by the compiler when linking
|
|
|
19181 |
# a shared library.
|
|
|
19182 |
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
|
|
|
19183 |
|
|
|
19184 |
# Method to check whether dependent libraries are shared objects.
|
|
|
19185 |
deplibs_check_method=$lt_deplibs_check_method
|
|
|
19186 |
|
|
|
19187 |
# Command to use when deplibs_check_method == file_magic.
|
|
|
19188 |
file_magic_cmd=$lt_file_magic_cmd
|
|
|
19189 |
|
|
|
19190 |
# Flag that allows shared libraries with undefined symbols to be built.
|
|
|
19191 |
allow_undefined_flag=$lt_allow_undefined_flag_RC
|
|
|
19192 |
|
|
|
19193 |
# Flag that forces no undefined symbols.
|
|
|
19194 |
no_undefined_flag=$lt_no_undefined_flag_RC
|
|
|
19195 |
|
|
|
19196 |
# Commands used to finish a libtool library installation in a directory.
|
|
|
19197 |
finish_cmds=$lt_finish_cmds
|
|
|
19198 |
|
|
|
19199 |
# Same as above, but a single script fragment to be evaled but not shown.
|
|
|
19200 |
finish_eval=$lt_finish_eval
|
|
|
19201 |
|
|
|
19202 |
# Take the output of nm and produce a listing of raw symbols and C names.
|
|
|
19203 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
|
|
19204 |
|
|
|
19205 |
# Transform the output of nm in a proper C declaration
|
|
|
19206 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
|
|
19207 |
|
|
|
19208 |
# Transform the output of nm in a C name address pair
|
|
|
19209 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
|
19210 |
|
|
|
19211 |
# This is the shared library runtime path variable.
|
|
|
19212 |
runpath_var=$runpath_var
|
|
|
19213 |
|
|
|
19214 |
# This is the shared library path variable.
|
|
|
19215 |
shlibpath_var=$shlibpath_var
|
|
|
19216 |
|
|
|
19217 |
# Is shlibpath searched before the hard-coded library search path?
|
|
|
19218 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
|
|
19219 |
|
|
|
19220 |
# How to hardcode a shared library path into an executable.
|
|
|
19221 |
hardcode_action=$hardcode_action_RC
|
|
|
19222 |
|
|
|
19223 |
# Whether we should hardcode library paths into libraries.
|
|
|
19224 |
hardcode_into_libs=$hardcode_into_libs
|
|
|
19225 |
|
|
|
19226 |
# Flag to hardcode \$libdir into a binary during linking.
|
|
|
19227 |
# This must work even if \$libdir does not exist.
|
|
|
19228 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
|
|
|
19229 |
|
|
|
19230 |
# If ld is used when linking, flag to hardcode \$libdir into
|
|
|
19231 |
# a binary during linking. This must work even if \$libdir does
|
|
|
19232 |
# not exist.
|
|
|
19233 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
|
|
|
19234 |
|
|
|
19235 |
# Whether we need a single -rpath flag with a separated argument.
|
|
|
19236 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
|
|
|
19237 |
|
|
|
19238 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
|
|
19239 |
# resulting binary.
|
|
|
19240 |
hardcode_direct=$hardcode_direct_RC
|
|
|
19241 |
|
|
|
19242 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
|
|
19243 |
# resulting binary.
|
|
|
19244 |
hardcode_minus_L=$hardcode_minus_L_RC
|
|
|
19245 |
|
|
|
19246 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
|
|
19247 |
# the resulting binary.
|
|
|
19248 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
|
|
|
19249 |
|
|
|
19250 |
# Set to yes if building a shared library automatically hardcodes DIR into the library
|
|
|
19251 |
# and all subsequent libraries and executables linked against it.
|
|
|
19252 |
hardcode_automatic=$hardcode_automatic_RC
|
|
|
19253 |
|
|
|
19254 |
# Variables whose values should be saved in libtool wrapper scripts and
|
|
|
19255 |
# restored at relink time.
|
|
|
19256 |
variables_saved_for_relink="$variables_saved_for_relink"
|
|
|
19257 |
|
|
|
19258 |
# Whether libtool must link a program against all its dependency libraries.
|
|
|
19259 |
link_all_deplibs=$link_all_deplibs_RC
|
|
|
19260 |
|
|
|
19261 |
# Compile-time system search path for libraries
|
|
|
19262 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
|
|
19263 |
|
|
|
19264 |
# Run-time system search path for libraries
|
|
|
19265 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
|
|
19266 |
|
|
|
19267 |
# Fix the shell variable \$srcfile for the compiler.
|
|
|
19268 |
fix_srcfile_path=$lt_fix_srcfile_path
|
|
|
19269 |
|
|
|
19270 |
# Set to yes if exported symbols are required.
|
|
|
19271 |
always_export_symbols=$always_export_symbols_RC
|
|
|
19272 |
|
|
|
19273 |
# The commands to list exported symbols.
|
|
|
19274 |
export_symbols_cmds=$lt_export_symbols_cmds_RC
|
|
|
19275 |
|
|
|
19276 |
# The commands to extract the exported symbol list from a shared archive.
|
|
|
19277 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
|
|
19278 |
|
|
|
19279 |
# Symbols that should not be listed in the preloaded symbols.
|
|
|
19280 |
exclude_expsyms=$lt_exclude_expsyms_RC
|
|
|
19281 |
|
|
|
19282 |
# Symbols that must always be exported.
|
|
|
19283 |
include_expsyms=$lt_include_expsyms_RC
|
|
|
19284 |
|
|
|
19285 |
# ### END LIBTOOL TAG CONFIG: $tagname
|
|
|
19286 |
|
|
|
19287 |
__EOF__
|
|
|
19288 |
|
|
|
19289 |
|
|
|
19290 |
else
|
|
|
19291 |
# If there is no Makefile yet, we rely on a make rule to execute
|
|
|
19292 |
# `config.status --recheck' to rerun these tests and create the
|
|
|
19293 |
# libtool script then.
|
|
|
19294 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
|
|
19295 |
if test -f "$ltmain_in"; then
|
|
|
19296 |
test -f Makefile && make "$ltmain"
|
|
|
19297 |
fi
|
|
|
19298 |
fi
|
|
|
19299 |
|
|
|
19300 |
|
|
|
19301 |
ac_ext=c
|
|
|
19302 |
ac_cpp='$CPP $CPPFLAGS'
|
|
|
19303 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
19304 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
19305 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
19306 |
|
|
|
19307 |
CC="$lt_save_CC"
|
|
|
19308 |
|
|
|
19309 |
;;
|
|
|
19310 |
|
|
|
19311 |
*)
|
|
|
19312 |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
|
|
|
19313 |
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
|
|
|
19314 |
{ (exit 1); exit 1; }; }
|
|
|
19315 |
;;
|
|
|
19316 |
esac
|
|
|
19317 |
|
|
|
19318 |
# Append the new tag name to the list of available tags.
|
|
|
19319 |
if test -n "$tagname" ; then
|
|
|
19320 |
available_tags="$available_tags $tagname"
|
|
|
19321 |
fi
|
|
|
19322 |
fi
|
|
|
19323 |
done
|
|
|
19324 |
IFS="$lt_save_ifs"
|
|
|
19325 |
|
|
|
19326 |
# Now substitute the updated list of available tags.
|
|
|
19327 |
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
|
|
19328 |
mv "${ofile}T" "$ofile"
|
|
|
19329 |
chmod +x "$ofile"
|
|
|
19330 |
else
|
|
|
19331 |
rm -f "${ofile}T"
|
|
|
19332 |
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
|
|
|
19333 |
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
|
|
|
19334 |
{ (exit 1); exit 1; }; }
|
|
|
19335 |
fi
|
|
|
19336 |
fi
|
|
|
19337 |
|
|
|
19338 |
|
|
|
19339 |
|
|
|
19340 |
# This can be used to rebuild libtool when needed
|
|
|
19341 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
|
|
19342 |
|
|
|
19343 |
# Always use our own libtool.
|
|
|
19344 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
19345 |
|
|
|
19346 |
# Prevent multiple expansion
|
|
|
19347 |
|
|
|
19348 |
|
|
|
19349 |
|
|
|
19350 |
|
|
|
19351 |
|
|
|
19352 |
|
|
|
19353 |
|
|
|
19354 |
|
|
|
19355 |
|
|
|
19356 |
|
|
|
19357 |
|
|
|
19358 |
|
|
|
19359 |
|
|
|
19360 |
|
|
|
19361 |
|
|
|
19362 |
|
|
|
19363 |
|
|
|
19364 |
|
|
|
19365 |
|
|
|
19366 |
|
|
|
19367 |
|
|
|
19368 |
ac_config_files="$ac_config_files Makefile src/Makefile"
|
|
|
19369 |
|
|
|
19370 |
cat >confcache <<\_ACEOF
|
|
|
19371 |
# This file is a shell script that caches the results of configure
|
|
|
19372 |
# tests run on this system so they can be shared between configure
|
|
|
19373 |
# scripts and configure runs, see configure's option --config-cache.
|
|
|
19374 |
# It is not useful on other systems. If it contains results you don't
|
|
|
19375 |
# want to keep, you may remove or edit it.
|
|
|
19376 |
#
|
|
|
19377 |
# config.status only pays attention to the cache file if you give it
|
|
|
19378 |
# the --recheck option to rerun configure.
|
|
|
19379 |
#
|
|
|
19380 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
|
|
19381 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
|
|
19382 |
# following values.
|
|
|
19383 |
|
|
|
19384 |
_ACEOF
|
|
|
19385 |
|
|
|
19386 |
# The following way of writing the cache mishandles newlines in values,
|
|
|
19387 |
# but we know of no workaround that is simple, portable, and efficient.
|
|
|
19388 |
# So, we kill variables containing newlines.
|
|
|
19389 |
# Ultrix sh set writes to stderr and can't be redirected directly,
|
|
|
19390 |
# and sets the high bit in the cache file unless we assign to the vars.
|
|
|
19391 |
(
|
|
|
19392 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
|
|
19393 |
eval ac_val=\$$ac_var
|
|
|
19394 |
case $ac_val in #(
|
|
|
19395 |
*${as_nl}*)
|
|
|
19396 |
case $ac_var in #(
|
|
|
19397 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
|
|
19398 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
|
|
19399 |
esac
|
|
|
19400 |
case $ac_var in #(
|
|
|
19401 |
_ | IFS | as_nl) ;; #(
|
|
|
19402 |
*) $as_unset $ac_var ;;
|
|
|
19403 |
esac ;;
|
|
|
19404 |
esac
|
|
|
19405 |
done
|
|
|
19406 |
|
|
|
19407 |
(set) 2>&1 |
|
|
|
19408 |
case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
|
|
19409 |
*${as_nl}ac_space=\ *)
|
|
|
19410 |
# `set' does not quote correctly, so add quotes (double-quote
|
|
|
19411 |
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
|
|
19412 |
sed -n \
|
|
|
19413 |
"s/'/'\\\\''/g;
|
|
|
19414 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
|
|
19415 |
;; #(
|
|
|
19416 |
*)
|
|
|
19417 |
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
|
19418 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
|
|
19419 |
;;
|
|
|
19420 |
esac |
|
|
|
19421 |
sort
|
|
|
19422 |
) |
|
|
|
19423 |
sed '
|
|
|
19424 |
/^ac_cv_env_/b end
|
|
|
19425 |
t clear
|
|
|
19426 |
:clear
|
|
|
19427 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
|
|
19428 |
t end
|
|
|
19429 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
|
|
19430 |
:end' >>confcache
|
|
|
19431 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
|
|
19432 |
if test -w "$cache_file"; then
|
|
|
19433 |
test "x$cache_file" != "x/dev/null" &&
|
|
|
19434 |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
|
|
19435 |
echo "$as_me: updating cache $cache_file" >&6;}
|
|
|
19436 |
cat confcache >$cache_file
|
|
|
19437 |
else
|
|
|
19438 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
|
|
19439 |
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
|
|
19440 |
fi
|
|
|
19441 |
fi
|
|
|
19442 |
rm -f confcache
|
|
|
19443 |
|
|
|
19444 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
19445 |
# Let make expand exec_prefix.
|
|
|
19446 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
19447 |
|
|
|
19448 |
DEFS=-DHAVE_CONFIG_H
|
|
|
19449 |
|
|
|
19450 |
ac_libobjs=
|
|
|
19451 |
ac_ltlibobjs=
|
|
|
19452 |
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
|
|
|
19453 |
# 1. Remove the extension, and $U if already installed.
|
|
|
19454 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
|
|
19455 |
ac_i=`echo "$ac_i" | sed "$ac_script"`
|
|
|
19456 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
|
|
19457 |
# will be set to the directory where LIBOBJS objects are built.
|
|
|
19458 |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
|
|
19459 |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
|
|
19460 |
done
|
|
|
19461 |
LIB@&t@OBJS=$ac_libobjs
|
|
|
19462 |
|
|
|
19463 |
LTLIBOBJS=$ac_ltlibobjs
|
|
|
19464 |
|
|
|
19465 |
|
|
|
19466 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
|
|
19467 |
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
|
|
19468 |
Usually this means the macro was only invoked conditionally." >&5
|
|
|
19469 |
echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
|
|
19470 |
Usually this means the macro was only invoked conditionally." >&2;}
|
|
|
19471 |
{ (exit 1); exit 1; }; }
|
|
|
19472 |
fi
|
|
|
19473 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
|
|
19474 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
|
|
|
19475 |
Usually this means the macro was only invoked conditionally." >&5
|
|
|
19476 |
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
|
|
|
19477 |
Usually this means the macro was only invoked conditionally." >&2;}
|
|
|
19478 |
{ (exit 1); exit 1; }; }
|
|
|
19479 |
fi
|
|
|
19480 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
|
|
|
19481 |
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
|
|
|
19482 |
Usually this means the macro was only invoked conditionally." >&5
|
|
|
19483 |
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
|
|
|
19484 |
Usually this means the macro was only invoked conditionally." >&2;}
|
|
|
19485 |
{ (exit 1); exit 1; }; }
|
|
|
19486 |
fi
|
|
|
19487 |
|
|
|
19488 |
: ${CONFIG_STATUS=./config.status}
|
|
|
19489 |
ac_clean_files_save=$ac_clean_files
|
|
|
19490 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
|
|
19491 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
|
|
19492 |
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
|
|
19493 |
cat >$CONFIG_STATUS <<_ACEOF
|
|
|
19494 |
#! $SHELL
|
|
|
19495 |
# Generated by $as_me.
|
|
|
19496 |
# Run this file to recreate the current configuration.
|
|
|
19497 |
# Compiler output produced by configure, useful for debugging
|
|
|
19498 |
# configure, is in config.log if it exists.
|
|
|
19499 |
|
|
|
19500 |
debug=false
|
|
|
19501 |
ac_cs_recheck=false
|
|
|
19502 |
ac_cs_silent=false
|
|
|
19503 |
SHELL=\${CONFIG_SHELL-$SHELL}
|
|
|
19504 |
_ACEOF
|
|
|
19505 |
|
|
|
19506 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
19507 |
## --------------------- ##
|
|
|
19508 |
## M4sh Initialization. ##
|
|
|
19509 |
## --------------------- ##
|
|
|
19510 |
|
|
|
19511 |
# Be more Bourne compatible
|
|
|
19512 |
DUALCASE=1; export DUALCASE # for MKS sh
|
|
|
19513 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
|
19514 |
emulate sh
|
|
|
19515 |
NULLCMD=:
|
|
|
19516 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|
|
19517 |
# is contrary to our usage. Disable this feature.
|
|
|
19518 |
alias -g '${1+"$@"}'='"$@"'
|
|
|
19519 |
setopt NO_GLOB_SUBST
|
|
|
19520 |
else
|
|
|
19521 |
case `(set -o) 2>/dev/null` in
|
|
|
19522 |
*posix*) set -o posix ;;
|
|
|
19523 |
esac
|
|
|
19524 |
|
|
|
19525 |
fi
|
|
|
19526 |
|
|
|
19527 |
|
|
|
19528 |
|
|
|
19529 |
|
|
|
19530 |
# PATH needs CR
|
|
|
19531 |
# Avoid depending upon Character Ranges.
|
|
|
19532 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
|
|
19533 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
|
19534 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
|
|
19535 |
as_cr_digits='0123456789'
|
|
|
19536 |
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
|
|
19537 |
|
|
|
19538 |
# The user is always right.
|
|
|
19539 |
if test "${PATH_SEPARATOR+set}" != set; then
|
|
|
19540 |
echo "#! /bin/sh" >conf$$.sh
|
|
|
19541 |
echo "exit 0" >>conf$$.sh
|
|
|
19542 |
chmod +x conf$$.sh
|
|
|
19543 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
|
|
19544 |
PATH_SEPARATOR=';'
|
|
|
19545 |
else
|
|
|
19546 |
PATH_SEPARATOR=:
|
|
|
19547 |
fi
|
|
|
19548 |
rm -f conf$$.sh
|
|
|
19549 |
fi
|
|
|
19550 |
|
|
|
19551 |
# Support unset when possible.
|
|
|
19552 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
|
|
19553 |
as_unset=unset
|
|
|
19554 |
else
|
|
|
19555 |
as_unset=false
|
|
|
19556 |
fi
|
|
|
19557 |
|
|
|
19558 |
|
|
|
19559 |
# IFS
|
|
|
19560 |
# We need space, tab and new line, in precisely that order. Quoting is
|
|
|
19561 |
# there to prevent editors from complaining about space-tab.
|
|
|
19562 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
|
|
19563 |
# splitting by setting IFS to empty value.)
|
|
|
19564 |
as_nl='
|
|
|
19565 |
'
|
|
|
19566 |
IFS=" "" $as_nl"
|
|
|
19567 |
|
|
|
19568 |
# Find who we are. Look in the path if we contain no directory separator.
|
|
|
19569 |
case $0 in
|
|
|
19570 |
*[\\/]* ) as_myself=$0 ;;
|
|
|
19571 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
19572 |
for as_dir in $PATH
|
|
|
19573 |
do
|
|
|
19574 |
IFS=$as_save_IFS
|
|
|
19575 |
test -z "$as_dir" && as_dir=.
|
|
|
19576 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
|
|
19577 |
done
|
|
|
19578 |
IFS=$as_save_IFS
|
|
|
19579 |
|
|
|
19580 |
;;
|
|
|
19581 |
esac
|
|
|
19582 |
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
|
|
19583 |
# in which case we are not to be found in the path.
|
|
|
19584 |
if test "x$as_myself" = x; then
|
|
|
19585 |
as_myself=$0
|
|
|
19586 |
fi
|
|
|
19587 |
if test ! -f "$as_myself"; then
|
|
|
19588 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
|
|
19589 |
{ (exit 1); exit 1; }
|
|
|
19590 |
fi
|
|
|
19591 |
|
|
|
19592 |
# Work around bugs in pre-3.0 UWIN ksh.
|
|
|
19593 |
for as_var in ENV MAIL MAILPATH
|
|
|
19594 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
|
19595 |
done
|
|
|
19596 |
PS1='$ '
|
|
|
19597 |
PS2='> '
|
|
|
19598 |
PS4='+ '
|
|
|
19599 |
|
|
|
19600 |
# NLS nuisances.
|
|
|
19601 |
for as_var in \
|
|
|
19602 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
|
|
19603 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
|
|
19604 |
LC_TELEPHONE LC_TIME
|
|
|
19605 |
do
|
|
|
19606 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
|
|
19607 |
eval $as_var=C; export $as_var
|
|
|
19608 |
else
|
|
|
19609 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
|
|
19610 |
fi
|
|
|
19611 |
done
|
|
|
19612 |
|
|
|
19613 |
# Required to use basename.
|
|
|
19614 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
|
19615 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
|
19616 |
as_expr=expr
|
|
|
19617 |
else
|
|
|
19618 |
as_expr=false
|
|
|
19619 |
fi
|
|
|
19620 |
|
|
|
19621 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
|
19622 |
as_basename=basename
|
|
|
19623 |
else
|
|
|
19624 |
as_basename=false
|
|
|
19625 |
fi
|
|
|
19626 |
|
|
|
19627 |
|
|
|
19628 |
# Name of the executable.
|
|
|
19629 |
as_me=`$as_basename -- "$0" ||
|
|
|
19630 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
|
19631 |
X"$0" : 'X\(//\)$' \| \
|
|
|
19632 |
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
19633 |
echo X/"$0" |
|
|
|
19634 |
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
|
19635 |
s//\1/
|
|
|
19636 |
q
|
|
|
19637 |
}
|
|
|
19638 |
/^X\/\(\/\/\)$/{
|
|
|
19639 |
s//\1/
|
|
|
19640 |
q
|
|
|
19641 |
}
|
|
|
19642 |
/^X\/\(\/\).*/{
|
|
|
19643 |
s//\1/
|
|
|
19644 |
q
|
|
|
19645 |
}
|
|
|
19646 |
s/.*/./; q'`
|
|
|
19647 |
|
|
|
19648 |
# CDPATH.
|
|
|
19649 |
$as_unset CDPATH
|
|
|
19650 |
|
|
|
19651 |
|
|
|
19652 |
|
|
|
19653 |
as_lineno_1=$LINENO
|
|
|
19654 |
as_lineno_2=$LINENO
|
|
|
19655 |
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
|
|
19656 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
|
|
19657 |
|
|
|
19658 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
|
|
19659 |
# uniformly replaced by the line number. The first 'sed' inserts a
|
|
|
19660 |
# line-number line after each line using $LINENO; the second 'sed'
|
|
|
19661 |
# does the real work. The second script uses 'N' to pair each
|
|
|
19662 |
# line-number line with the line containing $LINENO, and appends
|
|
|
19663 |
# trailing '-' during substitution so that $LINENO is not a special
|
|
|
19664 |
# case at line end.
|
|
|
19665 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
|
|
19666 |
# scripts with optimization help from Paolo Bonzini. Blame Lee
|
|
|
19667 |
# E. McMahon (1931-1989) for sed's syntax. :-)
|
|
|
19668 |
sed -n '
|
|
|
19669 |
p
|
|
|
19670 |
/[$]LINENO/=
|
|
|
19671 |
' <$as_myself |
|
|
|
19672 |
sed '
|
|
|
19673 |
s/[$]LINENO.*/&-/
|
|
|
19674 |
t lineno
|
|
|
19675 |
b
|
|
|
19676 |
:lineno
|
|
|
19677 |
N
|
|
|
19678 |
:loop
|
|
|
19679 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
|
19680 |
t loop
|
|
|
19681 |
s/-\n.*//
|
|
|
19682 |
' >$as_me.lineno &&
|
|
|
19683 |
chmod +x "$as_me.lineno" ||
|
|
|
19684 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
|
|
19685 |
{ (exit 1); exit 1; }; }
|
|
|
19686 |
|
|
|
19687 |
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
|
19688 |
# (the dirname of $[0] is not the place where we might find the
|
|
|
19689 |
# original and so on. Autoconf is especially sensitive to this).
|
|
|
19690 |
. "./$as_me.lineno"
|
|
|
19691 |
# Exit status is that of the last command.
|
|
|
19692 |
exit
|
|
|
19693 |
}
|
|
|
19694 |
|
|
|
19695 |
|
|
|
19696 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
|
|
19697 |
as_dirname=dirname
|
|
|
19698 |
else
|
|
|
19699 |
as_dirname=false
|
|
|
19700 |
fi
|
|
|
19701 |
|
|
|
19702 |
ECHO_C= ECHO_N= ECHO_T=
|
|
|
19703 |
case `echo -n x` in
|
|
|
19704 |
-n*)
|
|
|
19705 |
case `echo 'x\c'` in
|
|
|
19706 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
|
|
19707 |
*) ECHO_C='\c';;
|
|
|
19708 |
esac;;
|
|
|
19709 |
*)
|
|
|
19710 |
ECHO_N='-n';;
|
|
|
19711 |
esac
|
|
|
19712 |
|
|
|
19713 |
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
|
19714 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
|
19715 |
as_expr=expr
|
|
|
19716 |
else
|
|
|
19717 |
as_expr=false
|
|
|
19718 |
fi
|
|
|
19719 |
|
|
|
19720 |
rm -f conf$$ conf$$.exe conf$$.file
|
|
|
19721 |
if test -d conf$$.dir; then
|
|
|
19722 |
rm -f conf$$.dir/conf$$.file
|
|
|
19723 |
else
|
|
|
19724 |
rm -f conf$$.dir
|
|
|
19725 |
mkdir conf$$.dir
|
|
|
19726 |
fi
|
|
|
19727 |
echo >conf$$.file
|
|
|
19728 |
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
|
|
19729 |
as_ln_s='ln -s'
|
|
|
19730 |
# ... but there are two gotchas:
|
|
|
19731 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
|
|
19732 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
|
|
19733 |
# In both cases, we have to default to `cp -p'.
|
|
|
19734 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
|
|
19735 |
as_ln_s='cp -p'
|
|
|
19736 |
elif ln conf$$.file conf$$ 2>/dev/null; then
|
|
|
19737 |
as_ln_s=ln
|
|
|
19738 |
else
|
|
|
19739 |
as_ln_s='cp -p'
|
|
|
19740 |
fi
|
|
|
19741 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
|
|
19742 |
rmdir conf$$.dir 2>/dev/null
|
|
|
19743 |
|
|
|
19744 |
if mkdir -p . 2>/dev/null; then
|
|
|
19745 |
as_mkdir_p=:
|
|
|
19746 |
else
|
|
|
19747 |
test -d ./-p && rmdir ./-p
|
|
|
19748 |
as_mkdir_p=false
|
|
|
19749 |
fi
|
|
|
19750 |
|
|
|
19751 |
if test -x / >/dev/null 2>&1; then
|
|
|
19752 |
as_test_x='test -x'
|
|
|
19753 |
else
|
|
|
19754 |
if ls -dL / >/dev/null 2>&1; then
|
|
|
19755 |
as_ls_L_option=L
|
|
|
19756 |
else
|
|
|
19757 |
as_ls_L_option=
|
|
|
19758 |
fi
|
|
|
19759 |
as_test_x='
|
|
|
19760 |
eval sh -c '\''
|
|
|
19761 |
if test -d "$1"; then
|
|
|
19762 |
test -d "$1/.";
|
|
|
19763 |
else
|
|
|
19764 |
case $1 in
|
|
|
19765 |
-*)set "./$1";;
|
|
|
19766 |
esac;
|
|
|
19767 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
|
|
19768 |
???[sx]*):;;*)false;;esac;fi
|
|
|
19769 |
'\'' sh
|
|
|
19770 |
'
|
|
|
19771 |
fi
|
|
|
19772 |
as_executable_p=$as_test_x
|
|
|
19773 |
|
|
|
19774 |
# Sed expression to map a string onto a valid CPP name.
|
|
|
19775 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
19776 |
|
|
|
19777 |
# Sed expression to map a string onto a valid variable name.
|
|
|
19778 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
|
|
19779 |
|
|
|
19780 |
|
|
|
19781 |
exec 6>&1
|
|
|
19782 |
|
|
|
19783 |
# Save the log message, to keep $[0] and so on meaningful, and to
|
|
|
19784 |
# report actual input values of CONFIG_FILES etc. instead of their
|
|
|
19785 |
# values after options handling.
|
|
|
19786 |
ac_log="
|
|
|
19787 |
This file was extended by $as_me, which was
|
|
|
19788 |
generated by GNU Autoconf 2.61. Invocation command line was
|
|
|
19789 |
|
|
|
19790 |
CONFIG_FILES = $CONFIG_FILES
|
|
|
19791 |
CONFIG_HEADERS = $CONFIG_HEADERS
|
|
|
19792 |
CONFIG_LINKS = $CONFIG_LINKS
|
|
|
19793 |
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
|
|
19794 |
$ $0 $@
|
|
|
19795 |
|
|
|
19796 |
on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
|
|
19797 |
"
|
|
|
19798 |
|
|
|
19799 |
_ACEOF
|
|
|
19800 |
|
|
|
19801 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
19802 |
# Files that config.status was made for.
|
|
|
19803 |
config_files="$ac_config_files"
|
|
|
19804 |
config_headers="$ac_config_headers"
|
|
|
19805 |
config_commands="$ac_config_commands"
|
|
|
19806 |
|
|
|
19807 |
_ACEOF
|
|
|
19808 |
|
|
|
19809 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
19810 |
ac_cs_usage="\
|
|
|
19811 |
\`$as_me' instantiates files from templates according to the
|
|
|
19812 |
current configuration.
|
|
|
19813 |
|
|
|
19814 |
Usage: $0 [OPTIONS] [FILE]...
|
|
|
19815 |
|
|
|
19816 |
-h, --help print this help, then exit
|
|
|
19817 |
-V, --version print version number and configuration settings, then exit
|
|
|
19818 |
-q, --quiet do not print progress messages
|
|
|
19819 |
-d, --debug don't remove temporary files
|
|
|
19820 |
--recheck update $as_me by reconfiguring in the same conditions
|
|
|
19821 |
--file=FILE[:TEMPLATE]
|
|
|
19822 |
instantiate the configuration file FILE
|
|
|
19823 |
--header=FILE[:TEMPLATE]
|
|
|
19824 |
instantiate the configuration header FILE
|
|
|
19825 |
|
|
|
19826 |
Configuration files:
|
|
|
19827 |
$config_files
|
|
|
19828 |
|
|
|
19829 |
Configuration headers:
|
|
|
19830 |
$config_headers
|
|
|
19831 |
|
|
|
19832 |
Configuration commands:
|
|
|
19833 |
$config_commands
|
|
|
19834 |
|
|
|
19835 |
Report bugs to <bug-autoconf@gnu.org>."
|
|
|
19836 |
|
|
|
19837 |
_ACEOF
|
|
|
19838 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
19839 |
ac_cs_version="\\
|
|
|
19840 |
config.status
|
|
|
19841 |
configured by $0, generated by GNU Autoconf 2.61,
|
|
|
19842 |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
|
|
19843 |
|
|
|
19844 |
Copyright (C) 2006 Free Software Foundation, Inc.
|
|
|
19845 |
This config.status script is free software; the Free Software Foundation
|
|
|
19846 |
gives unlimited permission to copy, distribute and modify it."
|
|
|
19847 |
|
|
|
19848 |
ac_pwd='$ac_pwd'
|
|
|
19849 |
srcdir='$srcdir'
|
|
|
19850 |
INSTALL='$INSTALL'
|
|
|
19851 |
MKDIR_P='$MKDIR_P'
|
|
|
19852 |
_ACEOF
|
|
|
19853 |
|
|
|
19854 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
19855 |
# If no file are specified by the user, then we need to provide default
|
|
|
19856 |
# value. By we need to know if files were specified by the user.
|
|
|
19857 |
ac_need_defaults=:
|
|
|
19858 |
while test $# != 0
|
|
|
19859 |
do
|
|
|
19860 |
case $1 in
|
|
|
19861 |
--*=*)
|
|
|
19862 |
ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
|
|
19863 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
|
|
19864 |
ac_shift=:
|
|
|
19865 |
;;
|
|
|
19866 |
*)
|
|
|
19867 |
ac_option=$1
|
|
|
19868 |
ac_optarg=$2
|
|
|
19869 |
ac_shift=shift
|
|
|
19870 |
;;
|
|
|
19871 |
esac
|
|
|
19872 |
|
|
|
19873 |
case $ac_option in
|
|
|
19874 |
# Handling of the options.
|
|
|
19875 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
|
19876 |
ac_cs_recheck=: ;;
|
|
|
19877 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
|
|
19878 |
echo "$ac_cs_version"; exit ;;
|
|
|
19879 |
--debug | --debu | --deb | --de | --d | -d )
|
|
|
19880 |
debug=: ;;
|
|
|
19881 |
--file | --fil | --fi | --f )
|
|
|
19882 |
$ac_shift
|
|
|
19883 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
|
|
19884 |
ac_need_defaults=false;;
|
|
|
19885 |
--header | --heade | --head | --hea )
|
|
|
19886 |
$ac_shift
|
|
|
19887 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
|
|
19888 |
ac_need_defaults=false;;
|
|
|
19889 |
--he | --h)
|
|
|
19890 |
# Conflict between --help and --header
|
|
|
19891 |
{ echo "$as_me: error: ambiguous option: $1
|
|
|
19892 |
Try \`$0 --help' for more information." >&2
|
|
|
19893 |
{ (exit 1); exit 1; }; };;
|
|
|
19894 |
--help | --hel | -h )
|
|
|
19895 |
echo "$ac_cs_usage"; exit ;;
|
|
|
19896 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
19897 |
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
|
|
19898 |
ac_cs_silent=: ;;
|
|
|
19899 |
|
|
|
19900 |
# This is an error.
|
|
|
19901 |
-*) { echo "$as_me: error: unrecognized option: $1
|
|
|
19902 |
Try \`$0 --help' for more information." >&2
|
|
|
19903 |
{ (exit 1); exit 1; }; } ;;
|
|
|
19904 |
|
|
|
19905 |
*) ac_config_targets="$ac_config_targets $1"
|
|
|
19906 |
ac_need_defaults=false ;;
|
|
|
19907 |
|
|
|
19908 |
esac
|
|
|
19909 |
shift
|
|
|
19910 |
done
|
|
|
19911 |
|
|
|
19912 |
ac_configure_extra_args=
|
|
|
19913 |
|
|
|
19914 |
if $ac_cs_silent; then
|
|
|
19915 |
exec 6>/dev/null
|
|
|
19916 |
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
|
|
19917 |
fi
|
|
|
19918 |
|
|
|
19919 |
_ACEOF
|
|
|
19920 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
19921 |
if \$ac_cs_recheck; then
|
|
|
19922 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
|
|
19923 |
CONFIG_SHELL=$SHELL
|
|
|
19924 |
export CONFIG_SHELL
|
|
|
19925 |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
|
|
19926 |
fi
|
|
|
19927 |
|
|
|
19928 |
_ACEOF
|
|
|
19929 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
19930 |
exec 5>>config.log
|
|
|
19931 |
{
|
|
|
19932 |
echo
|
|
|
19933 |
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
|
|
|
19934 |
@%:@@%:@ Running $as_me. @%:@@%:@
|
|
|
19935 |
_ASBOX
|
|
|
19936 |
echo "$ac_log"
|
|
|
19937 |
} >&5
|
|
|
19938 |
|
|
|
19939 |
_ACEOF
|
|
|
19940 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
19941 |
#
|
|
|
19942 |
# INIT-COMMANDS
|
|
|
19943 |
#
|
|
|
19944 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
|
|
19945 |
|
|
|
19946 |
_ACEOF
|
|
|
19947 |
|
|
|
19948 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
19949 |
|
|
|
19950 |
# Handling of arguments.
|
|
|
19951 |
for ac_config_target in $ac_config_targets
|
|
|
19952 |
do
|
|
|
19953 |
case $ac_config_target in
|
|
|
19954 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
|
|
19955 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
|
|
19956 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
|
|
19957 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
|
|
19958 |
|
|
|
19959 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
|
|
19960 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
|
|
19961 |
{ (exit 1); exit 1; }; };;
|
|
|
19962 |
esac
|
|
|
19963 |
done
|
|
|
19964 |
|
|
|
19965 |
|
|
|
19966 |
# If the user did not use the arguments to specify the items to instantiate,
|
|
|
19967 |
# then the envvar interface is used. Set only those that are not.
|
|
|
19968 |
# We use the long form for the default assignment because of an extremely
|
|
|
19969 |
# bizarre bug on SunOS 4.1.3.
|
|
|
19970 |
if $ac_need_defaults; then
|
|
|
19971 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
|
|
19972 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
|
|
19973 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
|
|
19974 |
fi
|
|
|
19975 |
|
|
|
19976 |
# Have a temporary directory for convenience. Make it in the build tree
|
|
|
19977 |
# simply because there is no reason against having it here, and in addition,
|
|
|
19978 |
# creating and moving files from /tmp can sometimes cause problems.
|
|
|
19979 |
# Hook for its removal unless debugging.
|
|
|
19980 |
# Note that there is a small window in which the directory will not be cleaned:
|
|
|
19981 |
# after its creation but before its name has been assigned to `$tmp'.
|
|
|
19982 |
$debug ||
|
|
|
19983 |
{
|
|
|
19984 |
tmp=
|
|
|
19985 |
trap 'exit_status=$?
|
|
|
19986 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
|
|
19987 |
' 0
|
|
|
19988 |
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
|
|
19989 |
}
|
|
|
19990 |
# Create a (secure) tmp directory for tmp files.
|
|
|
19991 |
|
|
|
19992 |
{
|
|
|
19993 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
|
|
19994 |
test -n "$tmp" && test -d "$tmp"
|
|
|
19995 |
} ||
|
|
|
19996 |
{
|
|
|
19997 |
tmp=./conf$$-$RANDOM
|
|
|
19998 |
(umask 077 && mkdir "$tmp")
|
|
|
19999 |
} ||
|
|
|
20000 |
{
|
|
|
20001 |
echo "$me: cannot create a temporary directory in ." >&2
|
|
|
20002 |
{ (exit 1); exit 1; }
|
|
|
20003 |
}
|
|
|
20004 |
|
|
|
20005 |
#
|
|
|
20006 |
# Set up the sed scripts for CONFIG_FILES section.
|
|
|
20007 |
#
|
|
|
20008 |
|
|
|
20009 |
# No need to generate the scripts if there are no CONFIG_FILES.
|
|
|
20010 |
# This happens for instance when ./config.status config.h
|
|
|
20011 |
if test -n "$CONFIG_FILES"; then
|
|
|
20012 |
|
|
|
20013 |
_ACEOF
|
|
|
20014 |
|
|
|
20015 |
|
|
|
20016 |
|
|
|
20017 |
ac_delim='%!_!# '
|
|
|
20018 |
for ac_last_try in false false false false false :; do
|
|
|
20019 |
cat >conf$$subs.sed <<_ACEOF
|
|
|
20020 |
SHELL!$SHELL$ac_delim
|
|
|
20021 |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
|
|
20022 |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
|
|
20023 |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
|
|
20024 |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
|
|
20025 |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
|
|
20026 |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
|
|
20027 |
exec_prefix!$exec_prefix$ac_delim
|
|
|
20028 |
prefix!$prefix$ac_delim
|
|
|
20029 |
program_transform_name!$program_transform_name$ac_delim
|
|
|
20030 |
bindir!$bindir$ac_delim
|
|
|
20031 |
sbindir!$sbindir$ac_delim
|
|
|
20032 |
libexecdir!$libexecdir$ac_delim
|
|
|
20033 |
datarootdir!$datarootdir$ac_delim
|
|
|
20034 |
datadir!$datadir$ac_delim
|
|
|
20035 |
sysconfdir!$sysconfdir$ac_delim
|
|
|
20036 |
sharedstatedir!$sharedstatedir$ac_delim
|
|
|
20037 |
localstatedir!$localstatedir$ac_delim
|
|
|
20038 |
includedir!$includedir$ac_delim
|
|
|
20039 |
oldincludedir!$oldincludedir$ac_delim
|
|
|
20040 |
docdir!$docdir$ac_delim
|
|
|
20041 |
infodir!$infodir$ac_delim
|
|
|
20042 |
htmldir!$htmldir$ac_delim
|
|
|
20043 |
dvidir!$dvidir$ac_delim
|
|
|
20044 |
pdfdir!$pdfdir$ac_delim
|
|
|
20045 |
psdir!$psdir$ac_delim
|
|
|
20046 |
libdir!$libdir$ac_delim
|
|
|
20047 |
localedir!$localedir$ac_delim
|
|
|
20048 |
mandir!$mandir$ac_delim
|
|
|
20049 |
DEFS!$DEFS$ac_delim
|
|
|
20050 |
ECHO_C!$ECHO_C$ac_delim
|
|
|
20051 |
ECHO_N!$ECHO_N$ac_delim
|
|
|
20052 |
ECHO_T!$ECHO_T$ac_delim
|
|
|
20053 |
LIBS!$LIBS$ac_delim
|
|
|
20054 |
build_alias!$build_alias$ac_delim
|
|
|
20055 |
host_alias!$host_alias$ac_delim
|
|
|
20056 |
target_alias!$target_alias$ac_delim
|
|
|
20057 |
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
|
|
20058 |
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
|
|
20059 |
INSTALL_DATA!$INSTALL_DATA$ac_delim
|
|
|
20060 |
am__isrc!$am__isrc$ac_delim
|
|
|
20061 |
CYGPATH_W!$CYGPATH_W$ac_delim
|
|
|
20062 |
PACKAGE!$PACKAGE$ac_delim
|
|
|
20063 |
VERSION!$VERSION$ac_delim
|
|
|
20064 |
ACLOCAL!$ACLOCAL$ac_delim
|
|
|
20065 |
AUTOCONF!$AUTOCONF$ac_delim
|
|
|
20066 |
AUTOMAKE!$AUTOMAKE$ac_delim
|
|
|
20067 |
AUTOHEADER!$AUTOHEADER$ac_delim
|
|
|
20068 |
MAKEINFO!$MAKEINFO$ac_delim
|
|
|
20069 |
install_sh!$install_sh$ac_delim
|
|
|
20070 |
STRIP!$STRIP$ac_delim
|
|
|
20071 |
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
|
|
|
20072 |
mkdir_p!$mkdir_p$ac_delim
|
|
|
20073 |
AWK!$AWK$ac_delim
|
|
|
20074 |
SET_MAKE!$SET_MAKE$ac_delim
|
|
|
20075 |
am__leading_dot!$am__leading_dot$ac_delim
|
|
|
20076 |
AMTAR!$AMTAR$ac_delim
|
|
|
20077 |
am__tar!$am__tar$ac_delim
|
|
|
20078 |
am__untar!$am__untar$ac_delim
|
|
|
20079 |
CC!$CC$ac_delim
|
|
|
20080 |
CFLAGS!$CFLAGS$ac_delim
|
|
|
20081 |
LDFLAGS!$LDFLAGS$ac_delim
|
|
|
20082 |
CPPFLAGS!$CPPFLAGS$ac_delim
|
|
|
20083 |
ac_ct_CC!$ac_ct_CC$ac_delim
|
|
|
20084 |
EXEEXT!$EXEEXT$ac_delim
|
|
|
20085 |
OBJEXT!$OBJEXT$ac_delim
|
|
|
20086 |
DEPDIR!$DEPDIR$ac_delim
|
|
|
20087 |
am__include!$am__include$ac_delim
|
|
|
20088 |
am__quote!$am__quote$ac_delim
|
|
|
20089 |
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
|
|
|
20090 |
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
|
|
|
20091 |
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
|
|
|
20092 |
CCDEPMODE!$CCDEPMODE$ac_delim
|
|
|
20093 |
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
|
|
|
20094 |
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
|
|
|
20095 |
build!$build$ac_delim
|
|
|
20096 |
build_cpu!$build_cpu$ac_delim
|
|
|
20097 |
build_vendor!$build_vendor$ac_delim
|
|
|
20098 |
build_os!$build_os$ac_delim
|
|
|
20099 |
host!$host$ac_delim
|
|
|
20100 |
host_cpu!$host_cpu$ac_delim
|
|
|
20101 |
host_vendor!$host_vendor$ac_delim
|
|
|
20102 |
host_os!$host_os$ac_delim
|
|
|
20103 |
SED!$SED$ac_delim
|
|
|
20104 |
GREP!$GREP$ac_delim
|
|
|
20105 |
EGREP!$EGREP$ac_delim
|
|
|
20106 |
LN_S!$LN_S$ac_delim
|
|
|
20107 |
ECHO!$ECHO$ac_delim
|
|
|
20108 |
AR!$AR$ac_delim
|
|
|
20109 |
RANLIB!$RANLIB$ac_delim
|
|
|
20110 |
CPP!$CPP$ac_delim
|
|
|
20111 |
CXX!$CXX$ac_delim
|
|
|
20112 |
CXXFLAGS!$CXXFLAGS$ac_delim
|
|
|
20113 |
ac_ct_CXX!$ac_ct_CXX$ac_delim
|
|
|
20114 |
CXXDEPMODE!$CXXDEPMODE$ac_delim
|
|
|
20115 |
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
|
|
|
20116 |
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
|
|
|
20117 |
_ACEOF
|
|
|
20118 |
|
|
|
20119 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
|
|
20120 |
break
|
|
|
20121 |
elif $ac_last_try; then
|
|
|
20122 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
|
20123 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
|
|
20124 |
{ (exit 1); exit 1; }; }
|
|
|
20125 |
else
|
|
|
20126 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
|
20127 |
fi
|
|
|
20128 |
done
|
|
|
20129 |
|
|
|
20130 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
|
|
20131 |
if test -n "$ac_eof"; then
|
|
|
20132 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
|
|
20133 |
ac_eof=`expr $ac_eof + 1`
|
|
|
20134 |
fi
|
|
|
20135 |
|
|
|
20136 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20137 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
|
|
20138 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
|
20139 |
_ACEOF
|
|
|
20140 |
sed '
|
|
|
20141 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
|
|
20142 |
s/^/s,@/; s/!/@,|#_!!_#|/
|
|
|
20143 |
:n
|
|
|
20144 |
t n
|
|
|
20145 |
s/'"$ac_delim"'$/,g/; t
|
|
|
20146 |
s/$/\\/; p
|
|
|
20147 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
|
|
20148 |
' >>$CONFIG_STATUS <conf$$subs.sed
|
|
|
20149 |
rm -f conf$$subs.sed
|
|
|
20150 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20151 |
CEOF$ac_eof
|
|
|
20152 |
_ACEOF
|
|
|
20153 |
|
|
|
20154 |
|
|
|
20155 |
ac_delim='%!_!# '
|
|
|
20156 |
for ac_last_try in false false false false false :; do
|
|
|
20157 |
cat >conf$$subs.sed <<_ACEOF
|
|
|
20158 |
CXXCPP!$CXXCPP$ac_delim
|
|
|
20159 |
F77!$F77$ac_delim
|
|
|
20160 |
FFLAGS!$FFLAGS$ac_delim
|
|
|
20161 |
ac_ct_F77!$ac_ct_F77$ac_delim
|
|
|
20162 |
LIBTOOL!$LIBTOOL$ac_delim
|
|
|
20163 |
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
|
|
|
20164 |
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
|
|
20165 |
_ACEOF
|
|
|
20166 |
|
|
|
20167 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
|
|
|
20168 |
break
|
|
|
20169 |
elif $ac_last_try; then
|
|
|
20170 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
|
|
20171 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
|
|
20172 |
{ (exit 1); exit 1; }; }
|
|
|
20173 |
else
|
|
|
20174 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
|
|
20175 |
fi
|
|
|
20176 |
done
|
|
|
20177 |
|
|
|
20178 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
|
|
20179 |
if test -n "$ac_eof"; then
|
|
|
20180 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
|
|
20181 |
ac_eof=`expr $ac_eof + 1`
|
|
|
20182 |
fi
|
|
|
20183 |
|
|
|
20184 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20185 |
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
|
|
|
20186 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
|
|
20187 |
_ACEOF
|
|
|
20188 |
sed '
|
|
|
20189 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
|
|
20190 |
s/^/s,@/; s/!/@,|#_!!_#|/
|
|
|
20191 |
:n
|
|
|
20192 |
t n
|
|
|
20193 |
s/'"$ac_delim"'$/,g/; t
|
|
|
20194 |
s/$/\\/; p
|
|
|
20195 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
|
|
20196 |
' >>$CONFIG_STATUS <conf$$subs.sed
|
|
|
20197 |
rm -f conf$$subs.sed
|
|
|
20198 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20199 |
:end
|
|
|
20200 |
s/|#_!!_#|//g
|
|
|
20201 |
CEOF$ac_eof
|
|
|
20202 |
_ACEOF
|
|
|
20203 |
|
|
|
20204 |
|
|
|
20205 |
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
|
|
20206 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
|
|
20207 |
# trailing colons and then remove the whole line if VPATH becomes empty
|
|
|
20208 |
# (actually we leave an empty line to preserve line numbers).
|
|
|
20209 |
if test "x$srcdir" = x.; then
|
|
|
20210 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
|
|
20211 |
s/:*\$(srcdir):*/:/
|
|
|
20212 |
s/:*\${srcdir}:*/:/
|
|
|
20213 |
s/:*@srcdir@:*/:/
|
|
|
20214 |
s/^\([^=]*=[ ]*\):*/\1/
|
|
|
20215 |
s/:*$//
|
|
|
20216 |
s/^[^=]*=[ ]*$//
|
|
|
20217 |
}'
|
|
|
20218 |
fi
|
|
|
20219 |
|
|
|
20220 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
20221 |
fi # test -n "$CONFIG_FILES"
|
|
|
20222 |
|
|
|
20223 |
|
|
|
20224 |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
|
|
|
20225 |
do
|
|
|
20226 |
case $ac_tag in
|
|
|
20227 |
:[FHLC]) ac_mode=$ac_tag; continue;;
|
|
|
20228 |
esac
|
|
|
20229 |
case $ac_mode$ac_tag in
|
|
|
20230 |
:[FHL]*:*);;
|
|
|
20231 |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
|
|
20232 |
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
|
|
20233 |
{ (exit 1); exit 1; }; };;
|
|
|
20234 |
:[FH]-) ac_tag=-:-;;
|
|
|
20235 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
|
|
20236 |
esac
|
|
|
20237 |
ac_save_IFS=$IFS
|
|
|
20238 |
IFS=:
|
|
|
20239 |
set x $ac_tag
|
|
|
20240 |
IFS=$ac_save_IFS
|
|
|
20241 |
shift
|
|
|
20242 |
ac_file=$1
|
|
|
20243 |
shift
|
|
|
20244 |
|
|
|
20245 |
case $ac_mode in
|
|
|
20246 |
:L) ac_source=$1;;
|
|
|
20247 |
:[FH])
|
|
|
20248 |
ac_file_inputs=
|
|
|
20249 |
for ac_f
|
|
|
20250 |
do
|
|
|
20251 |
case $ac_f in
|
|
|
20252 |
-) ac_f="$tmp/stdin";;
|
|
|
20253 |
*) # Look for the file first in the build tree, then in the source tree
|
|
|
20254 |
# (if the path is not absolute). The absolute path cannot be DOS-style,
|
|
|
20255 |
# because $ac_f cannot contain `:'.
|
|
|
20256 |
test -f "$ac_f" ||
|
|
|
20257 |
case $ac_f in
|
|
|
20258 |
[\\/$]*) false;;
|
|
|
20259 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
|
|
20260 |
esac ||
|
|
|
20261 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
|
|
20262 |
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
|
|
20263 |
{ (exit 1); exit 1; }; };;
|
|
|
20264 |
esac
|
|
|
20265 |
ac_file_inputs="$ac_file_inputs $ac_f"
|
|
|
20266 |
done
|
|
|
20267 |
|
|
|
20268 |
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
|
|
20269 |
# use $as_me), people would be surprised to read:
|
|
|
20270 |
# /* config.h. Generated by config.status. */
|
|
|
20271 |
configure_input="Generated from "`IFS=:
|
|
|
20272 |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
|
|
20273 |
if test x"$ac_file" != x-; then
|
|
|
20274 |
configure_input="$ac_file. $configure_input"
|
|
|
20275 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
|
|
20276 |
echo "$as_me: creating $ac_file" >&6;}
|
|
|
20277 |
fi
|
|
|
20278 |
|
|
|
20279 |
case $ac_tag in
|
|
|
20280 |
*:-:* | *:-) cat >"$tmp/stdin";;
|
|
|
20281 |
esac
|
|
|
20282 |
;;
|
|
|
20283 |
esac
|
|
|
20284 |
|
|
|
20285 |
ac_dir=`$as_dirname -- "$ac_file" ||
|
|
|
20286 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20287 |
X"$ac_file" : 'X\(//\)[^/]' \| \
|
|
|
20288 |
X"$ac_file" : 'X\(//\)$' \| \
|
|
|
20289 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20290 |
echo X"$ac_file" |
|
|
|
20291 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20292 |
s//\1/
|
|
|
20293 |
q
|
|
|
20294 |
}
|
|
|
20295 |
/^X\(\/\/\)[^/].*/{
|
|
|
20296 |
s//\1/
|
|
|
20297 |
q
|
|
|
20298 |
}
|
|
|
20299 |
/^X\(\/\/\)$/{
|
|
|
20300 |
s//\1/
|
|
|
20301 |
q
|
|
|
20302 |
}
|
|
|
20303 |
/^X\(\/\).*/{
|
|
|
20304 |
s//\1/
|
|
|
20305 |
q
|
|
|
20306 |
}
|
|
|
20307 |
s/.*/./; q'`
|
|
|
20308 |
{ as_dir="$ac_dir"
|
|
|
20309 |
case $as_dir in #(
|
|
|
20310 |
-*) as_dir=./$as_dir;;
|
|
|
20311 |
esac
|
|
|
20312 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
|
|
20313 |
as_dirs=
|
|
|
20314 |
while :; do
|
|
|
20315 |
case $as_dir in #(
|
|
|
20316 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
|
|
20317 |
*) as_qdir=$as_dir;;
|
|
|
20318 |
esac
|
|
|
20319 |
as_dirs="'$as_qdir' $as_dirs"
|
|
|
20320 |
as_dir=`$as_dirname -- "$as_dir" ||
|
|
|
20321 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20322 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
|
20323 |
X"$as_dir" : 'X\(//\)$' \| \
|
|
|
20324 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20325 |
echo X"$as_dir" |
|
|
|
20326 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20327 |
s//\1/
|
|
|
20328 |
q
|
|
|
20329 |
}
|
|
|
20330 |
/^X\(\/\/\)[^/].*/{
|
|
|
20331 |
s//\1/
|
|
|
20332 |
q
|
|
|
20333 |
}
|
|
|
20334 |
/^X\(\/\/\)$/{
|
|
|
20335 |
s//\1/
|
|
|
20336 |
q
|
|
|
20337 |
}
|
|
|
20338 |
/^X\(\/\).*/{
|
|
|
20339 |
s//\1/
|
|
|
20340 |
q
|
|
|
20341 |
}
|
|
|
20342 |
s/.*/./; q'`
|
|
|
20343 |
test -d "$as_dir" && break
|
|
|
20344 |
done
|
|
|
20345 |
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
|
20346 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
|
|
20347 |
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
|
|
20348 |
{ (exit 1); exit 1; }; }; }
|
|
|
20349 |
ac_builddir=.
|
|
|
20350 |
|
|
|
20351 |
case "$ac_dir" in
|
|
|
20352 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
|
20353 |
*)
|
|
|
20354 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
|
|
20355 |
# A ".." for each directory in $ac_dir_suffix.
|
|
|
20356 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
|
|
20357 |
case $ac_top_builddir_sub in
|
|
|
20358 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
|
20359 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
|
20360 |
esac ;;
|
|
|
20361 |
esac
|
|
|
20362 |
ac_abs_top_builddir=$ac_pwd
|
|
|
20363 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
|
20364 |
# for backward compatibility:
|
|
|
20365 |
ac_top_builddir=$ac_top_build_prefix
|
|
|
20366 |
|
|
|
20367 |
case $srcdir in
|
|
|
20368 |
.) # We are building in place.
|
|
|
20369 |
ac_srcdir=.
|
|
|
20370 |
ac_top_srcdir=$ac_top_builddir_sub
|
|
|
20371 |
ac_abs_top_srcdir=$ac_pwd ;;
|
|
|
20372 |
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
|
20373 |
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
|
20374 |
ac_top_srcdir=$srcdir
|
|
|
20375 |
ac_abs_top_srcdir=$srcdir ;;
|
|
|
20376 |
*) # Relative name.
|
|
|
20377 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
|
20378 |
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
|
20379 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
|
20380 |
esac
|
|
|
20381 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
|
20382 |
|
|
|
20383 |
|
|
|
20384 |
case $ac_mode in
|
|
|
20385 |
:F)
|
|
|
20386 |
#
|
|
|
20387 |
# CONFIG_FILE
|
|
|
20388 |
#
|
|
|
20389 |
|
|
|
20390 |
case $INSTALL in
|
|
|
20391 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
|
|
20392 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
|
|
20393 |
esac
|
|
|
20394 |
ac_MKDIR_P=$MKDIR_P
|
|
|
20395 |
case $MKDIR_P in
|
|
|
20396 |
[\\/$]* | ?:[\\/]* ) ;;
|
|
|
20397 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
|
|
20398 |
esac
|
|
|
20399 |
_ACEOF
|
|
|
20400 |
|
|
|
20401 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
20402 |
# If the template does not know about datarootdir, expand it.
|
|
|
20403 |
# FIXME: This hack should be removed a few years after 2.60.
|
|
|
20404 |
ac_datarootdir_hack=; ac_datarootdir_seen=
|
|
|
20405 |
|
|
|
20406 |
case `sed -n '/datarootdir/ {
|
|
|
20407 |
p
|
|
|
20408 |
q
|
|
|
20409 |
}
|
|
|
20410 |
/@datadir@/p
|
|
|
20411 |
/@docdir@/p
|
|
|
20412 |
/@infodir@/p
|
|
|
20413 |
/@localedir@/p
|
|
|
20414 |
/@mandir@/p
|
|
|
20415 |
' $ac_file_inputs` in
|
|
|
20416 |
*datarootdir*) ac_datarootdir_seen=yes;;
|
|
|
20417 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
|
|
20418 |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
|
|
20419 |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
|
|
20420 |
_ACEOF
|
|
|
20421 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20422 |
ac_datarootdir_hack='
|
|
|
20423 |
s&@datadir@&$datadir&g
|
|
|
20424 |
s&@docdir@&$docdir&g
|
|
|
20425 |
s&@infodir@&$infodir&g
|
|
|
20426 |
s&@localedir@&$localedir&g
|
|
|
20427 |
s&@mandir@&$mandir&g
|
|
|
20428 |
s&\\\${datarootdir}&$datarootdir&g' ;;
|
|
|
20429 |
esac
|
|
|
20430 |
_ACEOF
|
|
|
20431 |
|
|
|
20432 |
# Neutralize VPATH when `$srcdir' = `.'.
|
|
|
20433 |
# Shell code in configure.ac might set extrasub.
|
|
|
20434 |
# FIXME: do we really want to maintain this feature?
|
|
|
20435 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20436 |
sed "$ac_vpsub
|
|
|
20437 |
$extrasub
|
|
|
20438 |
_ACEOF
|
|
|
20439 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
20440 |
:t
|
|
|
20441 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
|
|
20442 |
s&@configure_input@&$configure_input&;t t
|
|
|
20443 |
s&@top_builddir@&$ac_top_builddir_sub&;t t
|
|
|
20444 |
s&@srcdir@&$ac_srcdir&;t t
|
|
|
20445 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
|
|
20446 |
s&@top_srcdir@&$ac_top_srcdir&;t t
|
|
|
20447 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
|
|
20448 |
s&@builddir@&$ac_builddir&;t t
|
|
|
20449 |
s&@abs_builddir@&$ac_abs_builddir&;t t
|
|
|
20450 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
|
|
20451 |
s&@INSTALL@&$ac_INSTALL&;t t
|
|
|
20452 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
|
|
20453 |
$ac_datarootdir_hack
|
|
|
20454 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
|
|
|
20455 |
|
|
|
20456 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
|
|
20457 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
|
|
20458 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
|
|
20459 |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
|
20460 |
which seems to be undefined. Please make sure it is defined." >&5
|
|
|
20461 |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
|
|
20462 |
which seems to be undefined. Please make sure it is defined." >&2;}
|
|
|
20463 |
|
|
|
20464 |
rm -f "$tmp/stdin"
|
|
|
20465 |
case $ac_file in
|
|
|
20466 |
-) cat "$tmp/out"; rm -f "$tmp/out";;
|
|
|
20467 |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
|
|
20468 |
esac
|
|
|
20469 |
;;
|
|
|
20470 |
:H)
|
|
|
20471 |
#
|
|
|
20472 |
# CONFIG_HEADER
|
|
|
20473 |
#
|
|
|
20474 |
_ACEOF
|
|
|
20475 |
|
|
|
20476 |
# Transform confdefs.h into a sed script `conftest.defines', that
|
|
|
20477 |
# substitutes the proper values into config.h.in to produce config.h.
|
|
|
20478 |
rm -f conftest.defines conftest.tail
|
|
|
20479 |
# First, append a space to every undef/define line, to ease matching.
|
|
|
20480 |
echo 's/$/ /' >conftest.defines
|
|
|
20481 |
# Then, protect against being on the right side of a sed subst, or in
|
|
|
20482 |
# an unquoted here document, in config.status. If some macros were
|
|
|
20483 |
# called several times there might be several #defines for the same
|
|
|
20484 |
# symbol, which is useless. But do not sort them, since the last
|
|
|
20485 |
# AC_DEFINE must be honored.
|
|
|
20486 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
|
|
20487 |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
|
|
|
20488 |
# NAME is the cpp macro being defined, VALUE is the value it is being given.
|
|
|
20489 |
# PARAMS is the parameter list in the macro definition--in most cases, it's
|
|
|
20490 |
# just an empty string.
|
|
|
20491 |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
|
|
|
20492 |
ac_dB='\\)[ (].*,\\1define\\2'
|
|
|
20493 |
ac_dC=' '
|
|
|
20494 |
ac_dD=' ,'
|
|
|
20495 |
|
|
|
20496 |
uniq confdefs.h |
|
|
|
20497 |
sed -n '
|
|
|
20498 |
t rset
|
|
|
20499 |
:rset
|
|
|
20500 |
s/^[ ]*#[ ]*define[ ][ ]*//
|
|
|
20501 |
t ok
|
|
|
20502 |
d
|
|
|
20503 |
:ok
|
|
|
20504 |
s/[\\&,]/\\&/g
|
|
|
20505 |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
|
|
|
20506 |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
|
|
|
20507 |
' >>conftest.defines
|
|
|
20508 |
|
|
|
20509 |
# Remove the space that was appended to ease matching.
|
|
|
20510 |
# Then replace #undef with comments. This is necessary, for
|
|
|
20511 |
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
20512 |
# on some systems where configure will not decide to define it.
|
|
|
20513 |
# (The regexp can be short, since the line contains either #define or #undef.)
|
|
|
20514 |
echo 's/ $//
|
|
|
20515 |
s,^[ #]*u.*,/* & */,' >>conftest.defines
|
|
|
20516 |
|
|
|
20517 |
# Break up conftest.defines:
|
|
|
20518 |
ac_max_sed_lines=50
|
|
|
20519 |
|
|
|
20520 |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
|
|
|
20521 |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
|
|
|
20522 |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
|
|
|
20523 |
# et cetera.
|
|
|
20524 |
ac_in='$ac_file_inputs'
|
|
|
20525 |
ac_out='"$tmp/out1"'
|
|
|
20526 |
ac_nxt='"$tmp/out2"'
|
|
|
20527 |
|
|
|
20528 |
while :
|
|
|
20529 |
do
|
|
|
20530 |
# Write a here document:
|
|
|
20531 |
cat >>$CONFIG_STATUS <<_ACEOF
|
|
|
20532 |
# First, check the format of the line:
|
|
|
20533 |
cat >"\$tmp/defines.sed" <<\\CEOF
|
|
|
20534 |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
|
|
|
20535 |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
|
|
|
20536 |
b
|
|
|
20537 |
:def
|
|
|
20538 |
_ACEOF
|
|
|
20539 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
|
|
|
20540 |
echo 'CEOF
|
|
|
20541 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
|
|
|
20542 |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
|
|
|
20543 |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
|
|
|
20544 |
grep . conftest.tail >/dev/null || break
|
|
|
20545 |
rm -f conftest.defines
|
|
|
20546 |
mv conftest.tail conftest.defines
|
|
|
20547 |
done
|
|
|
20548 |
rm -f conftest.defines conftest.tail
|
|
|
20549 |
|
|
|
20550 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS
|
|
|
20551 |
cat >>$CONFIG_STATUS <<\_ACEOF
|
|
|
20552 |
if test x"$ac_file" != x-; then
|
|
|
20553 |
echo "/* $configure_input */" >"$tmp/config.h"
|
|
|
20554 |
cat "$ac_result" >>"$tmp/config.h"
|
|
|
20555 |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
|
|
|
20556 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
|
|
20557 |
echo "$as_me: $ac_file is unchanged" >&6;}
|
|
|
20558 |
else
|
|
|
20559 |
rm -f $ac_file
|
|
|
20560 |
mv "$tmp/config.h" $ac_file
|
|
|
20561 |
fi
|
|
|
20562 |
else
|
|
|
20563 |
echo "/* $configure_input */"
|
|
|
20564 |
cat "$ac_result"
|
|
|
20565 |
fi
|
|
|
20566 |
rm -f "$tmp/out12"
|
|
|
20567 |
# Compute $ac_file's index in $config_headers.
|
|
|
20568 |
_am_stamp_count=1
|
|
|
20569 |
for _am_header in $config_headers :; do
|
|
|
20570 |
case $_am_header in
|
|
|
20571 |
$ac_file | $ac_file:* )
|
|
|
20572 |
break ;;
|
|
|
20573 |
* )
|
|
|
20574 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
|
20575 |
esac
|
|
|
20576 |
done
|
|
|
20577 |
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
|
|
|
20578 |
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20579 |
X$ac_file : 'X\(//\)[^/]' \| \
|
|
|
20580 |
X$ac_file : 'X\(//\)$' \| \
|
|
|
20581 |
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20582 |
echo X$ac_file |
|
|
|
20583 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20584 |
s//\1/
|
|
|
20585 |
q
|
|
|
20586 |
}
|
|
|
20587 |
/^X\(\/\/\)[^/].*/{
|
|
|
20588 |
s//\1/
|
|
|
20589 |
q
|
|
|
20590 |
}
|
|
|
20591 |
/^X\(\/\/\)$/{
|
|
|
20592 |
s//\1/
|
|
|
20593 |
q
|
|
|
20594 |
}
|
|
|
20595 |
/^X\(\/\).*/{
|
|
|
20596 |
s//\1/
|
|
|
20597 |
q
|
|
|
20598 |
}
|
|
|
20599 |
s/.*/./; q'`/stamp-h$_am_stamp_count
|
|
|
20600 |
;;
|
|
|
20601 |
|
|
|
20602 |
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
|
|
|
20603 |
echo "$as_me: executing $ac_file commands" >&6;}
|
|
|
20604 |
;;
|
|
|
20605 |
esac
|
|
|
20606 |
|
|
|
20607 |
|
|
|
20608 |
case $ac_file$ac_mode in
|
|
|
20609 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
|
|
20610 |
# Strip MF so we end up with the name of the file.
|
|
|
20611 |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
|
20612 |
# Check whether this is an Automake generated Makefile or not.
|
|
|
20613 |
# We used to match only the files named `Makefile.in', but
|
|
|
20614 |
# some people rename them; so instead we look at the file content.
|
|
|
20615 |
# Grep'ing the first line is not enough: some people post-process
|
|
|
20616 |
# each Makefile.in and add a new line on top of each file to say so.
|
|
|
20617 |
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
|
20618 |
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
|
20619 |
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
|
|
|
20620 |
dirpart=`$as_dirname -- "$mf" ||
|
|
|
20621 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20622 |
X"$mf" : 'X\(//\)[^/]' \| \
|
|
|
20623 |
X"$mf" : 'X\(//\)$' \| \
|
|
|
20624 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20625 |
echo X"$mf" |
|
|
|
20626 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20627 |
s//\1/
|
|
|
20628 |
q
|
|
|
20629 |
}
|
|
|
20630 |
/^X\(\/\/\)[^/].*/{
|
|
|
20631 |
s//\1/
|
|
|
20632 |
q
|
|
|
20633 |
}
|
|
|
20634 |
/^X\(\/\/\)$/{
|
|
|
20635 |
s//\1/
|
|
|
20636 |
q
|
|
|
20637 |
}
|
|
|
20638 |
/^X\(\/\).*/{
|
|
|
20639 |
s//\1/
|
|
|
20640 |
q
|
|
|
20641 |
}
|
|
|
20642 |
s/.*/./; q'`
|
|
|
20643 |
else
|
|
|
20644 |
continue
|
|
|
20645 |
fi
|
|
|
20646 |
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
|
20647 |
# from the Makefile without running `make'.
|
|
|
20648 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
|
20649 |
test -z "$DEPDIR" && continue
|
|
|
20650 |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
|
20651 |
test -z "am__include" && continue
|
|
|
20652 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
|
20653 |
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
|
20654 |
U=`sed -n 's/^U = //p' < "$mf"`
|
|
|
20655 |
# Find all dependency output files, they are included files with
|
|
|
20656 |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
|
20657 |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
|
20658 |
# expansion.
|
|
|
20659 |
for file in `sed -n "
|
|
|
20660 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
|
20661 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
|
20662 |
# Make sure the directory exists.
|
|
|
20663 |
test -f "$dirpart/$file" && continue
|
|
|
20664 |
fdir=`$as_dirname -- "$file" ||
|
|
|
20665 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20666 |
X"$file" : 'X\(//\)[^/]' \| \
|
|
|
20667 |
X"$file" : 'X\(//\)$' \| \
|
|
|
20668 |
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20669 |
echo X"$file" |
|
|
|
20670 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20671 |
s//\1/
|
|
|
20672 |
q
|
|
|
20673 |
}
|
|
|
20674 |
/^X\(\/\/\)[^/].*/{
|
|
|
20675 |
s//\1/
|
|
|
20676 |
q
|
|
|
20677 |
}
|
|
|
20678 |
/^X\(\/\/\)$/{
|
|
|
20679 |
s//\1/
|
|
|
20680 |
q
|
|
|
20681 |
}
|
|
|
20682 |
/^X\(\/\).*/{
|
|
|
20683 |
s//\1/
|
|
|
20684 |
q
|
|
|
20685 |
}
|
|
|
20686 |
s/.*/./; q'`
|
|
|
20687 |
{ as_dir=$dirpart/$fdir
|
|
|
20688 |
case $as_dir in #(
|
|
|
20689 |
-*) as_dir=./$as_dir;;
|
|
|
20690 |
esac
|
|
|
20691 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
|
|
20692 |
as_dirs=
|
|
|
20693 |
while :; do
|
|
|
20694 |
case $as_dir in #(
|
|
|
20695 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
|
|
20696 |
*) as_qdir=$as_dir;;
|
|
|
20697 |
esac
|
|
|
20698 |
as_dirs="'$as_qdir' $as_dirs"
|
|
|
20699 |
as_dir=`$as_dirname -- "$as_dir" ||
|
|
|
20700 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
20701 |
X"$as_dir" : 'X\(//\)[^/]' \| \
|
|
|
20702 |
X"$as_dir" : 'X\(//\)$' \| \
|
|
|
20703 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
20704 |
echo X"$as_dir" |
|
|
|
20705 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
|
20706 |
s//\1/
|
|
|
20707 |
q
|
|
|
20708 |
}
|
|
|
20709 |
/^X\(\/\/\)[^/].*/{
|
|
|
20710 |
s//\1/
|
|
|
20711 |
q
|
|
|
20712 |
}
|
|
|
20713 |
/^X\(\/\/\)$/{
|
|
|
20714 |
s//\1/
|
|
|
20715 |
q
|
|
|
20716 |
}
|
|
|
20717 |
/^X\(\/\).*/{
|
|
|
20718 |
s//\1/
|
|
|
20719 |
q
|
|
|
20720 |
}
|
|
|
20721 |
s/.*/./; q'`
|
|
|
20722 |
test -d "$as_dir" && break
|
|
|
20723 |
done
|
|
|
20724 |
test -z "$as_dirs" || eval "mkdir $as_dirs"
|
|
|
20725 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
|
|
20726 |
echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
|
|
20727 |
{ (exit 1); exit 1; }; }; }
|
|
|
20728 |
# echo "creating $dirpart/$file"
|
|
|
20729 |
echo '# dummy' > "$dirpart/$file"
|
|
|
20730 |
done
|
|
|
20731 |
done
|
|
|
20732 |
;;
|
|
|
20733 |
|
|
|
20734 |
esac
|
|
|
20735 |
done # for ac_tag
|
|
|
20736 |
|
|
|
20737 |
|
|
|
20738 |
{ (exit 0); exit 0; }
|
|
|
20739 |
_ACEOF
|
|
|
20740 |
chmod +x $CONFIG_STATUS
|
|
|
20741 |
ac_clean_files=$ac_clean_files_save
|
|
|
20742 |
|
|
|
20743 |
|
|
|
20744 |
# configure is writing to config.log, and then calls config.status.
|
|
|
20745 |
# config.status does its own redirection, appending to config.log.
|
|
|
20746 |
# Unfortunately, on DOS this fails, as config.log is still kept open
|
|
|
20747 |
# by configure, so config.status won't be able to write to it; its
|
|
|
20748 |
# output is simply discarded. So we exec the FD to /dev/null,
|
|
|
20749 |
# effectively closing config.log, so it can be properly (re)opened and
|
|
|
20750 |
# appended to by config.status. When coming back to configure, we
|
|
|
20751 |
# need to make the FD available again.
|
|
|
20752 |
if test "$no_create" != yes; then
|
|
|
20753 |
ac_cs_success=:
|
|
|
20754 |
ac_config_status_args=
|
|
|
20755 |
test "$silent" = yes &&
|
|
|
20756 |
ac_config_status_args="$ac_config_status_args --quiet"
|
|
|
20757 |
exec 5>/dev/null
|
|
|
20758 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
|
|
20759 |
exec 5>>config.log
|
|
|
20760 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
|
|
20761 |
# would make configure fail if this is the last instruction.
|
|
|
20762 |
$ac_cs_success || { (exit 1); exit 1; }
|
|
|
20763 |
fi
|
|
|
20764 |
|